Discover nagios monitoring system, include the articles, news, trends, analysis and practical advice about nagios monitoring system on alibabacloud.com
After installing the COLLECTD tool on the host, you can obtain data such as cpu,memery,if-traffic of the virtual machine on the host by using the COLLECTD tool. Monitoring of these data can be achieved through Nagios monitoring scripts.The following is a simple monitoring virtual machine memory script:#!/bin/bash#desc:
Ndoutuils is based on the correct installation of Nagios, please go to the previous article for Nagios installation.1. Dependency packet Detection#rpm-Q libxml2-devel pango-devel cairo-devel#yum Install Libxml2-devel pango-devel cairo-devel2. Compiling the installation#tar ZXVF rrdtool-1.4.8.tar.gz#cd rrdtool-1.4.8#./configure--prefix=/usr/local/rrdtool#make#make Install3. Verify that the installation is su
Nagios plug-in-firewall logon for session Monitoring
Ssh_firewall_session.sh -- log on to the firewall and execute dis session statistics
Firewall_check_sessions.c -- call the above script to filter out the value of sessioin.
Run:./firewall_check_sessions ssh_firewall_session.sh 192.168.0.1
Vi ssh_firewall_session.sh
#!/usr/bin/expect -f#set port 22set user xxxxxxset host [lindex $argv 0 0]set password xxxx
This article introduces shinken, A Nagios like monitoring and management tool implemented by python.Http://www.shinken-monitoring.org/main features are described as follows:1, flexible monitoring and alerting capabilities2, simple and modular discovery Module3, prioritize your effort based on business impact4. VMWare auto dependency and vmotion support5. Business
meanings of these subfolders are as follows:650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/7E/DD/wKioL1cLYtOzQrqmAAAWJhgKAqo986.png "title=" 1.png " alt= "Wkiol1clytozqrqmaaawjhgkaqo986.png"/>Bin folder: There are two executable programs in Nagios and Nagiostats.Sbin folder: The directory that executes the files required by the external command.Etc folder: The directory where the configuration file resides.Include folder:Libexec folder: T
The check_antp provided by nagios is too simple. In addition to the status statistics output, no parameters are provided. When faced with different application servers, alarm becomes a big problem.So I decided to write a check script myself. When running a script, it is different from the command operation, that is, to consider the efficiency issue. Running the netstat-ant command regularly on high-concurrency machines for statistics is obviously not
#!/bin/bashexecThis article is from the "Starry Sky" blog, so be sure to keep this source http://liuxiaolan.blog.51cto.com/7789055/1621689Batch generation of Nagios monitoring hosts
1. Unable to send message alert message when service flapping status[1409537279] SERVICE alert:rs-07; Memory; CRITICAL; hard;2; Connection refused by host[1409537279] SERVICE flapping alert:rs-07; Memory; STARTED; Service appears to has started flapping (28.2% change >= 20.0% threshold)2. Reason: The flap_detection_enabled parameter function, when the service between the two states frequently switching, in order to avoid the constant sending of alarms, this parameter is used to suppress the alar
Using the nagios plug-in to log on to the vro for ping monitoring
Router_check_apn_ping.c
#include
Script auto_ssh_route01_gglc_80_49.sh called
#!/usr/bin/expect -f#set port 22set user xxxoooset host 114.66.80.49set password xxxooo@2014set timeout 30spawn ssh $user@$hostexpect "*assword:*"send "$password\r"expect "*IRT*"send "ping -c 5 -m 1000 10.7.0.186\r"expect "*IRT*"send "quit"#expect eof
Implementation principle of Nagios monitoring
The Nagios software needs to be installed on a separate server, known as the Monitoring Center, where the server can use Linux or Unix operating systems; each monitored hardware host or service runs a Nagios software daemon that
Linux system memory mechanism: In Linux there is such a thought, the memory is not white, so it as far as possible cache and buffer some data to facilitate the next use. But in fact, the memory is also available for immediate use. So free memory =free+buffers+cached#!/bin/bashusage= "' Basename$0 ' [-w|--warning]This article is from the "Smurf Linux ops" blog, so be sure to keep this source http://jin771998569.blog.51cto.com/2147853/1636399Nagios
Linux system memory mechanism: In Linux there is such a thought, the memory is not white, so it as far as possible cache and buffer some data to facilitate the next use. But in fact, the memory is also available for immediate use. So free memory =free+buffers+cached#!/bin/bashusage= "' Basename$0 ' [-w|--warning]This article is from the "Smurf Linux ops" blog, so be sure to keep this source http://jin771998569.blog.51cto.com/2147853/1636439Nagios
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
content 123456" | Mutt-s "Message header test Message"-a/scripts/test.txttest@126.com
Monitoring system memory using free command:
1, use the free command to view the Linux system memory usage: (in m)
Copy Code code as follows:
# free-m
(Execution results are the following style)
Copy Code code as follows:
Total 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.