smetj/nscaweb — Issue #3: Piped data into NSCAweb
Author: smetj
Created: 2011-11-09 20:57:13+00:00
State: open

submitted through mailing list https://groups.google.com/forum/#!topic/nscaweb/mqaKqEqOz94

Hello,
I have been trying to send data to NSCAweb via the named pipe option.
I would like to pipe the passive checks from the remote nagios server
into NSCAweb to be delivered to the main monitoring server as a
destination. I can't seem to get it to work, nor have I been able to
find what NSCAweb is expecting to be written to the pipe.

I've tried to write a large number of variations of the check date
both url encoded and not url encoded, but NSCAweb keeps outputting the
following when I invoke it in debug mode no matter what I write to the
pipe:

bin/nscaweb debug -c etc/main.conf
Starting NSCAweb in foreground.
Tue, 08 Nov 2011 21:25:25 +0000 - Normal: The LogGenerator thread
started.
Tue, 08 Nov 2011 21:25:25 +0000 - Normal: ConfigFileMonitor thread
started.
Tue, 08 Nov 2011 21:25:25 +0000 - Normal: Authentication method
initiated of type: default
Tue, 08 Nov 2011 21:25:25 +0000 - Normal: SubmitListener thread
started.
Tue, 08 Nov 2011 21:25:25 +0000 - Normal: The WebServer thread
started.
Tue, 08 Nov 2011 21:25:25 +0000 - Normal: Named pipe listener
sucessfully created with name main_monitoring_1
Tue, 08 Nov 2011 21:25:25 +0000 - Normal: Named pipe listener
sucessfully created with name debugging
Tue, 08 Nov 2011 21:25:25 +0000 - Normal: Named pipe listener
sucessfully created with name broadcast
Exception in thread Thread-3:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/threading.py", line 552, in
__bootstrap_inner
self.run()
File "/usr/local/nagios/nscaweb/lib/monitoring/communication.py",
line 96, in run
if package['data'] == None or package['data'] == '':
KeyError: 'data'

I'm guessing its simply because i'm not writing what NSCAweb expects
to get, but I can't find any documentation which explains it or shows
an example.

Does anyone have an example of what NSCAweb is expecting to be written
to the pipe?

Thanks