On Dec 18, 2007 10:35 AM, Roger <[EMAIL PROTECTED]> wrote:

> I recently installed PNP for Nagios and am having problems with the RRD
> output displaying. I installed Nagios 2.10 from package on CentOS 4 (via
> RPMforge). Everything works well with NagiosQL.
>
> Per this doc, http://www.ederdrom.de/pnp/doc_complete
>
> I downloaded the PNP code and ran "./configure" and then "make all && make
> install" This, by default, installed everything into /usr/local/nagios/pnp/
>
> I made a sym link: ln -s /usr/local/nagios/share/pnp /var/www/html/pnp
> (because the PHP front end files are located there)
>
> And I also made the default checks that the documentation told me to make
> the following changes in /etc/nagios/nagios.cfg
>
>  process_performance_data=1
>
>
>  service_perfdata_command=process-service-perfdata
>
> And in NagiosQL, I made the following definitions in  the commands -
> CheckCommands section.
>
> define command {
>   command_name    process-service-perfdata
>   command_line    /usr/bin/perl /usr/local/nagios/libexec/process_perfdata.pl
> }
>
> define command {
>   command_name    process-host-perfdata
>   command_line    /usr/bin/perl /usr/local/nagios/libexec/process_perfdata.pl 
> -d HOSTPERFDATA
> }
>
>
> And in NagiosQL's specialty - Service Ext Info, I made the following entry
> (modified for my environment)
>
> define serviceextinfo {
>   host_name             mybox.mydomain.com
>   service_description   check_load
>   action_url            
> /nagios/pnp/index.php?host=$HOSTNAME$&srv=$SERVICEDESC$
> }
>
>
> Now when I got to http://nagiosBox/pnp <http://nagiosBox/nagios/pnp> I get
> the following error: "Hostname is not set".
>
> Where do I set this HOSTNAME variable? Is this part of the Service Ext
> Info part?  Or is this parameter somehow not being properly passed to the
> PNP/PHP scripts?
>

I redid the ./configure command to match my CentOS environment for Nagios
2.10

./configure --prefix=/usr/local/nagios/

and then redid the aformentioned command lines in the service definitions to
match the path to the new perl scripts.  Then I went back in my checks in
NagiosQL and checked the "performance data" box.

I'm assuming all I have to do now is just let the rrd files generate
themselves now?

(I ran an 'ls' in the /usr/local/nagios/share/perfdata folder, but no
folders by the same of hostnames, like I'm expecting)
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Nagios-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Reply via email to