I try to run broctl deploy as instructed along with diag, install, and start and all shows and
Error: unable to read lock file:
Error: Unable to get lock
Any idea what I can do?
Looks like it is described here:
https://github.com/bro/broctl/blob/master/BroControl/util.py
Have you tried restarting Bro or NSM services?
When were you trying to run deploy? Did you make changes to Bro's configuration?
Please attach the output of sudo sostat-redacted:
https://github.com/Security-Onion-Solutions/security-onion/wiki/MailingLists#include-sostat-redacted-output
Thanks,
Wes
I tried restarting the system and nsm with no luck (before I posted)
I was trying to run deploy after the error started as the system error suggested it.
This was a fresh install of SO on a VM them once I moved to a larger drive it broke.
I tried rerunning setup with no luck in resolving the issue.
David,
You could try taking a look here to see if it helps:
https://groups.google.com/forum/#!topic/security-onion/wB7tcxrb7aE
Thanks,
Wes
Yeah, I read that and although it appears to be the same symptoms but slightly different.
sudo broctl check
Warning: broctl config has changed (run the broctl "deploy" command)
Error: failed to read lock file: [Errno 2] No such file or directory: '/nsm/bro/spool/lock'
Error: Unable to get lock
sudo broctl deploy
Error: failed to read lock file: [Errno 2] No such file or directory: '/nsm/bro/spool/lock'
Have you made any changes to the Bro configuration or any other files
in /opt/bro/?
Are there any running Bro processes?
pgrep -lf bro
If so, # Kill bro processes
sudo pkill -9 -f bro
# Verify they got killed
pgrep -lf bro
# Try bro again
sudo broctl check
Ref: https://groups.google.com/d/msg/security-onion/wB7tcxrb7aE/dgAi8csfNNAJ
Thanks,
Wes
David,
Please post the output of 'sudo sostat redacted'
https://github.com/Security-Onion-Solutions/security-onion/wiki/MailingLists#include-sostat-redacted-output
Have you compared this to a test on a clean install (on a different machine) or compared your Bro configuration to a working installation?
Thanks,
Wes
I apologize for not noticing the sostat output above. I did notice that the process sending snort alerts to sguild had failed in the provided output. Is this still in a failed state? If so, you might want to try troubleshooting this.
Futhermore, the number of ELSA buffers in the provided sostat may indicate that there is an issue with ELSA taking in or indexing logs. You may want to check /nsm/elsa/data/elsa/log/* for more clues.
However, it looks like you have moved onto another install and may no longer be experiencing these issues.
Other than editing the current netsniff-ng configuration, I cannot recommend any other method of archiving PCAPs to another partition/folder, as there are multiple functions built-in to SO to control the amount of PCAPs and disk usage for nsm logs (sensor-clean) as well as access these items for review by analyst. I would advise against doing so, and encourage you to plan for /nsm to contain a lot of data, therefore allocating appropriate storage for it.
Thanks,
Wes