...
Status | ||||
---|---|---|---|---|
|
Panel | ||||||
---|---|---|---|---|---|---|
| ||||||
|
...
Create a folder inside the local Python structure.
Code Block language bash theme RDark OMD[mysite]:~$ cd ~/local/lib/python3/cmk OMD[mysite]:~/local/lib/python3/cmk$ mkdir notifications_custom
.
Copy the notification script from the Python structure to the local Python structure.
Code Block language bash theme RDark OMD[mysite]:~$ cp ~/lib/python3/cmk/cee/notification_plugins/servicenow.py ~/local/lib/python3/cmk/notifications_custom/
.
Copy the notification script from the notification path to the local notification path.
Code Block language bash theme RDark OMD[mysite]:~$ cp ~/share/check_mk/notifications/servicenow ~/local/share/check_mk/notifications/
.
Now let's change some values.
Code Block language bash theme RDark OMD[mysite]:~$ vi ~/local/share/check_mk/notifications/servicenow
.
ChangeĀ
Code Block language bash theme RDark # Servicenow (Enterprise only) to # Servicenow Custom (Enterprise only) and the import directory to the local structure from cmk.cee.notification_plugins import servicenow to from cmk.cee.notifications_custom import servicenow
...