Page 1 of 1

Quick Commands : Retrieve Available Drives

Posted: Fri Jul 17, 2015 3:05 pm
by brdr
Hi,

We have Nagios XI2014R2.6.

Could you please point me in the direction on how to add quick commands from within Nagios XI gui.

The scenario is that operation's team will new add hosts/services in Nagios. While adding they will need to query the server (i.e. windows) for available drives so that they can monitor going forward. We would like to add this command:

/usr/local/nagios/libexec/check_wmi_plus.pl -H HOST-u $USER10$ -p $USER11$ -m checkdrivesize

The -u and -p tied back to macros defined in the etc/resource.cfg

Is there a way this can be achieved?

Many thanks!

Re: Quick Commands : Retrieve Available Drives

Posted: Sun Jul 19, 2015 8:44 pm
by Box293
Create a hostgroup called "windows_servers_common".
Create a service for the drive check and assign it to the hostgroup windows_servers_common (instead of assigning it to a host).
Now when you provision a new host, when you add it to the windows_servers_common it will automatically get that service.

Is this what you are looking for?