Module: check_mk
Branch: master
Commit: 77f71816f68fc6e62f154277ceb98b310a1e64ed
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=77f71816f68fc6…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Sep 24 17:37:54 2015 +0200
Add button for downloading monitoring agents (CEE only)
---
web/htdocs/wato.py | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index def2cc4..69edc2d 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -113,7 +113,7 @@
# `----------------------------------------------------------------------'
import sys, pprint, socket, re, subprocess, time, datetime, \
- shutil, tarfile, cStringIO, math, fcntl, pickle, random
+ shutil, tarfile, cStringIO, math, fcntl, pickle, random, glob
import config, table, multitar, userdb, hooks, weblib, login
from hashlib import sha256
from lib import *
@@ -2032,6 +2032,9 @@ def mode_edithost(phase, new, cluster):
html.context_button(_("Services"),
make_link([("mode", "inventory"),
("host", hostname)]), "services")
+ if config.may('wato.agents'):
+ html.context_button(_("Monitoring Agent"),
+ make_link([("mode", "agent_of_host"),
("host", hostname)]), "agents")
if config.may('wato.rulesets'):
html.context_button(_("Parameters"),
make_link([("mode", "object_parameters"),
("host", hostname)]), "rulesets")
@@ -18593,8 +18596,6 @@ def mode_icons(phase):
# | Simple download page for the builtin agents and plugins |
# '----------------------------------------------------------------------'
-import glob
-
def download_table(title, paths):
forms.header(title)
forms.container()