nrpe and NetBackup Plugin

Tao Yaoning yonienjcn at gmail.com
Thu Oct 20 17:33:40 CEST 2005


the check_nb_queque works its output looks like "OK - Queue is of normal
size [0]"
the check_nb_jukebox works too, output looks like "OK - all drives are up."

but the check_nb_errs still doesn't work error message looks like
"CHECK_NRPE: Error receiving data from daemon."
The permission has no problem. I can run this command as nagios on local
machine, and get output like "ERRORS: (59 total) 1.) bptm has error-level
general error: cannot count up drives, device manager daemon (ltid) may not
be running. 2.) bptm has error-level general error: cannot count up drives,
device manager daemon (ltid) may not be running. 3.) bptm has error-level
general error: cannot count up drives, device manager daemon (ltid) may not
be running. 4.) bptm has error-level general error: cannot count up drives,
device manager daemon (ltid) may not be running. 5.) bptm has error-level
general error: cannot count up drives, device manager daemon (ltid) may not
be running. 6.) bptm has error-level general error: cannot count up drives,
device manager daemon (ltid) may not be running.
.............................."

the script for output is
if (defined(@errors)) {
if ($critcount) { $status = CRITICAL; }
elsif ($warncount) { $status = WARNING; }
else { $status = UNKNOWN; }
# print "NETBACKUP ERRORS: (" . ( $critcount + $warncount ) . " total) ";
print "ERRORS: (" . ( $critcount + $warncount ) . " total) ";
my $counta = 0;
foreach my $errorline (@errors) {
$counta++;
print "$counta.) $errorline ";
}
print "\n";
} else {
# print "No Netbackup errors found.\n";
print "OK: No Netbackup errors found.\n";
}

I get debug from strace

munmap(0xb7fff000, 4096) = 0
write(3, "\27\3\1\0 }\22\302\252\250\7!%\251Xs+\253\361dh \232\266"...,
1114) = 1114
read(3, "sh: l", 5) = 5
write(3, "\25h:\0 \304\374\20\240\370\23wK]s\241\232\300\347W\270"..., 37) =
37
alarm(0) = 10
write(3, "\25h:\0 #\347\366\313\257\32\2714\327D\17\16 \2l\4D/3)"..., 37) =
37
close(3) = 0
fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 2), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0xb7fff000
write(1, "CHECK_NRPE: Error receiving data"..., 46CHECK_NRPE: Error
receiving data from daemon.
) = 46
munmap(0xb7fff000, 4096) = 0
exit_group(3) = ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20051020/a454e122/attachment.html>


More information about the Users mailing list