CRONTAb for csv reports

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Manjula
Posts: 1
Joined: Fri Aug 11, 2017 3:14 am

CRONTAb for csv reports

Post by Manjula »

HI
Can you plesae how to run cron job at particualr time for csv reports gebereation
ex: i want take daliy uas report for particular host daily like from 02-09-2017 00:00 hrs to 03-09-2017 23:59 hrs
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: CRONTAb for csv reports

Post by scottwilkerson »

In Nagios Core there is no pre-defined way to do this, but it is available in Nagios XI

You would need to run the report and calculate the URL that you want to run, and then in your crontab you could add the report like this to run at 6am

Code: Select all

0 6 * * *      curl http://USERNAME:PASSWORD@localhost/nagios/path/to_your_report > /tmp/your_report 2> /dev/null
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked