Sending traps from Nagios - Macros

Varaillon Jean Cristophe vajc at altectelecoms.gr
Thu Dec 7 15:15:47 CET 2006


>> 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 (** $arg1 $arg2 **)"
>> exit 0

>This is not. This is a shell programming error. $arg1 should be $1 and
>$arg2 should be $2 unless there is some obscure thing that happening
with your OS's version of sh.

Yes this was it!

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 (** $1 $2 **)"
exit 0


Many many many thanks!

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