SNMP string value in graph

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

Moderators: Developers, Moderators

Post Reply
ABX
Cacti User
Posts: 68
Joined: Thu Mar 01, 2007 5:55 am

SNMP string value in graph

Post by ABX »

Hi, I need some help.

I made a HP printer template and I'm happy with it. But I can't track the printer Cartridge type.
Capture.JPG
Capture.JPG (50.41 KiB) Viewed 2113 times
As you can see, the "Type:" value is -nan

This is the SNMP querry result:
snmpwalk -v2c -c Password 127.0.0.1 SNMPv2-SMI::mib-2.43.11.1.1.6.1.1
SNMPv2-SMI::mib-2.43.11.1.1.6.1.1 = STRING: "Black Cartridge HP Q5942A"


here is the Data Template:
Capture.1.JPG
Capture.1.JPG (120.47 KiB) Viewed 2112 times
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: SNMP string value in graph

Post by noname »

I think datasource (RRD file) cannot store any string.

You'd better to create Data Query which holds such a string value (= cartridge type) in XML
so that can use "|query_xxxx|" in graph template.

For example..

Graph template item:
Image

Result:
Image
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests