Info |
---|
In this manual, we will describe how to make a local copy of a built-in notification script. |
...
Table of Contents |
---|
Quick and dirty way
Info | ||||||||
---|---|---|---|---|---|---|---|---|
|
...
The common way for
...
Python developers
...
This way is more efficient and recommended for
...
Python developers
...
...
Create
...
a
...
folder
...
inside
...
the
...
local
...
Python structure.
Code Block | ||||
---|---|---|---|---|
| ||||
OMD[mysite]:~$ cd ~/local/lib/python3/cmk OMD[at mysite]:~/local/lib/python3/cmk$ mkdir notifications_custom# |
Copy
...
the
...
notification
...
script
...
from
...
the
...
Python structure
...
to
...
the
...
local
...
Python structure.
Code Block | ||||
---|---|---|---|---|
| ||||
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 | ||||
---|---|---|---|---|
| ||||
OMD[ atmysite]:~$ cp ~/share/check_mk/notifications/servicenow ~/local/share/check_mk/notifications/# Now lets change some values |
Now let's change some values.
Code Block | ||||
---|---|---|---|---|
| ||||
OMD[ atmysite]:~$ vi ~/local/share/check_mk/notifications/servicenowChange 3 |
Change
Code Block | ||||
---|---|---|---|---|
| ||||
# 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 notification scripts are inside ~inside ~/lib/python3/cmk/notification_plugins/. As servicenow ServiceNow is only available with the enterprise edition, you will find the script here: ~~/lib/python3/cmk/cee/notification_plugins/ |
...