[check_postgres] [PATCH] Add `pgagent_jobs` test.

David E. Wheeler david.wheeler at pgexperts.com
Thu Jan 19 21:37:47 UTC 2012


On Jan 19, 2012, at 1:32 PM, Cédric Villemain wrote:

> I am going to look into it, maybe I'll find a pretty way to do it.
> If I fail we can add a TODO to accept range, it might be useful in other checks.

Should be do-able by splitting on : and popping off the @, then passing each value to size_in_seconds().

> for the current proposal, that should be (if I don't fail again...)
>  -c 2h:  or -c @0h:2h  and -w @2h:4h

And what would -c=2h do? That's the current syntax, and I don’t think we’d want to break backwards compatibility.

> I think we should have check_postgres trying to follow that, is it a
> big trouble for you to use this kind of arguments ?

No, should be pretty simple.

Best,

David



More information about the Check_postgres mailing list