Skip to content
Browse files

Fix : forgot the hostd cfg file.

  • Loading branch information...
1 parent fd41191 commit c396057fa901650a1f30b593731946409e4606dd @naparuba committed
Showing with 70 additions and 1 deletion.
  1. +65 −0 etc/hostd.cfg
  2. +5 −1 shinken/webui/plugins_hostd/register/register.py
View
65 etc/hostd.cfg
@@ -0,0 +1,65 @@
+
+# Log file of the discovery command
+log_file=/tmp/skonf.log
+
+
+# Configuration files with common discovery objects
+# like discoveryrules or runners
+cfg_dir=packs
+
+# Our templates
+cfg_file=templates.cfg
+
+#and our flat file contacts
+cfg_file=contacts.cfg
+
+# Default discovery rules and runners. Should be AFTER
+# the packs ones ;)
+cfg_file=discovery_rules.cfg
+cfg_file=discovery_runs.cfg
+
+# Load all commands that will be used
+cfg_file=commands.cfg
+
+# Load modules, for possible bdd connection
+cfg_file=shinken-specific.cfg
+
+# Some important macros
+resource_file=resource.cfg
+
+# Lock file (with pid) for Arbiterd
+lock_file=skonf.pid
+
+# Strip FQDN of the name ID to keep only the
+# basename of the element
+strip_idname_fqdn=1
+
+# Change this value to increase the discovery
+# scripts timeout. Start with a quite huge value, one hour.
+runners_timeout=3600
+
+
+
+define poller{
+ poller_name poller-test
+ address localhost
+ port 7771
+
+ poller_tags DMZ,Windows
+
+ realm Other
+}
+
+
+define realm{
+ realm_name Other
+}
+
+
+
+
+define host{
+ host_name InnerHost
+ use MyAss
+ _STATE disabled
+}
View
6 shinken/webui/plugins_hostd/register/register.py
@@ -33,9 +33,12 @@
# Our page. If the useer call /dummy/TOTO arg1 will be TOTO.
# if it's /dummy/, it will be 'nothing'
def register():
-
return {'app' : app, 'user' : {}}
+def do_register():
+ username = app.request.forms.get('username')
+
+
def is_name_available():
app.response.content_type = 'application/json'
@@ -50,6 +53,7 @@ def is_name_available():
return json.dumps(b)
+
pages = {register : { 'routes' : ['/register'], 'view' : 'register', 'static' : True},
is_name_available : { 'routes' : ['/availability'], 'method' : 'POST', 'view' : None, 'static' : True},
}

0 comments on commit c396057

Please sign in to comment.
Something went wrong with that request. Please try again.