Page 1 of 1
tsm_client Check
Posted: Fri Oct 14, 2016 6:10 am
by gselvakumar
Hi Team,
Is there any plugin that show which servers need help with their TSM configuration.Also, it alerts when a TSM schedule log has not had activity in an expected number of days.
Thanks,
Gomathyshankar Selvakumar
Re: tsm_client Check
Posted: Fri Oct 14, 2016 11:24 am
by mcapra
I found this on the exchange:
https://exchange.nagios.org/directory/P ... sm/details
We don't have a TSM box to test against unfortunately, but it looks like this command might address your log concerns:
Code: Select all
check_tsm -t log -w 60 -c 80 -u admin -p admin
You might need to leverage the
negate plugin though to say "if activity is below a threshold, alert". You could also modify the perl script yourself since it doesn't look terribly ambitious:
Code: Select all
sub check_log{
if (defined $warning && defined $critical){
$tsm=TSM->new(id => $user, pa => $pass);
$logstatus=$tsm->select_single("* from log");
$log_utilized=$logstatus->{PCT_UTILIZED};
if ($log_utilized >= $critical){
print "Critical: Tivoli Log at $log_utilized\%|PCT_UTILIZED=$log_utilized;$warning;$critical";
exit $ERRORS{'CRITICAL'};
}
elsif ($log_utilized >= $warning){
print "Warning: Tivoli Log at $log_utilized\%|PCT_UTILIZED=$log_utilized;$warning;$critical";
exit $ERRORS{'WARNING'};
}
elsif ($log_utilized < $warning){
print "OK: Tivoli Log at $log_utilized\%|PCT_UTILIZED=$log_utilized;$warning;$critical";
exit $ERRORS{'OK'};
}
else{
print "UNKNOWN: something wrong";
exit $ERRORS{'UNKNOWN'};
}
}
}
It looks like you would basically just reverse all the greater/less than logic in this subroutine.