--On Tuesday, November 29, 2005 10:22:33 +0100 Andrés Cañada
<[EMAIL PROTECTED]> wrote:
Hi! I posted this message in another list and I think this is the right
place for it.
Andrés Cañada wrote:
> 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
Why don't you just write your own alert script for Mon and
have Mon run it?
Thanks for your answer. I'd like it to be so easy but I'm afraid it
isn't. In my case I need to know the ip of the falling node and then
trigger a script that makes something with the rest of the nodes (I need
to modify the setup a mpi universe).
It seems to be possible to do this since the ip of the falling node is
received via mail.
Any ideas?
Should I need to use snmptrapd??
Thank you very much
Andrés.
I think you missed the point of the previous response. The mail you're
getting from Mon is being generated by an alert script. If you think there
is enough information in that mail to take an action on the failing node,
then there is enough information available to an alert script to just have
the script take the action.
Alert scripts in Mon are simply programs which take information in specific
ways from Mon and perform some form of action on that data. They can be
shell scripts, perl programs, C programs, etc. They can take whatever
action you deem reasonable. The command line arguments and environment
variables that are passed to alert scripts are documented in the Mon man
page.
-David
David Nolan <*> [EMAIL PROTECTED]
curses: May you be forced to grep the termcap of an unclean yacc while
a herd of rogue emacs fsck your troff and vgrind your pathalias!
_______________________________________________
mon mailing list
mon@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/mon