Hi,
I'm searching for status.dat specif information. I'm working with Nagios 4.0.8 and Nagios BPI, and I see that there is more info in status.dat that we see in Nagios BPI.
Could I find information abaout each specific?
The current_event_id identifies each alert and a new one is created each time and alert happens?
Thank you very much,
Status.dat
Re: Status.dat
Here's the full documentation for the NDOUtils database model:
https://assets.nagios.com/downloads/nag ... _Model.pdf
Not every single field present in status.dat is documented in there, but the majority of them are.
https://assets.nagios.com/downloads/nag ... _Model.pdf
Not every single field present in status.dat is documented in there, but the majority of them are.
That's the gist of it, yeah.The current_event_id identifies each alert and a new one is created each time and alert happens?
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
Re: Status.dat
Thanks mcapra. The fact is that I'm developing some changes for de Nagios BPM and I need to identify each alert. I saw current_event_id and I was thinking it may be useful for that.mcapra wrote:Here's the full documentation for the NDOUtils database model:
https://assets.nagios.com/downloads/nag ... _Model.pdf
Not every single field present in status.dat is documented in there, but the majority of them are.
That's the gist of it, yeah.The current_event_id identifies each alert and a new one is created each time and alert happens?
I need to create a register in a third part application and I have to be sure that I create only one for each alert. Do you know how could I identify each alert in Status.dat file?
-
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: Status.dat
Since you are talking about development, I should warn you that big changes are likely to come to status.dat Nagios Core 5.0. Now, I do not have a timeline for when Core 5.0 will be out, so I don't want to dissuade you too much, but it is something to think about.
As far as getting this done now, I think you'll want to look at the following:
As far as getting this done now, I think you'll want to look at the following:
more info at: https://assets.nagios.com/downloads/nag ... olist.htmlA globally unique number associated with the host's current problem state. Every time a host (or service) transitions from an UP or OK state to a problem state, a global problem ID number is incremented by one (1). This macro will be non-zero if the host is currently a non-UP state. State transitions between non-UP states (e.g. DOWN to UNREACHABLE) do not cause this problem id to increase. If the host is currently in an UP state, this macro will be set to zero (0). Combined with event handlers, this macro could be used to automatically open trouble tickets when hosts first enter a problem state.