PDA

View Full Version : nmap2zabbix


steveh
11-01-2006, 10:39
Has anybody written the equivalent for zabbix of nmap2nagios?

If you've never seen it, it scans the network and produces a list of equipment and port/service definitions.

elkor
11-01-2006, 16:40
not that I know of, but it certainly would be handy for adding new network segments.

I nominate you for the task!

steveh
11-01-2006, 17:04
Is there documentation of the import format somewhere and I'll give it a crack?

Mark Rijckenberg
12-01-2006, 14:11
Hi,

Excellent idea. I am not a programmer, but I also think it would be a very good idea to partially rewrite Zabbix so that it is based on nmap so that Zabbix can quickly learn the active services, active ports and active servers available in a given network. That way, we can avoid tediously entering each servername, IP, etc etc... ourselves.

I found 2 other projects that are nmap-based and that intelligently map / learn the network:

1. nPulse http://www.horsburgh.com/h_npulse.html (old perl-based project from 2001)
2. NagMIN (from 2004)
= a kind of webmin based graphical plugin for Nagios that uses nmap to learn network and store newly found hosts, services and other network data in MySQL database.

It might be a good idea to let Zabbix use the nmap features in NagMIN, because both solutions use MySQL for storing network data.

Alexei, or someone else, can you do us this favor? :)

Regards,

Mark R.

Alexei
12-01-2006, 14:53
Alexei, or someone else, can you do us this favor? :)

The autodiscovery functionality (design is not ready yet) is planned for ZABBIX 1.2 or 2.0.

elkor
12-01-2006, 16:08
there is a file format for bulk loading, do a search on the forums for it.. I don't have a handy link.

It's implimented through the php front end which reads the file and makes the database insertions so you might need to add some logic in order to insert port monitoring and such (or just get the hosts first, the template functionality is almost fixed and even if just the hosts get inserted you can always link them to a template).