The easy way to create rule is with an existing trap, but you also can create a rule before receiving any traps.
Goto Handlers menu and click 'Add a trap handler'
You can choose between hosts or hostgroups :
- When selecting a host, the trap receiver will take it's source IP
- When selecting a hostgroup, the trap receiver will take all IP of all host in this hostgroup (! performance issues (maybe) ! )
On both case, you must have a service attached to the host or hostgroup that accepts passive check (see about it)
Now first, (1) select host/group name (autocompletion provided)
Then select a service (2). The service list is from the IDO database.
Then you can either
- add manually the trap OID (3) (you won't be able to add objects automaticaly)
- or select the MIB (1) then the trap name in this mib (2).
In the second case, the "Add objects" will be enabled : this will add all objects that can be sent with the trap according to the MIB.
The "Revert OK" is the time after which the service will be reseted to OK. To do this, you have to set up a specific service on the icinga host (DOC TODO).
Automatic reset can also be done with icinga freshness check / active checks see Here about it).
All of it is described Here
Then click create : rule is created and applied directly.
back to user guide : user guide