Ad Widget
Collapse
Better syslog message handling for Zabbix
Collapse
X
-
Comment
-
Comment
-
HI JBo:
I have 2 question now
1) Tue Apr 26 15:49:18 2011 zbxlog.pl started
Cannot create socket (Address already in use) at lib/Zbxlog/Controller.pm line 48.
2) I can't recieve agent(linux) syslog even the zabbix server itself.
please help.THANK UComment
-
Hi,
Either:
- you have a zbxlog process still running.
- another process is bound to port 514
netstat -ulnp
will show you the process listening on port 514.
If it is zbxlog.pl, just kill it and start a new one.
Are you receiving syslog from your zabbix server in «nomatchhost» ?
Regards,
JBoComment
-
Hi,
Either:
- you have a zbxlog process still running.
- another process is bound to port 514
netstat -ulnp
will show you the process listening on port 514.
If it is zbxlog.pl, just kill it and start a new one.
Are you receiving syslog from your zabbix server in «nomatchhost» ?
Regards,
JBo
hi,JBo:
1)there is no zbxlog process running.
even when I killed every process include syslog that listening on port 514,then I start the zbxlog process,still that error mentioned before appeared in zbxlog.log.
2)yes,I configured to receive syslog before from my zabbix server in «nomatchhost»,is that the reason why I can't recieve local or remote agent log by zbxlog?Comment
-
You can't have more than one process listening on a port.
Make sure no other process is listening on port 514 (with netstat) before starting zbxlog.
Yes.
Zbxlog needs to map syslog messages to a zabbix host.
It is mainly based on IP address configured in Zabbix.
Is 127.0.0.1 the IP address of your zabbix server in zabbix host configuration ?
Regards,
JBoComment
-
JBo:hi,JBo:
1)there is no zbxlog process running.
even when I killed every process include syslog that listening on port 514,then I start the zbxlog process,still that error mentioned before appeared in zbxlog.log.
2)yes,I configured to receive syslog before from my zabbix server in «nomatchhost»,is that the reason why I can't recieve local or remote agent log by zbxlog?
I have solved the 1st problem.
now I have 2 items on my zabbix server, syslog[] and syslog_nomatch,last time I can't recieve zabbix server syslog but can recieve network equipment syslog by item syslog_nomatch,
now both of them don't work .why??Comment
-
You can't have more than one process listening on a port.
Make sure no other process is listening on port 514 (with netstat) before starting zbxlog.
Yes.
Zbxlog needs to map syslog messages to a zabbix host.
It is mainly based on IP address configured in Zabbix.
Is 127.0.0.1 the IP address of your zabbix server in zabbix host configuration ?
Regards,
JBo
127.0.0.1 the IP address of my zabbix server in zabbix host configuration ,and in zbxlog.conf the listening port is 127.0.0.1,and have added *.* @127.0.0.1 in etc/syslog.conf,all of above don't make it work,why?Comment
-
You said previously that you have stopped syslog process on zabix server.
Did you restart it ?
JBoComment
-
yes,syslog and zbxlog.pl process are running now,but recieve nothing.
what is the correct sequence to confiure zbxlog
whether I can have two items syslog[] and syslog_nomatch,do they conflict?
and how to configure syslog[] and syslog_nomatch correctly,and make it work?Comment
-
Syslog messages sent to syslog_nomatch are prefixed with remote host name as determined by zbxlog.
Could you post at least one of these messages here ?
JBoComment
Comment