LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

snmptrapd?

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: snmptrapd?
From: Andrés Cañada <acanada@xxxxxxx>
Date: Mon, 28 Nov 2005 15:39:21 +0100
Hi all!
I have a cluster working with heartbeat and ldirectord, systemimager, ganglia 
and mon. It's working nice already (thanks to everybody in this list!). 
I use Mon to monitor the cluster nodes with snmpd.
When one of the criteria is positive, then Mon sends me an alert to my mail. 
That's great!!
But now I'd like to be able to capture that sign sended by Mon to run a 
script. I don't know if I'm explaining well. When ,in example, a node fails 
to a ping-check, I'll receive an e-mail notification, but I'd like also to be 
able to capture this signal to run a script.
Can anybody tell me if snmptrapd is ideal for this issue to solve?
Is there a HOWTO for this?

thank you very much and sorry for my english.
Andres


my mon.cf is:
alertdir        = /usr/lib/mon/alert.d
mondir          = /usr/lib/mon/mon.d
logdir          = /usr/lib/mon/logs
histlength      = 500
dtlogging       = yes
dtlogfile       = /usr/lib/mon/logs/dtlog

hostgroup clusternodes node1 node2 node3 node4 ......

watch clusternodes
    service cluster-ping-check
        interval 30s
        monitor fping.monitor
        period wd {Su-Sa}
            alert mail.alert xxxx@xxxxxxxx
            upalert mail.alert xxxx@xxxxxxxx
            alertevery 1h
    service http-check
            interval 5s
            monitor http.monitor
            depend clusternodes:cluster-ping-check
            period wd {Su-Sa}
                alert mail.alert xxxx@xxxxxxxx
                upalert mail.alert xxxx@xxxxxxxx
                alertevery 1h
    service disk-space-check
            interval 15m
            monitor netsnmp-freespace.monitor -t 10000000
            depend clusternodes:cluster-ping-check
            period wd {Su-Sa}
                alert mail.alert xxxx@xxxxxxxx
                upalert mail.alert xxxx@xxxxxxxx

    service process-check
            interval 30s
            monitor netsnmp-proc.monitor -t 10000000
            depend clusternodes:cluster-ping-check
            period wd {Su-Sa}
                    alert mail.alert xxxx@xxxxxxxx
                    upalert mail.alert xxxx@xxxxxxxx
            alertevery 1h

**NOTA DE CONFIDENCIALIDAD** Este correo electrónico, y en su caso los ficheros 
adjuntos, pueden contener información protegida para el uso exclusivo de su 
destinatario. Se prohíbe la distribución, reproducción o cualquier otro tipo de 
transmisión por parte de otra persona que no sea el destinatario. Si usted 
recibe por error este correo, se ruega comunicarlo al remitente y borrar el 
mensaje recibido. 
**CONFIDENTIALITY NOTICE** This email communication and any attachments may 
contain confidential and privileged information for the sole use of the 
designated recipient named above. Distribution, reproduction or any other use 
of this transmission by any party other than the intended recipient is 
prohibited. If you are not the intended recipient please contact the sender and 
delete all copies.


<Prev in Thread] Current Thread [Next in Thread>