Re: HP SiteScope - How to configure SNMP Traps (1279 Views)
Reply
Valued Contributor
RYU123
Posts: 346
Registered: ‎10-09-2012
Message 1 of 25 (1,287 Views)
Accepted Solution

HP SiteScope - How to configure SNMP Traps

Dear Experts,

I am currently using Sis 11.22 installed on RHEL.

I dont have too much experience with SNMP Traps.

Can someone please tell me how would I configure Sis to recieve the SNMP traps so I can create the monitor in SiteScope?

Or at least can someone please guide me to some documentation on this?

 

Any advice is very much appreciated.

Thanks,

Please use plain text.
HP Expert
Gunnar_L
Posts: 303
Registered: ‎05-22-2012
Message 2 of 25 (1,279 Views)

Re: HP SiteScope - How to configure SNMP Traps

Hi,

 

You can find the information about how to configure SNMP preferences on "Using SiteScope Guide" starting at page 763

 

Best Regards,

Gunnar López
HP Support
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
Please use plain text.
Valued Contributor
RYU123
Posts: 346
Registered: ‎10-09-2012
Message 3 of 25 (1,238 Views)

Re: HP SiteScope - How to configure SNMP Traps

Thanks Gunnar for the reply.
Well I understand how to create the snmp trap monitor and stuff.
Right now we are currently trying to have snmp traps sent from another monitoring application to SiteScope.
How do I know if the trap was sent or not as of right now there is no snmptrap.log or something?

I have been trying to send snmp traps to SiteScope but am not sure if SiteScope is receiving it.

Any advice is very much appreciated.
Thanks,
Please use plain text.
HP Expert
Gunnar_L
Posts: 303
Registered: ‎05-22-2012
Message 4 of 25 (1,223 Views)

Re: HP SiteScope - How to configure SNMP Traps

Hi,

 

Using the SNMP trap monitor you should be able to see if trap was sent to SIS, this monitor will read the trap.

 

Best Regards,

Gunnar López
HP Support
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
Please use plain text.
Valued Contributor
RYU123
Posts: 346
Registered: ‎10-09-2012
Message 5 of 25 (1,210 Views)

Re: HP SiteScope - How to configure SNMP Traps

So will Sis automatically create the snmptrap.log file or something?

Since we have more than one Sis instance, I would like to send a snmp trap test from one Sis to another.

However when setting up the "Send SNMP Trap preferences" and then testing to see if the trap was sent, I get this error message

 

"The SNMP Trap could not be sent. The error was: internal error (java.lang.IllegalArgumentException: No enum constant com.mercury.sitescope.ui.monitors.snmp.SnmpVersion.)"

 

Can someone please help me to be able to send a snmp trap test?

Thanks,

Please use plain text.
HP Expert
Gunnar_L
Posts: 303
Registered: ‎05-22-2012
Message 6 of 25 (1,202 Views)

Re: HP SiteScope - How to configure SNMP Traps

Hi,

 

Are you able to send a test mtrap after configure the default SNMP preferences?

 

Please verify that the SNMP version and OID are correct.

 

Best Regards,

Gunnar López
HP Support
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
Please use plain text.
Valued Contributor
RYU123
Posts: 346
Registered: ‎10-09-2012
Message 7 of 25 (1,198 Views)

Re: HP SiteScope - How to configure SNMP Traps

i am unable to send a snmp trap test message after configuring the default snmp preferences.
I entered snmp version 2 but where in the preferences does it ask for an OID? And sorry if this may sound like a stupid question, but what OID would I enter?

Thanks,
Please use plain text.
HP Expert
Gunnar_L
Posts: 303
Registered: ‎05-22-2012
Message 8 of 25 (1,190 Views)

Re: HP SiteScope - How to configure SNMP Traps

That depends on what you want to monitor.

 

To test you can use the SiS default values: use the "Generic SNMP trap ID" and "Preconfigured SNMP object ID"

 

Best Regards,

Gunnar López
HP Support
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
Please use plain text.
Valued Contributor
RYU123
Posts: 346
Registered: ‎10-09-2012
Message 9 of 25 (1,187 Views)

Re: HP SiteScope - How to configure SNMP Traps

Thanks Gunnar,

I currently have configured as

SNMP trap ID: Generic SNMP trap ID           Link Down

SNMP object ID:Pre-configured SNMP object ID              HP SiteScope Event

 

but still unable to send snmp traps.

 

Sorry if I may sound new, but basically I would like to send a snmp trap test message from one SiteScope to another.

Our SiteScopes are installed on RHEL and they are all virtual machines.

 

Any help on this is very much appreciated.

Thanks,

Please use plain text.
HP Expert
Gunnar_L
Posts: 303
Registered: ‎05-22-2012
Message 10 of 25 (1,181 Views)

Re: HP SiteScope - How to configure SNMP Traps

Please try with version 1, then please check the error.log file and let me know if there is any message related to SNMP in there.

 

Best Regards,

Gunnar López
HP Support
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
Please use plain text.
Valued Contributor
RYU123
Posts: 346
Registered: ‎10-09-2012
Message 11 of 25 (1,175 Views)

Re: HP SiteScope - How to configure SNMP Traps

This is the message I get in the error.log file after trying to send a snmp trap test message.

 

2013-12-26 12:44:32,833 [http-8080-Processor24] (SNMPUtils.java:330) ERROR - No enum constant com.mercury.sitescope.ui.monitors.snmp.SnmpVersion.
Please use plain text.
HP Expert
Gunnar_L
Posts: 303
Registered: ‎05-22-2012
Message 12 of 25 (1,163 Views)

Re: HP SiteScope - How to configure SNMP Traps

Would you please install SiS 11.23?

 

Change Request: QCCR1I76967
Error is displayed when an SNMP Trap test is performed   from SNMP Preferences > Default Settings.

 

Several errors were fix on this version, some of them are related to SNMP.

 

Remember before to apply any patch you have to Stop SiS service, create a backup at least of groups and persistency folders and then apply the patch.

 

Best Regards,

Gunnar López
HP Support
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
Please use plain text.
Valued Contributor
RYU123
Posts: 346
Registered: ‎10-09-2012
Message 13 of 25 (1,150 Views)

Re: HP SiteScope - How to configure SNMP Traps

Ok thanks for the reply.

I have downloaded a snmptrap receiver program and installed it on our SiteScope windows instance.

I had one of our other SiteScope instances send a snmp trap to the SiteScope windows instance.

The snmp trap receiver picked up the test message, however, the snmptrap.log file was never created

in the SiteScope Windows instance.

My understanding is if SiteScope receives a trap, it should automatically create a snmptrap.log file.


Can someone please tell me what I need to do so Sis will create that snmptrap.log file?

 

Thanks,

Please use plain text.
Valued Contributor
RYU123
Posts: 346
Registered: ‎10-09-2012
Message 14 of 25 (1,144 Views)

Re: HP SiteScope - How to configure SNMP Traps

Thanks Gunnar,
Nevermind, I think I got it working. Once I created a snmptrap monitor, it automatically created a snmptrap.log file.
Please use plain text.
Valued Contributor
RYU123
Posts: 346
Registered: ‎10-09-2012
Message 15 of 25 (1,143 Views)

Re: HP SiteScope - How to configure SNMP Traps

Ok well let me take that back. I got it working so that our windows sitescope instance is receiving the traps, however, i am still having trouble with our linux sitescope instances receiving the traps.

Thanks,

Please use plain text.
Valued Contributor
RYU123
Posts: 346
Registered: ‎10-09-2012
Message 16 of 25 (1,137 Views)

Re: HP SiteScope - How to configure SNMP Traps

Ok I got SiteScope to create the snmptrap.log file.

Now when I run the snmptrap monitor and then try to look at the snmptrap.log file

I get

 

 

couldn't open udp:162 -- errno 13 ("Permission denied")

 


Can someone please explain to me why am I getting this error message?

Thanks,

Please use plain text.
HP Expert
Gunnar_L
Posts: 303
Registered: ‎05-22-2012
Message 17 of 25 (1,124 Views)

Re: HP SiteScope - How to configure SNMP Traps

Hi,

 

That means that port 162 is blocked by a firewall.

 

Best Regards,

Gunnar López
HP Support
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
Please use plain text.
Valued Contributor
RYU123
Posts: 346
Registered: ‎10-09-2012
Message 18 of 25 (1,120 Views)

Re: HP SiteScope - How to configure SNMP Traps

Thanks Gunnar,

Well when one of the SiteScope instances sends an snmp trap message to another SiteScope instance, I am able to see the message in /var/log/messages. However I am unable to see the snmp trap message in the SiteScope snmptrap.log file.

 

So I am not sure if it is blocked by a firewall or something.

 

Can anyone please explain?

Thanks,

Please use plain text.
HP Expert
Gunnar_L
Posts: 303
Registered: ‎05-22-2012
Message 19 of 25 (1,112 Views)

Re: HP SiteScope - How to configure SNMP Traps

The traps shows in there are the traps SiS is receiving, in which instance are you looking this log?

 

Best Regards,

Gunnar López
HP Support
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
Please use plain text.
Valued Contributor
RYU123
Posts: 346
Registered: ‎10-09-2012
Message 20 of 25 (1,110 Views)

Re: HP SiteScope - How to configure SNMP Traps

I am having a Linux SiteScope instance send snmptraps to another Linux SiteScope instance.

When I log in to the Linux SiteScope instance that received the snmptrap, I can see the trap message 

that was sent in the /var/log/messages.log file

I also redirected the snmp trap to send the message to {SiteScope directory}logs/snmptrap.log file

 

Created the snmptrap log monitor in the SiteScope instance that received the trap.

Then tried to view the snmptrap.log file from the Sitescope Gui and that is when I get the 

error message:

 

couldn't open udp:162 -- errno 98 ("Address already in use")

 

 

Please use plain text.
HP Expert
Gunnar_L
Posts: 303
Registered: ‎05-22-2012
Message 21 of 25 (1,097 Views)

Re: HP SiteScope - How to configure SNMP Traps

Would you please verify with your Linux admin if that por is available and open in your organization and in this domain to send/receive traps?

 

Best Regards,

Gunnar López
HP Support
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
Please use plain text.
Valued Contributor
RYU123
Posts: 346
Registered: ‎10-09-2012
Message 22 of 25 (1,094 Views)

Re: HP SiteScope - How to configure SNMP Traps

Well I mean my understanding is that it should be open because the snmp trap was sent and logged into the "/var/log/messages" file.

Please use plain text.
Valued Contributor
RYU123
Posts: 346
Registered: ‎10-09-2012
Message 23 of 25 (1,090 Views)

Re: HP SiteScope - How to configure SNMP Traps

Ok Gunnar,

I got it working.

Well I guess originally I had trouble getting it to work so I tried starting the snmptrapd service and basically that service was taking up the port 162.

So eventually I just tried stopping the service and restarted Sis then eventually it worked.

Thanks,

Please use plain text.
Valued Contributor
RYU123
Posts: 346
Registered: ‎10-09-2012
Message 24 of 25 (1,086 Views)

Re: HP SiteScope - How to configure SNMP Traps

Im sorry but now the issue is that I need to be root in order for this snmp trap to work.
Does anyone know what permissions are required so that I can restart the sis service using the sitescope user?

Thanks,
Please use plain text.
Valued Contributor
RYU123
Posts: 346
Registered: ‎10-09-2012
Message 25 of 25 (1,079 Views)

Re: HP SiteScope - How to configure SNMP Traps

Ok finally got it working.
For some reason maybe port 162 must be accessed by root, so after changing the port to 1993, it worked.
Now I am able to send snmp traps to both my linux and windows sitescope instances.
Thanks,
Please use plain text.
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