changes.mady.by.user Former user
Saved on Dec 22, 2021
changes.mady.by.user Anastasios Thomaidis
Saved on Dec 28, 2021
...
Copy the notification plugin to the local directory
OMD[at]:~$ cp ~/lib/python3/cmk/cee/notification_plugins/servicenow.py ~/local/share/check_mk/notifications/
make the script executable
OMD[at]:~/local/share/check_mk/notifications$ chmod +x ~/local/share/check_mk/notifications/servicenow.py
The 3rd line to a name of your script. This name will be displayed in the Notification rules
3 # Notification script name 4 # Bulk: no
at the end of the notification script, we need to add:
print("outside: about to check for __main__ == %s" % __name__) if __name__ == "__main__": print("outside: about to call main()") sys.exit(main())