I have run the above commands for openssl  inside the container  and i am 
getting the correct results as expected but in Prometheus why i am getting 
negative values.  
As mentioned maybe the network problem here too!!!

On Saturday, October 17, 2020 at 2:22:31 PM UTC+1 [email protected] wrote:

> On Saturday, 17 October 2020 11:49:36 UTC+1, Amit Das wrote:
>>
>> ts=2020-10-17T10:06:07.696400989Z caller=main.go:119 module=icmp 
>> target=172.0.16.90 level=debug msg="Unable to do unprivileged listen on 
>> socket, will attempt privileged" err="socket: permission denied"
>>
>
> If you were running blackbox_exporter standalone, there would be three 
> possible solutions:
>
> 1. run it as root
> 2. setcap cap_net_raw+ep /path/to/blackbox_exporter
> 3. use the rootless ping settings (net.ipv4.ping_group_range):
> https://github.com/prometheus/blackbox_exporter/pull/642/files
> https://github.com/prometheus/blackbox_exporter/issues/147
>
> In docker things will be different, because you'll also be constrained by 
> what the container environment permits.  You may need to run the container 
> in privileged mode.
>
> Re "ssl_certificate negative values": you posted a blank white box.  
> Please DON'T post images anyway.  Just select the text, copy it, and paste 
> it.
>
> If the values are negative, then one of the certificates in the chain has 
> expired.
>
> You can retrieve the certificates like this:
>
> openssl s_client -connect www.google.com:443 -name www.google.com 
> -showcerts   # replace www.google.com with your server
>
> Then copy-paste each of the certificates, from -----BEGIN CERTIFICATE----- 
> to -----END CERTIFICATE----- (including those lines), into separate text 
> files.
>
> Then run this command:
>
> openssl x509 -in *filename.pem* -noout -text
>
> to display all of the fields in the certificate, or
>
> openssl x509 -in *filename.pem* -noout -enddate
>
> to see just the expiry date.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/42659ca3-959e-4a72-8642-b85ef02bc4d6n%40googlegroups.com.

Reply via email to