[naemon-users] Submitting Passive Checks by IP
Sven Nierlein
Sven.Nierlein at Consol.de
Thu May 27 12:15:49 CEST 2021
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/
More information about the Naemon-users
mailing list