[Oisf-users] Unix Sockets Error for dump-counters
Barkley, Joey
Joey.Barkley at ingramcontent.com
Wed Jan 28 21:48:04 UTC 2015
I have compiled in support for unix sockets with the 2.1 beta 2 release. All commands work using the suricatasc script EXCEPT dump-counters. I am on OEL7. Suricata is running and logging data. Here is my output from the command:
This runs OK:
[root at lv-1-ids01 bin]# ./suricatasc -v -c version
SND: {"version": "0.1"}
RCV: {"return": "OK"}
SND: {"command": "command-list"}
RCV: {"message": {"count": 11, "commands": ["shutdown", "command-list", "help", "version", "uptime", "running-mode", "capture-mode", "conf-get", "dump-counters", "iface-stat", "iface-list"]}, "return": "OK"}
SND: {"command": "version"}
RCV: {"message": "2.1beta2 RELEASE", "return": "OK"}
{'message': '2.1beta2 RELEASE', 'return': 'OK'}
This does not:
root at lv-1-ids01 bin]# ./suricatasc -v -c dump-counters
SND: {"version": "0.1"}
RCV: {"return": "OK"}
SND: {"command": "command-list"}
RCV: {"message": {"count": 11, "commands": ["shutdown", "command-list", "help", "version", "uptime", "running-mode", "capture-mode", "conf-get", "dump-counters", "iface-stat", "iface-list"]}, "return": "OK"}
SND: {"command": "dump-counters"}
Traceback (most recent call last):
File "./suricatasc", line 44, in <module>
print sc.send_command(command, arguments)
File "/usr/local/suricata/lib/python2.7/site-packages/suricatasc/suricatasc.py", line 111, in send_command
raise SuricataReturnException("Unable to get message from server")
suricatasc.suricatasc.SuricataReturnException: Unable to get message from server
Anyone have any experience with this?
Thanks,
Joey
More information about the Oisf-users
mailing list