Friday, 6 November 2020

LogicMonitor LMGlobalData

 To view additional information about your LogicMonitor account, press F12 in Chrome, go to the Console and type:


Tuesday, 22 September 2020

Timing cURL

This article ALMOST provides the information needed to add timing output to your cURL query:

Unfortunately, it gets the file format wrong.

Instead, the file should contain the following:

time_namelookup: %{time_namelookup}\n time_connect: %{time_connect}\n time_appconnect: %{time_appconnect}\n time_pretransfer: %{time_pretransfer}\n time_redirect: %{time_redirect}\n time_starttransfer: %{time_starttransfer}\n ———\n time_total: %{time_total}\n
curl -w "@curl-format.txt" -o /dev/null -s

What this does:

  • -w "@curl-format.txt" tells cURL to use our format file
  • -o /dev/null redirects the output of the request to /dev/null
  • -s tells cURL not to show a progress meter
  • is the URL we are requesting

Tuesday, 23 June 2020

Lets Encrypt certificates for devices on private networks

Here's the process for creating a Let's Encrypt C.509 certificate for devices on private networks:

You will need:
  • Access to your DNS server to create TXT DNS records
  • Windows machine
  • PuttyGen installed
  • choco installed
  • win-acme installed with:
    • choco -y install win-acme
  • openssh installed with:
    • choco -y install openssh
  1. Create two identical files called create.bat and delete.bat with the following contents:
    • echo %1 %2 %3
  2. Create another file called sign.bat with the following contents:
    1. wacs --target csr --csrfile .\csr.txt --pkfile .\rsa4096.private.key --validationmode dns-01 --validation script --dnscreatescript .\create.bat --dnsdeletescript .\delete.bat --store pemfiles --pemfilespath .
  3. Generate an RSA 4096 Private key using PuTTYGen or OpenSSH called rsa4096.private.key
  4. Run the batch file
  5. While the ACME script is retrying, manually create the TXT DNS record for _acme-<DOMAIN NAME> with the value provided in the script output/
  6. If needs be, while the script is retrying, flush the DNS cache with:
    • ipconfig /flushdns
  7. Delete the TXT record when done
  8. The PEM file ending .crt.pem contains your X.509 certificate.

Thursday, 30 April 2020

Zaphod Beeblebrox

"The president’s job - and if someone sufficiently vain and stupid is picked he won’t realise this - is not to wield power, but to draw attention away from it. Zaphod Beeblebrox, the only man in history to have made presidential telecasts from the bath, from Eccentrica Gallumbits bedroom, from the maximum-security wing of the Betelgeuse State Prison, or from where ever else he happened to be at the time, was supremely good at this job."

Sound familiar?

Wednesday, 1 April 2020

Installing a LogicMonitor collector on Centos 8

Struggling to install a LogicMonitor Collector on Centos 8?  I was too...

  • sudo su - # Become root – required by the bootstrap/installer
  • dnf -y install perl vim # Install perl and vim – BOTH are pre-requisites on Centos 8
  • ./LogicmonitorBootstrap64_100.bin # (Re)install the LM Collector
  • reboot # Reboot