Bulk import CSV Auto Discover NCPA

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
seaward1983
Posts: 69
Joined: Wed Jul 17, 2019 2:09 pm

Bulk import CSV Auto Discover NCPA

Post by seaward1983 »

OS - RHEL 7
Nagios XI 5.7.2

I'm probably asking the question wrong, so please forgive in advance. We're deploying NCPA to all of our hosts (mixed OS, 1,000 hosts). We have approx 136 CIDR ranges.

I read up a bit on the auto discovery - does it pick up the NCPA agents? Or do we have to add solely via the bulk import cloning tool?
Do I have to set up 136 auto discovery jobs to transverse all the CIDR ranges? Or is there a way to upload via CSV file?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Bulk import CSV Auto Discover NCPA

Post by scottwilkerson »

This would be very cumbersome using auto-discovery to get the list of IP's that are running the NCPA agent.

What I would suggest is from the linux command line make a file called targets that contains each of your CDIR ranges (one per line)

Then run the following to get a list of all machines that respond on 5693 by running the following:

Code: Select all

nmap -p5693 -iL targets -oG -  | awk '/Up$/{print $2}'
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
seaward1983
Posts: 69
Joined: Wed Jul 17, 2019 2:09 pm

Re: Bulk import CSV Auto Discover NCPA

Post by seaward1983 »

Trying that now... stay tuned...
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Bulk import CSV Auto Discover NCPA

Post by scottwilkerson »

seaward1983 wrote:Trying that now... stay tuned...
Sounds good
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked