Why does this data not graph?

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
kalil
Posts: 9
Joined: Wed Apr 21, 2010 12:14 pm

Why does this data not graph?

Post by kalil »

Hello,
I have a perl script that produces data that looks like this:
Database_NAMELookupCacheHits:1198 Database_NAMELookupCacheLookups:147584 Database_NAMELookupCacheMisses:134060 Database_NAMELookupCacheMisses_ItemMisses:116556 Database_NAMELookupCacheNoHitHits:12326 Database_NAMELookupCachePool_Peak:11534336 Database_NAMELookupCachePool_Used:11110944 Database_NAMELookupCacheResets:0 Database_NAMELookupCache_ContainerResets:0 Database_NAMELookupCache_CriticalContainerResets:0 Database_NAMELookupCache_EligibleContainerResets:0 Database_NAMELookupMisses:10871 Database_NAMELookupTotal:147047 Database_NAMELookupTotalLookupTime:210.96
In the log, I can see the data come thru:
06/29/2010 09:17:15 PM - CMDPHP: Poller[0] Host[13] DS[825] CMD: perl C:/wamp/www/cacti/scripts/my_stats.pl xxx_ro xxx.com , output: Database_NAMELookupCacheHits:676 Database_NAMELookupCacheLookups:51281 Database_NAMELookupCacheMisses:47544 Database_NAMELookupCacheMisses_ItemMisses:41465 Database_NAMELookupCacheNoHitHits:3061 Database_NAMELookupCachePool_Peak:7340032 Database_NAMELookupCachePool_Used:6823840 Database_NAMELookupCacheResets:0 Database_NAMELookupCache_ContainerResets:0 Database_NAMELookupCache_CriticalContainerResets:0 Database_NAMELookupCache_EligibleContainerResets:0 Database_NAMELookupMisses:886 Database_NAMELookupTotal:50918 Database_NAMELookupTotalLookupTime:83.358
06/29/2010 09:17:15 PM - POLLER: Poller[0] Parsed MULTI output field 'Database_NAMELookupCacheHits:676' [map Database_NAMELookupCacheHits->NLookupCacheHits]
06/29/2010 09:17:15 PM - POLLER: Poller[0] Parsed MULTI output field 'Database_NAMELookupCacheLookups:51281' [map Database_NAMELookupCacheLookups->NLookupCacheLookups]
06/29/2010 09:17:15 PM - POLLER: Poller[0] Parsed MULTI output field 'Database_NAMELookupCacheMisses:47544' [map Database_NAMELookupCacheMisses->NLookupCacheMisses]
06/29/2010 09:17:15 PM - POLLER: Poller[0] Parsed MULTI output field 'Database_NAMELookupCacheNoHitHits:3061' [map Database_NAMELookupCacheNoHitHits->NLCacheNoHitHits]
06/29/2010 09:17:15 PM - POLLER: Poller[0] Parsed MULTI output field 'Database_NAMELookupMisses:886' [map Database_NAMELookupMisses->NLookupMisses]
06/29/2010 09:17:15 PM - POLLER: Poller[0] Parsed MULTI output field 'Database_NAMELookupTotal:50918' [map Database_NAMELookupTotal->NLookupTotal]
06/29/2010 09:17:15 PM - POLLER: Poller[0] Parsed MULTI output field 'Database_NAMELookupTotalLookupTime:83.358' [map Database_NAMELookupTotalLookupTime->NLTotalLookupTime]
06/29/2010 09:17:15 PM - POLLER: Poller[0] CACTI2RRD: c:/cacti/rrdtool.exe update C:\wamp\www\cacti\rra\xxx_nltotallookuptime_825.rrd --template NLookupCacheHits:NLookupCacheLookups:NLookupCacheMisses:NLCacheNoHitHits:NLookupMisses:NLookupTotal:NLTotalLookupTime 1277860631:676:51281:47544:3061:886:50918:83.358
About half the time, the rrd files doesn't update.
No data is making it thru to my graph, and I have no idea why. Are the label names too long? Any ideas as to what I am doing incorrectly? I have similar scripts that all work fine.

Thank you
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: Why does this data not graph?

Post by BSOD2600 »

kalil wrote:About half the time, the rrd files doesn't update.
How do you know this? Are you sure the script returned data on those pass(es) which are blank?

Followed http://docs.cacti.net/manual:087:4_help.2_debugging entirely?
kalil
Posts: 9
Joined: Wed Apr 21, 2010 12:14 pm

Re: Why does this data not graph?

Post by kalil »

BSOD2600 wrote:
kalil wrote:About half the time, the rrd files doesn't update.
How do you know this? Are you sure the script returned data on those pass(es) which are blank?

Followed http://docs.cacti.net/manual:087:4_help.2_debugging entirely?
I know this because the modified time on the rrd files are not changing at each poller pass.
I'm going thru the debugging document now. There is something wrong with the rrd data. What I would expect to be stored in .value is being held in .last_ds.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

From the cacti.log, the rrdtool update is actually getting executed every polling cycle, but regardless the file isn't actually updated?

Post the 'rrdtool info' from the file. There shouldn't be any good reason why it's only updating some times if the script is always spitting out the data... unless you have non-standard RRA settings.
kalil
Posts: 9
Joined: Wed Apr 21, 2010 12:14 pm

Post by kalil »

I redid the whole thing several times. It has begun working. I don't see any difference in what was created the other times, except that I added one item at a time (to the script output, data and then graph template) and tested after each addition this last time.
Thank you for the document with the rrd info. It was good to have something to watch for changes.

A side question: How many Output fields can be handled from a data input method script? I'd like to increase to use among several data and graph templates, but I'd rather not feel around for the ceiling if I don't have to.

Thank you very much; and I do seriously enjoy Cacti. What a great tool!
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

kalil wrote:A side question: How many Output fields can be handled from a data input method script?
Believe it depends on the OS... for example, windows has a limit of 256 characters I believe.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests