Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tput: unknown terminal "unknown" #74

Open
renard opened this issue Jul 19, 2017 · 0 comments
Open

tput: unknown terminal "unknown" #74

renard opened this issue Jul 19, 2017 · 0 comments

Comments

@renard
Copy link

renard commented Jul 19, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant