Packetflux Sitemonitor Templates

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
infowest
Posts: 1
Joined: Fri Oct 15, 2010 11:23 am

Packetflux Sitemonitor Templates

Post by infowest »

Packetflux ( http://www.packetflux.com) makes some handy, SNMP v1 devices that allow you to monitor things like DC voltage, amperage, temperature, solar chargers, UPS's, etc. They also have modules for controling relays, PPPOE device power and Motorola Canopy GPS sync. I've created a very basic template that will allow you to monitor any "analog" variable on the device. Using Cacti 0.8.7g

------


Unzip these and add them at the "import templates" menu. You may have to put the data query in cacti/resource/snmp_query/

To add a new Sitemonitor to cacti you do the following after adding the templates you just downloaded:

Console Tab

Create Devices, click "Add" (upper-right corner)

Description: Name of the Device such as "North Mountain Tower Sitemonitor"
Hostname: The ip address of the sitemonitor
Host Template: Packetflux Sitemonitor Indexed
Check for the correct SNMP Options (version 1, your community, etc.) If you have a lot of inputs (such as on the solar controller) you may want to change the timeout to something larger. I used 5000.


Click Create.

Check the "Status" column under "Associated Data Queries." You should have at least three successful rows with a Sitemonitor base.

Click "Create Graphs for This Host" at the top of the page.

You should see a list of the inputs on the device. If you've renamed them, you should see your names under the "description."

"Check" the inputs you want to graph and hit "Create"

You will be asked for a "Minimum Value" that will be accepted as valid data. I decided to let you choose if you want to allow negative values (incorrect polarity, really cold, etc.) I use -100 in most cases to be safe.

Click Graph Trees

From here you can decide where to add your list of graphs. You "(Add)" them then choose the parent item. Select tree item type "Host" and find the device you just created.

Please let me know if you use this, make any improvements (lots of room) or have any questions. I'm NOT a cacti expert, but figured the hours I spent figuring this out should help someone who uses these devices, and I can use the karma :)

Randy
Attachments
cacti-sitemonitor.zip
(11.5 KiB) Downloaded 284 times
lonecrow
Posts: 44
Joined: Tue Dec 11, 2007 9:49 am

Re: Packetflux Sitemonitor Templates

Post by lonecrow »

Yes thanks for sharing!
exwiredjh
Posts: 1
Joined: Wed Oct 26, 2011 5:19 pm

Re: Packetflux Sitemonitor Templates

Post by exwiredjh »

I was just wondering where is the packetflux.xml file for the snmp queries that your template refers too.
Hookswitch
Posts: 3
Joined: Thu Feb 14, 2013 11:29 am

Re: Packetflux Sitemonitor Templates

Post by Hookswitch »

Bump!



@infowest: Can you give us a clue on the packetflux.xml file?



Thanks!
Hookswitch
Posts: 3
Joined: Thu Feb 14, 2013 11:29 am

Re: Packetflux Sitemonitor Templates

Post by Hookswitch »

Here's my packetflux.xml:



Code: Select all

<interface>
	<name>Packetflux Analog Stats Indexed</name>
	<oid_index>1.3.6.1.4.1.32050.2.1.27.1</oid_index>
	<index_order>analogID</index_order>
	<index_order_type>numeric</index_order_type>
	<index_title_format>Packetflux Analog Stats</index_title_format>
	<arg_num_indexes>num_indexes</arg_num_indexes>
	<fields>
		<analogID>
			<name>Analog I/O ID</name>
			<method>walk</method>
			<source>value</source>
			<direction>input</direction>
			<oid>1.3.6.1.4.1.32050.2.1.27.1</oid>
		</analogID>
		<analogDesc>
			<name>Analog I/O Description</name>
			<method>walk</method>
			<source>value</source>
			<direction>input</direction>
			<oid>1.3.6.1.4.1.32050.2.1.27.2</oid>
		</analogDesc>
		<analogSlot>
			<name>Analog I/O Slot</name>
			<method>walk</method>
			<source>value</source>
			<direction>input</direction>
			<oid>1.3.6.1.4.1.32050.2.1.27.3</oid>
		</analogSlot>
		<analogPosition>
			<name>Analog I/O Position</name>
			<method>walk</method>
			<source>value</source>
			<direction>input</direction>
			<oid>1.3.6.1.4.1.32050.2.1.27.4</oid>
		</analogPosition>
		<analogValue>
			<name>Analog I/O Value</name>
			<method>walk</method>
			<source>value</source>
			<direction>input</direction>
			<oid>1.3.6.1.4.1.32050.2.1.27.5</oid>
		</analogValue>
		<analogPowerOnValue>
			<name>Analog I/O PowerOn Value</name>
			<method>walk</method>
			<source>value</source>
			<direction>input</direction>
			<oid>1.3.6.1.4.1.32050.2.1.27.6</oid>
		</analogPowerOnValue>
		<temp>
			<name>Temperature</name>
			<method>walk</method>
			<source>value</source>
			<direction>output</direction>
			<oid>1.3.6.1.4.1.32050.2.1.27.5</oid>
		</temp>
		<shunt>
			<name>Shunt</name>
			<method>walk</method>
			<source>value</source>
			<direction>output</direction>
			<oid>1.3.6.1.4.1.32050.2.1.27.5</oid>
		</shunt>
		<panel>
			<name>Solar Panel</name>
			<method>walk</method>
			<source>value</source>
			<direction>output</direction>
			<oid>1.3.6.1.4.1.32050.2.1.27.5</oid>
		</panel>
		<batteries>
			<name>Batteries</name>
			<method>walk</method>
			<source>value</source>
			<direction>output</direction>
			<oid>1.3.6.1.4.1.32050.2.1.27.5</oid>
		</batteries>
		<expCurrent>
			<name>Exp Current</name>
			<method>walk</method>
			<source>value</source>
			<direction>output</direction>
			<oid>1.3.6.1.4.1.32050.2.1.27.5</oid>
		</expCurrent>
		<relayAbove>
			<name>Relay on Above</name>
			<method>walk</method>
			<source>value</source>
			<direction>output</direction>
			<oid>1.3.6.1.4.1.32050.2.1.27.5</oid>
		</relayAbove>
		<relayBelow>
			<name>Relay on Below</name>
			<method>walk</method>
			<source>value</source>
			<direction>output</direction>
			<oid>1.3.6.1.4.1.32050.2.1.27.5</oid>
		</relayBelow>
	</fields>
</interface>



NOTE: The nodes within the "fields" node from "temp" down are specific to my setup. You might be able to get along without those, although it probably means more manual labeling when you set up graphs. Originally I had the complete OID including the index in those entries, but the indexes detected by Cacti based on the index entries ("fields" nodes above "temp") were appended to the OIDs I had in the temp and other specific nodes, causing bad results from the SNMP queries. Once I removed the indexes from those OIDs, graphing worked and I still had the labels show up in the Data Query section when creating graphs for a host.
42towels
Posts: 1
Joined: Thu Apr 03, 2014 4:22 pm

Re: Packetflux Sitemonitor Templates

Post by 42towels »

I'm wondering if anybody has got this to work. I'm a noob to Cacti, so I'm sure I'm doing something wrong with importing. I just wanted to be sure I wasn't chasing my tail if there is something wrong with the .xml files. Thanks! PS- Thanks for sharing, I'll be thrilled when I can get them to work.
mfdomo
Posts: 1
Joined: Mon Apr 14, 2014 6:45 pm

Re: Packetflux Sitemonitor Templates

Post by mfdomo »

I am a technical guy and when I bought this interface , I tought it came with proper software ... Now I'M stick with it since I don't know how to use the software since I have few knowledge in programation . COuld someone help me a bit . All I want is a simply display that show temp voltages and my shunt value ..
thanks
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest