Discover nagios monitor windows service, include the articles, news, trends, analysis and practical advice about nagios monitor windows service on alibabacloud.com
Introduction of Nagios
Nagios is an open source computer system and network monitoring tool, can effectively monitor Windows, Linux and UNIX host State, switch routers and other network settings, printers and so on. When the system or service status is abnormal, send an ema
The previous section describes the installation process for the Nagios monitoring service in a Linux environment, and this section details how to use some of the configuration files for the Nagios services that have already been installed and how to monitor local related services. If you want to complete monitoring of
The previous section describes the installation process for the Nagios monitoring service in a Linux environment, and this section details how to use some of the configuration files for the Nagios services that have already been installed and how to monitor local related services. If you want to complete monitoring of
completes the configuration on Windows Server 2008. Next we set up the Nagios monitoring server.
3.Nagios Monitor Server settingsVi/usr/local/nagios/etc/nagios.cfgSearch Find:# Definitions for monitoring a Windows machine# cfg_f
Settings for Windows clients:
Download Address: Http://sourceforge.net/projects/nscplus
Nsclient++-0.3.8-win32.msi
Nsclient++-0.3.8-x64.msi
Install the same way as normal software installation
1. Double-click Install---"Next---" Agree
---"Next---" Next---"Next---" Set up to allow IP
Set Password (the password set here generally can not be set)
Modules to load the first three modules selected on the line
---"Next---" Install---"Finish
2. In t
, such as the above installation When the password is set to 123456(2) Define the host# vim Hosts.cfgdefine host{use windows-server host_name win-192.168.11.105 alias My win server address 192.168.11.105}(3) Defining the service#viservices.cfgdefineservice{use generic-servicehost_name win-192.168.11.105 service_descriptionNSClient++Version check_command check_win! clientversion; The first parameter passed
-l5,80,90cpuload21% (5minaverage) | ' 5minavgload ' =21%;80;90;0;100# -w warning scale -c emergency proportional -l (lowercase l) mean for the last 5 minutes, 80% for warning, 90% for emergency #./check_nt-h 192.168.1.5-p12489-s-vuseddiskspace-w80-c90- lcc:\-total:50.01gb-used:18.94gb (38%) - free31.07Gb (62%) | ' C:\usedspace ' =18.94gb;40.01;45.01;0.00;50.01 ### Information Echo format General Information | resource performance information between them output to use | separate, if you develo
Sharing how to monitor Linux servers, let's take a look at how Nagios monitors Windows servers.Part I: Configuring Windows servers to be monitoredFirst, visit http://sourceforge.net/projects/nscplus/and download the nsclinent++ that matches your server. After I download it, the file name is: Nscp-0.4.1.73-win32.msiDoub
We recommend that you use SNMP to monitor the performance of WIndows servers, but the configuration is cumbersome. It would be more convenient to use NSCLIENT ++ plug-in, provided that the plug-in needs to be installed on a specific monitored server. In case the application affects the server itself, it is not good. Therefore, I have been searching for the SNMP method for monitoring
: [External scripts] instead of [External script]4. Restart Nsclinet5. The directory where the monitored end Check_nrpe is located (the CentOS default installation directory is:/usr/lib64/nagios/plugins/)./check_nrpe-h hostip-c Check_runNote :-H after the script just before the machine,-C after the write command, which corresponds to the Check_run in the configuration fileIf the results are consistent with expectations, then you can continue to confi
active mode of the server actively to be monitored by the monitoring machine to obtain monitoring data, a great advantage of this is to remove the data processing of the other work is placed on the monitor (including data transmission), to avoid the number of the monitoring machine is large when the polling time is too long and lead to monitoring reaction delay, This is also the key to the passive mode to assume a greater amount of monitoring.
Nagios is an open-source free network monitoring tool that can effectively monitor the status of windows, Linux and UNIX hosts, network settings such as vswitches and routers, and printers. If the system or service status is abnormal, an email or text message alert will be sent immediately to the website O M personnel
{// define another print host use generic-printer host_name 31 east alias 31-EAST address 192.168.4.61 hostgroups network-printers} define hostgroup {// define a group hostgroup_name network-printers alias Network Printers members 31 east, 31 west // group member. Here, two simple statements are written, note that the name corresponds to} define service {use generic-service hostgroup_name network-printers
Nagios graphical interface is still a bit cumbersome, let's take MySQL for example. Monitoring MySQL plug-ins more, here to understand the method, rather than dead to move hard sets.
One, install Pnp4nagios
[Root@localhost objects]# yum install Pnp4nagios RRDtoolIf you can not find the replacement Epel source, blog inside a search. For Nagios installation, please refer to:
1. this guide attempts to allow you to monitor local hosts by installing Nagios source programs on Ubuntu within 20 minutes using simple commands. More advanced settings are not discussed-only some basic operations, but this is enough for 95% of users to start Nagios. 1. this guide attempts to allow you to monitor loca
:
Netstat-ant | grep 5666
Test whether Nrpe works properly:
/Usr/local/nagios/libexec/check_nrpe-H localhost
NRPE v2.8.1 indicates that it is normal to connect nrpe daemon locally with check_nrpe)
Server Configuration:
A. Copy the localhost. cfg template file to monitor 192.168.112.101:
Cp/usr/local/nagios/etc/localhost. cfg/usr/local/
, which are exactly what we Configured the scheduled task to do.Since We know the alert would always send the same values in the same order, i.e. name, date, counter, threshold, and value , we can just pull them from the command line arguments based on position and pass them to the SendMail () function.Note that there is more robust ways to process command line arguments, and this should is sufficient for your purposes.
Send email alert from performance
CHECK_HPJD plug-in, the printer monitoring way a bit similar to the Nagios monitoring Windows nsclient++, you can see http://jim123.blog.51cto.com/ 4763600/1956790, after Nagios is configured, there is a print configuration template that modifies the following template as in nsclient++: /usr/local/nagios/etc/objects/p
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.