How do I deploy the Nanitor collector?

The Nanitor collector is a process to collect configuration from network devices and databases. It can be deployed anywhere on a CentOS 7 device. It will access devices outbound and then feed the devices into the Nanitor server.

Prerequisites

Requires a server to be deployed. This documentation is for Nanitor 1.5.0 and greater. The nanitor-collector has gone through a lot of changes in 1.5.0.

Packages

sudo curl -O https://packages.nanitor.com/files/nanitor-collector-centos-stable.repo
sudo mv nanitor-collector-centos-stable.repo /etc/yum.repos.d/
sudo rpm --import "https://packages.nanitor.com/files/gpg.asc"
sudo yum -y install nanitor-collector
Each organization can have multiple collectors. In this example we name our collector  intranet and we name our organization  MyOrganization.
To configure the nanitor-collector and link it to your organization in the cloud please copy the signup key for your organization (Find it in the Nanitor portal Administration -> Downloads -> Reveal signup key) and create a file with the signup key contents into /tmp/signup-key.txt.
Then we signup the collector with the Nanitor server:
sudo /usr/lib/nanitor-collector/bin/nanitor-collector-ctl collector_signup --name intranet --organization_title MyOrganization --keyfile /tmp/signup-key.txt

The collector should now be visible in the Nanitor portal under Collectors.

Starting

Now we need to start the nanitor-collector:
sudo systemctl start nanitor-collector.service
To view information about the collector run:
sudo /usr/lib/nanitor-collector/bin/nanitor-collector-ctl info
After this the next step is to add devices and databases. First we need to create credentials that can be used to access multiple devices and then we add the device.
The collector will by default now access the devices at 1 AM. This can be changed in the nanitor_collector.ini config file if desired.

Adding devices

See related articles how to configure the various supported devices.

Still need help? Contact Us Contact Us