Trying to run plugin of check_p2000_api.php in Nagios XI
Trying to run plugin of check_p2000_api.php in Nagios XI
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
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
You do not have the required permissions to view the files attached to this post.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Trying to run plugin of check_p2000_api.php in Nagios XI
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:
with this
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());
}
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
Hello team,
PFA.
This service is not working
PFA.
This service is not working
You do not have the required permissions to view the files attached to this post.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Trying to run plugin of check_p2000_api.php in Nagios XI
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.vinish098 wrote:Hello team,
PFA.
This service is not working
Re: Trying to run plugin of check_p2000_api.php in Nagios XI
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
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
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Trying to run plugin of check_p2000_api.php in 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.vinish098 wrote: Otherwise will do one thing, i request you please provide HP MSA Storage API_Plugin to demonstrate with Nagios XI.
Re: Trying to run plugin of check_p2000_api.php in Nagios XI
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.
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.
You do not have the required permissions to view the files attached to this post.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Trying to run plugin of check_p2000_api.php in Nagios XI
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
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
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
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Trying to run plugin of check_p2000_api.php in Nagios XI
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.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
Can this device be monitored in another way, e.g. via SNMP?