NagiosXI – REST API to Manipulate Objects

NagiosXI has a REST API that can be used to add, edit and remove objects from the configuration. Full details of the configuration and use of this can be found on your installation at: http://nagiosserver.domain.com/nagiosxi/help/?xiwindow=api.php (or you can find it through the Advanced Configuration menu). Each user has an APIKey which can also be found via […]

More...

Quick Guide – SSH Public Key Authentication (Ubuntu Linux)

A quick guide to setting up SSH Public Key Authentication. SSH Public Key Authentication means you can authenticate to a remove server via SSH without needing to enter your username and password. Instead you create a public-private key pair, then place the public key on the target server. Then when you SSH to the server […]

More...

Installing a Specific Ruby Version

We needed to install Ruby 2.7 instead of what normally comes with Ubuntu 20.04 LTS, if we installed a later than 2.7 Ruby version, the particular application (i.e. Staytus in this case) would barf. The nice people at BrightBox have created some packaged installs of Ruby at various versions.https://www.brightbox.com/docs/ruby/ubuntu/#adding-the-repositoryhttps://launchpad.net/~brightbox/+archive/ruby-ng (Latest version supported 20.04) We first […]

More...

Using dnsmasq on Raspberry Pi for Quick Hosts File Fudge for Android Mobile

During some upcoming changes I needed to test a mobile application to use a test IP address for a standard hostname. Problem is, I didn’t want to root my Android phone to be able edit the hosts file. There are apps such as “Hosts Go”, but in my case these didn’t work. On a normal […]

More...

Storing Credentials for Scripts Outside of Version Control (Environment Variables Example)

So you have a Python script (for example), and you need to store some access credentials for an API it accesses (for example), now you could put the username and password in the script. There’s lots of reasons not to do this however, a key one being that if you are using a version control […]

More...