How to configure Nagios to Monitor Windows 2003 server via SNMP

HI

I am new employee in my company and I was tasked to set up nagios 3 to monitor windows 2003 server with SNMP. Nagios is installed on the openSUSe 11.3 version. My boss wants to set up monitoring for the partitions in percentages as well as memory usage. Any idea how to do that
cer113Asked:
Who is Participating?
 
liddlerConnect With a Mentor Commented:
So,
You need to make sure your script is in the libexec directory and is executable

Add a line to commands.cfg similar to that below (this example is for a different snmp script for monitoring a Bluecoat device)

# 'check_snmp_env' command definition
define command{
        command_name    check_snmp_env
        command_line    $USER1$/check_snmp_env.pl -H $HOSTADDRESS$ -c $ARG1$
}


Then in your windows.cfg something like:
define service{
        use                     generic-service
        host_name               BLUECOAT
        service_description     Check Bluecoat
        check_interval          1
        check_command           check_snmp_env!-C <password> -2 -T bc!

        }







0
 
liddlerCommented:
Do you need to do it via SNMP?  The Nsclient for Nagios works fine on Windows 2003 and will monitor partitions and memory.  I only normally use SNMP for devices that cannot run a client.

If you are using SNMP, you'll need the check_snmp_win.pl script, if it's not in the default you can get it here (http://nagios.manubulon.com/snmp_windows.html), you'll need perl installed and Net::SNMP module
0
 
cer113Author Commented:
hi thanks for your response

Yes I have perl installed and net_snmp as well but I would like to use following plug in
http://exchange.nagios.org/directory/Plugins/Operating-Systems/Windows/Check-Disk-Win2k3-%252D-SNMP/details

but when i try to download it it doesnt download.

How i can download this plug in and give it a shoot
0
Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

 
cer113Author Commented:
also I need only to monitor Disk usage for 3 partitions as well as memory usage on that particular windows 2003 server so i think above mentioned script will just do the job if i can get it
0
 
liddlerCommented:
Right click on the check_disk_snmp and select Save Link As....
0
 
cer113Author Commented:
yes but can i download that to my Linux box
i am trying to test some plug ins and this one seems worth to try
0
 
liddlerCommented:
If you've downloaded it to a PC you need to transfer it to your linux box - use sftp, ftp or SAMBA
0
 
cer113Author Commented:
it cannot be downloaded to Linux box directly with wget
0
 
liddlerCommented:
0
 
cer113Author Commented:
Ok I got the script now how do I add that as a service in nagios and configure disk usage monitoring in I believe i have to add it to windows.cfg and commands.cfg.
0
 
cer113Author Commented:
it is good tip now I just have to adjust my own plug ins to make sure they work properly
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.