-->

DEVOPSZONES

  • Recent blogs

    How to Configure Read Only Mount Points Check in Nagios?

    How to Configure Read Only Mount Points Check in Nagios?



    Nagios
    Nagios

    1. Download the check_ro_mounts plugin from here.
    2. Define command for RO Mount in checkcommands.cfg file.

    define command{
            command_name    check_nrpe_romounts
            command_line    $USER1$/check_nrpe_new -H $HOSTADDRESS$ -c $ARG1$
    }

    3. Define services and check_command in Services.cfg

    define service {
    host_name                      server Names
    service_description            Check RO Mount Points
    is_volatile                    1
    check_period                   24x7
    max_check_attempts             1
    normal_check_interval          30
    retry_check_interval           1
    contact_groups                 Contact groups
    notification_interval          120
    notification_period            24x7
    notification_options           w,c
    notifications_enabled          1
    check_command                 check_nrpe_romounts!check_ro_mounts
    }

    4. In Client define command descriptions in /etc/nagios/nrpe.cfg

    command[check_ro_mounts]=/usr/lib64/nagios/plugins/check_ro_mounts

    No comments