欧美一区二区三区老妇人-欧美做爰猛烈大尺度电-99久久夜色精品国产亚洲a-亚洲福利视频一区二区

Redhat如何配置nagios-安裝nagios-plugins

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

創(chuàng)新互聯(lián)是一家專注于成都網(wǎng)站設(shè)計、做網(wǎng)站與策劃設(shè)計,銅官網(wǎng)站建設(shè)哪家好?創(chuàng)新互聯(lián)做網(wǎng)站,專注于網(wǎng)站建設(shè)10多年,網(wǎng)設(shè)計領(lǐng)域的專業(yè)建站公司;建站業(yè)務(wù)涵蓋:銅官等地區(qū)。銅官做網(wǎng)站價格咨詢:13518219792

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

驗證是否安裝成功,是否生成如下文件

[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)容,保存,啟動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è)置開機啟動nagios服務(wù)

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

驗證nagios配置是否正常,此命令以后會經(jīng)常使用,warning和error為0,表示正常,后面不正常的討論,這里可以啟動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é)到更多知識,如果覺得文章不錯,請把它分享出去讓更多的人看到。

網(wǎng)頁名稱:Redhat如何配置nagios-安裝nagios-plugins
本文地址:http://www.chinadenli.net/article46/goooeg.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供域名注冊手機網(wǎng)站建設(shè)網(wǎng)站改版靜態(tài)網(wǎng)站網(wǎng)頁設(shè)計公司關(guān)鍵詞優(yōu)化

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

h5響應(yīng)式網(wǎng)站建設(shè)