Linux Server Monitoring Tools: NodeQuery and NodeInfo

Publish: 2018-03-31 | Modify: 2018-03-31

NodeQuery is a monitoring tool for Linux servers that allows users to easily monitor server data such as CPU, memory, and bandwidth. Users only need to install the client on their servers with just one click and wait a few minutes to see the intuitive data on NodeQuery.

mac

Installing NodeQuery

After registering an account on the NodeQuery official website, create a new server in the background, fill in the hostname, leave the rest as default, and save it.

snipaste_20180331_154258

Copy the generated command and paste it into Linux to complete the installation with one click.

snipaste_20180331_154346

After about 10 minutes, you can see the intuitive data on NodeQuery. If the server has a failure or cannot be connected, NodeQuery will send an email notification to the administrator.

snipaste_20180331_154618

Installing NodeInfo

NodeQuery provides API support, and NodeInfo (developed by Xiaoz's Blog) uses the data provided by NodeQuery API to provide simple server monitoring information, which can be easily added to your own website for administrators or visitors to view.

NodeInfo is developed using PHP. Simply place the source code in the root directory of the website, and then modify ListServers.php to fill in your own NodeQuery API.

snipaste_20180331_155805

Access NodeInfo to see the following screenshot.

snipaste_20180331_160036

NodeInfo Description

  • NodeQuery API data refreshes every 3 minutes. If the information on the NodeInfo page does not change after constantly refreshing, it is considered normal.
  • NodeInfo automatically refreshes the page every 3 minutes.
  • NodeQuery servers are located overseas, so the availability data may not be accurate for domestic servers.

Uninstalling NodeQuery

Enter the following command to uninstall NodeQuery:

rm -R /etc/nodequery && (crontab -u nodequery -l | grep -v "/etc/nodequery/nq-agent.sh") | crontab -u nodequery - && userdel nodequery

Summary

NodeQuery allows each registered user to add up to 10 servers. If you exceed this limit, you need to register additional accounts. NodeQuery is currently in public beta and was last updated in 2014. It is unclear whether the official has abandoned this project. However, from the usage perspective, NodeQuery is simple and convenient, and the obtained data is also detailed. If you need more powerful monitoring features, you can refer to "CentOS 7 Compilation and Installation of Zabbix Server" (in Chinese).

NodeInfo Demo: https://api.xiaoz.org/status/ NodeInfo Source Code: https://github.com/helloxz/nodeinfo


Comments