New Install - Garbled data when viewing php data

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

Moderators: Developers, Moderators

Post Reply
Rich Berry
Posts: 3
Joined: Sat Oct 18, 2008 1:53 pm

New Install - Garbled data when viewing php data

Post by Rich Berry »

I've tried to get Cacti running on a very current Fedora release (Linux mrtg.FUBAR.net 2.6.26.5-45.fc9.i686). I've installed everyting using YUM, and followed as many install guides and FAQs I can find. I get to #8 in the Install guide (http://docs.cacti.net/system/files/manual.pdf), but that's where my results differ..... please help. I'm lost....

FROM MANUAL:
- - - - - - - - -
8. Point your web browser to:
http://your-server/cacti/
Log in the with a username/password of admin. You will be required to change
this password immediately. Make sure to fill in all of the path variables carefully
and correctly on the following screen.
- - - - - - - - -

When I point my browser at: "http://mrtg.[fubar].net/cacti/ I get a very basic text page showing a few links...

PAGE DISPLAYS:
- - - - - - -
You are now logged into Cacti. You can follow these basic steps to get started.

* Create devices for network
* Create graphs for your new devices
* View your new graphs

- - - - - -

If I follow any of the CREATE links I see garbles test that looks like it should be the PHP (?) code for the page When I follow the VIEW link I get similar output. However, this has big bold Red type stating " DO NOT HAVE RIGHTS" (see second sample below).

Following CREATE Link:
- - - - - - - - -
#"Delete", 2 => "Enable", 3 => "Disable", 4 => "Change SNMP Options", 5 => "Clear #Statistics", 6 => "Change Availability Options" ); /* set default action */ if #(!isset($_REQUEST["action"])) { $_REQUEST["action"] = ""; } switch #($_REQUEST["action"]) { case 'save': form_save(); break; case 'actions': #form_actions(); break; case 'gt_remove': host_remove_gt(); header("Location: #host.php?action=edit&id=" . $_GET["host_id"]); break; case 'query_remove': #host_remove_query(); header("Location: host.php?action=edit&id=" . #$_GET["host_id"]); break; case 'query_reload': host_reload_query(); #header("Location: host.php?action=edit&id=" . $_GET["host_id"]); break; case #'query_verbose': host_reload_query(); header("Location: #host.php?action=edit&id=" . $_GET["host_id"] . "&display_dq_details=true"); #break; case 'edit': include_once("./include/top_header.php"); host_edit(); #include_once("./include/bottom_footer.php"); break; default: #include_once("./include/top_header.php"); ...lots more
- - - - - - - - -


Following VIEW link:
- - - - - - - - -
#YOU DO NOT HAVE RIGHTS FOR TREE VIEW"; exit; } /* if cacti's builtin #authentication is turned on then make sure to take graph permissions into #account here. if a user does not have rights to a particular graph; do not show it. #they will get an access denied message if they try and view the graph directly. */ #$access_denied = false; $tree_parameters = array(); if ((!isset($_GET["tree_id"])) #&& (isset($_SESSION['dhtml_tree']))) { unset($_SESSION["dhtml_tree"]); } #$tree_dropdown_html = draw_tree_dropdown((isset($_GET["tree_id"]) ? #$_GET["tree_id"] : "0")); /* don't even print the table if there is not >1 tree */ if #((!empty($tree_dropdown_html)) && (read_graph_config_option("default_tree_view_mode") == "1")) { print "
$tree_dropdown_html
\n"; } if (isset($_SESSION["sess_view_tree_id"])) { if (read_config_option("auth_method") != 0) { /* take tree permissions into account here, if the user does not have permission give an "access denied" message */ $access_denied = !(is_tree_allowed($_SESSION["sess_view_tree_id"])); if ($access_denied == true) { print "ACCESS DENIED"; exit; } } if (read_graph_config_option("default_tree_view_mode") == "1") { grow_graph_tree($_SESSION["sess_view_tree_id"], (!empty($start_branch) ? $start_branch : 0), isset($_SESSION["sess_user_id"]) ? $_SESSION["sess_user_id"] : 0, $tree_parameters); }elseif (read_graph_config_option("default_tree_view_mode") == "2") { grow_right_pane_tree((isset($_GET["tree_id"]) ? $_GET["tree_id"] : 0), (isset($_GET["leaf_id"]) ? $_GET["leaf_id"] : 0), (isset($_GET["host_group_data"]) ? urldecode($_GET["host_group_data"]) : 0)); } } print "
SuperOmegaSlack
Posts: 16
Joined: Tue Jan 17, 2006 7:22 pm

Post by SuperOmegaSlack »

did you ever get this working? I have the same problem!
Rich Berry
Posts: 3
Joined: Sat Oct 18, 2008 1:53 pm

Is your Cacti server running?

Post by Rich Berry »

No. I did not. And my attempts at re-installing have been even less successful (I cant even get mysql runnning now).

However, I was told (in regards to the previous errors posted above....."Thats because your Cacti server isnt running".

From my recent experience, your very close.

Hope that helps.
Rich Berry
Posts: 3
Joined: Sat Oct 18, 2008 1:53 pm

corrections....

Post by Rich Berry »

closing paren ")"

and it should be "You're close"

I dont know anything about "your close"

:o
SuperOmegaSlack
Posts: 16
Joined: Tue Jan 17, 2006 7:22 pm

Post by SuperOmegaSlack »

Thanks! I will let you know if I get it working.... I'm not giving up on this!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest