How to parse nagios status.dat file?

前端 未结 7 1125
一生所求
一生所求 2020-12-21 02:06

I\'d like to parse status.dat file for nagios3 and output as xml with a python script. The xml part is the easy one but how do I go about parsing the file? Use multi line re

相关标签:
7条回答
  • 2020-12-21 02:47

    For the last several months I've written and released a tool that that parses the Nagios status.dat and objects.cache and builds a model that allows for some really useful manipulation of Nagios data. We use it to drive an internal operations dashboard that is a simplified 'mini' Nagios. Its under continual development and I've neglected testing and documentation but the code isn't too crazy and I feel fairly easy to follow.

    Let me know what you think... https://github.com/zebpalmer/NagParser

    0 讨论(0)
提交回复
热议问题