[Pkg-nagios-changes] [SCM] UNNAMED PROJECT branch, debian/master, updated. 810edbdd3feedbfe37f4a65bee50b57b2f60fa2a
Naparuba
naparuba at gmail.com
Tue Feb 28 22:15:56 UTC 2012
The following commit has been merged in the debian/master branch:
commit e44639000c4addd6e8ff89e12b5694a74e16c3fa
Author: Naparuba <naparuba at gmail.com>
Date: Mon Jan 23 17:02:02 2012 +0100
Fix : discovery module was using old mongodb parameters.
diff --git a/shinken/discovery/discoverymanager.py b/shinken/discovery/discoverymanager.py
index 23233ff..f5355c9 100644
--- a/shinken/discovery/discoverymanager.py
+++ b/shinken/discovery/discoverymanager.py
@@ -106,11 +106,11 @@ class DiscoveryManager:
break
# Now try to connect
try:
- server = mod.server
+ uri = mod.uri
database = mod.database
- self.dbconnection = Connection(server)
+ self.dbconnection = Connection(uri)
self.db = getattr(self.dbconnection, database)
- print "Connection to Mongodb:%s:%s is OK" % (server, database)
+ print "Connection to Mongodb:%s:%s is OK" % (uri, database)
except Exception, exp:
logger.log('Error in database init : %s' % exp)
diff --git a/shinken/webui/plugins_skonf/newhosts/newhosts.py b/shinken/webui/plugins_skonf/newhosts/newhosts.py
index fb21dc4..5556b94 100644
--- a/shinken/webui/plugins_skonf/newhosts/newhosts.py
+++ b/shinken/webui/plugins_skonf/newhosts/newhosts.py
@@ -43,8 +43,9 @@ def get_newhosts():
user = app.get_user_auth()
if not user:
- redirect("/user/login")
- return
+ pass
+ #redirect("/user/login")
+ #return
# we return values for the template (view). But beware, theses values are the
# only one the tempalte will have, so we must give it an app link and the
--
UNNAMED PROJECT
More information about the Pkg-nagios-changes
mailing list