Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Kibana should be started with the following command:


Code Block
service kibana restart

Verifying that kibana is running is possible via: netstat -tlnpu (port 5601)

Anchor
wifimon
wifimon
5. WiFiMon Installation

Installing WiFiMon requires the following commands:

Code Block
wget https://fl-5-205.unil.cloud.switch.ch/wifimon-agent-0.1.1-SNAPSHOT.deb --no-check-certificate

...



sudo apt-get update

...


sudo apt-get install -y gdebi

...


sudo gdebi wifimon-agent-0.1.1-SNAPSHOT.deb

Afterwards, the following files will show up in /usr/lib/wifimon/ directory:

...

Anchor
run
run
Execution permissions are required for scripts elasticsearch.sh and start.sh. These are provided with the following commands:

Code Block
chmod +x elasticsearch.sh

...


chmod +x start.sh

Before the execution of script elasticsearch.sh, “curl” must be installed. This is possible using the following commands:

Code Block
sudo apt-get update

...


sudo apt-get install -y curl

Script elasticsearch.sh must be edited to match the interface the Elasticsearch cluster listen to. The FQDN of the WAS should be provided or localhost if the WAS is configured to listen on localhost. Script elasticsearch.sh will add the required indices and some initial data in the Elasticsearch cluster:

Code Block
./elasticsearch.sh

In the sequel, Kibana index patterns should be configured from the Kibana User Interface. In Kibana, the "wifimon" index pattern can be created from Management/Index Patterns. The following details should be provided:

...

Starting the WiFiMon Secure Agent and WiFiMon GUI requires the following command:

Code Block
./start.sh

Anchor
compile
compile
6. WiFiMon Code Compilation

...

The WiFiMon code can be obtained from the official repository (https://bitbucket.software.geant.org/projects/WFMON/repos/agent/browse). A requirement to compile WiFiMon code is Apache Maven. It can be installed via the following commands:

Code Block
sudo apt-get update

...


sudo apt-get install -y maven

Within the WiFiMon code folder(cd agent), the WiFiMon code ban be compiled using the following commands:


Code Block
mvn clean install

...


mvn package

Afterwards, WiFiMon war files should be copied in the /usr/lib/wifimon directory:

cp /agent/wifimon-assembly/target/wifimon-agent-bin/secure-processor-0.1.1-SNAPSHOT.war /usr/lib/wifimon/secure-processor-0.1.1.war
cp /agent/wifimon-assembly/target/wifimon-agent-bin/ui-0.1.1-SNAPSHOT.war /usr/lib/wifimon/ui-0.1.1.war

...