Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
chkNmapScanCustom.pl
Meet The New Nagios Core Services Platform
Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.
Monitoring Made Magically Better
- Nagios Core on Overdrive
- Powerful Monitoring Dashboards
- Time-Saving Configuration Wizards
- Open Source Powered Monitoring On Steroids
- And So Much More!
USAGE EXAMPLES:
Alowed ports are NULL:
script -n /usr/bin/nmap -i 192.168.1.1 -p e
More regular usage (allowed port is SSH: 22 and HTTP: 445):
script -n /usr/bin/nmap -i 192.168.1.1 -p 22,445
Add custom parameters (allowed port is SSH: 22 and HTTP: 445) and exclude ports 40000-45000 from scanning:
script -n /usr/bin/nmap -i 192.168.1.1 -p 22,445 -c '--exclude-ports 40000-45000'
Alowed ports are NULL:
script -n /usr/bin/nmap -i 192.168.1.1 -p e
More regular usage (allowed port is SSH: 22 and HTTP: 445):
script -n /usr/bin/nmap -i 192.168.1.1 -p 22,445
Add custom parameters (allowed port is SSH: 22 and HTTP: 445) and exclude ports 40000-45000 from scanning:
script -n /usr/bin/nmap -i 192.168.1.1 -p 22,445 -c '--exclude-ports 40000-45000'
Reviews (1)
bylmiltchev, September 26, 2022
It worked as expected. The output looks a bit weird though. I would suggest that you add a blank line at the end of it.
Maybe add:
print "
";
to line 103 and 140?
Thanks!
Maybe add:
print "
";
to line 103 and 140?
Thanks!