Sending traps from Nagios - Macros

Marc Powell marc at ena.com
Wed Dec 6 15:35:50 CET 2006



> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
> bounces at lists.sourceforge.net] On Behalf Of Varaillon Jean Cristophe
> Sent: Wednesday, December 06, 2006 5:30 AM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Sending traps from Nagios - Macros
> 
> 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?

If that is the full command_line for your command{} definition, that
looks correct. Please post the full command definition. I use
$SERVICESTATE$ successfully in my event handlers.

--
Marc

-------------------------------------------------------------------------
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