[op5-users] PNP and Nacoma Questions
Per Åsberg
perasb at op5.com
Wed Jul 22 12:59:34 CEST 2009
Joe Precious skrev:
>> Ninja uses iframes for add-ons like PNP4Nagios, Nacoma, etc.
>> The links should open within Ninja by default so something must be wrong here.
>> How did you configure your 'pnp4nagios_path' in config.php?
>> What does the link look like in the browser? Could you send an example?
>> It should be something like
>> https://<server_address>/ninja/index.php/pnp/?host=<selected_host> for hosts.
>>
> I did have the path's wrong. I changed them and now I get the correct
> icon, with the correct link when I hover over it, but when I click on
> it, and get an error (with the Ninja iframe) saying /etc/pnp/index.php
> cannot be found. I have the following in my config file:-
>
> /**
> * Web path to Pnp4nagios
> * If installed, change path below or set to false if not
> */
> $config['pnp4nagios_path'] = '/usr/local/nagios/share/perfdata';
>
> /**
> * File system path to where PNP keeps the perfdata rrd and xml files
> * Only used if 'pnp4nagios_path' !== false
> */
> $config['pnp4nagios_config_path'] = '/usr/local/nagios/etc/pnp/config.php';
>
> Something must be wrong though! I have restarted Nagios since making
> the config changes.
Yes, something is wrong. pnp4nagios_path should contain the web path and
should point to the directory where pnp has index.php (and of course it has to
be accessible from the webroot). If you used the Nagios quickstart
installation at http://nagios.sourceforge.net/docs/3_0/quickstart.html I would
assume something like /nagios/pnp but you should check your setup.
Regards,
/Per
More information about the op5-users
mailing list