Nagios Email Reporter - How do you schedule this to run?
Posted: Tue Mar 06, 2012 5:45 pm
Hello,
I would like to automate some reports so that we can supply system metrics to those who don't have access to the Nagios portal (or to those who we don't want to grant access to). After searching some, it appears that you have to use the Nagios Email Reporter plugin to automate reports. (Please let me know if there are other ways.)
So, I dowloaded the plugin, modified the script with my email server properties, Nagios URL, and Nagios read only user. Also, had to intall a Perl module Date::Manip.
I have verified that the script will run by issuing this command:
perl -c nagios-reporter.v131.pl
And received positive output:
Syntax OK
Documentation for this plugin notes these reports and run times:
The reports are defined as:
Overnight; from 17h the previous WORKING day to 9am of the current day
Daily; from 7am of the previous WORKING day to 7am of the current day
Weekly; from 9am 7 days before to 9am of the current day.
Monthly; from 00:00h of the 1st of the month to 00:00h of the 1st day of the current month
My question is - Do I now need to schedule the script to run, and if so, how do I do this?
Thank you,
Jason
I would like to automate some reports so that we can supply system metrics to those who don't have access to the Nagios portal (or to those who we don't want to grant access to). After searching some, it appears that you have to use the Nagios Email Reporter plugin to automate reports. (Please let me know if there are other ways.)
So, I dowloaded the plugin, modified the script with my email server properties, Nagios URL, and Nagios read only user. Also, had to intall a Perl module Date::Manip.
I have verified that the script will run by issuing this command:
perl -c nagios-reporter.v131.pl
And received positive output:
Syntax OK
Documentation for this plugin notes these reports and run times:
The reports are defined as:
Overnight; from 17h the previous WORKING day to 9am of the current day
Daily; from 7am of the previous WORKING day to 7am of the current day
Weekly; from 9am 7 days before to 9am of the current day.
Monthly; from 00:00h of the 1st of the month to 00:00h of the 1st day of the current month
My question is - Do I now need to schedule the script to run, and if so, how do I do this?
Thank you,
Jason