FreeBSD munin мониторинг запросов mysql.

baas
На сайте с 17.09.2012
Offline
162
1639

Добрый день.

Ставлю на новый сервер серевр мониторинг munin.

# uname -rms

FreeBSD 10.1-RELEASE-p37 amd64

# pkg version | grep "munin"

munin-common-2.0.25_2 =
munin-master-2.0.25_5 =
munin-node-2.0.25_6 <

# perl -v


This is perl 5, version 20, subversion 3 (v5.20.3) built for amd64-freebsd-thread-multi

Скрипт взял с github.com

https://github.com/eucher/munin-monitoring-contrib/blob/master/plugins/mysql/mysql_qcache

настройки мунина.

# egrep -v '^$|#' /usr/local/etc/munin/plugin-conf.d/plugins.conf 

env.PATH /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
[mysql*]
user root
env.mysqlconnection DBI:mysql:mysql;host=127.0.0.1;port=3306
env.mysqluser root
env.mysqlopts -u root -pпароль
env.mysqlpassword пароль
env.mysqladmin /usr/local/bin/mysqladmin
env.mysqlshow /usr/local/bin/mysqlshow

Ошибка такая возникает.

2016/08/28-12:11:23 [36950] Error output from mysql_qcache:

2016/08/28-12:11:23 [36950] Can't exec "/usr/local/etc/munin/plugins/mysql_qcache": No such file or directory at /usr/local/lib/perl5/site_perl/Munin/Node/Service.pm line 263.
2016/08/28-12:11:23 [36950] Service 'mysql_qcache' exited with status 42/0.

Если понижу perl до версии 5.18 то скрипт отрабатывает нормально, но этот костыль до поры до времени, скоро ветка перла 5,18 закроектся и как быть.

Может кто подскажет в чем дело.

Кусок кода Service.pm

/usr/local/lib/perl5/site_perl/Munin/Node/Service.pm


my @command = grep defined, _service_command($self->{servicedir}, $service, $arg);
print STDERR "# About to run '", join (' ', @command), "'\n"
if $config->{DEBUG};

exec @command; <- это и есть 263 строка.
}


# Returns the command for the service and (optional) argument, expanding '%c'

Спасибо за понимание.

Настройка BSD систем. (https://www.fryaha.ru) Знание сила, незнание Рабочая сила!
Artisan
На сайте с 04.03.2005
Offline
353
#1
baas:
Может кто подскажет в чем дело.

/usr/local/etc/munin/plugins/mysql_qcache

Файл не найден.

Найдите,

и добавьте.

www.leak.info / ДАРОМ линки конкурентов и забытых доменов
baas
На сайте с 17.09.2012
Offline
162
#2
Artisan:
/usr/local/etc/munin/plugins/mysql_qcache

Файл не найден.

Найдите,
и добавьте.

Нет!

Вы не правы.

Этот файл находится!

Вы лог хотя бы прочитали?

Добавлю вот еще, может в расследовании инцидента поможет.

# munin-node-configure | grep mysql_q
mysql_qcache | yes |
mysql_queries | yes |

Попробовал в ручную запустить плагин.

# munin-run mysql_qcache
Can't exec "/usr/local/etc/munin/plugins/mysql_qcache": No such file or directory at /usr/local/lib/perl5/site_perl/Munin/Node/Service.pm line 263.
# FATAL: Failed to exec.

Вот нашел похожую тему на офф. сайте.

http://munin-monitoring.org/ticket/1668#no1

i found the reason for the Problem.
The Information path insyde the router changed. with the new security update from AVM.
i have changed the code so far. Now i will have to find out how to update with github ;-)

Не понял, что там изменилось?

AGHost
На сайте с 16.11.2011
Offline
115
#3

Шебанг в скрипте для перла указывает в #!/usr/bin/perl, а 5.20 ставится в /usr/local/bin/perl

8 лет на рынке услуг хостинга - https://agho.st (https://agho.st)
Artisan
На сайте с 04.03.2005
Offline
353
#4
baas:
Нет! Вы не правы.
Этот файл находится!
Вы лог хотя бы прочитали?

Can't exec

"/usr/local/etc/munin/plugins/mysql_qcache":

No such file or directory

baas
На сайте с 17.09.2012
Offline
162
#5
Artisan:
Can't exec
"/usr/local/etc/munin/plugins/mysql_qcache":
No such file or directory

И что?

Файл существует и с верными права, как видно его можно с помощью мунин запустить!!!

AGHost
На сайте с 16.11.2011
Offline
115
#6

baas, проверили с изменением шебанга на #!/usr/local/bin/perl в скрипте mysql_qcache?

iamsens
На сайте с 26.08.2009
Offline
115
#7

а перл в системе где находится?

сейчас он, тут:

>whereis perl

perl: /usr/bin/perl

Авторизуйтесь или зарегистрируйтесь, чтобы оставить комментарий