You are here

Ubuntu System Monitoring With Opsview To Increase Uptime

When it comes to server monitoring tools, Ubuntu is one of the most popular Linux distributions out there. Starting as a desktop focused distribution, it soon found its place as a server operating system. In the eyes of some users, it presented a better way to get a Debian-based Linux distribution with a more consistent and predictable release schedule. Ubuntu is also a common distribution to see in virtual appliances and cloud applications due to its simple nature and great support options.

Ubuntu Server Monitor

Choosing your Ubuntu system monitoring method

Opsview can monitor your Ubuntu estate through two methods, agented or agentless. Each approach has a different set of pros and cons, and choosing between the two is a matter of looking at what data you would like to return from the server. If you want to collect very specific metrics, agented might be the best option for you. We’ll work through installing the agent in this article.

Our standard checks are consistent across the board no matter kind you use for Linux monitoring. We do this using the same set of plugins across each agent and the same host templates. Agents are available here

Once this agent is installed, you should be able to apply the “OS - Base Unix Agent” service group and start seeing the data you can collect from your Ubuntu system. This will give you a great start with your Ubuntu monitoring. 

If you want to look at agentless monitoring, this is achieved via SNMP polling and you will need to configure the SNMPD on your host by following these instructions: 

1. Install SNMP

#sudo apt-get install snmpd

2. Create a backup of the default snmpd.conf file

#sudo mv /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.bak

3. Create a blank /etc/snmp/snmpd.conf file with the following information (customize for your environment)

sudo nano /etc/snmp/snmpd.comf
rocommunity public
syslocation “Ubuntu Host"
syscontact Admin@company

4. Modify /etc/default/snmpd

Change from:
# snmpd options (use syslog, close stdin/out/err).
SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/'

# snmpd options (use syslog, close stdin/out/err).
#SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/'
SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/ -c /etc/snmp/snmpd.conf'

5. Restart the SNMP daemon

#sudo /etc/init.d/snmpd restart

You then just need to add the host into Opsview and apply the “OS - Unix Agentless” service group and you’ll be agentlessly monitoring your Ubuntu host.

Opsview offers a simple and dynamic way to monitor your operating system infrastructure with comprehensive alerting and dashboarding functions that will allow you to visualize the performance of your Ubuntu estate. 

Your Free Opsview Trial

ngarbacz's picture
by Nathan Garbacz,
Solutions Architect
Expatriate programmer with a proclivity for PHP, Python and ping pong. I am most interested in technologies which will allow us to more quickly automate jobs away from humans to realize the grand dystopian future of all the best movies.

More like this

Linux monitoring
By Nathan Garbacz, Solutions Architect

SNMPv3 traps can be quite complicated to configure the first time you go through the process, but when you understand what's going on, everything...

Nagios vs the competion
By Megan Woodhall, Marketing Assistant

If you're a dissatisfied Nagios user who is ready to make the switch to Opsview, here is a guide on how to execute a migration that will result in...

By Megan Woodhall, Marketing Assistant

The agent Opsview provides comes pre-configured for use with the Host Templates, but it has been created in such as way that the agent can be...