Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-32535

Curator invocation on remote EC2 host not referencing sudo properly

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 3.7.1
    • Testing Infrastructure
    • None
    • Fully Compatible
    • ALL
    • TIG 2018-1-29

    Description

      The invocation of curator on a remote EC@ host is not properly invoked using sudo:

                  cmds="$cmds; cmd=\"@reboot cd \$HOME && ${sudo} ./curator stat system >> ${monitor_system_file}\""
                  cmds="$cmds; (crontab -l ; echo \"\$cmd\") | crontab -"
                  cmds="$cmds; cmd=\"@reboot cd \$HOME && ${sudo} ./curator stat process-all >> ${monitor_proc_file}\""
                  cmds="$cmds; (crontab -l ; echo \"\$cmd\") | crontab -"
                  cmds="$cmds; crontab -l"
                  cmds="$cmds; { ${sudo} \$HOME/curator stat system --file ${monitor_system_file} > /dev/null 2>&1 & ${sudo} \$HOME/curator stat process-all --file ${monitor_proc_file} > /dev/null 2>&1 & } & disown"
      

      The reference to ${sudo} should be changed to $sudo

      Attachments

        Activity

          People

            eddie.louie Eddie Louie
            jonathan.abrahams Jonathan Abrahams
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: