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

Re: syslog




El 20/10/2006, a las 21:30, Bismark Castilla Monzon escribió:

Hola lista, alguien sabe como pasarle un comando a syslog, por ejemplo

en ves de hacer que te guarde en un fichero las bitácoras de authlog

destination authlog { file("/var/log/auth.log"); };

que me ejecute un comando, lo que quiero hacer es monitoriar mis servicios usando el jabber, por ejemplo:

cada ves que exista un aviso en auth.log me haga esto

tail -n 1 /var/log/auth.log | sendxmpp -i sysadmin@myjabberserver.com

Bismark Castilla Monzón


Hola Bismark,

Echale un vistazo a Swatch, permite hacer lo que estás buscando:

http://swatch.sourceforge.net/

"Welcome to the official release site for Swatch: the active log file monitoring tool. Swatch started out as the "simple watchdog" for activly monitoring log files produced by UNIX's syslog facility. It has since been evolving into a utility that can monitor just about any type of log."

Por cierto, tiene buena pinta "sendxmpp" no lo conocía ;-)

--
Santi Saez


Reply to: