<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=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></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-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Running smokeping 2.6.11 on CentOS 7. This is a new install. I get “Internal Server Error” when accessing smokeping.cgi. It appears to be looking for the perl module Config::Grammar. The module is installed and is in the path shown.
Why am I getting this error? <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">One note, I had this same error with the Carp module and resolved it by installing yum’s “perl-Carp” package even though I had already installed the module using CPAN. However, Config::Grammar does not have a yum package.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Below is the error /var/log/httpd/error_log:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">[Wed Aug 5 15:52:32 2015] smokeping_cgi: Can't locate Config/Grammar.pm in @INC (@INC contains: /opt/smokeping-2.6.11/bin/../lib /opt/smokeping-2.6.11/bin/../thirdparty/lib/perl5 /root/perl5/lib/perl5 /usr/local/lib64/perl5 /usr/local/share/perl5
/usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /opt/smokeping-2.6.11/bin/../lib/Smokeping/Config.pm line 5.<o:p></o:p></p>
<p class="MsoNormal">[Wed Aug 5 15:52:32 2015] smokeping_cgi: BEGIN failed--compilation aborted at /opt/smokeping-2.6.11/bin/../lib/Smokeping/Config.pm line 13.<o:p></o:p></p>
<p class="MsoNormal">[Wed Aug 5 15:52:32 2015] smokeping_cgi: Compilation failed in require at /opt/smokeping-2.6.11/bin/../lib/Smokeping.pm line 14.<o:p></o:p></p>
<p class="MsoNormal">[Wed Aug 5 15:52:32 2015] smokeping_cgi: BEGIN failed--compilation aborted at /opt/smokeping-2.6.11/bin/../lib/Smokeping.pm line 14.<o:p></o:p></p>
<p class="MsoNormal">[Wed Aug 5 15:52:32 2015] smokeping_cgi: Compilation failed in require at /opt/smokeping-2.6.11/bin/smokeping_cgi line 17.<o:p></o:p></p>
<p class="MsoNormal">[Wed Aug 5 15:52:32 2015] smokeping_cgi: BEGIN failed--compilation aborted at /opt/smokeping-2.6.11/bin/smokeping_cgi line 17.<o:p></o:p></p>
<p class="MsoNormal"><h1>Software error:</h1><o:p></o:p></p>
<p class="MsoNormal"><pre>Can't locate Config/Grammar.pm in @INC (@INC contains: /opt/smokeping-2.6.11/bin/../lib /opt/smokeping-2.6.11/bin/../thirdparty/lib/perl5 /root/perl5/lib/perl5 /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl
/usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /opt/smokeping-2.6.11/bin/../lib/Smokeping/Config.pm line 5.<o:p></o:p></p>
<p class="MsoNormal">BEGIN failed--compilation aborted at /opt/smokeping-2.6.11/bin/../lib/Smokeping/Config.pm line 13.<o:p></o:p></p>
<p class="MsoNormal">Compilation failed in require at /opt/smokeping-2.6.11/bin/../lib/Smokeping.pm line 14.<o:p></o:p></p>
<p class="MsoNormal">BEGIN failed--compilation aborted at /opt/smokeping-2.6.11/bin/../lib/Smokeping.pm line 14.<o:p></o:p></p>
<p class="MsoNormal">Compilation failed in require at /opt/smokeping-2.6.11/bin/smokeping_cgi line 17.<o:p></o:p></p>
<p class="MsoNormal">BEGIN failed--compilation aborted at /opt/smokeping-2.6.11/bin/smokeping_cgi line 17.<o:p></o:p></p>
<p class="MsoNormal"></pre><o:p></o:p></p>
<p class="MsoNormal"><p><o:p></o:p></p>
<p class="MsoNormal">For help, please send mail to this site's webmaster, giving this error message<o:p></o:p></p>
<p class="MsoNormal">and the time and date of the error.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"></p><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;color:#1F497D">
<b>Keith Irvin </b>▪ Senior Network Engineer ▪ Amherst Holdings, LLC <o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;color:#1F497D"> 5001 Plaza on the Lake ▪ Suite 200 ▪ Austin, TX 78746<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;color:#1F497D"> 512.342.3073
<a href="mailto:kirvin@amherst.com"><span style="color:#0563C1">kirvin@amherst.com</span></a><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
--- Please refer to http://www.amherst.com/amherst-email-disclaimer/ for important disclosures regarding this electronic communication.
</body>
</html>