SAP CCMS nagio plugin configuration
werner.flamme at ufz.de
Thu May 8 09:31:49 MET DST 2008
PiCo [06.05.2008 15:00]:
> I'm trying to use the CCMS nagios plugin to monitor some SAP system.
So do I :-)
> I'm having problem because seems that something missing in the configuration.
> This is my situation:
> 1. nagios (2.9) is installed and operative
doesn't matter here ;-)
> 2. nagios plugin (1.4.9) is installed and operative.
> 3. nagios CCMS plugin (0.7.3) is installed on plugin directory
> 4. nagios CCMS plugin config file is located on
> /usr/local/nagios/etc/sapmon/ (but I have tryed also with /etc/sapmon/)
/etc/sapmon is best, something is hardcoded to use this dir. Maybe a
simple symlink (ln -s /usr/local/nagios/etc/sapmon/ /etc/sapmon) helps.
Syntax: /usr/lib/nagios/plugins/check_sap_cons <Template> <RFC-Template>
<Template> defined in /etc/sapmon/agent.cfg
<RFC-Template> defined in /etc/sapmon/login.cfg
So, the config is expected in /etc/sapmon
> 5. example of agent.cfg:
> DESCRIPTION="Load Average"
> MONI_SET_NAME="SAP CCMS Admin Workplace"
> MONI_NAME="Operating System"
Hmhm. That's what was running with NW 2004. On NW2004s, this does not
seem to work, I have to use numeric template identifiers.
MONI_SET_NAME = "SAP CCMS Technical Expert Monitors"
MONI_NAME = "All Contexts on Local Application Server"
PATTERN_0 = "*\PSAPSR3USR\Free space"
./check_sap_cons 47110815 SOM
creates the response:
SOM Oracle PSAPSR3USR Free space 9998 MB
> 6. Example of login.cfg:
> LOGIN=-d REM -u nagios -p nagios -c 300 -h 10.4.5.107 -s 00
This was a great deed of SAP :-(. You may still enter the user name in
lowercase letters, but the password must be given in capitals in
NW2004s. Of course, you have to set the password in capitals inside SAP,
too. Beginning with NW2004s, SAP differs between uppercase and lowercase
letters in the password. BTW, You *must* the password inside SAP in
uppercase letters (and/ord ciphers); for the RFC call it is translated
into uppercase automagically by RFClib... (in my case)
> If I run (from /usr/local/nagios/libexec/)
> ./check_sap_cons workload REM
> I receive this error:
> Could not initialize INI-File
> What's missing ??
This error is indeed from check_sap_cons (see "strings
/usr/local/nagios/libexec/check_sap_cons"), but I never had the error.
Maybe you have another hardcoded directory in your check_sap_cons? Use
the "strings" command uopn it...
Werner Flamme, Abt. WKDV
Helmholtz-Zentrum für Umweltforschung GmbH - UFZ
Permoserstr. 15 - 04318 Leipzig
Tel.: (0341) 235-1921 - Fax (0341) 235-451921
http://www.ufz.de - eMail: werner.flamme at ufz.de
More information about the linux.general