Ad Widget

Collapse

Mysqladmin not found

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Scuer
    Junior Member
    • Sep 2008
    • 2

    #1

    Mysqladmin not found

    I install zabbix agent on FreeBSD 6.1. Run process as standalone, after system reboot zabbix agent warn about mysqladmin (mysqladmin not found). After some time manually restart zabbix agent all work ok. But every restart time zabbix can't find mysqladmin. Process run as user zabbix and group zabbix.
  • Tenzer
    Senior Member
    • Nov 2007
    • 316

    #2
    You are missing some important information:
    Is mysqladmin to be found on the computer?
    Do you need monitoring of a MySQL database on the computer?

    Comment

    • Scuer
      Junior Member
      • Sep 2008
      • 2

      #3
      Yes, mesqladmin found on this computer. And it's work fine.
      Mysql monitoring work after i manually restart zabbix client.
      If i restart zabbix after reboot immediacy, zabbix don't find mysqladmin, if i waiting some time (5 min) and after restart, all work fine.

      Comment

      • surlyjake
        Junior Member
        • Jul 2007
        • 28

        #4
        I know this is two years old, but i saw the same behavior running freebsd 8.1 and zabbix agent 1.8.3.

        symptom is that after a reboot, the zabbix agent will show errors in its logs for mysql userparameters like:
        Code:
        mysqladmin: not found
        mysql: not found
        Running zabbix_get on an item will result in:
        Code:
        $zabbix_get -s127.0.0.1 -kmysql.qps
        ZBX_NOTSUPPORTED
        After manually restarting the agent, the mysql userparams start working. I think this may be due to the zabbix user's PATH.

        I got this behavior to stop by specifying the full path to the mysqladmin and mysql binaries. So

        Code:
        UserParameter=mysql.qps,mysqladmin -umonitor status|cut -f9 -d":"
        changes to
        Code:
        UserParameter=mysql.qps,/usr/local/bin/mysqladmin -umonitor status|cut -f9 -d":"
        Now, the mysql userparameters will work even after a reboot.
        Last edited by surlyjake; 17-09-2010, 20:24. Reason: spelling fixes

        Comment

        Working...