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
  -ju...@wasalab.com, Tel. +358-44-767 7777
  helpd...@wasalab.com, tel +358-45-130 4000
Ss+      0  4165  4163  16668 10468  0.1 Xorg            X -auth 
/var/run/ldm-xauth-LABLN4123 -br -noreset -depth 16 vt7 :7
proc#=0 uid=0 vsz=16668 rss=10468 pid=4165 ppid=4163 pcpu=0.10 stat=Ss+ etime= 
prog=Xorg args=X -auth /var/run/ldm-xauth-LABLN4123 -br -noreset -depth 16 vt7 
:7
S        0 23253  4163   5112  1824  0.0 ssh             ssh -Y -t -S 
/var/run/ldm_socket_vt7_192.168.0.1 -l 905a0181611 192.168.0.1 
LTSP_CLIENT=192.168.0.199 PULSE_SERVER=tcp:192.168.0.199:4713 
ESPEAKER=192.168.0.199:16001 /etc/X11/Xsession default ; 
/usr/sbin/ltspfsmounter all cleanup ; kill -1 $PPID
proc#=0 uid=0 vsz=5112 rss=1824 pid=23253 ppid=4163 pcpu=0.00 stat=S etime= 
prog=ssh args=ssh -Y -t -S /var/run/ldm_socket_vt7_192.168.0.1 -l 905a0181611 
192.168.0.1 LTSP_CLIENT=192.168.0.199 PULSE_SERVER=tcp:192.168.0.199:4713 
ESPEAKER=192.168.0.199:16001 /etc/X11/Xsession default ; 
/usr/sbin/ltspfsmounter all cleanup ; kill -1 $PPID
S+       0 23284 23268   1804   672  0.0 check_procs     
/usr/lib/nagios/plugins/check_procs -vvv -w 1:1 -c 1:2 -C X
proc#=0 uid=0 vsz=1804 rss=672 pid=23284 ppid=23268 pcpu=0.00 stat=S+ etime= 
prog=check_procs args=/usr/lib/nagios/plugins/check_procs -vvv -w 1:1 -c 1:2 -C 
X
S+       0 23285 23268   2016   644  0.0 grep            grep X
proc#=0 uid=0 vsz=2016 rss=644 pid=23285 ppid=23268 pcpu=0.00 stat=S+ etime= 
prog=grep args=grep X
PROCS CRITICAL: 0 processes with command name 'X'

Reply via email to