[check_postgres] [PATCH] Add `pgagent_jobs` test.
David E. Wheeler
david.wheeler at pgexperts.com
Thu Jan 19 18:24:58 UTC 2012
On Jan 19, 2012, at 10:21 AM, Cédric Villemain wrote:
> I didn't understand this any_warning. What is it for again ?
> I believe, all check_postgres need is sometime more in line with
> nagios plugin guidelines, not the opposite.
> I'll check further, but I would like you to see my mail before committing ;)
I expect it to be used something like this:
check_postgres_pgagent_jobs --critical 2h --warning 4h
So it will warn for any failures in the last four hours, and error for any failures in the last 2 hours.
However, by default validate_range() rejects this, saying that warning cannot be greater than critical. So I added a param to disable that error. The only check that uses it is pgagent_jobs.
Make sense?
Thanks,
David
More information about the Check_postgres
mailing list