I found some scripts on the board to check CPU load using WMI scripting. This is the first time I'm working with WMI and these scripts before, but I thought it should be straight forward. I tried to import the script ('from local file'), but I got this errors:
Warning: filesize() [function.filesize]: stat failed for C:\WINNT\TEMP\php4.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
Would anyone have an idea what is wrong ?
Thanks !
XML Parse Error when importing CPU WMI script
Moderators: Developers, Moderators
-
- Cacti User
- Posts: 97
- Joined: Thu Mar 24, 2005 4:59 am
- Location: Brussels, Belgium
- Diggit2001
- Cacti User
- Posts: 195
- Joined: Tue May 03, 2005 4:29 pm
- Location: MD, US
Me too
I'm having the same exact problem when I attempt to import various scripts. Anyone have a resolution?
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Do you have file uploads turned on in our PHP configuration?
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
- Diggit2001
- Cacti User
- Posts: 195
- Joined: Tue May 03, 2005 4:29 pm
- Location: MD, US
Well, this is my foray into thr world of PHP so I'm not entirely sure how to check that. I am assuming that its set in the php.ini file. Under "File Uploads", I have the follwing:
; Whether to allow HTTP file uploads.
file_uploads = On
; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
upload_tmp_dir = c:\php\uploadtemp
; Maximum allowed size for uploaded files.
upload_max_filesize = 2M
I had changed the upload_temp_dir setting to see if that would help, but so far, no dice.
Am I in the right place?
Thanks
; Whether to allow HTTP file uploads.
file_uploads = On
; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
upload_tmp_dir = c:\php\uploadtemp
; Maximum allowed size for uploaded files.
upload_max_filesize = 2M
I had changed the upload_temp_dir setting to see if that would help, but so far, no dice.
Am I in the right place?
Thanks
What OS?
What php version?
What cacti version?
sure your NTFS serurity settings are correct for the temp directory php uses for uploads?
What php version?
What cacti version?
sure your NTFS serurity settings are correct for the temp directory php uses for uploads?
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
- Diggit2001
- Cacti User
- Posts: 195
- Joined: Tue May 03, 2005 4:29 pm
- Location: MD, US
Who is online
Users browsing this forum: No registered users and 2 guests