[Xymon] Contents of root's crontab in ps list?

Ralph Mitchell ralphmitchell at gmail.com
Thu Feb 5 05:39:50 CET 2015


The line leads with a standard xymon status header:

../bin/xymon 173.166.236.101 status nye,schoolpathways,com.crontab green
Thu Feb  5 01:46:39 UTC 2015

so you've got a script reporting the crontab contents to the crontab column
in Xymon.  You just "got lucky" in that Xymon's standard client reporting
script happened to grab the "ps -ef" list at the same time the crontab
reporter was running.  I'd bet your crontab reporting script has something
similar to:

   xymon $XYMSRV "status $MACHINE.crontab green `date`

   `cat /tmp/cron_list.log`"

to report the crontab content dumped out to /tmp/cron_list.log by
show_crontab.sh

Ralph Mitchell



On Wed, Feb 4, 2015 at 9:54 PM, Jeremy Laidman <jlaidman at rebel-it.com.au>
wrote:

> Ben
>
> On 5 February 2015 at 13:03, Benjamin Smith <lists at benjamindsmith.com>
> wrote:
>
>
>> # cat crontab files to /tmp/cron_list.log for xymon crontab.sh
>> 0 * * * * /root/bin/std/show_crontab.sh??#XYMON?#?
>>
>
> What does this script (show_crontab.sh) do?
>
> Cheers
> Jeremy
>
> _______________________________________________
> Xymon mailing list
> Xymon at xymon.com
> http://lists.xymon.com/mailman/listinfo/xymon
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20150204/91fca891/attachment.html>


More information about the Xymon mailing list