From: W.J.M. N. <Wim...@nl...> - 2015-04-08 14:28:28
|
>>> I'm trying to make a template for a PDU to graph power consumption, i have no problems to extract metrics from snmp but graphs doesn't show up and i'm a bit disappointed. >>> rrd files aren't generated ... >>> >>> bin/xymon localhost 'hobbitdlog pdu-b07-02.power' >>> pdu-b07-02|power|green||1428417135|1428484091|1428485891|0|0|127.0.0.1||||N| >>> green Wed Apr 8 11:08:08 2015 >>> >>> PDU status: >>> >>> Load A : 2.70 >>> Load B : 3.20 >>> Power : 5.90 >>> >>> Devmon version 0.3.1-beta1 running on xymon >>> >>> TEST2RRD is set with "power=devmon" >>> >> >> If the devmon-format is selected, Xymon expects a header like the following: >> <!--DEVMON RRD: PduStatus 0 0 >> DS:LoadA:GAUGE:600:0:U DS:LoadB:GAUGE:600:0:UDS:Power:GAUGE:600:0:U >> >> You probably mean "power=ncv" in variable TEST2RRD. >> >> > If i follow this : http://sourceforge.net/p/devmon/code/HEAD/tree/trunk/docs/GRAPHING > > It talks about devmon-format, why should i use ncv instead is there a difference ? > As stated in the article referenced above, the devmon-format is used to create graphs of repeater-type OIDs, such as the throughput on all interfaces of a switch. The data to extract from the xymon status message is encapsulated in a specially formatted HTML comment section. This section is generated by Devmon if the "TABLE:rrd" directive is used in the message file. The NCV format is meant to graph a few (non-repeater) values. It expects a number of lines in the xymon status message, using the format '<Variable> : <Value>' or '<Variable> = <Value>'. Those variables are extracted from the message and send to an RRD, assuming that the '<Test>=ncv' is specified in TEST2RRD and that a variable named NCV_<Test> is defined in config file xymonserver.cfg. As a precaution all the ":" and "=" signs in the status message, not belonging to the NCV lines, can be replaced by their HTML equivalent. In your case, I see two options: A- you generate the Demon header explicitly in the message file of the template B- you instruct Xymon to use the NCV format Case A: Include in the message file the following 5 lines: <!-- linecount=1 --> <!--DEVMON RRD: power 0 0 DS:LoadA:GAUGE:600:0:U DS:LoadB:GAUGE:600:0:U DS:Power:GAUGE:600:0:U X {LoadA}:{LoadB}:{Power} --> The {...} refer to the variables as defined in the transforms file. This should generate an RRD named "power.X.rrd". Case B: Include in file xymonserver.cfg: TEST2RRD=....,power=ncv NCV_power="LoadA:GAUGE,LoadB:GAUGE,Power:GAUGE,*:NONE" This should result in an RRD named "power.rrd". HTH, Wim Nelis. |