91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

Monitor the switch

發布時間:2020-07-16 01:02:00 來源:網絡 閱讀:365 作者:卍偽裝卍 欄目:移動開發

-------------------------------Switch-------------------------------


Switch>en
Switch#conf t
Switch(config)#snmp-server community first-switch ro

Switch(config)#snmp-server enable traps



-------------------------------Monitoring Server-------------------------------


Install snmp:
#rpm -ivh lm_sensors-2.10.7-9.el5.x86_64.rpm
#rpm -ihv net-snmp-5.3.2.2-17.el5.x86_64.rpm

#rpm -ivh net-snmp-utils-5.3.2.2-17.el5.x86_64.rpm


Re-compile and install nagios-plugins:
#tar -xzf nagios-plugins-1.4.16.tar.gz
#cd nagios-plugins-1.4.16
#./configure --sysconfdir=/etc/nagios \
--with-nagios-user=nagios \
--with-nagios-group=nagios \
--prefix=/usr/local/nagios
#make

#make install


Definition monitor file:
#vi /etc/nagios/objects/switch.cfg
#Add by Kingcraft

define host{

        use             generic-switch,host-pnp         ; Inherit default values from a template

        host_name       linksys-srw224p                 ; The name we're giving to this switch

        alias           Linksys SRW224P Switch         ; A longer name associated with the switch

        address         192.168.60.16                  ; IP address of the switch

        }




define service{

        use                     generic-service,srv-pnp   ; Inherit values from a template

        host_name               linksys-srw224p            ; The name of the host the service is associated with

        service_description     PING                      ; The service description

        check_command           check_ping!200.0,20%!600.0,60%      ; The command used to monitor the service

        normal_check_interval   5                         ; Check the service every 5 minutes under normal conditions

        retry_check_interval    1                         ; Re-check the service every minute until its final/hard state is determined

        }




define service{

        use                     generic-service,srv-pnp   ; Inherit values from a template

        host_name               linksys-srw224p

        service_description     Uptime

        check_command           check_snmp!-C first-switch -o sysUpTime.0

        }




define service{

        use                     generic-service,srv-pnp  ; Inherit values from a template

        host_name               linksys-srw224p

        service_description     Port 1 Link Status

        check_command           check_snmp!-C first-switch -o ifOperStatus.10001 -r 1

        }




define service{

        use                     generic-service,srv-pnp

        host_name               linksys-srw224p

        service_description     Port 24 Link Status

        check_command           check_snmp!-C first-switch -o ifOperStatus.10024 -r 1

        }




define service{

        use                     generic-service,srv-pnp

        host_name               linksys-srw224p

        service_description     ciscoMemoryPoolFree

        check_command           check_snmp!-C first-switch -o .1.3.6.1.4.1.9.9.48.1.1.1.6.16     ; The size of the free memory

        }




define service{

        use                     generic-service,srv-pnp

        host_name               linksys-srw224p

        service_description     ciscoCPUTotal1min

        check_command           check_snmp!-C first-switch -o .1.3.6.1.4.1.9.9.109.1.1.1.1.4.1   ; The overall CPU busy percentage in the last 1 minute period

        }




define service{

        use                     generic-service,srv-pnp

        host_name               linksys-srw224p

        service_description     flow

        check_command           check_snmp!-C first-switch -o ifInOctets.10024 -w 5000000000-6000000000 -c 6000000000-8000000000    ; The total number of octets received on the interface,including framing characters

        }


Empowering for monitoring files:

#chown nagios:nagios /etc/nagios/objects/switch.cfg


Modify the nagios configuration file:
#vi /etc/nagios/nagios.cfg
#Add by Kingcraft

cfg_file=/etc/nagios/objects/switch.cfg


Syntax checking:

#/usr/local/nagios/bin/nagios -v /etc/nagios/nagios.cfg


restart httpd&nagios:
#service httpd restart

#service nagios restart




向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

册亨县| 平遥县| 海安县| 姚安县| 南涧| 防城港市| 湘潭市| 广德县| 兴文县| 阿拉善左旗| 关岭| 咸丰县| 新疆| 从化市| 三河市| 怀来县| 西平县| 宜兰市| 双辽市| 闵行区| 会同县| 阳江市| 安塞县| 吉木乃县| 彭阳县| 莫力| 井研县| 郯城县| 江陵县| 龙岩市| 常宁市| 巴彦县| 塔河县| 句容市| 迭部县| 灌阳县| 永康市| 合阳县| 嵊州市| 丰顺县| 凌源市|