Page 1 of 1

Bulk import CSV Auto Discover NCPA

Posted: Mon Aug 10, 2020 11:27 am
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?

Re: Bulk import CSV Auto Discover NCPA

Posted: Mon Aug 10, 2020 4:25 pm
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}'

Re: Bulk import CSV Auto Discover NCPA

Posted: Tue Aug 11, 2020 11:37 am
by seaward1983
Trying that now... stay tuned...

Re: Bulk import CSV Auto Discover NCPA

Posted: Tue Aug 11, 2020 11:56 am
by scottwilkerson
seaward1983 wrote:Trying that now... stay tuned...
Sounds good