[Beowulf] tools for cluster event logging?

Huw Lynes lynesh at cardiff.ac.uk
Tue Nov 25 13:56:07 EST 2008


On Tue, 2008-11-25 at 10:19 -0800, David Mathog wrote:
> What would be a good tool for logging cluster specific messages, and
> nothing else, on a single server?  The purpose of this is to let
> computer nodes send messages like "node XXX hardware failure, shutting
> down", or "node xxx, boot sequence completed" messages to a central
> repository.  But I do not want any other messages logged to the
> repository from the clients.
> 
> I suppose syslog could be used for this, but the trick would be to
> choose a facility/priority for it such that nothing other than the
> desired cluster messages was ever sent.  In other words, something
> like:
> 
> logger -p cluster.info "this is a cluster message"
> 
> Unfortunately there is no "cluster" facility, and I do not know
> which one of the 20 or so defined facilities (auth, authpriv... local7)
> will never be used by some other part of the client OS.
> 

If you use syslog-ng as your central syslog server you can filter
messages based on strings. So if you preface all your cluster messages
with CLUSTER_MESSAGE or somesuch you can filter them to a custom
destination which can be a log file or a command, or both.

for examples see:
http://www.campin.net/newlogcheck.html


-- 
Huw Lynes                       | Advanced Research Computing
HEC Sysadmin                    | Cardiff University
                                | Redwood Building, 
Tel: +44 (0) 29208 70626        | King Edward VII Avenue, CF10 3NB

_______________________________________________
Beowulf mailing list, Beowulf at beowulf.org
To change your subscription (digest mode or unsubscribe) visit http://www.beowulf.org/mailman/listinfo/beowulf

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the Beowulf mailing list