In recent weeks I had the opportunity to test the release candidate of the new NetEye BP API. This new API allows you to create and update NetEye Business Processes over the Perl API.
Especially when used in large NetEye environments, it was often difficult to create a large number of business processes by hand using the NetEye GUI. And since then the need to automatically create business processes has only grown.
Now is the time.
This month I successfully tested the release candidate in a productive environment. After installing the new BP API software package on the NetEye system, I was able to create my own scripts for automatic BP creation exactly as a customer wanted.
In this use case we wanted to create and update NetEye BP’s from a CMDB System. We configured the CMDB system to export a CSV file on which the BP’s are defined on a daily schedule. Afterwards I wrote a script for parsing the information correctly in order to feed the BP API Perl module.
Here’s an example of how to launch the API for creating a Business Process:
add-businessprocess.pl –name Service_ERP –info “Corporate ERP in Headquarter” –relation AND –tag 1 –template “generic-bp-service” –urgency 1 –impact 1 –child=”hostA;Hoststatus” –child=”hostB;PING” –child=”businessprocess-a” –write
In my case the parsing script fills in all the required options for the “add-businessprocess.pl” module when creating the BP. Always remember, after you have successfully run the “add-businessprocess.pl” script, then just like when using the GUI you must run the “commit-businessprocess.pl” module in order to commit your BP modifications.
Note: This very nice feature should be available in the upcoming NetEye 3.13 release.