* getconn.cgi - not really needed for the user interface. ?$NODE returns text with the total number of connected nodes and the state of each connected node separated by pipes
* getconn.cgi - not really needed for the user interface. ?$NODE returns text with the total number of connected nodes and the state of each connected node separated by pipes
* statsdb.cgi - not needed for the interface. If the compiled in IP is matched, it will return a dump of the database.
* statsdb.cgi - not needed for the interface. If the compiled in IP is matched, it will return a dump of the database.
−
* jsondata.cgi - not needed for the interface, no sure what it does.
+
* jsondata.cgi - not needed for the interface, used for returning JSON formated node data from database.
* getstatus.cgi - generates the per node PNG image using getstatus and neato. This is a bash script.
* getstatus.cgi - generates the per node PNG image using getstatus and neato. This is a bash script.
* graphic-status.html - used to display the big network wide graph
* graphic-status.html - used to display the big network wide graph
Line 28:
Line 28:
* /var/www/stats-private/stats-lmdb - location of the LMDB database. This should be compiled in.
* /var/www/stats-private/stats-lmdb - location of the LMDB database. This should be compiled in.
For speed we can run the stats db on a tempfs in memory. I've disabled this for now. but it could be enabled in /etc/fstab.
For speed we can run the stats db on a tempfs in memory. I've disabled this for now. but it could be enabled in /etc/fstab.
+
+
'''Note: The db hangs from time to time and one needs to run a cron job of /usr/local/src/liblmdb/mdb_stat -rr /var/www/stats-private/stats-lmdb to clear the stale readers. see: http://www.lmdb.tech/doc/index.html'''