...
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)
Anchorwifimon wifimon
5. WiFiMon Installation
wifimon | |
wifimon |
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:
...
Execution permissions are required for scripts elasticsearch.sh and start.sh. These are provided with the following commands: Anchor run run
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 |
Anchorcompile compile
6. WiFiMon Code Compilation
compile | |
compile |
...
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
...