Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

chkNmapScanCustom.pl

Current Version
0.0.4
Last Release Date
2015-03-06
Compatible With
  • Nagios 3.x
License
GPL
Hits
10008
Files:
FileDescription
chkNmapScanCustom.plchkNmapScanCustom.pl
Nagios CSP

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!
A plugin to parse data returned from a nmap scan
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'
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!