Posts Tagged ‘parse’

Parse nagios services.cfg

August 20th, 2009 No comments

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


Outlook Macro to forward emails

September 30th, 2008 13 comments

I just wrote my first Outlook VBA code, it searches the body of the email for a email and forwards that email to it.
Just creat a new rule right click on the email and call it, it should also work with a rule.

Read more…