[Nagios-devel] Switch.pm and epn

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

[Nagios-devel] Switch.pm and epn

Post by Guest »

Hello,

I want to use Embedded Perl Nagios for a nagios plugin that include Switch.pm.
When I execute the script in command line, no problem.
If Nagios execute it, i have this error :

Embedded Perl failed to compile /var/opt/nagios/plugins/cegedim/check_oracle.pl, compile error **ePN failed to compile /var/opt/nagios/plugins/cegedim/check_oracle.pl: "String found where operator expected at (eval 1) line 1114, near "case "TABLESPACE""" at /var/opt/nagios/bin/p1.pl line 248.

I can reproduce this error in command line if I comment out "use switch" in the script;

String found where operator expected at /var/opt/nagios/plugins/cegedim/check_oracle.pl line 1113, near "case "TABLESPACE""
(Do you need to predeclare case?)
String found where operator expected at /var/opt/nagios/plugins/cegedim/check_oracle.pl line 1116, near "case "TABLESPACE_BYTES""
(Do you need to predeclare case?)
syntax error at /var/opt/nagios/plugins/cegedim/check_oracle.pl line 1112, near ") {"
syntax error at /var/opt/nagios/plugins/cegedim/check_oracle.pl line 1116, near "case "TABLESPACE_BYTES""
Execution of /var/opt/nagios/plugins/cegedim/check_oracle.pl aborted due to compilation errors.

Do you have any idea ?

Regards,
Samuel Mutel.





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked