Undefined index error?
Moderators: Developers, Moderators
-
- Posts: 4
- Joined: Fri Jan 13, 2006 2:50 pm
Undefined index error?
I'm a Cacti newbie, and am seeing this error when looking at the Devices screen:
Notice: Undefined index: host_status in /var/www/html/cacti/host.php on line 730
I'm really not sure what is causing this ... but it does appear to be causing difficulties in creating devices. Any ideas?
Thanks!
Notice: Undefined index: host_status in /var/www/html/cacti/host.php on line 730
I'm really not sure what is causing this ... but it does appear to be causing difficulties in creating devices. Any ideas?
Thanks!
Think for yourself and question authority!
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
What version of the following are you running?
cacti
php
mysql
apache
Also, can you post a screen shot where you get this error.
cacti
php
mysql
apache
Also, can you post a screen shot where you get this error.
[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]
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Run the following queries on the cacti database and post the results, if there is important information, please just email it to me:
If the table does not exist, please refer to http://forums.cacti.net/viewtopic.php?t=11289 for more information.
Code: Select all
explain host;
Code: Select all
select * from host;
[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]
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Ok, very confusing here....
Do you have any Plugins or Addons?
Do you have any Plugins or Addons?
[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]
I got exactly the same problem after a clean install of Cacti using
Cacti 0.8.6g
Apache 2.0.54
PHP 4.4.0
MySQL 4.1.13
The host table looks like this;
Any idea how to resolv this?
thanks!
Cacti 0.8.6g
Apache 2.0.54
PHP 4.4.0
MySQL 4.1.13
The host table looks like this;
Code: Select all
mysql> explain host;
+--------------------+-----------------------+------+-----+---------------------+----------------+
| Field | Type | Null | Key | Default | Extra |
+--------------------+-----------------------+------+-----+---------------------+----------------+
| id | mediumint(8) unsigned | | PRI | NULL | auto_increment |
| host_template_id | mediumint(8) unsigned | | | 0 | |
| description | varchar(150) | | | | |
| hostname | varchar(250) | YES | | NULL | |
| snmp_community | varchar(100) | YES | | NULL | |
| snmp_version | tinyint(1) unsigned | | | 1 | |
| snmp_username | varchar(50) | YES | | NULL | |
| snmp_password | varchar(50) | YES | | NULL | |
| snmp_port | mediumint(5) unsigned | | | 161 | |
| snmp_timeout | mediumint(8) unsigned | | | 500 | |
| disabled | char(2) | YES | | NULL | |
| status | tinyint(2) | | | 0 | |
| status_event_count | mediumint(8) unsigned | | | 0 | |
| status_fail_date | datetime | | | 0000-00-00 00:00:00 | |
| status_rec_date | datetime | | | 0000-00-00 00:00:00 | |
| status_last_error | varchar(50) | YES | | | |
| min_time | decimal(10,5) | YES | | 9.99999 | |
| max_time | decimal(10,5) | YES | | 0.00000 | |
| cur_time | decimal(10,5) | YES | | 0.00000 | |
| avg_time | decimal(10,5) | YES | | 0.00000 | |
| total_polls | int(12) unsigned | YES | | 0 | |
| failed_polls | int(12) unsigned | YES | | 0 | |
| availability | decimal(7,5) | | | 100.00000 | |
+--------------------+-----------------------+------+-----+---------------------+----------------+
23 rows in set (0.00 sec)
thanks!
Who is online
Users browsing this forum: No registered users and 4 guests