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