stanvit / nagios-monit-plugin

Nagios plugin for monit state checking
MIT License
12 stars 6 forks source link

Patch for monit >= 5.3 #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm running monit 5.3.2 with a service that gets checked every 2 cycles. In 
monit 5.3+, this means the <monitor> element varies, because it's a bit field. 
On cycles when the service is checked, the value is 1, but on cycles where it 
wasn't checked, the value is (0x1 | 0x4) == 5.

This patch converts the value in the <monitor> tag to an integer, then checks 
whether the lowest bit is set.

Original issue reported on code.google.com by kbull...@ringworld.org on 29 Mar 2013 at 6:16

Attachments:

GoogleCodeExporter commented 9 years ago
Thank you for the patch, accepted.

Original comment by stas.vit...@gmail.com on 30 Mar 2013 at 4:05