AWS Nagios Server Operations
This document outlines the steps for managing and generating reports on the AWS Nagios server.
Generating Availability Reports
To generate customer availability reports:
- Run the automated script:
bash automated-ar.md - Select either TO (Transavia) or HV (KLM Airlines) when prompted.
- Configure the
.csvfile if needed. - It will automatically open with the VIM editor, allowing you to save changes.
- The automatically generated
report.csvfile will be copied to: /home/nagios/AvailabilityReportsConvert/output- And to an S3 bucket:
s3://transavia-availability-reports/customer-availability-reports/customer-CSV-files/
To Generate New Reports Manually
If you need to generate new report.csv files manually:
- Navigate to the reports directory:
bash cd /home/nagios/AvailabilityReports - Run the desired report generation script:
- For Transavia:
bash ./generateTOReport.sh - For KLM Airlines:
bash ./generateHVReport.shThe generatedreport.csvfile will be copied to/home/nagios/AvailabilityReportsConvert/outputand to the S3 buckets3://transavia-availability-reports/customer-availability-reports/customer-CSV-files/.
Editing and Converting to PDF
- Please check and edit the generated
report.csvfile. - After finishing editing, save the changes.
- Run the
makePDF.shscript to convert it to PDF:bash cd /home/nagios/AvailabilityReportsConvert ./makePDF.shThe generatedreport.pdffile will be copied to the S3 buckets3://transavia-availability-reports/customer-availability-reports/customer-PDF-files/, from where you can download it.
Rebuilding Missing Availability Reports
If an availability report is missing and needs to be rebuilt:
- Copy the script and packages from S3:
bash cd /home/nagios aws s3 cp s3://transavia-availability-reports/availaibilty-reports-deploy/ . --recursive - Add execute permissions to the deployment script:
bash chmod +x travareport-deploy.md - Run the deployment script:
bash ./travareport-deploy.md