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

This support forum board is for support questions relating to Nagios xi, our flagship commercial network monitoring solution.
allentsong
Posts: 10
Joined: Mon Jun 13, 2011 3:45 pm

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

Post by allentsong »

I need help to setup nagios xi to listen for cisco syslog message. The snmp trap wizard does not do anything.
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

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

Post 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.
Nicholas Scott
Former Nagios employee
allentsong
Posts: 10
Joined: Mon Jun 13, 2011 3:45 pm

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

Post by allentsong »

I use the wizard, but I noticed the "check command" drop box has nothing selected.
allentsong
Posts: 10
Joined: Mon Jun 13, 2011 3:45 pm

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

Post 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"
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

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

Post 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.
Nicholas Scott
Former Nagios employee
allentsong
Posts: 10
Joined: Mon Jun 13, 2011 3:45 pm

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

Post 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
allentsong
Posts: 10
Joined: Mon Jun 13, 2011 3:45 pm

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

Post 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..."
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

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

Post by nscott »

Allen, I send you and email. Please indicate which medium you want to keep this thread going on. :)
Nicholas Scott
Former Nagios employee