Nagiosgraph for Nagios3 on CentOS 5.6

1. cd ~/downloads/
2. download nagisgraph-*.tar.gz
3. tar xzf nagiosgraph-*.tar.gz
4. cd nagiosgraph-*/
5. ./install.pl --check-prereq
6. yum install perl-rrdtool perl-GD
7. ./install.pl with follow settings:
configuration:
ng_layout standalone
ng_prefix /usr/local/nagiosgraph
ng_etc_dir /usr/local/nagiosgraph/etc
ng_bin_dir /usr/local/nagiosgraph/bin
ng_cgi_dir /usr/local/nagiosgraph/cgi
ng_doc_dir /usr/local/nagiosgraph/doc
ng_examples_dir /usr/local/nagiosgraph/examples
ng_www_dir /usr/local/nagiosgraph/share
ng_util_dir /usr/local/nagiosgraph/util
ng_var_dir /usr/local/nagiosgraph/var
ng_rrd_dir /usr/local/nagiosgraph/var/rrd
ng_log_dir /usr/local/nagiosgraph/var
ng_log_file /usr/local/nagiosgraph/var/nagiosgraph.log
ng_cgilog_file /usr/local/nagiosgraph/var/nagiosgraph-cgi.log
ng_url /nagiosgraph
ng_cgi_url /nagiosgraph/cgi-bin
ng_css_url /nagiosgraph/nagiosgraph.css
ng_js_url /nagiosgraph/nagiosgraph.js
nagios_cgi_url /nagios/cgi-bin
nagios_perfdata_file /tmp/perfdata.log
nagios_user nagios
www_user apache
modify_nagios_config y
nagios_config_file /usr/local/nagios/etc/nagios.cfg
nagios_commands_file /usr/local/nagios/etc/objects/commands.cfg
modify_apache_config y
apache_config_dir /etc/httpd/conf.d
apache_config_file
8. chown nagios:nagios -R /usr/local/nagiosgraph
9. restart nagios und httpd
10. add menu entrys for graphs on nagios
vim /usr/local/nagios/share/side.php
add follow Entrys after "Trends"
<ul><code>
 <li><a href="/nagiosgraph/cgi-bin/show.cgi" target="main">Graphs</a></li>
 <li><a href="/nagiosgraph/cgi-bin/showhost.cgi" target="main">Graphs by Host</a></li>
 <li><a href="/nagiosgraph/cgi-bin/showservice.cgi" target="main">Graphs by Service</a></li>
 <li><a href="/nagiosgraph/cgi-bin/showgroup.cgi" target="main">Graphs by Group</a></li>
</code></ul>
Speichere in deinen Favoriten diesen permalink.

Schreibe einen Kommentar