久久精品人人爽,华人av在线,亚洲性视频网站,欧美专区一二三

Redhat如何配置nagios

158次閱讀
沒有評論

共計(jì) 2361 個(gè)字符,預(yù)計(jì)需要花費(fèi) 6 分鐘才能閱讀完成。

這篇文章將為大家詳細(xì)講解有關(guān) Redhat 如何配置 nagios- 安裝 nagios-plugins,丸趣 TV 小編覺得挺實(shí)用的,因此分享給大家做個(gè)參考,希望大家閱讀完這篇文章后可以有所收獲。

安裝 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

驗(yàn)證是否安裝成功,是否生成如下文件

[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

配置 nagios 的 WEB 接口,也可以通過如下命令更改用戶密碼,

[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 ]

編輯 httpd.conf,在結(jié)尾加上如下內(nèi)容,保存,啟動(dòng) 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

設(shè)置開機(jī)啟動(dòng) nagios 服務(wù)

[root@localhost nagios-plugins-1.4.15]# chkconfig --add nagios [root@localhost nagios-plugins-1.4.15]# chkconfig nagios on

驗(yàn)證 nagios 配置是否正常,此命令以后會(huì)經(jīng)常使用,warning 和 error 為 0,表示正常,后面不正常的討論,這里可以啟動(dòng) nagios 服務(wù)

[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.

關(guān)于“Redhat 如何配置 nagios- 安裝 nagios-plugins”這篇文章就分享到這里了,希望以上內(nèi)容可以對大家有一定的幫助,使各位可以學(xué)到更多知識(shí),如果覺得文章不錯(cuò),請把它分享出去讓更多的人看到。

正文完
 
丸趣
版權(quán)聲明:本站原創(chuàng)文章,由 丸趣 2023-08-25發(fā)表,共計(jì)2361字。
轉(zhuǎn)載說明:除特殊說明外本站除技術(shù)相關(guān)以外文章皆由網(wǎng)絡(luò)搜集發(fā)布,轉(zhuǎn)載請注明出處。
評論(沒有評論)
主站蜘蛛池模板: 阳春市| 鸡泽县| 宝清县| 易门县| 康保县| 枣庄市| 大埔区| 边坝县| 资中县| 尉氏县| 平陆县| 方正县| 昌宁县| 榆社县| 濮阳市| 溧阳市| 萨迦县| 东丽区| 宁德市| 灵武市| 游戏| 安溪县| 晋宁县| 隆林| 武乡县| 伊金霍洛旗| 亳州市| 邹城市| 定安县| 石渠县| 峨山| 沙田区| 广西| 泗洪县| 朝阳市| 晋州市| 柳江县| 巢湖市| 泾源县| 镇赉县| 盈江县|