Alibabacloud.com offers a wide variety of articles about nagios network monitoring, easily find your nagios network monitoring information here online.
. Monitoring Center Server (192.168.11.30) add monitored host (192.168.11.100)The following actions are performed by the server:cd/etc/nagios/conf.d/Vim 192.168.11.100.cfg//join:definehost{use linux-server host_name192.168.11.100 alias 11.100address 192.168.11.100 }defineservice{ use generic-servicehost_name 192.168.11.100 service_descriptioncheck_ping check_commandcheck_ping!100.0,20%! 200.0,50%max_check_
First, the server-side installation:1 , build on the service side Lamp EnvironmentYum install-y httpd php2 , server-side installation Nagios Main programUseradd-s/sbin/nologing./configure--prefix=/usr/local/nagios--with-command-group=nagios./configure when Perl command not found is found to install Perl this package, or make all will be error yum install-y perlMa
1. About Nagiosis an open source software that can monitor network device network traffic, linux/windows host status, and even monitor the printerIt can run on Linux or on WindowsBrowser-based web interface makes it easy for operations personnel to view the status of monitoring itemsSupport Web interface configuration, management operationsSupport SMS, email noti
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
parameters. It provides a very powerful data and user management capabilities, you can specify that each user can see the tree structure, host and any map, but also with LDAP for user authentication, but also can add their own templates, the function is very powerful and perfect. Friendly interface. CACTIThe development of software CACTI is based on making RRDTool users more convenient to use the software, in addition to basic SNMP traffic and System information
The Nagios server does not have a Check_nrpe plug-in by default and needs to compile and install Nrpe.Nrpe provides the CHECK_NRP and Nrpe binaries and the configuration files required to start the process.For the Nagios server, it only needs to Check_nrpe plug-in to send monitoring instructions, while the monitored side needs to be monitored by the Nrpe process
Nagios itself does not provide the corresponding monitoring, it is to implement monitoring is dependent on the SNMP protocol or the relevant plug-in to complete the corresponding monitoring, and usually in order to deploy quickly and easily, on the Linux host generally more Nrpe extension, And on the Windows host on th
The monitoring side of the work has been done, now as long as the monitoring side of the operation;
Note: be monitored MySQL remember to set the password AH
The addition of service types is also 2:
1.web Server
2.mysql Server
The following is a script to add a Web service:
WebServices () {read-p "" Please input the Web server IP: "Webip read-p" please input the Web alias name: "
(worktime). Then, if the defined monitoring is not in the defined alarm time period, Nagios will not send an alert notification message, no matter what happens.Notification_options: Defines the circumstances under which the monitored host (object) sends an alert notification message, the optional status is as follows:(1) w:warning, warning(2) U:unknown, unknown(3) C:critical, Danger (reached critical value
Check if the package is installed because Nagios needs to rely on these packages to provide services [[emailprotected]nagios]#rpm-qgccglibc Glibc-commongdgd-develxinetdopenssl-devel[[emailprotected]nagios] #yum install-ygdgd-develxinetdopenssl-devel Build Nagios Account [[email protected]~]#useraddnagios-s/sbin/nologin
1, monitoring plug-in downloadMongodb plug-ins are: git://github.com/mzupan/nagios-plugin-mongodb.git, just started I did not install the gitpub Environment here, Find the user grassroots help download. Then uploaded to the csdn Resources page, the new is:http://download.csdn.net/detail/mchdba/80190772, add a newMongoDBMonitoring CommandsBecause the MongoDB service is a physical machine that is shared with
1, Nagios features: Monitor the status of the server, powerful alarm function, the drawing function is weak need to use other plug-ins to implement or integrate other monitoring software.2. Five states of Nagios: OK warnning CRITICAL UNKNOWN PENDINGOK: normalWarnning: Warning (typically over threshold)CRITICAL: Critical Warning (host or service is down or exceed
In Nagios, the alarm Shell script for monitoring MySQL transactions that have been RUNNING but not finished, nagiosmysqlPreface:An error occurred while submitting the business alarm order. The page was not responded. After troubleshooting, the transaction was not committed or rolled back. I thought that if the operation status of the transaction was monitored in time, in this way, you can troubleshoot the p
;>/var/lib/nagios3/service-perfdata.out command_line/usr/bin/Perl/usr/lib/pnp4nagios/libexec/process_perfdata.pl}commands.cfg Code
Modifying the NAGIOS.CFG configurationVi/etc/nagios3/nagios.cfg Modify the following 3 line configurationsProcess_performance_data=1Host_perfdata_command=process-host-perfdataService_perfdata_command=process-service-perfdataModify Check_external_commands=1 (unmodified may cause Web sites to fail to re-schedule monitoring
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.