Historical service-status perfdata, where stored in DB?
Posted: Fri Jul 13, 2012 5:40 am
I'm new to Nagios and I'm really struggling to find useful documentation, so please excuse what may be dull questions.
I have a test instance of Nagios XI running on a Centos virtual machine and everything's working fine. I want to access historical status data stored in Nagios' MySQL database in an external script so I can generate my own graphs, or whatnot. I've done a little digging and have found the tables I'm after. So far, so good.
What I'm trying to find out is where the perfdata you see in the "servicestatus" table goes after a service's current status is updated by the next check; I don't see it in the statehistory table. Is it stored in another table, or is it simply discarded? Are there any config options that affect whether this information is stored or not?
I've been looking through the docs (http://nagios.sourceforge.net/docs/3_0/ ... mance_data), but haven't seen any configuration that explains what I'm seeing.
I want this historical data because it's in a machine-friendly format - using regexps to extract the data from the human readable status would be worryingly flaky, and it doesn't contain all the data I'm after anyways.
I'll be very grateful for any help you could offer. Many thanks.
I have a test instance of Nagios XI running on a Centos virtual machine and everything's working fine. I want to access historical status data stored in Nagios' MySQL database in an external script so I can generate my own graphs, or whatnot. I've done a little digging and have found the tables I'm after. So far, so good.
What I'm trying to find out is where the perfdata you see in the "servicestatus" table goes after a service's current status is updated by the next check; I don't see it in the statehistory table. Is it stored in another table, or is it simply discarded? Are there any config options that affect whether this information is stored or not?
I've been looking through the docs (http://nagios.sourceforge.net/docs/3_0/ ... mance_data), but haven't seen any configuration that explains what I'm seeing.
I want this historical data because it's in a machine-friendly format - using regexps to extract the data from the human readable status would be worryingly flaky, and it doesn't contain all the data I'm after anyways.
I'll be very grateful for any help you could offer. Many thanks.