Installing zabbix to monitor SNMP and iLO ports

Install fping as a pre-requisite package following command to work with zabbix :- it will help check basically SNMP devices eg routers and mail servers
Use yum to install;

# yum install fping

Or You can install it by tarball file

Retrieve the sources from

# wget
 # tar -zxvf fping.tar.gz
 # cd fping-2.4b2_to/
 # ./configure
 # make
 # make check
 # checkinstall
 # make install

Note:- Zabbix server must know where to find fping and be able to execute it.

First check the correct path of fping and then modify zabbix_server.conf file for correct path

# whereis fping
 fping: /usr/local/sbin/fping

Its time to set the permissions

 # ls -l /usr/local/sbin/fping
 -rwxr-xr-x 1 root root 48903 Jun 2 11:01 /usr/local/sbin/fping
 # chgrp zabbix /usr/local/sbin/fping
 # ls -l /usr/local/sbin/fping
 -rwxr-xr-x 1 root zabbix 48903 Jun 2 11:01 /usr/local/sbin/fping
 # chmod 4710 /usr/local/sbin/fping
 # ls -l /usr/local/sbin/fping
 -rws--x--- 1 root zabbix 48903 Jun 2 11:01 /usr/local/sbin/fping
# vi /etc/zabbix/zabbix_server.conf

restart zabbix server service to effect changes .

# service zabbix_server restart

Now Zabbix is ready for simple icmp check.

Now open http://ip-address/zabbix and Login to Zabbix as admin to access the web components

If you have not already added host add it first before creating item

Steps to Create a New Host for Router.

1. To create new host go to configuration | Hosts and Select Create Host.
2. In New host form type the host name of Router. Basically Router and switch are SNMP supported devices so select SNMP Devices in Group field.
3. Then type the IP Address of Router and then Save the host.

Check the connectivity of router. You can have zabbix send mail if router is unreachable.
For this create a trigger and action;

1. So for that click on trigger next to Router we have added and click Create Trigger .
2. In new Trigger form type the message to receive at the mail For, example Router is down or unreachable. In expression field click add this will open new page for condition.
3. Choose Select near to item box and then select the item you have just created Network Reachability using ping and then click insert and then click save.

Now when ever our router get down or unreachable Zabbix will send mail saying that the Router is down or unreachable.
c) monitoring- -iLO ports-in-zabbix
1. Download the archive and script with template import template Zabbix,

2. Make the scripts and the folder specified as storage ExternalScripts config Zabbix, and finally make it executable,

3. Download and install FreeIPMI (FAQ assembly and dependencies ):

# wget
 # tar -xvzf freeipmi-1.2.1.tar.gz
 # cd freeipmi-1.2.1
 # ./configure –prefix=/usr
 # make install

1. Create a user account for iLO Zabbix and prescribe its data in scripts ($ user and $ pass),
2. Check that FreeIPMI successfully connects to iLO (address, username and password substitute your own):

 # /usr/sbin/ipmi-sensors -D LAN2_0 -h -u monitor -p P@$$w0rd -l USER -W discretereading –no-Header-output –quiet-cache –sdr-cache-recreate –comma-separated-output –entity-sensor-names

It will return sensors below as response:

 0,System Chassis 1 UID Light,OEM Reserved,N/A,N/A,‘OEM Event = 0000h’
 1,System Chassis 2 Health LED,OEM Reserved,N/A,N/A,‘OEM Event = 0000h’
 2,Processor Module VRM 1,Power Unit,N/A,N/A,‘Device Inserted/Device Present’
 3,Power Supply Power Supply 1,Power Supply,N/A,N/A,‘Presence detected’
 Confirm if the script parses the data detection while substituting with your address):
 ‘#/usr/lib/zabbix/externalscripts/ 192.168.0.x sensor temp numeric’
 The response from the above command is shown next below:
 “data“:[ { “{#CLASS}“:“sensor”, “{#KEY}“:“Air Inlet 01-Inlet Ambient”, “{#SECTION}“:“Temperature”, “{#TYPE}“:“numeric”, “{#MEASURE}“:“C”}, { “{#CLASS}“:“sensor”, “{#KEY}“:“Processor 02-CPU”, “{#SECTION}“:“Temperature”, “{#TYPE}“:“numeric”, “{#MEASURE}“:“C”},
 “{#KEY}“:“Air Inlet 01-Inlet Ambient”,
 “{#KEY}“:“Processor 02-CPU”,

Charts on data obtained included:

In Zabbix front-end server, enter an address in the macro Bind to the server template monitoring iLO until it finishes detecting.
The dat section will look like something similar below:


Comments are closed.

%d bloggers like this: