Skip to content

Latest commit

 

History

History
47 lines (32 loc) · 1.15 KB

README.md

File metadata and controls

47 lines (32 loc) · 1.15 KB

Check servers state via munin generated RRDs data

Setup

  1. Add a new command in nagios

    check munin ### module / warn / crit

    define command {
    command_name check_munin
    command_line $USER1$/check_munin_rrd.pl -H $HOSTALIAS$ -d $HOSTALIAS$ -M $ARG1$ -w $ARG2$ -c $ARG3$ }

    check munin ### submodule / warn / crit

    define command {
    command_name check_munin_submodule command_line $USER1$/check_munin_rrd.pl -H $HOSTALIAS$ -d $HOSTALIAS$ -M $ARG1$ -S $ARG2$ -w $ARG3$ -c $ARG4$ }

  2. Define services

    check the disks

    define service {
    use generic-service
    hostgroup_name my_group
    service_description DISK_munin
    check_command check_munin!df!75!90
    }

    check the load

    define service {
    use generic-service
    hostgroup_name my_group
    service_description LOAD_munin
    check_command check_munin!load!4!8
    }

  3. Fork it