<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<title>Server side scripts not running</title>
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-GB link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Nope, I take back my last take-back. I am still having a
problem. The server-side script echos a few lines to stdout and these are not
appearing in the log file $</span><span style='font-family:"Calibri","sans-serif"'>BBSERVERLOGS/replicate_ldap.log
. I cannot see any proof that the script is running.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'>Any ideas?<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-family:"Calibri","sans-serif"'>|\/|artin</span><span
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<div style='border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt'>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>

<p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:
"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> Ward, Martin [mailto:Martin.Ward@colt.net] <br>
<b>Sent:</b> 12 November 2009 09:57<br>
<b>To:</b> hobbit@hswn.dk<br>
<b>Subject:</b> [hobbit] Server side scripts not running<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><o:p> </o:p></p>

<p><span style='font-family:"Calibri","sans-serif"'>Hi all,</span><o:p></o:p></p>

<p><span style='font-family:"Calibri","sans-serif"'>I am clearly missing
something basic here but I can't figure out what it is and I can't find
anything that</span> <span style='font-family:"Calibri","sans-serif"'>looks like</span>
<span style='font-family:"Calibri","sans-serif"'>my problem in the archives.</span><o:p></o:p></p>

<p><span style='font-family:"Calibri","sans-serif"'>I have written a script
that should be run on the Xymon server. It does an LDAP</span> <span
style='font-family:"Calibri","sans-serif"'>update on my LDAP master server,
waits ten seconds then checks that this value has been replicated to all the
other LDAP servers.</span><o:p></o:p></p>

<p><span style='font-family:"Calibri","sans-serif"'>The script is</span> <span
style='font-family:"Calibri","sans-serif"'>/opt/hobbit/server/ext/ldap_check_replication
and when run as the Hobbit user like so:</span><o:p></o:p></p>

<p><span style='font-family:"Calibri","sans-serif"'>$</span> <span
style='font-family:"Calibri","sans-serif"'>server/bin/bbcmd
server/ext/ldap_check_replication</span><o:p></o:p></p>

<p><span style='font-family:"Calibri","sans-serif"'>it runs fine and the web
pages are updated.</span><o:p></o:p></p>

<p><span style='font-family:"Calibri","sans-serif"'>The problem is in getting
it to be run by the Xymon server. I created an entry in the hobbitlaunch.cfg
file as that seemed to be the right place to put it, I created the following
entry:</span><o:p></o:p></p>

<p><span style='font-family:"Calibri","sans-serif"'>----</span><o:p></o:p></p>

<p><span style='font-family:"Calibri","sans-serif"'>#
"replicate_ldap" runs the in-house LDAP replication checks.</span><o:p></o:p></p>

<p><span style='font-family:"Calibri","sans-serif"'>[replicate_ldap]</span><o:p></o:p></p>

<p><span style='font-family:"Calibri","sans-serif"'>       
ENVFILE /opt/hobbit/client/etc/hobbitclient.cfg</span><o:p></o:p></p>

<p><span style='font-family:"Calibri","sans-serif"'>       
CMD /opt/hobbit/server/ext/ldap_check_replication</span><o:p></o:p></p>

<p><span style='font-family:"Calibri","sans-serif"'>       
LOGFILE $BBSERVERLOGS/replicate_ldap.log</span><o:p></o:p></p>

<p><span style='font-family:"Calibri","sans-serif"'>       
INTERVAL 5m</span><o:p></o:p></p>

<p><span style='font-family:"Calibri","sans-serif"'>----</span><o:p></o:p></p>

<p><span style='font-family:"Calibri","sans-serif"'>But it refuses to run and
nothing is</span> <span style='font-family:"Calibri","sans-serif"'>mentioned in
any log files anywhere!</span><o:p></o:p></p>

<p><span style='font-family:"Calibri","sans-serif"'>I would appreciate your
input.</span><o:p></o:p></p>

<p><span style='font-family:"Calibri","sans-serif"'>|\/|artin</span><o:p></o:p></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>--  </span><o:p></o:p></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Martin W.
Ward</span><o:p></o:p></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Manager,
Technical Assistance</span><o:p></o:p></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>COLT</span><o:p></o:p></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Unit 12,
Powergate Business Park</span><o:p></o:p></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Volt Avenue,
Park Royal, London</span><o:p></o:p></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>NW10 6PW,
United Kingdom</span><o:p></o:p></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Tel: + 44
(0)20 7863 5218   Internal: 8 441 5218</span><o:p></o:p></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Fax: + 44
(0)20 7863 5610</span><o:p></o:p></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Email:
martin.ward@colt.net </span><o:p></o:p></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>www.colt.net</span><o:p></o:p></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Data | Voice
| Managed Services</span><o:p></o:p></p>

<p class=MsoNormal><br>
<br>
*************************************************************************************<br>
The message is intended for the named addressee only and may not be disclosed
to or used by anyone else, nor may it be copied in any way. <br>
<br>
The contents of this message and its attachments are confidential and may also
be subject to legal privilege. If you are not the named addressee and/or have
received this message in error, please advise us by e-mailing security@colt.net
and delete the message and any attachments without retaining any copies. <br>
<br>
Internet communications are not secure and COLT does not accept responsibility
for this message, its contents nor responsibility for any viruses. <br>
<br>
No contracts can be created or varied on behalf of COLT Telecommunications, its
subsidiaries or affiliates ("COLT") and any other party by email
Communications unless expressly agreed in writing with such other party. <br>
<br>
Please note that incoming emails will be automatically scanned to eliminate
potential viruses and unsolicited promotional emails. For more information
refer to www.colt.net or contact us on +44(0)20 7390 3900.<o:p></o:p></p>

</div>

</div>

</body>

</html>