Many Nagios addons use Livestatus as the backend like NagVis, Check_MK etc.
Installing Livestatus
- Download stable version livestatus zipped file from http://mathias-kettner.de/check_mk_download.html. Eg: mk-livestatus-1.2.2p3.tar.gz
netstat -ano | more
function _mk_date($str)
{
$temp = new DateTime($datestr);
return date_format($temp, 'Y-m-d');
}