Nagios takes days to retry a DOWN HOST

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

Re: Nagios takes days to retry a DOWN HOST

Post by tgriep »

I see that you are using the temp filesystem /dev/shm for storing some files, is it running out of space?
Can you run the following as root and post the output?

Code: Select all

df -h
df -i
For a test, can you edit the nagios.cfg file and change the following from

Code: Select all

enable_environment_macros=1
to

Code: Select all

enable_environment_macros=0
Save the file and restart nagios

Code: Select all

service nagios restart
Post if this helps or not.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Johan159
Posts: 43
Joined: Mon Mar 30, 2015 8:05 am

Re: Nagios takes days to retry a DOWN HOST

Post by Johan159 »

Code: Select all

[jcorsini@vmwmon001 ~]$ df -h /dev/shm/
Filesystem            Size  Used Avail Use% Mounted on
tmpfs                 8.0G  7.0M  8.0G   1% /dev/shm
[jcorsini@vmwmon001 ~]$ df -i /dev/shm/
Filesystem            Inodes   IUsed   IFree IUse% Mounted on
tmpfs                 193112       6  193106    1% /dev/shm
I adapted the parameter enable_environment_macros, but I'm not sure if I'll be able to leave it like this for a long time (I have to double check my event handlers). Anyway, we'll see how it behaves.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Nagios takes days to retry a DOWN HOST

Post by hsmith »

Let us know what you come up with.
Former Nagios Employee.
me.
Johan159
Posts: 43
Joined: Mon Mar 30, 2015 8:05 am

Re: Nagios takes days to retry a DOWN HOST

Post by Johan159 »

For information, the change of the parameter enable_environment_macros solved the issue!
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Nagios takes days to retry a DOWN HOST

Post by rkennedy »

Thanks for letting us know @Johan159!

Can I mark this thread as resolved then?
Former Nagios Employee
Johan159
Posts: 43
Joined: Mon Mar 30, 2015 8:05 am

Re: Nagios takes days to retry a DOWN HOST

Post by Johan159 »

Yes, thanks a lot for your help everyone!
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Nagios takes days to retry a DOWN HOST

Post by rkennedy »

You're welcome. I'll close this out now, but if you ever need assistance in the future feel free to open a new thread.
Former Nagios Employee
Locked