I want to convert status.dat file to json file

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
anjali
Posts: 14
Joined: Wed May 29, 2019 6:23 am

I want to convert status.dat file to json file

Post by anjali »

Hello Team,
I want to convert status.dat file to JSON because I want to read data from that file and render in my HTML page.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: I want to convert status.dat file to json file

Post by benjaminsmith »

Hi @anjali,

Here a few links to programs for converting status.dat to json. I did test the python program and it seems to be working as correctly. However, take a look a the Status JSON Generator as that script may be best suited to your requirements.

1. Status JSON Generator
https://exchange.nagios.org/directory/A ... or/details

2. Status2json.py
https://gist.github.com/alexwright/2541 ... us2json-py
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!
anjali
Posts: 14
Joined: Wed May 29, 2019 6:23 am

Re: I want to convert status.dat file to json file

Post by anjali »

Thanks for your suggestion, it works for me.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: I want to convert status.dat file to json file

Post by scottwilkerson »

anjali wrote:Thanks for your suggestion, it works for me.
Great!

Locking
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked