Home > HowTo, Nagios, PerlScripts > Parse nagios hosts.cfg

Parse nagios hosts.cfg

August 7th, 2009 Leave a comment Go to comments

I am in a project to import over 600 servers from old nagios 2.0 to nagios 3.0 / Centreon.
So the sysadmins here do not put the address field inside the hosts.cfg, so I either ping 500 servers copy
and paste the IP, or I write a script that does it to me.
Here is theĀ  perl script to get IP address from hostnames

Categories: HowTo, Nagios, PerlScripts Tags: , , , , ,
  1. No comments yet.
  1. No trackbacks yet.