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
tsm_client Check
-
gselvakumar
- Posts: 96
- Joined: Wed Mar 02, 2016 4:52 am
tsm_client Check
Thanks & Regards,
Gomathyshankar Selvakumar
Gomathyshankar Selvakumar
Re: tsm_client Check
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:
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:
It looks like you would basically just reverse all the greater/less than logic in this subroutine.
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
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'};
}
}
}Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/