Hi Everybody,<br><br>&nbsp;&nbsp;&nbsp;&nbsp; Before I start reinventing the wheel, is there any code out there for parsing configuration filesn in paragraph format. I am creating a multi-process monitor that will read in a configuration file that will contain the processes that they will monitor also what to do when they get get an alert. Below is an example of what I envision the configure file to look like
<br><br>apache {<br>&nbsp;&nbsp; process=/usr/bin/httpd<br>&nbsp;&nbsp; processNum = 8<br>&nbsp;&nbsp; whenDown = &quot;Apache is totally down&quot;<br>&nbsp;&nbsp; whenDegraded = &quot;Apache has degraded (one or more processes has gone away&quot;<br>&nbsp;&nbsp; whenUp = &quot;Apache is up&quot;
<br>&nbsp;&nbsp; severityDown=1<br>&nbsp;&nbsp; severityDegraded=3<br>&nbsp;&nbsp; severityUp=5<br>&nbsp;&nbsp; .... etc ....<br>}<br><br>Thanks in advance,<br>Tino<br><br><br>