Skip to content

Commit 530ad9d

Browse files
committed
KNW-1505 SUP-20785 fixed logger priority in installation script - THX Michael
1 parent f6329e6 commit 530ad9d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/onprem/en/bakery_api.asciidoc

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -289,14 +289,16 @@ Here we show only an implementation of the Debian Linux distribution:
289289
[{python}]
290290
----
291291
def get_hello_bakery_scriptlets(conf: HelloBakeryConfig) -> ScriptletGenerator:
292-
installed_lines = ['logger -p Checkmk_Agent "Installed hello_bakery"']
293-
uninstalled_lines = ['logger -p Checkmk_Agent "Uninstalled hello_bakery"']
292+
installed_lines = ['logger -p local3.info "Installed hello_bakery"']
293+
uninstalled_lines = ['logger -p local3.info "Uninstalled hello_bakery"']
294+
# Adjust the priority -p according to your needs.
294295

295296
yield Scriptlet(step=DebStep.POSTINST, lines=installed_lines)
296297
yield Scriptlet(step=DebStep.POSTRM, lines=uninstalled_lines)
297298
----
298299
299300
First the commands for the syslog messages are defined and then the installation scripts for Debian (`DebStep`) which should be executed after the installation (`POSTINST`) and after the uninstallation (`POSTRM`).
301+
In the comments below you will also find the corresponding lines for distributions that use RPM and for Solaris.
300302
301303
*Note:* Following the command lines that you have included, the installation scripts are loaded with additional commands by {CMK}.
302304
Therefore, to ensure that all of the commands in the scripts are executed, do not end your command set with an `exit 0`.
@@ -431,8 +433,8 @@ def _get_solaris_cfg_lines(user: str, content: str) -> List[str]:
431433
]
432434

433435
def get_hello_bakery_scriptlets(conf: HelloBakeryConfig) -> ScriptletGenerator:
434-
installed_lines = ['logger -p Checkmk_Agent "Installed hello_bakery"']
435-
uninstalled_lines = ['logger -p Checkmk_Agent "Uninstalled hello_bakery"']
436+
installed_lines = ['logger -p local3.info "Installed hello_bakery"']
437+
uninstalled_lines = ['logger -p local3.info "Uninstalled hello_bakery"']
436438

437439
yield Scriptlet(step=DebStep.POSTINST, lines=installed_lines)
438440
yield Scriptlet(step=DebStep.POSTRM, lines=uninstalled_lines)

0 commit comments

Comments
 (0)