Hello.
I´m trying to monitor devices with the net_response plugin. I can do it with tcp, but I don´t know how to make it work with UDP:
[[inputs.net_response]]
protocol = “udp”
address = “A.B.C.D:161”
timeout = “3s”
send = ???
expect = ???
I keep getting "“read_failed” when running the plugin:
net_response,host=grafana,port=161,protocol=udp,result=read_failed,server=A.B.C.D result_code=3i,result_type=“read_failed”,string_found=false 1606440988000000000
Hello @dllivipuma ,
Is this helpful?
protocol = "tcp"
## Server address (default localhost)
address = "localhost:80"
## Set timeout
# timeout = "1s"
## Set read timeout (only used if expecting a response)
# read_timeout = "1s"
## The following options are required for UDP checks. For TCP, they are
## optional. The plugin will send the given string to the server and then
## expect to receive the given 'expect' string back.
## string sent to the server
# send = "ssh"
## expected string in answer
# expect = "ssh"
## Uncomment to remove deprecated fields
# fielddrop = ["result_type", "string_found"]
`
## The following options are required for UDP checks. For TCP, they are
## optional. The plugin will send the given string to the server and then
## expect to receive the given 'expect' string back.
## string sent to the server
# send = "ssh"
## expected string in answer
# expect = "ssh"