Difference between revisions of "Nagios Grapher"

From SME Server
Jump to navigationJump to search
(link to NagiosGrapher SVN repo of graph definitions)
(Contrib no longer supported. all content removed)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{Languages}}
+
'''The Nagios Grapher contrib is no longer supported.'''
{{Needs review}}
 
  
 +
The [[Nagios]] contrib now includes the PNP graphical perfomance data analyser. PNP integrates much better into Nagios 3 than Nagios Grapher. In contrast to Nagios Grpaher, PNP is under ongoing development and much better documented.
  
=== Maintainer ===
 
Michael Weinberger
 
  
 
+
Last version version of the page: http://wiki.contribs.org/index.php?title=Nagios_Grapher&oldid=11537
=== Introduction ===
 
The [[Nagios Grapher]] is a Nagios addon that collects performance data and represents these as graphs. [http://www.nagioswiki.org/wiki/Addon:NagiosGrapher Read more...]
 
 
 
This contrib installs the Netways Nagios Grapher v1.6.1-rc5 and requires [[Nagios]] installed, configured properly and running.
 
 
 
{|
 
| [[Image:Nagiosgrapher.jpg]] || NagiosGrapher serverroom temperatures graphic screenshot
 
|}
 
 
 
=== Download ===
 
Download the RPM from http://mirror.contribs.org/smeserver/contribs/michaelw/sme7/nagiosgrapher
 
 
 
=== Installation ===
 
 
 
==== Configure the dag repositoy ====
 
{{Repository|dag}}
 
 
 
==== Installation of the Nagios Grapher package ====
 
/usr/bin/yum --enablerepo=dag localinstall smeserver-nagiosgrapher-*-0.noarch.rpm
 
 
 
To add a Nagios Grapher link into the Nagios Reporting Menu apply one of the following patches:
 
 
 
If you have the Nuvola theme installed, run:
 
patch -p0 /usr/share/nagios/side/dtree_data.js < /usr/share/nagios/nagiosgrapher/gui-patch/dtree_data.js-nagiosgrapher.patch
 
 
 
otherwise run:
 
patch -p0 /usr/share/nagios/side.html < /usr/share/nagios/nagiosgrapher/gui-patch/side.html-nagiosgrapher.patch
 
 
 
=== Configuration ===
 
You need to edit serveral configuration files:
 
 
in <tt>/etc/nagios/nagios.cfg</tt> add/modify
 
cfg_dir=/etc/nagios/serviceext
 
process_performance_data=1
 
service_perfdata_command=process-service-perfdata
 
 
 
in <tt>/etc/nagios/commands.cfg</tt> 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 <tt>/etc/nagios/ngraph.d</tt> to configure the graphs. You may use the files in <tt>/etc/nagios/ngraph.d/samples/</tt> as a starting point. Also consult the documentations in <tt>/usr/share/nagios/nagiosgrapher/doc/CONFIG</tt> and the links listed in the [http://wiki.contribs.org/index.php?title=Nagios_Grapher&action=submit#References References] section below.
 
 
 
This contribs has the file <tt>/etc/nagios/ngraph.d/cpuload.ncfg</tt> 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
 
 
 
'''Known problem:''' After install the nagiosgrapher won't start. Workaround: Start the script manually:
 
/usr/bin/perl -w /usr/share/nagios/collect2.pl
 
After the next reboot the service will start.
 
 
 
=== Usage ===
 
Point your browser to <nowiki>https://YOUR_SERVER/nagios/cgi-bin/graphs.cgi</nowiki>
 
 
 
=== Uninstall ===
 
This removes the installed NagiosGrapher package.
 
/usr/bin/yum erase smeserver-nagiosgrapher
 
 
 
=== 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
 
* [https://www.nagiosforge.org/gf/project/nagiosgrapher/scmsvn/?action=browse&path=%2F1.0%2Ftrunk%2Fdoc%2FCONFIG&view=log Nagios Grapher Documentation from SVN] (use latest revision)
 
* [https://www.nagiosforge.org/gf/project/nagiosgrapher/scmsvn/?action=browse&path=%2F1.0%2Ftrunk%2Fcfg%2Ftemplates%2F Nagios Grapher Graph Definition Files] (place the desired graph definitions into /etc/nagios/ngraph.d)
 
----
 
[[Category: Contrib]]
 
[[Category: Webapps]]
 
[[Category: Administration]]
 

Latest revision as of 08:22, 18 November 2008

The Nagios Grapher contrib is no longer supported.

The Nagios contrib now includes the PNP graphical perfomance data analyser. PNP integrates much better into Nagios 3 than Nagios Grapher. In contrast to Nagios Grpaher, PNP is under ongoing development and much better documented.


Last version version of the page: http://wiki.contribs.org/index.php?title=Nagios_Grapher&oldid=11537