smetj/nscaweb — Issue #5: Fatal Error running as Daemon
Author: dviti
Created: 2011-12-20 11:32:55+00:00
State: open

Version: NSCAweb 0.1.19 Copyright 2009,2010,2011 by Jelle Smet
OS: CentOS release 5.5 (Final)
Python 2.6.4 (r264:75706, Mar 28 2011, 15:58:24)
Error - 'module' object has no attribute 'DaemonContext'
Steps to reproduce - just run the start command: /services/frameworks/django/dist/ENVS/Python-2.6.4/bin/python /opt/nscaweb/bin/nscaweb start --config /opt/nscaweb/etc/main.conf

Config:
[ "application" ]
host = "10.188.8.203"
port = "5668"
pidfile = "/opt/nscaweb/var/nscaweb.pid"
sslengine = "off"
sslcertificate = ""
sslprivatekey = ""
libs = "/opt/nscaweb/lib"
queue_quota = "104857600"

[ "logging" ]
logfile = "/localfs/nscaweb/nscaweb.log"
enable_syslog = "1"
enable_http_logging = "0"

[ "pipes" ]
enable = "1"
directory = "/opt/nscaweb/var/rw"

[ "destinations" ]
[[ "local" ]]
enable = "0"
type = "local"
locations = "/opt/nagios/var/rw/nagios.cmd"

[[ "main_monitoring_1" ]]
enable = "0"
type = "nscaweb"
locations = "http://somehost-1:10000/queue,http://somehost-1:10001/queue"
username = "default"
password = "changeme"

[[ "main_monitoring_2" ]]
enable = "0"
type = "nscaweb"
locations = "http://somehost-2:5668/queue"
username = "default"
password = "changeme"

[[ "nagiosWithNrdp" ]]
enable = "0"
type = "nrdp"
locations = "http://nagios/nrdp/"
username = "default"
password = "changeme"
token = "mysecrettoken"

[[ "debugging" ]]
enable = "1"
type = "file"
locations = "/tmp/external_commands.log"

######################################################################################
#
# 'authentication' section changes do NOT require a program restart.
#
#####################################################################################
[ "authentication" ]
default = "6ac371cc3dc9d38cf33e5c146617df75"