Module: check_mk
Branch: master
Commit: 56280e80728ed2059c6aafc58f582749214773c2
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=56280e80728ed2…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Feb 28 17:50:11 2013 +0100
agent_vsphere: removed <<<local>>>
Reason: error messages from the agent cannot be sent via <<<local>>>, since
new items here wont be visible. Correct way is to exit with non-zero status.
---
agents/special/agent_vsphere | 14 ++++----------
1 files changed, 4 insertions(+), 10 deletions(-)
diff --git a/agents/special/agent_vsphere b/agents/special/agent_vsphere
index 5630ed1..0b12890 100755
--- a/agents/special/agent_vsphere
+++ b/agents/special/agent_vsphere
@@ -42,9 +42,8 @@ try:
from pysphere import VIServer, VIProperty, MORTypes
from pysphere.resources import VimService_services as VI
except:
- print "<<<local>>>"
- print "2 Agent_error - pysphere API not found. Please install and make a reinventory"
- sys.exit(0)
+ sys.stderr.write("pysphere API not found. Please install and try again.\n")
+ sys.exit(1)
host = VIServer()
@@ -53,9 +52,8 @@ object_collection = {}
try:
host.connect(params['Hostname'], params['u'], params['s'])
except:
- print "<<<local>>>"
- print "2 Agent_error - Cant connect to vSphere Server. May the wrong credentials. Please correct and make a reinventory"
- sys.exit(0)
+ sys.stderr.write("Cannot connect to vSphere Server. May the wrong credentials. Please correct and make a reinventory.")
+ sys.exit(1)
print "<<<check_mk>>>"
print "Version: %s" % host.get_api_version()
@@ -142,9 +140,5 @@ if "virtualmachine" in check:
})
print "<<<<>>>>"
-print "<<<local>>>"
-for name, data in object_collection.items():
- print "0 %s-%s - INFO: Collecting data for %s" % (data[0], name, data[1])
-
host.disconnect()
Module: check_mk
Branch: master
Commit: 7e99e3840027cb5ba0c5fc3bea349582777dda2b
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=7e99e3840027cb…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Feb 28 09:13:41 2013 +0100
Remove obsolete -lower option for vsphere agent
Is now done by piggyback option.
---
agents/special/agent_vsphere | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/agents/special/agent_vsphere b/agents/special/agent_vsphere
index 5630ed1..5cfff53 100755
--- a/agents/special/agent_vsphere
+++ b/agents/special/agent_vsphere
@@ -31,7 +31,6 @@ parser = argparse.ArgumentParser(description='Check_MK vSphere Agent')
group = parser.add_argument_group()
group.add_argument('-p', type=int, help="Port Number of vSphere Server")
group.add_argument('-i', help="Check the hostsystem and or virtualmachine. Comma separated")
-group.add_argument('-lower', action="store_true", help="Convert the name attributes of each MOR to lower case")
parser.add_argument('-u', help="Username")
parser.add_argument('-s', help="Secret")
parser.add_argument('Hostname', help="Hostname")
@@ -79,8 +78,6 @@ def output_mors(what, properties):
# Get the name of this Host/VirtualMachine
# May there a comments in the field, so split at whitespace
name = data["name"].split()[0]
- if params['lower']:
- name = name.lower()
object_collection[name] = (what, data['name'])
Module: check_mk
Branch: master
Commit: 25dabeb656fee544579862b17ae56bc9f929dd11
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=25dabeb656fee5…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Feb 27 14:48:04 2013 +0100
Back to view optionally with checkboxes cleared
---
ChangeLog | 4 +++-
web/htdocs/views.py | 5 +++++
2 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index ea8d1d3..79beb2a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,9 +6,11 @@
Multisite:
* New availability view for arbitrary host/service collections
* New option auth_by_http_header to use the value of a HTTP header
- variable for authentication (Useful in reverse proxy environments)
+ variable for authentication (Useful in reverse proxy environments)
* New permission that is needed for seeing views that other users
have defined (per default this is contained in all roles)
+ * New path back to the view after command exection with all
+ checkboxes cleared
Event Console:
* New rule feature: automatically delete event after actions
diff --git a/web/htdocs/views.py b/web/htdocs/views.py
index db2602f..025eff0 100644
--- a/web/htdocs/views.py
+++ b/web/htdocs/views.py
@@ -2199,6 +2199,11 @@ def do_actions(view, what, action_rows, backurl):
if message:
if html.output_format == "html": # sorry for this hack
message += '<br><a href="%s">%s</a>' % (backurl, _('Back to view'))
+ if html.var("show_checkboxes") == "1":
+ html.del_var("selection")
+ weblib.selection_id()
+ backurl += "&selection=" + html.var("selection")
+ message += '<br><a href="%s">%s</a>' % (backurl, _('Back to view with checkboxes reset'))
html.message(message)
return True