Problem with cmd.php
Moderators: Developers, Moderators
Problem with cmd.php
Hi guys,
I am having problem with cmd.php. For some reason, it is giving me this error message "PHP Notice: Undefined index: availability_method in <path>\cacti\cmd.php on line 231" when I run it in command line. FYI, I am running windows server 2003 64-bit, IIS 6.0, PHP 5.2.3 and MySQL 5.0.
Any help would be much appreciated. Thanks.
I am having problem with cmd.php. For some reason, it is giving me this error message "PHP Notice: Undefined index: availability_method in <path>\cacti\cmd.php on line 231" when I run it in command line. FYI, I am running windows server 2003 64-bit, IIS 6.0, PHP 5.2.3 and MySQL 5.0.
Any help would be much appreciated. Thanks.
What version of cacti?
have you installed the plugin arch?
have you installed the plugin arch?
| 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 |
I'm running cacti 0.8.7. I haven't installed the plugin arch. For some reason, the error was fixed when I added a new column called "availability_method" to poller_item table. Do you have any proper fix for this one?
Another problem I am having is that cacti can not run rrdtool.exe. It doesn't give me any output at all, e.g null array. I checked this via Technical Support in System Utilities section and I guess this is the reason why there is no graph generated by cacti (I can generate the graph using the cmd script given). Any idea on this one?
Thanks for replying
Another problem I am having is that cacti can not run rrdtool.exe. It doesn't give me any output at all, e.g null array. I checked this via Technical Support in System Utilities section and I guess this is the reason why there is no graph generated by cacti (I can generate the graph using the cmd script given). Any idea on this one?
Thanks for replying
more bugs with the latest release probably...
I'm guessing you upgraded from cacti 0.8.6? Do you recall the upgrade screen showing any errors?
What error are you having with rrdtool? Does it spit out any errors when you run it from the commandline? You might need to reapply NTFS security to the various files/folders in Cacti.
Sysinternals Filemon should reveal any permission problems you might be having -- enabled "denied" in the log filtering highlighting.
I'm guessing you upgraded from cacti 0.8.6? Do you recall the upgrade screen showing any errors?
What error are you having with rrdtool? Does it spit out any errors when you run it from the commandline? You might need to reapply NTFS security to the various files/folders in Cacti.
Sysinternals Filemon should reveal any permission problems you might be having -- enabled "denied" in the log filtering highlighting.
| 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 |
Ah alright. For testing purposes, would you mind doing yet another fresh install of cacti 0.8.7 to verify that table really is missing? If you have the same problem create a bug report http://www.cacti.net/bugs.phpcactinoob wrote:No, I am not upgrading cacti. It's a fresh installation. Hopefully that bug is fixed soon.
Hmm, interesting. Didn't realize there was separate permissions.cactinoob wrote:It was a permission issue. I am running win server 2003 64-bit, and I only set cmd.exe 32-bit permission instead of both 32 and 64 bit.
| 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 |
I use Cacti-Security.cmd but that does not workPHP Notice: Undefined index: availability_method in <cacti path>cmd.php on line 231
I have the same problems when I run by the user
when i run by the administrators account - the problem disappears.
2367 3:35:47 PM csrss.exe:380 OPEN C:\cacti\php\php.exe SUCCESS Options: Open Access: Read-Attributes
2368 3:35:47 PM csrss.exe:380 QUERY INFORMATION C:\cacti\php\php.exe SUCCESS Attributes: A
2369 3:35:47 PM csrss.exe:380 CLOSE C:\cacti\php\php.exe SUCCESS
2370 3:35:47 PM csrss.exe:380 OPEN C:\cacti\php\php.exe ACCESS DENIED PC\cacti
2371 3:35:47 PM csrss.exe:380 OPEN C:\cacti\php\php.exe SUCCESS Options: Open Access: 00100080
2372 3:35:47 PM csrss.exe:380 QUERY INFORMATION C:\cacti\php\php.exe BUFFER OVERFLOW FileFsVolumeInformation
2373 3:35:47 PM csrss.exe:380 QUERY INFORMATION C:\cacti\php\php.exe SUCCESS FileInternalInformation
2374 3:35:47 PM csrss.exe:380 QUERY INFORMATION C:\cacti\php\php.exe SUCCESS Length: 32821
2375 3:35:47 PM csrss.exe:380 CLOSE C:\cacti\php\php.exe SUCCESS
2376 3:35:47 PM csrss.exe:380 OPEN C:\cacti\php\php.exe SUCCESS Options: Open Access: Read
2377 3:35:47 PM csrss.exe:380 OPEN C:\cacti\php\php.exe SUCCESS Options: Open Access: 00100080
2378 3:35:47 PM csrss.exe:380 QUERY INFORMATION C:\cacti\php\php.exe BUFFER OVERFLOW FileFsVolumeInformation
2379 3:35:47 PM csrss.exe:380 QUERY INFORMATION C:\cacti\php\php.exe SUCCESS FileInternalInformation
2380 3:35:47 PM csrss.exe:380 QUERY INFORMATION C:\cacti\php\php.exe SUCCESS Length: 32821
2381 3:35:47 PM csrss.exe:380 CLOSE C:\cacti\php\php.exe SUCCESS
2382 3:35:47 PM csrss.exe:380 READ C:\cacti\php\php.exe SUCCESS Offset: 0 Length: 12
2383 3:35:47 PM csrss.exe:380 QUERY INFORMATION C:\cacti\php\php.exe SUCCESS Length: 32821
2384 3:35:47 PM csrss.exe:380 QUERY INFORMATION C:\cacti\php\php.exe SUCCESS Length: 32821
2385 3:35:47 PM csrss.exe:380 CLOSE C:\cacti\php\php.exe SUCCESS
slech: You highlighted the error, so why not fix it? read through my installation guide in my signature. grant read/execute rights on rrdtool.exe, php.exe, and cmd.exe.
| 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 |
Who is online
Users browsing this forum: No registered users and 2 guests