In response to Peter Sjoberg <[EMAIL PROTECTED]>: > If you write a nagios plugin, please post it. I just started playing > with nagios and wouldn't mind checking bacula also but haven't looked > around for any existing plugin.
The following is what I wrote that we use here. It's not pretty, and it requires that bconsole be installed/configured on the Nagios machine, but it has the added benefit of checking both the dir and the sd. #!/usr/bin/perl use warnings; use strict; # Note that there _must_ be a rule in sudoers for this to work: # nagios ALL=(ALL) NOPASSWD: /usr/local/sbin/bconsole open BC, "echo \"status storage=${ARGV[1]}\" | sudo /usr/local/sbin/bconsole |" or die "bconsole: $!"; my $result = "BACULA: critical"; my $return = 2; while (my $line = <BC>) { chomp $line; if ($line eq "Connecting to Storage daemon ${ARGV[1]} at ${ARGV[0]}:9103") { $result = "BACULA: ok"; $return = 0; last; } } print "$result\n"; exit $return; -- Bill Moran Collaborative Fusion Inc. **************************************************************** IMPORTANT: This message contains confidential information and is intended only for the individual named. If the reader of this message is not an intended recipient (or the individual responsible for the delivery of this message to an intended recipient), please be advised that any re-use, dissemination, distribution or copying of this message is prohibited. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. **************************************************************** ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users