Action URL

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
rbaholding
Posts: 30
Joined: Tue Dec 11, 2012 10:06 am

Action URL

Post by rbaholding »

Good morning,

We have installed pnp4nagios. We need action URL to see perf data from our Host, but $HOSTNAME$ macro in action URL doesn't works.

For example: action URL definition for host is: /pnp4nagios/index.php/graph?host=$HOSTNAME$&srv=_HOST_

The result is always: perfdata directory "/usr/local/pnp4nagios/var/perfdata/$HOSTNAME$" for host "$HOSTNAME$" does not exist

If we change $HOSTNAME$ for host name manually works fine.

What are we doing wrong?

Regards
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Action URL

Post by scottwilkerson »

First, is this an XI install (as you are posting in the XI forum)

If so, pnp4nagios is installed by default and if you installed a different version this could cause other problems.

What version of Nagios are you running?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
rbaholding
Posts: 30
Joined: Tue Dec 11, 2012 10:06 am

Re: Action URL

Post by rbaholding »

Yes is a Nagios XI installation. We want to use Action URLs but $HOSTNAME$ macro don't works

How can I test if is a macro problem or pnp4nagios problem?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Action URL

Post by slansing »

What version of Nagios XI are you using? Did you try to install PNP 4 NAGIOS over Nagios XI? Or are you using the included version.
rbaholding
Posts: 30
Joined: Tue Dec 11, 2012 10:06 am

Re: Action URL

Post by rbaholding »

Nagios XI version: 2012R1.5b

Yes we try to install pnp4nagios over the existing...
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Action URL

Post by slansing »

Lets try re installing PNP, Can you re download Nagios XI, then un tar the tarball and run the pnp script?:

Code: Select all

service ndo2db stop

service nagios stop

service httpd stop

Code: Select all

cd /tmp

rm -rf xi* nagiosxi

wget http://assets.nagios.com/downloads/nagiosxi/2012/xi-2012r1.5b.tar.gz

tar -zxf xi-2012r1.5b.tar.gz

cd nagiosxi/subcomponents/pnp/install
Then:

Code: Select all

service ndo2db start

service nagios start

service httpd start
Let us know how it looks after this. Thanks!
rbaholding
Posts: 30
Joined: Tue Dec 11, 2012 10:06 am

Re: Action URL

Post by rbaholding »

Problem solved. Thank you!!
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Action URL

Post by slansing »

Excellent, closing and marking as resolved.