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,
Error when associating template to a data query
Moderators: Developers, Moderators
Hi,
Here's my hostinfo for completeness:
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.
Here's my hostinfo for completeness:
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.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)
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 133 times
Who is online
Users browsing this forum: No registered users and 2 guests