SSH Reverse Tunnel

If you need to SSH to a host but don’t have direct SSH access, you can perform a reverse SSH tunnel. For this you need a host that will except inbound connections to work as a “jump host”, it is possible without it, where you could SSH back to your client computer; however for the … Read more

Raspberry Pi Time Synch

The Raspberry Pi lacks a real time clock, which means that the time can drift, so much so that NTP fails to update the software clock because its skewed so much. To resolve this you can do the following: Add this to /etc/ntp.conf: tinker panic 0 That will cause ntpd to sync despite the large … Read more

NagiosXI check_ldap Error – Could not bind to the LDAP server

When attempting to use the check_ldap plugin, I found that unsecured LDAP lookups on port 389/TCP worked fine, but attempting a secure lookup on 636 or using TLS failed. Attempting a check_ldap check normally worked fine (i.e. to port 389), but attempting an LDAPS or LDAP TLS check failed with the following error: The check_ldap … Read more

Setup SSH Gateway on Raspberry Pi

So looking for something to use your Raspberry Pi for? I had a Mk1 Raspberry Pi laying around and thought it might be good to set it up as a SSH gateway, so I could easily and securely access my home machines when out and about. These instructions assume you have a Raspberry Pi which … Read more

One time reboot of Linux (Ubuntu)

If you occasionally need to reboot a Linux box as a one off one evening you can perform the following commands using the at command. Note if you set a time that has just past it will perform the reboot the following day. So lets say its 16:15 and you want to schedule a reboot … Read more

Monitoring Metrics of APC UPS with MRTG via SNMP

This assumes you have a APC Smart-UPS UPS with a Network Management Card, that you have already configured to allow SNMP connections and you’ve configured the community string. This is tested using MRTG running on Ubuntu with an AP9619 network management card in the UPSes. This took ages to find the correct metrics OIDs from … Read more