mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-25 10:28:36 +00:00
Use eval around hard-to-find perl modules
This commit is contained in:
parent
a9d8c62541
commit
67470547f0
4 changed files with 14 additions and 6 deletions
|
@ -73,7 +73,8 @@ else
|
|||
sub value # get value for variables
|
||||
{
|
||||
my %h_ramvalues;
|
||||
use Sun::Solaris::Kstat;
|
||||
eval 'use Sun::Solaris::Kstat; 1;'
|
||||
or die 'Please install Sun::Solaros::Kstat';
|
||||
my $Kstat = Sun::Solaris::Kstat->new();
|
||||
|
||||
# --- Fetch Hardware info ---
|
||||
|
|
|
@ -71,7 +71,8 @@ else
|
|||
sub value
|
||||
{
|
||||
my %h_swapvalue;
|
||||
use Sun::Solaris::Kstat;
|
||||
eval 'use Sun::Solaris::Kstat; 1;'
|
||||
or die 'Please install Sun::Solaris::Kstat';
|
||||
my $Kstat = Sun::Solaris::Kstat->new();
|
||||
|
||||
# --- Fetch Hardware info ---
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue