Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Status
colourGreen
titleLAST TESTED ON CHECKMK 2.1.0P1


Panel
borderColorblack
bgColor#f8f8f8
titleTable of Contents

Table of Contents

Quick and dirty way 

  1. Copy the notification plugin to the local directory

    Code Block
    languagebash
    themeRDark
    OMD[mysite]:~$ cp ~/lib/python3/cmk/cee/notification_plugins/servicenow.py ~/local/share/check_mk/notifications/


    .
  2. make the script executable

    Code Block
    languagebash
    themeRDark
    OMD[mysite]:~/local/share/check_mk/notifications$ chmod +x ~/local/share/check_mk/notifications/servicenow.py

    .

  3. Inside the script, you need to change

    The 3rd line to the name of your script. This name will be displayed in the Notification rules

    Code Block
    languagebash
    themeRDark
    3 # Notification script name
    4 # Bulk: no


    .
  4. At the end of the notification script, we need to add:

    Code Block
    languagebash
    themeRDark
    print("outside: about to check for __main__ == %s" % __name__)
    if __name__ == "__main__":
         print("outside: about to call main()")    
         sys.exit(main())


...