UPS Monitoring: Include of the APC MIBs

Posted by on Feb 13, 2012 in Nagios Plugins | Keine Kommentare

An update of the previous script for monitoring the UPS health status includes now also the APC MIB base. ( Blog article )

The monitoring features for APC include now the monitoring of the Battery capacity %, Temperature and voltage. A comparison against the settable limits in terms of input lines ( availability ) and the load on the output lines ( load in % ).

The call configuration

/usr/lib/nagios/plugins/ -H -C public -T apcups -f -O 70,80 -A 210

(nagios) OK – All seems fine Batt. Level: 97 % Batt.: 215 V Load1: 15 % Load2: 6 % Load3: 31 % Input1 233 V Input2 232 V Input3 236 V| capacity=97;80;50;0;100 batt_temp=33;45;55;0;100 batt_volt=215;0;210;; load1=15;70;80;0;100 load2=6;70;80;0;100 load3=31;70;80;0;100 in_voltage1=233;210;0;0;380 in_voltage2=232;210;0;0;380 in_voltage3=236;210;0;0;380

Command returned exit status 0

The used arguments are: -f ( enable perfdata ), -O to set the warning and critical limit of the load on the output lines, -A the lower limit of the acceptable Voltage ( this value is used for Battery voltage and input lines ).

The warning/critical values for battery temp are by default 45 and 55, its capacity 80% and 50%

Monitoring results

The performance graphs obtained from the command call for battery capacity, temperature and voltage:

The input load ( 3 lines ):

The output line load ( capacity usage % ):





Integration of SAP solution manager – CCMS

Posted by on Feb 13, 2012 in Allgemein | Keine Kommentare

The monitoring of SAP environments requires the application of a specific strategy to access and verify key monitoring variables. SAP provides for this purpose a dedicated data interface – the CCMS interface. This is an open data-exchange interface allowing to communicate through an external source with the SAP-environment.

For NetEye we have adapted the opensource sap-ccms-plugin ( ). Fixed a few formatting and output particularities for Nagios, the scripts are now able to query multiple monitoring objects from the remote SAP system and giving a structured output separted by Check result details and performance data. Packed within a ready-to use RPM for RedHat EL5 i386 the package is ready for further depolyment on the current NetEye configurations.

After the redhat’s standard rpm installation ( rpm -ivh neteye-sap-ccms-0.8.0-1.i386.rpm ) the package places two configuration files within the /etc/sapmon/ folder: login.cfg and agent.cfg

The first is used for the configuration of the credentials towards the sap system and the second for the configuration of the SAP monitoring objects.

SAP CCMS pluing example configuration

Let’s define the login.cfg by defining a Login_<login_name>  item.
-d <SID> -u <user> -p <passwd> -c <mandant> -h <hostname/ip> -s <system-id>

A subsequent monitoring object definition would look like this to check for tablespace usage:

That’s it! Now we define a check_sap providing 2 arguments: The template and the login ID. All together defined in Nagios, the configuration and the output would look like this:

Activated in Nagios the check results and the tablespace free resources performance graphs would  look like:

NetEye SAP plugin Download RPM


The SOURCE RPM to be recompiled on different plattforms than RHEL 5 i386: