Xymon Mailing List Archive search

Graphing in Xymon

list Paul Root
Thu, 5 Sep 2019 20:22:40 +0000
Message-Id: <user-553a2aec4089@xymon.invalid>

Oh, the client machine is RedHat 6 and xymon-client 4.3.28

-----Original Message-----
From: Xymon <xymon-bounces at xymon.com> On Behalf Of Root, Paul T
Sent: Thursday, September 05, 2019 3:17 PM
To: 'Japheth Cleaver' <user-87556346d4af@xymon.invalid>; 'Stef Coene' <user-dbffe946c0f4@xymon.invalid>; xymon at xymon.com
Subject: Re: [Xymon] Graphing in Xymon

Ah,
        I wasn't thinking about apache logs, I was looking in xymon logs. Yes, errors:


[Thu Sep 05 15:12:22 2019] [error] [client 10.139.63.193] 2019-09-05 15:12:22.832251 Sendto failed: Connection refused, referer: https://nsmdenvp117.corp.intranet/xymon-cgi/svcstatus.sh?HOST=nsmdenvp185&SERVICE=ConfigPulls
[Thu Sep 05 15:12:22 2019] [error] [client 10.139.63.193] 2019-09-05 15:12:22.832306 Sendto failed: Connection refused, referer: https://nsmdenvp117.corp.intranet/xymon-cgi/svcstatus.sh?HOST=nsmdenvp185&SERVICE=ConfigPulls
[Thu Sep 05 15:12:23 2019] [error] [client 10.139.63.193] Premature end of script headers: showgraph.sh, referer: https://nsmdenvp117.corp.intranet/xymon-cgi/svcstatus.sh?HOST=nsmdenvp185&SERVICE=ConfigPulls

        And yes, the rrd file exists in the right directory. It only has 1 data point at this time, but again. Running rrdtool graph on that file produces a graph


        Oh, I never mentioned before.   This is CentOS 6 with my own build for 4.3.21.  I'm starting to move to the Terabithia repo, but haven't got there yet on the server.

Paul.


-----Original Message-----
From: Japheth Cleaver <user-87556346d4af@xymon.invalid>
Sent: Thursday, September 05, 2019 3:00 PM
To: Root, Paul T <user-76fdb6883669@xymon.invalid>; 'Stef Coene' <user-dbffe946c0f4@xymon.invalid>; xymon at xymon.com
Subject: Re: [Xymon] Graphing in Xymon

A 500 ISE isn't a good sign. Is there anything in the web error logs?

And just to confirm, the file does actually existing in the RRD
directory as expected?

Regards,
-jc

On 9/5/2019 12:56 PM, Root, Paul T wrote:
Not much help here:

$ wget "http://nsmdenvp117.corp.intranet/xymon-cgi/showgraph.sh?host=nsmdenvp185&service=ncv:ConfigPulls&graph_width=576&graph_height=120&disp=nsmdenvp185&nostale&color=green&graph_start=1567539940&graph_end=1567712740&graph=hourly&action=view";
--2019-09-05 14:46:58--  http://nsmdenvp117.corp.intranet/xymon-cgi/showgraph.sh?host=nsmdenvp185&service=ncv:ConfigPulls&graph_width=576&graph_height=120&disp=nsmdenvp185&nostale&color=green&graph_start=1567539940&graph_end=1567712740&graph=hourly&action=view
Resolving nsmdenvp117.corp.intranet... 151.119.9.117
Connecting to nsmdenvp117.corp.intranet|151.119.9.117|:80... connected.
HTTP request sent, awaiting response... 500 Internal Server Error
2019-09-05 14:46:59 ERROR 500: Internal Server Error.


Running the rrdtool graph by hand, does work now, and I transferred the lines to graphs.cfg.  But that hasn't translated into a graph.

rrdtool graph ConfigPulls.jpg \
         --title "NCM Config Pulls" \
         "DEF:NetAtoD=ConfigPulls.rrd:NetAtoD:AVERAGE" \
         "DEF:NetEtoN=ConfigPulls.rrd:NetEtoN:AVERAGE" \
         "DEF:NetOtoZ1to9=ConfigPulls.rrd:NetOtoZ1to9:AVERAGE" \
         "DEF:Other=ConfigPulls.rrd:Other:AVERAGE" \
         "DEF:InfraGen=ConfigPulls.rrd:InfraGen:AVERAGE" \
         "DEF:InfraSec=ConfigPulls.rrd:InfraSec:AVERAGE" \
         "LINE2:NetAtoD#00FF00:Net A to D" \
         "LINE2:NetEtoN#00CCCC:Net E to N" \
         "LINE2:NetOtoZ1to9#FFCC00:Net O to Z & 1 to 9" \
         "LINE2:Other#FF0000:Other" \
         "LINE2:InfraGen#FFFF00:Infrastructure General" \
         "LINE2:InfraSec#FFFFCC:Infrastructure Secure" \
         "COMMENT:\n"


-----Original Message-----
From: Xymon <xymon-bounces at xymon.com> On Behalf Of Stef Coene
Sent: Thursday, September 05, 2019 2:18 PM
To: xymon at xymon.com
Subject: Re: [Xymon] Graphing in Xymon

On 4/09/19 19:59, Root, Paul T wrote:
The graph doesn't show up, just a broken link in both the test and
trends pages.

Any help?
Then there is a problem generating the RRD, the error is returned as
text. But you browser expects a graph, not some text so it displays a
broken image symbol.

When yoy right click on one of the broken image, you can say 'open image
in new tab'.
This will give you the direct URL of the graph.
If you do a wget of this URL (don't forget quotes!) on your xymon
server, you will download the real error.
Just do a vi of the downloaded file to see this error.


Stef


This communication is the property of CenturyLink and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments.

This communication is the property of CenturyLink and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments.


This communication is the property of CenturyLink and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments.