Problem with cmd.php

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

Moderators: Developers, Moderators

Post Reply
cactinoob
Posts: 4
Joined: Sun Oct 28, 2007 9:01 pm

Problem with cmd.php

Post by cactinoob »

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.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

What version of cacti?
have you installed the plugin arch?
cactinoob
Posts: 4
Joined: Sun Oct 28, 2007 9:01 pm

Post by cactinoob »

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 :D
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

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.
cactinoob
Posts: 4
Joined: Sun Oct 28, 2007 9:01 pm

Post by cactinoob »

No, I am not upgrading cacti. It's a fresh installation. Hopefully that bug is fixed soon.

I have fixed that graph problem. 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. Thanks for the help!! :D
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

cactinoob wrote:No, I am not upgrading cacti. It's a fresh installation. Hopefully that bug is fixed soon.
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.php
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.
Hmm, interesting. Didn't realize there was separate permissions.
slech
Cacti User
Posts: 90
Joined: Tue Nov 06, 2007 7:51 am

Post by slech »

PHP Notice: Undefined index: availability_method in <cacti path>cmd.php on line 231
I use Cacti-Security.cmd but that does not work
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
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

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.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest