Professional Documents
Culture Documents
Summary
This paper describes the steps to install a monitoring solution based on Nagios. SAP CCMS monitors can be uploaded and monitored from within this application.
Author Bio
Pascal Bombardier has 10 years of experience in ERP consulting, integration and development. His competences ranges from Operating systems to ERP software, from functional analysis to implementation and development. He is working for BULL company and currently joined the SAP Linuxlab as a hardware partner, where he certifies SAP software components on Bull hardware.
Table of Contents
1.Nagios Pre-requisites.....................................................................................................................................3 2.Nagios installation..........................................................................................................................................3 3.Centreon Pre-requisites.................................................................................................................................4 4.Centreon Installation......................................................................................................................................4 5.SAP plugins compilation................................................................................................................................5 6.Configuration Example...................................................................................................................................6 7.Application Views...........................................................................................................................................7
1.Nagios Pre-requisites
Check that the following packages are installed :
yum yum yum yum install install install install httpd gcc glibc glibc-common gd gd-devel
2.Nagios installation
Nagios QuickStart http://nagios.sourceforge.net/docs/3_0/quickstart-fedora.html Create nagios account
/usr/sbin/useradd -m nagios passwd nagios /usr/sbin/groupadd nagcmd /usr/sbin/usermod -G nagcmd nagios /usr/sbin/usermod -G nagcmd apache
3.Centreon Pre-requisites
Install rrdtool from EPEL website
wget http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-53.noarch.rpm rpm -Uvh epel-release-5-3.noarch.rpm yum install rrdtool
Start Mysql
4.Centreon Installation
tar xvf centreon-1.4.2.7.tar.gz ./install.sh ... Where is installed RRD perl modules [RRDs.pm] ? /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi
Goto http://SERVER/centreon/
php pear extensions failed
Upload the Nagios configuration files from the server /usr/local/nagios/etc to the client PC
nagios.cfg cgi.cfg resource.cfg objects/*
Configure service performance collection in nagios.cfg In Centreon, goto Configuration / Nagios / Nagios CFG
and set
Performance Data Processing Option Yes Service Performance Data Processing Command process-service-perfdata Service Performance Data File /usr/local/nagios/var/service-perfdata
printf("%s %s %s %s %s | %s=%s\n",nodes[j].Mtsysid, nodes[j].Mtmcname, nodes[j].Objectname, nodes[j].Mtnameshrt, nodes[j].currentValue, nodes[j].Mtnameshrt, nodes[j].currentValue); ... # make
Installation
# cp sap_moni.so /lib64 # cp check_sap check_sap_cons check_sap_instance check_sap_instance_cons check_sap_multiple check_sap_mult_no_thr check_sap_system check_sap_system_cons /usr/local/nagios/libexec/ # chown apache:nagios /usr/local/nagios/libexec/* # cp -a config /etc/sapmon
6.Configuration Example
Adjust login.cfg to login to the systems
7.Application Views
Welcome screen
Service View
Hosts View
Reporting Screen
Host Graphics
Related Content
Please include at least three references to SDN documents or web pages. SAP on Linux https://www.sdn.sap.com/irj/sdn/linux https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/792dd957-0d01-0010-319be1211e5c66b0 https://www.sdn.sap.com/irj/sdn/forum?forumID=189 Supported Platforms