Re: NNMi SNMP traps are not received (689 Views)
Reply
Occasional Advisor
DanielJanzon
Posts: 9
Registered: ‎03-04-2014
Message 1 of 6 (757 Views)

NNMi SNMP traps are not received

Hello :)

I have installed NNMi v9.20 on RedHat 6.5 in order to monitor SNMP traps, but it doesn't work. I have unchecked "Discard Unresolved SNMP Traps and Syslog Messages" under Configuration -> Incidents -> Incident Configuration. I have loaded the relevant MIB and added the trap under Configuration -> Incidents -> SNMP Trap Configurations.

SNMP polling seems to work as I can view the Node Component Gauges under Inventory -> Nodes.

According to the netstat command, the process "ovjboss" is listening on UDP port 162, which is the SNMP trap port.

If I run "/opt/OV/bin/nnmtrapdump.ovpl -short -t" I get nothing, but "tcdump -i eth0 udp port 162" proves the trap is indeed entering the system.

I see nothing strange in the log files under "/var/opt/OV/log/nnm" but one thing is strange, although I don't know the significance of it:

 

[root@darkstar nnm]# cat /var/opt/OV/log/Ovfqdn_log.txt
FATAL: Permission denied at /opt/OV/nonOV/perl/a/lib/site_perl/5.8.8/OVfqdn.pm line 148.
Failed to get IP address:Permission denied at /opt/OV/nonOV/perl/a/lib/site_perl/5.8.8/OVfqdn.pm line 148.
[root@darkstar nnm]# 

 

 The overall status seems to be fine:

[root@darkstar nnm]# /opt/OV/bin/ovstatus
 object manager name: OVsPMD
 state:               RUNNING
 PID:                 6050
 last message:        -
 exit status:         -

 object manager name: pmd
 state:               RUNNING
 PID:                 6051
 last message:        Initialization complete.
 exit status:         -

 object manager name: nnmaction
 state:               RUNNING
 PID:                 6544
 last message:        Initialization complete.
 exit status:         -

 object manager name: nmsdbmgr
 state:               RUNNING
 PID:                 6052
 last message:        Database available.
 exit status:         -

 object manager name: ovjboss
 state:               RUNNING
 PID:                 6080
 last message:        Initialization complete.
 exit status:         -

 So... how can I troubleshoot this?

Best regards,

Daniel

 

Occasional Advisor
KungFlow
Posts: 14
Registered: ‎06-19-2010
Message 2 of 6 (740 Views)

Re: NNMi SNMP traps are not received

Ok, hopefully your Linux enviro's are set, that do you see when you run ovstatus -v ovjboss?

NNMi and Arcsight...Keeping a watchful EYE on what other products fail to SEE!!!
Occasional Advisor
DanielJanzon
Posts: 9
Registered: ‎03-04-2014
Message 3 of 6 (734 Views)

Re: NNMi SNMP traps are not received

Hi KungFlow,

 

I didn't set any Linux environment variables myself. Do I need to? The status is this:

 

[root@darkstar ~]# /opt/OV/bin/ovstatus -v ovjboss
 object manager name: ovjboss
 state:               RUNNING
 PID:                 6080
 last message:        Initialization complete.
 exit status:         -
 additional info:
            SERVICE                                 STATUS
            CommunicationModelService               Service is started
            CommunicationParametersStatsService     Service is started
            CustomPoller                            Service is started
            IslandSpotterService                    Service is started
            ManagedNodeLicenseManager               Service is started
            MonitoringSettingsService               Service is started
            NamedPoll                               Service is started
            NmsApa                                  Service is started
            NmsCustomCorrelation                    Service is started
            NmsDisco                                Service is started
            NmsEvents                               Service is started
            NmsEventsConfiguration                  Service is started
            NmsExtensionNotificationService         Service is started
            NmsTrapReceiver                         Service is started
            NnmTrapService                          Service is started
            PerformanceSpiConsumptionManager        Service is started
            RbaManager                              Service is started
            SpmdjbossStart                          Service is started
            StagedIcmp                              Service is started
            StagedSnmp                              Service is started
            StatePoller                             Service is started
            TrapConfigurationService                Service is started
            TrapPropertiesService                   Service is started
            TrustManager                            Service is started


[root@darkstar ~]#

 

Advisor
Kristoffers
Posts: 14
Registered: ‎02-27-2014
Message 4 of 6 (709 Views)

Re: NNMi SNMP traps are not received

We have the same problem as you described here, im still in the process of investigating it but will update if i find a solution for my problem.

Occasional Advisor
DanielJanzon
Posts: 9
Registered: ‎03-04-2014
Message 5 of 6 (703 Views)

Re: NNMi SNMP traps are not received

Hi Kristoffers,

 

Thanks! I haven't progressed anything yet. I have tried to monitor the suspicious processes with strace to see what goes wrong after a trap comes in, but I haven't seen any action at all.

 

I have no good ideas how to troubleshoot further :/  But if I happen to solve it, I'll post my findings here.

Occasional Advisor
DanielJanzon
Posts: 9
Registered: ‎03-04-2014
Message 6 of 6 (689 Views)

Re: NNMi SNMP traps are not received

Ok so it was a stupid error afterall. I didn't realize Redhat Linux comes with a firewall enabled by default. So I added a line

-A INPUT -p udp --dport 162 -j ACCEPT

 into /ets/sysconfig/iptables and ran "service iptables reload".

 

That was it.

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.