Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Feature request of a dial in weathermap

 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (Network Weather Map)
Author Message
mgb
Cacti User


Joined: 21 Jun 2004
Posts: 101
Location: North of the Netherlands

PostPosted: Wed Mar 19, 2008 8:46 am    Post subject: Feature request of a dial in weathermap Reply with quote

Hello Howie,

I have a request which is a major one and might be something for a new major release if you consider to implement it.
I now a few people who are using Cacti to graph data like temperature and cpu.
It would be great to have this data inside weathermap displayed as a dial.
For starters it might just be a small needle that moves over on icon of a dial.
Below i've created an example config about how this might look like.
I'm willing to help implement this if possible. I think it will add a unique feature to weathermap that makes it stand even further above the crowd.


DIAL my-cpu
ICON images/dial.png
TARGET /var/www/html/rra/my-cpu_1179.rrd
INFOURL /graph.php?rra_id=all&local_graph_id=1165
OVERLIBGRAPH /graph_image.php?local_graph_id=1165&rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300
POSITION 400 100
DIALSTARTSTOP 30 330
DIALMINMAX 1 100
DIALSTEP 10
DIALSIZE 20
NEEDLEOFFSET -5 5
NEEDLESIZE 4
NEEDLECOLOR 128 128 0
NEEDLETYPE arrow
NOTES This is my cpu
LABEL This is my cpu
RESCALE 0.1


DIAL Specific configuration

ICON: Background image for the dial. If not supplied weathermap generates it's own background based on the following config
DIALMINMAX defines the minimum and the maximum value on the scale
DIALSTEP stepsize between the points written on the dial scale from min to max

TARGET: rrd file used for input for the dial
INFOURL: rever to original docs
POSITION: rever to original docs
OVERLIBGRAPH: rever to original docs
DIALSTARTSTOP: Start and stop for min max in degrees. (0 - 360). 0 = bottom.
DIALMINMAX: minimum and maximum value that can be displayed on the DIAL. When there is no icon this defines the min and max of the dial scale.
NEEDLELOFFSET: Offset of the center axis from the middle of the dial.
DIALSIZE: SIZE of the DIAL
NEEDLESIZE: length of the needle
NEEDLECOLOR: Color of the needle
NEEDLETYPE: shape of the needle
NOTES: rever to original docs
LABEL: rever to original docs
RESCALE: If the min max of the rrd file is 0 - 1000 but the dialscale is 0 - 100 a rescale of 0.1 should be used.

Michael
Back to top
Howie
Cacti Guru User


Joined: 16 Sep 2004
Posts: 1989
Location: United Kingdom

PostPosted: Wed Mar 19, 2008 9:41 am    Post subject: Reply with quote

OK... I can see why you'd want it.

I think I'd probably want to implement it as a new artificial icon type, rather than a whole new type of object on a map. I try to avoid adding loads of extra config keywords if I can (I know it doesn't look like it sometimes ).

There is partial code in 0.95 for some artificial icon types that aren't fully implemented yet - inpie, outpie and nink. inpie and outpie will show a pie chart for the node's icon, with the wedge being the percentage of MAXVALUE. The 'nink' is a sort of yin-yang symbol showing both in and out colours, and values, in a small space.

What you are looking for is fairly similar to the pies, above. So how about something like:

Code:

NODE dial1
   ICON 30 30 dial


Max is already there for the actual data (MAXVALUE). Min isn't. The colours could probably be re-interpreting AICONOUTLINECOLOR and AICONFILLCOLOR or similar. Probably some sensible defaults, plus SET variables for the rest?
Back to top
noflies
Cacti User


Joined: 18 Dec 2005
Posts: 83

PostPosted: Wed Mar 19, 2008 8:13 pm    Post subject: Reply with quote

As I recall, Mr. Rader had proposed tweaking rrdtool for something similar.
See
http://www.mail-archive.com/rrd-developers@lists.oetiker.ch/msg01909.html
and
http://www.hep.wisc.edu/~rader/rrdpiechart/

Granted this is within rrdtool and not wmap, and in no way demeans anyone or any product/service...just similar ideas.
Back to top
mgb
Cacti User


Joined: 21 Jun 2004
Posts: 101
Location: North of the Netherlands

PostPosted: Thu Mar 20, 2008 2:13 am    Post subject: Reply with quote

@noflies,

Looks interesting this addition to weathermap. I still think it should be included in weathermap seperatly since weathermap creates it's own pages.

@Howie,

No problem to implement it differently. Function is what matters, not form.
I think this addition would make for a very cool weathermap.
Back to top
Howie
Cacti Guru User


Joined: 16 Sep 2004
Posts: 1989
Location: United Kingdom

PostPosted: Thu Mar 20, 2008 3:45 am    Post subject: Reply with quote

Weathermap also doesn't deal exclusively with rrd files, so it would need to be done differently. Interesting patch though - I hadn't seen that before.

I think 0.95b has finally untangled most of the problems with 0.95, so I'm back into 'new feature mode'. I'll experiment a little with this stuff now.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (Network Weather Map) All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group