diff options
Diffstat (limited to 'usr-lib-nagios-plugins/check_squid')
| -rwxr-xr-x | usr-lib-nagios-plugins/check_squid | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/usr-lib-nagios-plugins/check_squid b/usr-lib-nagios-plugins/check_squid index 804d664..a60d169 100755 --- a/usr-lib-nagios-plugins/check_squid +++ b/usr-lib-nagios-plugins/check_squid @@ -23,11 +23,11 @@  my $VERSION = "1.1";  $|; -use Nagios::Plugin; +use Monitoring::Plugin;  # todo : use strict; -$np = Nagios::Plugin->new(usage => "Usage: %s [ -v|--verbose ] [ -H <host> ] [ -d <data> ] [ -p <port> ] [ -t <timeout>] [ -c <threshold> ] [ -w <threshold> ]", version => $VERSION); +$np = Monitoring::Plugin->new(usage => "Usage: %s [ -v|--verbose ] [ -H <host> ] [ -d <data> ] [ -p <port> ] [ -t <timeout>] [ -c <threshold> ] [ -w <threshold> ]", version => $VERSION);  $np->add_arg(      spec => 'host|H=s', @@ -247,14 +247,14 @@ if($data =~ /Resources/i)  }  if($data =~ /Memory/i)  { -    my $t = Nagios::Plugin::Threshold->set_thresholds(warning  => $warning, critical => $critical); +    my $t = Monitoring::Plugin::Threshold->set_thresholds(warning  => $warning, critical => $critical);      $np->add_perfdata( label => "Memory used", value => $memory_used, uom => "KB", threshold => $t);      $np->add_perfdata( label => "Memory available", value => $memory_available, uom => "KB");      $np->nagios_exit($np->check_threshold($memory_used), "Squid use $memory_used KB of memory");  }  if($data =~ /FileDescriptors/i)  { -    my $t = Nagios::Plugin::Threshold->set_thresholds(warning  => $warning, critical => $critical); +    my $t = Monitoring::Plugin::Threshold->set_thresholds(warning  => $warning, critical => $critical);      $np->add_perfdata( label => "Max FD", value => $fd_available);      $np->add_perfdata( label => "Cur FD", value => $fd_used, threshold => $t);      $np->nagios_exit($np->check_threshold($fd_used), 'Squid work fine.'); | 
