[xymon] xymon notes editor

Tim McCloskey tm at freedom.com
Tue Aug 10 19:38:18 CEST 2010


Hi, 

I don't use this script but I took a look at it this AM on a Linux box with the requisite modules installed.  In the change log for http://xymonton.trantor.org/doku.php/addons:hobbitnotes I see that 'use strict' was added and a routine to flush buffers was added shortly after, but the $cfh var was not declared, $oldbar/strict rewritten below.  Until the script properly checks out it will never run under apache/perl.  This said, you can try the following edit to see if it helps you, again, I don't run this so I can't be of much more help.


perl -cw bbnote_editor.cgi 
Global symbol "$oldbar" requires explicit package name at bbnote_editor.cgi line 224.
Global symbol "$cfh" requires explicit package name at bbnote_editor.cgi line 225.
Global symbol "$oldbar" requires explicit package name at bbnote_editor.cgi line 248.
Global symbol "$cfh" requires explicit package name at bbnote_editor.cgi line 249.
bbnote_editor.cgi had compilation errors.

edit:
# Main
#local $oldbar = $|;
my $oldbar = $|;
#$cfh = select (STDOUT);
my $cfh = select (STDOUT);
$| = 1;


perl -cw bbnote_editor.cgi 
bbnote_editor.cgi syntax OK



Regards, 

Tim
________________________________________
From: Shadow Azul [shadowazul at gmail.com]
Sent: Tuesday, August 10, 2010 4:35 AM
To: xymon at xymon.com
Subject: Re: [xymon] xymon notes editor

I install the same module but doesnt work
I have the following error in apache2 error_log

[Mon Aug 09 09:05:54 2010] [error] [client 10.1.0.153] Global symbol "$oldbar" requires explicit package name at /usr/local/xymon/cgi-secure/bbnote_editor.cgi line 224., referer: http://xymonsrv/xymon/serv_princ/serv_princ.html
[Mon Aug 09 09:05:54 2010] [error] [client 10.1.0.153] Global symbol "$oldbar" requires explicit package name at /usr/local/xymon/cgi-secure/bbnote_editor.cgi line 224., referer: http://xymonsrv/xymon/serv_princ/serv_princ.html

Somebody have an idea of this problem?
Regards,




2010/8/9 Tim McCloskey <tm at freedom.com<mailto:tm at freedom.com>>
Looks like you are missing a perl module. (FromText.pm)  See if you can locate that module on the filesystem, if so call it by full path or modify the env.  If the module is not on the system (which seems most likely) then you will need to go to CPAN get the module and install it.

The server admin is defined in your httpd.conf file (in the main config and possibly in any vhost entries you've created).

...snip...
- kkelly [09/Aug/2010:15:48:55 -0500] "GET /xymon-seccgi/bbnote_editor.cgi HTTP/1.1" 500 540

[Mon Aug 09 15:48:55 2010] [error] [client ...] Can't locate HTML/FromText.pm in @INC (@INC contains: /usr/pe
rl5/5.8.4/lib/sun4-solaris-64int /usr/perl5/5.8.4/lib /usr/perl5/site_perl/5.8.4/sun4-solaris-64int /usr/perl5/site_perl
/5.8.4 /usr/perl5/site_perl /usr/perl5/vendor_perl/5.8.4/sun4-solaris-64int /usr/perl5/vendor_perl/5.8.4 /usr/perl5/vend
or_perl .) at /apps/xymon/cgi-secure/bbnote_editor.cgi line 14., referer: http://server/xymon/bb.html
...snip...



Regards,




More information about the Xymon mailing list