Ad Widget

Collapse

monitor mysql

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • antani
    Member
    • Apr 2008
    • 50

    #1

    monitor mysql

    i'd like to monitor if mysqld is running.

    i tryied to do this with

    Code:
    UserParameter=process.mysql,ps -ef | grep -v grep | grep `cat /var/run/mysqld/mysqld.pid`| wc -l
    but mysqld.pid cannot be read by zabbix user.

    Any ideas on how to monitor mysqld (or any other daemon)

    cheers
  • cstackpole
    Senior Member
    Zabbix Certified Specialist
    • Oct 2006
    • 225

    #2
    Is there any reason you couldn't use:
    Code:
    proc.num[mysqld]
    as your item to monitor ?

    Comment

    • antani
      Member
      • Apr 2008
      • 50

      #3
      Originally posted by cstackpole
      Is there any reason you couldn't use:
      Code:
      proc.num[mysqld]
      as your item to monitor ?
      I didn't know this item. Thanks.

      Comment

      Working...