Page 2 of 3

Re: Unknown C Drive

Posted: Mon Oct 31, 2016 11:49 am
by rbizzell39

Code: Select all

###############################################################################
# WINDOWS.CFG - SAMPLE CONFIG FILE FOR MONITORING A WINDOWS MACHINE
#
#
# NOTES: This config file assumes that you are using the sample configuration
#	 files that get installed with the Nagios quickstart guide.
#
###############################################################################




###############################################################################
###############################################################################
#
# HOST DEFINITIONS
#
###############################################################################
###############################################################################

# Define a host for the Windows machine we'll be monitoring
# Change the host_name, alias, and address to fit your situation

define host{
	use		windows-server	; Inherit default values from a template
	host_name	q-peg-web-w52	; The name we're giving to this host
	alias		q-peg-web-w52	; A longer name associated with the host
	address		172.16.2.169	; IP address of the host
	}


define host{
         use              windows-server
         host_name        SPLAB2K12DC02
         alias            SPLAB2K12DC02
         address          172.16.0.15
         }
define host{
       use              windows-server
       host_name	SPLAB2K12DC01
       alias		SPLAB2K12DC01
       address          172.16.0.10
       }

define host{
	use		windows-server
	host_name	q-peg-db-w51
	alias		q-peg-db-w51
	address		172.16.2.171
	}

define host{
        use             windows-server
        host_name       AT-TFS-BUILD001
        alias           AT-TFS-BUILD001
        address         172.16.0.98
        }


define host{
        use             windows-server
        host_name       AT-TFS-DB001
        alias           AT-TFS-DB001
        address         172.16.0.97
        }


define host{
        use             windows-server
        host_name       AT-TFS-WEB001
        alias           AT-TFS-WEB001
        address         172.16.0.150
        }

define host{
        use             windows-server
        host_name       AT-UTIL-OCT001
        alias           AT-UTIL-OCT001
        address         172.16.0.250
        }

define host{
        use             windows-server
        host_name       Q-ITEMED-DB001
        alias           Q-ITEMED-DB001
        address         172.16.0.95
        }

define host{
        use             windows-server
        host_name       Q-ITEMED-WEB001
        alias           Q-ITEMED-WEB001
        address         172.16.0.140
        }

define host{
        use             windows-server
        host_name       Q-MICA-DB01
        alias           Q-MICA-DB01
        address         172.16.0.93
 	}


define host{
        use             windows-server
        host_name       Q-MICA-WEB001
        alias           Q-MICA-WEB001
        address         172.16.0.110
 	}

define host{
        use             windows-server
        host_name       Q-MICA-WEB002
        alias           Q-MICA-WEB002
        address         172.16.0.115
 	}

define host{
        use             windows-server
        host_name       Q-MIST-DB001
        alias           Q-MIST-DB001
        address         172.16.0.91
 	}

define host{
        use             windows-server
        host_name       Q-MIST-DB02
        alias           Q-MIST-DB02
        address         172.16.0.92
 	}

define host{
        use             windows-server
        host_name       Q-MIST-WEB001
        alias           Q-MIST-WEB001
        address         172.16.0.120
 	}

define host{
        use             windows-server
        host_name       Q-MIST-WEB002
        alias           Q-MIST-WEB002
        address         172.16.0.125
 	}

define host{
        use             windows-server
        host_name       Q-WRITE-DB001
        alias           Q-WRITE-DB001
        address         172.16.0.94
 	}

define host{
        use             windows-server
        host_name       Q-WRITE-WEB001
        alias           Q-WRITE-WEB001
        address         172.16.0.130
 	}

define host{
        use             windows-server
        host_name       Q-WRITE-WEB002
        alias           Q-WRITE-WEB002
        address         172.16.0.135
 	}
###############################################################################
###############################################################################
#
# HOST GROUP DEFINITIONS
#
###############################################################################
###############################################################################


# Define a hostgroup for Windows machines
# All hosts that use the windows-server template will automatically be a member of this group

define hostgroup{
	hostgroup_name	windows-servers
	alias		Windows Servers	
	members		q-peg-web-w52,SPLAB2K12DC02,SPLAB2K12DC01,q-peg-db-w51,AT-TFS-BUILD001,AT-TFS-DB001,AT-TFS-WEB001,AT-UTIL-OCT001,Q-ITEMED-WEB001,Q-MICA-DB01,Q-MICA-WEB002,Q-MICA-WEB001,Q-MIST-DB001,Q-MIST-DB02,Q-MIST-WEB001,Q-MIST-WEB002,Q-WRITE-DB001,Q-WRITE-WEB002,Q-MIST-DB02,Q-ITEMED-WEB001,Q-MIST-WEB001,Q-WRITE-WEB002,Q-MIST-WEB002,Q-MIST-DB001,Q-MICA-DB01,Q-MICA-WEB001,Q-WRITE-WEB001,AT-TFS-WEB001,Q-MICA-WEB002,Q-ITEMED-DB001,Q-ITEMED-DB001
	}               

###############################################################################
###############################################################################
#
# SERVICE DEFINITIONS
#
###############################################################################
###############################################################################


# Create a service for monitoring the version of NSCLient++ that is installed
# Change the host_name to match the name of the host you defined above

define service{
	use			generic-service
	host_name		q-peg-web-w52
	service_description	NSClient++ 0.4.1.73 Version
	check_command		check_nt!CLIENTVERSION
	}

define service{
        use                      generic-service
        host_name                SPLAB2K12DC01
        service_description      NSClient++ 0.4.1.73 Version
        check_command            check_nt!CLIENTVERSION
        }

define service{
        use                     generic-service
        host_name               q-peg-db-w51
        service_description     NSClient++ 0.4.1.73 Version
        check_command           check_nt!CLIENTVERSION
        }

define service{
        use             	generic-service
        host_name       	AT-TFS-BUILD001
        service_description  	NSClient++ 0.4.1.73 Version
        check_command           check_nt!CLIENTVERSION
        }

define service{
        use             	generic-service
        host_name               AT-TFS-DB001
        service_description     NSClient++ 0.4.1.73 Version
	check_command		check_nt!CLIENTVERSION
        }


define service{
        use                     generic-service
        host_name               Q-WRITE-WEB001
        service_description     NSClient++ 0.4.1.73 Version
        check_command           check_nt!CLIENTVERSION
        }

# Create a service for monitoring the uptime of the server
# Change the host_name to match the name of the host you defined above

define service{
	use			generic-service
	host_name		q-peg-web-w52
	service_description	Uptime
	check_command		check_nt!UPTIME
	}


define service{
	use			generic-service
	host_name		SPLAB2K12DC01
	service_description	Uptime
	check_command		check_nt!UPTIME
	}

define service{
	use			generic-service
        host_name		q-peg-db-w51
	service_description	Uptime
	check_command		check_nt!UPTIME
	}

define service{
        use                     generic-service
        host_name               AT-TFS-BUILD001
        service_description     Uptime
        check_command           check_nt!UPTIME
        }

define service{
        use                     generic-service
        host_name               AT-TFS-DB001
        service_description     UPtime
        check_command           check_nt!UPTIME
        }

define service{
        use                     generic-service
        host_name               AT-TFS-WEB001
        service_description     UPtime
        check_command           check_nt!UPTIME
        }

define service{
        use                     generic-service
        host_name               Q-WRITE-WEB001
        service_description     UPtime
        check_command           check_nt!UPTIME
        }

# Create a service for monitoring CPU load
# Change the host_name to match the name of the host you defined above

define service{
	use			generic-service
	host_name		q-peg-web-w52
	service_description	CPU Load
	check_command		check_nt!CPULOAD!-l 5,80,90
	}

define service{
	use			generic-service
	host_name		SPLAB2K12DC01
	service_description	CPU Load
	check_command		check_nt!CPULOAD!-l 5,80,90
	}

define service{
        use                     generic-service
        host_name               q-peg-db-w51
        service_description     CPU Load
        check_command           check_nt!CPULOAD!-l 5,80,90
        }


define service{
        use                     generic-service
        host_name               AT-TFS-BUILD001
        service_description     CPU Load
        check_command           check_nt!CPULOAD!-l 5,80,90
        }

define service{
        use                     generic-service
        host_name               AT-TFS-DB001
        service_description     CPU Load
        check_command           check_nt!CPULOAD!-l 5,80,90
        }

define service{
        use                     generic-service
        host_name               AT-TFS-WEB001
        service_description     CPU Load
        check_command           check_nt!CPULOAD!-l 5,80,90
        }

define service{
        use                     generic-service
        host_name               Q-WRITE-WEB001
        service_description     CPU Load
        check_command           check_nt!CPULOAD!-l 5,80,90
        }

# Create a service for monitoring memory usage
# Change the host_name to match the name of the host you defined above

define service{
	use			generic-service
	host_name		q-peg-web-w52
	service_description	Memory Usage
	check_command		check_nt!MEMUSE!-w 80 -c 90
	}

define service{
	use			generic-service
	host_name		SPLAB2K12DC01
	service_description	Memory Usage
	check_command		check_nt!MEMUSE!-w 80 -c 90
	}
define service{
        use                     generic-service
        host_name               q-peg-db-w51
        service_description     Memory Usage
        check_command           check_nt!MEMUSE!-w 80 -c 90
        }

define service{
        use                     generic-service
        host_name               AT-TFS-BUILD001
        service_description     Memory Usage
        check_command           check_nt!MEMUSE!-w 80 -c 90
        }

define service{
        use                     generic-service
        host_name               AT-TFS-DB001
        service_description     Memory Usage
        check_command           check_nt!MEMUSE!-w 80 -c 90
        }

define service{
        use                     generic-service
        host_name               AT-TFS-WEB001
        service_description     Memory Usage
        check_command           check_nt!MEMUSE!-w 80 -c 90
        }
define service{
        use                     generic-service
        host_name               Q-WRITE-WEB001
        service_description     Memory Usage
        check_command           check_nt!MEMUSE!-w 80 -c 90
        }

# Create a service for monitoring Disk Space
# Change the host_name to match the name of the host you defined above

define service{
	use			generic-service
	host_name		q-peg-web-w52
	service_description	C:\ Drive Space
	check_command		check_nt!USEDDISKSPACE!-l c -w 80 -c 90
	}

define service{
	use			generic-service
	host_name		SPLAB2K12DC01
	service_description	C:\ Drive Space
	check_command		check_nt!USEDDISKSPACE!-l c -w 80 -c 90
	}

define service{
        use                     generic-service
        host_name               q-peg-db-w51
        service_description     C:\ Drive Space
        check_command           check_nt!USEDDISKSPACE!-l c -w 80 -c 90
        }

define service{
        use                     generic-service
        host_name               AT-TFS-BUILD001
        service_description     C:\ Drive Space
        check_command           check_nt!USEDDISKSPACE!-l c -w 80 -c 90
        }

define service{
        use                     generic-service
        host_name               AT-TFS-BUILD001
        service_description     D:\ Drive Space
        check_command           check_nt!USEDDISKSPACE!-l d -w 80 -c 90
        }

define service{
        use                     generic-service
        host_name               AT-TFS-DB001
        service_description     C:\ Drive Space
        check_command           check_nt!USEDDISKSPACE!-l c -w 90 -c 100
        }

define service{
        use                     generic-service
        host_name               AT-TFS-DB001
        service_description     D:\ Drive Space
        check_command           check_nt!USEDDISKSPACE!-l d -w 90 -c 100
        }

define service{
        use                     generic-service
        host_name               AT-TFS-WEB001
        service_description     C:\ Drive Space
        check_command           check_nt!USEDDISKSPACE!-l c -w 80 -c 90
        }


define service{
        use                     generic-service
        host_name               Q-WRITE-WEB001
        service_description     C:\ Drive Space
        check_command           check_nt!USEDDISKSPACE!-l c -w 90 -c 100
        }



# Create a service for monitoring the W3SVC service
# Change the host_name to match the name of the host you defined above

define service{
	use			generic-service
	host_name		q-peg-web-w52
	service_description	W3SVC
	check_command		check_nt!SERVICESTATE!-d SHOWALL -l W3SVC
	}

define service{
	use			generic-service
	host_name		SPLAB2K12DC01
	service_description	W3SVC
	check_command		check_nt!SERVICESTATE!-d SHOWALL -l W3SVC
	}
define service{
        use                     generic-service
        host_name               q-peg-db-w51
        service_description     W3SVC
        check_command           check_nt!SERVICESTATE!-d SHOWALL -l W3SVC
        }

define service{
        use                     generic-service
        host_name               AT-TFS-BUILD001
        service_description     W3SVC
        check_command           check_nt!SERVICESTATE!-d SHOWALL -l W3SVC
        }

define service{
        use                     generic-service
        host_name               AT-TFS-WEB001
        service_description     W3SVC
        check_command           check_nt!SERVICESTATE! d SHOWALL -l W3SVC
        }
# Create a service for monitoring the Explorer.exe process
# Change the host_name to match the name of the host you defined above

define service{
	use			generic-service
	host_name		q-peg-web-w52
	service_description	Explorer
	check_command		check_nt!PROCSTATE!-d SHOWALL -l Explorer.exe
	}

define service{
	use			generic-service
	host_name		SPLAB2K12DC01
	service_description	Explorer
	check_command		check_nt!PROCSTATE!-d SHOWALL -l Explorer.exe
	}

define service{
        use                     generic-service
        host_name               q-peg-db-w51
        service_description     Explorer
        check_command           check_nt!PROCSTATE!-d SHOWALL -l Explorer.exe
        }

define service{
        use                     generic-service
        host_name               AT-TFS-BUILD001
        service_description     Explorer
        check_command           check_nt!PROCSTATE!-d SHOWALL -l Explorer.exe
        }

define service{
        use                     generic-service
        host_name               AT-TFS-WEB001
        service_description     Explorer
        check_command           check_nt!PROCSTATE!-d SHOWALL -l Explorer.exe
        }

Re: Unknown C Drive

Posted: Mon Oct 31, 2016 2:00 pm
by rkennedy
Could you please show us a screenshot of the exact error you're seeing on the Nagios web GUI as well? This will help to line up which hosts / services we need to look at in your windows.cfg.

As far as I can tell, things look proper with a quick glance.

Re: Unknown C Drive

Posted: Mon Oct 31, 2016 2:28 pm
by rbizzell39
oks sure

Re: Unknown C Drive

Posted: Mon Oct 31, 2016 2:31 pm
by rbizzell39
Here is the NAgios Web

Re: Unknown C Drive

Posted: Tue Nov 01, 2016 11:01 am
by rbizzell39
Hello,
I was just touching base to see if you had any idea what the problem is. Thanks!

Re: Unknown C Drive

Posted: Tue Nov 01, 2016 1:08 pm
by tgriep
In the nsclient.log file, I saw this error which points to a missing Module file on your system.

Code: Select all

2016-10-31 11:15:51: e:..\..\..\trunk\service\NSClient++.cpp:559: Exception raised: 'Could not load library: 126: The specified module could not be found.
The best thing to resolve this is to make a copy of the nsclient.ini file and uninstall the NSClient service.
Delete the following folder from that system

Code: Select all

C:\Program Files\NSClient++
Reinstall the NSClient++ application and restore the nsclient.ini file.
Try that and let up know if this helps the issue.

Re: Unknown C Drive

Posted: Tue Nov 01, 2016 1:13 pm
by rbizzell39
Should I just delete the folder or run uninstall program on the windows box

Re: Unknown C Drive

Posted: Tue Nov 01, 2016 1:38 pm
by tgriep
Run the uninstall first and then delete the folder.

Re: Unknown C Drive

Posted: Tue Nov 01, 2016 2:49 pm
by rbizzell39
I have to reboot the server but I will have to do that off hours as it is in use right now so I will update you later in the evening I am on the east coast

Re: Unknown C Drive

Posted: Tue Nov 01, 2016 3:34 pm
by tgriep
Normally you don't have to reboot the server to do this but let us know how it works out for you.