Checkup Ok if host is down
-
enterdavertex
- Posts: 10
- Joined: Fri Aug 23, 2013 10:12 am
Checkup Ok if host is down
Hi there,
I was wondering if there was any way to have an OK status for an host that is down with all his services. It's a redundancy plan and the machine need to be turned off but monitored when its on.
Let me know of your suggestion have a nice day !
I was wondering if there was any way to have an OK status for an host that is down with all his services. It's a redundancy plan and the machine need to be turned off but monitored when its on.
Let me know of your suggestion have a nice day !
Re: Checkup Ok if host is down
You'll want to use the "negate" plugin. This documentation is for XI but works equally well for Core:
http://assets.nagios.com/downloads/nagi ... ios-XI.pdf
http://assets.nagios.com/downloads/nagi ... ios-XI.pdf
Former Nagios employee
-
chris.fixter
- Posts: 22
- Joined: Wed Jun 18, 2014 4:15 am
Re: Checkup Ok if host is down
I would disable active check on the host and all service, then submit passive check result OK to them.
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Checkup Ok if host is down
Yep, you could either do that manually, or probably via an event handler. Let us know if you have further questions on this.
-
enterdavertex
- Posts: 10
- Joined: Fri Aug 23, 2013 10:12 am
Re: Checkup Ok if host is down
The problem is , actually the host is a laptop so sometimes the worker goes out with his laptop. There is no way to monitor it with this type of feature. We wanted to keep track of the minimum information we can get on that host when he is into the network, without generating an error when the computer is not powerwed up or there.chris.fixter wrote:I would disable active check on the host and all service, then submit passive check result OK to them.
Re: Checkup Ok if host is down
You could always just use passive checks. That way when the device is off Nagios won't really know or care and will retain the last status that the device reported. Then when it turns on and joins the network it can start sending data to Nagios.
Former Nagios employee
-
enterdavertex
- Posts: 10
- Joined: Fri Aug 23, 2013 10:12 am
Re: Checkup Ok if host is down
The request wont be done by Nagios ? Then how the device will send the data to it ?tmcdonald wrote:You could always just use passive checks. That way when the device is off Nagios won't really know or care and will retain the last status that the device reported. Then when it turns on and joins the network it can start sending data to Nagios.
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Checkup Ok if host is down
The agent installed on the client machine is responsible for sending the data.
You could use an agent like NRDP:
http://exchange.nagios.org/directory/Ad ... or/details
You could use an agent like NRDP:
http://exchange.nagios.org/directory/Ad ... or/details
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Checkup Ok if host is down
You could also do the entire thing with dependencies based on the result of a ping returning OK. If the ping check is OK, then you could run all the other stuff. You could do this in general to make sure that the services are only checked when the host is alive (meaning, a basic service check like a ping check returns positive) but I ask "why bother monitoring it if you don't care if it's up?"
Nagios is generally a monitoring software, not a trending software. Not to say that it can't do both, but I'm just curious what information you want to gather from the laptop and why you don't care if it's not on the network? In other words, perhaps there is a better solution that Nagios to obtain the data you're looking for in the first place? Are you just trending disk space usage or memory usage or CPU usage or something like that, or are there services on the laptop that you want to make sure are running, but only when the laptop is up?
Nagios is generally a monitoring software, not a trending software. Not to say that it can't do both, but I'm just curious what information you want to gather from the laptop and why you don't care if it's not on the network? In other words, perhaps there is a better solution that Nagios to obtain the data you're looking for in the first place? Are you just trending disk space usage or memory usage or CPU usage or something like that, or are there services on the laptop that you want to make sure are running, but only when the laptop is up?
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
Re: Checkup Ok if host is down
That's how I read it, which is why I recommended the passive checks.eloyd wrote:or are there services on the laptop that you want to make sure are running, but only when the laptop is up?
@enterdavertex: Did @Box293's link help at all? We'd be happy to help set up NRDP if you need it.
Former Nagios employee