Nagios Grapher
From SME Server
| Languages: |
English |
| | Not reviewed: |
| This howto or contrib has not been reviewed and might contain code that could harm your installation. For more information on the review process have a look at the Development Review page. |
Contents |
[edit] Maintainer
Michael Weinberger
[edit] Introduction
The Nagios Grapher is a Nagios addon that collects performance data and represents these as graphs. Read more...
This contrib installs the Netways Nagios Grapher v1.6.1-rc5 and requires Nagios installed, configured properly and running.
| NagiosGrapher serverroom temperatures graphic screenshot |
[edit] Download
Download the RPM from http://mirror.contribs.org/smeserver/contribs/michaelw/sme7/nagiosgrapher
[edit] Installation
[edit] Configure the dag repositoy
The following command will configure the dag repository on SME Server.
/sbin/e-smith/db yum_repositories set dag repository \ Name 'Dag - EL4' \ BaseURL 'http://apt.sw.be/redhat/el4/en/$basearch/dag' \ EnableGroups no \ GPGCheck yes \ GPGKey http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt \ Visible no \ Exclude freetype,htop,iptraf,rsync,syslinux \ status disabled
After adding it to the database we have to update the changes to the configuration file:
expand-template /etc/yum.conf
[edit] Installation of the Nagios Grapher package
/usr/bin/yum --enablerepo=dag localinstall smeserver-nagiosgrapher-*-0.noarch.rpm
[edit] Configuration
You need to edit serveral configuration files:
in /etc/nagios/nagios.cfg add/modify
cfg_dir=/etc/nagios/serviceext process_performance_data=1 service_perfdata_command=process-service-perfdata
in /etc/nagios/commands.cfg add/modify
define command {
command_name process-service-perfdata
command_line /usr/share/nagios/fifo_write.pl /var/log/nagios/rw/ngraph.pipe '$HOSTNAME$\t$SERVICEDESC$\t$SERVICEOUTPUT$\t$SERVICEPERFDATA$\n' 3
}
Create files in /etc/nagios/ngraph.d to configure the graphs. You may use the files in /etc/nagios/ngraph.d/samples/ as a starting point. Also consult the documentations in /usr/share/nagios/nagiosgrapher/doc/CONFIG and the links listed in the References section below.
This contribs has the file /etc/nagios/ngraph.d/cpuload.ncfg included which generates a graph for service definitons where the service descriptions contains the word "load". This works 'out of the box'.
Finally restart the services:
service nagiosgrapher restart service nagios restart
[edit] Uninstall
This removes the installed NagiosGrapher package.
/usr/bin/yum erase smeserver-nagiosgrapher
[edit] References
- SME Server Contrib Nagios
- Nagios Grapher homepage: http://www.nagiosexchange.org/NagiosGrapher.84.0.html
- Nagios Grapher download; http://www.nagiosexchange.org/Charts.42.0.html?&tx_netnagext_pi1%5Bp_view%5D=195
- Nagios Grapher mentioned in a Nagios book: "Nagios : system and network monitoring / Wolfgang Barth / ISBN 1-59327-070-4", Chapter 17.5
- A German HowTo: http://www.nagios-wiki.de/doku.php/nagios/howtos/nagiosgrapher
- Nagios Grapher on netways.de http://www.netways.de/nc/de/produkte/nagios/integrationsloesungen/nagiosgrapher/?sword_list%5B%5D=nagiosgrapher


