DOH! In a previous gamedig update, I mentioned how I deleted the folder where the gamedig javascript file was that is needed to start gamedig on server startup. I didn't change anything when I rebuilt the server because the website content is on a separate hard drive that doesn't need to be touched when rebuilding a server. Looking at the javascript that starts gamedig, it was pointing to a location that doesn't exist. And like last time, I had another copy floating around on the server. Pointed my crontab file to that and the DOH! Network Game Server Stats page is working again.
Once Node and gamedig are install, you can check a server's status by doing this at the command prompt... gamedig --type minecraft dohnetwork.com:25565
. If it is working correctly, you should get a response like this... {
'name': 'Welcome to the DOH! Network',
'map': '',
'password': false,
'raw' :{
'vanilla': {
'name':'',
'map': '',
'password': false,
'raw': {
'previewsChat': false,
'description': {
'text': 'Welcome to the DOH! Network'
},
'players': {
'max': 20,
'online': 0
},
'version': {
'name': '1.19',
'protocol': 759
}
},
'maxplayers': 20,
'players': [],
'bots': [],
'connect': 'dohnetwork.com:25565',
'ping': 6
}
},
'maxplayers': 20,
'players': [],
'bots': [],
'ping': 0,
'connect': 'dohnetwork.com:25565'
}
Add this to your crontab... @reboot /usr/local/bin/node /path/to/your/gamedig.js
See the official Node gamedig page for the contents of gamedig.js. I am using pretty much the same code displayed there.