Changes

From Amahi Wiki
Jump to: navigation, search
829 bytes added ,  21:02, 17 July 2011
no edit summary
If you have any questions then please contact me.
-- [[User:Sag47|Sag47]] 1314:2702, 17 July 2011 (PDT)
= What is Icinga? =
#Don't forget to move </VirtualHost> from the middle to the end of the file
vim 1002-icinga.conf
rm pnp4nagios.conf
service httpd restart}}
Visit http://icinga/pnp4nagios/ and make sure all tests pass. Then remove the install.php file.
=== Integrating PNP4Nagios into Icinga ===
Read [http://docs.pnp4nagios.org/pnp-0.6/webfe PNP4Nagios documentation] for integrating PNP4Nagios into the Icinga Classic web interface. Read the [http://docs.icinga.org/1.2.0/en/icinga-web-pnp.html Icinga documentation] for integrating PNP4Nagios into the new Icinga Web 2.0 interface.
==== Classic Interface ====
Add the following lines to the top of ''/usr/local/icinga/etc/objects/templates.cfg''
{{Text|Text=
<pre><nowiki>define host{
name host-pnp
action_url /pnp4nagios/index.php/graph?host=$HOSTNAME$&srv=_HOST_
register 0
}
 
define service{
name srv-pnp
action_url /pnp4nagios/index.php/graph?host=$HOSTNAME$&srv=$SERVICEDESC$
register 0
}</nowiki></pre>}}
Edit /usr/local/icinga/etc/objects/templates.cfg and within the ''generic-host'' definition add the following line underneath "''name generic-host''".
{{Text|Text=
<pre><nowiki>use host-pnp</nowiki></pre>}}
Edit /usr/local/icinga/etc/objects/templates.cfg and within the ''generic-service'' definition add the following line underneath "''name generic-service''".
{{Text|Text=
<pre><nowiki>use srv-pnp</nowiki></pre>}}
61

edits