we have been getting hundreds of Critical Plugin timed out alerts from our nagiosxi server. There are from the check_xi_by_ssh service. They are always random and have been filling up our inboxes. Any help would be appreciated.
Here is an example of a notification
Notification Type: PROBLEM
Service: Var Disk Space
Host: hostname
Address: hostname
State: CRITICAL
Info:
CRITICAL - Plugin timed out
Date/Time: 2020-08-13 14:54:34
Critical - Plugin timed out
Re: Critical - Plugin timed out
Can you show us the actual command that you are using, run from the command line, along with the output of it?
How long does it usually take before the check times out? Try using the "time" command in front of your check to time it. You may even run it a few times to get an idea of the "average".
Example check:
Also, run the following command, and show the output:
How long does it usually take before the check times out? Try using the "time" command in front of your check to time it. You may even run it a few times to get an idea of the "average".
Example check:
Code: Select all
time su -l nagios -c '/usr/local/nagios/libexec/check_by_ssh -H x.x.x.x -C "/usr/local/nagios/libexec/check_disk /"'
DISK OK - free space: / 24437 MiB (68.33% inode=92%);| /=11323MiB;;;0;37674
real 0m0.286s
user 0m0.087s
sys 0m0.082sCode: Select all
grep check_timeout /usr/local/nagios/etc/nagios.cfgBe sure to check out our Knowledgebase for helpful articles and solutions!