NodeQueryÂ
1Â Â Registration address:Â Â https://nodequery.com/ |
2Â Â Create a new server in the dashboard, fill in the host name, keep other settings as default and save. |
3Â Â Copy the generated command and paste it into Linux to complete the installation with one click. |
To remove agent from installed server: Run following command as root to remove the NodeQuery agent from the server you've just deleted. You can find this code once you try to delete the server from Edit option.Â
rm -R /etc/nodequery && (crontab -u nodequery -l | grep -v "/etc/nodequery/nq-agent.sh") | crontab -u nodequery - && userdel nodequery
Manually Install NodeInfo Page
Demo site: https://www.51sec.org/monitor , https://mynodequery.herokuapp.com/
- Original Github address (Chinese version):Â https://github.com/helloxz/nodeinfo. It is Chinese version and I have forked it into my Github repository to modify it to English version, and add a Deploy to Heroku button to simplify deployment process.Â
- Modified GitHub Address (English version):Â https://github.com/51sec/nodeinfo
1Â Create a Read-Only API from NodeQuery Account Settings page
2Â Modify andÂ
ListServers.php
fill in your own NodeQuery API.3Â Upload whole folder's files into remote php website
I created a new folder , monitor , which is hosting all files from NodeInfo.
Here is how the webpage looks like. It will be refreshed every 3 minutes. You can modify html file and php file to have your own customization. Very nice and useful tool to show your servers in the cloud.
Auto Install NodeInfo Using Heroku
2Â Click "Deploy to Heroku" button
3Â Deploy APPÂ
4Â Visit APP URL
Go to your app settings, browse to Domains section to get app url.Â
Add Your Own Sub-Domain for Your Heroku App
Remove Nodequery Agent
Remove Agent
As soon as you delete a server from our interface, following command will be shown to remove the monitoring agent and any related data as well as user accounts from your system. Simply execute it as root on the server you don't want to monitor anymore.
rm -R /etc/nodequery && (crontab -u nodequery -l | grep -v "/etc/nodequery/nq-agent.sh") | crontab -u nodequery - && userdel nodequery
Verifying Removal
To verify that everything was removed successfully, simply check if the directory /etc/nodequery and its owner account nodequery do not exist on your system anymore. If you are using an older version of the monitoring script, you might have to remove the cron entry with the user root instead of removing the account nodequery.
Nice
ReplyDelete