monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Monitoring Zabbix with monit not working well?


From: Martin Pala
Subject: Re: Monitoring Zabbix with monit not working well?
Date: Fri, 23 Mar 2007 11:16:02 +0100
User-agent: Thunderbird 1.5.0.10 (Windows/20070221)

It seems that the KVM interface failed - most probably it isn't available or you don't have permissions.

Which OS is it?
Is it real or virtual system?
Is monit running with root privileges or as other user?

Thanks,
Martin


Matt Bostock wrote:
Hi guys,

This is my first of experience of Monit. I've read through the documentation
but can't seem to find the source of my problem.

I'm trying to monitor zabbix_server with Monit. The config is as follows:

check process zabbix_server with pidfile "/var/run/zabbix/zabbix_server.pid"
  start program = "/usr/local/etc/rc.d/zabbix.sh start"
  stop program  = "/usr/local/etc/rc.d/zabbix.sh stop"

I have monit running in daemon mode, polling every 15 seconds. Running 'monit
-Iv' gives:

#monit -Iv
Runtime constants:
 Control file       = /usr/local/etc/monitrc
 Log file           = syslog
 Pid file           = /var/run/monit.pid
 Debug              = True
 Log                = True
 Use syslog         = True
 Is Daemon          = True
 Use process engine = True
 Poll time          = 15 seconds
 Mail server(s)     = localhost
 Mail from          = (not defined)
 Mail subject       = (not defined)
 Mail message       = (not defined)
 Start monit httpd  = False

The service list contains the following entries:

Process Name          = zabbix_server
 Pid file             = /var/run/zabbix/zabbix_server.pid
 Monitoring mode      = active
 Start program        = '/usr/local/etc/rc.d/zabbix.sh start' timeout 1
cycle(s)
 Stop program         = '/usr/local/etc/rc.d/zabbix.sh stop' timeout 1 cycle(s)
 Pid                  = if changed 1 times within 1 cycle(s) then alert
 Ppid                 = if changed 1 times within 1 cycle(s) then alert

System Name           = host.isp.net
 Monitoring mode      = active

-------------------------------------------------------------------------------
monit: pidfile '/var/run/monit.pid' does not exist
Starting monit daemon
Monit started
system statistic error -- cannot initialize kvm interface
system statistic error -- cannot initialize the process tree => process
resource monitoring disabled
monit: pidfile '/var/run/zabbix/zabbix_server.pid' does not exist
'zabbix_server' process is not running
'zabbix_server' trying to restart
Monitoring disabled -- service zabbix_server
monit: pidfile '/var/run/zabbix/zabbix_server.pid' does not exist
monit: pidfile '/var/run/zabbix/zabbix_server.pid' does not exist
'zabbix_server' start: /usr/local/etc/rc.d/zabbix.sh
monit: pidfile '/var/run/zabbix/zabbix_server.pid' does not exist
Monitoring enabled -- service zabbix_server
monit: pidfile '/var/run/zabbix/zabbix_server.pid' does not exist
Starting Zabbix..
zabbix_server: not found
monit: pidfile '/var/run/zabbix/zabbix_server.pid' does not exist

I also get "'zabbix_server' failed to start". It looks as though Monit is
restarting Zabbix ("Starting Zabbix..." is printed by the start script), but
Zabbix is not running, and Monit complains that it can't be started. When I try
starting Zabbix manually, it works fine, and stays up.

Any help is very much appreciated,
Matt :-)



--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general






reply via email to

[Prev in Thread] Current Thread [Next in Thread]