Hi John, I don't use Nagios, I use Zabbix, but getting alerts for mount requests is fairly simple. I receive alerts for the following type of Bacula messages:
09-Apr 04:35 Test-sd JobId 6900: Job Example.2009-04-08_22.15.26 waiting. Cannot find any appendable volumes. 02-Mar 08:43 Test-sd JobId 19295: Please mount Volume "000011L3" for: How to: In your messages resource operatorcommand = "/etc/bacula/mountrequest.sh" operator = nms.example.local = mount The operator command calls my script mountrequest.sh, and the $message is forwarded to Zabbix. Here is the guts of the script, you will need to do whatever to send the output to nagios. data=`cat` error1=`echo "$data" | grep "Please mount" | awk -F" " '{ print $6,$7,$8,$9; }'` error2=`echo "$data" | grep appendable | awk -F" " '{ print $9,$10,$11,$12,$13; }'` if [[ "$error1" == "" ]]; then { message=$error2 } else { message=$error1 } fi Hope that is of some help to you. Regards, Ken Barclay > -----Original Message----- > From: John Drescher [mailto:dresche...@gmail.com] > Sent: Wednesday, 2 June 2010 10:29 PM > To: Joseph Spenner; bacula-users > Subject: Re: [Bacula-users] Nagios Plugins > > > Is there any indication in a file (or output from a command) which > would tell you the status? If so, I could write perl to check and > output a certain response. Then, nagios could be configured as a > wrapper for that and notify accordingly. I've done this sort of thing > for systems where I wanted to verify files were showing up on a 5 > minute basis. If my perl script didn't see a file recently, it told > nagios and we got paged. > > > > I probably could have it look at the bacula logs or script commands > to bconsole. > > John > > ----------------------------------------------------------------------- > ------- > > _______________________________________________ > Bacula-users mailing list > Bacula-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bacula-users ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users