Page 1 of 1

Export log data as JSON?

Posted: Tue Oct 06, 2020 3:55 pm
by gossamer
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

Re: Export log data as JSON?

Posted: Tue Oct 06, 2020 5:32 pm
by benjaminsmith
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