Corrupted graphs menu (after running add_device.php?)
Moderators: Developers, Moderators
Corrupted graphs menu (after running add_device.php?)
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
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
sorry for the delay.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
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
also attached a screenshot of the menu problem I have.
thanks
- Attachments
-
- cacti_menu_problem.JPG (61 KiB) Viewed 2719 times
yes, as far as I can tell, all seems to work fine except the "None" is missinggandalf wrote:Is the "Device" List still fine?
Reinhard
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
- TheWitness
- Developer
- Posts: 17059
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
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
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?
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?
My cacti is well protected behind a FW.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.
The guest account is disabled and I closely monitor the User Log.
Therefore I do not suspect the system was hacked.
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: 1) Review you installation first
nothing special there.TheWitness wrote: 2) Review the Apache error_log for any wierdness
TheWitness wrote: 3) Look at the page source and see what is there where "None" should be.
Code: Select all
<strong>Host:</strong>
</td>
<td width="1">
<select name="host_id" onChange="applyGraphPreviewFilterChange(document.form_graph_view)">
<option value="0" selected>Any</option>
<option value=''></option>
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
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?
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?
Who is online
Users browsing this forum: No registered users and 0 guests