Code Monkey home page Code Monkey logo

selks-scripts's People

Contributors

jeroen0494 avatar pevma avatar xkill avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

selks-scripts's Issues

selks-first-time-setup_stamus command not found

After having fresh install of selks 7 desktop and no-desktop, executing selks-first-time-setup_stamus command resulting command not found. In desktop version there's no FirstTimeSetup app, only the .txt file. Please help. Thanks.

Upgrade Error

moloch_latest=$(curl https://api.github.com/repos/aol/moloch/tags -s |jq -r '.[0].name' | cut -c 2-)

Curl tries to parse the output of a redirect. Add -L to follow the redirect.

@@ -59,7 +59,7 @@
 /usr/bin/supervisorctl restart scirius 
 
 # Moloch upgrade
-moloch_latest=$(curl  https://api.github.com/repos/aol/moloch/tags  -s |jq -r '.[0].name' | cut -c 2-)
+moloch_latest=$(curl  https://api.github.com/repos/aol/moloch/tags -L -s |jq -r '.[0].name' | cut -c 2-)
 moloch_current=$(dpkg -l |grep moloch | awk '{print $3}')
 
 if dpkg --compare-versions ${moloch_latest} gt ${moloch_current} ; then

More details:

Without -L appears an error:

root@IDS-SELKS:~# curl  https://api.github.com/repos/aol/moloch/tags  -s |jq -r '.[0].name' | cut -c 2-
jq: error (at <stdin>:5): Cannot index object with number

Without -L the content:

root@IDS-SELKS:~# curl  https://api.github.com/repos/aol/moloch/tags  -s 
{
  "message": "Moved Permanently",
  "url": "https://api.github.com/repositories/4927517/tags",
  "documentation_url": "https://docs.github.com/v3/#http-redirects"
}

With -L to follow the redirect:

root@IDS-SELKS:~# curl  https://api.github.com/repos/aol/moloch/tags -L -s |jq -r '.[0].name' | cut -c 2-
2.7.0
root@IDS-SELKS:~# curl  https://api.github.com/repos/aol/moloch/tags -L -s 
[
  {
    "name": "v2.7.0",
    "zipball_url": "https://api.github.com/repos/arkime/arkime/zipball/v2.7.0",
    "tarball_url": "https://api.github.com/repos/arkime/arkime/tarball/v2.7.0",
[...]

Long wait on first time set up on existing SELKS5

When I try to run /opt/selks/Scripts/Setup/selks-first-time-setup_stamus.sh on an already set up SELKS5 - there is very long hang on the Moloch init par tof the script. But if I execute the scripts in /opt/selks/Scripts/Setup/selks-first-time-setup_stamus.sh one by one - it works fine no issue.

@Jeroen0494 - have you experienced something similar ?

Set tx to maximum value as well in idps-interface-tuneup_stamus

Hi,

It is recommended to maximize the buffers for both rx and tx to prevent packet drops. The script currently only sets a fixed buffer size of 4096 for rx. Line 26 should look like this:
/sbin/ethtool -G $IFACE rx 4096 tx 4096 >/dev/null 2>&1 ;

See here (network card config): https://github.com/aol/moloch/wiki/FAQ#why-am-i-dropping-packets

It would be even better to probe the network card compatibility and dynamically alter the buffer size accordingly (a bit ugly but it works):

RXBUFSIZE=$(ethtool -g $IFACE | grep -m1 RX: | grep -o '[[:digit:]]')
TXBUFSIZE=$(ethtool -g $IFACE | grep -m1 TX: | grep -o '[[:digit:]]
')
/sbin/ethtool -G $IFACE rx $RXBUFSIZE tx $TXBUFSIZE >/dev/null 2>&1 ;

Cheers,
Jeroen Rijken

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.