Nagios check_freshness (Return code of 13 is out of bounds)

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
mkaegi
Posts: 2
Joined: Tue May 12, 2015 8:14 am

Nagios check_freshness (Return code of 13 is out of bounds)

Post by mkaegi »

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
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios check_freshness (Return code of 13 is out of boun

Post by tgriep »

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.
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

Post by DiegoAnjos »

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

Re: Nagios check_freshness (Return code of 13 is out of boun

Post by ssax »

mkaegi, let us know what you find.

Thank you
User avatar
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

Post by Box293 »

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
mkaegi wrote:I would expect status Unknown and message "Freshness Check Failed: Threshold Exceeded". Right?
You would need to define that is your command, like using check_dummy:

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.
mkaegi
Posts: 2
Joined: Tue May 12, 2015 8:14 am

Re: Nagios check_freshness (Return code of 13 is out of boun

Post by mkaegi »

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
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Nagios check_freshness (Return code of 13 is out of boun

Post by rkennedy »

Thanks for letting us know. I will leave this thread open and await your response.
Former Nagios Employee
Locked