[SOLVED] New Template creates data source but no rrd files

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

Moderators: Developers, Moderators

Post Reply
tigerz
Posts: 20
Joined: Fri May 20, 2016 3:41 pm

[SOLVED] New Template creates data source but no rrd files

Post by tigerz »

hi all

need an advise for an issue that i cannot figure out :-?

created a new Data Query - Get Script Data (Indexed) with new Graph & Data Templates
it is not SNMP based template but a ssh scripts that polling and parsing the data to a file that the perl script runs from xml (just like in the cacti guides)
which is works fine when using real time polling it shows the values and graph is running well
but when it comes to historical data (on graph view) it show broken image
after quick troubleshoot noticed that rrd files in the data sources are not created in the <rra> folder at all
mentioning that all other graph/data templates work just fine as well as my other Data Queries which i'm adding to my cacti on weekly basis


the real time poll works fine:
global.png
global.png (18.2 KiB) Viewed 1318 times
XML, perl script & verbose query attached

example of output file the perl script takes from:
Global:2449:1443:0

xml:

Code: Select all

<global>
	<name>Global Subscriber Statistics</name>
	<script_path>perl |path_cacti|/scripts/global_subs.pl</script_path>
	<arg_prepend>|host_hostname|</arg_prepend>
	<arg_index>index</arg_index>
	<arg_query>query</arg_query>
	<arg_get>get</arg_get>
	<arg_num_indexes>num_indexes</arg_num_indexes>
	<output_delimeter>:</output_delimeter>
	<index_order>function</index_order>
	<index_order_type>alphabetic</index_order_type>
	<index_title_format>|chosen_order_field|</index_title_format>

	<fields>
		<function>
			<name>Function</name>
			<direction>input</direction>
			<query_name>function</query_name>
		</function>
		<ActiveSubscriber>
			<name>Active Subscriber</name>
			<direction>input</direction>
			<query_name>ActiveSubscriber</query_name>
		</ActiveSubscriber>
		<IdleSubscriber>
			<name>Idle Subscriber</name>
			<direction>input</direction>
			<query_name>IdleSubscriber</query_name>
		</IdleSubscriber>
		<woPdnConnectivity>
			<name>Without PdnConnectivity</name>
			<direction>input</direction>
			<query_name>woPdnConnectivity</query_name>
		</woPdnConnectivity>
		<ActiveSubscribers>
			<name>Active Subscriber</name>
			<direction>output</direction>
			<query_name>ActiveSubscriber</query_name>
		</ActiveSubscribers>
		<IdleSubscribers>
			<name>Idle Subscriber</name>
			<direction>output</direction>
			<query_name>IdleSubscriber</query_name>
		</IdleSubscribers>
		<woPdnConnectivitys>
			<name>Without PdnConnectivity</name>
			<direction>output</direction>
			<query_name>woPdnConnectivity</query_name>
		</woPdnConnectivitys>
	</fields>
</global>

it is not the first time using the same Data Query method so must be some basic concept that i am missing here :roll:
would be much appreciate for any clue




cacti Version 0.8.8f runs on centos 6
Attachments
global_subs.pl
(1.11 KiB) Downloaded 57 times
verbose query.txt
(1.06 KiB) Downloaded 52 times
Last edited by tigerz on Thu Feb 06, 2020 4:29 am, edited 1 time in total.
tigerz
Posts: 20
Joined: Fri May 20, 2016 3:41 pm

Re: New Template creates data source but no rrd files

Post by tigerz »

since the specific devices are not managing SNMP
solved by changing the SNMP Version to 'Not In Use'
even though used 'Ping' in first place on 'Downed Device Detection'
rrd files created than after this change
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest