To activate the network monitoring, execute the following script:
activate_network_monitoring.sh
#!/bin/sh NETWORK_MONITORING_CONF="/etc/network/networkmonitoring.conf" # enable network monitoring sed -i "s/monitor_network=.*/monitor_network=1/g" ${NETWORK_MONITORING_CONF} reboot
To deactivate the network monitoring, execute the following script:
deactivate_network_monitoring.sh
#!/bin/sh NETWORK_MONITORING_CONF="/etc/network/networkmonitoring.conf" # disable network monitoring sed -i "s/monitor_network=.*/monitor_network=0/g" ${NETWORK_MONITORING_CONF} reboot
To get details about the network monitoring, read the page.