Page 1 of 1

SNMP Traps for SAP Solution Manager on Nagios

Posted: Wed Jul 22, 2015 6:07 am
by nerdgz
Hello Everyone,
SAP Solution Manager is configured to send SNMP to my Nagios Server. Now is the question which plugin i can use to get the data from SNMP to NAgios. Seems that are some plugins out there and i don't know which will be the right one for monitoring SAP systems.

If somebody have some experience with that i would like to know some hints about it.

Cheers

Re: SNMP Traps for SAP Solution Manager on Nagios

Posted: Wed Jul 22, 2015 11:00 am
by ssax
You should be able to use the install script if you are running RHEL/CentOS from this guide (even though it says XI, it will work for Core), it will also give you an overview of how it works:

https://assets.nagios.com/downloads/nag ... ios_XI.pdf

Re: SNMP Traps for SAP Solution Manager on Nagios

Posted: Tue Sep 22, 2015 8:15 am
by nerdgz
Hello Everyone,
the SAP Solution Manager is sending snmp traps to Nagios, however i cannot add some kind of configuration to Nagios...

The SAP systems connect to the Solution Manager and it sends the traps to Nagios servers with OID .1.3.6.1.4.1.694.1.1.6.2.60

After configuring the snmp, this is what i received:

Tue Sep 22 13:06:44 2015 .1.3.6.1.4.1.694.1.1.6.2.60 Normal "Status Events" srv0001 - Generic SAP Solution Manager MAI Alert 'srv0150' 'HOST' '0017A47704401ED598A397FE15A48C37' '20150922' '112619' 'High Disk I/O' 'HOST_DISK_IO_ALERT' 'n/a' 'PERFORM' 3 2 '0017A47704401ED3938336854C25E371' 'C' 3 2

how can i add this to NAgios Core?

I was following this documentation, but unfortunately is in German...:(

http://www.monitoring-portal.org/wbb/in ... adID=29278

Regards

Re: SNMP Traps for SAP Solution Manager on Nagios

Posted: Tue Sep 22, 2015 3:47 pm
by Box293
Can you please post your /etc/snmp/snmptt.conf file

Re: SNMP Traps for SAP Solution Manager on Nagios

Posted: Wed Sep 23, 2015 1:03 am
by nerdgz
Hello box293,

This is my snmtt.conf

EVENT r3maiTrap .1.3.6.1.4.1.694.1.1.6.2.60 "Status Events" Normal
FORMAT Generic SAP Solution Manager MAI Alert $*
SDESC
Generic SAP Solution Manager MAI Alert
Variables:
1: r3maiAlertMOName
2: r3maiAlertMOType
3: r3maiAlertId
4: r3maiAlertDate
5: r3maiAlertTime
6: r3maiAlertName
7: r3maiAlertTechnicalName
8: r3maiAlertDescription
9: r3maiAlertCategory
10: r3maiAlertRating
11: r3maiAlertSeverity
12: r3maiAlertMetricName
13: r3maiAlertMetricValue
14: r3maiAlertMOId
15: r3maiAlertStatus
16: r3maiAlertReasonClosure
17: r3maiAlertPriority
EDESC
~
Cheers

Re: SNMP Traps for SAP Solution Manager on Nagios

Posted: Wed Sep 23, 2015 9:49 am
by Box293
You are going to need an EXEC line which is responsible for submitting a passive check result to Nagios. Something like:

Code: Select all

EVENT r3maiTrap .1.3.6.1.4.1.694.1.1.6.2.60 "Status Events" Normal
FORMAT Generic SAP Solution Manager MAI Alert $*
EXEC /usr/local/bin/snmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "$-*" "Generic SAP Solution Manager MAI Alert $*"
SDESC
Generic SAP Solution Manager MAI Alert
Variables:
1: r3maiAlertMOName
2: r3maiAlertMOType
3: r3maiAlertId
4: r3maiAlertDate
5: r3maiAlertTime
6: r3maiAlertName
7: r3maiAlertTechnicalName
8: r3maiAlertDescription
9: r3maiAlertCategory
10: r3maiAlertRating
11: r3maiAlertSeverity
12: r3maiAlertMetricName
13: r3maiAlertMetricValue
14: r3maiAlertMOId
15: r3maiAlertStatus
16: r3maiAlertReasonClosure
17: r3maiAlertPriority
EDESC

Re: SNMP Traps for SAP Solution Manager on Nagios

Posted: Tue Sep 29, 2015 7:32 am
by nerdgz
Hello Everyone,

I was not capable of translate the information of snmp to Nagios, so to let it work via SAP Solution Manager i use the NSCA and passive checks to Nagios.. really easy..

Adjust your SaP solution to send data via nsca... and create your own host and services on Nagios via passive check.

Cheers

Re: SNMP Traps for SAP Solution Manager on Nagios

Posted: Tue Sep 29, 2015 2:01 pm
by scottwilkerson
@nerdgz - It sounds like you found a solution to your issue.

Can we close this issue?

Re: SNMP Traps for SAP Solution Manager on Nagios

Posted: Wed Sep 30, 2015 1:37 am
by nerdgz
Hello scottwilkerson,

Yes, this issue can be closed.

Many thanks to everybody for the help.