[check_postgres] [PATCH] Add `pgagent_jobs` test.
David E. Wheeler
david.wheeler at pgexperts.com
Thu Jan 19 20:59:49 UTC 2012
On Jan 19, 2012, at 11:49 AM, Cédric Villemain wrote:
> I am unsure to understand the interest to get a WARNING, but what it
> does require looks more something like that :
>
> check_postgres_pgagent_jobs --critical 0h:2h --warning 2h:4h
> (and performance data must output in seconds : 3600s so that nagios
> graphers can understand it)
>
> I think this range argument is not yet handled by check_postgres, but
> should be, and fix your issue thanks to a side effect of a cleaner -w
> and -c parsing.
> Correct ?
If it was independent parsing, that did not care if the warning window was larger than the critical window, then yes. As long as I could also do:
check_postgres_pgagent_jobs --critical 2h
IOH, if no :, then assume it means 0h:2h.
Is that something you plan to hack up?
Best,
David
More information about the Check_postgres
mailing list