Archives For

Wer sich schon mit dem Thema “SAP Überwachung” beschäftigt hat, kennt wahrscheinlich das SAP-eigene CCMS und die dazugehörige Transaktion RZ20. Es gibt eine Reihe vorgefertigten Prüfungen (die sogennante “Monitoring Templates”) die interessante Messwerte aus den SAP-Systeme liefern. Diese gehen von Festplatten oder Datenbank Füllgrad bis zum Applikations-Antwortzeit, und viel mehr.

Der erfahrene Admin kommt sofort auf die Idee, die Ergebnisse in dem Unternehmensübergreifenden Monitoringsystem weiterzuleiten. Damit bekommt er eine einheitliche Problemansicht und kann seine Alarmierungskette (Mail, SMS, Voice usw.) einfach weiter verwenden. Aber wie können wir die Daten am einfachsten anzapfen? Das Plugin check_sap kann diese Daten aus dem CCMS rausholen und in Icinga/Nagios 3 Multiline-Format zeigen. Die aktuelle Version des Plugins kann jetzt mit dem Klassischen RFC oder mit dem neueren NetWeaver SDK kompiliert werden. Das ganze ist natürlich schnell, 64-bit kompatibel, Unicode fähig, und einfach zu benutzen!

Die Installation ist ganz einfach:

  • RFC SDK von http://service.sap.com runterladen und entpacken
  • Die Bibliotheken unter lib nach /usr/local/lib oder ähnliches kopieren
  • ldconfig aufrufen
./configure --with-rfc-headers=/pfad/zu/sdk/include --with-rfc-libs=/usr/local/lib
make
make install

(siehe auch die Datei README)

Anbindung SAP

Als erstes sollte ein RFC-Benutzer mit passenden Rechten angelegt werden (siehe die Tabelle unter https://www.netways.org/projects/check-sap/wiki).

Wenn alles funktioniert liefert den Plugin die SAP-Version:

~/ /usr/local/libexec/check_sap --host saphost --sysnr 00 --client 000 --dest SID --user NAGIOS --pass nagios --mode sapinfo
Connected to SAP release 701

Weitere Beispiele sind wie immer unter NETWAYS.ORG zu finden

6.thumbnail SAP Überwachung mit Nagios und Icinga

Autor: William Preston

William schreibt nur unter Androhung von körperlicher Gewalt für dieses Blog und auch das sympathische Foto entstand nur durch den Einsatz eines Betäubungsgewehrs. Normalerweise ist der gebürtige, aber längst vollständig eingedeutschte Franzose, ähh Engländer als Consultant für Nagios und Icinga bei unseren Kunden unterwegs.

Those of you who have been following the ongoing development of NoMa in the GIT repository
know that there are lots of exciting new features in the 2.x series; SQLite support, an improved configuration interface, a powerful timeframe concept, and much more.

Now finally we’ve packaged it all into a release 2.0.2 (with an installer, and updated documentation icon smile NoMa release 2.0.2 ) available at http://www.netways.org/projects/noma/files

Many thanks go to Rune “TheFlyingCorpse” Darrud and Sebastian Wolf for all their hard work
on the project.

6.thumbnail NoMa release 2.0.2

Autor: William Preston

William schreibt nur unter Androhung von körperlicher Gewalt für dieses Blog und auch das sympathische Foto entstand nur durch den Einsatz eines Betäubungsgewehrs. Normalerweise ist der gebürtige, aber längst vollständig eingedeutschte Franzose, ähh Engländer als Consultant für Nagios und Icinga bei unseren Kunden unterwegs.

Chances are you will at some point need to monitor a switch, and the Nagios community offers many plugins to do this.

Because no two setups are exactly the same, there are two interface checks actively maintained by NETWAYS which are designed for very different environments.

The first plugin was designed for monitoring large numbers of switches over low-bandwidth links, and is optimized for minimal system load.

check_interfaces (www.netways.org/projects/check-interfaces)
check interface 300x176 Switch monitoring via SNMP

* very fast c-based plugin
* uses bulk get mode to reduce traffic
* runs on embedded appliances
* no external status files required
* SNMP v1, 2c and 3 supported
* 10GB port support
* fully integrated into Nagios 3 / Icinga
* 64 bit counter support
* Interface aliases
* Human-readable bandwidth measurement
* PNP compatible output


The second plugin is orientated towards large switches, and offers a graphical overview of the switch status.

check_interface_table_v2 (www.netways.org/projects/plugins/files)
check interface table v2 Switch monitoring via SNMP

* adapted from check_interface_table from ITdesign
* Perl-based plugin
* Separate colour HTML overview
* Monitor switch ports for changes
* VLAN support
* 64 bit counter support
* Interface aliases
* Human-readable bandwidth measurement
* PNP compatible output

Both are naturally GPL-Licensed and available for download from the usual places.

6.thumbnail Switch monitoring via SNMP

Autor: William Preston

William schreibt nur unter Androhung von körperlicher Gewalt für dieses Blog und auch das sympathische Foto entstand nur durch den Einsatz eines Betäubungsgewehrs. Normalerweise ist der gebürtige, aber längst vollständig eingedeutschte Franzose, ähh Engländer als Consultant für Nagios und Icinga bei unseren Kunden unterwegs.

sap SAP monitoring simplifiedMonitoring SAP systems with Nagios or Icinga has been possible for a while with the SAP CCMS plugin hosted on SourceForge. It has some nice features, has however also a rather unusual configuration method which makes it difficult to work with.

And it doesn’t support unicode SAP systems. This problem was important, because we needed to connect to a Unicode system. Looking at the code, It seemed to be easier to start afresh with a brand-new plugin and take the opportunity to make the program more compliant with Nagios and Icinga. New features that it offers are:

  • fast
  • resource friendly
  • easy to compile
  • can connect to unicode SAP-Systems
  • runs on 64-bit Linux
  • has a simple command-line configuration
  • switches to multi-line output (Nagios 3 compatible)
  • has full-path matching capability
  • outputs graphable performance data
  • list mode allows easy searching for monitoring objects

You can find more details and download check_sap at netways.org.

6.thumbnail SAP monitoring simplified

Autor: William Preston

William schreibt nur unter Androhung von körperlicher Gewalt für dieses Blog und auch das sympathische Foto entstand nur durch den Einsatz eines Betäubungsgewehrs. Normalerweise ist der gebürtige, aber längst vollständig eingedeutschte Franzose, ähh Engländer als Consultant für Nagios und Icinga bei unseren Kunden unterwegs.

Sometimes when testing a Nagios Plugin on the command line, it’s useful to know the exit code.
You can always use echo $?, but that becomes tedious if you have to type it often.
Additionally you have to remember what the exit codes mean.

The following snippet adds a prompt that changes colour according to the exit code; 0 is green, 1 is yellow, 2 is red and 3 is grey. This makes it easy to see at a glance what the exit code was.

Add the following to a file e.g. debug.sh

export colormap=([0]=32 [1]=33 [2]=31 [3]=37)
export PS1='\[\e[${colormap[$?]}m\]\u@\h:\w\$\[\e[30m\] '

Then source it in .bashrc or on the command line with

source debug.sh

and enjoy.


nagios@localhost:~$ ./check_plugin 192.168.0.1
OK - 1824 bytes in 0.002 seconds
nagios@localhost:~$ ./check_plugin 192.168.0.2
Unable to open TCP socket
nagios@localhost:~$

6.thumbnail Quick Tip: Testing Nagios Plugins

Autor: William Preston

William schreibt nur unter Androhung von körperlicher Gewalt für dieses Blog und auch das sympathische Foto entstand nur durch den Einsatz eines Betäubungsgewehrs. Normalerweise ist der gebürtige, aber längst vollständig eingedeutschte Franzose, ähh Engländer als Consultant für Nagios und Icinga bei unseren Kunden unterwegs.

Page 1 of 212