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
CRONTAb for csv reports
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: CRONTAb for csv reports
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
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