Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

SAP MONITOR New! Popular

Rating
0 votes
Favoured:
0
Current Version
3.2.4
Compatible With
  • Nagios 1.x
  • Nagios 2.x
  • Nagios 3.x
  • Nagios 4.x
  • Nagios XI
  • Nagios Fusion
  • Nagios Reactor
  • Nagios Network Analyzer
  • Nagios Log Server
Twitter Handle
https://twitter.com/moore_software
License
GPL
Hits
3505
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
A small monitoring tool to check sap base health. The tool reads the SAP CCMS values and check it to your defined thresholds. The exit codes are best uses with Icinga / Nagios monitoring. It based on the SAP RFC SDK 7.50 for the SAP communication. first download and configure SAP RFC SDK https://support.sap.com/en/product/connectors/nwrfcsdk.html Than use simple "make" command for comipling (pay attention to the library path in the Makefile). Here is also a "sap authorization role" transport for the SAP system. Simple import the transport request to use minimum permisions for the sap_mon monitoring user.
A small monitoring tool to check sap base health.
The tool reads the SAP CCMS values and check it to your defined thresholds.
The exit codes are best uses with Icinga / Nagios monitoring.
It based on the SAP RFC SDK 7.50 for the SAP communication.
first download and configure SAP RFC SDK
https://support.sap.com/en/product/connectors/nwrfcsdk.html
Than use simple "make" command for comipling (pay attention to the library path in the Makefile).
Here is also a "sap authorization role" transport for the SAP system.
Simple import the transport request to use minimum permisions for the sap_mon monitoring user.

The progam can check in CCMS for "Performance attribute", "Status attribute", "Log attribute" and "Object description/Text attribute".
You can of course use a SAP router string, to connect to your host. Just put the sap route string instead of hostname.
You can also use sap_mon for your SAP base health without any other monitoring system or the giant monster "SAP Solution Manager" .
For example a simple commandline email notification one-liner:
" while true; do sap_mon -check -username= -password= -hostname= -sid= -sysnum= -client= -monitor='AL1saplnx_AL1_01OperatingSystemFilesystems/tmpFreespace' -warn=4000 -critical=2999 &> /dev/null && echo success || echo "Free Space in /tmp is CRITICAL" | mail -s "sap_mon free space is critical" software.moore@gmail.com; date; sleep 60 ; done "

It also checks for ABAP dumps, aboted background jobs, the expiration date of the x509 certificate in the list and do a RFC connection test.
Also testet with zabbix.
The following RFC connection types are working: type 3 / G / I / T / X .

#######################################################
Tested with following components:

compiler version: g++ (GCC) 11.2.0
RFCSDK: SAP NetWeaver RFC SDK 7.50 Patch Level 7
OS: openSUSE 15.3
Kernel: 4.20.16-default

SAP Verion:
SAP ERP 6.0 with EHP8 FOR SAP ERP 6.0
SAP_BASIS 750 0001 SAPK-75001INSAPBASIS SAP Basis Component
SAP_ABA 750 0001 SAPK-75001INSAPABA Cross-Application Component
kernel release 753 patch number 700

DB2 Version:
DB2 v11.5.5.0", "special_5354",
#######################################################

Usage:

sap_mon -show = show all available SAP monitors according to RZ20
sap_mon -show -username= -password= -hostname= -sid= -sysnum= -client=

sap_mon -check = checks the CCMS from the given monitor.
"-warn" and "-crtical" are optional and can simply be omitted.
sap_mon -check -username= -password= -hostname= -sid= -sysnum= -client= -monitor='RZ20 Monitor Propertie Name' -warn= -critical=
sap_mon -check -username= -password= -hostname= -sid= -sysnum= -client= -monitor='RZ20 Monitor Propertie Name'

sap_mon -checkall = checks the CCMS from the given monitor with all submonitors.
sap_mon -checkall -username= -password= -hostname= -sid= -sysnum= -client= -monitor='SAP CCMS Monitor TemplatesBuffers'

sap_mon -aborted-job = See the last aborted background jobs in the system
sap_mon -aborted-job -username= -password= -hostname= -sid= -sysnum= -client=

sap_mon -abap-dump = Shows the last ABAP dump
sap_mon -abap-dump -username= -password=> -hostname= -sid= -sysnum= -client=

sap router connection string:
sap_mon -abap-dump -username= -password=> -hostname=/H//S//H/ -sid= -sysnum= -client=

syntax: /H//S//H/
saproutetab entry:
P

sap_mon -sslview = x509 SAP certificats list overview (determine certificate subject for singel certificate check -sslcheck)
sap_mon -sslview -username= -password=> -hostname= -sid= -sysnum= -client=

sap_mon -sslcheck = Check a single certifikcate in the list for its expiration date.
sap_mon -sslcheck -username= -password=> -hostname= -sid= -sysnum= -client= -subjectname='' -warn=30 -critical=15

sap_mon -rfc = RFC Connection Test
sap_mon -rfc -username= -password=> -hostname= -sid= -sysnum= -client= -rfcdestination=''




If you have any question or suggestions or you want special modifications for your use case, don't hesitate to contact me software.moore@gmail.com