Hi,
Could I request that this trivial change be added at some stage please. It introduces the ability to include a tag in hosts.cfg which has no purpose other than provide an arbitary reference. eg
configdbid=12345
In my case '12345' would be the ID of a record in an asset database and I can use this to construct a query that delivers useful support information. It could also be used the other way round and provide a way to maintain hosts.cfg in a mysql db or some such. Let me know what you think.
*** xymon-code/lib/loadhosts.h.FCS 2014-01-10 11:29:26.000000000 +0000 --- xymon-code/lib/loadhosts.h 2014-01-10 14:00:51.000000000 +0000
*** 55,60 **** --- 55,61 ---- XMH_FLAG_PULLDATA, XMH_FLAG_MULTIHOMED, XMH_LDAPLOGIN,
*** xymon-code/lib/loadhosts.c.FCS 2014-01-10 11:29:26.000000000 +0000 --- xymon-code/lib/loadhosts.c 2014-01-10 14:00:42.000000000 +0000XMH_CONFIGDBID, XMH_IP, XMH_HOSTNAME, XMH_DOCURL,
*** 170,175 **** --- 170,177 ---- xmh_item_name[XMH_FLAG_MULTIHOMED] = "XMH_MULTIHOMED"; xmh_item_key[XMH_LDAPLOGIN] = "ldaplogin="; xmh_item_name[XMH_LDAPLOGIN] = "XMH_LDAPLOGIN";
xmh_item_key[XMH_CONFIGDBID] = "configdbid=";
*** xymon-code/web/svcstatus-info.c.FCS 2014-01-10 11:30:24.000000000 +0000 --- xymon-code/web/svcstatus-info.c 2014-01-10 14:01:27.000000000 +0000xmh_item_name[XMH_CONFIGDBID] = "XMH_CONFIGDBID"; xmh_item_key[XMH_CLASS] = "CLASS:"; xmh_item_name[XMH_CLASS] = "XMH_CLASS"; xmh_item_key[XMH_OS] = "OS:";
*** 1206,1211 **** --- 1206,1212 ---- (strncmp(val, "type=", 5) == 0) || (strncmp(val, "post=", 5) == 0) || (strncmp(val, "nopost=", 7) == 0) ||
(strncmp(val, "configdbid=", 11) != 0) && (strncmp(val, "soap=", 5) == 0) || (strncmp(val, "nosoap=", 7) == 0) ) {
Thanks
Andy