Versions Compared

Key

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

...

Info

This way is more efficient and recommended for python developers

Code Block
# Create a folder inside the local python structure
OMD[at]:~$ cd ~/local/lib/python3/cmk
OMD[at]:~/local/lib/python3/cmk$ mkdir notifications_custom

# Copy the notification script from the python structure to the local python structure
OMD[at]:~$ 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
OMD[at]:~$ cp ~/share/check_mk/notifications/servicenow ~/local/share/check_mk/notifications/

# Now lets change some values
OMD[at]:~$ vi ~/local/share/check_mk/notifications/servicenow 

Change 

 3 # Servicenow (Enterprise only)

to 

 3 # Servicenow Custom (Enterprise only)

and the import directory to the local structure

13     from cmk.cee.notification_plugins import servicenow

to  

13  from cmk.cee.notifications_custom import servicenow



Note

Per default all notifications scripts are inside ~/lib/python3/cmk/notification_plugins/.

As servicenow is only with the enterprise edition available, you will find the script here: ~/lib/python3/cmk/cee/notification_plugins/


Filter by label (Content by label)
showLabelsfalse
max5
spacesKB
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel = "notifications" and type = "page" and space = "KB"
labelsnotifications

...