Nagios Status JSON
Nagios Status JSON
This PHP API script reads Nagios status.dat file and return the JSON result. This API is desinged for Nagios Client unofficial Nagios status monitoring app.
Change status.dat file's path according to your Nagios Server configuration.
$statusFile = '/usr/local/nagios/var/status.dat';