aboutsummaryrefslogtreecommitdiff
path: root/plugins/check_disk.c
diff options
context:
space:
mode:
authorGravatar Sebastian Schmidt <sschmidt@interhyp.de> 2012-11-07 18:56:02 +0100
committerGravatar Holger Weiss <holger@zedat.fu-berlin.de> 2013-08-18 12:59:57 +0200
commitce7a99789ddb3c6047135eef87ebdb695673612d (patch)
tree74324c328ebe170414b0ebd9606ba08d6a6b054e /plugins/check_disk.c
parentf3dbc2ec871da22028969540424a63ff51404cfd (diff)
downloadmonitoring-plugins-ce7a99789ddb3c6047135eef87ebdb695673612d.tar.gz
check_procs: filter out self by /proc/pid/exe
Make check_procs filter out itself in the process list by comparing the file pointed to by /proc/pid/exe. On platforms where this is not available or when check_procs is passed the -T flag, the old behaviour (check whether PID equals getpid()) is retained. This fixes some false alarms when e.g. Nagios has, for whatever reasons, some backlog of checks to run and check_procs with -a is called more than once in a short time, matching its sister process.
Diffstat (limited to 'plugins/check_disk.c')
0 files changed, 0 insertions, 0 deletions