Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Zabbix Cookbook

You're reading from   Zabbix Cookbook Over 70 hands-on recipes to get your infrastructure up and running with Zabbix

Arrow left icon
Product type Paperback
Published in Mar 2015
Publisher
ISBN-13 9781784397586
Length 260 pages
Edition 1st Edition
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Patrik Uytterhoeven Patrik Uytterhoeven
Author Profile Icon Patrik Uytterhoeven
Patrik Uytterhoeven
Arrow right icon
View More author details
Toc

Table of Contents (13) Chapters Close

Preface 1. Zabbix Configuration FREE CHAPTER 2. Getting Around in Zabbix 3. Groups, Users, and Permissions 4. Monitoring with Zabbix 5. Testing with Triggers in Zabbix 6. Working with Templates 7. Data Visualization and Reporting in Zabbix 8. Monitoring VMware and Proxies 9. Autodiscovery 10. Zabbix Maintenance and API A. Upgrading and Troubleshooting Zabbix Index

Checks with SSH


Another way to extend our Zabbix server to do some checks is by making use of Secure Shell (SSH). SSH checks will be launched from the server with the need of a Zabbix Agent.

Getting ready

For this example, we just need a Zabbix server properly configured and a host that we can use to connect to by making use of SSH.

How to do it…

When you log in with SSH, you have to provide a username and a password in Zabbix to log in to the host that we want to monitor. This must be done in the GUI in plain text. An alternative to this is the use of SSH keys.

  1. The first thing we have to do in the Zabbix_server.conf file is to look for the option SSHKeyLocation and enable it and add a path for the location of our SSH key files. Add the following line to the config file.

    SSHKeyLocation=/home/zabbix/.ssh
  2. First edit the /etc/passwd file and give a home folder to the user zabbix:

    zabbix:x:500:500::/home/zabbix:/sbin/nologin
  3. Next, create the directory on the server. This can be done by running the following...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image