Xymon Mailing List Archive search

Trying to set up a custom graph

list Josh Luthman
Mon, 18 Jul 2022 16:24:01 -0400
Message-Id: <user-f4cdd9ffd350@xymon.invalid>

I find the custom graphs to be a bit troublesome myself.  I had to write a
guide and as long as you follow it, you'll end up with a graph:
http://ram.iam8up.com/?p=72

I don't use the trends column for my purposes.

On Mon, Jul 18, 2022 at 1:33 PM Matthew Goebel <user-15cc4fabfae6@xymon.invalid> wrote:
Nevermind, it seems I was trying to use trends last week and my attempts
to send data were kinda goofy and not working well.

Rewriting my task script seems to have fixed the issue.  I have now both
cfbytes and cfconns columns on my status page.

Thanks,
Matt


On Mon, Jul 18, 2022 at 11:56 AM Matthew Goebel <user-15cc4fabfae6@xymon.invalid> wrote:
Hey,

  Sorry, I was a bit frustrated and probably not being very clear.

  Yes, I am trying to follow the instructions located at :
https://xymon.sourceforge.io/xymon/help/howtograph.html

  I've got the data being sent to the xymon server and it is generating
rrd file entries.

  What I'm not seeing is the column named cfbytes on the "Main View"
xymon web page.  Not sure how to figure out why this is not showing up.

  I have confirmed that your rrdtool graph command is working for the rrd
file in question.

Thanks,
Matt


On Sun, Jul 17, 2022 at 7:37 PM Jeremy Laidman <user-0608abae5e7c@xymon.invalid>
wrote:
Hi Matthew

I'm a bit confused: you say you don't get anything on the status page,
then you say you don't see the column. Perhaps I'm misunderstanding your
terminology, but I would have thought you'd need a "cfbytes" column to be
able to click on the coloured dot that takes you to the "cfbytes" status
page? The fact that you have an NCV_cfbytes definition suggests that you
*are* creating a status message, and thus I would expect you to see a
status page for cfbytes, with the contents of the status message. But
you're saying there's nothing on the status page for the "cfbytes" column,
and also that there's no "cfbytes" column.

Are you following the instructions in the custom graphs howto?

https://xymon.sourceforge.io/xymon/help/howtograph.html

If you are indeed getting a column and a status page, just with no graph
on it, then either the TEST2RRD value is not doing its job making
svcstatus.cgi not try to display the graph, or the graph image is broken. I
have to admit, I don't recall seeing the use of "+=" in xymonserver.cfg
before, and I can't find it in any of the man pages, but the code
definitely seems to support it, so I think that's fine.

What you might want to do is to see if the graph works at all. Go to
another page with a graph for the same host, such as CPU, and click on the
graph, then modify the URL and change the "service=la" (or whatever) into
"service=cfbytes" and see if the graphs show. If you see graphs, then
there's something weird with svcstatus.cgi.

On the other hand, if you have a bunch of broken graphs, then rrdgraph
is complaining about something. Typically you don't see rrdgraph problems
in any logs, but you can view error logs by running rrdgraph from a shell,
something like this:

  $ cd /var/lib/xymon/rrd/<hostname>/
  $ rrdtool graph /dev/null --title "Cloudflare traffic"
--vertical-label "Bytes" "DEF:cfbytes=cfbytes.rrd:cfbytes:AVERAGE"
"AREA:cfbytes#00CCCC:time" "COMMENT:\n" "GPRINT:cfbytes:LAST: \: %5.1lf
(cur)" "GPRINT:cfbytes:MAX: \: %5.1lf (max)" "GPRINT:cfbytes:MAX: \: %5.1lf
(max)" "GPRINT:cfbytes:AVERAGE: \: %5.1lf (avg)\n"

If rrdtool parses your graph definition on the command-line, it will
return an image size, such as "497x193". If it finds problems in what it
sees, it'll return an error message, hopefully indicating what it didn't
like.

Cheers
Jeremy


On Sun, 17 Jul 2022 at 00:35, Matthew Goebel <user-15cc4fabfae6@xymon.invalid> wrote:
Hello,

  Running Xymon 4.3.29 on Redhat ES 8.

  I've got custom data creating rrd files, so that part is working.
Now when I try to set up the graph I don't get anything on the status page.

  rrd file cfbytes.rrd : variable cfbytes

in xymonserver.cfg


TEST2RRD+=",cfconns=ncv,cfbytes=ncv,cfcached=ncv,cfgoodreqs=ncv,cfthreats=ncv"

GRAPHS+=",cfconns,cfbytes"

NCV_cfbytes="cfbytes:GAUGE"


and in graphs.cfg


[cfbytes]

      TITLE Cloudflare traffic

      YAXIS Bytes

      DEF:cfbytes=cfbytes.rrd:cfbytes:AVERAGE

      AREA:cfbytes#00CCCC:time

      COMMENT:\n

      GPRINT:cfbytes:LAST: \: %5.1lf (cur)

      GPRINT:cfbytes:MAX: \: %5.1lf (max)

      GPRINT:cfbytes:MIN: \: %5.1lf (min)

      GPRINT:cfbytes:AVERAGE: \: %5.1lf (avg)\n


I restarted xymon server to pick up the changes, but am not seeing the
new column created. Hoping it is something simple I missed.

Thanks,
Matt


--
Matthew Goebel : m <user-74d13dabeb26@xymon.invalid>user-9607b53e8435@xymon.invalid : Unix
Jockey @ EMU : Hail Eris
Neo-Student, Net Lurker, Donut consumer, and procrastinating medher...
 "Always with the negative waves, Moriarty" - Oddball
 "Comfort the troubled, and trouble the comfortable." - Dietrich
Bonhoeffer

--
Matthew Goebel : m <user-74d13dabeb26@xymon.invalid>user-9607b53e8435@xymon.invalid : Unix
Jockey @ EMU : Hail Eris
Neo-Student, Net Lurker, Donut consumer, and procrastinating medher...
 "Always with the negative waves, Moriarty" - Oddball
 "Comfort the troubled, and trouble the comfortable." - Dietrich
Bonhoeffer

--
Matthew Goebel : m <user-74d13dabeb26@xymon.invalid>user-9607b53e8435@xymon.invalid : Unix
Jockey @ EMU : Hail Eris
Neo-Student, Net Lurker, Donut consumer, and procrastinating medher...
 "Always with the negative waves, Moriarty" - Oddball
 "Comfort the troubled, and trouble the comfortable." - Dietrich Bonhoeffer