XFileSharing Pro - Mod suggestion

Message
Author
Stefanzm
Posts: 85
Joined: Apr 08, 2012 3:41 pm

Mod suggestion

#1 Postby Stefanzm » Nov 19, 2012 1:10 pm

Hello , was browsing thru XVideoSharing information , and noticed a mod which if possible to be integrated will prove to be quite usefull in XFS pro .
Talking about :
"Server speeds / load monitoring
You can monitor server current IN/OUT speeds + load average on servers list page"

Is that possible to be integrated in XFS pro ?

ankurs
Posts: 1054
Joined: Mar 10, 2009 2:34 am

#2 Postby ankurs » Nov 19, 2012 1:29 pm

its not really possible, unless they change the entire logic for fileservers in xfs

in xvs a node has file servers & the node is used to check speeds/load

why dont you install observium and check all your server stats via snmp, it would be much better as it has notifications and stuff

nyan
Posts: 163
Joined: Oct 28, 2010 8:01 pm

#3 Postby nyan » Nov 22, 2012 7:17 pm

Why wouldn't this be possible??
Just create a perl script on each fileserver that does this;
my $system_load = qx('uptime | awk -F "load average: " \'{ print $2 }\' | cut -d, -f1');
my $system_bandwidth = qx('ip a');
fetch it with lwp via cron.pl

create a table in database and input stuff for every cron (bytes up/down per hour and sysload)
create admin page that makes it into a nice graph

done!