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
9889
Files:
FileDescription
chkNmapScanCustom.plchkNmapScanCustom.pl
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
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!