On Fri, Mar 28, 2008 at 02:46:16PM -0400, Ben Lentz wrote:
> > After looking around a little, it appears there's a rather generic file
> > at ./engine/graphs/sensor_value.inc.php which does temperatures,
> > voltages, and fan speeds. It seems absolutely perfect, but any tips on
> > how I'd go about using it?
So you're using that plugin, ok.

> 14:40:46  :  H 155 :  I 611 :  P  90 : no_poller(): 0 -> rrd(*): 
> dell_om_temp:280 - dell_om_fan:7125 (time P:0.1 | 13.63)
Two RRD files called dell_om_temp and dell_om_fan. Both with values.

Let's look into the graph plugin....
    $def = rrdtool_get_def($data, "value");`

OK, this is a problem. The graph plugin wants to see a rrd file labelled
value and you have called yours dell_om_temp

> But, when I pull up the Performance page for this Interface, it just says:
> The RRDTool files for Interface ID 612 (from Host ID 145), has not been 
> created by the Poller Process yet
> The RRDTool files for Interface ID 612 (from Host ID 145), has not been 
> created by the Poller Process yet
Every program has it quirks, some of them are downright annoying.
My vote for the most annoying quirk in JFFNMS is this error message. The
archive is filled with it.

So first thing, the message is wrong, think of it saying "I tried to
graph something and something went wrong" and you're much closer. It
could be the RRD files are not created but it can be a million other
things.

One thing it could be is it cannot find the RRDfile labelled value.
We know that for this interface type we don't have it.

Two solutions.
Copy the sensors plugin and rewrite that line so it looks for what you
called the field
or
Go into your interface types fields and rename the temperature field to
value. Also change your poller definition so its name is value too.

I would also make a new field called show_celcius (its not a RRD file)
as the plugin looks for that.

In addition for the switch statement to work the interface name has
to have the name "temp" in it. For the fan you will need fan in the
name.

Hrm, now you have a problem!  Both times it expects a RRD file called
value and you have two RRD files for one interface (they use a separate
interface for the HostMIB, a good idea as you get a red fan or red
temperature symbol rather than a red generic environment alarm)

So you could split them out to two different interface types or
re-write the plugin.

If I was doing this:
 * I'd split them out into two interface types
 * Re-write a temperature graph plugin as you need to divide by 10 to get
   the true value, use temperature.inc.php as a template except
 "CDEF:temperature=temp_c,".(($far==1)?"1.8,*,32,+":"1,*")
 becomes
 "CDEF:temperature=temp_c,".(($far==1)?"0.18,*,32,+":"10,/")
 * Re-write the fan plugin to do the same scaling.

 - Craig

> 
> I must be way off here and I apologize for being a dummy. Has anybody 
> else been successful with this?
> 
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
> _______________________________________________
> jffnms-users mailing list
> jffnms-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jffnms-users

-- 
Craig Small      GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
http://www.enc.com.au/                             csmall at : enc.com.au
http://www.debian.org/          Debian GNU/Linux, software should be Free 

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
jffnms-users mailing list
jffnms-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jffnms-users

Reply via email to