-->

Friday, November 23, 2018

[Solved] Error: (!log_opts) Could not complete SSL handshake with : 5

If you are working with the nrpe and just compiled with the nrpe but not able to start the nrpe service on the 5666 port its because you have not compiled it with the SSL support.

So to resolve this issue you need to recompile it with the SSL support to overcome this issue as

cd  nrpe-3.2.1
./configure --enable-ssl

If you already have use the --enable-ssl than  you might not have added the ip address in the /etc/nagios/nrpe.cfg


allowed_hosts=127.0.0.1,192.168.33.5
In case you are using xinetd or inetd services than you need to change /etc/xinetd.d/nrpe

only_from       = 127.0.0.1 192.168.33.5

Thursday, November 22, 2018

Dividing CIDR into AWS with Range and server with UI

In case you are creating a new VPC and have selected the CIDR Range and want to divide the CIDR with proper ranges along with the number of usable ips , counts, ranges . You can use the following online tool where you can do it everything in UI thus reducing the overall error and managing overall information much more conveniently.

http://www.davidc.net/sites/default/subnets/subnets.html

Just update the CIDR Block Range like 10.0.0.0/16 and than you can start dividing the subnet as per your use case and incorporate the same in your VPC.

AWS Subnet Calculator from CIDR Tool


Monday, November 12, 2018

[Solved] jenkins java.lang.IllegalArgumentException: Not valid encoding '%te'

After  a fresh jenkins installation, I was getting this error when i created the user.

Caused by: java.lang.IllegalArgumentException: Not valid encoding '%te'
        at org.eclipse.jetty.util.UrlEncoded.decodeHexByte(UrlEncoded.java:889)
        at org.eclipse.jetty.util.UrlEncoded.decodeUtf8To(UrlEncoded.java:522)
        at org.eclipse.jetty.util.UrlEncoded.decodeTo(UrlEncoded.java:577)
        at org.eclipse.jetty.server.Request.extractFormParameters(Request.java:547)
        at org.eclipse.jetty.server.Request.extractContentParameters(Request.java:471)
        at org.eclipse.jetty.server.Request.getParameters(Request.java:386)
        ... 91 more

Solution:- Just restart the jenkins service that should fix the issue.