Data Source not created

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
raccoon
Posts: 6
Joined: Thu Apr 20, 2006 5:08 am

Data Source not created

Post by raccoon »

Hello all,

I've been tampering with a certain graph for a month now, without any success.

I'm gathering toner levels using SNMP values from various printers around our offices, and everything is working fine and dandy from all printers - except a certain type, specifically a Canon iR C2620.

I can get the value using snmpwalk using a shell on the cacti server, and I have created data and graph templates as usual - no problems so far. However, when created graphs using the templates on those very printers, all data sources gets created perfectly, except one - the magenta toner.

Now, this toner has haunted me for a while, and I can't seem to create a data source for it in any way. The DS gets added to the database, thus appearing on the list of data sources, but the physical file does not exist.

The printer returns one integer for every toner, and since the other toners works fine, I really can't figure how to debug this further. Here is the output for the DS debug:

Code: Select all

/usr/bin/rrdtool create \
/var/www/cacti-0.8.6i/rra/10_canon_ir_c2620_c2620_toner_magenta_918.rrd \
--step 300  \
DS:c2620_toner_magenta:GAUGE:600:0:5000 \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MIN:0.5:1:600 \
RRA:MIN:0.5:6:700 \
RRA:MIN:0.5:24:775 \
RRA:MIN:0.5:288:797 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \
RRA:LAST:0.5:1:600 \
RRA:LAST:0.5:6:700 \
RRA:LAST:0.5:24:775 \
RRA:LAST:0.5:288:797 \
The last trailing slash gets added on all DS debugs, but since they get created anyway I guess it's just a cacti parsing error on the debug output. By running the command manually (as the cacti user), the RRD does get created.

Where to next?

EDIT:

I have created the RRD manually, and checked the complete poller log. It seems that the poller does not even try to fetch values for the magenta toner, only the other three (cyan, yellow, black).

What could cause the poller to skip this DS even though it exists in the cacti database?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please post a screenshot of your Data Template
Reinhard
raccoon
Posts: 6
Joined: Thu Apr 20, 2006 5:08 am

Post by raccoon »

Here's the screenshot
Attachments
cacti_ds.jpg
cacti_ds.jpg (204.26 KiB) Viewed 1933 times
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

That's easy, you OID is in the wrong field. You need to put it in the correct location and then Rebuild you Poller Cache.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Oh, I _love_ screenshots :wink:
Reinhard
raccoon
Posts: 6
Joined: Thu Apr 20, 2006 5:08 am

Post by raccoon »

Oh man, I can't believe I overlooked this :P

Thanks guys!
aleu
Cacti User
Posts: 216
Joined: Mon Dec 11, 2006 10:17 am

Post by aleu »

raccoon wrote:Oh man, I can't believe I overlooked this :P

Thanks guys!
I know this is quite old thread, but do you happen to have these templates and if so would you mind sharing them?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests