[Xymon] Xymon Graph propagated with -nan
Scot Kreienkamp
Scot.Kreienkamp at la-z-boy.com
Fri Jun 17 16:36:00 CEST 2016
The script must report values in a specific format in either a status message or a data message, separated by a colon like so:
$LABEL:$VALUE
Otherwise the NCV module will not pick it up.
Here's some examples from my workstations, everything between the BEGIN/END but not including the BEGIN/END lines is sent as the status message, including the blank lines:
BEGIN
status corpvskreienl.na.lzb.hq.mounts green Fri Jun 17 10:29:34 EDT 2016 OK
<table border=1>
<tr><td>Color</td><td>Device</td><td>Mount Location</td><td>Filesystem type</td><td>Options</td></tr>
<tr><td>&green</td><td>rootfs</td><td>/</td><td>rootfs</td><td>rw</td></tr>
</table>
END
And a data message:
BEGIN
data corpvskreienl.na.lzb.hq.mounts
C:80
D:60
END
My tests all send status messages using HTML formatting, being very careful not to send a colon anywhere in the status report so as not to confuse the NCV module. You can use HTML formatting for colons, tables, etc in the status messages and they will be passed through to the browser and display properly. I will then send a second data only message with the NCV format for the NCV module to pick up. Good practice for me always has been to include a blank line before and after the message body in both status and data messages. It used to be required due to a bug if I remember correctly, not sure if it still is but I always do it anyway out of habit and don't have any issues.
Scot Kreienkamp | Senior Systems Engineer | La-Z-Boy Corporate
One La-Z-Boy Drive | Monroe, Michigan 48162 | Office: 734-384-6403 | | Mobile: 7349151444 | Email: Scot.Kreienkamp at la-z-boy.com
From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of Foster Patch
Sent: Friday, June 17, 2016 10:11 AM
To: xymon at xymon.com
Subject: Re: [Xymon] Xymon Graph propagated with -nan
Hello,
I have a custom monitor that I created which will monitor connections and requests. (http://pastebin.com/bdLZfFAW) The monitor works properly, however the graphing does not. This image displays what is wrong with the graph: http://imgur.com/ZFKkPYs. I have also attached my rrd dump of this monitor. (http://pastebin.com/CRadmAHu) Finally, attached is the graph definition for the test, located in graphs.cfg (http://pastebin.com/zX1HNi3p). I know the issue here is that the last_ds is picking up the values as "U", which is bad, but I don't know what to do about it.
Any help would be appreciated, thanks,
Foster Patch
Web Server Technician
AccuWeather
This message is intended only for the individual or entity to which it is addressed. It may contain privileged, confidential information which is exempt from disclosure under applicable laws. If you are not the intended recipient, you are strictly prohibited from disseminating or distributing this information (other than to the intended recipient) or copying this information. If you have received this communication in error, please notify us immediately by e-mail or by telephone at the above number. Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20160617/332e7e14/attachment.html>
More information about the Xymon
mailing list