PHP script designed to monitor several XIOSd nodes on Ubuntu
- Add basic digest authentification ?
XIOSd compiled in /root/xios/src/
Apache2 and php running :
apt-get install apache2 php
As root :
cd git clone https://github.com/dirtyak/xios-monitor cp -r xios-monitor/* /var/www/html/. rm -r xios-monitor rm -r /var/www/html/index.html
Add www-data to sudoers file for shell_exec function.
nano /etc/sudoers
Add this line :
www-data ALL=(ALL) NOPASSWD:ALL
Save it
Please edit config.php to match with your vps parameters
$xios_name = "XIOS"; # Name to show for each node $xios_ip = localhost; # XIOSd is running local $xios_port = 9000; # port used by first XIOSd $xios_count = 3; # How many XIOSd to monitor ?
$xios_explorer = "xioseast.donkeypool.com"; # Explorer to use
In this default config XIOSd ports must be 9000, 9001, 9002 for XIOS1, XIOS2, XIOS3 to work
You can try it at : http://45.77.53.110/
Hosted by Vultr : https://www.vultr.com/?ref=7280492
If your wallet is already set in ".XIOS", copy it to ".XIOS1".
As root :
/root/src/xios/XIOSd stop cd cp -r $HOME/.XIOS/ $HOME/.XIOS1
Now use this script to get your node(s) online :
/root/xios/src/XIOSd -datadir=/root/.XIOS1 -config=/root/.XIOS1/XIOS.conf -daemon #/root/xios/src/XIOSd -datadir=/root/.XIOS2 -config=/root/.XIOS2/XIOS.conf -daemon #/root/xios/src/XIOSd -datadir=/root/.XIOS3 -config=/root/.XIOS3/XIOS.conf -daemon #... #Uncomment according your configuration