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 #53

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

I closed my last pull request it was getting a bit missing with the extra commits to fix my mistakes this version is fine and the output matches that version using ifconfig.

Ryan