CustomTime-创新互联

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

创新互联公司长期为1000多家客户提供的网站建设服务,团队从业经验10年,关注不同地域、不同群体,并针对不同对象提供差异化的产品和服务;打造开放共赢平台,与合作伙伴共同营造健康的互联网生态环境。为淮阳企业提供专业的成都网站建设、做网站,淮阳网站改版等技术服务。拥有10年丰富建站经验和众多成功案例,为您定制开发。
# '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

另外有需要云服务器可以了解下创新互联scvps.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。


网页题目:CustomTime-创新互联
分享URL:http://scyanting.com/article/dcddgh.html