These monitors include host survival, disk space monitoring, load monitoring, process Count monitoring, and ip connection monitoring. (1) define the host configuration file hosts. cfgdefinehost {host_namecacti.comaliasnagiosserveraddress192.168.10.195contact_groupsadmin on t
These monitors include host survival, disk space monitoring, load monitoring, process count monitoring, and ip connection monitoring.(1) define the host configuration file hosts. cfg on the Monitoring ServerDefine host {Host_name
24x7的时间段, that is, monitoring all time periodsDefine Timeperiod{Timeperiod_name 24x7 #时间段的名称, there's no space in this place.Alias Hours a day, 7 days a WeekSunday 00:00-24:00Monday 00:00-24:00Tuesday 00:00-24:00Wednesday 00:00-24:00Thursday 00:00-24:00Friday 00:00-24:00Saturday 00:00-24:00}#下面是定义一个名为workhours的时间段, that is, the working time period.Define Timeperiod{Timeperiod_name workhoursAlias Normal Work HoursMonday 09:00-17:00Tuesday 09:00-17:00We
Nagios IntroductionNagios is an open source monitoring application that can be used to monitor local and remote host logs, resources, dead and alive, and many more. Through the SNMP protocol and the Nrpe protocol.The Nagios profile is configured on nconf and then clicked on to the server, which has various templates that can be either self-matching or available.N
@ mysqlvm2 ~] #
It is proved that the nagios process is normal and other monitoring items such as check_users can be detected. However, if the check_mysql fault reports an error, you still need to go to the mysql server to analyze the problem.
2. check the mysql server on the monitored end
2.1. when calling the local check_nrpe service, the same error is repor
protected] libexec]#V. Client 254 host Access Monitoring Server View monitoring informationUrl:http://192.168.4.56/nagiosNagiosadmin123456
The Nagios service monitors native resources by default, with the following resources:CPU Load Check_loadNumber of system logon users Check_usersWebsite Service Run Status Check_httpPING check_pingRoot Partition free
the CPU load of Windows Servers
Check_command check_nt! MEMUSE! -W 80-c 90 monitor Windows Server Memory
Check_command check_nt! USEDDISKSPACE! -L c-w 80-c 90 monitoring Windows Server C space
Check_command check_nt! SERVICESTATE! -D SHOWALL-l telnet monitors the telnet service status
Check_command check_nt! PROCSTATE! -D SHOWALL-l assumer.exe monitors the Explorer process status
Server:
A. Copy the window
Client ip:192.168.1.11Service-Side ip:192.168.1.12Purpose: To check the existence of the Java process for EIP usersClient ConfigurationScript Name: check_pid.shThe script is as follows:#! /bin/bashSi= ' Ps-ef|grep java|grep eip|wc-l 'If [$si-eq 1];thenecho "Status OK"Exit 0Elseecho "The Pro is Down,plaese check!"Exit 1FiPlaced under the/home/monitor/nagios/libexec, that is, Nrpe plug-in storage place, Chown
For example, you need to monitor whether the mysqld background service process starts the/usr/local/Nagios/etc/nrpe. cfg file and add the following line at the end:
Command [check_mysql] =/usr/local/Nagios/libexec/check_procs-C 2: 2-A mysqld
Modify/usr/local/Nagios/etc/objetc/services. cfg and add the following Con
to define the host States for which notifications can be sent OU T to the contact. Valid options is a combination of one or more of the following:d = notify on-down host states,u = Notif Y on unreachable host states,r = notify on host recoveries (up states),f = notify when the host starts a nd stopsflapping, ands = Send notifications when host or servicescheduled downtime starts and ends. If you specifyn (none) as a option, the contact would not be receive any type of host notifications.4. NSCA
Article Title: O M monitoring Nagios serialization 3: deploying and configuring the Nagios service. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Source: it168Author: Tian Yi (sery@163.com)
As the saying goes: to do good th
As the saying goes: to do good things, you must first sharpen your tools. to make system management easier and more effective, a good monitoring tool is essential. here, I recommend nagios, an open-source monitoring tool that has been used for more than four years and is powerful and customizable.
O M monitoring
46042 Nagios 4u IPv4 55448 0t0 TCP : 5666 (LISTEN)Nrpe 46042 nagios 5u IPv6 55449 0t0 TCP : 5666 (LISTEN)Nrpe ports and processes are present stating that Nrpe started successfully.Hint: Restart Nrpe can use Killall to kill Nrpe process and then start4. Nagios-server-side configuration.1) Create Host.cfg host file to
usageSSH: Remote ServiceSwap usage: usage of swap partitionTotal Processes: Process countNagios Service configuration file description[Email protected] ~]# cd/usr/local/nagios/etc/[[email protected] etc]# lsCgi.cfg (defines the user name to access the CGI file) htpasswd.users nagios.cfg (master configuration file for Nagios Service) objects resource.cfg (defines
Build a monitoring server using Nagios
Chapter 4 using Nagios to build a Monitoring Server
【About Nagios]
Nagios is an open-source application software for monitoring systems and networ
the monitored remote Linux/Unix host to send monitoring information to the Nagios server (this is especially used in redundant monitoring mode ); nsclient ++ is a component used to monitor Windows hosts installed on Windows hosts, while ndoutils is used to store Nagios configuration information and data generated by v
monitoring entry for this machine ||--printer.cfg# used to define the monitoring entry for the printer | |--sThe ervices.cfg# is used to configure monitored services ||--switch.cfg # to define the monitoring entry for the switch ||--templates.cfg# template configuration file ||--timeperiods.cfg# for configuring alarm cycle time | '-- windows.cfg# is used to defi
Configuring Nagios Monitoring System filesNagios configuration file:Nagios.cfg: Master profile, defining the name and location of various configuration filesCGI.CFG: Controlling the CGI configuration fileResource.cfg: Resource file, define various variables so that other files can be calledObjects: Other configuration file directory, this directory is mainly:COMMAND.CFG: Command configuration file, define v
operational Engineer's basic literacy indicators.Second, Nagios two core modes of work1, Nagios's first mode of operation: Remote direct connection acquisitionWhat does the remote direct-connect acquisition work mode mean? Nagios's monitoring server needs to collect data from the monitored machines, while some of the data on the monitored machines are as follows:IP Address not pass throughPort does not pas
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.