tsm_client Check

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
gselvakumar
Posts: 96
Joined: Wed Mar 02, 2016 4:52 am

tsm_client Check

Post 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
Thanks & Regards,
Gomathyshankar Selvakumar
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: tsm_client Check

Post 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.
Former Nagios employee
https://www.mcapra.com/
Locked