Check_HP plugin installation and use
Re: Check_HP plugin installation and use
do the permissions look correct?
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Check_HP plugin installation and use
Lets go back to basics. Before we even start talking about Nagios configurations lets ensure the plugin runs from the command line.
On your Nagios box:
Where public is the SNMP community name on your HP server.
What output do you get?
On your Nagios box:
Code: Select all
su nagios
/usr/local/nagios/libexec/check_hp -H IP_of_HP_server -C publicWhat output do you get?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Check_HP plugin installation and use
All I get is:
"bash: /usr/local/nagios/libexec/check_hp: Permission Denied"
"bash: /usr/local/nagios/libexec/check_hp: Permission Denied"
Re: Check_HP plugin installation and use
I tried with several different hosts just in case it was the SNMP permissions on the remote server but it made no difference.
I CAN use the built in "check_SNMP" function in Nagios which works ok with the remote windows server I'm trying to use "check_HP" with so I'm assuming I've configured SNMP correctly on the remote server.
I CAN use the built in "check_SNMP" function in Nagios which works ok with the remote windows server I'm trying to use "check_HP" with so I'm assuming I've configured SNMP correctly on the remote server.
Re: Check_HP plugin installation and use
Something is not adding up here.
When you say you can use the check_SNMP function, do you mean you can run the check_snmp plugin from the command line as the nagios user? Are the permissions the same on that plugin?
When you say you can use the check_SNMP function, do you mean you can run the check_snmp plugin from the command line as the nagios user? Are the permissions the same on that plugin?
Former Nagios employee
Re: Check_HP plugin installation and use
Yes and yes.
It's completely baffled me as well. Just to clarify how I installed the plugin:
1. downloaded the .tar archive from Nagios exchange on a windows PC.
2. transferred the archive over to the nagios server.
3. placed the check_hp file into the nagios plugins directory.
thats it. Is there any steps i've missed here?
P.S. I used a windows PC to download the archive because I didn't know how to with Linux.
It's completely baffled me as well. Just to clarify how I installed the plugin:
1. downloaded the .tar archive from Nagios exchange on a windows PC.
2. transferred the archive over to the nagios server.
3. placed the check_hp file into the nagios plugins directory.
thats it. Is there any steps i've missed here?
P.S. I used a windows PC to download the archive because I didn't know how to with Linux.
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Check_HP plugin installation and use
Can you try this command:
the -d is a debug mode which should show us some more information.
Code: Select all
su nagios
/usr/local/nagios/libexec/check_hp -H IP_of_HP_server -C public -dAs of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Check_HP plugin installation and use
This is what I get once I've run the debug command:
"bash: /usr/local/nagios/libexec/check_hp: /usr/lib/nagios/plugins: bad interpreter: Permission denied"
so looks like its referencing the plugin in a different directory?
"bash: /usr/local/nagios/libexec/check_hp: /usr/lib/nagios/plugins: bad interpreter: Permission denied"
so looks like its referencing the plugin in a different directory?
Re: Check_HP plugin installation and use
Can you attach a copy of the plugin here for us to review?
Former Nagios employee
Re: Check_HP plugin installation and use
From the first page you were asked to make this change:
Change that to the following (which is default):
Then run this on your command line:
this should be nagios:nagios for user:group
Code: Select all
use lib "/usr/lib/nagios/plugins";
Code: Select all
use lib "/usr/local/nagios/libexec";
Code: Select all
ll -s /usr/local/nagios/libexec/utils.pm/Luke