Page 3 of 5
Re: Nagios Host Configuration Options
Posted: Fri Jan 25, 2013 3:15 am
by chris2ferz
OK i changed the template to match what you suggested. There was already something in the 2 arg spots but there was a 0 in arg1 and i put a 1 and it overwrote what was there. Is that OK?
Seems to not have had an effect on a host that i'm watching that hasn't checked in for a few days. Does it need to check-in again before the change will occur?
Re: Nagios Host Configuration Options
Posted: Sat Jan 26, 2013 11:59 pm
by scottwilkerson
I don't believe so, but you may have to wait the 3600 seconds before it will change
Re: Nagios Host Configuration Options
Posted: Sun Jan 27, 2013 11:04 am
by chris2ferz
I rechecked that the template was modified as you stated. But still it appears to have had no effect even after the host has now checked back in. Anything else I need to do for that to work?
Re: Nagios Host Configuration Options
Posted: Sun Jan 27, 2013 11:51 am
by chris2ferz
It appears it may actually be doing what you described however I didn't notice anything different because I was hoping it would mark the host as critical or warning. I do see in the status information that it has something now about the host not checking in but the host still shows as up.
I was expecting it would mark the host offline or critical in the status area bringing my attention to it more. Is there anyway to do that or is this the best way?
Re: Nagios Host Configuration Options
Posted: Sun Jan 27, 2013 9:52 pm
by scottwilkerson
If you change the $ARG1$ to 2 it will mark it down
Re: Nagios Host Configuration Options
Posted: Mon Jan 28, 2013 1:14 am
by chris2ferz
it doesn't seem to work unless active checks are enabled. They were disabled before and since you didn't mention changing that setting I wasn't sure but you explained it would run an active check after an hour and maybe it couldn't unless that's enabled. I'm talking about in the template configuration.
Or am I missing something?
With this setting the hosts are marked as down within a minute or so and keep toggling up and down since I have the passive hosts check in every 5 minutes but the active checks are happening much faster. I didn't realize this would be so difficult to do since it would seem simple. I appreciate your help. Just would like to get this working finally. Thanks
Should there be anything under check period? its blank now. Does it need to be 24x7?
Re: Nagios Host Configuration Options
Posted: Mon Jan 28, 2013 8:48 am
by scottwilkerson
Active checking should be disables, but freshness checking needs to be enabled
Re: Nagios Host Configuration Options
Posted: Mon Jan 28, 2013 9:37 am
by chris2ferz
Yes that's the way i have it now. but it seems the active check never happens therefore the state does not change from up to down unless i manually do an active check. So it seems the part that's not happening here is the active check process. Any ideas on what I can do for this part?
Re: Nagios Host Configuration Options
Posted: Mon Jan 28, 2013 1:46 pm
by scottwilkerson
With freshness checking enabled, it should run the check command after the freshness threshold is met (with 3600 set it would be 6 hours after the last check time)
Re: Nagios Host Configuration Options
Posted: Mon Jan 28, 2013 2:03 pm
by chris2ferz
I'm confused - i thought that setting was in seconds so 6 hours would be 21600 right? either way i have put in 300 seconds for 5 minutes and it simply isn't working. Is there any way you could look at it or have me send you a file to verify these operations. Thanks again