If you try to start rsyslog with the -dn options, does it tell you anything interesting when it segfaults?

My guess is that you are missing the snmp library that it's trying to access, but I think the debug output would make it very clear.

David Lang

On Mon, 22 Jul 2013, Bryn Hughes wrote:

Hi there,

We need to be able to send SNMP traps based on certain log messages.
rsyslog looks to be able to do exactly what I need, however it is
segfaulting on me if I try and start it with an SNMP configuration.

Here is my brutally simple SNMP config:

# Load the SNMP module
$ModLoad omsnmp

if $msg contains 'error' then {
 action(type="omsnmp"
     transport="udp"
     server="192.168.1.1"
     port="162"
     version="1"
     community="testtest"
     trapoid="1.3.6.1.4.1.19406.1.2.1"
     messageoid="1.3.6.1.4.1.19406.1.1.2.1"
     enterpriseoid="1.3.6.1.4.1.3.1.1"
     traptype="6"
     specifictype="0")
}


On an entirely different note, the docs aren't really accurate for this
as most of those config statements are identified as "optional" in the
documentation, yet the software will ignore the entire action if they
aren't present.  If it passes the config validator though then I get a
segfault on startup...

Starting system logger: /bin/bash: line 1: 15332 Segmentation fault
/sbin/rsyslogd -i /var/run/rsyslogd.pid
                                                          [FAILED]

I have tested with 7.2.7, 7.4.2 and 7.4.3 - all versions had the same
behavior on my RHEL5 x86_64 test system.

Assistance greatly appreciated!!

Bryn
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of 
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE 
THAT.

_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of 
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE 
THAT.

Reply via email to