<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body dir="auto">
<div>I had similar problem and I added the library directly into apache httd.conf file and that worked. <br>
<br>
Sent from my iPhone</div>
<div><br>
On Jun 5, 2017, at 3:26 PM, Jeremy Laidman <<a href="mailto:jlaidman@rebel-it.com.au">jlaidman@rebel-it.com.au</a>> wrote:<br>
<br>
</div>
<blockquote type="cite">
<div>
<div dir="ltr">Deepak
<div><br>
</div>
<div>Google tells me that this can happen when a 32-bit library is being linked to by a 64-bit library. Or when a binary requires a shared library (.o) but there's only an archive library (.a).</div>
<div><br>
</div>
<div>If you run "svcstatus.cgi" or "svcstatus.sh" manually, does it give the same error? If so, run it via truss to see what library file it's trying to load when it stops, and look for an alternative. And/or run "ldd svcstatus.cgi".</div>
<div><br>
</div>
<div>The LD_LIBRARY_PATH trick might work, but check that libpcre.* exists in /usr/local/lib. Also see if there's /usr/local/lib64 or /usr/local/lib32.</div>
<div><br>
</div>
<div>Cheers<br>
</div>
<div>Jeremy</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On 28 March 2017 at 08:09, Deepak Chaudhary <span dir="ltr">
<<a href="mailto:chaudharydeepak08@gmail.com" target="_blank">chaudharydeepak08@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div>
<div>Hello Everyone,<br>
<br>
</div>
I was able to configure Xymon 4.3.8 on AIX 7.1. First time everything ran fine and i was able to access /xymon and /xymon-cgi/ paths via apache installed on same server.<br>
<br>
</div>
However, now i am encountering following error on trying to access cgi-bin path. Apache logs show following error -
<br clear="all">
<div>
<div>
<div><br>
AH01215: Could not load program /home/xymon/server/bin/<wbr>svcstatus.cgi:, referer:
<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__servername_xymon_&d=DwMFaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=hvhxsFi99sfEwu3u2bGOgA&m=Dj8IC1TuKfx_hNHToeZWqKgu2xUzLvYPpv3y1ezBKnY&s=Mf98npIeCk8tITU5zq0FBe53eR5uWNymgXD3wXhx90o&e=" target="_blank">
http://servername/xymon/</a><br>
AH01215: \tDependent module /applications/apache/<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__2.4.4.0__lib_libpcre.a-28libpcre.so.1-29&d=DwMFaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=hvhxsFi99sfEwu3u2bGOgA&m=Dj8IC1TuKfx_hNHToeZWqKgu2xUzLvYPpv3y1ezBKnY&s=xJljKcsuGlTGEQPGpt6jgPKZJDcAkAedl5nxSxaetgw&e=" target="_blank">2.4.4.0//<wbr>lib/libpcre.a(libpcre.so.1)</a>
 could not be loaded., referer: <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__servername_xymon_&d=DwMFaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=hvhxsFi99sfEwu3u2bGOgA&m=Dj8IC1TuKfx_hNHToeZWqKgu2xUzLvYPpv3y1ezBKnY&s=Mf98npIeCk8tITU5zq0FBe53eR5uWNymgXD3wXhx90o&e=" target="_blank">
http://servername/xymon/</a><br>
AH01215: \tThe module has an invalid magic number., referer: <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__servername_xymon_&d=DwMFaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=hvhxsFi99sfEwu3u2bGOgA&m=Dj8IC1TuKfx_hNHToeZWqKgu2xUzLvYPpv3y1ezBKnY&s=Mf98npIeCk8tITU5zq0FBe53eR5uWNymgXD3wXhx90o&e=" target="_blank">
http://servername/xymon/</a><br>
End of script output before headers: svcstatus.sh, referer: <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__servername_xymon_&d=DwMFaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=hvhxsFi99sfEwu3u2bGOgA&m=Dj8IC1TuKfx_hNHToeZWqKgu2xUzLvYPpv3y1ezBKnY&s=Mf98npIeCk8tITU5zq0FBe53eR5uWNymgXD3wXhx90o&e=" target="_blank">
http://servername/xymon/</a><br>
<br>
</div>
<div>Looks like cgi-bin scripts are trying to read libpcre.a instead of pcre installed during xymon [ usr/local/bin ].<br>
<br>
</div>
<div>I modified  ~/server/etc/cgioptions.cfg and ~/server/etc/xymonserver.cfg to include following -<br>
LD_LIBRARY_PATH="/usr/local/<wbr>lib:$LD_LIBRARY_PATH"<br>
</div>
<div>export LD_LIBRARY_PATH<br>
<br>
</div>
<div>Any help or pointer much appreciated.<br>
</div>
<div><br>
<br>
</div>
<div>Regards,<br>
</div>
<div>
<div class="m_5401587929159663723gmail_signature">Deepak Chaudhary</div>
</div>
</div>
</div>
</div>
<br>
______________________________<wbr>_________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com">Xymon@xymon.com</a><br>
<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.xymon.com_mailman_listinfo_xymon&d=DwMFaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=hvhxsFi99sfEwu3u2bGOgA&m=Dj8IC1TuKfx_hNHToeZWqKgu2xUzLvYPpv3y1ezBKnY&s=YWqr16uYzJ39NAHLwrPJVTQZWxatjoy1GQdqY7KWhGI&e=" rel="noreferrer" target="_blank">http://lists.xymon.com/<wbr>mailman/listinfo/xymon</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</blockquote>
<blockquote type="cite">
<div><span>_______________________________________________</span><br>
<span>Xymon mailing list</span><br>
<span><a href="mailto:Xymon@xymon.com">Xymon@xymon.com</a></span><br>
<span><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.xymon.com_mailman_listinfo_xymon&d=DwIGaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=hvhxsFi99sfEwu3u2bGOgA&m=Dj8IC1TuKfx_hNHToeZWqKgu2xUzLvYPpv3y1ezBKnY&s=YWqr16uYzJ39NAHLwrPJVTQZWxatjoy1GQdqY7KWhGI&e=">https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.xymon.com_mailman_listinfo_xymon&d=DwIGaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=hvhxsFi99sfEwu3u2bGOgA&m=Dj8IC1TuKfx_hNHToeZWqKgu2xUzLvYPpv3y1ezBKnY&s=YWqr16uYzJ39NAHLwrPJVTQZWxatjoy1GQdqY7KWhGI&e=</a>
</span><br>
</div>
</blockquote>
</body>
</html>