Quota Usage Checking with Nagios

My ISP (Adam Internet) supplies an XML usage page, which uses Basic authentication.  You sign up on their admin page for a token, and you then use those credentials (username:token) as the creds when fetching the usage page, and you get back a whole bunch of XML.  There’s various smartphone tools to use that data.  What I wanted was a Nagios check, and also for perfdata to go into pnp4nagios from that based on my Internet usage.

Read More

Adding messages to dmesg

The dmesg log on CentOS frequently is missing timestamps.  While it can probably be added, what I wanted to do was add a mark to dmesg every few hours so I’d know how the passage of time went with it.  This can be done with a simple cron job in /etc/cron.d, like this;

Read More