19.02.2013 Views

SNMP Trap Handling für Nagios

SNMP Trap Handling für Nagios

SNMP Trap Handling für Nagios

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

28<br />

<strong>SNMP</strong> <strong>Trap</strong> <strong>Handling</strong> <strong>für</strong> <strong>Nagios</strong><br />

Beispiel: Start und Stop<br />

■ Auszug aus apx_start_trap_wrapper:<br />

if [ "$PROD_IP" = "$ASK_IP" ]<br />

then<br />

/usr/lib/nagios/eventhandlers/submit_check_result $HOST<br />

APX_Start_Stop 0 "APX started"<br />

exit 0<br />

else<br />

exit 1<br />

fi<br />

■ Auszug aus apx_stop_trap_wrapper:<br />

if [ "$PROD_IP" = "$ASK_IP" ]<br />

then<br />

/usr/lib/nagios/eventhandlers/submit_check_result $HOST<br />

APX_Start_Stop 2 "APX shutdown"<br />

exit 0<br />

else<br />

exit 1<br />

fi<br />

September 22, 2006

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!