diff options
author | Sebastian Schmidt <sschmidt@interhyp.de> | 2012-11-07 17:56:02 (GMT) |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-08-18 10:59:57 (GMT) |
commit | ce7a99789ddb3c6047135eef87ebdb695673612d (patch) | |
tree | 74324c328ebe170414b0ebd9606ba08d6a6b054e /contrib/aix/pg_stat | |
parent | f3dbc2ec871da22028969540424a63ff51404cfd (diff) | |
download | monitoring-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 'contrib/aix/pg_stat')
0 files changed, 0 insertions, 0 deletions