Check how long the CentOS system has been running the uptime command
It does not matter how long the system has been running for some people, but it is very important for the server administrator. When running important applications, the server must ensure stable operation for a long period of time, and sometimes even require zero downtime. So how can we know how long the server has been running? In Linux,
Nagios cannot be started, but the syntax check is disabled, and nagios cannot.
[root@mode objects]# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfgNagios Core 3.4.3Copyright (c) 2009-2011
Values :Check , notif or misc
Command Line
System command line that'll be run on execution
②.Increase inNagioscommand, usingADDAction:Format:
Centreon-u User name -P password -o cmd-a add-v ' command name ; type ; Command '
Note: When you define a command directly, you need to use the single quote " ' ", a variable should be included in the command" $... ". 1), execute the command:
commands are used to send messages.The alert for host is the same.There are several possibilities for not receiving a message:Mail is rejected, check the log of mail can be seen.Whether Nagios sends an alert message is related to several parameters in the contact.cfg (or hosts.cfg) configuration file. Here are some of the key notes below:Notifications_enabled: Whether to enable the Notification alert featu
Nagios cannot be started, and the syntax check is disabled.
[root@mode objects]# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfgNagios Core 3.4.3Copyright (c) 2009-2011 Nagios Core Development Team and Community C
OMD Overview (Monitoring software)Overview: This is a lightweight monitoring, integrated with Nagios,check MK and other software, can easily switch interface, its deployment, management is relatively simple. Download RPM package installed, after simple configuration, there are many default monitoring items, the interface is as follows: (you can also switch to the Nagios
You do not have permission to view information for any host. Please check the HTTP server's access permission settings for this CGI.Search the methodEnsure that all htpasswd.user groups are NagiosWorkaround:Vi/usr/local/nagios/etc/cgi.cfgChange the value of Use_authentication to 0.Use_authentication=0Then restart the Nagios serviceService
ErrorModify the following configuration/usr/local/nagios/etc/nagios.cfg configuration file#修改值为1Process_performance_data=1#取消下面行的注释Host_perfdata_command=process-host-perfdataService_perfdata_command=process-service-perfdata/usr/local/nagios/etc/objects/commands.cfg configuration fileNote Process-host-perfdata and Process-service-perfdata in the configuration fileAdd the following configurationDefine Command
your Nagios server here:#only_from = 127.0.0.1 10.0.20.1 10.0.20.2# Don ' t be too verbose. Don ' t log every check. This might is# commented out for debugging. If This option was commented out# The default options would be a used for this service.Log_on_success =Disable = no}#only_from Join the monitoring side IP to ensure that the monitoring terminal can telnet to the monitored sideWindows underHttp://ma
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.