...
SOFT and HARD states are described in detail here.
Event Handler Types
There are different types of optional event handlers that you can define to handle host and state changes:
...
Event handler commands will likely be shell or perl scripts, but they can be any type of executable that can run from a command prompt. At a minimum, the scripts should take the following macros <thebasics/macros>` data as arguments:
For checks:
- $SERVICESTATE$
...
- $SERVICESTATETYPE$
...
- $SERVICEATTEMPT$
For Hosts:
- $HOSTSTATE$
...
- $HOSTSTATETYPE$
...
- $HOSTATTEMPT$
The scripts should examine the values of the arguments passed to it and take any necessary action based upon those values.
...
Event handler commands will normally execute with the same permissions as the user under which Shinken is running on your machine. This can present a problem if you want to write an event handler that restarts system checksservices, as root privileges are generally required to do these sorts of tasks.
...