Ad Widget
Collapse
Better syslog message handling for Zabbix
Collapse
X
-
Hi,
It seems thatin /etc/syslog.conf is not working.Code:*.* @127.0.0.1
Have you checked log files in /var/log (/var/log/syslog, /var/log/messages and may be other) ?
What syslog program are you using ?
- syslog
- rsyslog
- syslog-ng
In recent Linux distributions, syslog is being replaced by rsyslog or syslog-ng.
Make sure that you have modified the appropriate configuration file.
Regards,
JBoComment
-
I am using syslog program.Hi,
It seems thatin /etc/syslog.conf is not working.Code:*.* @127.0.0.1
Have you checked log files in /var/log (/var/log/syslog, /var/log/messages and may be other) ?
What syslog program are you using ?
- syslog
- rsyslog
- syslog-ng
In recent Linux distributions, syslog is being replaced by rsyslog or syslog-ng.
Make sure that you have modified the appropriate configuration file.
Regards,
JBo
ifin /etc/syslog.conf don't work,how to make it work?Code:*.* @127.0.0.1
Comment
-
Did you check the logs ?
Sorry but I don't have any system with syslog anymore. All my Linux servers are now using rsyslog.
I have tested zbxlog a few months ago on an old Debian system with syslog and it worked. The only difference with your setup is that I was using the real IP address of the server instead of 127.0.0.1 inIf using the real IP doesn't work, I'm afraid that I won't be able to help you more.Code:*.* @127.0.0.1
Regards,
JBoComment
-
I replaced the 127ip with real ip and it didn't work .thank u very much.Did you check the logs ?
Sorry but I don't have any system with syslog anymore. All my Linux servers are now using rsyslog.
I have tested zbxlog a few months ago on an old Debian system with syslog and it worked. The only difference with your setup is that I was using the real IP address of the server instead of 127.0.0.1 inIf using the real IP doesn't work, I'm afraid that I won't be able to help you more.Code:*.* @127.0.0.1
Regards,
JBoComment
-
zbxlog release 1.0
Hi,
I have just released zbxlog v1.0 (http://www.alixen.org/attachments/do...bxlog-r1.0.tgz).
This release includes:
- CentOS init script with correct exit codes (provided by tof233)
- syslog-ng as a syslog proxy configuration (contributed by tof233)
- Gentoo init script (provided by MrDeath87)
- Gentoo configuration added to README (provided by MrDeath87)
- Support single Zbxlog server in distributed monitoring on Zabbix 1.8.x and 2.0 (1.9.x)
- Zabbix 1.8.5 frontend patches
- zbxlog.log file location changed to /var/log
Happy syslog monitoring !
JBoComment
-
Good work!Hi,
I have just released zbxlog v1.0 (http://www.alixen.org/attachments/do...bxlog-r1.0.tgz).
This release includes:
- CentOS init script with correct exit codes (provided by tof233)
- syslog-ng as a syslog proxy configuration (contributed by tof233)
- Gentoo init script (provided by MrDeath87)
- Gentoo configuration added to README (provided by MrDeath87)
- Support single Zbxlog server in distributed monitoring on Zabbix 1.8.x and 2.0 (1.9.x)
- Zabbix 1.8.5 frontend patches
- zbxlog.log file location changed to /var/log
Happy syslog monitoring !
JBo
BTW, can use for example syslog[daemon,^*fail2ban] ? where in front of fail2ban is used any prefix ?
in logging of fail2ban is a little bug in log,
put a some kind of symbol in front of program name
"п»їfail2ban.actions: WARNING"Last edited by MrDeath87; 11-05-2011, 10:14.Comment
-
zbxlog release 1.1
Hi,
I have just released zbxlog v1.1 (http://www.alixen.org/attachments/do...bxlog-r1.1.tgz).
This release adds support for IPv6.
People upgrading from 1.0 should take care of additional Perl modules dependencies needed for IPv6 support:- NetAddr::IP::Util
- IO::Socket6
- IO::Socket::INET6
These modules are not part of core Perl modules included in most distributions.
Check README file for installation details.
Happy syslog monitoring !
JBoComment
-
zbxlog uses «Perl regular expressions».
If you want to match any prefix before fail2ban, you coud useor justCode:^.*fail2ban
Regards,Code:fail2ban
JBoComment
-
Zbxlog has bees "ported" for the FreeBSD
PR to FreeBSD GNUTS has bees sent.
zbxlog should be appeared in the "net-mgmt" category.
You will be able to install it by one simple command:
I'll report here after successful adding Zbxlog to fbsd ports collection.Code:cd /usr/ports/net-mgmt/zbxlog/ && make install clean
proof:
Comment
-
Hi JBo.
I noticed a little problem.
Please remove unneeded lines:
from the patch "history.php.patch"Code:@@ -560,4 +561,4 @@ require_once('include/page_footer.php'); -?> \ Pas de fin de ligne Г* la fin du fichier. +?>
added: related only to patches for 1.9.2 version
In CentOS (no in the FreeBSD
) this lines makes error:
added second time: i use latest zabbix trunk (~1.9.5)Code:patching file history.php Hunk #1 succeeded at 315 (offset 6 lines). Hunk #2 FAILED at 567. 1 out of 2 hunks FAILED -- saving rejects to file history.php.rej
This small problem already fixed in the 1.9.4 Zabbix source code.
About FreeBSD port. I don't know whenever FreeBSD ports collection team would include my zbxlog port to port collection in the future at all.
So, maybe you can include a result of my work to zbxlog archive?
See attachments zbxlog-fbsdport.tar.gz
My port meets all the requirements of the best practice for FreeBSD port build.
Paths for different files corresponds a FreeBSD ideology (different then in the Linux). All dependencies handling is included. Port supports "prefix" option for make install, and other useful things ...
So, the best way for fbsd users is to copy port folder (my attachment) to the /usr/ports/net-mgmt and type:
Code:cd /usr/ports/net-mgmt/zbxlog/ && make install clean
Attached FilesComment
-
Init.d script for Suse linux
See attachment.
Use it has you will!
I use install folder "/opt/zbxlog" so you may need to change:
zbxlog_bin=/opt/zbxlog/bin/zbxlog.pl
to something else.
P.S. Great adition to Zabbix!Attached FilesLast edited by hugo.soares; 12-08-2011, 13:09.Comment
-
Better location for conf file
Hi,
I'm trying this out now. The only thing I can say is that I think a better location for the conf file would be in /etc/zabbix, rather than /etc
JBBComment
-
Hi,
I'm currently getting the following message in history:
However all patches from 1.8.5 applied successfully on my 1.8.7 installation. What could be wrong? Thank you.Code:Use of undefined constant S_SYSLOG_INFO - assumed 'S_SYSLOG_INFO' [include/items.inc.php:44]
Comment
-
Hi,
I just patched an 1.8.7 and it worked without any error message.
I am able to reproduce your problem by undoing the patch on include/locales/en_gb.inc.php
In this case, I get the same error message and values in Severity columns are of the form S_SYSLOG_INFO instead of their corresponding value ("Information").
Make sure that include/locales/en_gb.inc.php is really patched.
Following command:
should return:Code:grep S_SYSLOG_ include/locales/en_gb.inc.php
Hope this helps,Code:'S_SYSLOG_DEBUG' => 'Debug', 'S_SYSLOG_INFO' => 'Info', 'S_SYSLOG_NOTICE' => 'Notice', 'S_SYSLOG_WARN' => 'Warning', 'S_SYSLOG_ERR' => 'Error', 'S_SYSLOG_CRIT' => 'Critical', 'S_SYSLOG_ALERT' => 'Alert', 'S_SYSLOG_EMERG' => 'Emergency',
JBoComment
Comment