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.
EMC VNXe Storage Monitoring
EMC VNXe Storage Monitoring
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
This plugin requires sudo access per the description.
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.
Code: Select all
nagios ALL=(ALL) NOPASSWD:/usr/local/nagios/libexec/check_vnxe.sh Re: EMC VNXe Storage Monitoring
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.
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
Oh, I see your first command definition had a -H before $HOSTADDRESS$ which your plugin must not need
Re: EMC VNXe Storage Monitoring
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
Exactly like you had everything in the images in the first post, except take the -H out of the commandvijmane wrote:Yes, but how do I write the command and service now?
so
Code: Select all
sudo $USER1$/check_vnxe.sh $HOSTADDRESS$ $ARG1$ $ARG2$ $ARG3$ $ARG4$Re: EMC VNXe Storage Monitoring
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
Excellent!vijmane wrote:Works now, Thanks a ton!!
Locking