SNMP Traps for SAP Solution Manager on Nagios

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
nerdgz
Posts: 28
Joined: Mon Feb 10, 2014 10:21 am

SNMP Traps for SAP Solution Manager on Nagios

Post 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
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: SNMP Traps for SAP Solution Manager on Nagios

Post 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
nerdgz
Posts: 28
Joined: Mon Feb 10, 2014 10:21 am

Re: SNMP Traps for SAP Solution Manager on Nagios

Post 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
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: SNMP Traps for SAP Solution Manager on Nagios

Post by Box293 »

Can you please post your /etc/snmp/snmptt.conf file
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
nerdgz
Posts: 28
Joined: Mon Feb 10, 2014 10:21 am

Re: SNMP Traps for SAP Solution Manager on Nagios

Post 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
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: SNMP Traps for SAP Solution Manager on Nagios

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
nerdgz
Posts: 28
Joined: Mon Feb 10, 2014 10:21 am

Re: SNMP Traps for SAP Solution Manager on Nagios

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: SNMP Traps for SAP Solution Manager on Nagios

Post by scottwilkerson »

@nerdgz - It sounds like you found a solution to your issue.

Can we close this issue?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
nerdgz
Posts: 28
Joined: Mon Feb 10, 2014 10:21 am

Re: SNMP Traps for SAP Solution Manager on Nagios

Post by nerdgz »

Hello scottwilkerson,

Yes, this issue can be closed.

Many thanks to everybody for the help.
Locked