Global symbol "$STATUS_UNKNOWN" requires explicit package name at ..

Stanley Hopcroft Stanley.Hopcroft at IPAustralia.Gov.AU
Mon Nov 22 23:54:23 CET 2004


Dear Sir,

I am writing to thank you for your letter and say,

On Mon, Nov 22, 2004 at 12:47:02PM -0800, nagios-users-request at lists.sourceforge.net wrote:
> 
> Message: 27
> To: nagios-users at lists.sourceforge.net
> From: "Alwyn Cherrington" <a.cherrington at notes.manchester.gov.uk>
> Date: Mon, 22 Nov 2004 18:12:03 +0000
> Subject: [Nagios-users] Global symbol "$STATUS_UNKNOWN" requires explicit package name at
>  (eval43) line 49.
> 
> This is a multipart message in MIME format.
> --=_alternative 0063FB0080256F54_=
> Content-Type: text/plain; charset="us-ascii"
>
> New to Linux but successfully had Nagios 1.0 running on AIX 4,3 box. 
> 
> Running RedHat 8 ( having trouble upgrading to RedHat 9 )
> 
>  Configured Nagios 1.2 but get similar eval errors to ... any help 
> would be appreciated. Thanks in advance
> 

  ...

For what it's worth the correspondent you quote seems to have multiple 
Nag problems so I don't think that's too much help.

  ...

> General Options:
> -------------------------
> Nagios user: nagios
> Nagios group: nagios
> Command user: nagios
> Command group: ncmd
> Embedded Perl: yes, with caching
> Install ${prefix}: /services/monitoring/nagios
> Lock file: ${prefix}/var/nagios.lock
> Init directory: /etc/rc.d/init.d

Ok. Have Perl. Maybe a clue.


> 
> "$STAUS_OK" requires explicit package name at (eval 
> 43) line 47.
> Global symbol "$STATUS_WARN" requires explicit 
> package name at (eval 43)
> line 48.
> Global symbol "$STATUS_UNKNOWN" requires explicit 
> package name at (eval
> 43) line 49.
> Global symbol "$STATUS_CRIT" requires explicit package 
> name at (eval 43)
> line 50.
> Global symbol "$CGIURL" requires explicit package name 
> at (eval 43) line
> 51.
> Global symbol "$TIMEOUT" requires explicit package 
> name at (eval 43)
> line 52.
> Global symbol "$rta" requires explicit package name at 
> (eval 43) line
> 53.
> Global symbol "$pl" requires explicit package name at 
> (eval 43) line 54.
> Global symbol "$PACKETS" requires explicit package 
> name at (eval 43)
> 

These look like Perl errors caused by undeclared variables. 

Unfortunately, in recent nagios plugins (eg CVS HEAD) there are no 
variables named $STATUS_OK (is that what you mean), $STATUS_WARN.

... heaps of multi-part pruned. Please be less sloppy with your quoting 
    if you expect good answers.

This is not a common problem. To make progress plese post

1 the details of _your_ configuration (this lives in ./config.status) 
and error messages. 

If you didn't compile Nag and the plugins yourself, the details of their
installation.

2 the versions of your plugins (which distro and the version ./check_foo 
-V of the plugin repporting the error, and how they were built.

3 Have a look at the Nag web pages suggestions about debugging plugin 
problems.

If you want a no understanding/effort/just-make-it-work (TM) solution
you could consider rebuilding (ie make distclean; ./configure; make) 
Nagios and plugins. Use options to the Nagios configure that you are 
confident you understand or must have.

Yours sincerely.

-- 
Stanley Hopcroft

Network specialist, IT Infrastructure
IP Australia
Ph: (02) 6283 3189  Fax: (02) 6281 1353
PO Box 200 Woden  ACT 2606
http://www.ipaustralia.gov.au
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: disclaimer.txt
URL: <https://www.monitoring-lists.org/archive/users/attachments/20041123/a3b233f3/attachment.txt>


More information about the Users mailing list