<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>Nachricht</TITLE>
<META content="MSHTML 6.00.2800.1522" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=316273107-16122005>Hi,</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=316273107-16122005>i
think you are not using the right syntax for the nagios.cmd file ("<FONT
face="Times New Roman" color=#000000 size=3>1 PROCESS_SERVICE_CHECK_RESULT
:winnt_host:TRAP:1:Trap received<FONT
color=#0000ff>")</FONT></FONT></SPAN></FONT></DIV>
<DIV><FONT color=#0000ff><SPAN class=316273107-16122005>It should
be:</SPAN></FONT></DIV>
<DIV><BR><FONT face=Arial color=#0000ff size=2>now=`date
+%s`<BR>commandfile='/usr/local/nagios/var/rw/nagios.cmd'</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2>/bin/printf "[%lu]
PROCESS_SERVICE_CHECK_RESULT;host1;service1;0;OK- Everything Looks Great\n" $now
> $commandfile</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><SPAN class=316273107-16122005><FONT face=Arial color=#0000ff size=2>See <A
href="http://www.nagios.org/developerinfo/externalcommands/commandlist.php">http://www.nagios.org/developerinfo/externalcommands/commandlist.php</A> for
all commands.</FONT></SPAN></DIV>
<DIV><SPAN class=316273107-16122005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=316273107-16122005><FONT face=Arial color=#0000ff
size=2>Greetz,</FONT></SPAN></DIV>
<DIV><SPAN lang=de><B><FONT face=Arial size=1>Thomas Zimmer</FONT></B></SPAN>
<BR><SPAN lang=de><FONT face=Arial size=1>Produktservice &
Betrieb</FONT></SPAN> <BR><SPAN lang=de><FONT face=Arial size=1>Betrieb &
Support</FONT></SPAN> <BR><SPAN lang=de><FONT face=Arial size=1>Sal. Oppenheim
jr. & Cie., Frankfurt a. Main</FONT></SPAN> <BR><SPAN lang=de><FONT
face=Arial size=1>Telefon: +49 69 7134 0 5192</FONT></SPAN> <BR><SPAN
lang=de><FONT face=Arial size=1>Internet: <A
href="http://www.oppenheim.de/">http://www.oppenheim.de</A></FONT></SPAN>
<BR><SPAN lang=de><FONT face=Arial color=#000000 size=1>E-Mail:
thomas.zimmer@oppenheim.de</FONT></SPAN> </DIV>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=de dir=ltr align=left><FONT face=Tahoma
size=2>-----Ursprüngliche Nachricht-----<BR><B>Von:</B>
nagios-users-admin@lists.sourceforge.net
[mailto:nagios-users-admin@lists.sourceforge.net] <B>Im Auftrag von </B>Karan
uk<BR><B>Gesendet:</B> Freitag, 16. Dezember 2005 08:26<BR><B>An:</B>
nagios-users@lists.sourceforge.net<BR><B>Betreff:</B> [Nagios-users] JMX
notifications->snmptrapd->snmptt->Nagios
Configuation<BR><BR></FONT></DIV>Hello, <BR>I was looking to configure Nagios
so that it can accept SNMP traps(JMX notification thru snmptrapd->snmptt)
and send e-mail. <BR>As per the doc's i've got snmptrapd writing the
nagios.cmd file.But configured Nagios seems to not react to the
PROCESS_SERVICE_CHECK_RESULT entries in the command file. <BR>The
configuration files i'm using are as bellow.Do let me know if i'm missing
something in the conf. or the way to make nagios execute nagios.cmd entries.
<BR>Nagios Version 1.3 <BR>nagios.cmd-- <BR>1 PROCESS_SERVICE_CHECK_RESULT
:winnt_host:TRAP:1:Trap received <BR><BR>Respective conf in nagios.cfg---
<BR>check_external_commands=1 <BR>command_check_interval=1
<BR>command_file=/usr/local/nagios/var/rw/nagios.cmd <BR>---
<BR>services.cfg-- <BR>define service{ <BR>use generic-service <BR>e template
to use <BR><BR>host_name winnt_host <BR>service_description TRAP
<BR>is_volatile 0 <BR>check_period 24x7 <BR>max_check_attempts 3
<BR>normal_check_interval 5 <BR>retry_check_interval 1
<BR>active_checks_enabled 0 <BR>passive_checks_enabled 1 <BR>contact_groups
nt-admins <BR>notification_interval 120 <BR>notification_period 24x7
<BR>notification_options w,u,c,r <BR>check_command check-host-alive <BR>}
<BR>---------- <BR>snmptt.ini--- <BR>dns_enable = 0 <BR>strip_domain = 0
<BR>net_snmp_perl_enable = 0 <BR>translate_value_oids = 0
<BR>translate_enterprise_oid_format = 1 <BR>----------
<BR>snmptrapd.conf------- <BR>traphandle default /usr/sbin/snmptt
<BR>------------- <BR><BR>thanks in advance, <BR>nkaranuk
</BLOCKQUOTE></BODY></HTML>