[check_postgres] nagios output for check locks

Greg Sabino Mullane greg at endpoint.com
Mon Aug 24 16:23:54 UTC 2009


> I have made the nagios output for check_locks.

Applied with some minor changes, thanks!

> I choose to output ref for validate_range multival because it clarify the test 
> case in check_locks and also because the multival is used only for check_locks 
> and was already hardcoded *for* check_locks. (looking at the regex).

Yes: I made that clearer in the code.

> But I really prefer this output :
> POSTGRES_LOCKS OK: DB "postgres" (host:localhost) total=1  | time=0.01  
> 'postgres.exclusive'=0;2;20 'postgres.total'=1;2;1000 'postgres.waiting'=0;;5 
> 'sqldesigner.exclusive'=0;2;20 'sqldesigner.total'=0;2;1000 
> 'sqldesigner.waiting'=0;;5
> 
> If that do not shoot someone. It is in my todo list to do that.

Go for it.

> Final step will be to provide my pnp4nagios templates which let you have 
> beautifull graph of your postgresql activities.

We await the gloriousness.


-- 
Greg Sabino Mullane greg at endpoint.com
End Point Corporation
PGP Key: 0x14964AC8

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 226 bytes
Desc: OpenPGP digital signature
Url : https://mail.endcrypt.com/pipermail/check_postgres/attachments/20090824/975e61cb/attachment.bin 


More information about the Check_postgres mailing list