hetrixtools / agent

HetrixTools Server Monitoring Agent (Linux)
https://hetrixtools.com/uptime-monitor/
88 stars 29 forks source link

Replace ifconfig with ip command for IP address extraction #52

Closed Ry3nlNaToR closed 1 year ago

Ry3nlNaToR commented 1 year ago

Hello, I've updated the script to use the ip command instead of ifconfig. ifconfig is mostly deprecated these days and is not included in the default installations of many Linux distributions. On the other hand, the ip command is commonly found in default installations

Ry3nlNaToR commented 1 year ago

Hi, I've edited the change so only global scope ipv6 are extracted, the 3nd commit was to fix me accidentally setting the nic statically to ens3.