BB Unix Network Monitor - Message

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: {bb} External SSL Cert Check Notifications



I'd guess that, since this is a perl script, it might not be fully
loading the full complement of BB environment variables. As a result,
the "bb" binary would then be unable to identify your configured
"BBPAGER" host.

In the past, I've used a method which is based on the example file
"perlshell.pl" from "www.deadcat.net". Something like:

$ENV{BBHOME}="/wherever/bb1.9g-btf";
if (!exists $ENV{BBTMP}) {
  foreach (`cd \$BBHOME;. etc/bbdef.sh;set`) {
    chomp;
    ($var,$val)=/^\s*(.*?)\s*=\s*(.*)/;
    $ENV{$var}=$val;
  }
}

In order to examine this problem further, it would be helpful to
know where the script you are using came from. Is it one from
"deadcat", or somewhere else? In that way, others can get a copy
of the script and attempt some debugging.

Cheers, Phil.



On Thu, 2005-07-07 at 14:30, Greg Parrish wrote:
> I am using the cert.bb external perl script and it appears to work fine 
> by parsing the bb-hosts file and doing a check on all the hosts 
> requesting a cert check such as:
> 
> 10.90.6.61   saturn.domain.com	# ssh cert
> 
> The bigbro web page shows the cert column and the details of the check 
> all correctly.  The problem we have is that there is no notifications 
> going out to the receipients for this host when the cert is red.
> 
> As you can guess I dont have a lot of time to work on this until we are 
> forced to renew the cert.
> 
> Here is the bb output from the cert.bb check I have been able to capture 
> running in debug mode :
> 
> /usr/local/bigbro/bb1.9e-btf/bin/bb 10.90.6.61 "status 
> saturn,domain,com.cert red Thu Jul  7 09:11:32 EDT 2005
> saturn.domain.com: Certificate will expire at Jul 15 23:59:59 2005
> 
> So again, web page is good, notifications are not working likely do to 
> this being an external script, any help or ideas are much appreciated.
> 
> Thanks,
> Greg


-- 
For some reason a glaze passes over people's faces when you say
"Canada".
Maybe we should invade South Dakota or something. (Sandra Gotlieb, wife
of the Canadian ambassador to the U.S.)

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
To unsubscribe from this list, or to subscribe to the bb-digest list
send e-mail to mailto:majordomo@bb4.com with unsubscribe bb -and/or-
subscribe bb-digest in the BODY of the message.


Home | Main Index | Thread Index