Conversation
offset with a negative "-1 second" offset causes a critical status Offsets should be positive integers
|
Hi @cedr-x, Here's what I suggest:
What do you think? |
|
Hi @cedr-x,
Thanks anyway for drawing our attention on this issue 💯 |
offset with a negative "-1 second" output cause a critical status of the plugin. Offsets should be positive integers
Community contributors
Description
Sometimes, centreon_linux_snmp.pl --plugin=os::linux::snmp::plugin --mode=time trigger critical status when the checked host is just a second behind the ref_time
Type of change
How this pull request can be tested ?
Check against an host which have it clock set near 1s behing ntp ref time
The unpatched check is tossed be criticals when it retrives exactly "-1" (second) as offset
This patched check, returning in that case "1" stay with status OK
tested with:
Checklist