]> ## Data Volume Monitor (DVM) for UNRAID ###2024.09.16 - fix: reworked bash scripts to better standards with more safety for strange configurational states ###2024.09.13 - important fix: address possible flock condition causing installation script to stall (thanks AgentXXL) ###2024.09.12 - fix: made optical changes regarding wording, positioning and helptexts on the DVM Settings page - new: use of plugin usage metric functions to aid development of new features and planning for plugin updates (toggleable) ###2024.09.09a - fix: improvements to error and backend communication handling ###2024.08.07 - new: switched from legacy to more recent update checking mechanism ###2024.06.27a - fix: improved safeguards against malformed configurations - fix: improved safeguards against XSS cross-site vulnerabilities ###2024.06.23 - fix: changed units from KiB to KB - fix: renamed generic function names to avoid declaration collisions with other plugins - fix: minified the GUI dependencies to reduce the package size and also the page load times within the GUI ###2024.03.26 - fix: show terabytes as unit for the data volume reported in the network interface tables - fix: add clarification as to why some virtual interfaces will show inverse network traffic ###2024.03.20 - new: add setting to match services (dockers/VMs) to virtual network interfaces - new: also match docker containers using custom docker networks in the interface table - fix: minor bugfix concerning service to virtual network interface matching in interface table ###2024.03.18 - release note: welcome to the first version of the DVM package. - release note: please do report any problems in the support topic. echo "Checking for conflicting network statistics software..." if [ -f /boot/config/plugins/networkstats.plg ]; then echo "" echo "-------------------------------------------------------------------------" echo "ERROR: THIS PLUGIN CANNOT INSTALL TOGETHER WITH THE Network Stats PLUGIN" echo "Please remove conflicting software from the system to continue install." echo "-------------------------------------------------------------------------" echo "" exit 1 fi echo "Making sure all existing DVM services are stopped (before install/upgrade)..." if [ -x /etc/rc.d/rc.vnstat ]; then if ! /etc/rc.d/rc.vnstat stop >/dev/null 2>&1; then echo "WARNING:" echo "WARNING: The DVM installation script was not able to stop the services gracefully." echo "WARNING: IN CASE OF PROBLEMS, please REBOOT YOUR SYSTEM to complete any upgrades." echo "WARNING:" fi killall dvm-poller >/dev/null 2>&1 fi echo "" exit 0 &pkgURL;/vnstat-2.12-x86_64-1_slack14.2.txz a36cbbe245a26d9e0a13bbeb4c0d7116 &gitURL;/archive/&plgNAME;.txz &plgMD5; CONFIG=&plgPATH;/&name;.cfg # reading our configuration echo "Reading DVM configuration..." if [ -e "$CONFIG" ]; then source "$CONFIG" fi echo "Determining if DVM service should be started..." if [ "$SERVICE" == "enable" ]; then echo "Preparing DVM service for startup..." /etc/rc.d/rc.vnstat start fi /etc/cron.daily/dvm-poller conntest >/dev/null 2>&1 & echo "" echo "-------------------------------------------------------------------------" echo " Data Volume Monitor (DVM) for UNRAID has been installed." echo " Version: &version; / Plugin Maintainer: &author;" echo "-------------------------------------------------------------------------" echo "" echo "Making sure all existing DVM services are stopped (before uninstall)..." if [ -x /etc/rc.d/rc.vnstat ]; then if ! /etc/rc.d/rc.vnstat stop >/dev/null 2>&1; then echo "WARNING:" echo "WARNING: The DVM uninstallation script was not able to stop the services gracefully." echo "WARNING: IN CASE OF PROBLEMS, please REBOOT YOUR SYSTEM to remove any remaining packages." echo "WARNING:" fi killall dvm-poller >/dev/null 2>&1 fi removepkg &plgPATH;/*.txz # clean up folders after the removed installation # in case of re-installation of package on live system rm -rf &plgPATH; rm -rf &emhttp; rm -rf /etc/vnstat rm -rf /var/lib/vnstat rm -f /etc/vnstat.conf rm -f /tmp/dvm*notified if [ -f /boot/config/plugins/dynamix/dwdvm-notify.cron ] || [ -f /boot/config/plugins/dynamix/dwdvm-custom-alarms.cron ]; then rm -f /boot/config/plugins/dynamix/dwdvm-notify.cron rm -f /boot/config/plugins/dynamix/dwdvm-custom-alarms.cron sleep 1 update_cron sleep 1 fi rm -f /etc/cron.daily/dvm-poller >/dev/null 2>&1 echo "" echo "-------------------------------------------------------------------------" echo " Data Volume Monitor (DVM) for UNRAID has been removed." echo " Version: &version; / Plugin Maintainer: &author;" echo "-------------------------------------------------------------------------" echo ""