Hi Jason,

Yes there has to be a $title in the htdocs/view_performance.php file.

Javier

Jason Humes wrote:
Hi
I'm trying to change what's shown in the graphs because the graph names are
messed up kinda and are missing a space between the host and interface name.
I tried to follow what you have listed below regarding line 173 but it is
not as you described, nor is there a $title in that whole document.  Any
ideas.  Thanks.

Jason

-----Original Message-----
From: Javier Szyszlican [mailto:[EMAIL PROTECTED] Sent: Friday, July 09, 2004 2:41 PM
Cc: '[EMAIL PROTECTED]'
Subject: Re: [jffnms-users] Display names of interfaces



Jason,

This is possible but required code modification, only one line.

But it depends on which list you selected. Because each list triggers a different function.

For instance, it seems like you choose the 'By Host' option.
SO you should edit api/gui.controls.inc.php, and look for this function:

function select_host_interfaces ($name,$host_id,$size = 1,$add_data = NULL, $onchange = "") {
return select_object("interfaces",$name,$interface_id,$add_data,"id",array("client_
shortname","interface","description"),array(NULL,array
(host=>$host_id)),$size,$onchange);
}


This is the part you should look:

array("client_shortname","interface","description")

And change it to reflect what you want.




Also, if you want to change whats shown in the graphs:

Edit line 173 of htdocs/view_interfaces.php

It should look like:

$title = $graph["host_name"]." ".$graph["zone_shortname"]." ".$graph["interface"]." ".$graph["client_shortname"]." ".$gra
ph["description"];





Jason Humes wrote:

Hi
If I'm asking too many little questions and bothering anyone, please let me know and I'll only post important ones. But here is my latest question. When I'm viewing the performance graphs for a group of interfaces, the interfaces shown in the list are labeled like this "customer_short_name interface_type"...is there any way to make it display by the 'hostname interface_type" because it seems to make more sense because we've got customers who are restricted to only see their info, and when they go to the perf graphs, their 10 servers are all being graphed for traffic, disk space, cpu, memory, etc. and they are all under the same customer, so they are kinda hard to tell apart. Any ideas. Thanks.


Jason



-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________
jffnms-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jffnms-users



-- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Javier Szyszlican, Project Leader, JFFNMS [EMAIL PROTECTED]

I hope JFFNMS or I were helpful to you, if you
can, please donate at http://jffnms.org/donate



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
jffnms-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jffnms-users

Reply via email to