Forum Discussion
Anonymous
2 years agoRun this code on your collector debug console by issuing !groovy and pasting in the code. You don’t need to select a device:
ip = new URL("https://api.ipify.org").getText()
if (ip) {
println("public.ipaddress=${ip}")
return 0
} else {
return 1
}
For those paying attention, this is the basis for a really easy configsource that you can apply to all your collectors so you can see whenever it changes.
Related Content
- 9 months ago
- 9 months ago