Page 1 of 1

add disk space monitoring

Posted: Thu Jan 03, 2013 8:13 pm
by sheld0r
I've got a fresh install of Nagios XI and I'm looking to add disk space monitoring to my servers. I've found a few threads about the topic, but I'm wondering if I need to add a specific type for xi only. I noticed in the documentation the monitors are denoted as check_xi_service for example. I added the check_local_disk plugin, but I'm not quite sure how to configure it. I don't what I need under service management, but maybe I'm looking in the wrong area.

I found it a little odd that the documentation shown here http://assets.nagios.com/downloads/nagi ... _In_XI.pdf assuming you already had the plugin working and you could simply just copy it. What if you don't have the plugin working in another node, which is the case for me.

I'm a total Nagios newb, and I'm sure I'll get razzed a little on this topic but I'm just trying to get things working.

Cheers,

Re: add disk space monitoring

Posted: Fri Jan 04, 2013 10:25 am
by yancy
sheld0r,

No problem about the newbish question!

Here's a link to installing the Nsclient which is the agent software the run on your windows machine.

http://assets.nagios.com/downloads/nagi ... _Agent.pdf

Next, you'll want to run the configuration wizard. There should be a windows one already installed by default, just follow the steps.

http://assets.nagios.com/downloads/nagi ... izards.pdf


Hope that helps,

-Yancy

Re: add disk space monitoring

Posted: Fri Jan 04, 2013 1:11 pm
by sheld0r
So I already have the NSClient++ daemon installed on the server. The next step you listed was to run the configuration wizard. Is there a config wizard that I need to add to monitor disk space usage? Or am I simply setting up an snmp trap that will possibly utilize a utility? I found check_snmp_disks which is in a .pl extension, but I'm not quite sure how to utilize this add-on.

Do I setup an snmp trap with the config wizard, and somehow add the check_snmp_disks.pl utility?

Re: add disk space monitoring

Posted: Fri Jan 04, 2013 2:24 pm
by slansing
Yep! You can actually run the Windows Server/Desktop monitoring wizard and set the thresholds in there. If you want to use SNMP that is a whole other can of worms. With using NRPE with NSClient++ for active/passive checks you have just about everything pre-configured/compiled for you with the exception of non standard plugins and additions.

Just be sure that you followed the documentation and opened port 5666 TCP/UDP on your local Nagios XI server and your remote windows desktop/server as well as configured your NSC.ini file correctly for communication with the Nagios server. And then added the windows server's IP to the allowed_from section of your Nagios server's nrpe.cfg file.

Re: add disk space monitoring

Posted: Fri Jan 04, 2013 5:33 pm
by sheld0r
Epic!! I got it working. That is exactly what I was looking for, and I was definitely going down the "complicated" path.

So not to be lazy, but am I able to setup multiple server at one time with this method? It appears I can only select the Windows Server and enter one IP address for each server I want to add. I'm finding myself doing the hard labor in getting Nagios setup, and I know their are ways to do things in bulk, such as the install of the NSClient++. I would assume people are creating an .msi package or the like and doing an auto install, rather than installing the daemon on each server individually. Therefore, I would say the same for the monitor service. All in all, I'm super stoked to see Nagios come alive and monitor my network.

Thanks for the help friends!

Cheers,

Re: add disk space monitoring

Posted: Mon Jan 07, 2013 10:21 am
by yancy
sheld0r,

Check out the bulk host import wizard:

http://assets.nagios.com/downloads/nagi ... _Usage.pdf

as far as NSClient bulk install, I would create a simple batch script that runs NSClient++ silent install, and copys your config (NSC.ini), and starts the service.

nsclient silent install details can be found here:
http://www.nsclient.org/nscp/wiki/guides/install

Regards,

-Yancy