cacti 0.8.6j and rrd's not being created

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

Moderators: Developers, Moderators

Post Reply
phpgold
Posts: 15
Joined: Sat Oct 15, 2005 8:54 pm

cacti 0.8.6j and rrd's not being created

Post by phpgold »

Hi all,

I need a little help with this one. I created a new xml file to query snmp and applied it as a data template. I also created a graph template and the data query for it.

When I add the template to a device and then run the verbose query from the device it returns the right information. I then click on the create graph at the top of the device page and it shows the new information index properly. I choose the devices I want to monitor and choose the graph type and hit create which returns:

Created graph: machine01.help.local - snmp Activity -

I then go to data sources and look at the new datasource which shows the proper information in the data source debug.

Under the graph it shows the error "ERROR: opening '/var/www/html/cacti/rra/machine01.help.local/machine01_help_local_snmpactivity_2211.rrd': No such file or directory"

I look in the cacti database in the poller_item table and it seems the new data query is not in there.

What would be the possible cause of a new data query not being added to the poller_item table in the mysql cacti database?

Any help is appreciated.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Goto your data query and edit the Associated Graph Template and make sure the checkbox to the right of the data sources is checked. Then resave your devices that contain these graphs.

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?
phpgold
Posts: 15
Joined: Sat Oct 15, 2005 8:54 pm

cacti not posting xml data sources to poller_item database

Post by phpgold »

In the Associated Graph Template the checkboxes are there and assigned to the appropriate xml fields and are checked off on the right.

The data sources are even in the data sources menu for that box but when I rebuild the poller database the new polled devices never show up.

I even checked the poller_item table and they never show up in there either.

I have tried rebuilding from scratch but it keeps giving me the same thing.

When I do the verbose query under devices for debugging it returns the correct information.

Thanks for the help Witness.......
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Have you been able to edit the XML file properly in Internet Exploiter? It's a pretty good syntax checker.

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
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

XML notepad 2007 is also a handy new, free tool.
phpgold
Posts: 15
Joined: Sat Oct 15, 2005 8:54 pm

Post by phpgold »

Here is the xml I'm using for the data query. It seems to work with no errors. In order for this query to work you have to install extra software on the server for it to recognize the oid.

It seems with both the xml notepad and ie that it says there are no errors. I even modified the xml to generate an error message(which it did). So I know the xml is running properly.

When I query those oid's with a mib browser it returns the correct data so I know that the data is available and able to be queried.

I've tried going back versions of cacti which had no effect.

Here is the xml:

Here is the xml I'm using for the data query. It seems to work with no errors. In order for this query to work you have to install extra software on the server for it to recognize the oid.

It seems that there are no errors in the oid.


<interface>
<name>Get SNMP Disk Activity</name>
<description>Queries a host for a list of monitorable physical disks</description>
<oid_index>.1.3.6.1.4.1.6500.1.1.1.1.1</oid_index>
<oid_num_indexes>.1.3.6.1.4.1.6500.1.1.1.1.1.0</oid_num_indexes>
<index_order>DiskInstance</index_order>
<index_order_type>numeric</index_order_type>
<index_title_format>|chosen_order_field|</index_title_format>

<fields>
<dskInstance>
<name>Index</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.6500.1.1.1.1.1</oid>
</dskInstance>
<dskCurrentDiskQueueLength>
<name>QueueLength</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.6500.1.1.1.1.13</oid>
</dskCurrentDiskQueueLength>
<dskDiskReadBytesPerSec>
<name>DiskRead</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.6500.1.1.1.1.15</oid>
</dskDiskReadBytesPerSec>
<dskDiskWriteBytesPerSec>
<name>DiskWrite</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.6500.1.1.1.1.18</oid>
</dskDiskWriteBytesPerSec>
</fields>
</interface>
phpgold
Posts: 15
Joined: Sat Oct 15, 2005 8:54 pm

fixed

Post by phpgold »

Thanks to everyone for their help but I found what the problem was. It seems that there was a problem with the xml even though the syntax was correct(it didn't show any errors).

Thanks...

phpgold
soloslinger
Posts: 32
Joined: Fri Jan 19, 2007 2:11 pm

Post by soloslinger »

would you mind pointing out the solution? I am kinda fighting a similar war here and I would like to see what the fix was and compare it to my problem.

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

Post by gandalf »

soloslinger wrote:would you mind pointing out the solution? I am kinda fighting a similar war here and I would like to see what the fix was and compare it to my problem.

soloslinger/brian
You may want to consider some of the HowTos given at the first link of my signature. Find a complete Walkthrough for SNMP Queries as well as for Script Data Queries
Reinhard
phpgold
Posts: 15
Joined: Sat Oct 15, 2005 8:54 pm

Post by phpgold »

soloslinger,

if you have a look at my xml I made a mistake on the <index_order> line. The index_order "DiskInstance" is not the same as line 11 <dskInstance>.

If these are not correct it looks like cacti will not enter the information into the poller_item table and it will not show up in the poller cache when you rebuild it.

Later....

phpgold
soloslinger
Posts: 32
Joined: Fri Jan 19, 2007 2:11 pm

Post by soloslinger »

kk Ill look into both more. There have been more pressing things to work on as of late but Ill do what I can when I get caught up.


Goldfish
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest