[Xymon] Trying to set up a custom graph

Josh Luthman josh at imaginenetworksllc.com
Mon Jul 18 22:24:01 CEST 2022


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 <mgoebel at emich.edu> 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 <mgoebel at emich.edu> 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 <jeremy at laidman.org>
>> 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 <mgoebel at emich.edu> 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 <goebel at emunix.emich.edu>goebel at emich.edu : 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
>>>>
>>>>
>>>> _______________________________________________
>>>> Xymon mailing list
>>>> Xymon at xymon.com
>>>> http://lists.xymon.com/mailman/listinfo/xymon
>>>>
>>>
>>
>> --
>> Matthew Goebel : m <goebel at emunix.emich.edu>goebel at emich.edu : 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 <goebel at emunix.emich.edu>goebel at emich.edu : 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
>
>
> _______________________________________________
> Xymon mailing list
> Xymon at xymon.com
> http://lists.xymon.com/mailman/listinfo/xymon
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20220718/324ed717/attachment.htm>


More information about the Xymon mailing list