EMC VNXe Storage Monitoring

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
vijmane
Posts: 7
Joined: Wed May 02, 2018 3:32 am

EMC VNXe Storage Monitoring

Post by vijmane »

We are trying to monitoring the EMC VNXe storage hosts through Nagios XI using the below plugin:

https://exchange.nagios.org/directory/P ... xe/details

The plugin works fine when I test it from the command line.

I'm facing issues with defining a command and its service for the plugin. I've attached screenshots of the command and service I've defined. When I do a "Run CHeck Command" it does not return any value. I've attached screenshot of the output as well.
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: EMC VNXe Storage Monitoring

Post by scottwilkerson »

This plugin requires sudo access per the description.

Code: Select all

nagios ALL=(ALL) NOPASSWD:/usr/local/nagios/libexec/check_vnxe.sh 
If you have configured that, it should work if you save the configuration, however the "Run Check Command" button for quick testing in the CCM cannot account for this because it runs as apache.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
vijmane
Posts: 7
Joined: Wed May 02, 2018 3:32 am

Re: EMC VNXe Storage Monitoring

Post by vijmane »

Yes, I've added it to the sudoers file.

When I hard code the IP address to $ARG1$ and run a check it works. See the attachment.
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: EMC VNXe Storage Monitoring

Post by scottwilkerson »

Oh, I see your first command definition had a -H before $HOSTADDRESS$ which your plugin must not need
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
vijmane
Posts: 7
Joined: Wed May 02, 2018 3:32 am

Re: EMC VNXe Storage Monitoring

Post by vijmane »

Yes, but how do I write the command and service now?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: EMC VNXe Storage Monitoring

Post by scottwilkerson »

vijmane wrote:Yes, but how do I write the command and service now?
Exactly like you had everything in the images in the first post, except take the -H out of the command

so

Code: Select all

sudo $USER1$/check_vnxe.sh $HOSTADDRESS$ $ARG1$ $ARG2$ $ARG3$ $ARG4$
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
vijmane
Posts: 7
Joined: Wed May 02, 2018 3:32 am

Re: EMC VNXe Storage Monitoring

Post by vijmane »

Works now, Thanks a ton!!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: EMC VNXe Storage Monitoring

Post by scottwilkerson »

vijmane wrote:Works now, Thanks a ton!!
Excellent!

Locking
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked