Tag Archives: Monitoring

Openfiler – Monitoring With Cacti

Openfiler – Monitoring With Cacti

Introduction

This article explains how to configure an Openfiler server for SNMP monitoring through Cacti.

The infrastructure used for this article was an Openfiler 2.3 virtual machine being monitored by a Fedora Core 10 64-bit server running Cacti.  Both virtual machines were hosted on a Fedora Core 8 64-bit server running VMware Server 1.0.8.

Pre-requisites

In order to configure an Openfiler 2.3 server for SNMP monitoring in Cacti the following pre-requisites must be met :-

  • An installed Openfiler 2.3 server / appliance with SNMP configured
  • An existing Cacti installation

Adding a device

The following section provides the configuration settings selecting when adding an Openfiler server as a new device in Cacti.  In order to add an Openfiler server in to Cacti as a new device perform the following steps :-

  1. Logon to the Cacti web site as an administrative user
  2. Click on the Console tab if neccesary
  3. Click on the Create devices link in the main pane
  4. Set the Description to the friendly name you wish to use within Cacti – E.G. Openfiler Server
  5. Set the Hostname to the FQDN if DNS is configured or the IP Address of the server
  6. Select the Generic SNMP-enabled Host template
  7. Set the SNMP version to Version 2
  8. Set the community string to the required string for your infrastructure – E.G. public
  9. Set the Downed device detection method to Ping and SNMP
  10. Scroll down to the bottom of the page and click on the Save button
  11. In the Devices list click on the device name and scroll down to the bottom of the page
  12. Confirm that at the top of the page that the general SNMP informatio is displayed for the server

Associate data queries to the device

Once the device has been added to Cacti data queries need to be associated to it so that graphs can be produced.  To associate data queries to the device perform the following steps :-

  1. In the Devices list click on the device name and scroll down to the bottom of the page
  2. In the Associated data queries section change the Add data query drop down box to SNMP – Get Mounted Partitions
  3. Click on the Add button to add the new data query
  4. Once added the query will be shown with a status of Success [xx Items, x Rows] (The amount of Items and Rows will differ depending on how many partitions exist on the server)
  5. Change the Add data query drop down box to SNMP – Get Processor Information
  6. Click on the Add button to add the new data query
  7. Once added the query will be shown with a status of Success [x Items, x Rows] (The amount of Items and Rows will differ depending on how many CPU’s exist in the server)
  8. Change the Add data query drop down box to SNMP – Get Interface Statistics
  9. Click on the Add button to add the new data query
  10. Once added the query will be shown with a status of Success [x Items, x Rows] (The amount of Items and Rows will differ depending on how many network interfaces exist in the server)
  11. Click on the Save button to associate the queries to the device.

Create graphs for the device

The next step in configuring an Openfiler server for monitoring through Cacti is to add the graphs required.  To add new graphs for the Openfiler server perform the following steps :-

  1. In the Devices list click on the device name and scroll down to the bottom of the page
  2. Click on the Create graphs for this host
  3. The create devices page for the device will be shown and list all of the items which have been discovered on the server by the Date query names associated in the previous section
  4. In the SNMP – Get Mounted Partitiions section of the screen all the partitions mounted on the server will be listed including the root partition, swap partition, and physical memory.
  5. Enable the tick box on the right hand side of the screen next to each partition you wish to graph
  6. In the SNMP – Get Processor Information section of the screen all of the CPU’s installed in the server will be listed
  7. Enable the tick box on the right hand side of the screen next to each CPU
  8. In the SNMP – Get Interface Statistics section of the screen all of the network interfaces installed in the server will be listed identified by the IP address associated.
  9. Enable the tick box on the right hand side of the screen next to each network interface you wish to graph
  10. Change the graph type drop down box to In/Out Bytes with Total Bandwidth
  11. Click on the Create button to create the graphs