Page 1 of 1

EMC VNXe Storage Monitoring

Posted: Thu Jun 28, 2018 7:08 am
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.

Re: EMC VNXe Storage Monitoring

Posted: Thu Jun 28, 2018 7:49 am
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.

Re: EMC VNXe Storage Monitoring

Posted: Thu Jun 28, 2018 8:08 am
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.

Re: EMC VNXe Storage Monitoring

Posted: Thu Jun 28, 2018 8:14 am
by scottwilkerson
Oh, I see your first command definition had a -H before $HOSTADDRESS$ which your plugin must not need

Re: EMC VNXe Storage Monitoring

Posted: Thu Jun 28, 2018 8:29 am
by vijmane
Yes, but how do I write the command and service now?

Re: EMC VNXe Storage Monitoring

Posted: Thu Jun 28, 2018 8:32 am
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$

Re: EMC VNXe Storage Monitoring

Posted: Thu Jun 28, 2018 8:37 am
by vijmane
Works now, Thanks a ton!!

Re: EMC VNXe Storage Monitoring

Posted: Thu Jun 28, 2018 8:38 am
by scottwilkerson
vijmane wrote:Works now, Thanks a ton!!
Excellent!

Locking