Get the necessary data

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
eFusion
Posts: 33
Joined: Wed Jan 29, 2014 9:52 am

Get the necessary data

Post 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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Get the necessary data

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
eFusion
Posts: 33
Joined: Wed Jan 29, 2014 9:52 am

Re: Get the necessary data

Post by eFusion »

Thanks for your help. Understood.
Locked