Retrieving nagios status and historical data
Posted: Wed Jun 04, 2014 2:31 am
hi,
im enquiring about retrieving nagios status and historical data. I have read about two methods: NDOUtils & Mk-LiveStatus.
I understand NDOUtils write Nagios data to MySQL database. So retrieving of few months old of data is pretty straight forward. But can that be done for MK LiveStatus?
On Mk LiveStatus page, i quote:
"Since version 1.1.0, Check_MK offers a completely new approach for accessing status and also historic data: Livestatus. Just as NDO, Livestatus make use of the Nagios Event Broker API and loads a binary module into your Nagios process. But other then NDO, Livestatus does not actively write out data. Instead, it opens a socket by which data can be retrieved on demand.
The socket allows you to send a request for hosts, services or other pieces of data and get an immediate answer. The data is directly read from Nagios' internal data structures. Livestatus does not create its own copy of that data. Beginning from version 1.1.2 you are also able retrieve historic data from the Nagios log files via Livestatus."
Does this mean that I can retrieve few months old of data from Mk LiveStatus? If so, how much old data does nagios store in its log files? And how can I delete this old data to mantain disk space (e.g: only keep pass one month of data)???
im enquiring about retrieving nagios status and historical data. I have read about two methods: NDOUtils & Mk-LiveStatus.
I understand NDOUtils write Nagios data to MySQL database. So retrieving of few months old of data is pretty straight forward. But can that be done for MK LiveStatus?
On Mk LiveStatus page, i quote:
"Since version 1.1.0, Check_MK offers a completely new approach for accessing status and also historic data: Livestatus. Just as NDO, Livestatus make use of the Nagios Event Broker API and loads a binary module into your Nagios process. But other then NDO, Livestatus does not actively write out data. Instead, it opens a socket by which data can be retrieved on demand.
The socket allows you to send a request for hosts, services or other pieces of data and get an immediate answer. The data is directly read from Nagios' internal data structures. Livestatus does not create its own copy of that data. Beginning from version 1.1.2 you are also able retrieve historic data from the Nagios log files via Livestatus."
Does this mean that I can retrieve few months old of data from Mk LiveStatus? If so, how much old data does nagios store in its log files? And how can I delete this old data to mantain disk space (e.g: only keep pass one month of data)???