Page 1 of 1

Error with check_snmp_process

Posted: Fri Dec 31, 2021 9:16 am
by DonForigua
Hi

When i use the plugin here http://nagios.manubulon.com/snmp_process.html or https://github.com/SteScho/manubulon-snmp

i get

Code: Select all

sh:/usr/local/nagios/libexec> # snmpwalk -v 2c -c public XXXXXXXXXXX 1.3.6.1.2.1.25.4.2.1 | grep 'igsmux.exe'                                                                                
HOST-RESOURCES-MIB::hrSWRunName.9192 = STRING: "igsmux.exe"
sh:/usr/local/nagios/libexec> # ./check_snmp_process.pl -H XXXXXXXXXXX -C public -n "igsmux.exe" -t 20 -f                                                                                    
No process matching igsmux.exe found : CRITICAL                                                                                                                                                                           
sh:/usr/local/nagios/libexec> # ./check_snmp_processv2.pl -H XXXXXXXXXX -C public -n "igsmux.exe" -t 20 -f                                                                                  
No processes matching igsmux.exe found : CRITICAL                                                                                                                                                                         
The process is running

thx

Re: Error with check_snmp_process

Posted: Mon Jan 03, 2022 1:36 pm
by ssax
Remove the -f:
-f, --fullpath
Use full path name instead of process name
(Windows doesn't provide full path name)
Like this:

Code: Select all

./check_snmp_process.pl -H XXXXXXXXXXX -C public -n "igsmux.exe" -t 20
You can also do this:

Code: Select all

./check_snmp_process.pl -H XXXXXXXXXXX -C public -n "igsmux.exe" -t 20 -v

Re: Error with check_snmp_process

Posted: Tue Jan 04, 2022 6:51 pm
by DonForigua
Excelent you are a master hehehe.

for an extrange reason we have a looot unknown alers i have done:

1. set host_down_disable_service_checks=1
2. set large check, retry time and max attempts until 4 and 5
3. we have the last version of nagios
4. the perfdata of my nagios server is under 30 % (cpu and memory)
5. The max use of interface is 3.6 % (Network is 1 Gbps)
6. the server has OL 7.9 with php 5.6 from remi repo

thax for your help :)

Re: Error with check_snmp_process

Posted: Wed Jan 05, 2022 10:42 am
by ssax
Please create a new ticket for the unknown alerts issue and reserve this one for the check_snmp_process issue, we like to keep to one issue per post/ticket per policy to stop never-ending tickets and so that we can refer back to specific issues without confusion (we do this a lot):

https://support.nagios.com/tickets/

In that new ticket, attach a FRESH copy of your profile.zip, and the output of these commands:

Code: Select all

sar -A
netstat -s
ulimit -a
su -s /bin/bash -c 'ulimit -a' nagios
su -s /bin/bash -c 'ulimit -a' mysql
Let us know when we're okay to lock this one up and mark it as resolved.

Thank you!

Re: Error with check_snmp_process

Posted: Wed Jan 05, 2022 9:45 pm
by DonForigua
Done ;)

767915

Re: Error with check_snmp_process

Posted: Thu Jan 06, 2022 12:10 pm
by ssax
I've claimed the ticket and I'm analyzing the information now.

Let us know when we're okay to lock this one up and mark it as resolved.

Thank you!