Info Security Memo
  • Blog
  • Sitemap
    • Categories
  • Contact
  • About
  • Resources
  • Tools
  • 51sec.org

Build Confidence

Focusing on Information Security 

Info Security Notes

Create a PHP static Page to Show NodeQuery Monitoring Server Status

1/14/2021

0 Comments

 
Create a PHP static Page to Show NodeQuery Monitoring Server Status
I am using NodeQuery free service (10 nodes) to monitor my VPS servers in the cloud for quite  a few time now. It is one of my favorite monitoring tools , which is meeting most of my requirements: cloud, light weight, fast, enough detail. If I have to say one thing to improve , that would be Windows agent. It does not support Windows machine. NodeQuery is a cloud monitoring tool only for Linux servers. It can easily monitor linux server's CPU, memory, bandwidth, hard drive and history status. Users only need to install a light weight client on their own servers with one line auto-generated command, and you can see intuitively nice server status image  in a few minutes (usually less than10 minutes).


NodeQuery 

1  Registered address:  https://nodequery.com/
Go to the NodeQuery official website to register an account.

2  Create a new server in the background, fill in the host name, keep the default and save.



3  Copy the generated command and paste it into Linux to complete the installation with one click.
After waiting for about 10 minutes, you can see intuitive data in NodeQuery. If the server fails or fails to connect, NodeQuery will send an email reminder to the administrator.






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

NodeQuery provides API support, and NodeInfo (developed by the small z blog) uses the data provided by the NodeQuery API to provide simple server monitoring information, which can be easily placed on your own website for administrators or visitors to view.

Demo site: https://www.51sec.org/monitor
  • Original Github address (Chinese version): https://github.com/helloxz/nodeinfo. It is Chinese version and I have folked it into my Github repository to modify it to English version. 
  • 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.phpfill 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

1  Go to https://github.com/51sec/nodeinfo page 

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. 









via Blogger https://ift.tt/39y3VOj
January 14, 2021 at 09:48AM Cloud, Software
0 Comments



Leave a Reply.

    Categories

    All
    Architecture
    Blog
    Checkpoint
    Cisco
    Cloud
    CyberArk
    F5
    Fortigate
    Guardium
    Juniper
    Linux
    Network
    Others
    Palo Alto
    Qualys
    Raspberry Pi
    Security
    SIEM
    Software
    Vmware
    VPN
    Wireless

    Archives

    March 2024
    February 2024
    January 2024
    December 2023
    November 2023
    October 2023
    September 2023
    August 2023
    July 2023
    June 2023
    May 2023
    April 2023
    March 2023
    February 2023
    January 2023
    December 2022
    November 2022
    October 2022
    September 2022
    August 2022
    July 2022
    June 2022
    May 2022
    April 2022
    March 2022
    February 2022
    January 2022
    December 2021
    November 2021
    October 2021
    September 2021
    August 2021
    July 2021
    June 2021
    May 2021
    April 2021
    March 2021
    February 2021
    January 2021
    December 2020
    November 2020
    October 2020
    September 2020
    August 2020
    July 2020
    October 2019
    September 2019
    June 2019
    July 2018
    May 2018
    December 2017
    August 2017
    April 2017
    March 2017
    January 2017
    December 2016
    November 2016
    October 2016
    September 2016
    August 2016
    July 2016
    June 2016
    May 2016
    April 2016
    March 2016
    February 2016
    January 2016
    December 2015
    November 2015
    October 2015
    September 2015
    August 2015
    July 2015
    June 2015
    May 2015
    April 2015
    March 2015

    Print Page:

    RSS Feed

    Email Subscribe
Powered by Create your own unique website with customizable templates.
  • Blog
  • Sitemap
    • Categories
  • Contact
  • About
  • Resources
  • Tools
  • 51sec.org