nmap2nagios tweaks

Just finished using nmap2nagios to build out some cfg files for Nagios. Unfortunately, the script that I’ve been using builds Nagios 1.x cfg files, and that creates the following types of problems for Nagios 2.x/3.x:

  • change contact_groups from “admin” to “admins” (”admins” is probably already your default group in localhosts.cfg)
  • define contact_groups in the host definition, rather than the hostgroup definition (based on the default config, this can be done by using “use linux-server” in your host definitions)
  • edit address line (e.g. put in valid A record or IP address)

I threw a quick HOWTO on NagiosWiki, and eventually I hope to get to redoing that perl script to be compatible with 2.x/3.x cfg files.


About this entry