Hello.
I want to monitor several hosts using monit, nothing too
fancy just icmp ping, ssh and smtp for now
i have set up monit on a centos 6.3 x86_64, installed from
rpmforge,
address@hidden monit.d]# monit -V
This is Monit version 5.4
so, i want to monitor a couple (at present 8 hosts) using
icmp ping
something like
check host db1 with address
x.x.x.x
if failed icmp type echo count 3 with timeout 3
seconds then alert
but on some of them i also monitor ssh and smtp
if failed port 22 protocol ssh
with timeout 15 seconds then alert
if failed port 25 protocol smtp with timeout 15
seconds then alert
the question is, (as i've come to realise the config file is
getting harder to parse by human eye)
is there a way to group the hosts together and check the
groups themselves ?
like
group databases
host db1 with address x x
host db2 with address x y
host db3 [...]
group mailservers
host mail1 with addr [...]
then do a
check databases
if failed port 3306 protocol mysql [...]
etc.
also, on the web interface, there are several -sections-
at the moment just System and Host
and under host i can see my hosts on the left and the
prototocols checked on the right.
Host:
Host1.... online with all services.... [ICMP echo request]
| [SSH] at port 22
etc
is there a way to divide theese sections in the way of
ICMP monitored hosts:
Host1 .... Online with all services ..... [ICMP Echo
request]
Host2 .... etc
then
SSH status on hosts
Host1 ..... Online with all services ..... [SSH] at port
22
etc.
thanks :)
--