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-edit... 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
Hello, Could you please share the error message that points to snmp? Can you run this commend "syslog-ng --module-registry|grep snmp" to check if you have snmp module installed ? If there is, it should print something like this: ``` Module: afsnmp The snmp module provides SNMP support for syslog-ng. destination snmp parser snmptrapd-parser ``` If not please install syslog-ng-mod-snmp (exact name may differ) -- Kokan ________________________________________ From: syslog-ng <syslog-ng-bounces@lists.balabit.hu> on behalf of Maurya, Shivani <shivani.maurya@intel.com> Sent: 18 February 2022 11:14 To: syslog-ng@lists.balabit.hu Subject: [syslog-ng] Syslog-ng v3.31 destination option not working CAUTION: This email originated from outside of the organization. Do not follow guidance, click links, or open attachments unless you recognize the sender and know the content is safe. 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<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.syslog-ng.com%2Ftechnical-documents%2Fdoc%2Fsyslog-ng-open-source-edition%2F3.30%2Fadministration-guide%2F48%23TOPIC-1595034&data=04%7C01%7Cpeter.kokai%40balabit.com%7Cfd6de5ff172c4ca7cd1c08d9f2c78843%7C91c369b51c9e439c989c1867ec606603%7C0%7C1%7C637807761074361969%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=7vwXkr2GGQmnW6%2B7S05Uaz%2BzbvGG6fTc3kU6G4zxiig%3D&reserved=0> 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
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@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-edit... 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
So what is the error you are getting? And can you setup a small test case with all the details of your configuration so people can look it over and offer suggestions? Sr. Storage Architect TOSHIBA AMERICA, INC. 1251 6th, Ave 41st flr, New York, NY 10020 508-736-5499 (mobile) E-Mail: john.stoffel@toshiba.com<mailto:john.stoffel@toshiba.com> Website: Service Now Self Service Portal<https://nassc.service-now.com/ess/navpage.do> From: syslog-ng <syslog-ng-bounces@lists.balabit.hu> On Behalf Of Maurya, Shivani Sent: Monday, February 21, 2022 4:30 AM To: syslog-ng@lists.balabit.hu Subject: Re: [syslog-ng] Syslog-ng v3.31 destination option not working 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@lists.balabit.hu<mailto:syslog-ng@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<https://urldefense.com/v3/__https:/www.syslog-ng.com/technical-documents/doc/syslog-ng-open-source-edition/3.30/administration-guide/48*TOPIC-1595034__;Iw!!BiNunAf9XXY-!Q93jrzSZM4DX-Me8aBL3c0eYbt-EnqnTHtIIy3TzSyiJ4TIy3YexNnFaPAv7bmrAmrrw$> 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
Hello, The issue was resolved by installing the needed module: syslog-ng-afsnmp -- Kokan ________________________________________ From: syslog-ng <syslog-ng-bounces@lists.balabit.hu> on behalf of Stoffel, John (TAI) <John.Stoffel@toshiba.com> Sent: 22 February 2022 14:29 To: Syslog-ng users' and developers' mailing list Subject: Re: [syslog-ng] Syslog-ng v3.31 destination option not working CAUTION: This email originated from outside of the organization. Do not follow guidance, click links, or open attachments unless you recognize the sender and know the content is safe. So what is the error you are getting? And can you setup a small test case with all the details of your configuration so people can look it over and offer suggestions? Sr. Storage Architect TOSHIBA AMERICA, INC. 1251 6th, Ave 41st flr, New York, NY 10020 508-736-5499 (mobile) E-Mail: john.stoffel@toshiba.com<mailto:john.stoffel@toshiba.com> Website: Service Now Self Service Portal<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fnassc.service-now.com%2Fess%2Fnavpage.do&data=04%7C01%7Cpeter.kokai%40balabit.com%7Cf379572f12174b196a0f08d9f6076813%7C91c369b51c9e439c989c1867ec606603%7C0%7C1%7C637811333957093773%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=haXfvZgq1WUQewptwbConnt2dCaK3PrdKNUwzREKHAc%3D&reserved=0> From: syslog-ng <syslog-ng-bounces@lists.balabit.hu> On Behalf Of Maurya, Shivani Sent: Monday, February 21, 2022 4:30 AM To: syslog-ng@lists.balabit.hu Subject: Re: [syslog-ng] Syslog-ng v3.31 destination option not working 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@lists.balabit.hu<mailto:syslog-ng@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<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.com%2Fv3%2F__https%3A%2Fwww.syslog-ng.com%2Ftechnical-documents%2Fdoc%2Fsyslog-ng-open-source-edition%2F3.30%2Fadministration-guide%2F48*TOPIC-1595034__%3BIw!!BiNunAf9XXY-!Q93jrzSZM4DX-Me8aBL3c0eYbt-EnqnTHtIIy3TzSyiJ4TIy3YexNnFaPAv7bmrAmrrw%24&data=04%7C01%7Cpeter.kokai%40balabit.com%7Cf379572f12174b196a0f08d9f6076813%7C91c369b51c9e439c989c1867ec606603%7C0%7C1%7C637811333957093773%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=Nz%2BK7scKQPryybtsXC3fRgG30uBTly3CPpHGTDkFLY4%3D&reserved=0> 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
Hi John, It's resolved now by installing syslog-ng-afsnmp module. Regards, Shivani Maurya From: syslog-ng <syslog-ng-bounces@lists.balabit.hu> On Behalf Of Stoffel, John (TAI) Sent: Tuesday, February 22, 2022 7:00 PM To: Syslog-ng users' and developers' mailing list <syslog-ng@lists.balabit.hu> Subject: Re: [syslog-ng] Syslog-ng v3.31 destination option not working So what is the error you are getting? And can you setup a small test case with all the details of your configuration so people can look it over and offer suggestions? Sr. Storage Architect TOSHIBA AMERICA, INC. 1251 6th, Ave 41st flr, New York, NY 10020 508-736-5499 (mobile) E-Mail: john.stoffel@toshiba.com<mailto:john.stoffel@toshiba.com> Website: Service Now Self Service Portal<https://nassc.service-now.com/ess/navpage.do> From: syslog-ng <syslog-ng-bounces@lists.balabit.hu<mailto:syslog-ng-bounces@lists.balabit.hu>> On Behalf Of Maurya, Shivani Sent: Monday, February 21, 2022 4:30 AM To: syslog-ng@lists.balabit.hu<mailto:syslog-ng@lists.balabit.hu> Subject: Re: [syslog-ng] Syslog-ng v3.31 destination option not working 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@lists.balabit.hu<mailto:syslog-ng@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<https://urldefense.com/v3/__https:/www.syslog-ng.com/technical-documents/doc/syslog-ng-open-source-edition/3.30/administration-guide/48*TOPIC-1595034__;Iw!!BiNunAf9XXY-!Q93jrzSZM4DX-Me8aBL3c0eYbt-EnqnTHtIIy3TzSyiJ4TIy3YexNnFaPAv7bmrAmrrw$> 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
participants (3)
-
Maurya, Shivani
-
Peter Kokai (pkokai)
-
Stoffel, John (TAI)