Skip to content

Commit

Permalink
Fix for the svrstate bug in 12.x. As in early 11.0/11.1 builds svrsta…
Browse files Browse the repository at this point in the history
…te always returns DOWN
  • Loading branch information
slauger committed May 7, 2017
1 parent 83956d3 commit 08e84bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions check_netscaler.pl
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ sub check_state
} elsif ($plugin->opts->objecttype eq 'servicegroup') {
$params{'endpoint'} = $plugin->opts->endpoint || 'config';
$field_name = 'servicegroupname';
$field_state = 'svrstate';
$field_state = 'servicegroupeffectivestate';
} else {
$params{'endpoint'} = $plugin->opts->endpoint || 'stat';
$field_name = 'name';
Expand Down Expand Up @@ -608,4 +608,4 @@ sub check_debug
my $response = nitro_client($plugin, \%params);

print Dumper($response);
}
}

0 comments on commit 08e84bd

Please sign in to comment.