Data Sources without Templates are not Polling

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

Moderators: Developers, Moderators

Post Reply
vertigo23
Posts: 15
Joined: Fri Apr 20, 2007 4:30 pm

Data Sources without Templates are not Polling

Post by vertigo23 »

We have a bunch of data sources (perl scripts) that do not use templates, that were working correctly in a Cacti 0.8.6g, that are not in 0.8.7b. When I run cmd.php manually on the id, only the data sources with associated templates appear to be run in the debugging output. I noticed also in the data sources console view, that the template-less sources have "external" for the polling interval; I do not know if this is related.

Has anyone else run into this? What information can I provide to help track down this problem?

Thanks!

--Alex
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please provide us with the set of definitions used. You surely defined a Data Input Method. How did you add the Data Source and Graph, then? Please post screenshots to replicate your problem
Reinhard
vertigo23
Posts: 15
Joined: Fri Apr 20, 2007 4:30 pm

Post by vertigo23 »

Here you go; screenshots from all relevant pages, and a debug capture of the cmd.php run on the "none" host that these data queries belong to.
Attachments
data-input-method.png
data-input-method.png (99.18 KiB) Viewed 1547 times
data-sources.png
data-sources.png (173.41 KiB) Viewed 1547 times
exports-execcounts.png
exports-execcounts.png (139.57 KiB) Viewed 1547 times
graph-template.png
graph-template.png (114.45 KiB) Viewed 1547 times
debug-log.txt
(9.71 KiB) Downloaded 80 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please prepend the script with /your/path/to/perl when defining the Data Input Method. Then, please "php -q cli/rebuild_poller_cache.php" and retry
Reinhard
vertigo23
Posts: 15
Joined: Fri Apr 20, 2007 4:30 pm

Still not working

Post by vertigo23 »

I've prepended the full path to our perl executable onto the data input methods and cleared the poller cache as you requested. It looks like those methods are still not being graphed. Attached is a screenshot of the updated method, and a log from cmd.php being run on the "None" host.

It looks like the actual perl scripts are working correctly; here is a sample output from the one in the screenshot:

alex@mon01:~
$ /opt/csw/bin/perl /var/www/cacti/scripts/IODA/catalog_stats.pl
import:1058 metadata:5547 approved:104993 deleted:8541
Attachments
data-input-method.png
data-input-method.png (93.74 KiB) Viewed 1452 times
cacti_log.txt
(10.09 KiB) Downloaded 87 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Will have to investigate
Reinhard
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please review "System Utilities -> Poller Cache Items" and filter for your host. Do you find the "not executed" commands in there?
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests