nagios graph - Can't call method "unixdiskusage" without a package or object reference

Michael Gale michael.gale at pason.com
Mon Apr 4 22:29:56 CEST 2005


Hello,

I have tried updating my map file but now I keep getting this error in
my log file:

Map error: eval error: Can't call method "unixdiskusage" without a
package or object reference at (eval 4) line 254

Here is the code that is causing the problem:
--snip--
m|output:.*DISK.*-.free.space:.*| and do {

        my @options = split(/:/,$_);
        my $strout;

        splice(@options,0,1);

        foreach my $opt (@options) {
                $opt =~ /(\S+).*(\d+).MB.\((\d+)%\)/;
                if (length($1) > 0) {
                $strout .= ", [ $1, GAUGE, $3 ]";
                }
        }


push @s, [ unixdiskusage $strout ];

};
--snip--

Why does the above not work ? I tested it in a perl script before hand
and it prints out the proper out put I thought ?

Michael


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
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