Page 1 of 1

Get the necessary data

Posted: Wed Jan 29, 2014 10:21 am
by eFusion
Hello!
Sorry for my english :D
I have a task - get number of interruptions and total downtime for the some host.
I know, what this data can be prepared in status.dat file, but i can't find the necessary lines in this file.
Help me please.

Regards, Eugene.

Re: Get the necessary data

Posted: Wed Jan 29, 2014 11:26 am
by abrist
Total downtime is not in status.data. status.dat only includes current status information - state, last check, next check, etc. There is no way to generate an availability report from this file. You will need to parse the logs, or just use the availability report in the nagios web ui.

Re: Get the necessary data

Posted: Thu Jan 30, 2014 10:24 am
by eFusion
Thanks for your help. Understood.