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
version is described here.
CGI.CGF CGI configuration file under Nagios/etc
NAGIOS.CGF Nagios Main configuration file
User and password used by Htpasswd.users login authentication
Nagiosgraph.cfg
Ndo2db.cfg Nagios collection of data written to the database plug-in ndo configuration file
Ndomod.cfg Nagios data is
, 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 to the-v parameter }define service{use generi
There is check_nt this plugin under Nagios's libexec, which is used to check the services of Windows machines. Its function is similar to Check_nrpe. But it also needs to be paired with another software nsclient++, which is similar to Nrpe. We need to download the appropriate version of Nsclient and install it on the monitored Windows host. Overview of NRPE 650) this.width=650; "src=" http://s3.51cto.com/wy
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 email or SMS alert the first time to notify the
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.
The directory where the nagioscgi files are located, that is, the files required to execute the external commandThe directory where the Share Nagios Web page file residesLibexec Nagios External plug-in directoryThe directory where the var nagios log files, lock, and other files resideVar/archives nagios Log Auto A
Build a printer monitoring server using nagios and monitor the nagios printer
Tutorial Background: The company has many HP printers, which are difficult to manage. So I thought about whether I could be a printer monitoring server to quickly respond to all the printer problems. After that, I checked the relevant information on the Internet and set up one, so there
/local/nagios/libexec/check_users-w 5-c 10 after the equal sign.
We can easily know that the commands defined in the above five lines are the number of login users, cpu load, hda1 capacity, zombie processes, and the total number of processes. usage :. /check_load -- help, because-c can only be followed by nrpe. the command defined in cfg, that is, we can only use the Five Commands defined above.
For other nagios
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 a host
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 a host
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
Nagios thinks its good stateful detection mechanism enables Nagios to monitor different plug-ins on different platforms, and it also supports the use of SNMP protocol (Simple Network Management Protocol) to monitor various platforms and devices. So Nagios can also use the SN
client is more complex than installing on the server side because the Nrpe is running as a daemon in the client, as follows:
[Root@test2 ~]# yum install-y OpenSSL openssl-devel
[Root@test2 ~]# wget http://sourceforge.net/projects/nagios/files/nrpe-2.x/nrpe-2.14/nrpe-2.14.tar.gz/download? Use_mirror=hivelocityr=use_mirror=hivelocity
[Root@test2 ~]# tar zxvf nrpe-2.14.tar.gz
[Root@test2 nrpe-2.14]# Useradd Nagi
Now there are a lot of people using Zabbix, but I think if the number of server monitoring is not much, the old monitoring system Nagios is very good. Nagios Alarm function is very powerful, and the program is small, resource footprint. Nagios default does not support drawing, you can match cacti, but build more complex. Individuals are still accustomed to using
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.