cmd.php error

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
L2tp

cmd.php error

Post by L2tp »

I've a problem with cmd.php.


Cacti 0.6.8 is on a RedHat 7.3 with
PHP 4.2.1 (with mysql / ucd-snmp)
Apache 1.3.24 (ssl / php / mysql)
rrdtool 1.0.37
mysql 3.23.49 with DBI, DBD, ShowTable, Dumper

php.ini has register_globals=On and register_argc_argv=On (file attribute 777)

log/rrd.log seems to be correct, in rra/ I've some rrd files but i obtain only empty graph.

Some ideas?

This is the output I got when i run cmd.php.

X-Powered-By: PHP/4.2.1
Content-type: text/html

PHP Notice: Undefined variable: database in /usr/local/apache/htdocs/cacti/include/database.php on line 17
PHP Notice: Undefined variable: do_not_read_config in /usr/local/apache/htdocs/cacti/include/config.php on line 38
PHP Notice: Undefined variable: database in /usr/local/apache/htdocs/cacti/include/database.php on line 17
PHP Notice: Undefined variable: do_not_read_config in /usr/local/apache/htdocs/cacti/include/config.php on line 38
PHP Notice: Undefined variable: database in /usr/local/apache/htdocs/cacti/include/database.php on line 17
PHP Notice: Undefined variable: do_not_read_config in /usr/local/apache/htdocs/cacti/include/config.php on line 38
Last edited by L2tp on Mon May 20, 2002 2:48 am, edited 1 time in total.
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

Sounds simple enough to me :)

You can get rid of this error by creating the directory:

C:\usr\mibs

Then copy the contents of your 'mibs' folder (in PHP's folder) into your newly created folder. Those steps should at least get rid of that error message.

-Ian
L2tp

Post by L2tp »

I tried but still don't work.... I've rebuilded php, i 've moved snmp mibs but nothing changed. (Sorry for my awful english)
It seems to be something wrong with php. All the variabiles in the files called after cmd.php result "undeclared".

I've txt mibs in /usr/share/snmp/mibs and in /usr/snmp/mibs


Running PHP 4.2.1
Zend Engine v1.2.0, Copyright (c) 1998-2002 Zend Technologies

[PHP Modules]
xml
standard
snmp
session
posix
pcre
openssl
mysql
ctype



snmp
UCD-SNMP Support enabled
UCD-SNMP Version 4.2.4


I'm so stupid!
Guest

Post by Guest »

I had the same problem on windows, i think it's because variables in the php scripts are defined when they are needed.
i just changed the Error handling and logging section of the php.ini file to disable notices.

error_reporting = E_ALL & ~E_NOTICE

Hope it helps.
L2tp

Post by L2tp »

All seems ok now.


Thanks ! :D
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest