선 밖에 선 자유인

nagios nrpe sample template 본문

IT/System & Network

nagios nrpe sample template

Hotman 2016. 12. 29. 17:59

nrpe 이용 시 nagios sample template



define host{

    name centos-test ; Name of this template

    use generic-host ; Inherit default values

    check_period 24x7

    check_interval 5

    retry_interval 1

    max_check_attempts 10

    check_command check-host-alive

    notification_period 24x7

    notification_interval 30

    notification_options d,r

    contact_groups admins

    register 0 ; DONT REGISTER THIS - ITS A TEMPLATE

    }


define host{

    use             centos-test ;

    host_name       centos-test ;

    alias           Linux Host ;

    address         192.168.0.105 ;

    }


define service{

    use                 generic-service

    host_name           centos-test

    service_description CPU Load

    check_command       check_nrpe!check_load

    }


define service{

    use                 generic-service

    host_name           centos-test

    service_description Root Partition

    check_command       check_nrpe!check_disk

    }


define service{

    use                 generic-service

    host_name           centos-test

    service_description Current Users

    check_command       check_nrpe!check_users

    }


define service{

    use                 generic-service

    host_name           centos-test

    service_description Total Processes

    check_command       check_nrpe!check_procs

    }

Comments