Nagios Host Configuration Options

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
chris2ferz
Posts: 28
Joined: Fri Nov 16, 2012 9:49 am

Re: Nagios Host Configuration Options

Post 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?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios Host Configuration Options

Post by scottwilkerson »

I don't believe so, but you may have to wait the 3600 seconds before it will change
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
chris2ferz
Posts: 28
Joined: Fri Nov 16, 2012 9:49 am

Re: Nagios Host Configuration Options

Post 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?
chris2ferz
Posts: 28
Joined: Fri Nov 16, 2012 9:49 am

Re: Nagios Host Configuration Options

Post 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?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios Host Configuration Options

Post by scottwilkerson »

If you change the $ARG1$ to 2 it will mark it down
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
chris2ferz
Posts: 28
Joined: Fri Nov 16, 2012 9:49 am

Re: Nagios Host Configuration Options

Post 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?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios Host Configuration Options

Post by scottwilkerson »

Active checking should be disables, but freshness checking needs to be enabled
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
chris2ferz
Posts: 28
Joined: Fri Nov 16, 2012 9:49 am

Re: Nagios Host Configuration Options

Post 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?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios Host Configuration Options

Post 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)
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
chris2ferz
Posts: 28
Joined: Fri Nov 16, 2012 9:49 am

Re: Nagios Host Configuration Options

Post 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
Locked