Problems when importing a new data template

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

Moderators: Developers, Moderators

Post Reply
kinkie
Posts: 2
Joined: Thu Sep 01, 2005 4:50 am

Problems when importing a new data template

Post by kinkie »

I am trying to define a new data template, and I'm failing with a PHP error I can't really understand.

Here's the error:

Code: Select all

Notice: Only variable references should be returned by reference in /var/www/localhost/htdocs/cacti/lib/import.php on line 44

Warning: Cannot modify header information - headers already sent by (output started at /var/www/localhost/htdocs/cacti/lib/import.php:44) in /var/www/localhost/htdocs/cacti/templates_import.php on line 67
Here's the template:

Code: Select all

<interface>
        <name>Netscreen interfaces</name>
        <oid_index>.1.3.6.1.4.1.3224.9.1.1</oid_index>
        <index_order>nsIfName</index_order>

        <fields>
                <nsIfIndex>
                        <name>Interface Index</name>
                        <method>walk</method>
                        <source>value</source>
                        <direction>input</direction>
                        <oid>.1.3.6.1.4.1.3224.9.1.1.1</oid>
                </nsIfIndex>
                <nsIfName>
                        <name>Interface Name</name>
                        <method>walk</method>
                        <source>value</source>
                        <direction>input</direction>
                        <oid>.1.3.6.1.4.1.3224.9.1.1.2</oid>
                </nsIfName>
                <nsIfFlowInByte>
                        <name>Interface Incomging Bytes</name>
                        <method>walk</method>
                        <source>value</source>
                        <direction>input</direction>
                        <oid>.1.3.6.1.4.1.3224.9.3.1.3</oid>
                </nsIfFlowInByte>
        </fields>
</interface>
O/S is Gentoo Linux 2005.1 with all ebuilds up to yesterday applied, PHP 4.4.0, cacti 0.8.6f-r1 (gentoo package).

Any hints on what I could do to fix this?

Thanks
kinkie
Posts: 2
Joined: Thu Sep 01, 2005 4:50 am

Answer

Post by kinkie »

Answering to myself, since I got the solution: it's a problem with PHP 4.4, downgrading to 4.3 solved the issue.
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Hi

if running PHP 4.4.0, you have to upgrade to Cacti 0.8.6g : http://www.cacti.net/release_notes_0_8_6g.php :

Code: Select all

bug#0000535: Fix template export support for PHP 4.4.
It works fine here (Gentoo 2005.1).
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
n00b
Posts: 6
Joined: Wed Sep 28, 2005 4:21 am

Post by n00b »

Hi,

I'm running PHP 4.4 and .86g version and have that problem ...

Is there a manual way to activate my template ?

Regards.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests