TORRESANI, Roberto writes:
> 
> I'm trying to do a thing like :
> - do something and let me know when you have finished (with a mon trap)
> - if mon doesn't get the trap in a reasonable period of time,
> the service is considered failed.

Check the mon man page for "traptimeout" and "trapduration".
That will let you do what you want.  Here's a snippet from my config:

 watch trapthing
        service whereareyou
                description go red if we don't hear from you
                traptimeout 5m
                trapduration 1s

The above service will go into failure mode if a trap is not
received in 5 minutes (traptimeout).  After the trap is received,
the service will be marked "OK" after 1 second (trapduration).

Reply via email to