ifconfig on ubuntu 18.04
On ubuntu 18.04, the format of ifconfig is slightly different, which makes ip addresses and traffic are not parsed correctly. To solve this issue we should:
- add a test for the ifconfig sensor with the result of ifconfig on ubuntu 18.04
- modify the regex in the ifconfig sensor to support both versions of ubuntu
The ifconfig test: https://gitlab.cylab.be/cylab/monitoring/-/blob/master/tests/Unit/ExampleTest.php#L58
The sensor: https://gitlab.cylab.be/cylab/monitoring/-/blob/master/app/Sensor/Ifconfig.php