SNMP Information at graph_view.php page

Addons for Cacti and discussion about those addons

Moderators: Developers, Moderators

jb_008
Posts: 8
Joined: Sun Mar 14, 2010 5:00 am

Post by jb_008 »

Almost works... It displays the info now, but the graphs are not showing up correctly and I get this error.

Fatal error: Call to undefined function api_plugin_hook() in /usr/share/cacti/site/lib/html.php on line 205


Here is the line that it seems to be giving an error on
<?php api_plugin_hook('graph_buttons', array('hook' => 'graphs', 'local_graph_id' => $graph['local_graph_id'], 'rra' => 0, 'view_type' => '')); ?>
jb_008
Posts: 8
Joined: Sun Mar 14, 2010 5:00 am

Post by jb_008 »

Also to add to my post above I tried taking that line out and all the graphs showed up as only one graph was showing with that line in, but none of the buttons to the side of the graph that were usually there would show up.


Also found when I clicked on console I was getting all these errors too right above the create new graphs.

Notice: Undefined index: url_path in /usr/share/cacti/site/lib/html.php on line 797

Notice: Undefined index: url_path in /usr/share/cacti/site/lib/html.php on line 801

Notice: Undefined index: url_path in /usr/share/cacti/site/lib/html.php on line 757

Notice: Undefined index: url_path in /usr/share/cacti/site/lib/html.php on line 768

Notice: Undefined index: url_path in /usr/share/cacti/site/lib/html.php on line 757

Notice: Undefined index: url_path in /usr/share/cacti/site/lib/html.php on line 768

Notice: Undefined index: url_path in /usr/share/cacti/site/lib/html.php on line 757

Notice: Undefined index: url_path in /usr/share/cacti/site/lib/html.php on line 768

Notice: Undefined index: url_path in /usr/share/cacti/site/lib/html.php on line 757

Notice: Undefined index: url_path in /usr/share/cacti/site/lib/html.php on line 768

Notice: Undefined index: url_path in /usr/share/cacti/site/lib/html.php on line 797

Notice: Undefined index: url_path in /usr/share/cacti/site/lib/html.php on line 801

Notice: Undefined index: url_path in /usr/share/cacti/site/lib/html.php on line 757

Notice: Undefined index: url_path in /usr/share/cacti/site/lib/html.php on line 768

Notice: Undefined index: url_path in /usr/share/cacti/site/lib/html.php on line 757

Notice: Undefined index: url_path in /usr/share/cacti/site/lib/html.php on line 768

Notice: Undefined index: url_path in /usr/share/cacti/site/lib/html.php on line 797

Notice: Undefined index: url_path in /usr/share/cacti/site/lib/html.php on line 801

Notice: Undefined index: url_path in /usr/share/cacti/site/lib/html.php on line 797

Notice: Undefined index: url_path in /usr/share/cacti/site/lib/html.php on line 801

Notice: Undefined index: url_path in /usr/share/cacti/site/lib/html.php on line 797

Notice: Undefined index: url_path in /usr/share/cacti/site/lib/html.php on line 801

Notice: Undefined index: url_path in /usr/share/cacti/site/lib/html.php on line 797

Notice: Undefined index: url_path in /usr/share/cacti/site/lib/html.php on line 801

Notice: Undefined index: url_path in /usr/share/cacti/site/lib/html.php on line 797

Notice: Undefined index: url_path in /usr/share/cacti/site/lib/html.php on line 801

Notice: Undefined index: url_path in /usr/share/cacti/site/lib/html.php on line 797

Notice: Undefined index: url_path in /usr/share/cacti/site/lib/html.php on line 801

Notice: Undefined index: url_path in /usr/share/cacti/site/lib/html.php on line 797

Notice: Undefined index: url_path in /usr/share/cacti/site/lib/html.php on line 801

Notice: Undefined index: url_path in /usr/share/cacti/site/lib/html.php on line 797

Notice: Undefined index: url_path in /usr/share/cacti/site/lib/html.php on line 801

Notice: Undefined index: url_path in /usr/share/cacti/site/lib/html.php on line 797

Notice: Undefined index: url_path in /usr/share/cacti/site/lib/html.php on line 799

Notice: Undefined index: url_path in /usr/share/cacti/site/lib/html.php on line 797

Notice: Undefined index: url_path in /usr/share/cacti/site/lib/html.php on line 801

Notice: Undefined index: url_path in /usr/share/cacti/site/lib/html.php on line 797

Notice: Undefined index: url_path in /usr/share/cacti/site/lib/html.php on line 801

Notice: Undefined index: url_path in /usr/share/cacti/site/lib/html.php on line 797

Notice: Undefined index: url_path in /usr/share/cacti/site/lib/html.php on line 801

Notice: Undefined index: url_path in /usr/share/cacti/site/lib/html.php on line 808
jb_008
Posts: 8
Joined: Sun Mar 14, 2010 5:00 am

Post by jb_008 »

Got it fixed, I used the html.php and graph.php from prof and used the html_tree.php and graph_view.php from tonyperez, now all the errors are gone and everything is displaying correctly.
jb_008
Posts: 8
Joined: Sun Mar 14, 2010 5:00 am

Post by jb_008 »

Spoke too soon, found a new problem, under console, devices when you click on that and then a host that is pulling snmp data you get

"Fatal error: Call to undefined function html_split_string() in /usr/share/cacti/site/host.php on line 599"
tonyperez
Posts: 34
Joined: Sat Nov 05, 2005 12:43 am
Location: Guadalajara, Jalisco, Mexico

Post by tonyperez »

jb_008 wrote:Spoke too soon, found a new problem, under console, devices when you click on that and then a host that is pulling snmp data you get

"Fatal error: Call to undefined function html_split_string() in /usr/share/cacti/site/host.php on line 599"
Did u install the security patches for cacti 0.8.6d and PIA 2.4 first?
jb_008
Posts: 8
Joined: Sun Mar 14, 2010 5:00 am

Post by jb_008 »

Just spent some time on it and got things working. I have it running under 0.8.7e. I am not sure what the PIA 2.4 is for, but I have it running on a base install of cacti.
Attachments
html.php.txt
html.php
(32 KiB) Downloaded 3084 times
html_tree.php.txt
html_tree.php
(61.16 KiB) Downloaded 3178 times
graph.php.txt
graph.php
(11.46 KiB) Downloaded 3144 times
graph_view.php.txt
graph_view.php
(30.38 KiB) Downloaded 3182 times
User avatar
morgentau
Posts: 43
Joined: Fri Jun 16, 2006 4:05 am
Location: Zurich, Switzerland

Re:

Post by morgentau »

jb_008 wrote:Just spent some time on it and got things working. I have it running under 0.8.7e. I am not sure what the PIA 2.4 is for, but I have it running on a base install of cacti.
Is this good for Cacti 8.7.h as well or is there an alternative way?
Server: IBM x3650 M3, 1 XEON CPU 3.0 GHz, 4 Core, 8GB RAM,
OS: Suse Linux 11.4 x64
Apache 2.x
MySQL 5.x
PHP 5.x
Plugins: DSStats, Settings, NMID Cereus Reporting, Spikekill
Install Date: May, 2011

Wed, 19 Oct 2011 13:46:36 +0200
Cacti Version 0.8.7g
Cacti OS unix
SNMP Version NET-SNMP version: 5.6.1
RRDTool Version RRDTool 1.4.x
Hosts 57
Graphs 716
Data Sources Script/Command: 15
SNMP: 166
SNMP Query: 310
Script Query: 4
Script - Script Server (PHP): 46
Script Query - Script Server: 319
Total: 860

Last Run Statistics Time:97.9035 Method:cmd.php Processes:10 Threads:N/A Hosts:58 HostsPerProcess:6 DataSources:3040 RRDsProcessed:860
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests