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
Action URL
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
Re: Action URL
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?
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?
-
- Posts: 30
- Joined: Tue Dec 11, 2012 10:06 am
Re: Action URL
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?
How can I test if is a macro problem or pnp4nagios problem?
-
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Action URL
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.
-
- Posts: 30
- Joined: Tue Dec 11, 2012 10:06 am
Re: Action URL
Nagios XI version: 2012R1.5b
Yes we try to install pnp4nagios over the existing...
Yes we try to install pnp4nagios over the existing...
-
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Action URL
Lets try re installing PNP, Can you re download Nagios XI, then un tar the tarball and run the pnp script?:
Then:
Let us know how it looks after this. Thanks!
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
Code: Select all
service ndo2db start
service nagios start
service httpd start
-
- Posts: 30
- Joined: Tue Dec 11, 2012 10:06 am
Re: Action URL
Problem solved. Thank you!!
-
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Action URL
Excellent, closing and marking as resolved.