How to Monitor your VPS for Free

VirtuBox

Global Mod
Staff Member
Joined
May 3, 2016
Messages
1,551
Best answers
4
Ratings
414 13
Points
83
#1
As monitoring is still the best way to haven't downtime with your VPS, here some solution to monitor it for free.

1) Netdata

Screenshot_2.jpg



Netdata is a small monitoring tool which provide you the ability to monitor all your VPS services with a Clean web interface.
You can install it in only few minutes :

Prepare your server with some packages
Code:
[COLOR=#969896]# Debian / Ubuntu[/COLOR]
[SIZE=3]apt-get install zlib1g-dev uuid-dev libmnl-dev gcc make git autoconf autogen automake pkg-config

[COLOR=#969896]# Centos / Fedora / Redhat[/COLOR]
yum install zlib-devel libuuid-devel libmnl-devel gcc make git autoconf autogen automake pkgconfig
[/SIZE]


Install also network tools for remote monitoring :


Code:
[COLOR=#969896][FONT=Consolas]# debian / ubuntu

[/FONT][/COLOR]apt-get install curl jq nodejs

[COLOR=#969896]# centos / fedora / redhat

[/COLOR] [COLOR=#333333][FONT=Consolas]yum install curl jq nodejs[/FONT][/COLOR]

Then you just have to download it from github and to launch the install :

Code:
[COLOR=#969896][FONT=Consolas]# download it - the directory 'netdata' will be created

[/FONT][/COLOR]git clone https://github.com/firehol/netdata.git --depth=1
[COLOR=#0086B3]cd[/COLOR] netdata

[COLOR=#969896]# build it, install it, start it[/COLOR]
./netdata-installer.sh

You will be able to get access to the dashboard at : http://yourserverIP:19999/

More details at : https://github.com/firehol/netdata/wiki/Installation


2) Htop - The easiest to install

Htop.png

If htop will not provide you a web interface, it's the easiest monitor tool to install and to use.
Code:
[COLOR=#969896]# Debian / Ubuntu[/COLOR]
[SIZE=3]apt-get install htop

[COLOR=#969896]# Centos / Fedora / Redhat[/COLOR]
yum install htop
[/SIZE]
And to use it :

Code:
[COLOR=#969896]# Debian / Ubuntu / [/COLOR][COLOR=#969896]C[/COLOR][COLOR=#969896]entos / Fedora / Redhat[/COLOR]
[SIZE=3]htop

[/SIZE]

3) Nixstats.com

eestorenix.jpg

NIXStats
provide domains & server monitoring service, it's currently in beta and totally free, you have just to run a single bash command to monitor a server.

4) Linode Longview

linode.png
Linode provide also a free monitoring service for up to 10 servers, and you can install it using a single command line. It's working fine but you have only 12 hours history in free account.

Good monitoring !
 

Attachments

Last edited:

Marc A

Well-known member
Joined
Jun 14, 2016
Messages
125
Best answers
0
Ratings
5
Points
18
#4
Hello,

Thanks for this man! I am definitely using this.

Cheers,

Marc A. :drinks:
 

fwh

Administrator
Staff Member
Joined
Dec 8, 2012
Messages
729
Best answers
0
Ratings
276 1
Points
63
#5
Yes, htop is only a good way to see process and resources. but for disk usage you don't need a monitoring tools :

Code:
df -h
View attachment 1593
It it a good command to check disk usage with SSH

If we don't use tools to monitor a VPS then we can use these commands

Check server's RAM (memory) usage

# free -m
Another useful tool is ps, you can see running processes in RAM

 
Joined
Jul 18, 2016
Messages
16
Best answers
0
Ratings
1
Points
0
#6
I'll definitely try Netdata, thanks for the recommendations!
 

Kaz Wolfe

Well-known member
Joined
Jul 7, 2016
Messages
309
Best answers
0
Ratings
23
Points
18
#7
The first image was attracted me, I will install Netdata on my hosting.
but Htop seems lighter than Netdata if we compare how much resource it will use to run its applications.
 

VirtuBox

Global Mod
Staff Member
Joined
May 3, 2016
Messages
1,551
Best answers
4
Ratings
414 13
Points
83
#8
Yes Netdata is "too attractive" to be used daily, at first because it need more resources than other monitoring tools, and also because it have several dependencies to dispay this beautiful dashboard. And in fact, I'm using only a tool to detect downtime, and I monitor my server only if there is a problem.
 
Joined
Aug 1, 2016
Messages
27
Best answers
0
Ratings
1
Points
0
#9
The very first image was attracted me, I'll install Netdata on my small hosting.

but Htop appears lighter than Netdata when we compare just how much resource it'll use to operate its programs.
 

Maxoq

Well-known member
Joined
Feb 25, 2015
Messages
369
Best answers
0
Ratings
47 1
Points
28
#10
For Netdata, I would add extra information as following

Opening port 19999

Port 19999 is the default port of Netdata, you can change by leaving a comment in the configuration file

Code:
/etc/netdata/netdata.conf
If not accessible, you may need to open port 19999 by iptables

Code:
service iptables start
iptables -I INPUT -p tcp --dport 19999 -j ACCEPT
service iptables save
service iptables restart
Auto start netdata when reboot

Code:
echo "/usr/sbin/netdata" >> /etc/rc.local
You can run netdata manually with the command:

Code:
/usr/sbin/netdata
If you want to stop netdata, use killall

Code:
killall netdata
Update Netdata

if you want to update to newer version of Netdata, it will inform you in the Update tab in the Dashboard.

Now you just need to access the directory that you have got netdata previously and run update

Code:
cd /root/netdata/
git pull
./netdata-installer.sh
Script will automatically upgrade and restart netdata.

That's all I want to add to this great tutorial of @VirtuBox!


Thanks
Max
 
Joined
Sep 9, 2016
Messages
26
Best answers
0
Ratings
5
Points
3
#11
I installed netdata on my vps. The only thing I had to do extra was allow my IP through the firewall to access port 19999. It's a great way to monitor pretty much everything though, thank you for the tutorial.
 
Joined
Oct 2, 2016
Messages
62
Best answers
0
Points
0
#13
Zabbix is also pretty good however its more handy when you have to monitor multiple servers and services.
 

Elnar

New member
Joined
Oct 4, 2016
Messages
1
Best answers
0
Points
0
#14
I recommend zabbix+munin. This link will provide reliable monitoring, free push notifications and high-quality graphics.
 

BillEssley

Well-known member
Joined
Feb 19, 2013
Messages
299
Best answers
2
Ratings
25
Points
28
#15
Zabbix is also pretty good however its more handy when you have to monitor multiple servers and services.
I recommend zabbix+munin. This link will provide reliable monitoring, free push notifications and high-quality graphics.
Nice share, it could be a good alternative for netdata and htop, I will have a check on Zabbix to see how it work.

What is munin? :think:
 
Joined
Oct 11, 2016
Messages
27
Best answers
0
Ratings
5
Points
0
#17
I use Uptime Robot to monitor my sites, it's external so you can use it on share hosting as well. I've been using this for years and the free version of it, I always get a text alert if any of the websites I own go down for any reason. It has build in KEYWORD Monitoring too, so even if you website serves up a 404 page or an error page, if the keyword isn't present you'll get alerted also.
 
Last edited:
Joined
Oct 5, 2016
Messages
42
Best answers
0
Ratings
7
Points
8
#20
Got to love the look of Netdata! If it weren't because we already just use htop we probably would have lots of fun looking at statistics from Netdata. Maybe we can try it out in the future.
 
Joined
Apr 9, 2013
Messages
31
Best answers
0
Ratings
2
Points
0
#21
Excellent advice @VirtuBox!

htop is definitely the option if you don't want a web interface. For a web based approach, all options look great!
 
Latest Threads
Replies
1
Views
15
Replies
2
Views
16
  • Deleted
  • Deleted by fwh
Replies
0
Views
2
Replies
0
Views
8
Recommended Threads
Replies
7
Views
2,506
Replies
11
Views
392
Replies
8
Views
1,363
Replies
15
Views
1,338
Similar Threads
Replies
3
Views
282
Replies
2
Views
1,691
Replies
6
Views
1,494
Replies
8
Views
1,671

Latest postsNew threads

Latest Hosting OffersNew Reviews

Sponsors

Latest Blog ArticlesMost Viewed Threads

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top