Undefined index error?

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
vermicknid
Posts: 4
Joined: Fri Jan 13, 2006 2:50 pm

Undefined index error?

Post by vermicknid »

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!
Think for yourself and question authority!
kpyke
Posts: 4
Joined: Tue Jan 24, 2006 3:24 pm

Post by kpyke »

I've seen 2 other posts about this, so I'm not the only one having this issue. Does anyone on the Cacti side of things have any insight into this problem?

Thanks,

Matt
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

What version of the following are you running?

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]
kpyke
Posts: 4
Joined: Tue Jan 24, 2006 3:24 pm

Post by kpyke »

Cacti == 0.8.6h
PHP == 5.1.2
mysql == 5.0.18
Apache == 2.2.0



rony wrote:What version of the following are you running?

cacti
php
mysql
apache


Also, can you post a screen shot where you get this error.
kpyke
Posts: 4
Joined: Tue Jan 24, 2006 3:24 pm

Post by kpyke »

Trying to attach picture... :evil:
Attachments
host_status_error.JPG
host_status_error.JPG (60.65 KiB) Viewed 3353 times
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Run the following queries on the cacti database and post the results, if there is important information, please just email it to me:

Code: Select all

explain host;

Code: Select all

select * from host;
If the table does not exist, please refer to http://forums.cacti.net/viewtopic.php?t=11289 for more information.
[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]
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Ok, very confusing here....

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]
kpyke
Posts: 4
Joined: Tue Jan 24, 2006 3:24 pm

Post by kpyke »

No, its a pretty straight forward install. The only weird thing that I can see is that I had multiple entries in the hosts table. I'll delete the multiples when I get into work tomorrow and see if that helps. But really, I had just logged into cacti for the first time, and this came right up.
tgmif
Posts: 1
Joined: Sun Feb 19, 2006 6:20 am

Post by tgmif »

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;

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)
Any idea how to resolv this?

thanks!
crinago
Posts: 17
Joined: Mon Feb 21, 2005 1:36 am

Post by crinago »

was there already a solution to this one???
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests