Cacti (home)ForumsDocumentation

sensorprobe

type:
user_template_host
usertemplate:
sensorprobe
author:
eschoeller
description:
AKCP SensorProbe Devices
Cacti:
0.8.8b
homepage:
http://forums.cacti.net/viewtopic.php?f=12&t=51162
date:
11/05/2013
includes:
yes
script:
PHP Script Server
templates:
akcp,
sensorprobe

Download

VersionFile
0.8.8bakcp_stats_1-0.zip
0.8.8bakcp_stats_1-1.zip

Information

This is a script query based template, and dynamically determines various sensor types attached to an AKCP device. This template will work against any AKCP device, and support any number of enumerated sensors attached to a device … it's not limited to just a SensorProbe2 for example. Currently, this template supports Airflow, Temperature, Humidity, Temperature/Humidity and 4-20mA sensors. If you have another sensor you'd like to trend, just let me know. I'll give you my address and you can send me your sensor =) j/k. It should be possible to add any other supported sensor without much work.

The script query pulls the sensor name directly from the AKCP configuration and sets this as the graph title. Various HRULEs are setup for the various AKCP based thresholds set for each sensor. The HRULE will not show up if your data isn't reaching that level. If you look at the Airflow Percent graph below, you'll see an example of the HRULEs. The other graphs aren't near their thresholds, so these are left out.

Many of the per-graph settings are not templated. This allows you to set different paramters for different sensors. Be aware, that when creating multiple graphs, you will only be prompted to configure *ONE* of the graphs. All others will get the defaults. You can always go back and re-configure them as needed. I think this is due to a bug in Cacti, but I am not sure.

Installation

  1. Place all query-akcp*.xml files in path_cacti/resource/script_queries
  2. Place all query_akcp*.php files in path_cacti/scripts/
  3. Import cacti_host_template_akcp_device.xml in Cacti as per usual.
  4. Make some hosts.

Getting Help

Screenshots






Personal Tools