[op5-users] PNP4Nagios and Ninja = anyone have instructions/guide to setting it up?

Mirza Dedic mirde at oppy.com
Fri Jul 31 02:20:00 CEST 2009


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;

/**
*       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';


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




More information about the op5-users mailing list