A Negios server was set up in the company today. After adding the monitored server, several monitored services are OK, but the host display is down.Environment Description:Nagios Server:Redhat 6.3 x64 Minimized installationTurn off SELinux and iptablesNagios-3.4.1.tar.gzNagios-plugins-2.0.3.tar.gzNrpe-2.15.tar.gzFollow the previous manual step-by-step procedure. Used to be OK, do not know why this error.650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/4D/95/wKioL1RTol6Tub7CAAEbwHa1LdI6
;>/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
1. Click on any page to error after installing Nagios softwareIt appears as though you don't have permission to view information for any of the hosts you requested ...Workaround:[Email protected] conf]# vim/usr/local/nagios-4.0.8/etc/cgi.cfgUse_authentication=0--Change 1 to 0 without certification[Email protected] conf]#/etc/init.d/nagios restartRunning Configura
";$database _hostname = "127.0.0.1";$database _username = "Nagios";$database _password = "XXXX";$database _port = "3306";$database _ssl = false;(4) Set directory permissions# Useradd Cactiuser# chown-r Cactiuser rra/log/(5) Increased timing tasks#echo "*/5 * * * * cactiuser php/var/www/html/cacti/poller.php >/dev/null 2>1" >>/etc/crontab#每5分钟以cactier去抓取数据绘图, this time 5 minutes should be the minimum interval, it is not recommended to modify to a small
command to the server side:check_nrpe-h 192.168.0.12-c check_disk (on server)if normal, it will output a row of disk detection data, or may be error. 5. Add the appropriate service to the servercd/etc/nagios/conf.d/Vim 192.168.0.12.cfg # Add the following:define service{Use generic-servicehost_name 192.168.0.12service_description Check_diskCheck_command Check_nrpe!check_diskmax_check_attempts 5Normal_check_interval 1}6. Restart the
[Nagios monitoring] NRPE: the reason for Unable to read output and troubleshooting the normal operation of the nrpe monitoring terminal definition command, monitor run #/usr/local/nagios/libexec/check_nrpe-H 117.121.9.200-c check_oracle_tablespace error prompt: NRPE: Unable to read output monitor run: #/usr/local/
As a prerequisite, the monitoring server is the UBUNTU14 operating system. The monitored server is RHEL6.5 RHEL71. Custom plugins can be implemented using scripts such as bash, Python, and so on.2, through the Nrpe plug-in to achieve monitoring server and monitored host communication between3, must pay attention to the monitoring script belongs to the user, user
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
There is a script available on Nagios's official website to monitor the status of Iptables, but the official script is not directly available and needs to be modified in order to be used, as is the case here, because Nagios's command mechanism is run with Nagios users, Therefore, the official web-based script is not available before the adjustment is not normal use, the official website provides the Iptables monit
1.nagios to add a monitoring service that monitors the number of scan engines on the client, the engine runs on the KVM virtual machine, as follows:[Email protected] libexec]# Virsh listId Name State----------------------------------avpscan_000 RunningAVPSCAN_001 RunningAVPSCAN_002 RunningAvpscan_003 RunningAvpscan_004 RunningAvpscan_005 RunningPanax Notoginseng avpscan_006 RunningAvpscan_007 RunningAvpscan
Nagios monitoring oracle alert Log script, nagiosalertClick Nagios to know how to use it # Add nagios to the oinstall group # usermod-a-G oinstall nagios#! /Bin/shDbversion = 11Bdump =/u01/app/oracle/oradata/PROD/dump/diag/rdbms/prod/PROD/trace/alert_PROD.logSTATE_ OK = 0STA
$HOSTADDRESS$ -p $ARG1$ -a $ARG2$ -w $ARG3$ -c $ARG4$ -f}
Add to host monitoring
define service{ use local-service ; Name of service template to use host_name c1gredis service_description redischeck_commandcheck_redis!6379!'connected_clients,blocked_clients'!~,~!~,~notifications_enabled0 }
Reload the configuration.
/Etc/init. d/
Figure-Nagios
The configuration of the Nagios monitoring server is as follows:
1. Install nrpe
[Root @ UnixHot src] # tar zxvf nrpe-2.12.tar.gz
[Root @ UnixHot nrpe-2.12] #./configure make all
[Root @ UnixHot nrpe-2.12] # make install-plugin
[Root @ UnixHot nrpe-2.12] # make install-daemon
[Root @ UnixHot nrpe-2.12] # make install-daemon-config
[Root @ UnixHot n
Sharing how to monitor Linux servers, let's take a look at how Nagios monitors Windows servers.Part I: Configuring Windows servers to be monitoredFirst, visit http://sourceforge.net/projects/nscplus/and download the nsclinent++ that matches your server. After I download it, the file name is: Nscp-0.4.1.73-win32.msiDouble-click the installer, select Complete Install, and choose Build instance profile, and the others will be ok the next step.Second, in
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.