Page 1 of 1

Show host status of last time online

Posted: Sat Mar 01, 2014 11:30 am
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

Re: Show host status of last time online

Posted: Mon Mar 03, 2014 10:25 am
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

Re: Show host status of last time online

Posted: Mon Mar 03, 2014 11:56 am
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

Re: Show host status of last time online

Posted: Mon Mar 03, 2014 2:53 pm
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

Re: Show host status of last time online

Posted: Tue Mar 04, 2014 2:48 am
by pschauder
Thanks a lot, I will give it a try.
Regards

Re: Show host status of last time online

Posted: Tue Mar 04, 2014 11:09 am
by slansing
Let us know if you need help.