1. Monitoring Your Servers
with openSUSE Leap
Didiet A. Pambudiono
pambudiono.os@gmail.com
OpenSUSE ASIA Summit 2016
Yogyakarta 30th
Sept – 2nd
Oct 2016
2. 2
Introducing
• Family Man
• Coffee Lover
• Linux user since 2005
• OpenSUSE user since 2006
• My Distros : Mandriva, openSUSE,
Ubuntu, Windows
• Member of KLAS & openSUSE-Id
• Work as system engineer &
network engineer
3. 3
Basics of Server Monitoring
• What is Server Monitoring?
• Why Server Monitoring?
• What to look for while monitoring your
server?
• CPU
• RAM
• Hard Disk
OpenSUSE ASIA Summit 2016
Yogyakarta 30th
Sept – 2nd
Oct 2016
4. 4
What Is Server Monitoring?
• Server monitoring describes the process of
automatically scanning servers on the network
for irregularities or failures.
• Allows administrators to identify issues and fix
unexpected problems before they impact end-
user productivity.
• Essential to ensuring network availability
through proactive resolution of malfunctions
and errors.
OpenSUSE ASIA Summit 2016
Yogyakarta 30th
Sept – 2nd
Oct 2016
5. 5
Why Server Monitoring? (1)
• To find out if the network issue that's
affecting your application is really a
problem with the network or with a server
• To find out what went wrong with the
server is it malfunctioning or down? If so,
what is the root cause?
• To identify server hardware failure when,
where and how
OpenSUSE ASIA Summit 2016
Yogyakarta 30th
Sept – 2nd
Oct 2016
6. 6
Why Server Monitoring? (2)
• To determine if the applications running
on the server are performing properly or
creating issues
• To ensure server security, high availability
and performance to meet business service
requirements
OpenSUSE ASIA Summit 2016
Yogyakarta 30th
Sept – 2nd
Oct 2016
7. 7
CPU Monitoring (1)
• CPU → the brain of the sever hardware
• CPU carries out the instructions of a computer
program, to perform the basic arithmetical,
logical, and input/output operations of the
system.
• CPU usage is critical for all the processes
executed by the computer. There must always
be some portion of CPU available to handle
workload; CPU usage should never be 100%.
OpenSUSE ASIA Summit 2016
Yogyakarta 30th
Sept – 2nd
Oct 2016
8. 8
CPU Monitoring (2)
• Server Monitoring includes monitoring CPU
utilization. When the CPU usage impacts server
performance, you have to either :
• upgrade the CPU hardware,
• add more CPU's,
• or, shut down services that are hogging these
critical resources
OpenSUSE ASIA Summit 2016
Yogyakarta 30th
Sept – 2nd
Oct 2016
9. 9
RAM Monitoring (1)
• Random Access Memory (RAM) is a form of data
storage. A server can load information required
by certain applications into RAM for faster access
thereby improving the overall performance of
the application.
• RAM is flash-based storage and is several times
faster than the slower hard disk (physical
moving components).
OpenSUSE ASIA Summit 2016
Yogyakarta 30th
Sept – 2nd
Oct 2016
10. 10
RAM Monitoring (2)
• If a server runs out of RAM, it sets up a portion
of the hard drive as virtual memory and this
space is reserved for CPU usage.
• This process is called swapping and causes
performance degradation since the hard drive is
much slower than RAM (think several 1000
times).
OpenSUSE ASIA Summit 2016
Yogyakarta 30th
Sept – 2nd
Oct 2016
11. 11
RAM Monitoring (3)
• Swapping also contributes to file system
fragmentation which degrades overall server
performance. So, it's important to have constant
visibility into RAM usage.
• One way to balance rising RAM usage is to add
more RAM. This is an economical way to boost
server performance
OpenSUSE ASIA Summit 2016
Yogyakarta 30th
Sept – 2nd
Oct 2016
12. 12
Hard Disk Monitoring (1)
• The hard disk is the device that the server uses
to store data. The hard disk drive consists of
several rigid rotating discs coated with magnetic
material with magnetic heads arranged
strategically to write data to, and read from the
disc or platter.
• The data stored is permanent (survives a reboot
unlike RAM) and non-volatile and is available till
it is consciously erased by the end user.
OpenSUSE ASIA Summit 2016
Yogyakarta 30th
Sept – 2nd
Oct 2016
13. 13
Hard Disk Monitoring (2)
• Its important to monitor hard disk for a couple
of reasons:
• The operating system needs space on the
disk for normal operating processes including
paging files and caches.
• The applications running on the server also
need space to write temporary data to cache
for efficient operation as well as permanent
data that will be accessed by the user.
OpenSUSE ASIA Summit 2016
Yogyakarta 30th
Sept – 2nd
Oct 2016
14. 14
Hard Disk Monitoring (3)
• Low free space on a drive is also one of the
reasons for file system fragmentation which
causes severe performance issues.
OpenSUSE ASIA Summit 2016
Yogyakarta 30th
Sept – 2nd
Oct 2016
15. 15
How to monitor your
servers?
• CLI :
• TOP
• HTOP
• NETSTAT
• LSOF
• etc
• Question : FOR HOW MANY SERVERS?
OpenSUSE ASIA Summit 2016
Yogyakarta 30th
Sept – 2nd
Oct 2016