nmap2nagios-ng is a perl-script for generating object configuration files from the XML output of the Port- and Securityscanner Nmap automatically.
Many people miss a feature in nagios, the ability to recognize hosts and services automatically and generateing object configuration files out of it, like some proprietary monitoring-tools can do it.
Nagios is not a Inventory-tool, and i guess it never will be, hence a solution has to be found. The possibilities are: buying a inventory-tool, like DocuSnap e.g., writeing the configuration files manually or use namp2nagios-ng.
But beware: nmap2nagios-ng makes work easier, but never will abolish it completely
Transform Nmap XML-Output to object - configuration files, with
* automated detection of the operating system and building a according hostgroup
* generating of host- and servicetemplates, which can be adjusted via the nmap2nagios-configurationfile
* customizing for Nagios v2.x or v3.x
* the room to be changed by the users without any programming skills
* execute more then one XML-file at the same time (but it can IP-Range-Scans ;) )
* buffer older runs and merge it with the latest one
* add new hosts or services to old config-files
* split host- or service - definitions in single files (still some C&P to do ;) )
single node:
nmap -sS -O -oX 192.168.100.1.xml 192.168.100.1
./nmap2nagios.pl -i -z -r 192.168.100.1.xml -o newhost.cfg
Subnet:
nmap -sS -O -oX subnet.xml 192.168.1.*
./nmap2nagios.pl -i -z -r subnet.xml -o newhosts.cfg
SVN coming soon
To be continued… — Michel Sigloch 2008/01/24 11:50