Page 1 of 1

how to setup nagios xi to listen for cisco syslog message?

Posted: Mon Sep 12, 2011 9:35 pm
by allentsong
I need help to setup nagios xi to listen for cisco syslog message. The snmp trap wizard does not do anything.

Re: how to setup nagios xi to listen for cisco syslog messag

Posted: Tue Sep 13, 2011 1:23 pm
by nscott
How far along in the SNMP trap wizard did you get? That would be the best way to monitor it directly with Nagios.

Re: how to setup nagios xi to listen for cisco syslog messag

Posted: Thu Sep 15, 2011 12:43 pm
by allentsong
I use the wizard, but I noticed the "check command" drop box has nothing selected.

Re: how to setup nagios xi to listen for cisco syslog messag

Posted: Thu Sep 15, 2011 12:51 pm
by allentsong
the "snmp trap" has an additional template, called xiwizard_snmptrap_service.

When I look at the check command for "xiwizard_snmptrap_service", it shows "check_dummy"

Re: how to setup nagios xi to listen for cisco syslog messag

Posted: Fri Sep 16, 2011 1:58 pm
by nscott
Did you run the script and guidelines found in:

http://assets.nagios.com/downloads/nagi ... ith_XI.pdf

Is snmptt running?

service snmptt status

For the sake of troubleshooting snmptt lets enable logs, in the /etc/snmp/snmptt.ini change the following variables:

log_enable = 1
log_system_enable = 1
unknown_trap_log_enable = 1

Now make the dir snmptt in var/log

mkdir /var/log/snmptt
cd /var/log/snmptt
touch snmptt.log snmpttunknown.log
chmod 666 *

service snmptt restart

Now tail the logs, you should be getting your syslog messages in there, if you're not we'll have to try another route.

Re: how to setup nagios xi to listen for cisco syslog messag

Posted: Mon Sep 19, 2011 2:51 pm
by allentsong
This is what I am getting in the log:


[root@dev-nagios snmptt]# tail /var/log/snmptt/snmpttsystem.log
Mon Sep 19 13:46:19 2011 SNMPTT v1.3 started
Mon Sep 19 13:46:19 2011 Loading /etc/snmp/snmptt.conf
Mon Sep 19 13:46:19 2011 Finished loading 1203 lines from /etc/snmp/snmptt.conf
Mon Sep 19 13:46:19 2011 Could not convert user id 'snmptt' to a numeric UID

Re: how to setup nagios xi to listen for cisco syslog messag

Posted: Mon Sep 19, 2011 3:44 pm
by allentsong
From my log:
[root@dev-nagios ~]# cat /var/log/snmptt/snmptt.log
Mon Sep 19 16:23:22 2011 .1.3.6.1.4.1.2021.13.990.0.17 Normal "Status Events" localhost - This is just a demo Allen Test Msg

in nagios, localhost, SNMP Traps, "Waiting for trap..."

Re: how to setup nagios xi to listen for cisco syslog messag

Posted: Wed Sep 21, 2011 11:44 am
by nscott
Allen, I send you and email. Please indicate which medium you want to keep this thread going on. :)