Indice del forum www.zeroshell.net
Distribuzione Linux ZeroShell
 
 FAQFAQ   CercaCerca  GruppiGruppi   RegistratiRegistrati 
 ProfiloProfilo  Log inLog in   Messaggi privatiMessaggi privati 

syslog: how to discard unwanted messages?

 
Nuovo argomento   Rispondi    Indice del forum -> ZeroShell
Precedente :: Successivo  
Autore Messaggio
r1vver



Registrato: 05/11/15 08:26
Messaggi: 3

MessaggioInviato: Gio Nov 05, 2015 9:59 am    Oggetto: syslog: how to discard unwanted messages? Rispondi citando

Sorry that i'm post it here in English, but i think that Google translate will ruin my already poor English text. Embarassed
English forums are very silent nowdays, may be here i can get help.

I'm fighting with my Sun QFE NIC.
It's driver have very nice "feature" to spam every 10 timer ticks (or so) messages "Auto-Negotiation unsuccessful, trying force link mode" and "Link down, cable problem?" to log if there is no connection on port.
May be it's very useful for some testing purposes, but...

So, i want to filter and discard those 2 messages from log.

I was able to edit /root/kerbynet.cgi/template.cfg/syslog.conf:
Codice:
root@zeroshell syslog> cat /root/kerbynet.cgi/template.cfg/syslog.conf
/etc/syslog.conf
:msg, contains, "Auto-Negotiation unsuccessful, trying force link mode" ~
:msg, contains, "Link down, cable problem?" ~
*.* |/tmp/logpipe
<xvar /system/logs/SyslogServerConf>


so now /etc/syslog.conf is look like:
Codice:
root@zeroshell syslog> cat /etc/syslog.conf
:msg, contains, "Auto-Negotiation unsuccessful, trying force link mode" ~
:msg, contains, "Link down, cable problem?" ~
*.* |/tmp/logpipe


But i still get those messages in log:
Codice:
[ 1107.650056] ETH00: Auto-Negotiation unsuccessful, trying force link mode
[ 1107.690056] ETH01: Auto-Negotiation unsuccessful, trying force link mode
[ 1107.720056] ETH02: Auto-Negotiation unsuccessful, trying force link mode
[ 1117.250144] ETH00: Link down, cable problem?
[ 1117.290144] ETH01: Link down, cable problem?
[ 1117.320141] ETH02: Link down, cable problem?
[ 1129.250055] ETH00: Auto-Negotiation unsuccessful, trying force link mode
[ 1129.290053] ETH01: Auto-Negotiation unsuccessful, trying force link mode
[ 1129.320052] ETH02: Auto-Negotiation unsuccessful, trying force link mode
[ 1138.850146] ETH00: Link down, cable problem?
[ 1138.890143] ETH01: Link down, cable problem?
[ 1138.920141] ETH02: Link down, cable problem?

and so on...

How to "fix" it right way?
Top
Profilo Invia messaggio privato
Mostra prima i messaggi di:   
Nuovo argomento   Rispondi    Indice del forum -> ZeroShell Tutti i fusi orari sono GMT + 1 ora
Pagina 1 di 1

 
Vai a:  
Non puoi inserire nuovi argomenti
Non puoi rispondere a nessun argomento
Non puoi modificare i tuoi messaggi
Non puoi cancellare i tuoi messaggi
Non puoi votare nei sondaggi


Powered by phpBB © 2001, 2005 phpBB Group
phpbb.it