Thanks Aaron.

It will be good if some users tried it too.

I'll put this in my pending queue for 0.8.3

Javier

Aaron Daubman wrote:
>>Also, you DON'T want poller_helper, its not working correctly.
> 
> 
> It seems like that was the problem - as soon as I commented it out
> interfaces started getting polled.
> 
> On a side note, here's a patch that should allow the latest RRD
> version to work with JFFNMS (it seems the only incompatibility is that
> you have to now escape any ":"s in the COMMENT: field).
> 
> I haven't tested it extensively, but it works for me under FreeBSD
> (sorta stuck with rrdtool-1.2.8 if I want to use ports) for at least
> traffic graphs...
> 
> # diff -Naur graphs-orig/ graphs/
> ---snip---
> diff -Naur graphs-orig/alteon_sessions.inc.php graphs/alteon_sessions.inc.php
> --- graphs-orig/alteon_sessions.inc.php Mon Mar  7 14:14:54 2005
> +++ graphs/alteon_sessions.inc.php      Tue May 24 09:54:01 2005
> @@ -14,7 +14,7 @@
>          "GPRINT:current_sessions:AVERAGE:'Average\:%5.0lf '",
>          "GPRINT:current_sessions:LAST:'Last\:%5.0lf \\n'",
>      );
> -    if (!empty($data['max_connections'])) $opts_GRAPH[] = "COMMENT:' 
> Maximum Connections: ".$data['max_connections']."'";
> +    if (!empty($data['max_connections'])) $opts_GRAPH[] = "COMMENT:' 
> Maximum Connections\: ".$data['max_connections']."'";
>      
>      $opts_header[] = "--vertical-label='Sessions'";
>  
> diff -Naur graphs-orig/apache_tac_aggregation.inc.php
> graphs/apache_tac_aggregation.inc.php
> --- graphs-orig/apache_tac_aggregation.inc.php  Mon Mar  7 14:14:54 2005
> +++ graphs/apache_tac_aggregation.inc.php       Tue May 24 09:54:22 2005
> @@ -22,7 +22,7 @@
>      $opts_agg[] = "CDEF:tac=$str_cdef_tac";
>  
>      $opts_GRAPH = array(
> -       "COMMENT:'Number of Servers:".$cant."\\n'",
> +       "COMMENT:'Number of Servers\:".$cant."\\n'",
>  
>          "AREA:tac#00CC00:'Hits Per Second   '",
>          "GPRINT:tac:MAX:'Max\:%8.0lf %s'",
> diff -Naur graphs-orig/apache_tkb_aggregation.inc.php
> graphs/apache_tkb_aggregation.inc.php
> --- graphs-orig/apache_tkb_aggregation.inc.php  Mon Mar  7 14:14:54 2005
> +++ graphs/apache_tkb_aggregation.inc.php       Tue May 24 09:54:58 2005
> @@ -23,7 +23,7 @@
>  
>  
>      $opts_GRAPH = array(
> -       "COMMENT:'Number of Servers:".$cant."\\n'",
> +       "COMMENT:'Number of Servers\:".$cant."\\n'",
>  
>         "CDEF:bytes=tkb,1000,*",
>          "AREA:bytes#00CC00:'Throughput   '",
> diff -Naur graphs-orig/cisco_mac_bytes.inc.php graphs/cisco_mac_bytes.inc.php
> --- graphs-orig/cisco_mac_bytes.inc.php Mon Mar  7 14:14:54 2005
> +++ graphs/cisco_mac_bytes.inc.php      Tue May 24 09:55:49 2005
> @@ -16,7 +16,7 @@
>         "CDEF:inputbits=input,UN,0,input,IF,8,*",
>         "CDEF:outputbits=output,UN,0,output,IF,8,*",
>  
> -        "COMMENT:'".$data["description"].", IP Address:
> ".$data["address"]." on
> ".substr($data["interface"],0,strpos($data["interface"],":"))."\\n'",
> +        "COMMENT:'".$data["description"].", IP Address\:
> ".$data["address"]." on
> ".substr($data["interface"],0,strpos($data["interface"],":"))."\\n'",
>  
>          "AREA:inputbits#00CC00:'Inbound  '",
>          "GPRINT:inputbits:MAX:'Max\:%8.2lf %sbps'",
> diff -Naur graphs-orig/cisco_mac_packets.inc.php
> graphs/cisco_mac_packets.inc.php
> --- graphs-orig/cisco_mac_packets.inc.php       Mon Mar  7 14:14:54 2005
> +++ graphs/cisco_mac_packets.inc.php    Tue May 24 09:56:41 2005
> @@ -13,7 +13,7 @@
>      
>      $opts_GRAPH = array(                   
>  
> -        "COMMENT:'".$data["description"].", IP Address:
> ".$data["address"]." on ".$data["interface"]."\\n'",
> +        "COMMENT:'".$data["description"].", IP Address\:
> ".$data["address"]." on ".$data["interface"]."\\n'",
>                     
>          "AREA:inputpackets#00CC00:'Input Packets '",
>          "GPRINT:inputpackets:MAX:'Max\:%8.2lf %sPps'",
> diff -Naur graphs-orig/cpu_util_aggregation.inc.php
> graphs/cpu_util_aggregation.inc.php
> --- graphs-orig/cpu_util_aggregation.inc.php    Mon Mar  7 14:14:54 2005
> +++ graphs/cpu_util_aggregation.inc.php Tue May 24 09:56:59 2005
> @@ -23,7 +23,7 @@
>  
>      $opts_GRAPH = array(
>         $str_cdef_cpu,
> -       "COMMENT:'Number of Processors:".$cant."\\n'",
> +       "COMMENT:'Number of Processors\:".$cant."\\n'",
>  
>          "AREA:cpu#00CC00:'Average CPU Utilization '",
>          "LINE1:cpu#0000FF:''",
> diff -Naur graphs-orig/traffic.inc.php graphs/traffic.inc.php
> --- graphs-orig/traffic.inc.php Mon Mar  7 14:14:54 2005
> +++ graphs/traffic.inc.php      Tue May 24 09:58:08 2005
> @@ -24,9 +24,9 @@
>      
>      $opts_GRAPH_init=array(
>          "HRULE:".$data["bandwidthin"]. "#FF0000:' '",
> -       "COMMENT:'Inbound Bandwidth: ".($data["bandwidthin"] /1000)."
> kbps'",
> +       "COMMENT:'Inbound Bandwidth\: ".($data["bandwidthin"] /1000)."
> kbps'",
>          "HRULE:".$data["bandwidthout"]."#AA0000:' '",
> -       "COMMENT:'Outbound Bandwidth:".($data["bandwidthout"]/1000)."
> kbps".(!empty($data["address"])?"  IP: ".$data["address"]:"")."\\n'",
> +       "COMMENT:'Outbound Bandwidth\:".($data["bandwidthout"]/1000)."
> kbps".(!empty($data["address"])?"  IP: ".$data["address"]:"")."\\n'",
>      );
>  
>      // External Data Gathering
> diff -Naur graphs-orig/traffic_aggregation.inc.php
> graphs/traffic_aggregation.inc.php
> --- graphs-orig/traffic_aggregation.inc.php     Mon Mar  7 14:14:54 2005
> +++ graphs/traffic_aggregation.inc.php  Tue May 24 09:58:35 2005
> @@ -41,9 +41,9 @@
>         
> //"CDEF:total_outputbits=outputbits,UN,0,outputbits,IF,300,*,PREV,UN,0,PREV,IF,+",
>  
>         "HRULE:$bandwidthin#FF0000:' '",
> -       "COMMENT:'Inbound Bandwidth: $bandwidthin_k kbps'",     
> +       "COMMENT:'Inbound Bandwidth\: $bandwidthin_k kbps'",     
>         "HRULE:$bandwidthout#AA0000:' '",
> -       "COMMENT:'Outbound Bandwidth: $bandwidthout_k kbps\\n'",     
> +       "COMMENT:'Outbound Bandwidth\: $bandwidthout_k kbps\\n'",     
>  
>         (!empty($flip_comment))?"COMMENT:'$flip_legend\\n'":"",
>         "AREA:inputbits#00CC00:'Inbound '",
> diff -Naur graphs-orig/ucd_cpu_linux_aggregation.inc.php
> graphs/ucd_cpu_linux_aggregation.inc.php
> --- graphs-orig/ucd_cpu_linux_aggregation.inc.php       Mon Mar  7 14:14:54 
> 2005
> +++ graphs/ucd_cpu_linux_aggregation.inc.php    Tue May 24 09:58:51 2005
> @@ -41,7 +41,7 @@
>         $str_cdef_system,
>         $str_cdef_idle,
>  
> -       "COMMENT:'Number of Processors:".$cant."\\n'",
> +       "COMMENT:'Number of Processors\:".$cant."\\n'",
>  
>         "AREA:cpu_user#FF0000:'Average User   CPU Time'",
>         "GPRINT:cpu_user:MAX:'Max\:%8.2lf %%'",
> diff -Naur graphs-orig/ucd_load_average_aggregation.inc.php
> graphs/ucd_load_average_aggregation.inc.php
> --- graphs-orig/ucd_load_average_aggregation.inc.php    Mon Mar  7 14:14:54 
> 2005
> +++ graphs/ucd_load_average_aggregation.inc.php Tue May 24 09:59:08 2005
> @@ -36,7 +36,7 @@
>         $str_cdef_5,
>         $str_cdef_15,
>  
> -       "COMMENT:'Number of Processors:".$cant."\\n'",
> +       "COMMENT:'Number of Processors\:".$cant."\\n'",
>  
>          "LINE1:load_average_1#FF0000:' 1 Minute  Load Average'",
>          "GPRINT:load_average_1:MAX:'Max\: %5.2lf'",
> ---snip---
> 
> Thanks again,
>      ~Aaron

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
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



-------------------------------------------------------
SF.Net email is sponsored by: GoToMeeting - the easiest way to collaborate
online with coworkers and clients while avoiding the high cost of travel and
communications. There is no equipment to buy and you can meet as often as
you want. Try it free.http://ads.osdn.com/?ad_id=7402&alloc_id=16135&op=click
_______________________________________________
jffnms-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jffnms-users

Reply via email to