In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how to configure nagios- and install nagios-plugins in Redhat. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.
Install nagios-plugins
[root@localhost src] # tar zxvf nagios-plugins-1.4.15.tar.gz [root@localhost nagios-plugins-1.4.15] #. / configure-with-nagios-user=nagios-with-nagios-group=nagios-prefix=/usr/local/nagios [root@localhost nagios-plugins-1.4.15] # make & & make install
Verify that the installation is successful and that the following files are generated
[root@localhost nagios-plugins-1.4.15] # ls / usr/local/nagios/libexec check_apt check_disk_smb check_ide_smart check_mrtg check_nwstat check_sensors check_users check_breeze check_dns check_ifoperstatus check_mrtgtraf check_oracle check_smtp check_wave check_by_ssh check_dummy check_ifstatus check_nagios check_overcr check_ssh negate check_clamd check_file_age check_imap check_nntp check_ping check_swap urlize check_cluster Check_flexlm check_ircd check_nt check_pop check_tcp utils.pm check_dhcp check_ftp check_load check_ntp check_procs check_time utils.sh check_dig check_http check_log check_ntp_peer check_real check_udp check_disk check_icmp check_mailq check_ntp_time check_rpc check_ups
Configure the WEB interface of nagios, and you can also change the user's password with the following command
[root@localhost etc] # / usr/bin/htpasswd-c / usr/local/nagios/etc/htpasswd nagiosadmin New password: Re-type new password: Adding password for user nagiosadmin [root@localhost etc] # service httpd start Starting httpd: [OK]
Edit httpd.conf, add the following at the end, save, start apache,service httpd restart
ScriptAlias / nagios/cgi-bin / usr/local/nagios/sbin Options ExecCGI AllowOverride None Order allow,deny Allow from all AuthName "Nagios Access" AuthType Basic AuthUserFile / usr/local/nagios/etc/htpasswd Require valid-user Alias / nagios/ usr/local/nagios/share Options None AllowOverride None Order allow,deny Allow from all AuthName "Nagios Access" AuthType Basic AuthUserFile / usr/local/nagios/etc/htpasswd Require valid-user
Set the boot to start the nagios service
[root@localhost nagios-plugins-1.4.15] # chkconfig-- add nagios [root@localhost nagios-plugins-1.4.15] # chkconfig nagios on
Verify whether the nagios configuration is normal. This command will be used frequently in the future. If warning and error are 0, it is normal. As discussed later, you can start the nagios service.
[root@localhost nagios-plugins-1.4.15] # / usr/local/nagios/bin/nagios-v / usr/local/nagios/etc/nagios.cfg. Checking misc settings... Total Warnings: 0 Total Errors: 0 [root@localhost nagios-plugins-1.4.15] # service nagios start Starting nagios: done. On "Redhat how to configure nagios- installation nagios-plugins" this article is shared here, I hope the above content can be of some help to you, so that you can learn more knowledge, if you think the article is good, please share it out for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.