Details

    • Type: Task
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      Situation: In the event that the Grafana Host EC2 is turned off and needs to be turned back on, several manual steps need to be taken to get the Grafana dashboard running again:

      cd /home/ubuntu/influxdb-1.8.2-1/usr/bin
      nohup ./influxd -config ../../etc/influxdb/influxdb.conf &
      cd /home/ubuntu/telegraf-1.15.3/usr/bin
      nohup ./telegraf -config ../../etc/telegraf/telegraf.conf &
      cd /home/ubuntu/grafana-7.2.0/bin
      nohup ./grafana-server &

      Task: Automate these tasks so that the Grafana dashboard needs no manual intervention after a shutdown of the EC2.

        Attachments

          Issue Links

            Activity

            Hide
            ann.loraine Ann Loraine added a comment -

            Suggestion: Try something like chkconfig.

            Show
            ann.loraine Ann Loraine added a comment - Suggestion: Try something like chkconfig.
            Hide
            cdias1 Chester Dias (Inactive) added a comment -

            using crontab seems to work

            Show
            cdias1 Chester Dias (Inactive) added a comment - using crontab seems to work
            Hide
            cdias1 Chester Dias (Inactive) added a comment -

            influx and telegraf agents are starting as expected.There is some issue in starting grafana. working on that

            Show
            cdias1 Chester Dias (Inactive) added a comment - influx and telegraf agents are starting as expected.There is some issue in starting grafana. working on that
            Hide
            cdias1 Chester Dias (Inactive) added a comment - - edited

            crontab code. to be accessed and updated using command `crontab -e`. Also attached is the script start_all_services.sh

            @reboot /etc/init.d/mysql status > mysql_state.txt
            @reboot sudo service mysql start
            @reboot /home/ubuntu/start_all_services.sh
            
            Show
            cdias1 Chester Dias (Inactive) added a comment - - edited crontab code. to be accessed and updated using command `crontab -e`. Also attached is the script start_all_services.sh @reboot /etc/init.d/mysql status > mysql_state.txt @reboot sudo service mysql start @reboot /home/ubuntu/start_all_services.sh
            Hide
            cdias1 Chester Dias (Inactive) added a comment -

            [~aloraine] Nowlan Freese This is ready for review. All the required agents start on startup after Host is shutdown.

            Show
            cdias1 Chester Dias (Inactive) added a comment - [~aloraine] Nowlan Freese This is ready for review. All the required agents start on startup after Host is shutdown.
            Hide
            nfreese Nowlan Freese added a comment -

            Tested by shutting down the Grafana Host instance and then turning it back on.

            Services appear to be running as new data is visible in Grafana.

            Closing issue.

            Show
            nfreese Nowlan Freese added a comment - Tested by shutting down the Grafana Host instance and then turning it back on. Services appear to be running as new data is visible in Grafana. Closing issue.

              People

              • Assignee:
                cdias1 Chester Dias (Inactive)
                Reporter:
                nfreese Nowlan Freese
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: