Error when associating template to a data query

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

Moderators: Developers, Moderators

Post Reply
eberkut
Posts: 19
Joined: Wed Jul 19, 2006 4:15 am

Error when associating template to a data query

Post by eberkut »

Hi,

I'm in the process of writing a fairly large template using SNMP data queries. I modeled my XML file on the interface.xml. I also try to follow religiously Gandalf's excellent howto.

At first I was planning to do exactly the same thing that what done for interface statistics, meaning one data query with several associated graphs. Everything went fine until I tried to associate a first graph. Under 'Associated Data Templates', where I should find a dropbox, I get the following error:

Warning: Variable passed to each() is not an array or object in /var/www/html/data_queries.php on line 356

I've tripled checked my XML file and could'nt find any syntax error. Maybe someone more familiar with Cacti can tell me what this error means exactly and where does it stem from.

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

Post by gandalf »

Please state your cacti version.
Then, please post a screenshot of the Graph Template and Data Template
Reinhard
eberkut
Posts: 19
Joined: Wed Jul 19, 2006 4:15 am

Post by eberkut »

Hi,

Here's my hostinfo for completeness:
Cacti Version - 0.8.6j
Plugin Architecture - 1.1
Poller Type - Cactid v0.8.6i
Server Info - Linux 2.6.9-42.0.3.EL
Web Server - Apache/2.0.52 (CentOS)
PHP - 4.3.9
PHP Extensions - yp, xml, wddx, tokenizer, sysvshm, sysvsem, standard, sockets, shmop, session, pspell, posix, pcre, overload, mime_magic, iconv, gmp, gettext, ftp, exif, dio, dbx, dba, curl, ctype, calendar, bz2, bcmath, zlib, openssl, apache2handler, gd, mysql, snmp, eAccelerator
MySQL - 4.1.20
RRDTool - 1.2.23
SNMP - 5.1.2
Plugins
  • PHP Network Weathermap (weathermap - v0.92)
    Thresholds (thold - v0.3.4)
    Device Monitoring (monitor - v0.7)
    Network Discovery (discovery - v0.7)
    Network Tools (tools - v0.2)
    Syslog Monitoring (haloe - v0.4)
    mactrack
    RRD Cleaner (rrdclean - v1.1)
    Update Checker (update - v0.3)
    Host Info (hostinfo - v0.1)
    Error Images (errorimage - v0.1)
    Simple Links page (links - v0.3)
In the zip attached, I put a screenshot of the error, two of the data template and two of the graph template. I also put the SNMP data query XML file.

I'm really puzzled since I tried to do exactly the same thing that was done for interface statistics.

Thank you for your help gandalf.
Attachments
packetshaper_template.zip
(1.07 MiB) Downloaded 140 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please replace </psClassReTxBytesCount> with </psClassReTxByteCount>(see the additional "s"?) in the XML file
Reinhard
eberkut
Posts: 19
Joined: Wed Jul 19, 2006 4:15 am

Post by eberkut »

Yup, I figured it out yesterday on my way home in the train. I'll test it today.

Thank you anyway for your help Gandalf. And by the way, great work with the docs.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest