[Nagiosplug-help] check_procs 1.4.2 returns 0 processes in Solaris 8

Johan Corsini johan.corsini at guest.minfin.fed.be
Thu Apr 13 08:13:02 CEST 2006


I had a few troubles myself with this plugin on Solaris 8 machines.
Here is things that worked for me :

1) Try including the path of the process you are looking for in the command 
line. Yes, I know that the help of this plugin tells you to ommit the path, 
but it sometimes worked for me..  

/opt/nagios-plugins-1.4.2/libexec/check_procs -c 1:1 -C /usr/sbin/syslogd

2) try the "-a" option instead of the "-C"

/opt/nagios-plugins-1.4.2/libexec/check_procs -c 1:1 -a /usr/sbin/syslogd

3) This plugins has troubles with some locales (like some european ones, where 
you write "1.234,5" and not "1,234.5" ).  I added a "LC_ALL=POSIX ; export 
LC_ALL ;" in front of my checks (those are NRPE'd checks) to bypass the 
problem.

Johan


Le Jeudi 13 Avril 2006 15:26, Jacob Laack a écrit :
> All-
> I'm have compiled the nagios-plugins-1.4.2 on a Solaris 8 machine but the
> check_procs plugin keeps telling me there are no processes as you can see
> here:
>
> bob[id]root#ps -ef | grep nrpe | grep -v grep
>   nagios 13117     1  0 13:52:54 ?        0:01 /usr/local/nagios/bin/nrpe
> -c /usr/local/nagios/etc/nrpe.cfg -d
> bob[id]root#nagios-plugins-1.4.2/plugins/check_procs -c 1:1024 -C nrpe
> PROCS CRITICAL: 0 processes with command name 'nrpe'
> bob[id]root#nagios-plugins-1.4/plugins/check_procs -c 1:1024 -C nrpe
> PROCS OK: 1 process with command name 'nrpe'
>
> It doesn't matter what process I use and the plugin says none exist.  The
> 1.4 plugins I compiled work correctly as you can see above.  Here is a
> verbose listing of the two plugins:
>
> bob[id]root#nagios-plugins-1.4.2/plugins/check_procs -vvv -c 1:1024 -C nrpe
> CMD: /usr/bin/ps -Ao 's uid pid ppid vsz rss pcpu comm args'
> T     0     0     0    0    0  0.0 sched                                   
>                                         sched 0 0 0 0 0 0 0.00 T  sched    
>                                                                        
> sched S     0     1     0  880  544  0.1 /etc/init                         
>                                               /etc/init - 0 0 880 544 0 0
> 0.10 S  /etc/init                                                          
>               /etc/init - S     0     2     0    0    0  0.0 pageout       
>                                                                   pageout 0
> 0 0 0 0 0 0.00 S  pageout                                                  
>                         pageout S     0     3     0    0    0  0.5 fsflush 
>                                                                        
> fsflush 0 0 0 0 0 0 0.50 S  fsflush                                        
>                                   fsflush S     0    64     1 2816 1744 
> 0.0 devfsadmd                                                              
>          devfsadmd 0 0 2816 1744 1 0 0.00 S  devfsadmd                     
>                                                    devfsadmd S     0   188 
>    1 1992 1248  0.0 /usr/sbin/cron                                         
>                          /usr/sbin/cron 0 0 1992 1248 1 0 0.00 S 
> /usr/sbin/cron                                                             
>       /usr/sbin/cron ...cut...
> S   110 13117     1 1784 1176  0.0 /usr/local/nagios/bin/nrpe              
>                                         /usr/local/nagios/bin/nrpe -c
> /usr/local/nagios/etc/nrpe.cfg -d 0 110 1784 1176 1 0 0.00 S 
> /usr/local/nagios/bin/nrpe                                                 
>       /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d
> ...cut...
> S 60001 18074 18060 3720 3200  0.0 /usr/local/apache/bin/httpd             
>                                         /usr/local/apache/bin/httpd 0 60001
> 3720 3200 18060 0 0.00 S  /usr/local/apache/bin/httpd                      
>                                 /usr/local/apache/bin/httpd O     0 23456
> 11646 1792 1400  0.1 nagios-plugins-1.4.2/plugins/check_procs              
>                           nagios-plugins-1.4.2/plugins/check_procs -vvv -c
> 1:1024 -C nrpe 0 0 1792 1400 11646 0 0.10 O 
> nagios-plugins-1.4.2/plugins/check_procs                                   
>       nagios-plugins-1.4.2/plugins/check_procs -vvv -c 1:1024 -C nrpe PROCS
> CRITICAL: 0 processes with command name 'nrpe'
>
> bob[id]root#nagios-plugins-1.4/plugins/check_procs -vvv -c 1:1024 -C nrpe
> CMD: /usr/bin/ps -Ao 's uid ppid vsz rss pcpu comm args'
> T     0     0    0    0  0.0 sched                                         
>                                   sched seconds: 0
> 0 0 0 0 0 0.00 T  sched                                                    
>                         sched S     0     0  880  544  0.0 /etc/init       
>                                                                 /etc/init -
> seconds: 0
> 0 0 880 544 0 0.00 S  init                                                 
>                        /etc/init - S     0     0    0    0  0.0 pageout    
>                                                                     
> pageout seconds: 0
> 0 0 0 0 0 0.00 S  pageout                                                  
>                         pageout S     0     0    0    0  0.3 fsflush       
>                                                                   fsflush
> seconds: 0
> 0 0 0 0 0 0.30 S  fsflush                                                  
>                         fsflush S     0     1 2816 1744  0.0 devfsadmd     
>                                                                   devfsadmd
> seconds: 0
> 0 0 2816 1744 1 0.00 S  devfsadmd                                          
>                               devfsadmd S     0     1 1992 1248  0.0
> /usr/sbin/cron                                                             
>      /usr/sbin/cron seconds: 0
> 0 0 1992 1248 1 0.00 S  cron                                               
>                     /usr/sbin/cron ...cut...
> O     0 23461 1984 1144  0.1 /usr/bin/ps                                   
>                                   /usr/bin/ps -Ao s uid ppid vsz rss pcpu
> comm args seconds: 0
> 0 0 1984 1144 23461 0.10 O  ps                                             
>                          /usr/bin/ps -Ao s uid ppid vsz rss pcpu comm args
> S 60001   168 3496 2264  0.0 fs                                            
>                                   fs seconds: 0
> 0 60001 3496 2264 168 0.00 S  fs                                           
>                                     fs S   110     1 1784 1176  0.0
> /usr/local/nagios/bin/nrpe                                                 
>      /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d
> seconds: 0
> 0 110 1784 1176 1 0.00 S  nrpe                                             
>           /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d
> ...cut...
> S     0 11646 1792 1400  0.0 nagios-plugins-1.4/plugins/check_procs        
>                                   nagios-plugins-1.4/plugins/check_procs
> -vvv -c 1:1024 -C nrpe seconds: 0
> 1 0 1792 1400 11646 0.00 S  check_procs                                    
>        nagios-plugins-1.4/plugins/check_procs -vvv -c 1:1024 -C nrpe PROCS
> OK: 1 process with command name 'nrpe'
>
> Can anyone tell me the changes I'd need to make to get the new plugin to
> work?
>
> Jake Laack
> Alegent Health Open Systems Engineer
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> that extends applications into web and mobile media. Attend the live
> webcast and join the prime developer group breaking into this new coding
> territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
> _______________________________________________
> Nagiosplug-help mailing list
> Nagiosplug-help at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
>
> ::: Please include plugins version (-v) and OS when reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null




More information about the Help mailing list