Skip to content

Latest commit

 

History

History
 
 

nfdump

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Use this script to deploy nfdump Agent on multiple Hosts

Prerequisites:

The InsightFinder nfdump agent requires internet access to download the packages needed for the installation process. After installation is complete, any proxy should be disabled to allow our agents to send data using the correct port. Ensure that your /tmp directory has at least 50MB of disk space available because the apt/yum package managers use /tmp as scratch space for package installation (e.g., package inflation).

SSH accesses to all hosts where agents will be installed are required. SSH key can be generated by following this link: https://www.ssh.com/ssh/keygen/

Tested with ansible version 2.2.3.0

Install wget to download the required files :

For Debian and Ubuntu

sudo -E apt-get update
sudo -E apt-get install wget

For Fedora and RHEL-derivatives

sudo -E yum update
sudo -E yum install wget

Note: If you are using proxy, the proxy needs to be set for both the current user and root

Get copy of the deployment script:

  1. Use the following command to download the insightfinder agent code.
wget --no-check-certificate https://github.com/insightfinder/InsightAgent/archive/master.tar.gz -O insightagent.tar.gz
or
wget --no-check-certificate http://github.com/insightfinder/InsightAgent/archive/master.tar.gz -O insightagent.tar.gz

Untar using this command.

tar -xvf insightagent.tar.gz
cd InsightAgent-master/deployment/DeployAgent/
sudo -E ./installAnsible.sh
  1. Open and modify the inventory file
[nodes]
HOST ansible_user=USER ansible_ssh_private_key_file=SOMETHING
###We can specify the host name with ssh details like this for each host
##If you have the ssh key
#192.168.33.10 ansible_user=vagrant ansible_ssh_private_key_file=/home/private_key

##If you have the password
#192.168.33.20 ansible_user=vagrant ansible_ssh_pass=ssh_password


##We can also specify the host names here and the ssh details under [nodes:vars] if they have have the same ssh credentials
##(Only one of ansible_ssh_pass OR ansible_ssh_private_key_file is required)
#192.168.33.10
#192.168.33.15

[nodes:vars]
#ansible_user=vagrant
#ansible_ssh_pass=ssh_password
#ansible_ssh_private_key_file=/home/private_key

[all:vars]
##install or uninstall
ifAction=install

##Login User In Insightfinder Application
ifUserName=

##Project Name In Insightfinder Application
ifProjectName=

##User's License Key in Application
ifLicenseKey=

##Sampling interval could be an integer indicating the number of minutes or "10s" indicating 10 seconds.
ifSamplingInterval=5

##Agent type
ifAgent=nfdump

##The server reporting Url(Do not change unless you have on-prem deployment)
ifReportingUrl=https://app.insightfinder.com

##Vars for NFSen/NFDump
nfsenProfile=/data/nfsen/profiles-data/live
  1. Download the agent Code which will be distributed to other machines
cd files
sudo -E ./downloadAgentSSL.sh
or
sudo -E ./downloadAgentNoSSL.sh
  1. Run the playbook(Go back to the DeployAgent directory)
cd ..
ansible-playbook insightagent.yaml

Uninstallation:

Note: Uninstallation is required before you can install any other Metric agent(e.g. cgroup) or you want to reinstall the current nfdump agent.

  1. Open and modify the inventory file
[all:vars]
##install or uninstall
ifAction=uninstall
##Agent type
ifAgent=nfdump
  1. Run the playbook
ansible-playbook insightagent.yaml