Re: [Bacula-devel] A separate 9.4.2 issue:

2019-04-05 Thread Kern Sibbald
Clever :-( On 4/5/19 5:49 PM, Martin Simmons wrote: On Fri, 5 Apr 2019 09:22:33 -0400, Phil Stracchino said: On 4/5/19 8:54 AM, Kern Sibbald wrote: Hello Martin, I added the Ping explicitly so that program such as Nagios could "ping" the FD.  I have never tried or used it myself, but it shoul

Re: [Bacula-devel] A separate 9.4.2 issue:

2019-04-05 Thread Kern Sibbald
Hello Phil, The protocol is documented in the developer's manual, and relatively simple code for it exists in /examples/nagios/check_bacula in the two .c files and the .h Best regards, Kern On 4/5/19 3:22 PM, Phil Stracchino wrote: On 4/5/19 8:54 AM, Kern Sibbald wrote: Hello Martin, I ad

Re: [Bacula-devel] A separate 9.4.2 issue:

2019-04-05 Thread Phil Stracchino
..And fixed. Here's the updated checkhost script, which now uses IO::Socket::INET instead of Net::Telnet *and* properly uses the Bacula ping. It can optionally do wake-on-lan, but some external setup is required. -- Phil Stracchino Babylon Communications ph...@caerllewys.net p...@co.or

Re: [Bacula-devel] A separate 9.4.2 issue:

2019-04-05 Thread Phil Stracchino
On 4/5/19 11:49 AM, Martin Simmons wrote: > Try this: > > $ perl -e 'print pack("N/a","Ping")' | nc localhost 9102 > 2000 Ping OK OK, works fine from the command line. I'm working on implementing this using Socket.pm, but there's apparently something subtly wrong so far in my socket code, and I

Re: [Bacula-devel] A separate 9.4.2 issue:

2019-04-05 Thread Martin Simmons
> On Fri, 5 Apr 2019 09:22:33 -0400, Phil Stracchino said: > > On 4/5/19 8:54 AM, Kern Sibbald wrote: > > Hello Martin, > > > > I added the Ping explicitly so that program such as Nagios could "ping" > > the FD.  I have never tried or used it myself, but it should work, and I > > think ther

Re: [Bacula-devel] A separate 9.4.2 issue:

2019-04-05 Thread Phil Stracchino
On 4/5/19 8:54 AM, Kern Sibbald wrote: > Hello Martin, > > I added the Ping explicitly so that program such as Nagios could "ping" > the FD.  I have never tried or used it myself, but it should work, and I > think there is a nagios program in the src/examples directory that does > so.  The main

Re: [Bacula-devel] A separate 9.4.2 issue:

2019-04-05 Thread Kern Sibbald
Hello Martin, I added the Ping explicitly so that program such as Nagios could "ping" the FD.  I have never tried or used it myself, but it should work, and I think there is a nagios program in the src/examples directory that does so.  The main consideration is that the Ping must be sent using

Re: [Bacula-devel] A separate 9.4.2 issue:

2019-04-04 Thread Phil Stracchino
On 4/4/19 12:06 PM, Kern Sibbald wrote: > Hello, > > The Security Alert messages indicate the some one or some process is > probing your FD port but is not using Bacula protocol.  It typically > happens with port scanners or programs attempting to see if the Bacula > FD is alive, neither of whi

Re: [Bacula-devel] A separate 9.4.2 issue:

2019-04-04 Thread Martin Simmons
Since the probing is now visible in job logs, it would be useful to have a safe way of doing this. Can probes use the Ping message? https://www.bacula.org/git/cgit.cgi/bacula/tree/bacula/src/filed/job.c?h=Branch-9.4#n489 __Martin > On Thu, 4 Apr 2019 18:06:26 +0200, Kern Sibbald said: > >

Re: [Bacula-devel] A separate 9.4.2 issue:

2019-04-04 Thread Kern Sibbald
Hello, The Security Alert messages indicate the some one or some process is probing your FD port but is not using Bacula protocol.  It typically happens with port scanners or programs attempting to see if the Bacula FD is alive, neither of which are using Bacula communications protocols. Bes