Monitoring Windows server using check_nt
Posted: Wed Aug 19, 2015 8:19 am
Hi All,
I am monitoring a remote windows (windows server 2007) host. After installing NSClient++ on target host and setting up firewall i did manual checks which returned successful results. Please check the code below
Since the test results were successful i added the code to service defs.
Since the manual test were fine, i was expecting no trouble but following were the results shown in CGI
Service Status Status Information
Current Load UNKNOWN missing -l parameters
Disk Space UNKNOWN missing -l parameters
Memory CRITICAL CRITICAL - Socket timeout after 10 seconds
I am monitoring a remote windows (windows server 2007) host. After installing NSClient++ on target host and setting up firewall i did manual checks which returned successful results. Please check the code below
Code: Select all
ubuntu@ip-172-30-1-33:/etc/nagios3/conf.d$ /usr/lib/nagios/plugins/check_nt -p 12489 -H 10.2.1.82 -v CPULOAD -l 5,80,90
CPU Load 6% (5 min average) | '5 min avg Load'=6%;80;90;0;100
ubuntu@ip-172-30-1-33:/etc/nagios3/conf.d$ /usr/lib/nagios/plugins/check_nt -H 10.2.1.82 -p 12489 -v USEDDISKSPACE -d SHOWALL -l c
c:\ - total: 49.66 Gb - used: 23.78 Gb (48%) - free 25.87 Gb (52%) | 'c:\ Used Space'=23.78Gb;0.00;0.00;0.00;49.66
ubuntu@ip-172-30-1-33:/etc/nagios3/conf.d$ /usr/lib/nagios/plugins/check_nt -p 12489 -H 10.2.1.82 -v MEMUSE
Memory usage: total:12287.71 Mb - used: 2828.89 Mb (23%) - free: 9458.83 Mb (77%) | 'Memory usage'=2828.89Mb;0.00;0.00;0.00;12287.71Code: Select all
define service{
use generic-service
host_name traffline_misc
service_description Disk Space
check_command check_nt!USEDDISKSPACE!-l c -w 80 -c 90
}
define service{
use generic-service
host_name traffline_misc
service_description Current Load
check_command check_nt!CPULOAD!-l 5,80,90
}
define service{
use generic-service
host_name traffline_misc
service_description Memory
check_command check_nt!MEMUSE!-l -w 80 -c 9Service Status Status Information
Current Load UNKNOWN missing -l parameters
Disk Space UNKNOWN missing -l parameters
Memory CRITICAL CRITICAL - Socket timeout after 10 seconds