[wishlist] Better support of the @@ tag in NCV trends

Charles Goyard cgoyard at cvf.fr
Thu Jun 29 18:51:40 CEST 2006


Hi all,

In do_ncv.c, I see this :

42:	while (l && *l && strncmp(l, "@@\n", 3)) {

If I understand correctly, that means the program will stop processing
the status file if it encounter a "@@\n" line. Well, I tried and it
seems to work that way (I have a status showing something like two counters
followed by a bunch of SNMP values that I don't want to graph). It do
not seem to be documented.

Now the real cool thing would be to have start tag, so NCV values could
be added last instead of first. (because humans like nice status reports
and computer don't care to take the last bits). When the program hits
the start tag, it forgets whatever it got and starts over.


For people interrested, the status show this way :

Thu Jun 29 18:41:21 CEST 2006 - 3623995988 incoming reqs - 845313333 outgoing reqs

inreqs: 3623995988
outreqs: 845313333

@@

wwwServiceDescription.1 = CacheFlow 700/4.x.xxxx
wwwServiceContact.1 = xxxxxxxxx at yyy.zz
wwwServiceProtocol.1 = mgmt.xx.x.xx
wwwServiceName.1 = myhostname
wwwServiceType.1 = wwwCachingProxy
(...)
wwwSummaryInRequests.1 = 3624092091
wwwSummaryOutRequests.1 = 845335728

only the two first lines get a graph line.
(the blank line before the @@ seems to be mandatory too)

-- 
Charles




More information about the Xymon mailing list