Modified timestamp sent to nagios transport in order to fix an issue with flapjack

…ith flapjack

DO NOT DELETE THIS TEXT

#### Please note

> Please read this information carefully. You can run `./scripts/pre-commit.php` to check your code before submitting.

- [x] Have you followed our [code guidelines?](http://docs.librenms.org/Developing/Code-Guidelines/)

#### Testers

If you would like to test this pull request then please run: `./scripts/github-apply <pr_id>`, i.e `./scripts/github-apply 5926`
This commit is contained in:
Denis
2018-09-04 15:08:51 +02:00
committed by Neil Lathwood
parent 4cba0a5244
commit 2978e52edd

View File

@@ -58,7 +58,7 @@ class Nagios extends Transport
$format = '';
$format .= "[HOSTPERFDATA]\t";
$format .= $obj['timestamp'] . "\t";
$format .= strtotime($obj['timestamp']) . "\t";
$format .= $obj['hostname'] . "\t";
$format .= md5($obj['rule']) . "\t"; //FIXME: Better entity
$format .= ($obj['state'] ? $obj['severity'] : "ok") . "\t";