Xymon installation comes up with empty graphs
Hi,
a xymon 4.3.27 installation I set up a while back generally works, but comes up with all blank graphs.
The setup basically consists of additions to hosts.cfg.
The host .rrd files are non-empty according to 'rrdtool info ...', and manually producing .png graph files after <http://lists.xymon.com/archive/2010-September/029443.html> results in plausible, non-blank graphs.
Where do I go next?
Cheerio, hauke
-- The ASCII Ribbon Campaign Hauke Fath () No HTML/RTF in email Institut für Nachrichtentechnik /\ No Word docs in email TU Darmstadt Respect for open standards Ruf +49-6151-16-3281
On 11/3/2016 6:44 AM, Hauke Fath wrote:
Hi,
a xymon 4.3.27 installation I set up a while back generally works, but comes up with all blank graphs.
The setup basically consists of additions to hosts.cfg.
The host .rrd files are non-empty according to 'rrdtool info ...', and manually producing .png graph files after <http://lists.xymon.com/archive/2010-September/029443.html> results in plausible, non-blank graphs.
Where do I go next?
Cheerio, hauke
Hi,
You'll probably want to check your httpd error logs for the showgraph.sh/.cgi execution and see if there's anything unusual happening. The RRD graphs are generated on the fly, so this would point to a live error there.
Are you getting blank loads or actual broken images? If it's the latter, showgraph might be printing error text in the response. If you try to view the image directly, your browser may display that (and/or ask you to download it). This typically occurs if the RRD definition it's trying to use in graphs.cfg for this RRD has an error in it.
Another option would be to add "--debug" to CGI_SHOWGRAPH_OPTS in /etc/xymon/cgioptions.cfg. However that might result in a 500 error if debug text comes out before the headers do. In this case, executing the script directly using QUERY_STRING should give you the full output.
HTH,
-jc
On Thu, 3 Nov 2016 10:49:50 -0700, Japheth Cleaver wrote:
Hi,
thanks for the quick reply.
You'll probably want to check your httpd error logs for the showgraph.sh/.cgi execution and see if there's anything unusual happening. The RRD graphs are generated on the fly, so this would point to a live error there.
Nothing there but a few "sendto failed" lines
2016-11-03 17:18:11.401220 Sendto failed: No buffer space available
which are probably due to unreachable clients.
Are you getting blank loads or actual broken images?
Blank loads - they have appropriate y/t axis and legend, but never any data.
Another option would be to add "--debug" to CGI_SHOWGRAPH_OPTS in /etc/xymon/cgioptions.cfg.
This gives me
15533 2016-11-03 21:36:30.413517 Trying header/footer file '/usr/pkg/share/xymon/xymonhome/web/graphs_header' 15533 2016-11-03 21:36:30.413953 Opening file /usr/pkg/share/xymon/xymonhome/etc/xymonmenu.cfg
above the (empty) graph, and
15533 2016-11-03 21:36:30.415013 Trying header/footer file '/usr/pkg/share/xymon/xymonhome/web/graphs_footer'
below it. No 500 error, though.
-- This is probably unrelated, but xymond.log has a repeated
2016-11-03 21:40:28.037543 xymond servername MACHINE='i386' not listed in hosts.cfg, dropping xymond status
when there is no machine called 'i386'. There is one xymonclient on an OmniOS (solaris) machine, whose
% uname -a SunOS Venediger 5.11 omnios-r151018-258cc99 i86pc i386 i86pc %
has i386 - maybe the client picks the wrong field. But, as I said, probably not related to the blank graphs. Still searching for a clue...
Cheerio, hauke
-- The ASCII Ribbon Campaign Hauke Fath () No HTML/RTF in email Institut für Nachrichtentechnik /\ No Word docs in email TU Darmstadt Respect for open standards Ruf +49-6151-16-21344
On 11/03/16 14:44, Hauke Fath wrote:
a xymon 4.3.27 installation I set up a while back generally works, but comes up with all blank graphs.
Digging into it some more, I have
#!/bin/sh rrd="/var/xymon/rrd/Gurgler/tcp.ssh.rrd"
rrdtool graph "/tmp/rrd-ssh-output.png"
--width=800 -v "ssh response time"
-s 'now-48h' -e now
DEF:time1=${rrd}:sec:AVERAGE
LINE2:time1#FF0000:time1
creating a proper graph (for the fun of it: <https://www2.nt.tu-darmstadt.de/~hf/xymon/rrdtool-graph-output.png>).
On the other hand,
#!/bin/sh REQUEST_METHOD=GET SCRIPT_NAME=showgraph.sh QUERY_STRING="host=Gurgler&color=green&service=tcp%3aconn&graph_height=120&graph_width=576&disp=Gurgler&nostale&graph=daily&action=view"
export REQUEST_METHOD SCRIPT_NAME QUERY_STRING
showgraph.cgi
--env=/etc/pkg/xymon/xymonserver.cfg
| tail -n +4 > /tmp/showgraph-output.png
leaves me with an empty graph - see <https://www2.nt.tu-darmstadt.de/~hf/xymon/showgraph-output.png>.
Adding --debug doesn't bring up anything helpful; --save does not write anything, fwiw.
For sh!ts and giggles, and to rule out pkgsrc artefacts, I installed xymon from the distribution sources, and got identical results..This needed a few NetBSD specific patches, which I saw the pkg maintainer had sent to the list before, but they were never incorporated -- what is the accepted way to submit patches?
I do not at this point have a comprehensive mental image of xymon's inner workings, so hints and pointers would be very helpful.
Cheerio, hauke
-- The ASCII Ribbon Campaign Hauke Fath () No HTML/RTF in email Institut für Nachrichtentechnik /\ No Word docs in email TU Darmstadt Respect for open standards Ruf +49-6151-16-3281
On 11/8/2016 4:24 AM, Hauke Fath wrote:
On 11/03/16 14:44, Hauke Fath wrote:
a xymon 4.3.27 installation I set up a while back generally works, but comes up with all blank graphs.
Digging into it some more, I have
#!/bin/sh rrd="/var/xymon/rrd/Gurgler/tcp.ssh.rrd"
rrdtool graph "/tmp/rrd-ssh-output.png"
--width=800 -v "ssh response time"
-s 'now-48h' -e now
DEF:time1=${rrd}:sec:AVERAGE
LINE2:time1#FF0000:time1creating a proper graph (for the fun of it: <https://www2.nt.tu-darmstadt.de/~hf/xymon/rrdtool-graph-output.png>).
On the other hand,
#!/bin/sh REQUEST_METHOD=GET SCRIPT_NAME=showgraph.sh QUERY_STRING="host=Gurgler&color=green&service=tcp%3aconn&graph_height=120&graph_width=576&disp=Gurgler&nostale&graph=daily&action=view"
export REQUEST_METHOD SCRIPT_NAME QUERY_STRING
showgraph.cgi
--env=/etc/pkg/xymon/xymonserver.cfg
| tail -n +4 > /tmp/showgraph-output.pngleaves me with an empty graph - see <https://www2.nt.tu-darmstadt.de/~hf/xymon/showgraph-output.png>.
Adding --debug doesn't bring up anything helpful; --save does not write anything, fwiw.
For sh!ts and giggles, and to rule out pkgsrc artefacts, I installed xymon from the distribution sources, and got identical results..This needed a few NetBSD specific patches, which I saw the pkg maintainer had sent to the list before, but they were never incorporated -- what is the accepted way to submit patches?
I do not at this point have a comprehensive mental image of xymon's inner workings, so hints and pointers would be very helpful.
Cheerio, hauke
Ahh. Took me a bit to realize that you meant an RRD graph with no data in it rather than just a blank (or invalid) image. :)
The query_string looks correct and it appears to work fine on a test environment. One point, though, is that you're looking at two different data sources. The manual script is looking at SSH, while the shell wrapper is reading the conn (ping) test. Does "tcp%3assh" instead of "tcp%3aconn" work for you?
On a broader note are *any* graphs showing data properly on the trends pages?
-jc
On Tue, 8 Nov 2016 15:47:14 -0800, Japheth Cleaver wrote:
Ahh. Took me a bit to realize that you meant an RRD graph with no data in it rather than just a blank (or invalid) image. :)
Yeah, the old thing about an image saving a thousand words...
[...] One point, though, is that you're looking at two different data sources. The manual script is looking at SSH, while the shell wrapper is reading the conn (ping) test. Does "tcp%3assh" instead of "tcp%3aconn" work for you?
No, same result, because...
On a broader note are *any* graphs showing data properly on the trends pages?
... all the RRD graphs come without data, no exception.
Cheerio, hauke
-- The ASCII Ribbon Campaign Hauke Fath () No HTML/RTF in email Institut für Nachrichtentechnik /\ No Word docs in email TU Darmstadt Respect for open standards Ruf +49-6151-16-21344
On 11/8/2016 4:24 AM, Hauke Fath wrote:
For sh!ts and giggles, and to rule out pkgsrc artefacts, I installed xymon from the distribution sources, and got identical results..This needed a few NetBSD specific patches, which I saw the pkg maintainer had sent to the list before, but they were never incorporated -- what is the accepted way to submit patches?
Generally an email to the list (for usefulness) as well as to me is the easiest manner. Preferably with something like '[PATCH]' in the subject to call it out.
If I haven't replied, it's possible that I missed it or it got lost in a backlog, in which case a (gentle ;) ) reminder would be quite apropos...
-jc
On Tue, 8 Nov 2016 16:11:58 -0800, Japheth Cleaver wrote:
Generally an email to the list (for usefulness) as well as to me is the easiest manner. Preferably with something like '[PATCH]' in the subject to call it out.
Good. I'll create the NetBSD related patches and sub,it them as soon as I find the time.
CHeerio, hauke
-- The ASCII Ribbon Campaign Hauke Fath () No HTML/RTF in email Institut für Nachrichtentechnik /\ No Word docs in email TU Darmstadt Respect for open standards Ruf +49-6151-16-21344
participants (2)
-
cleaver@terabithia.org
-
hf@spg.tu-darmstadt.de