Export log data as JSON?

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
gossamer
Posts: 20
Joined: Wed Jul 13, 2011 9:56 pm

Export log data as JSON?

Post 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
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Export log data as JSON?

Post 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
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!
Locked