Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Directory
jerico79
byjerico79, May 27, 2012
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;
}
- 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;
}