Buy Percona ServicesBuy Now!

Could not open required defaults file: /etc/nagios/mysql.cnf

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Could not open required defaults file: /etc/nagios/mysql.cnf

    My file is as follows:
    [client]
    user=myuser
    password=mypassword

    We are using NRPE to monitor this on a remote host. Maybe my command definition is wrong?

    Remote mysql server (nrep.cfg):
    command[check_mysql_replication_running]=/usr/lib64/nagios/plugins/pmp-check-mysql-replication-running
    command[check_mysql_replication_delay]=/usr/lib64/nagios/plugins/pmp-check-mysql-replication-delay


    Nagios server (commands)
    define command {
    command_name check-mysql-replication-running
    command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$
    }

    define command {
    command_name check-mysql-replication-delay
    command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$
    }

    Nagios server (node)

    define host{
    use my-template
    host_name myhostname
    alias myhostname
    address 1.1.1.1
    }

    define service{
    use generic-service
    host_name myhostname
    service_description mysql replication status
    check_command check-mysql-replication-running!check_mysql_replication_running
    }

    define service{
    use generic-service
    host_name myhostname
    service_description mysql slave delay
    check_command check-mysql-replication-delay!check_mysql_replication_delay
    }
Working...
X