[syslog-ng] Syslog-ng v3.31 destination option not working

Maurya, Shivani shivani.maurya at intel.com
Mon Feb 21 09:30:23 UTC 2022


Hi,

Can anyone please respond to my email below?

Regards,
Shivani Maurya

From: Maurya, Shivani
Sent: Friday, February 18, 2022 3:45 PM
To: syslog-ng at lists.balabit.hu
Subject: Syslog-ng v3.31 destination option not working

Hi,

I am referring the syslog-ng admin guide - https://www.syslog-ng.com/technical-documents/doc/syslog-ng-open-source-edition/3.30/administration-guide/48#TOPIC-1595034 and using the snmp() destination option.
The following is included in my syslog-ng.conf file as part of destination -

destination d_snmpv2c{
    snmp(
        version('v2c')
        host('192.168.1.1')
        trap-obj('.1.3.6.1.6.3.1.1.4.1.0', 'Objectid', '.1.3.6.1.4.1.18372.3.1.1.1.2.1')
        snmp-obj('.1.3.6.1.4.1.18372.3.1.1.1.1.1.0', 'Octetstring', 'Test SNMP trap')
        snmp-obj('.1.3.6.1.4.1.18372.3.1.1.1.1.2.0', 'Octetstring', 'admin')
        snmp-obj('.1.3.6.1.4.1.18372.3.1.1.1.1.3.0', 'Ipaddress', '192.168.1.1')
        );
};

But syslog-ng service/daemon is not starting & pointing error at snmp(). Can you please help on this?
FYI - I am using RHEL7.

Regards,
Shivani Maurya

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.balabit.hu/pipermail/syslog-ng/attachments/20220221/a4f71b91/attachment.htm>


More information about the syslog-ng mailing list