Xymon Mailing List Archive search

FILE, file, hobbit-clients.cfg, client-local.cfg?

2 messages in this thread

list David Gore · Fri, 12 May 2006 18:22:34 +0000 ·
Henrik,

I think this is what you told me to try to get what I want, basically tell the client what command to run to return one or more file names?  My 'ls' should return exactly one filename.  Is there a way to debug this to see where it is breaking?

Server config:

hobbit-clients.cfg:        FILE "%mci-.*SNMP_COMMUNITY.VOIP_DEVICES.nxg17:VOIP_SNMP.*" yellow mtime>300
client-local.cfg:            file:`ls -rt /export/home/netx/Archive/nxg17/nxg17:VOIP_SNMP|tail -1`

Perhaps I cannot use pipes in my command and need something simpler?

-- 
David Gore
list David Gore · Sat, 13 May 2006 15:29:27 +0000 ·
quoted from David Gore
David Gore wrote:
Henrik,

I think this is what you told me to try to get what I want, basically tell the client what command to run to return one or more file names?  My 'ls' should return exactly one filename.  Is there a way to debug this to see where it is breaking?

Server config:

hobbit-clients.cfg:        FILE "%mci-.*SNMP_COMMUNITY.VOIP_DEVICES.nxg17:VOIP_SNMP.*" yellow mtime>300
client-local.cfg:            file:`ls -rt /export/home/netx/Archive/nxg17/nxg17:VOIP_SNMP|tail -1`

Perhaps I cannot use pipes in my command and need something simpler?
The client is truncating my command, from hobbitclient.log on the client:

/export/home/netx/Archive/nxg17/nxg17: No such file or directory

I suppose the client does not like colons.  I tried a backslash for the ':', no luck.