Hi,
I have an ancient installation of nagios-3.5.1 on an old version of Fedora that I need to upgrade. We haven't upgraded it because we wrote a custom parser that converts status.dat into a CSV file similar to the format of nagios-v1 from probably 2012 or earlier.
I'm hoping now there's some kind of plugin or config option that can export the status info into something that we can easily parse instead of the proprietary status.dat such as JSON or even a CSV.
Many years ago there were several sourceforge/git projects that helped with parsing, but they don't seem to have been updated in a long time.
Ideas greatly appreciated.
Thanks,
Alex
Export log data as JSON?
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Export log data as JSON?
Hi Alex,
Honestly, not too sure that, that's past my experience with Nagios.
What about using ndoutils to send out to a file? There is an option for that, I haven't set that but as far as I know, it does work.
https://assets.nagios.com/downloads/nag ... OUtils.pdf
https://github.com/NagiosEnterprises/ndoutils
Benjamin
Honestly, not too sure that, that's past my experience with Nagios.
What about using ndoutils to send out to a file? There is an option for that, I haven't set that but as far as I know, it does work.
https://assets.nagios.com/downloads/nag ... OUtils.pdf
https://github.com/NagiosEnterprises/ndoutils
Benjamin
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!