monit-general
[Top][All Lists]
Advanced

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

Question about grouping hosts and services together for easier managemen


From: Horatiu Nimigean
Subject: Question about grouping hosts and services together for easier management
Date: Wed, 12 Sep 2012 14:26:14 +0300
User-agent: Mozilla/5.0 (X11; Linux i686; rv:15.0) Gecko/20120827 Thunderbird/15.0

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 :)

reply via email to

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