CustomTime

Modify the time file:
# vi /etc/nagios/objects/timeperiods.cfg

創(chuàng)新互聯(lián)公司主要從事網(wǎng)站設(shè)計(jì)制作、成都網(wǎng)站建設(shè)、網(wǎng)頁(yè)設(shè)計(jì)、企業(yè)做網(wǎng)站、公司建網(wǎng)站等業(yè)務(wù)。立足成都服務(wù)華容,十年網(wǎng)站建設(shè)經(jīng)驗(yàn),價(jià)格優(yōu)惠、服務(wù)專業(yè),歡迎來(lái)電咨詢建站服務(wù):18980820575

# 'workhours' timeperiod definition
define timeperiod{
    timeperiod_name    workhours
    alias              Normal Work Hours
    monday             08:30-15:30,20:30-24:00
    tuesday            00:00-03:00,08:30-15:30,20:30-24:00
    wednesday          00:00-03:00,08:30-15:30,20:30-24:00
    thursday           00:00-03:00,08:30-15:30,20:30-24:00
    friday             00:00-03:00,08:30-15:30,20:30-24:00
    }


Modify the template file:
# vi /etc/nagios/objects/templates.cfg

define service{
    name                          generic-Flows
    active_checks_enabled         1
    passive_checks_enabled        1
    parallelize_check             1
    obsess_over_service           1
    check_freshness               0
    notifications_enabled         1
    event_handler_enabled         1
    flap_detection_enabled        1
    failure_prediction_enabled    1
    process_perf_data             1
    retain_status_information     1
    retain_nonstatus_information  1
    is_volatile                   0
    check_period                  workhours
    max_check_attempts            3
    normal_check_interval         3
    retry_check_interval          2
    contact_groups                Network
    notification_options          w,u,c,r
    notification_interval         60
    notification_period           workhours
    register                      0
    }


Modify the hosts file to be monitored:
# vi /etc/nagios/Juniper/CTFirewall.cfg

define service{
    use                   srv-pnp,generic-Flows
    host_name             CTFirewall
    service_description   ethernet0/0-Flow
    check_command         check_snmp!-C Firewall -P 2c -o ifInOctets.1
    }


Grammar Checker&&Restart:
# /usr/local/nagios/bin/nagios -v /etc/nagios/nagios.cfg
# service nagios restart

文章名稱:CustomTime
瀏覽路徑:http://bm7419.com/article44/pcohhe.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供響應(yīng)式網(wǎng)站、網(wǎng)站維護(hù)、網(wǎng)站設(shè)計(jì)、搜索引擎優(yōu)化網(wǎng)站導(dǎo)航、電子商務(wù)

廣告

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

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