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

syslog



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
...................................
Email: bcastilla@estudiantes.uci.cu
Jabber: bcastilla@jabber.uci.cu
............................................................................................
Member of Perl Monsters Mongers, Gentoo Community, UCI Free Software Community, FilPaCon Project
............................................................................................
We should be taught not to wait for inspiration to start a thing. Action always generates inspiration. Inspiration seldom generates action.


Reply to: