Variables Not Showing Up
Subhendu Ghosh
sghosh at sghosh.org
Mon Jun 9 19:31:36 CEST 2003
On 9 Jun 2003, DShavdia wrote:
>
> Hey,
>
> I'm trying to develop a Nagios plug-in (written in Perl). And I have
> the plug-in print the value:
>
> print "$state: Used: $usedpercent% Free: $gigsfree GBn";
>
> where the variables have apprioprate values. When I run in from my
> linux box it returns correct values.
>
> Ex: OK: Used: 10% Free: 33.37 GB.
>
> But on Nagios, this shows up: OK: Used: % Free: GB.
>
> This is driving me crazy. Anyone know what's happening?
>
> Thanks for the help.
>
> Dewang
>
Try it after removing the "%" from the print statement...
--
-sg
-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list