return 500;
} else {
// Service Update
- if (!nagiosSubmitHost($host, 0, 'Received passive service check'))
+ $hostStatus = 'Received passive service check from '
+ . '"' . $_SERVER['REMOTE_ADDR'] . '"';
+ if (!nagiosSubmitHost($host, 0, $hostStatus))
return 500;
if (!nagiosSubmitService($host, $service, $status, $text))
return 500;