rwellens/nagios-dat

Read nagios status.dat informations

v1.1.3 2019-01-17 17:15 UTC

This package is auto-updated.

Last update: 2024-12-18 06:40:58 UTC


README

$statusFile = "nagios/status.dat";

$datIterator = new DatIterator($statusFile);
$datParser = new DatParser($datIterator);

header("Content-type: application/json");


echo(json_encode($datParser->toArray()));