<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:Courier New,courier,monaco,monospace,sans-serif;font-size:12pt"><br><div style="font-family: Courier New,courier,monaco,monospace,sans-serif; font-size: 12pt;"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2"><b><span style="font-weight: bold;">Från:</span></b> Jelle Smet <nagios@smetj.net><br><b><span style="font-weight: bold;">Till:</span></b> Nagios devel <nagios-devel@lists.sourceforge.net><br><b><span style="font-weight: bold;">Skickat:</span></b> tis 16 februari 2010 11:20:36<br><b><span style="font-weight: bold;">Ämne:</span></b> [Nagios-devel] Reassemble config files automatically<br></font><br><meta http-equiv="x-dns-prefetch-control" content="off"><p>Hi List,</p>
<p>Is there an advised way to extract and assemble the configuration of 1 host and its services out of a configuration setup with many templates?<br>I know one can check the config of a host/service through the web interface, .. but what I would like to have is some sort of scripting library, <br>which can read the nagios config files and then dump them into another format...</p>
<p>Any tips os this?</p>
<p> </p>
<p>Cheers,</p>
<p>Jelle</p>
<p style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><font size="3"> </font></p>
<p style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><font size="3"><br></font></p><p style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><font size="3">Hi Jelle,</font></p><p style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><font size="3"><br></font></p><p style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><font size="3">not sure what you are looking for, but have you looked</font></p><p style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><font size="3">at the <strong style="font-weight: normal;"><object_cache_file></strong></font><font size="3"> file? There is all info you</font></p><p style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><font size="3">need compiled and ready, but you will have to convert</font></p><p style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><font size="3">it to your preferred format for
 export.</font></p><p style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><font size="3"><br></font></p><p style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><font size="3">/Sven<br></font></p><font size="3"><span style="font-family: courier,monaco,monospace,sans-serif;">______________________________________________</span><br style="font-family: courier,monaco,monospace,sans-serif;"><br style="font-family: courier,monaco,monospace,sans-serif;"><span style="font-family: courier,monaco,monospace,sans-serif;">Sven-Göran Bergh</span><br style="font-family: courier,monaco,monospace,sans-serif;"><span style="font-family: courier,monaco,monospace,sans-serif;"></span><span style="font-family: courier,monaco,monospace,sans-serif;">Systemasis AB</span><br style="font-family: courier,monaco,monospace,sans-serif;"><span style="font-family: courier,monaco,monospace,sans-serif;"></span><span style="font-family:
 courier,monaco,monospace,sans-serif;">______________________________________________<br><br></span></font><font face="Tahoma" size="2"><b><span style="font-weight: bold;"></span></b></font><meta http-equiv="x-dns-prefetch-control" content="on"></div></div>
</div><br>__________________________________________________<br>Använder du Yahoo!?<br>Är du trött på spam?  Yahoo! E-post har det bästa spamskyddet som finns <br>http://se.mail.yahoo.com </body></html>