Programming

Parsing Nagios4 status.dat to JSON

Parsing Nagios4 status.dat to JSON

Dumping host stats from your Nagios4 status.dat as JSON.

Michael Palmer
Background I have a django app that shows host links to internal employees, wanted to grab status from Nagios without having to go to a bunch of trouble screen scraping. Found this quick script from Alex Wright, and modified it to work where I can call it from a Django function, then I just loop through my models and match the json object to the model. Steps to deploy Upload file: status2json.