<div dir="ltr">Is there anything in the xymon rrd log?  Have you set up the NCV pieces in the configs?  For example, I have a test that looks at the thread count for an internal service...I have a file under /etc/xymon/xymonserver.cfg.d named after the test (probably not required but helps keep the associations clear)...I have the following in the file:<div><br></div><div><div>GRAPHS_threads="threads"</div><div><br></div><div>TEST2RRD+=",threads=ncv"</div><div><br></div><div>SPLITNCV_threads="*:NONE,total:GAUGE,consumed:GAUGE"</div></div><div><br><div>I prefer splitncv to make xymon split the rrd data into multiple individual files.  The output in the test that drives the graph detail is:</div><div><br></div><div><div># Tell Xymon about it                                                                                                                                                                                                    </div><div>$XYMON $XYMSRV "status $MACHINE.$COLUMN $COLOR $TIMESTAMP                                                                                                                                                                </div><div><br></div><div>${MSG}</div><div><!--</div><div>pctutil: ${THREAD_UTIL}</div><div>total: ${TOTAL_THREADS}</div><div>consumed: ${THREADS_CONSUMED}</div><div>--></div><div><br></div><div>Summary</div><div>---------</div><div>${COMPONENT} - $THREAD_UTIL% threads used</div><div><br></div><div>Details</div><div>---------</div><div>${STATS_nocolon}</div><div>"</div></div><div><br></div><div>the content with the 'var:  is what contains the data to be tracked in rrd.  It's not clear from the snippet you provided that your message contains this or if it's being sent across a different channel (I'm guessing not).  Basically, Xymon may not even know it has data to collect since it's not being put in a format it expects.  IIRC, it should parse either "var: value" and "var=value".</div><div><br></div><div>=G=</div></div><div><br></div><div>note: there is also a graph definition in /etcxymon/graphs.d</div><div>PPS: I'm using the terabithia rpms as well</div><div>PPPS: getting the user defined graphs working the way you want can be tricky...I almost always have to go rooting through the archives.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 18, 2017 at 1:32 PM, Scott Driemeier-Showers <span dir="ltr"><<a href="mailto:sshowers@negwer.com" target="_blank">sshowers@negwer.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="blue" vlink="purple"><div class="m_-200166881240458918WordSection1"><p class="MsoNormal">Good afternoon,<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Having just upgraded from Xymon 4.2.3 on CentOS 5.11, our environment is now Xymon 4.3.28-1.el7.terabithia on CentOS 7.4.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">We have a group of systems defined that monitors (via conn/ping) the internal interface of the primary router at each of our remote offices to tell us whether or not the connection is up.  Each office also has a secondary/backup network connection that is used for load balancing, VoIP, and failover.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">In order to see each site as a single row on the web page we wrote a client-side extension to ping the backup router’s internal interface.  The monitoring, display, and alerting all work like we’d hoped (and has for a long time).  Unlike the primary connection’s monitor, however, the backup connection is not creating a RRD file so can’t be graphed.  I am trying to fix that, and have been looking at the help page for setting up a custom graph but I can’t seem to connect the dots properly.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">The key logic from /etc/xymon-client/ext/<wbr>voiptest.sh are:<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">##<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">## Logic to build remote site list happens first<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">##<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">foreach my $voipsvr (@rmt_names) {<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">     $color = GREEN;<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">     $status = $bbtest . " ok";<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">     $DATA = "";<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">     ##<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">     ## Logic to determine secondary IP from primary IP happens here<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">     ##<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">     my ($voipip, $svrname, $junk) = split(/:/, $voipsvr, 3);<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">     my $pingres = `/usr/sbin/fping -Ae $voipip`;<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">     $DATA .= $pingres;<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">     if ($pingres =~ "unreachable") {<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">        $color = RED;<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">        $status = $bbtest . " NOT ok"<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">     }<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">     ## Send to Hobbit<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">     ############################<wbr>##############################<wbr>###################<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">     my $report_date = `/bin/date`;<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">     chomp($report_date);<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">     system("$ENV{XYMON} $ENV{XYMSRV} 'status $svrname.voip $color $report_date - $status\n\n$DATA'\n");<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">}<u></u><u></u></span></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Could anybody point me in the right direction to get the RRD graph for each secondary TCP/Ping test to work?<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Thanks,<u></u><u></u></p><p class="MsoNormal">Scott<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">P.S. -- The log/graph wasn’t working prior to the upgrade either.  We just upgraded first to make sure our environment was current…<u></u><u></u></p><p class="MsoNormal">P.P.S. -- We may have set this test up incorrectly, so please feel free to teach us if there is a better way to have done it…<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p></div></div><br>______________________________<wbr>_________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon" rel="noreferrer" target="_blank">http://lists.xymon.com/<wbr>mailman/listinfo/xymon</a><br>
<br></blockquote></div><br></div>