Parse nagios services.cfg

When importing services.cfg from nagios2 to nagios3 with Centreon there are few parameters that must exist,
one of them is service_description. In a project I had to import almost 4 thousand services and many did not have
a service_description so I wrote this perl script to parse the services.cfg and get the use info parse it and set as a service_description, it can also be used for other means, like changing just a specific service…
The script use a nice concept called Finite State Machine
version 6, generate new services.cfg creating service_description, download here
version 7, looks up for a specific service or host and changes itm download here


Leave a Reply

Your email address will not be published. Required fields are marked *