check_snmp using tcp instead of udp
Posted: Wed May 27, 2015 1:24 am
My knowledge on Nagios is not yet what it should be, but I have a question that you may be able to assist.
By default snmp connects to hosts using the UDP protocol. It is however possible to use TCP by issuing the command:
snmpget tcp:hostname:port some_oid
We are required to use the TCP protocol only.
The check_snmp plugin seem to throw the tcp preamble away, although check_snmp uses snmpget to execute the command.
Is this correct? And is there a way to convince check_snmp to use tcp?
Thanks,
Francois
By default snmp connects to hosts using the UDP protocol. It is however possible to use TCP by issuing the command:
snmpget tcp:hostname:port some_oid
We are required to use the TCP protocol only.
The check_snmp plugin seem to throw the tcp preamble away, although check_snmp uses snmpget to execute the command.
Is this correct? And is there a way to convince check_snmp to use tcp?
Thanks,
Francois