hi,
We have installed nagios-2.8 in our fc6 system with official plugins( nagios1.4.11) except check_mysql plugin. So we have iinstallled check_mysql plugin alone from the nagiosplugin website. All the plugins are in the location /usr/local/nagios/libexec/libexec.
We have no problem with other plugins. But when executing check_mysql plugin, we are facing the following error:
[root@localhost libexec]# ./check_mysql
bash: ./check_mysql: cannot execute binary file
CFG files:
commands.cfg:
‘check_mysql’ command definition
define command{
command_name check_mysql
command_line $USER1$/check_mysql -H $ARG1$ -d $ARG2$ -u $ARG3$ -p $ARG4$
}
services.cfg:
define service{
use generic-service ; Name of service template to use
host_name server
service_description Database
max_check_attempts 10
max_check_attempts 10
normal_check_interval 5
retry_check_interval 1
contact_groups nagios
notification_interval 960
notification_options w,u,c,r
check_command check_mysql!192.169.4.27!nagios!mysql!mysqladmin
}
localhost.cfg:
#check_mysql
define service{
use local-service ; Name of service template to use
host_name localhost
check_command check_mysql!127.0.0.1!nagios!mysql!mysqladmin
service_description Database
}
We have already installled mysql-server using yum. Kindly help us to solve this problem.