[Pkg-nagios-devel] Bug#546195: Bug#546195: nagios-plugins-basic: using check: /usr/lib/nagios/plugins/check_procs ... -C X does not work

Juhani Puska juhani.puska at wasalab.com
Mon Sep 21 07:52:00 UTC 2009


This has been collected from out testlab (LTSP), command output attacheched,
Interesting row is here:

Ss+      0  4165  4163  16668 10468  0.1 Xorg            X -auth 
/var/run/ldm-xauth-LABLN4123 -br -noreset -depth 16 vt7 :7

parameter -C X does not recognize it. I have also found other process (amavisd) 
which does not filtered by name:

$ /usr/lib/nagios/plugins/check_procs -vvv -w 1:1 -c 1:2 -C amavisd|grep amavisd
Ss     111  1583     1  57444 49684  0.0 amavisd-new     amavisd (master)
proc#=0 uid=111 vsz=57444 rss=49684 pid=1583 ppid=1 pcpu=0.00 stat=Ss etime= 
prog=amavisd-new args=amavisd (master)
S      111 30939  1583  61368 52848  0.0 amavisd-new     amavisd (ch7-avail)
proc#=0 uid=111 vsz=61368 rss=52848 pid=30939 ppid=1583 pcpu=0.00 stat=S etime= 
prog=amavisd-new args=amavisd (ch7-avail)
S      111 31005  1583  60744 52324  0.0 amavisd-new     amavisd (ch8-avail)
proc#=0 uid=111 vsz=60744 rss=52324 pid=31005 ppid=1583 pcpu=0.00 stat=S etime= 
prog=amavisd-new args=amavisd (ch8-avail)
S      111 32474  1583  60792 52220  0.0 amavisd-new     amavisd (ch6-avail)
proc#=0 uid=111 vsz=60792 rss=52220 pid=32474 ppid=1583 pcpu=0.00 stat=S etime= 
prog=amavisd-new args=amavisd (ch6-avail)
S      111   427  1583  62968 54420  0.0 amavisd-new     amavisd (ch6-avail)
proc#=0 uid=111 vsz=62968 rss=54420 pid=427 ppid=1583 pcpu=0.00 stat=S etime= 
prog=amavisd-new args=amavisd (ch6-avail)
S      111  1509  1583  62424 53772  0.0 amavisd-new     amavisd (ch1-avail)
proc#=0 uid=111 vsz=62424 rss=53772 pid=1509 ppid=1583 pcpu=0.00 stat=S etime= 
prog=amavisd-new args=amavisd (ch1-avail)
R+    1000  2640  2481   3864   688  0.0 check_procs 
/usr/lib/nagios/plugins/check_procs -vvv -w 1:1 -c 1:2 -C amavisd
proc#=0 uid=1000 vsz=3864 rss=688 pid=2640 ppid=2481 pcpu=0.00 stat=R+ etime= 
prog=check_procs args=/usr/lib/nagios/plugins/check_procs -vvv -w 1:1 -c 1:2 -C 
amavisd
S+    1000  2641  2481   3924   704  0.0 grep            grep amavisd
proc#=0 uid=1000 vsz=3924 rss=704 pid=2641 ppid=2481 pcpu=0.00 stat=S+ etime= 
prog=grep args=grep amavisd
PROCS CRITICAL: 0 processes with command name 'amavisd'


I have't look (no time at the moment) the c-code, but both of these are 
multirunning processes, like here amavisd:

  1583 ?        Ss     0:01 amavisd (master)
30939 ?        S      0:00  \_ amavisd (ch7-avail)
31005 ?        S      0:00  \_ amavisd (ch8-avail)
32474 ?        S      0:00  \_ amavisd (ch7-avail)
   427 ?        S      0:01  \_ amavisd (ch6-avail)
  1509 ?        S      0:00  \_ amavisd (ch2-avail)

X is running same, X is the root process for other processes, like session 
manager etc.

It is easy to check out the problem on whatever Linux/X-machine.


Jan Wagner wrote:
> severity 546195 normal
> tags 546195 + moreinfo
> thanks
> 
> Hi there,
> 
> On Friday 11 September 2009 16:33:14 WasaLab Testlaboratory wrote:
>> There is bug inside the check_procs (c-code module). You cannot
>> run check with big X (you know X11). This came out from thin client
>> testings in LTSP, where check fails, while checking:
>>
>> /usr/lib/nagios/plugins/check_procs -w 1:1 -c 1:2 -C X
>>
>> check eats parameter big X somehow strange, giving always 0 procs.
> 
> thanks for the bugreport. Please try the following and please report back:
> 
> /usr/lib/nagios/plugins/check_procs -vvv -w 1:1 -c 1:2 -C X | grep X
> 
> With kind regards, Jan.

-- 
   WasaLab Oy, P.O.Box 365, FIN-65101 Vaasa
   -junnu at wasalab.com, Tel. +358-44-767 7777
   helpdesk at wasalab.com, tel +358-45-130 4000
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: x.txt
URL: <http://lists.alioth.debian.org/pipermail/pkg-nagios-devel/attachments/20090921/9548d078/attachment.txt>


More information about the Pkg-nagios-devel mailing list