[op5-users] PNP4Nagios and Ninja = anyone have instructions/guide to setting it up?
Mirza Dedic
mirde at oppy.com
Fri Jul 31 20:38:17 CEST 2009
Looks like everything works ok now.. I made the changes as per your initial message and it did not work... I left and came back about 2hrs later to test it again, and it works..
Confused, but it works :)
-----Original Message-----
From: op5-users-bounces at lists.op5.com [mailto:op5-users-bounces at lists.op5.com] On Behalf Of Mirza Dedic
Sent: July/31/2009 7:17 AM
To: 'Mailinglist for op5's products'
Subject: Re: [op5-users] PNP4Nagios and Ninja = anyone have instructions/guide to setting it up?
I tried to change the path to:
/**
* Web path to Pnp4nagios
* If installed, change path below or set to false if not
*/
$config['pnp4nagios_path'] = '/nagios/pnp/';
/**
* 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';
But it still does not work, when I try to click a graph it just opens another instance of Ninja within the iframe.
My PNP4Nagios ./configure output was:
Nagios user/group: nagios nagios
Install directory: /usr/local/nagios
HTML Dir: /usr/local/nagios/share/pnp
Config Dir: /usr/local/nagios/etc/pnp
Location of rrdtool binary: /usr/bin/rrdtool Version 1.2.19
RRDs Perl Modules: FOUND (Version 1.2019)
RRD Files stored in: /usr/local/nagios/share/perfdata
process_perfdata.pl Logfile: /usr/local/nagios/var/perfdata.log
Perfdata files (NPCD) stored in: /usr/local/nagios/var/spool/perfdata/
Just to confirm..
['pnp4nagios_path']
This is supposed to be the web path to PNP? So if I can view PNP graphs with http://mydns/nagios/pnp/
The webpath is /nagios/pnp/ ??
I have also tried.. /nagios/share/pnp/
After the change, should anything be restarted? I assume since this is a php file, it will get updated and the front-end GUI should see the changes the next time you click on a service and then click on the graph icon.
Thanks.
-----Original Message-----
From: op5-users-bounces at lists.op5.com [mailto:op5-users-bounces at lists.op5.com] On Behalf Of Johannes Dagemark
Sent: July/30/2009 11:48 PM
To: Mailinglist for op5's products
Subject: Re: [op5-users] PNP4Nagios and Ninja = anyone have instructions/guide to setting it up?
Hi Mirza
Mirza Dedic wrote:
> I would like to update on this..
>
> I have PNP4Nagios/RRDTools and nagios.cfg/commands.cfg configured correctly, I can see PNP4Nagios working fine when I point my browser to:
>
> http://van-nagios-new/nagios/pnp/
>
> I see the graphs.
>
> But in Ninja, when I click on the graph icon, it just opens another Ninja website within the iframe I guess..
>
> The link looks like:
>
> http://van-nagios-new/ninja/index.php/pnp/?host=van-sql01
>
> But when you click it, it only opens another instance of Ninja GUI.
>
> My Config.php for Ninja is:
>
> /**
> * Web path to Pnp4nagios
> * If installed, change path below or set to false if not
> */
> $config['pnp4nagios_path'] = TRUE;
>
change this to the web path where pnp is located, in my case
$config['pnp4nagios_path'] = '/monitor/op5/pnp/';
> /**
> * File system path to where PNP keeps the perfdata rrd and xml files
> * Only used if 'pnp4nagios_path' !== false
> */
> $config['pnp4nagios_config_path'] = '/nagios/pnp';
>
change this to the location of the pnp config file
$config['pnp4nagios_config_path'] = '/opt/monitor/etc/pnp/config.php';
I see the comment here is a bit missleading... I'l fix that
Cheers
Johannes
>
> I have tried:
>
> /usr/local/nagios/share/pnp
>
> http://van-nagios-new/nagios/pnp
>
> and /share/pnp
>
> Any ideas?
>
> Thanks.
>
> -----Original Message-----
> From: op5-users-bounces at lists.op5.com [mailto:op5-users-bounces at lists.op5.com] On Behalf Of Mirza Dedic
> Sent: July/30/2009 2:39 PM
> To: 'op5-users at lists.op5.com'
> Subject: [op5-users] PNP4Nagios and Ninja = anyone have instructions/guide to setting it up?
>
> Hi list,
>
> Want to further test Ninja by implementing PNP4Nagios, I noticed in the Config.php there are options to enable it; and also it is being used in the OP5 online demo of Ninja.
>
> Does anyone have a guide on installing PNP4Nagios and getting it working with Ninja?
>
>
>
> Currently I have enabled in my nagios.cfg I have enabled performance file generation:
>
> # HOST AND SERVICE PERFORMANCE DATA PROCESSING COMMANDS
> host_perfdata_command=process-host-perfdata
> service_perfdata_command=process-service-perfdata
>
> # HOST AND SERVICE PERFORMANCE DATA FILES
> host_perfdata_file=/tmp/host-perfdata
> service_perfdata_file=/tmp/service-perfdata
>
> # HOST AND SERVICE PERFORMANCE DATA FILE TEMPLATES
> host_perfdata_file_template=[HOSTPERFDATA]\t$TIMET$\t$HOSTNAME$\t$HOSTEXECUTIONTIME$\t$HOSTOUTPUT$\t$HOSTPERFDATA$
> service_perfdata_file_template=[SERVICEPERFDATA]\t$TIMET$\t$HOSTNAME$\t$SERVICEDESC$\t$SERVICEEXECUTIONTIME$\t$SERVICELATENCY$\t$SERVICEOUTPUT$\t$SERVICEPERFDATA$
>
> # HOST AND SERVICE PERFORMANCE DATA FILE MODES
> host_perfdata_file_mode=a
> service_perfdata_file_mode=a
>
> # HOST AND SERVICE PERFORMANCE DATA FILE PROCESSING INTERVAL
> host_perfdata_file_processing_interval=0
> service_perfdata_file_processing_interval=0
>
> # HOST AND SERVICE PERFORMANCE DATA FILE PROCESSING COMMANDS
> host_perfdata_file_processing_command=process-host-perfdata-file
> service_perfdata_file_processing_command=process-service-perfdata-file
>
> _______________________________________________
> op5-users mailing list
> op5-users at lists.op5.com
> http://lists.op5.com/mailman/listinfo/op5-users
>
>
> _______________________________________________
> op5-users mailing list
> op5-users at lists.op5.com
> http://lists.op5.com/mailman/listinfo/op5-users
>
--
Johannes Dagemark
CTO / VP Engineering
________________________________________
op5 AB
Första Långgatan 19
SE-413 27 Gothenburg
cell: +46 733-70 90 24
fax: +46 31-774 04 32
Email: jd at op5.com
http://www.op5.com/
_______________________________________________
op5-users mailing list
op5-users at lists.op5.com
http://lists.op5.com/mailman/listinfo/op5-users
_______________________________________________
op5-users mailing list
op5-users at lists.op5.com
http://lists.op5.com/mailman/listinfo/op5-users
More information about the op5-users
mailing list