Page 1 of 1

check_snmp CRITICAL - Plugin timed out while executing syste

Posted: Thu Nov 05, 2020 9:47 am
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?

Re: check_snmp CRITICAL - Plugin timed out while executing s

Posted: Thu Nov 05, 2020 7:16 pm
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.

Re: check_snmp CRITICAL - Plugin timed out while executing s

Posted: Fri Nov 06, 2020 3:12 am
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.

Re: check_snmp CRITICAL - Plugin timed out while executing s

Posted: Fri Nov 06, 2020 4:40 pm
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

Re: check_snmp CRITICAL - Plugin timed out while executing s

Posted: Thu Nov 12, 2020 4:21 am
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.

Re: check_snmp CRITICAL - Plugin timed out while executing s

Posted: Thu Nov 12, 2020 7:06 am
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