Is the Switch.pm in the correct path ? I think Nagios can't find it.<br><br><br><br><div class="gmail_quote">On Thu, Dec 30, 2010 at 1:04 PM, Samuel Mutel <span dir="ltr"><<a href="mailto:smutel@monitoring-fr.org">smutel@monitoring-fr.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hello,<br>
<br>
I want to use Embedded Perl Nagios for a nagios plugin that include Switch.pm.<br>
When I execute the script in command line, no problem.<br>
If Nagios execute it, i have this error :<br>
<br>
Embedded Perl failed to compile /var/opt/nagios/plugins/cegedim/<a href="http://check_oracle.pl" target="_blank">check_oracle.pl</a>, compile error **ePN failed to compile /var/opt/nagios/plugins/cegedim/<a href="http://check_oracle.pl" target="_blank">check_oracle.pl</a>: "String found where operator expected at (eval 1) line 1114, near "case "TABLESPACE""" at /var/opt/nagios/bin/<a href="http://p1.pl" target="_blank">p1.pl</a> line 248.<br>

<br>
I can reproduce this error in command line if I comment out "use switch" in the script;<br>
<br>
String found where operator expected at /var/opt/nagios/plugins/cegedim/<a href="http://check_oracle.pl" target="_blank">check_oracle.pl</a> line 1113, near "case "TABLESPACE""<br>
        (Do you need to predeclare case?)<br>
String found where operator expected at /var/opt/nagios/plugins/cegedim/<a href="http://check_oracle.pl" target="_blank">check_oracle.pl</a> line 1116, near "case "TABLESPACE_BYTES""<br>
        (Do you need to predeclare case?)<br>
syntax error at /var/opt/nagios/plugins/cegedim/<a href="http://check_oracle.pl" target="_blank">check_oracle.pl</a> line 1112, near ") {"<br>
syntax error at /var/opt/nagios/plugins/cegedim/<a href="http://check_oracle.pl" target="_blank">check_oracle.pl</a> line 1116, near "case "TABLESPACE_BYTES""<br>
Execution of /var/opt/nagios/plugins/cegedim/<a href="http://check_oracle.pl" target="_blank">check_oracle.pl</a> aborted due to compilation errors.<br>
<br>
Do you have any idea ?<br>
<br>
Regards,<br>
Samuel Mutel.<br>
<br>
------------------------------------------------------------------------------<br>
Learn how Oracle Real Application Clusters (RAC) One Node allows customers<br>
to consolidate database storage, standardize their database environment, and,<br>
should the need arise, upgrade to a full multi-node Oracle RAC database<br>
without downtime or disruption<br>
<a href="http://p.sf.net/sfu/oracle-sfdevnl" target="_blank">http://p.sf.net/sfu/oracle-sfdevnl</a><br>
_______________________________________________<br>
Nagios-devel mailing list<br>
<a href="mailto:Nagios-devel@lists.sourceforge.net">Nagios-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagios-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-devel</a><br>
</blockquote></div><br>