Error with check_snmp_process

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
DonForigua
Posts: 94
Joined: Thu Oct 07, 2021 8:59 pm

Error with check_snmp_process

Post 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
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Error with check_snmp_process

Post 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
DonForigua
Posts: 94
Joined: Thu Oct 07, 2021 8:59 pm

Re: Error with check_snmp_process

Post 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 :)
You do not have the required permissions to view the files attached to this post.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Error with check_snmp_process

Post 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!
DonForigua
Posts: 94
Joined: Thu Oct 07, 2021 8:59 pm

Re: Error with check_snmp_process

Post by DonForigua »

Done ;)

767915
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Error with check_snmp_process

Post 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!
Locked