Error importing host template

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
fjack
Posts: 19
Joined: Wed Nov 09, 2005 10:18 am
Location: Geneva, SWITZERLAND

Error importing host template

Post by fjack »

Hi all,

I've recently installed Cacti on a Windows XP box.
Version : 0.8.6g with all patches

When trying to import a host template (from xml file), I get this error :
Warning: filesize() [function.filesize]: stat failed for C:\WINDOWS\TEMP\php2B.tmp in c:\Inetpub\wwwroot\cacti\templates_import.php on line 59

Warning: fread() [function.fread]: Length parameter must be greater than 0. in c:\Inetpub\wwwroot\cacti\templates_import.php on line 59

Warning: Cannot modify header information - headers already sent by (output started at c:\Inetpub\wwwroot\cacti\templates_import.php:59) in c:\Inetpub\wwwroot\cacti\templates_import.php on line 67
Did you know where comes this error from ?

Thank you.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Just as the error states, the IIS_USR does not have modify rights to C:\WINDOWS\TEMP\. Give it the rights and it will work.
hatiras
Posts: 25
Joined: Mon Oct 10, 2005 4:55 pm
Location: Mexico, Puebla

Post by hatiras »

Yes, I have the same problem.

2003 server, cacti0.8.6g, with all the patches, already apply the permissions to the folder temp of the user iis_xxx (all control) but no import, i`m restarted my pc and my iis

Say:

Warning: filesize(): Stat failed for C:\WINDOWS\TEMP\php7.tmp (errno=2 - No such file or directory) in c:\inetpub\wwwroot\cacti\templates_import.php on line 59

Warning: fread(): Length parameter must be greater than 0. in c:\inetpub\wwwroot\cacti\templates_import.php on line 59

Notice: Only variable references should be returned by reference in c:\inetpub\wwwroot\cacti\lib\import.php on line 36

Warning: Cannot modify header information - headers already sent by (output started at c:\inetpub\wwwroot\cacti\templates_import.php:59) in c:\inetpub\wwwroot\cacti\templates_import.php on line 67

thanks
[b]___________________[/b]
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

The both of you have file uploads allowed in php.ini?

Double checked the NTFS security on all your cacti files and the directory php is trying to upload the file to?
fjack
Posts: 19
Joined: Wed Nov 09, 2005 10:18 am
Location: Geneva, SWITZERLAND

Post by fjack »

Just as the error states, the IIS_USR does not have modify rights to C:\WINDOWS\TEMP\. Give it the rights and it will work.
It's working for me, thank you BSOD2600 !

:D
hatiras
Posts: 25
Joined: Mon Oct 10, 2005 4:55 pm
Location: Mexico, Puebla

Post by hatiras »

Thanks BSOD2600, work It's working :D
[b]___________________[/b]
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest