[ZBX-3] Zabbix does not use syslog! Created: 2007 Aug 26  Updated: 2017 May 30  Resolved: 2010 Feb 12

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent (G), Proxy (P), Server (S)
Affects Version/s: 1.4.2
Fix Version/s: 1.4.2, 1.8.2, 1.9.0 (alpha)

Type: Incident report Priority: Major
Reporter: Alexei Vladishev Assignee: Unassigned
Resolution: Fixed Votes: 2
Labels: logging
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by ZBX-1830 Logging via syslog is very rudimentary Closed
is duplicated by ZBX-1933 Zabbix doesn't logging via syslog Closed

 Description   

Hello, i am a french user of zabbix,
I am using zabbix 1.0 release, because i am in a production envirronement
first : thanks for your jobs, zabbix is a great monitoring tool.

second :I have some problems :
although in the configuration files of zabbix_suckerd and zabbix_agentd, i'm not use the "LogFile" parameter, zabbix is not using syslog.
In syslog.conf i have write :
". /var/log/allmessages"
and i create this files, and reload syslog
but there's no trace of zabbix in /var/log/allmessages
of course i can use the logfile but in this way, i can't export the log to another server.

until i resolv this problem i am using the logfile.
if anyone know how to resolve my probleme?
thank you in advance

http://www.zabbix.com/forum/showthread.php?t=653



 Comments   
Comment by richlv [ 2009 Sep 22 ]

please, evaluate
if this won't be implemented soon, sentence "If not set, syslog is used" should be removed from default config files

Comment by Oleg A. Mamontov [ 2010 Jan 29 ]

Hello! Patch below fix this problem for me

— src/libs/zbxlog/log.c.orig 2010-01-29 15:49:19.000000000 +0300
+++ src/libs/zbxlog/log.c 2010-01-29 15:49:33.000000000 +0300
@@ -109,7 +109,6 @@
#else /* not _WINDOWS */

openlog("zabbix_suckerd", LOG_PID, LOG_USER);

  • setlogmask(LOG_UPTO(LOG_WARNING));

#endif /* _WINDOWS */
}

Comment by richlv [ 2010 Feb 12 ]

as discussed :
1. server and proxy should lose "(daemon)";

2. zabbix server and proxy use inconsistent strings for startup and shutdown messages - should be unified

Comment by richlv [ 2010 Feb 16 ]

confirming the fix with changes from the dev branch.

proxy and server config files should regain string "If not set, syslog is used." in logfile directive description;
in the manual, zabbix-syslog loglevel mapping should be documented.

no need for documentation changes "testing", can be merged as-is after they have been performed.

Comment by Dmitry Borovikov [ 2010 Feb 18 ]

Fixed in pre-1.8.2 (revision 10263) and trunk (revision 10264).

Generated at Thu Mar 28 19:31:45 EET 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.