[icinga-users] [EXTERNAL] Re: check_procs not reporting a process running that it is checking for

Botnick, Steven sbotnick at usgs.gov
Tue Oct 2 22:31:32 CEST 2018


CentOS 7, proc mounted, other processes report OK. Digging a little more, I
see check_procs does this to pull the info:

#  ps axwo  'stat uid pid ppid vsz rss pcpu comm args' | grep smoke
Ss       0 19156     1 301920 26624  0.0 /usr/local/smok
/usr/local/smokeping/bin/smokeping [FPing]

Follow it immediately with this.
# ./check_procs -C smokeping
PROCS OK: 0 processes with command name 'smokeping' | procs=0;;;0;

On the same system:

#  ps axwo  'stat uid pid ppid vsz rss pcpu comm args' | grep icinga
S      994  3646     1  91696  1868  0.0 icinga
/usr/local/icinga/bin/icinga -d /usr/local/icinga/etc/icinga.cfg
... omitted other results

Followed by this:
#./check_procs -C icinga
PROCS OK: 4 processes with command name 'icinga' | procs=4;;;0;


This looks like it might be a couple or more bugs, check_procs not sanity
checking input and 'ps' not doing as described in the man page, mainly not
reporting as described: "command name (only the executable name).
Modifications to the command name will not be shown. "



On Mon, Oct 1, 2018 at 11:15 PM Edgar Fuß <ef at math.uni-bonn.de> wrote:

> > ps ..  00:15:53 /usr/local/smokeping/bin/smokeping [FPing]
> >
> > # /usr/local/icinga/libexec/check_procs -C smokeping
> > PROCS OK: 0 processes with command name 'smokeping' | procs=0;;;0;
> You don't mention which OS this is on. If it's Linux: do you have /proc
> mounted?
> _______________________________________________
> icinga-users mailing list
> icinga-users at lists.icinga.org
> https://lists.icinga.org/mailman/listinfo/icinga-users
>


-- 
Steve Botnick
I.T. Specialist
Alaska Volcano Observatory
U.S. Geological Survey
4230 University Dr. STE 100
Anchorage, AK 99508
email: sbotnick at usgs.gov
voice: 907.786.7019
fax:   907.786.7425
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.icinga.org/pipermail/icinga-users/attachments/20181002/6bb73a38/attachment.html>


More information about the icinga-users mailing list