Hello,
I can't find any documentation to solve this problem.
I have an UPS environmental probe I can only monitor through snmp Traps,
so I installed SMTTP,
configured snmpd, snmptrapd, tested it : all seems ok. But I have a hard
time making the conf files of the commands
and services definition (for example, are the parameters below valid for
Icinga2?)
/
//"//max_check_attempts 1//
//normal_check_interval 10//
//retry_check_interval 10//
//passive_checks_enabled 1//
//active_checks_enabled 0//"/
I'd like to know if I could find a template of an snmp-trap service
under icinga2 and / or a command.conf example.
Here are the objects of the Mib I converted with SNMPTT I want to monitor :
EVENT trapEnvironComOK .1.3.6.1.4.1.674.10902.2.140.0.99 "Status Events"
INFORMATIONAL
FORMAT Environment Probe communication restored.
EXEC /usr/local/nagios/libexec/eventhandlers/submit_check_result $r TRAP
1 "Environment Probe communication restored."
SDESC
Environment Probe communication restored.
Variables:
EDESC
#
#
#
EVENT trapEnvironTemperatureLow .1.3.6.1.4.1.674.10902.2.140.0.100
"Status Events" WARNING
FORMAT Temperature is below low threshold.
EXEC /usr/local/nagios/libexec/eventhandlers/submit_check_result $r TRAP
1 "Temperature is below low threshold."
SDESC
Temperature is below low threshold.
Variables:
EDESC
#
#
#
EVENT trapEnvironTemperatureHigh .1.3.6.1.4.1.674.10902.2.140.0.102
"Status Events" WARNING
FORMAT Temperature is above high threshold.
EXEC /usr/local/nagios/libexec/eventhandlers/submit_check_result $r TRAP
1 "Temperature is above high threshold."
SDESC
Temperature is above high threshold.
Variables:
EDESC
#
#
#
EVENT trapEnvironTemperatureOK .1.3.6.1.4.1.674.10902.2.140.0.103
"Status Events" INFORMATIONAL
FORMAT Temperature is in normal range.
EXEC /usr/local/nagios/libexec/eventhandlers/submit_check_result $r TRAP
1 "Temperature is in normal range."
SDESC
Temperature is in normal range.
Variables:
EDESC
Thank for your help
_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users