Lorenz Kästle
6eb5be9e30
Fix argument order of calloc on several occasions
2024-11-09 10:49:21 +01:00
Lorenz Kästle
9462819774
lib: Update copyright
2024-10-17 18:01:49 +02:00
Lorenz Kästle
ee1ba32099
lib: clang-format
2024-10-17 17:57:50 +02:00
RincewindsHat
07f9c438f3
Fixes for -Wsign-compare
2023-10-19 12:10:55 +02:00
RincewindsHat
4b9d90f31c
Whitespace fixes in lib
2023-10-15 18:17:36 +02:00
Lorenz Kästle
719e27ddc2
Merge pull request #1924 from RincewindsHat/compiler_warnings_4_1
...
Centralise and refactor maxfd related functionality
2023-09-23 10:47:01 +02:00
RincewindsHat
4295decfbf
open_max is a library function now, it should be mp_open_max
2023-09-23 10:33:06 +02:00
RincewindsHat
a3029c5a2e
Place _cmd_pids in object not header to avoid unsused variables
2023-09-22 15:28:06 +02:00
RincewindsHat
7fd0e6f36d
Rework maxfd/open_max to avoid unused variables
2023-09-22 15:22:57 +02:00
RincewindsHat
a00c412e7b
Fixes for -Wnonnull-compare
2023-04-18 00:35:09 +02:00
Jan Wagner
0f3703e641
Fix a lot of typos reported by codespell
2023-04-14 18:35:00 +00:00
Sven Nierlein
7cafb0e845
check_by_ssh: fix child process leak on timeouts
...
When check_by_ssh runs into a timeout it simply exits keeping all child processes running.
Simply adopting the kill loop from runcmd_timeout_alarm_handler() fixes this.
Signed-off-by: Sven Nierlein <sven@nierlein.de>
2019-02-15 10:36:28 +01:00
Sven Nierlein
7660540c31
make constants from maxfd values ( #1300 )
...
its good practice to use constants instead of (random) values.
Signed-off-by: Sven Nierlein <sven@nierlein.de>
2014-11-28 15:25:43 +01:00
nafets
6bb5e1db52
avoid a segfault, if ulimit is set to unlimited
2014-11-28 15:21:23 +01:00
Spenser Reinhardt
9123f6146c
lib/utils_cmd.c - Free file descriptor
...
Coverity 66502 - File descriptor fd in cmd_file_read is never closed, and thus file is left open after usage throughout runtime. - SR
2014-06-28 18:24:46 +02:00
Monitoring Plugins Development Team
63734f52ab
Project rename initial commit.
...
This is an initial take at renaming the project to Monitoring Plugins.
It's not expected to be fully complete, and it is expected to break
things (The perl module for instance). More testing will be required
before this goes mainline.
2014-01-19 14:18:47 -05:00
Thomas Guyot-Sionnest
cf2bcf6c7a
Fix cmd_run overwriting the environment
...
Some commands need the environment to function properly. One such
example is check_ssh and check_by_ssh when a SOCKS proxy is required.
This patch use setenv and extern char **environ to alter and pass the
new environment to the child process Those modules have been added to
Gnulib for portability.
2010-07-02 12:55:19 -04:00
Thomas Guyot-Sionnest
6fbd14fea5
Removing CVS/SVN tags and replacing with git-based versioning
...
For contrib/, full tags have been imported from subversion
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2091 f882894a-f735-0410-b71e-b25c423dba1c
2008-11-23 05:38:47 +00:00
Ton Voon
b93562e6e2
check_procs captures stderr and adds to plugin output. This is
...
from a merge of branch nagiosplug/branches/new_threshold_syntax 1979:1982
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2019 f882894a-f735-0410-b71e-b25c423dba1c
2008-07-08 09:31:04 +00:00
Thomas Guyot-Sionnest
fafb8ead9d
Bump /lib to GPLv3
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1913 f882894a-f735-0410-b71e-b25c423dba1c
2008-01-30 09:33:43 +00:00
Ton Voon
8a39526e1b
Stop double expansion of parameters for negate - works like
...
time command now
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1784 f882894a-f735-0410-b71e-b25c423dba1c
2007-09-21 23:01:28 +00:00