From eric.schoeller at Colorado.EDU Thu May 27 07:39:47 2021 From: eric.schoeller at Colorado.EDU (Eric Schoeller) Date: Wed, 26 May 2021 23:39:47 -0600 Subject: [naemon-users] Submitting Passive Checks by IP Message-ID: Hello, I am in the midst of switching from a very old Nagios version to Naemon. In the past I had SNMPTT configured to send traps to Nagios using the "$ar" variable, which passes the IP address of the SNMP agent sending the trap. Nagios happily accepted the IP address as argument 0 for the submit_check_result. It seems like Naemon will really only accept the host_name of the device, otherwise I am prompted with the message: (Failed validation of service as type service (argument 0)) I have tried to do some research on this issue but I haven't gotten much information about it - and really why the functionality changed and if there's a way I can easily switch it back to the "legacy" behavior. Frankly I figured using the IP address would be more secure and unique than using the short hostname (but I will admit, IP addresses aren't required to be unique in the config but host_names are). Even if I populate all my devices into an /etc/hosts file (which I really would prefer not to do) some devices that send traps do so by relaying through another device, so the "$ar" variable was the only way to distinguish the actual agent. Trying to use the SNMPTT "$A" hostname variable with any traps being relayed still results in just a plain IP address getting submitted to Naemon, which doesn't work. Any pointers are greatly appreciated! Thanks, Eric Schoeller From Sven.Nierlein at Consol.de Thu May 27 12:15:49 2021 From: Sven.Nierlein at Consol.de (Sven Nierlein) Date: Thu, 27 May 2021 12:15:49 +0200 Subject: [naemon-users] Submitting Passive Checks by IP In-Reply-To: References: Message-ID: <5e39a55d-a3a4-2c59-1c41-6cc1b116697b@consol.de> Hi Eric, sounds like it's worth a discussion for a feature request. Could you please open a github issue? The only tricky thing which comes to my mind right now is how to handle multiple matches for the ip address. Cheers, Sven On 27.05.21 07:39, Eric Schoeller wrote: > Hello, > > I am in the midst of switching from a very old Nagios version to Naemon. In the past I had SNMPTT configured to send traps to Nagios using the "$ar" variable, which passes the IP address of the SNMP agent sending the trap. Nagios happily accepted the IP address as argument 0 for the submit_check_result. It seems like Naemon will really only accept the host_name of the device, otherwise I am prompted with the message: > > (Failed validation of service as type service (argument 0)) > > I have tried to do some research on this issue but I haven't gotten much information about it - and really why the functionality changed and if there's a way I can easily switch it back to the "legacy" behavior. Frankly I figured using the IP address would be more secure and unique than using the short hostname (but I will admit, IP addresses aren't required to be unique in the config but host_names are). Even if I populate all my devices into an /etc/hosts file (which I really would prefer not to do) some devices that send traps do so by relaying through another device, so the "$ar" variable was the only way to distinguish the actual agent. Trying to use the SNMPTT "$A" hostname variable with any traps being relayed still results in just a plain IP address getting submitted to Naemon, which doesn't work. > > Any pointers are greatly appreciated! > > Thanks, > > Eric Schoeller > -- Sven Nierlein sven.nierlein at consol.de Phone: +49-89-45841-439 ConSol Consulting & Solutions Software GmbH St.-Cajetan-Str. 43, D-81669 M?nchen, Germany Phone: +49-89-45841-100 https://www.consol.de/ From Sven.Nierlein at Consol.de Thu May 27 13:47:54 2021 From: Sven.Nierlein at Consol.de (Sven Nierlein) Date: Thu, 27 May 2021 13:47:54 +0200 Subject: [naemon-users] #naemon irc channel moved to libera.chat Message-ID: Hi, due to the recent changes on freenode, the official Naemon support irc channel has moved to libera.chat. The new address is: irc://libera.chat/naemon and there is also a web chat available via https://kiwiirc.com/nextclient/irc.libera.chat/#naemon Please update you irc clients and say hello if you like. Cheers, Sven - https://www.naemon.org/community/ From eric.schoeller at Colorado.EDU Fri May 28 00:24:22 2021 From: eric.schoeller at Colorado.EDU (Eric Schoeller) Date: Thu, 27 May 2021 16:24:22 -0600 Subject: [naemon-users] Submitting Passive Checks by IP In-Reply-To: <5e39a55d-a3a4-2c59-1c41-6cc1b116697b@consol.de> References: <5e39a55d-a3a4-2c59-1c41-6cc1b116697b@consol.de> Message-ID: <726e319d-724f-9e19-67b2-4d709a2e266e@colorado.edu> Will do! And I certainly agree about the potential for multiple matches. I have no idea how Nagios was originally handling that. Perhaps it was a "bug" and that's why it's no longer there;) But it's been working really well for our trap handling system for nearly 10 years. Eric. On 5/27/21 4:15 AM, Sven Nierlein wrote: > Hi Eric, > > sounds like it's worth a discussion for a feature request. Could you > please open a github issue? The only tricky > thing which comes to my mind right now is how to handle multiple > matches for the ip address. > > Cheers, > ?Sven > > > On 27.05.21 07:39, Eric Schoeller wrote: >> Hello, >> >> I am in the midst of switching from a very old Nagios version to >> Naemon. In the past I had SNMPTT configured to send traps to Nagios >> using the "$ar" variable, which passes the IP address of the SNMP >> agent sending the trap. Nagios happily accepted the IP address as >> argument 0 for the submit_check_result. It seems like Naemon will >> really only accept the host_name of the device, otherwise I am >> prompted with the message: >> >> (Failed validation of service as type service (argument 0)) >> >> I have tried to do some research on this issue but I haven't gotten >> much information about it - and really why the functionality changed >> and if there's a way I can easily switch it back to the "legacy" >> behavior. Frankly I figured using the IP address would be more secure >> and unique than using the short hostname (but I will admit, IP >> addresses aren't required to be unique in the config but host_names >> are). Even if I populate all my devices into an /etc/hosts file >> (which I really would prefer not to do) some devices that send traps >> do so by relaying through another device, so the "$ar" variable was >> the only way to distinguish the actual agent. Trying to use the >> SNMPTT "$A" hostname variable with any traps being relayed still >> results in just a plain IP address getting submitted to Naemon, which >> doesn't work. >> >> Any pointers are greatly appreciated! >> >> Thanks, >> >> Eric Schoeller >> > >