Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix mail notifications- update paths constructed from ConfigDir to match the v2.10 changes #336

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Apr 5, 2019

  1. Update paths constructed from ConfigDir to match the v2.10 changes

    I managed to really bobble this- see [the
    documentation](https://github.com/Icinga/icinga2/blob/master/doc/16-upgrading-icinga-2.md#path-constant-changes-)
    for the warning about the new ConfigDir variable. Anything that uses it
    needs to be changed to be relative to SysconfDir+"/icinga2/"-
    
    ```
    object NotificationCommand "mail-service-notification" {
    -  command = [ SysconfDir + "/icinga2/scripts/mail-service-notification.sh" ]
    +  command = [ ConfigDir + "/scripts/mail-service-notification.sh" ]
    ```
    
    being the example diff. This will finish the transition in this
    cookbook.
    
    Without this, if you use the examples, you will get errors in the logs
    that look like
    ```
    terminated with exit code 128, output: execvpe(/etc/icinga2/icinga2/scripts/mail-service-notification.sh) failed: No such file or directory
    ```
    
    and notifications will not work.
    hfinucane committed Apr 5, 2019
    Configuration menu
    Copy the full SHA
    f5e5396 View commit details
    Browse the repository at this point in the history