Skip to content

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:

  1. Run the automated script: bash automated-ar.md
  2. Select either TO (Transavia) or HV (KLM Airlines) when prompted.
  3. Configure the .csv file if needed.
  4. It will automatically open with the VIM editor, allowing you to save changes.
  5. The automatically generated report.csv file will be copied to:
  6. /home/nagios/AvailabilityReportsConvert/output
  7. 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:

  1. Navigate to the reports directory: bash cd /home/nagios/AvailabilityReports
  2. Run the desired report generation script:
  3. For Transavia: bash ./generateTOReport.sh
  4. For KLM Airlines: bash ./generateHVReport.sh The generated report.csv file will be copied to /home/nagios/AvailabilityReportsConvert/output and to the S3 bucket s3://transavia-availability-reports/customer-availability-reports/customer-CSV-files/.

Editing and Converting to PDF

  1. Please check and edit the generated report.csv file.
  2. After finishing editing, save the changes.
  3. Run the makePDF.sh script to convert it to PDF: bash cd /home/nagios/AvailabilityReportsConvert ./makePDF.sh The generated report.pdf file will be copied to the S3 bucket s3://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:

  1. Copy the script and packages from S3: bash cd /home/nagios aws s3 cp s3://transavia-availability-reports/availaibilty-reports-deploy/ . --recursive
  2. Add execute permissions to the deployment script: bash chmod +x travareport-deploy.md
  3. Run the deployment script: bash ./travareport-deploy.md