Random Project

Updated check with three new checks

Hello, Thanks a lot for the grate check. Have updated the check with the following three new checks:

– Information-LED
– System-Error-LED
– Temperature-LED

Would be grate if you could update thee script so all can profit of new additional checks:

elsif($test_name =~ m/^Information-LED$/i){
$oid = “2.8.1.2.0”;
$data = SNMP_getvalue($snmp_session,$oid_prefix.$oid);
$data_text=’Check Fail’;
$data_text=’OK’ if $data eq 0;
}
elsif($test_name =~ m/^System-Error-LED$/i){
$oid = “2.8.1.1.0”;
$data = SNMP_getvalue($snmp_session,$oid_prefix.$oid);
$data_text=’Check Fail’;
$data_text=’OK’ if $data eq 0;
}
elsif($test_name =~ m/^Temperature-LED$/i){
$oid = “2.8.1.3.0”;
$data = SNMP_getvalue($snmp_session,$oid_prefix.$oid);
$data_text=’Check Fail’;
$data_text=’OK’ if $data eq 0;
}