Demand is that we need to monitor the traffic on the server, there is a circulating check_traffic.sh on the network, it needs to be monitored by the machine to turn on SNMP. But it feels like you're using Nagios and you have to open SNMP ... A bit of axe scissors together with the feeling, so I wrote a monitor the flow of the shell:#!/bin/shusage () {echo "Usage:
In general, we only need to monitor the program process in the not on it. But this time, the company developed the program, the process is still in, but the deadlock. Lead to a wide range of effects, but even more importantly, do not know where the problem is, or other Test department colleagues to help find, really throw the face of the Victoria.In order to avoid the next encounter such a situation, analysis of the process deadlock phenomenon, found
Monitor the number of opened files in the nagios Agent System
Vi check_open_file.c (for linux only)
#include
#include
#include
#define OK 0#define WARNING 1#define CRITICAL 2#define UNKNOWN 3#define LEN 1000#define FILE_NR "/proc/sys/fs/file-nr"int exitstatus=OK;char *exit_status[4]={"OK","WARNING","CRITICAL","UNKNOWN"};char status_information[LEN];char performance_data[LEN];int
What is the reason for the 403Forbidden warnning when Nagios uses Check_nrpe's check_http? Yum Source installs the httpd service under the/var/www/html that does not index.html this file. The solution is simple: touch/var/www/html/index.html. Test Curl Localhost-i, appears 200, the explanation is ready.This article is from the "10707334" blog, please be sure to keep this source http://10717334.blog.51cto.com/10707334/1720772Nagios
allow desktop and server interaction. Then click "application ".
Nsclient ++/start
Nsclient ++/stop
Edit nsclient ++/nsc. ini:
1. The comments in front of all modules in [modules] are removed except CheckWMI. dll and RemoteConfiguration. dll.
2. In the [Settings] section, set the 'Password' option to set the password, which is required when nagios is connected. We do not need a password here!
3. Remove the comment of the 'allowed _ hosts' option in t
(Nagios monitor server IP) and password, as follows: 650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M02/9E/94/ Wkiol1mtvmabqvcwaaca2mds4uq791.png-wh_500x0-wm_3-wmp_4-s_141142161.png "title=" NSClient++ "alt=" Wkiol1mtvmabqvcwaaca2mds4uq791.png-wh_50 "/> Here need to fill in the IP address of the monitoring server, and then configure the password, tick all the plug-ins, from here to know that nscli
Building a monitoring system based on Nagios -- monitoring remote Windows Server
After sharing how to monitor Linux servers, let's take a look at how Nagios monitors Windows servers.
Part 1: configure the monitored Windows Server
Generic-serviceHOST_NAME RuanxiService_description Memory UsageCheck_command check_nt! Memuse!-w 80-c #内存使用到达80% is warn, reaching 90% critical}C + + for #监控 Windows host The amount of space usedDefine Service{Use Generic-serviceHOST_NAME RuanxiService_description c \ Drive SpaceCheck_command check_nt! Useddiskspace!-l C-w 80-c 90}#监控 the action state of the W3SVC settings for a Windows host------> This se
w3svcCheck_command check_nt! servicestate!-d showall-l W3SVC}#加入下面的服务定义可监控Windows机器上的Explorer the. exe process and gives an emergency alert when the process is not running.Define Service{Use Generic-serviceHOST_NAME WinserverService_description ExplorerCheck_command check_nt! procstate!-d showall-l Explorer.exe}#都好了, the basic service definition has been added, you can monitor the
Nagios Server: 192.168.5.203Windows is monitored end 192.168.5.208
Install the SNMP service under Windows Server2003 for exampleControl Panel---Add Remove Programs---Add remove Windows Components---tick management and monitoring tools---next---complete650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/49/C9/wKioL1QadmmgMMXxAADwo_FxpKs777.jpg "tit
After sharing how to monitor Linux servers, let's take a look at how Nagios monitors Windows servers.
Part 1: configure the monitored Windows Server
First, visit http://sourceforge.net/projects/nscplus/and download the NSClinent ++ of the License Server. The file I downloaded was named: NSCP-0.4.1.73-Win32.msi
D
of NIC that matches the type of network card that is being alerted, the problem is foundView the monitoring entries for Nagios monitoring 245 network card traffic:650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/57/6A/wKiom1SZXhvyrjo0AAEosYQ8IxM094.jpg "title=" 5.jpg " alt= "Wkiom1szxhvyrjo0aaeosyq8ixm094.jpg"/>
5. It is found that the monitor is the interface of the network card 11, and 11 the
1.1 Windows Client Installation nsclient++Note: After installation, you will be prompted to allow those hosts listen to add Nagios-server hosts. After installation will provide a password, remember to save, server side will use.1.2 Enable cfg_file=/usr/local/nagios/etc/objects/windows.cfg in Nagios.cfg, if you need to monitor
Nagios monitoring Windows ServerRequirement: currently, the company has about 20 Windwos servers. Daily O M mainly relies on manual server status check: CPU/memory/disk usage, I/O, etc. We hope to deploy a monitoring system to integrate and collect all the above information on servers and implement the alarm function. Analysis: based on the actual situation, collect relevant information online. decided to
nagios is not monitored by default Windows Plug-in for network card traffic, but can be implemented through a third-party plug-in script. 1: Download the check_traffic.sh script and upload it to the/usr/local/nagios/libexec directory of the Nagios monitoring server.Official: Https://github.com/cloved/check_traffic2: Ex
I. Monitoring requirements:
Remote monitoring of custom TCP ports on Windows Servers
1. Linux machines are relatively simple. Use the check_tcp plug-in (the steps are omitted)
2. Windows machine, using the check_nt plug-in, check_nt for detailed usage see http://nagiosplugins.org/man/check_nt
A. First install nsclient ++
B. Edit
/Usr/local/Nagios/etc/objects/comm
Powershell updates Nagios Windows Client
Beans found on a newly configured Nagios server today that the Windows Server's memory check still uses check_nt, and check_nt checks the sum of physical memory and virtual memory; I only need to check the physical memory, so I need to change it to check_nrpe. The configuration
Nagios as a powerful cross-platform monitoring software, its professionalism has been the vast majority of system operators unanimously recognized, friendly web interface and a large number of extension plug-ins also add to it a lot, but its configuration is slightly complex, it is necessary to record:Online has predecessors have collated a super detailed configuration process, in this:Installation and configuration of
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.