[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Global set alert does not work with included files
From: |
Francois FOURRIER |
Subject: |
Global set alert does not work with included files |
Date: |
Thu, 28 Jul 2005 16:33:04 +0200 |
Hello everyone,
thanks for this cool monit program !
I have some hard time making a global email alert to work.
My /etc/monitrc file lools like :
###########################
set daemon 120
set logfile syslog
set mailserver 127.0.0.1
set alert address@hidden
set httpd port 2812
ssl enable
pemfile "/etc/monit/mycert.pem"
allowselfcertification
allow admin:xxxxxx
include /etc/monit/cron
include /etc/monit/syslog-ng
...
An so on....
###########################
The trouble is that when an event occurs my qmail-send log output this :
starting delivery 597: msg 4237878 to remote address@hidden
Which obviously means that monit did not use the default email adress...
The only solution i've found is to include the alert opion inside each file
like this :
/etc/monit/mysqld
###########################
check process Mysql with pidfile /var/run/mysqld/mysqld.pid
start program = "/etc/init.d/mysql start"
stop program = "/etc/init.d/mysql stop"
group database
if failed unix "/tmp/mysql.sock" then restart
alert address@hidden with mail-format { from: address@hidden
}
if 5 restarts within 5 cycles then timeout
depends mysqld_init
depends mysqld_bin
depends mysqldsafe_bin
check file mysqld_init with path /etc/init.d/mysql
group database
check file mysqld_bin with path /usr/local/mysql/bin/mysqld
group database
check file mysqldsafe_bin with path /usr/local/mysql/bin/mysqld_safe
group database
###########################
Then it works... But I have to manually insert this option in each included
file wich is not cool at all...
I can't find what is wrong here...
Do you have any hints ?
Thanks
--
François FOURRIER
-----------------
Solutions Online/Offline - Hébergement & Infogérance
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Global set alert does not work with included files,
Francois FOURRIER <=