check_snmp CRITICAL - Plugin timed out while executing syste

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
danniiffxi
Posts: 121
Joined: Tue Jan 30, 2018 3:29 am
Location: UK

check_snmp CRITICAL - Plugin timed out while executing syste

Post by danniiffxi »

Hi Guys

I have recently transferred a Nagios backup over to a new server. I have having an issues with a few of the snmp checks, not all of the, for example:

CentOS 8.2.2004
This one fails on the CLI

Code: Select all

[root@nagxit02 libexec]# ./check_snmp -H 192.168.250.126 -o SNMPv2-SMI::mib-2.47.1.1.1.1.2.1001 -C svc-snmpexec -P 2c -l "Model"
CRITICAL - Plugin timed out while executing system call
CentOS 6.10 (Final)
This is the original server, check works fine.

Code: Select all

[root@nagxip02 libexec]# ./check_snmp -H 192.168.250.126 -o SNMPv2-SMI::mib-2.47.1.1.1.1.2.1001 -C svc-snmpexec -P 2c -l "Model"
SNMP OK - Model StackPort1/1 |
I first suspected something is up with the MIB, but they are all in the correct place, and all MIB files are set to chown root:nagios

Do I need to add any other arguments to the CentOS8?

It is weird as these servers have around 10,000 SNMP checks running on them, and the only ones I am having issues with are pulling back the model numbers and OS version of Switches. The CentOS6 server works fine, CentOS8 working fine with the exception of those few checks.

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

Re: check_snmp CRITICAL - Plugin timed out while executing s

Post by ssax »

After you ran the restore, did you run the restore_repair script from the backup/restore guide to recompile the binaries?

When you say from the CLI, are you SSHing in and running it or using the Run Check Command button? (do it from an SSH session if you aren't)

Please send me a copy of your profile, you can download it from Admin > System Profile by clicking the Download Profile button.
danniiffxi
Posts: 121
Joined: Tue Jan 30, 2018 3:29 am
Location: UK

Re: check_snmp CRITICAL - Plugin timed out while executing s

Post by danniiffxi »

ssax wrote:After you ran the restore, did you run the restore_repair script from the backup/restore guide to recompile the binaries?

When you say from the CLI, are you SSHing in and running it or using the Run Check Command button? (do it from an SSH session if you aren't)

Please send me a copy of your profile, you can download it from Admin > System Profile by clicking the Download Profile button.
Hi ssax, I followed this guide https://assets.nagios.com/downloads/nag ... ios-XI.pdf
After restoring the backup and ran the restore repair as instructed. And yea by by CLI I was on an SSH Putty session to the server, I have also tried the Run Check button in the browser GUI and I get the same result.

You'll fine the profile in a private message

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

Re: check_snmp CRITICAL - Plugin timed out while executing s

Post by ssax »

I'm seeing this:
2020-11-06 08:06:59 [2278806] [1] RRDs::update ERROR Unable to connect to rrdcached: No such file or directory
You may need to run this again to install rrdcached:

https://assets.nagios.com/downloads/nag ... ios-XI.pdf

While not likely related, let's double-check your sql_mode setting:

Code: Select all

/etc/my.cnf.d/mysql-server.cnf
Make sure you have sql_mode="" set under the [mysqld] section and then restart mysqld:

Code: Select all

systemctl restart mysqld
That needs to be done on EL8.

Does it work if you add a timeout onto it:

Code: Select all

/usr/local/nagios/libexec/check_snmp -H 192.168.250.126 -o SNMPv2-SMI::mib-2.47.1.1.1.1.2.1001 -C svc-snmpexec -P 2c -l "Model" -t 120
danniiffxi
Posts: 121
Joined: Tue Jan 30, 2018 3:29 am
Location: UK

Re: check_snmp CRITICAL - Plugin timed out while executing s

Post by danniiffxi »

Hi ssax

You can lock this one, I decided to build a new CentOS7 server and use that one rather than CentOS 8, it is working without issue.

Many thanks.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: check_snmp CRITICAL - Plugin timed out while executing s

Post by scottwilkerson »

danniiffxi wrote:Hi ssax

You can lock this one, I decided to build a new CentOS7 server and use that one rather than CentOS 8, it is working without issue.

Many thanks.
Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked