PHP script designed to monitor your master-node(s) by using RPC API of NYX daemon. It uses apache, php and curl.
- Have a NYX node running
- Install dependencies (as root):
apt-get install apache2 libapache2-mod-php php php-curl unzip service apache2 restart
- Open your firewall port 80
ufw allow 80/tcp
- Unzip files in /var/www/html/ (default apache2 path) :
cd /var/www/html/ # Default apache2 server path wget https://github.com/nrenault/nyx_monitor/archive/master.zip unzip master.zip rm master.zip # We don't need that anymore
- Create and edit configuration (rpc_user and rpc_password)
cp /var/www/hmtl/config.php.example /var/www/hmtl/config.php nano /var/www/hmtl/config.php
- Masterode status
- Last Paid
- Balance
- Auto-refresh
- Check Status and Last Paid of several Nodes
- Explorer links
- Edit config.php (rpc_user & rpc_password)
- NYX-monitor now uses curl to make RPC request, it can be done locally or remotely and is much safer than older method (php shell_exec)
- You can see it running : http://139.180.136.33/
- NYX : NfShqok1Zq9nncuqNXr5rhFcGhgcYQLCRk
- Ethereum : 0x69a7a99f938Afaa0a6B9982D93eceB5C5ca9ACc2
- Bitcoin : bc1qqfyhj66lp5pzzxm9vrgfmeppzf8h858ac7s4qe
- Binance Smart Chain : 0x69a7a99f938Afaa0a6B9982D93eceB5C5ca9ACc2
- Solana : CW53Yc3hE16Y21RHW8Vxa8bJMgtVvhxbUG9oFkmZKNxz