command in commands. cnf:# Add by tim. man on 20141201Define command {Command_name check_mysql_trxCommand_line $ USER1 $/check_mysql_trx-w $ ARG1 $-c $ ARG2 $}
You do not need to reconfigure the alarm function because the alarm function of the email SMS has been added.
Then reload nagios[Root @ localhost objects] # service nagios reloadRunning configuration chec
gdimagestringft, see the description document index.html under the gdinstallation package)
Since Nagios reads the device name string from the configuration file and then draws it to the screen, if the configuration file itself is UTF-8 encoded, after the above modification, reload Nagios to display it smoothly. If the configuration file is not UTF-8, you can solve it in two ways:
First, convert the configu
Nagios before installation, Nagios needs PHP support after 3.1.x, so it is necessary to install PHP and HTTP-related support here.
First, create Nagios users and Groups
[Root@test2 ~]# useradd-s/sbin/nologin Nagios[Root@test2 ~]# Mkdir/usr/local/nagios[Root@test2 ~]# chown
;
Send the alarm to the contact person (via EMail, SMS, User Defined Way) when the service or host problem arises and resolves;
can support and realize redundant monitoring of the host;
The available WEB interface is used to view current network status, notification and fault history, log files, and so on;
Implementation principle of Nagios monitoring
The Nagios
nearest check_interval point send OK SMS, Complete the alarm cycle.Special:The 1.max_check_attempts is defined as 1, the alarm is detected immediately and no retry is reached.2.notification_interval is defined as 0, the alarm is sent only once, not resend.Skillfully using escalations to limit nagios alarm timesNagios is a very powerful monitoring tool, especially its alarm function, now online implementati
Nagios Monitoring System under Solaris
The article will introduce the installation process of Nagios in Solaris10, including the compilation and installation of source code; Apache installation, Nagios CGI configuration; Nagios monitoring configuration and so on.
The Nagios
Alarm, we can use 163 mailbox, the mechanism is Nagios to 163 mailbox send information, then the information will be automatically sent to our bound phone. Bind your phone in 163 in advance. In addition, you can use the SMS cat (charge) device to send an alarm.The default command.cfg has been configured in the Mail alarm settings, you can use the default configuration, using the system default mail to send
With more than one NAT environment in the recent project, it is not very convenient to notify contact management if it is not ideal to deploy a complete set of Nagios (Nagios-core+apache+php+pnp4nagios) in each NAT, Then we'll start deploying Nagios distributed monitoring together.
Main Nagios Center Service deploymen
based on the understanding of Nagios and Nagiosql, the author briefly combs the relationship between the two, as shown in the following: As you can see from the diagram above, Nagios and Nagiosql share hosts, host groups, services, service groups, and so on. CFG configuration files, while in Nagiosql, you can freely control the start and stop of nagios
This article refers to the http://wangzan18.blog.51cto.com/8021085/1628984http://linuxnote.blog.51cto.com/9876511/1637773First, Nagios overviewNagios is a plug-in structure, it does not have any monitoring function, all the monitoring is through the plug-in, so it is highly modular and flexible. Nagios monitors objects into two categories: Hosts and services. Hosts typically refer to physical hosts, such as
Copy Code code as follows:
Import gnu.io.*;
Import java.util.*;
Import java.io.*;
public class CommTest{Static Commportidentifier Portid;Static enumeration portlist;static int bauds[] = {9600, 19200, 57600, 115200}; The baud rate supported by the detection port
public static void Main (string[] args){Portlist = Commportidentifier.getportidentifiers ();SYSTEM.OUT.PRINTLN ("SMS Device port Connection test ...");while (Portlist.hasmoreelemen
1. Principle of realization
A variety of servers in the network need to be managed and maintained, the administrator can not be in time for each of the status of the monitoring, it is necessary to use the function of the software to achieve. Nagios's function is to monitor the service and host, but he does not include this part of the function, all monitoring, detection functions are through a variety of plug-ins to complete. Start Nagios, it will pe
Monitoring is very important for the daily operation of the System Manager, and the more well-known open-source monitoring software has ganglia, Cacti, Nagios, Zabbix, and so on, and this time simply said Nagios installation deployment, Because Nagios is managed based on Web page view, it can be implemented using either lamp or LNMP, the more easily implemented W
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. After the status is restored, a normal email or text message notification will be sent. I am working on this stuff in our department
We mentioned how to install Nagiosinstallation. The client will introduce it later in the article. This article will introduce how to configure the server side of Nagiosinstallation.
We talked about how to install Nagios installation. The client will introduce it later in the article. This article will introduce how to configure the server side of Nagios.
Procedure1: Open the local. cfg file and configur
resource monitoring (CPU load,disk usage,system logs), also including Windows Host (using nsclient++ Plugin )You can specify the Plugin you write to collect data over the network to monitor any situation (temperature, warning ...). )Scripts can be executed remotely by configuring the Nagios remote execution plug-in remote monitoring supports ssh Span style= "font-family: ' italics ';" > or ssl plus channel mode for monitoring simple plugin
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:
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.