Show host status of last time online

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.
Locked
pschauder
Posts: 3
Joined: Sat Mar 01, 2014 11:23 am

Show host status of last time online

Post by pschauder »

Hi,
I'm quite new with nagios but managed to get the infos from some Linux Host and with the help of NSC++ from some Windows clients. The problem is that some of the Windows clients are offline sometimes. This is not an error (e.g. my daughters PC is switched off) but I would like to see, if there were errors (e.g. disk full) while it was online the last time. Is there a way to config this with nagios (or better with the help of nconf)?
Regards
Peter
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Show host status of last time online

Post by slansing »

There should be an uptime check that is available if you are using NSClient checks, it should be called something along the lines of check_uptime. Also, you can take a look at the state changes that occurred on that host via the reports section.

http://www.nsclient.org/nscp/wiki/Check ... heckUpTime
pschauder
Posts: 3
Joined: Sat Mar 01, 2014 11:23 am

Re: Show host status of last time online

Post by pschauder »

Hi,
that is not what I want. I would like to have the Info about the state of the disk (full/not full) from the last time the PC was online; even when it's offline now. Is this possible?

Regards
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Show host status of last time online

Post by tmcdonald »

You will need to configure passive checks. Basically an active check is when Nagios checks the service directly, and passive is when the client sends the results to Nagios. If the client goes offline Nagios doesn't really know or care unless you tell it to check in (freshness checking).

http://assets.nagios.com/downloads/nagi ... Checks.pdf
Former Nagios employee
pschauder
Posts: 3
Joined: Sat Mar 01, 2014 11:23 am

Re: Show host status of last time online

Post by pschauder »

Thanks a lot, I will give it a try.
Regards
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Show host status of last time online

Post by slansing »

Let us know if you need help.
Locked