Xymon Mailing List Archive search

Contents of root's crontab in ps list?

list Ralph Mitchell
Wed, 4 Feb 2015 23:39:50 -0500
Message-Id: <user-30a5f517b187@xymon.invalid>

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 <user-71895fb2e44c@xymon.invalid>
wrote:
Ben

On 5 February 2015 at 13:03, Benjamin Smith <user-bd60c1f964ce@xymon.invalid>
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