...
Panel | ||||||
---|---|---|---|---|---|---|
| ||||||
|
Getting Started
Background information regarding this subject is available on our:
Quick and dirty way
Copy the notification plugin to the local directory
Code Block language bash theme RDark OMD[mysite]:~$ cp ~/lib/python3/cmk/cee/notification_plugins/servicenow.py ~/local/share/check_mk/notifications/
.make the script executable
Code Block language bash theme RDark OMD[mysite]:~/local/share/check_mk/notifications$ chmod +x ~/local/share/check_mk/notifications/servicenow.py
.
Inside the script, you need to change
The 3rd line to the name of your script. This name will be displayed in the Notification rulesCode Block language bash theme RDark 3 # Notification script name 4 # Bulk: no
.At the end of the notification script, we need to add:
Code Block language bash theme RDark print("outside: about to check for __main__ == %s" % __name__) if __name__ == "__main__": print("outside: about to call main()") sys.exit(main())
The common way for Python developers
This way is more efficient and recommended for Python developers
...
Note |
---|
Per default, all notification scripts are inside ~/lib/python3/cmk/notification_plugins/. As ServiceNow is only available with the enterprise edition, you will find the script here: ~/lib/python3/cmk/cee/notification_plugins/ |
Related articles
Filter by label (Content by label) | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...