9 Mar
2014
9 Mar
'14
10:38 p.m.
Hi all
Server info: Host - RHEL6.5 Version - 4.3.17 Packaged by J Cleaver (Terabithia)
I'm having a problem with a definition in /etc/xymon/client-local.cfg.
[host=dmz_ap01]
file:ls -ltr /home/enmac/customer-data/CUST9100REP*CSV | tail -n 1
The problem is that Xymon reports bad (red) with the page showing
-rw-r--r-- 1 username groupname14314345 Mar 10 2014 /home/username/customer-data/CUST9100REP20140310002349.CSV File is missing
Now, the file is not missing, and Xymon is correctly showing its mode, size, ownership details, etc. Any ideas what I've done wrong here?
Thanks
CC
-- RHCE#805007969328369
14 Mar
14 Mar
10:38 p.m.
On 10 March 2014 09:38, Colin Coe <colin.coe at gmail.com> wrote:
file:
ls -ltr /home/enmac/customer-data/CUST9100REP*CSV | tail -n 1
Xymon requires that the filename is produced by the backticks. You're having it produce more than the filename because you have the "-l" switch for the "ls" command. Try:
file:ls -tr /home/enmac/customer-data/CUST9100REP*CSV | tail -n 1
J
4485
Age (days ago)
4490
Last active (days ago)
1 comments
2 participants
participants (2)
-
colin.coe@gmail.com
-
jlaidman@rebel-it.com.au