Thank you very much!

But i have to be honest i still dont get it. Here is what i understood so
far:

In the snmptt.conf all traps are defined. Each trap-Event has its own
individual ID.
With the new incoming Event the EXEC Statement of the defined trap-Event
will be executed. In your exmaple this would be:
EXEC echo "[$@] PROCESS_SERVICE_CHECK_RESULT;$A;Coldstart;2;The snmp agent
has reinitialized." >> /var/run/icinga2/cmd/icinga2.cmd

By calling the icinga2.cmd the data is given to icinga2 and a service is
called. The Service-Name must be identical to the one in the EXEC command.
But how is the syntax of these command? I guess in this example Coldstart
is the Service-Name? But what is the additional script doing exactly?

Kind regards,
Mathias

2015-01-12 12:12 GMT+01:00 Joseph L. Casale <[email protected]>:

> > Hello,
> > i just wanted to ask if you found some time to write down your use
> cases. I am
> > still hanging at the SNMP-Traps and would be glad to see your examples
> or any others ^^
>
> Sure,
> See https://dev.icinga.org/issues/8016
>
> hth,
> jlc
> _______________________________________________
> icinga-users mailing list
> [email protected]
> https://lists.icinga.org/mailman/listinfo/icinga-users
>
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to