JMX notifications->snmptrapd->snmptt->Nagios Configuation

Karan uk nkaranuk at gmail.com
Fri Dec 16 08:26:03 CET 2005


Hello,
I was looking to configure Nagios so that it can accept SNMP traps(JMX
notification thru snmptrapd->snmptt) and send e-mail.
As per the doc's i've got snmptrapd writing the nagios.cmd
file.Butconfigured Nagios seems to not react to the
PROCESS_SERVICE_CHECK_RESULT
entries in the command file.
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.cmdentries.
Nagios Version 1.3
nagios.cmd--
1 PROCESS_SERVICE_CHECK_RESULT :winnt_host:TRAP:1:Trap received

Respective conf in nagios.cfg---
check_external_commands=1
command_check_interval=1
command_file=/usr/local/nagios/var/rw/nagios.cmd
---
services.cfg--
define service{
use generic-service
e template to use

host_name winnt_host
service_description TRAP
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
active_checks_enabled 0
passive_checks_enabled 1
contact_groups nt-admins
notification_interval 120
notification_period 24x7
notification_options w,u,c,r
check_command check-host-alive
}
----------
snmptt.ini---
dns_enable = 0
strip_domain = 0
net_snmp_perl_enable = 0
translate_value_oids = 0
translate_enterprise_oid_format = 1
----------
snmptrapd.conf-------
traphandle default /usr/sbin/snmptt
-------------

thanks in advance,
nkaranuk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20051216/0333374c/attachment.html>


More information about the Users mailing list