Hi All,
We are using Nagios 4.0.8 on a Red Hat linux.
Everything is working fine for quit a while.
Now I want introduce check_freshness for our passive service checks.
Thus I was adding below to one of our passive service check definitions:
check_freshness 1
freshness_threshold 30
I have stopped to provide passive check data for given service check.
Now in the Nagios Web Frontend I see the service status has changed to Critical and it says (Return code 13 is out of bounds).
I would expect status Unknown and message "Freshness Check Failed: Threshold Exceeded". Right?
What I'm doing wrong? How can I fix this?
Thanks and regards,
Michael
Nagios check_freshness (Return code of 13 is out of bounds)
Re: Nagios check_freshness (Return code of 13 is out of boun
Can you post how the service check is configured?
One thing that could cause this is if the plugin stores files on the system for performance data and you ran the check as root, it would create the tmp file with root permissions and then the nagios user would not have permissions to write to that file. Check the /tmp folder to see if that is true.
One thing that could cause this is if the plugin stores files on the system for performance data and you ran the check as root, it would create the tmp file with root permissions and then the nagios user would not have permissions to write to that file. Check the /tmp folder to see if that is true.
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
DiegoAnjos
- Posts: 49
- Joined: Thu Feb 14, 2013 9:32 am
Re: Nagios check_freshness (Return code of 13 is out of boun
Usually when I got the message (Return code of 13 is out of bounds) it is related to the plugin file permissions.
Check the check_fresness file and change its permissions to rwxr-xr-x to nagios user and nagios group.
Check the check_fresness file and change its permissions to rwxr-xr-x to nagios user and nagios group.
Re: Nagios check_freshness (Return code of 13 is out of boun
mkaegi, let us know what you find.
Thank you
Thank you
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Nagios check_freshness (Return code of 13 is out of boun
What check command have you defined in the service? This command will be executed when the freshness is exceeded.
https://assets.nagios.com/downloads/nag ... hness.html
https://assets.nagios.com/downloads/nag ... hness.html
You would need to define that is your command, like using check_dummy:mkaegi wrote:I would expect status Unknown and message "Freshness Check Failed: Threshold Exceeded". Right?
Code: Select all
define command{
command_name freshness failed
command_line /usr/local/nagios/libexec/check_dummy 2 "CRITICAL: Freshness Check Failed: Threshold Exceeded!"
}As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Nagios check_freshness (Return code of 13 is out of boun
Hi All,
Thanks for the suggestions. Currently I'm buy with other things. Thus the delay.
As soon I have time to work on this I will let you know...
Thanks and regards,
Michael
Thanks for the suggestions. Currently I'm buy with other things. Thus the delay.
As soon I have time to work on this I will let you know...
Thanks and regards,
Michael
Re: Nagios check_freshness (Return code of 13 is out of boun
Thanks for letting us know. I will leave this thread open and await your response.
Former Nagios Employee