summaryrefslogtreecommitdiffstats
path: root/hostinfo-checks
diff options
context:
space:
mode:
Diffstat (limited to 'hostinfo-checks')
-rwxr-xr-xhostinfo-checks4
1 files changed, 2 insertions, 2 deletions
diff --git a/hostinfo-checks b/hostinfo-checks
index 019892b..d37b7d5 100755
--- a/hostinfo-checks
+++ b/hostinfo-checks
@@ -77,8 +77,8 @@ class MaintainersContext(nagiosplugin.Context):
def print_version():
try:
import version
- ver = version.get_git_version()
- print(" %s" % ver)
+ self = os.path.basename(sys.argv[0])
+ print("%s %s" % (self, version.get_git_version()))
except:
sys.stderr.write('Unable to identify the version information.\n')
sys.exit(nagiosplugin.Unknown.code)