Quick Commands : Retrieve Available Drives

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
brdr
Posts: 312
Joined: Mon Jun 02, 2014 12:49 pm

Quick Commands : Retrieve Available Drives

Post 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!
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Quick Commands : Retrieve Available Drives

Post 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?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked