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?
Bulk import CSV Auto Discover NCPA
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Bulk import CSV Auto Discover NCPA
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:
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}'-
seaward1983
- Posts: 69
- Joined: Wed Jul 17, 2019 2:09 pm
Re: Bulk import CSV Auto Discover NCPA
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
Sounds goodseaward1983 wrote:Trying that now... stay tuned...