Last check, the user that runs the Storage Daemon (maybe bacula) has right
permissions of tapinfo binary ? Maybe you have to call the tapeinfo with
the path  (/usr/sbin/tapeinfo) or wherever is located in your system.

J.



2017-04-18 19:05 GMT+02:00 Charles <c...@charlesmatkinson.org>:

> On 18/04/17 21:19, bacula-users-requ...@lists.sourceforge.net wrote:
> > Date: Tue, 18 Apr 2017 09:15:37 +0200
> > From: Francisco Javier Funes Nieto <esen...@gmail.com>
> > Subject: Re: [Bacula-users] 7.4.x Device Resource, Alert Command
> >       documentation and usage
> > Cc: bacula-users <bacula-users@lists.sourceforge.net>
> > Message-ID:
> >       <CAKWep2XU7zBMeC-fouuO4xOb3TN5bzdSx4gbtwFpUY2K=
> 9w...@mail.gmail.com>
> > Content-Type: text/plain; charset="utf-8"
> >
> > Did you check if the mtx package was installed on the system ?
> >
> > J.
> >
> > 2017-04-18 8:27 GMT+02:00 Charles <c...@charlesmatkinson.org>:
> >
> >> How should the sample Alert Command using tapeinfo be configured?
> >>
> >> In the Bacula Main Reference 7.4.3 (18 June 2016).pdf", section 18.3
> >> "Device Resource" shows a sample Alert Command:
> >>
> >>     Alert Command = "sh -c ?tapeinfo -f %c | grep TapeAlert?"
> >>
> >> That was copied and pasted into the Bacula conf but generated:
> >>
> >> Alert: -f: 1: -f: ?tapeinfo: not found
> >> 3997 Bad alert command: sh -c ?tapeinfo -f /dev/sg5 | grep TapeAlert?:
> >> ERR=Child exited with code 127.
> >>
> >> After changing the tapeinfo to /usr/sbin/tapeinfo the error messages
> >> were similar.
> >>
> >> After changing the ? characters to ' characters the error messages were
> >> similar.
> >>
> >> The difficulty was worked around by using an external script to simplify
> >> the conf:
> >>
> >>      Alert Command = "/usr/local/sbin/tapealert-for-bacula.sh"
> >>
> >> How should the sample command be configured?
>
> Thanks Fransico
>
> The mtx package is installed.  At a command prompt ...
>
>      tapeinfo -f /dev/sg5 | grep TapeAlert
>
> ... runs without error as does:
>
>      sh -c 'tapeinfo -f /dev/sg5 | grep TapeAlert'
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>



-- 
_____________________________________________

Francisco Javier Funes Nieto [esen...@gmail.com]
CANONIGOS
Servicios Informáticos para PYMES.
Cl. Cruz 2, 1º Oficina 7
Tlf: 958.536759 / 661134556
Fax: 958.521354
GRANADA - 18002
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to