[Nagiosplug-help] check_snmp_process & check_snmp_proc

Kevin G. J. Freels kfreels at stmarys-ca.edu
Tue Jun 14 21:22:32 CEST 2011


Stephen,

I seem to remember that this happened to me a ways back. I think I
solved it by putting the entire path of the executable being checked,
such as (example) :

   /usr/sbin/slapd

instead of just:

   slapd

You could try that to see if it helps.

....k
 

> Subject: [Nagiosplug-help] check_snmp_process & check_snmp_proc
> 
> I'm seeing some peculiar behavior from both of these scripts when
> checking processes on Fedora 15.
> 
> When checking a F15 system that has multiple nfsd threads, the
scripts
> return a critical condition even though I have checked and the
proper
> number of nfsd are running.
> 
> [root at nagiossvr plugins]# ./check_snmp_process -H targethost -C
> public
> -2 -n nfsd
> No process matching nfsd found : CRITICAL
> 
> If I add in the "[]" that show up in a "ps auxf" on the targethost
it
> finds them with no problems:
> 
>  From the target server:
> root     29654  0.0  0.0      0     0 ?        S    Jun13   0:00  \_
[nfsd]
> root     29655  0.0  0.0      0     0 ?        S    Jun13   0:00  \_
[nfsd]
> root     29656  0.0  0.0      0     0 ?        S    Jun13   0:00  \_
[nfsd]
> root     29657  0.0  0.0      0     0 ?        S    Jun13   0:00  \_
[nfsd]
> 
> [root at nagiossvr plugins]# ./check_snmp_process -H targethost -C
> public
> -2 -n \[nfsd\]
> 118 process matching [nfsd] (> 0)
> 
> The same behavior happens when I try to use check_snmp_proc.
> /etc/snmp/snmpd.conf has:
> proc    nfsd    256 64
> 
> I've tried adding the escaped brackets to snmpd.conf but it still
fails:
> 
> [root at nagiossvr plugins]# ./check_snmp_proc -H targethost -C public
> No nfsd process running
> 
> Nagios Core Version 3.2.3 running on Scientific Linux 5.5
> Both target hosts are Fedora 15, fully up to date.
> 
> Anyone have an idea about what could cause this and how to fix?  The
> same checks work as expected to Fedora 13, 14, SL5.x and SL6.x.
> 
> --
> Stephen Berg
> Systems Administrator
> NRL Code: 7320
> Office: 228-688-5738
> stephen.berg.ctr at nrlssc.navy.mil
> 
> 
>
----------------------------------------------------------------------
--------
> EditLive Enterprise is the world's most technically advanced content
> authoring tool. Experience the power of Track Changes, Inline Image
> Editing and ensure content is compliant with Accessibility Checking.
> http://p.sf.net/sfu/ephox-dev2dev
> _______________________________________________
> 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