没有check_mysql,nagios怎么办?
[*]nagios监控mysql服务器: 来自:网络
[*]方法:定期去select下某个空闲的数据库
[*]使用插件:check_mysql
[*]
[*]问题:安装完成nagios后,发现居然没有这个插件,怎么办? nagios培训
[*]解决方法:
[*]# yum install mysql-devel<我系统默认没装mysql的>
[*]重装下nagios-plugins插件包
[*]# ./configure nagios实施
[*] --with-apt-get-command:
[*] --with-ping6-command: /bin/ping6 -n -U -w %d -c %d %s
[*] --with-ping-command: /bin/ping -n -U -w %d -c %d %s
[*] --with-ipv6: yes
[*] --with-mysql: /usr/bin/mysql_config 监控软件
[*] --with-openssl: yes
[*] --with-gnutls: no
[*] --enable-extra-opts: no
[*] --with-perl: /usr/bin/perl
[*] --enable-perl-modules: no
[*] --with-cgiurl: /nagios/cgi-bin
[*] --with-trusted-path: /bin:/sbin:/usr/bin:/usr/sbin nagios配置
[*] --enable-libtap: no
[*]# make && make install
[*]
[*]结果:这个插件有了!
[*]# ll /usr/local/nagios/libexec/check_mysql* 开源监控软件
[*]-rwxr-xr-x 1 root root 124343 Aug 31 13:13 /usr/local/nagios/libexec/check_mysql
[*]-rwxr-xr-x 1 root root 120909 Aug 31 13:13 /usr/local/nagios/libexec/check_mysql_query
nagios安装
想做Nagios, Zabbix,Cacti,iTop各种交流的,可以进入开源监控工具Nagios交流QQ群号 :476809427
页:
[1]