Sending traps from Nagios - Macros

Varaillon Jean Cristophe vajc at altectelecoms.gr
Wed Dec 6 12:30:03 CET 2006


HI,

Using event handlers, Nagios sends SNMP traps to another NMS.

The problem is that the macros remain empty.

Using that command from Nagios
snmp_trapsend -h 172.31.10.15 -c sphynx -e 1.3.6.1.4.1.20006 -s 2 -a
"1.3.6.1.4.1.20006.2 STRING (** $SERVICEDESC$ $SERVICESTATE$ **)"

Produces that output in my NMS:
Nagios Server alarm - [1] private.enterprises.nagios.2 (OctetString):
**$ $ **

Although the Macro Availability Chart shows that $SERVICEDESC$ and
$SERVICESTATE$ are available with event handlers.

Any idea?

Christophe

Disclaimer
The information in this e-mail and any attachments is confidential. It is intended solely for the attention and use of the named addressee(s). If you are not the intended recipient, or person responsible for delivering this information to the intended recipient, please notify the sender immediately. Unless you are the intended recipient or his/her representative you are not authorized to, and must not, read, copy, distribute, use or retain this message or any part of it. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list