[check_postgres] nagios output for backends

Cédric Villemain cedric.villemain at dalibo.com
Mon Aug 3 15:26:57 UTC 2009


Hi,

here is a first patch for nagios output of backends check.

It try to follow the nagios guidelines but fail...
In fact, output should be 'label'=value[UOM][;warn][;crit][;min][;max]
But all MUST be of the same UOM (unity of measurement), and actually it is not 
possible to output % wihtout redisign the check_backend (and I don't want to 
rewrite it right now), and the warn,crit,min and max are global not for each 
DB.
So the output with this patch is : 
 'label'=value;warn;crit;0;max 
where warn,crit and max are for total connections, not by each database(side 
note : allow plugin to check warn;crit by DB ?). And percentage are converted 
to absolute value, also minus are reverted.

----
Cédric Villemain
Administrateur de Base de Données
Cel: +33 (0)6 74 15 56 53
http://dalibo.com - http://dalibo.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nagios_output_backends
Type: text/x-patch
Size: 683 bytes
Desc: not available
Url : https://mail.endcrypt.com/pipermail/check_postgres/attachments/20090803/638c9daf/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : https://mail.endcrypt.com/pipermail/check_postgres/attachments/20090803/638c9daf/attachment-0001.bin 


More information about the Check_postgres mailing list