Open nook24 opened 7 years ago
Sounds like a great idea. I'll look into it.
@jfrickson I want to mention that's not my idea. It was implemented to the Naemon Project ~two years ago.
https://github.com/naemon/naemon-core/blob/master/src/naemon/query-handler.c#L327-L363 To pass a command, you simply send
#command run [1495091072] PROCESS_SERVICE_CHECK_RESULT;host1;service1;0;OK- Everything Looks Great\0
to the query handler socket.
If the command was processed successfully the query handler respond with 200: OK
Added to 5. We were looking into an advanced query utility included in that version, this fits right along with that.
bumping this request.
Would be great to add a way to pass external commands to the nagios.qh. Query hander is a much saver way to pass data to nagios, because if nagios dies you get a "Connection refused" or some other error instead of creating a 10GB nagios.cmd text file on disk. In addition, the query handler would be able to tell you if your command was processed successfully and you can continue with the next command. So you will not "DDoS" the core by passing many commands at once to nagios.