SOPHOS UTM 9.3 SNMP trap

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
kelti
Posts: 4
Joined: Tue Oct 20, 2015 8:48 pm

SOPHOS UTM 9.3 SNMP trap

Post by kelti »

Hi All,

We have a SOPHOS UTM 9.3 that we would like to monitor using SNMP trap. SOPHOS is providing the ASTARO-MIB.txt
We have a Nagios XI 2014r2.7-64 virtual machine.

We have added and processed the MIB with success.
We are able to receive the traps but they are going to snmpttunknown.log traps.

Anyone with similar encounter? Thank you in advance for any advice.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: SOPHOS UTM 9.3 SNMP trap

Post by tgriep »

Can you post your /etc/snmp/snmptt.conf file and the log entries that are showing up in the snmpttunknown.log file?
A quick thing to try is to restart the snmptt daemon. Try that to see if that resolves the issue.

Code: Select all

service snmptt restart
Be sure to check out our Knowledgebase for helpful articles and solutions!
kelti
Posts: 4
Joined: Tue Oct 20, 2015 8:48 pm

Re: SOPHOS UTM 9.3 SNMP trap

Post by kelti »

Hi,

Thanks.

Code: Select all

Thu Oct 22 13:57:50 2015: Unknown trap (.1.3.6.1.4.1.9789.1500) received from 10.0.0.61 at: 
Value 0: 10.0.0.61
Value 1: 10.0.0.61
Value 2: 0:1:55:14.00
Value 3: .1.3.6.1.4.1.9789.1500
Value 4: 10.0.0.61
Value 5: 
Value 6: 
Value 7: 
Value 8: 
Value 9: 
Value 10: 
Ent Value 0: .1.3.6.1.4.1.9789.1500.1.5=[utm][INFO][005]


Thu Oct 22 14:06:02 2015: Unknown trap (.1.3.6.1.4.1.9789.1500) received from 10.0.0.61 at: 
Value 0: 10.0.0.61
Value 1: 10.0.0.61
Value 2: 0:2:03:21.00
Value 3: .1.3.6.1.4.1.9789.1500
Value 4: 10.0.0.61
Value 5: 
Value 6: 
Value 7: 
Value 8: 
Value 9: 
Value 10: 
Ent Value 0: .1.3.6.1.4.1.9789.1500.1.154=[utm][INFO][154]


Thu Oct 22 14:06:07 2015: Unknown trap (.1.3.6.1.4.1.9789.1500) received from 10.0.0.61 at: 
Value 0: 10.0.0.61
Value 1: 10.0.0.61
Value 2: 0:2:03:21.00
Value 3: .1.3.6.1.4.1.9789.1500
Value 4: 10.0.0.61
Value 5: 
Value 6: 
Value 7: 
Value 8: 
Value 9: 
Value 10: 
Ent Value 0: .1.3.6.1.4.1.9789.1500.1.154=[utm][INFO][154]
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: SOPHOS UTM 9.3 SNMP trap

Post by tgriep »

Edit /etc/snmp/snmptt.conf and change this from

Code: Select all

EVENT INFO-005 .1.3.6.1.4.1.9789.1500.1.5 "Status Events" Critical
to

Code: Select all

EVENT INFO-005 .1.3.6.1.4.1.9789.1500 "Status Events" Critical
Save it out and restart snmptt

Code: Select all

service snmptt restart
For some reason, it looks like your device isn't sending the full OID. If it doesn't match, it will not get processed and it will go in to the unknown log.

Generate a TRAP and look in the Unconfigured Objects in XI and is should show up there to be configured.
Be sure to check out our Knowledgebase for helpful articles and solutions!
kelti
Posts: 4
Joined: Tue Oct 20, 2015 8:48 pm

Re: SOPHOS UTM 9.3 SNMP trap

Post by kelti »

Hi,

I generated a failed web login but it does not show in the unconfigured objects. It went to snmpttunknown.log

This is what it shows up in my trap viewer. *attached jpg file

Code: Select all

Mon Oct 26 11:03:40 2015: Unknown trap (.1.3.6.1.4.1.9789.1500) received from 10.0.0.61 at: 
Value 0: 10.0.0.61
Value 1: 10.0.0.61
Value 2: 0:0:25:15.00
Value 3: .1.3.6.1.4.1.9789.1500
Value 4: 10.0.0.61
Value 5: 
Value 6: 
Value 7: 
Value 8: 
Value 9: 
Value 10: 
Ent Value 0: .1.3.6.1.4.1.9789.1500.2.5=[utm][WARN][005]
You do not have the required permissions to view the files attached to this post.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: SOPHOS UTM 9.3 SNMP trap

Post by Box293 »

tgriep wrote:Edit /etc/snmp/snmptt.conf and change this from

Code: Select all

EVENT INFO-005 .1.3.6.1.4.1.9789.1500.1.5 "Status Events" Critical
to

Code: Select all

EVENT INFO-005 .1.3.6.1.4.1.9789.1500 "Status Events" Critical
Save it out and restart snmptt

Code: Select all

service snmptt restart
For some reason, it looks like your device isn't sending the full OID. If it doesn't match, it will not get processed and it will go in to the unknown log.

Generate a TRAP and look in the Unconfigured Objects in XI and is should show up there to be configured.
Try

Code: Select all

EVENT INFO-005 .1.3.6.1.4.1.9789.1500.* "Status Events" Critical
Save it out and restart snmptt

Code: Select all

service snmptt restart
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
kelti
Posts: 4
Joined: Tue Oct 20, 2015 8:48 pm

Re: SOPHOS UTM 9.3 SNMP trap

Post by kelti »

Hi,
I edited two OIDs and managed to see both of them surfaced at snmptt.log
I simulated a failed web login and Nagios did displayed the 'Failed WebAdmin' trap but not the 'System was restarted' trap after i restarted the utm.

Thanks.

Code: Select all

EVENT info-000 .1.3.6.1.4.1.9789.1500 "Status Events" Warning
FORMAT System was restarted $*
EXEC /usr/local/bin/snmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "$-*" "System was restarted $*"
SDESC
System was restarted
Variables:
EDESC
#
EVENT warn-005 .1.3.6.1.4.1.9789.1500 "Status Events" Critical
FORMAT Failed WebAdmin login $*
EXEC /usr/local/bin/snmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "$-*" "Failed WebAdmin login $*"
SDESC
Failed WebAdmin login
Variables:
EDESC

Code: Select all

Tue Oct 27 10:50:06 2015 .1.3.6.1.4.1.9789.1500 Critical "Status Events" 10.0.0.61 - Failed WebAdmin login [utm][WARN][005]
Tue Oct 27 10:50:06 2015 .1.3.6.1.4.1.9789.1500 Critical "Status Events" 10.0.0.61 - Failed WebAdmin login [utm][WARN][005]
Tue Oct 27 10:52:27 2015 .1.3.6.1.4.1.9789.1500 Warning "Status Events" 10.0.0.61 - System was restarted [utm][INFO][007]
Tue Oct 27 10:52:27 2015 .1.3.6.1.4.1.9789.1500 Critical "Status Events" 10.0.0.61 - Failed WebAdmin login [utm][INFO][007]
Tue Oct 27 10:52:27 2015 .1.3.6.1.4.1.9789.1500 Warning "Status Events" 10.0.0.61 - System was restarted [utm][INFO][007]
Tue Oct 27 10:52:27 2015 .1.3.6.1.4.1.9789.1500 Critical "Status Events" 10.0.0.61 - Failed WebAdmin login [utm][INFO][007]
Tue Oct 27 10:53:56 2015 .1.3.6.1.4.1.9789.1500 Warning "Status Events" 10.0.0.61 - System was restarted [utm][INFO][000]
Tue Oct 27 10:53:56 2015 .1.3.6.1.4.1.9789.1500 Critical "Status Events" 10.0.0.61 - Failed WebAdmin login [utm][INFO][000]
Tue Oct 27 10:53:56 2015 .1.3.6.1.4.1.9789.1500 Warning "Status Events" 10.0.0.61 - System was restarted [utm][INFO][000]
Tue Oct 27 10:53:56 2015 .1.3.6.1.4.1.9789.1500 Critical "Status Events" 10.0.0.61 - Failed WebAdmin login [utm][INFO][000]
You do not have the required permissions to view the files attached to this post.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: SOPHOS UTM 9.3 SNMP trap

Post by Box293 »

What is happening is that both events are being captured as they are both for the same OID:

Code: Select all

EVENT info-000 .1.3.6.1.4.1.9789.1500 "Status Events" Warning
EVENT warn-005 .1.3.6.1.4.1.9789.1500 "Status Events" Critical
Both are submitted to Nagios however the second one is overriding the first once, hence why you only see one in Nagios, the most recent one.

Your biggest problem is that you are receiving different traps on the same OID .1.3.6.1.4.1.9789.1500.
kelti wrote:

Code: Select all

Thu Oct 22 13:57:50 2015: Unknown trap (.1.3.6.1.4.1.9789.1500) received from 10.0.0.61 at: 
Value 0: 10.0.0.61
Value 1: 10.0.0.61
Value 2: 0:1:55:14.00
Value 3: .1.3.6.1.4.1.9789.1500
Value 4: 10.0.0.61
Value 5: 
Value 6: 
Value 7: 
Value 8: 
Value 9: 
Value 10: 
Ent Value 0: .1.3.6.1.4.1.9789.1500.1.5=[utm][INFO][005]


Thu Oct 22 14:06:02 2015: Unknown trap (.1.3.6.1.4.1.9789.1500) received from 10.0.0.61 at: 
Value 0: 10.0.0.61
Value 1: 10.0.0.61
Value 2: 0:2:03:21.00
Value 3: .1.3.6.1.4.1.9789.1500
Value 4: 10.0.0.61
Value 5: 
Value 6: 
Value 7: 
Value 8: 
Value 9: 
Value 10: 
Ent Value 0: .1.3.6.1.4.1.9789.1500.1.154=[utm][INFO][154]


Thu Oct 22 14:06:07 2015: Unknown trap (.1.3.6.1.4.1.9789.1500) received from 10.0.0.61 at: 
Value 0: 10.0.0.61
Value 1: 10.0.0.61
Value 2: 0:2:03:21.00
Value 3: .1.3.6.1.4.1.9789.1500
Value 4: 10.0.0.61
Value 5: 
Value 6: 
Value 7: 
Value 8: 
Value 9: 
Value 10: 
Ent Value 0: .1.3.6.1.4.1.9789.1500.1.154=[utm][INFO][154]
You may need to contact the manufacturer to find out why they traps come in this way, as they were originally correctly defined in the snmptt.conf file you supplied previously. They should come in with OID's like:
.1.3.6.1.4.1.9789.1500.2.25
.1.3.6.1.4.1.9789.1500.2.856

The fact they stop at 1500 is strange.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked