Translations of this page:

nmap2nagios-ng

nmap2nagios-ng is a perl-script for generating object configuration files from the XML output of the Port- and Securityscanner Nmap automatically.

Introduction

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 :!:

It's abilities

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

It's disability

* 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 ;) )

Example scenario

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

Download

en/nagios/howtos/nmap2nagios_ng.txt · Last modified: 2008/01/24 11:51 by stormy
CC Attribution-Noncommercial-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0