nagios-using nsclient++ to monitor Windows hosts

Source: Internet
Author: User
Tags disk usage

Monitoring Windows hosts with nsclient++ Check_nt

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/6C/87/wKioL1VLcXnxtVkNAACEH3QTaS0544.jpg "title=" Picture 4.png "alt=" wkiol1vlcxnxtvknaaceh3qtas0544.jpg "/>

Install Nsclient++-0.3.8-win32.msi on Windows

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/6C/8B/wKiom1VLcCCg95BGAAFq8ybNcRA651.jpg "title=" Picture 5.png "alt=" wkiom1vlcccg95bgaafq8ybncra651.jpg "/>

# cd/usr/local/nagios/libexec/

#./check_nt-h View the usage of check_nt

#./check_nt-h 192.168.254.65-p 12489-v UPTIME

View Windows host uptime run time (Windows listening port is 12489)

#./check_nt-h 192.168.254.65-p 12489-v cpuload-w 80-c 90-l 5,80,90

view Cpuload definition 80- WARNING 90-critical, average CPU load over the last 5 minutes

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/6C/87/wKioL1VLcbjR6R2BAABhLj9DfZE048.jpg "title=" Picture 6.png "alt=" wkiol1vlcbjr6r2baabhlj9dfze048.jpg "/>

#./check_nt-h 192.168.254.65-p 12489-v useddiskspace-w 80-c 90-l C

View Windows host disk usage useddiskspace, C drive

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/6C/8B/wKiom1VLcFKzHDQGAABxSWsQCD8381.jpg "title=" Picture 7.png "alt=" Wkiom1vlcfkzhdqgaabxswsqcd8381.jpg "/>

# cd/etc/nagios/objects/

# cat Commands.cfg does not make changes,

Define Command{

Command_name check_nt

Command_line $user 1$/check_nt-h $HOSTADDRESS $-P 12489-v $ARG 1$ $ARG 2$

}

# Vim Windows.cfg

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/6C/87/wKioL1VLceOSBbiBAAC6hseOzpk896.jpg "title=" Picture 8.png "alt=" wkiol1vlceosbbibaac6hseozpk896.jpg "/>

Modify Windows IP

Define host name Host_name to Winhost

# CD:

# vim Nagios.cfg editing the Nagios master configuration file

cfg_file=/etc/nagios/objects/windows.cfg enable the configuration file

#/usr/local/nagios/bin/nagios-v/etc/nagios/nagios.cfg

Check configuration file for syntax errors

# Service Nagios Restart

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/6C/87/wKioL1VLcgDwOMAWAANnJqmpldM450.jpg "title=" Picture 9.png "alt=" wkiol1vlcgdwomawaannjqmpldm450.jpg "/>

Enter the Nagios Web console again and discover a more monitored Windows host


This article is from the "Brother" blog, please be sure to keep this source http://yangmv.blog.51cto.com/2366107/1644002

nagios-using nsclient++ to monitor Windows hosts

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.