Systems Insight Manager
cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot Recieve events from linux server through snmp trap

AnnaSIM
Advisor

Cannot Recieve events from linux server through snmp trap

Hello Forum ,

Trying to solve this problem for couple of days now ,

I cannot get traps from the linux servers I'm monitoring ,

Each of them configured to send traps to the hpsim server,

All ports are open in both servers , Agents are installed, snmp trap is set 

What am I probably missing ?

Please help ! I'm afraid to be losing hope

Thanks !!

10 REPLIES
Andrew_Haak
Honored Contributor

Re: Cannot Recieve events from linux server through snmp trap

HEllo again,

So is there a firewall between your server and the SIM server? Did you configure the ip adress of your SIM server or did you use the name and if so can this name be resolved? What is the generation of the server that you want to monitor ?
Kind regards,

Andrew
AnnaSIM
Advisor

Re: Cannot Recieve events from linux server through snmp trap

Hello :)

So there is no firewall between them ,

The servers I'm trying to monitor are between G6 to 9, while most of them are G7

in all of them I configured snmp trap with the IP address ,

maybe I'll use some program like wireshark to check if I'm getting traps from those servers to the hpsim server.

Thanks !

 

 

 

Andrew_Haak
Honored Contributor

Re: Cannot Recieve events from linux server through snmp trap

does your snmpd.conf look like ? If you logon to a HP SMH you can send a test trap to see if communication is working,

Go to Settings >  SNMP & Agent Settings, If you look at the Trap screen could you post a screenshot of this screen. You can also push the Send Test Trap button.

 

Kind regards,

Andrew
AnnaSIM
Advisor

Re: Cannot Recieve events from linux server through snmp trap

you have saved me lot of time with your tip to send a snmp trap using SMH, so thanks a lot for that ,

Ok so i used the trap and I followed the network live capture , and i didn't get anything from the source managed server.

So i will put here the configuration , maybe the mistake is not adding community string to the trap ?

I thought it should work withoug the community string ,

Here is the config:

 Following entries were added by HP Insight Management Agents at
#      Mon Feb 27 15:19:04 IST 2017
dlmod cmaX /usr/lib64/libcmaX64.so
rwcommunity public 127.0.0.1
rocommunity public localhost
rocommunity public localhost
rocommunity public
#trapsink mydwhpsim01.hpeswlab.net 16.59.50.71
trapsink  16.59.50.71
syscontact _sim_service
syslocation myd_test1

 

Is something wrong over here?

Thank you once again

 

AnnaSIM
Advisor

Re: Cannot Recieve events from linux server through snmp trap

So I'm pretty sure that the problem is the configuration of the trap setting on the linux server,

Is there some documentery how to configure traps on linux servers ?

I have tried to use the sim tools , like repair and install agents, but they won't work - guess the hpsim is not update for this version of linux server.

 

Thanks

Andrew_Haak
Honored Contributor

Re: Cannot Recieve events from linux server through snmp trap

Hello again,

 

I've got the following rule for traps: 

trapsink 192.168.1.10 public

Do you have SNMP for a protocol and do you have SNMP info for that server?

 

Kind regards,

Andrew
AnnaSIM
Advisor

Re: Cannot Recieve events from linux server through snmp trap

I have SNMP protocol , and i do receive info for that server in SNMP

The only problem is for traps

Andrew_Haak
Honored Contributor

Re: Cannot Recieve events from linux server through snmp trap

Try to put public behind your trapsync after the name of your SIM server. That is the DNS name for your SIM server right?
Kind regards,

Andrew
AnnaSIM
Advisor

Re: Cannot Recieve events from linux server through snmp trap

Yes... Have tried to put the public, but still no luck with that. 

Thanks 

Andrew_Haak
Honored Contributor

Re: Cannot Recieve events from linux server through snmp trap

I've check my config and pasted it below and this works for me. I changed my specific info to a general 192.168.1.10 for my SIM server:

com2sec localRO 127.0.0.1 public
com2sec localRW 127.0.0.1 private
com2sec sec_simRO 192.168.1.10 public
group group_localRO v1 localRO
group group_localRO v2c localRO
group group_localRW v1 localRW
group group_localRW v2c localRW
group group_simRO v1 sec_simRO
view all included .1
access group_localRO "" any noauth exact all none none
access group_localRW "" any noauth exact all all none
access group_simRO "" any noauth exact all none none
dlmod cmaX /usr/lib64/libcmaX64.so
dontLogTCPWrappersConnects 1
trapcommunity public
trapsink 192.168.1.10 public
syscontact Root@localhost
syslocation Here

Kind regards,

Andrew