Page 1 of 1
Trying to run plugin of check_p2000_api.php in Nagios XI
Posted: Tue May 14, 2019 8:04 am
by vinish098
1. We are trying to use HP MSA 2040 Storage Plugin in Nagios XI.
2. We have taken one HP MSA plugin from google.com in .php format and its not working.
3. When we run below command and its throwing error.
Command: # cd /usr/local/nagios/libexec/ (Location)
# ./check_p2000_api.php -H <Host IP> -U <username> -P <password>
error: PHP Notice: Undefined variable: e in /usr/local/nagios/libexec/check_p2000_api.php on line 117
PHP Fatal error: Call to a member function getMessage() on a non-object in /usr/local/nagios/libexec/check_p2000_api.php on line 117
4. Please find below attachments for your reference
Re: Trying to run plugin of check_p2000_api.php in Nagios XI
Posted: Tue May 14, 2019 2:36 pm
by scottwilkerson
We didn't produce this plugin so I'm not sure how it is supposed to work or where you got it, however based on a version I found here
https://git.smeretech.com/git/nagios-pl ... 00_api.php
There is a bug in the PHP code, around line 116, I would replace this:
Code: Select all
if(curl_error($ch) != "") {
returnNagios("UNKNOWN", $e->getMessage());
}
with this
Code: Select all
if(curl_error($ch) != "") {
returnNagios("UNKNOWN", curl_error($ch));
}
Re: Trying to run plugin of check_p2000_api.php in Nagios XI
Posted: Wed May 15, 2019 7:39 am
by vinish098
Hello team,
PFA.
This service is not working
Re: Trying to run plugin of check_p2000_api.php in Nagios XI
Posted: Wed May 15, 2019 7:51 am
by scottwilkerson
vinish098 wrote:Hello team,
PFA.
This service is not working
At this point all I can suggest would be to reach out to the plugin developer. We did not create this plugin nor do we have the equipment so we have no idea how it is supposed to work.
Re: Trying to run plugin of check_p2000_api.php in Nagios XI
Posted: Thu May 16, 2019 4:43 am
by vinish098
Hello team,
Thanks for reply.
As you said, Nagios team couldn't provide the plugin to us. Yes we are using HP MSA 2040 Storage API_Plugin where we found from google.com.
Otherwise will do one thing, i request you please provide HP MSA Storage API_Plugin to demonstrate with Nagios XI.
Its great if i get plugin from Nagios Support team.
Thanks & Regards
Re: Trying to run plugin of check_p2000_api.php in Nagios XI
Posted: Thu May 16, 2019 7:08 am
by scottwilkerson
vinish098 wrote:
Otherwise will do one thing, i request you please provide HP MSA Storage API_Plugin to demonstrate with Nagios XI.
As I mentioned before we haven't produced a plugin in-house for that product, nor do we even have the equipment to do so, so I don't have a proven tested plugin to provide.
Re: Trying to run plugin of check_p2000_api.php in Nagios XI
Posted: Fri May 17, 2019 6:50 am
by vinish098
Hi,
We are trying to monitor HP MSA 2040 Storage device by using check_p20000_api.php plugin.
We are able to get output for status,Disk,Volume,controller and named-volume. But when we are trying to monitor vdisk we are unable to get the required output. Pls, find the attached php code and output screenshot for vdisk monitoring.
Is this correct api to get information of vdisk? if not so pls provide us the valid api.
Re: Trying to run plugin of check_p2000_api.php in Nagios XI
Posted: Fri May 17, 2019 8:14 am
by scottwilkerson
Again, I wish I could help, but we don't even have this equipment, you would have to reach out to the vendor to see if this is the correct information for vdisk monitoring.
Re: Trying to run plugin of check_p2000_api.php in Nagios XI
Posted: Thu May 23, 2019 5:50 am
by vinish098
Hello team,
If we didnt get any help for this plugin with nagios. So, where should we go for my issue.
We are using Nagios XI not other monitoring tool. So we request to resolve my issue from nagios team only.
Thanks
Re: Trying to run plugin of check_p2000_api.php in Nagios XI
Posted: Thu May 23, 2019 6:44 am
by scottwilkerson
vinish098 wrote:Hello team,
If we didnt get any help for this plugin with nagios. So, where should we go for my issue.
We are using Nagios XI not other monitoring tool. So we request to resolve my issue from nagios team only.
Thanks
I understand you want to get this working, but we cannot support plugins we didn't write or do not include in the Nagios XI package.
Can this device be monitored in another way, e.g. via SNMP?