Corrupted graphs menu (after running add_device.php?)

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

Moderators: Developers, Moderators

Post Reply
yuval_ba
Posts: 32
Joined: Mon Oct 13, 2008 6:19 am

Corrupted graphs menu (after running add_device.php?)

Post by yuval_ba »

Hi,

I had a very well working cacti. but suddenly on the Graphs tab, when in List View. the "Host" and "Template" drop-down menus are corrupted, the "None" option is missing and I only get a blank line there.

I'm not sure when it happened, but I think the last thing I did was add device via the CLI script add_device.php

Any idea what should I check?

thanks
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

This is which version of cacti? Do you still have the list of add script commands that you've run against cacti?
Reinhard
yuval_ba
Posts: 32
Joined: Mon Oct 13, 2008 6:19 am

Post by yuval_ba »

gandalf wrote:This is which version of cacti? Do you still have the list of add script commands that you've run against cacti?
Reinhard
sorry for the delay.
my Cacti is 0.8.7b, full details are:
CentOS 5.2
PIA 2.1
Spine 0.8.7a

the commands I ran were:

Code: Select all

php add_device.php
php add_device.php --description=lns01.hfa --ip=x.x.x.x --template=9
php add_device.php --list-host-templates
php add_device.php --description=lns01.hfa --ip=x.x.x.x --template=9 --version=2 --community=comm
php add_device.php --description=lns01.hfa --ip=x.x.x.x --template=9 --version=2 --community=comm
I have to mention that at one attempt the script timed out due to SNMP problem and I abnormally terminated it.

also attached a screenshot of the menu problem I have.

thanks
Attachments
cacti_menu_problem.JPG
cacti_menu_problem.JPG (61 KiB) Viewed 2718 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Is the "Device" List still fine?
Reinhard
yuval_ba
Posts: 32
Joined: Mon Oct 13, 2008 6:19 am

Post by yuval_ba »

gandalf wrote:Is the "Device" List still fine?
Reinhard
yes, as far as I can tell, all seems to work fine except the "None" is missing :(
and also if I choose the "Any" it disappears and the box remains empty.

I know that it's quite minor problem but I must know what messed it up and how to fix it, or I will not have my peace of mind :(

can you give me a clue what could have been corrupted, is this list driven from the SQL?

btw - under "Graph Managment" all works fine including the "None"

10x again
User avatar
TheWitness
Developer
Posts: 17059
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Is your Cacti system internet facing? If it is, have you disabled the guest user? I suspect that either your system has been hacked, or you have some PHP/Apache error.

1) Review you installation first
2) Review the Apache error_log for any wierdness
3) Look at the page source and see what is there where "None" should be.

Let us know what you find.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
yuval_ba
Posts: 32
Joined: Mon Oct 13, 2008 6:19 am

Post by yuval_ba »

TheWitness wrote:Is your Cacti system internet facing? If it is, have you disabled the guest user? I suspect that either your system has been hacked, or you have some PHP/Apache error.
My cacti is well protected behind a FW.
The guest account is disabled and I closely monitor the User Log.
Therefore I do not suspect the system was hacked.
TheWitness wrote: 1) Review you installation first
I don't know what exactly to look for. I think this is quite standard install and everything is working well. Furthermore I just discovered that I see the exact same problem on a completely seperate cacti 0.8.7b installation. (different server). so I also less suspect the add_device.php now.
TheWitness wrote: 2) Review the Apache error_log for any wierdness
nothing special there.
TheWitness wrote: 3) Look at the page source and see what is there where "None" should be.

Code: Select all

						&nbsp;<strong>Host:</strong>&nbsp;
					</td>

					<td width="1">
						<select name="host_id" onChange="applyGraphPreviewFilterChange(document.form_graph_view)">
							<option value="0" selected>Any</option>

							<option value=''></option>
I tried to look on graph_view.php.
I can see that the "Any" is staticly coded, but not the "None".
If I knew where it should come from I could check it out (from db?).

Can other 0.8.7b users confirm if they see/don't see the problem.
TheWitness wrote: Let us know what you find.

TheWitness
yuval_ba
Posts: 32
Joined: Mon Oct 13, 2008 6:19 am

Post by yuval_ba »

another thing I found out:
this problem seems to be related to graphs that are not associated to any Host or to any Template (host: None, Template: None).
In my case these are aggregate graphs created via AGGREGATE.

If I associated all my aggregate graphs to some Host then the empty line on the Host drop down disappeared and I only had "Any" or the rest of my hosts.

Can someone with such graphs confirm if having same problem?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Which version of AGGREGATE are you using?
Reinhard
yuval_ba
Posts: 32
Joined: Mon Oct 13, 2008 6:19 am

Post by yuval_ba »

gandalf wrote:Which version of AGGREGATE are you using?
Reinhard
0.66
but as I wrote, the problem is also on system without AGGRAGATE installed at all. As far as I can tell, It is related to graphs associated to no host.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Thanks, I missed that, indeed. Will try to copy this behaviour
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests