-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Description
I am using naemon 1.0.6 as provided by Consol.de (https://labs.consol.de/repo/stable/). When I run either check your configuration or reload your monitoring core, the init script complains about unset TERM variable.
Command Output:
tput: unknown terminal "unknown"
tput: unknown terminal "unknown"
tput: unknown terminal "unknown"
tput: unknown terminal "unknown"
tput: unknown terminal "unknown"
tput: unknown terminal "unknown"
Naemon Core 1.0.6-pkg
Copyright (c) 2013-present Naemon Core Development Team and Community Contributors
Copyright (c) 2009-2013 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
License: GPL
I guess this is related with systemd which should check the existence of the TERM variable.
This is not a big issue but the output doesn't look right. A quick fix is to setup a value to the TERM variable, such as:
--- a/etc/init.d/naemon 2017-07-19 10:13:20.305827380 +0200
+++ b/etc/init.d/naemon 2017-07-19 10:21:10.959544839 +0200
@@ -14,6 +14,7 @@
# Source function library.
+export TERM=dumb
. /lib/lsb/init-functions
status() {I am pretty sure this won't compromise anything and this allows to have a correct command output.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels