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

Nagios Host Configuration Options

Post by chris2ferz »

I had some questions I could not find answers to yet so i'm hoping for some help. This is for the agent running on windows hosts.

1- Is there anyway for Nagios to know if a computer was rebooted or shutdown vs a locked or crashed system? It would be offline either way but one would be intended. This way a false notification would not be sent.

2- For remote monitoring is there a way that the agent could "check-in" to the server rather than the other way around. This would avoid firewall configs if it was a passive connection. If this is not possible then what ports would need to be forwarded? Could combo a dynamic registration service for hosts without a static IP

3- Is there a way for Nagios to monitor a log file for certain strings of text? Also could it run a command or script based on a finding of a string? Or is it just able to notify?

4- Lastly is there a way Nagios can query the SMART status of a hard drive. Typically this check is only done at boot time but for systems that have extended uptimes this duration may be too long. I know vendor tools for hard drives are able to determine the SMART status from within windows. This would help from possible data loss since files could be copied from the system while its still running rather than risking a reboot and possibly losing data.

Thanks to anyone for any help or insight.
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 »

chris2ferz wrote:1- Is there anyway for Nagios to know if a computer was rebooted or shutdown vs a locked or crashed system? It would be offline either way but one would be intended. This way a false notification would not be sent.
1.) Not really however this is where the retry interval comes in. If you aren't sending alerts immediately, it gives an opportunity for the machine to come back online before it sends a notification.
chris2ferz wrote: 2- For remote monitoring is there a way that the agent could "check-in" to the server rather than the other way around. This would avoid firewall configs if it was a passive connection. If this is not possible then what ports would need to be forwarded? Could combo a dynamic registration service for hosts without a static IP
2.) Yes. Take a look at NRDS, this is preinstalled on XI 2012
http://exchange.nagios.org/directory/Ad ... 29/details
chris2ferz wrote:3- Is there a way for Nagios to monitor a log file for certain strings of text? Also could it run a command or script based on a finding of a string? Or is it just able to notify?
3.) yes, it depends on the type of system but there are plugins here
http://exchange.nagios.org/directory/Plugins/Log-Files
chris2ferz wrote:4- Lastly is there a way Nagios can query the SMART status of a hard drive. Typically this check is only done at boot time but for systems that have extended uptimes this duration may be too long. I know vendor tools for hard drives are able to determine the SMART status from within windows. This would help from possible data loss since files could be copied from the system while its still running rather than risking a reboot and possibly losing data
4. http://exchange.nagios.org/directory/Tu ... os/details
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 »

Thank you very much. That was alot of good information.

From what checking I did it seems the logfile monitor and the SMART status plugins were non-windows based. I was hoping for a windows agent being able to work with this. I may have misunderstood if it does indeed do that but it wasn't looking that way to me.

Again thanks for the reply especially about the passive check-ins. I am running XI2012 and will read up on that feature.
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 »

Here's one that can be used with Windows utilizing NSClient ++'s NRPE

http://exchange.nagios.org/directory/Pl ... rs/details
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 »

Is there a nice windows based log file checker that would work well with Nagios? Those seem to be linuxed based too. Thanks again you have been very helpful :)
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios Host Configuration Options

Post by lmiltchev »

Be sure to check out our Knowledgebase for helpful articles and solutions!
chris2ferz
Posts: 28
Joined: Fri Nov 16, 2012 9:49 am

Re: Nagios Host Configuration Options

Post by chris2ferz »

That is pretty handy but I was actually looking for something that would monitor or check a text based log file for a string of text. Such as error or failed and then report when those strings are present. I know they have this for linux hosts but i'm having trouble finding this for windows hosts. Thanks and Happy Thanksgiving :)
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 think this will do what you want
http://labs.consol.de/nagios/check_logfiles/

The zip download has a windows exe that you can use with NSClient++
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 »

having an issue where i'm getting a host down when it is online
WINPING CRITICAL - time<1ms
seems like a strange notification

Could someone explain what may be happening?
Also how can I configure the low and high threshold for being notified
as an example if I want to configure to where 90 process is normal rather than too high.

Thanks
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Nagios Host Configuration Options

Post by slansing »

Can you run the command from your nagios terminal to the windows machine? What does it report back? "This is the easiest way to check things like this sometimes."
Locked