Report : Get event

omar sanchez seatuxred at yahoo.co.uk
Thu Mar 26 02:00:37 CET 2020



Hi

I`m trying to obtain a txt report from the last hour , to send it to  netcool platform. 
I am trying with the following script

#!/bin/sh
 START=`date '+%Y%m%h' --date="1 hour ago"` END=`date '+%Y%m%h'`
 ./xymoncmd perfdata.cgi $START $END
but the output does not generate any valid information.
output
+ date +%Y%m%d --date=1 day ago+ START=20200324+ date +%Y%m%d+ END=20200325+ echo 20200324 2020032520200324 20200325+ ./xymoncmd perfdata.cgi 20200324 202003252020-03-25 19:55:58.292590 Using default environment file /var/lib/xymon/server/etc/xymonserver.cfg2020-03-25 19:55:58.299716 Usage:perfdata.cgi HOSTNAME-PATTERN STARTTIME ENDTIME+ exit 0



Best RegardsOmar Sanchez
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20200326/e6b6d8de/attachment.htm>


More information about the Xymon mailing list