Comments for J.Lo's Tech Blog https://blog.starbyte.co.uk Should be a notepad Tue, 06 Dec 2016 15:49:57 +0000 hourly 1 Comment on WooCommerce API: No order data specified to edit order by Harold Dangel https://blog.starbyte.co.uk/woocommerce-api-no-order-data-specified-to-edit-order/#comment-372 Tue, 06 Dec 2016 15:49:57 +0000 http://blog.starbyte.co.uk/?p=195#comment-372 Request used to work without this fix just fine. Good thing I found your post, bag of cookies for you! Thanks.

]]>
Comment on Redis Sentinel PHP Session Handler by Julien Simbola https://blog.starbyte.co.uk/redis-sentinel-php-session-handler/#comment-370 Mon, 28 Nov 2016 10:44:37 +0000 http://blog.starbyte.co.uk/?p=169#comment-370 not very smart but a good alternative if you don't want to install rediscluster.

Be carefull, systemd won't allow the modification of /etc/hosts by redis-sentinel.

You will need to allow it in /lib/systemd/system/redis-sentinel.service, add "ReadWriteDirectories=-/etc" under "ProtectSystem=true"

Also, if you run the sentinel as non-root user you will need a sudoer.

]]>
Comment on Nagios Twitter Alerts by twitter https://blog.starbyte.co.uk/nagios-twitter-alerts/#comment-357 Mon, 17 Oct 2016 05:04:31 +0000 http://blog.starbyte.co.uk/nagios-twitter-alerts/#comment-357 Hi there, after reading this amazing article
i am too glad to share my familiarity here with colleagues.

]]>
Comment on WooCommerce API: No order data specified to edit order by microsystem https://blog.starbyte.co.uk/woocommerce-api-no-order-data-specified-to-edit-order/#comment-343 Wed, 21 Sep 2016 23:55:29 +0000 http://blog.starbyte.co.uk/?p=195#comment-343 Thanks! Just ran into this problem and found your page by searching "No order data specified to edit order". Saved me a bunch of time. It's kind of a pain sometimes how the WC api responds with and expects the data bound to an attribute on the response objects.

]]>
Comment on Ansible Part 1 by New to Ansible | J.Lo's Tech Blog https://blog.starbyte.co.uk/ansible-part-1/#comment-324 Sun, 20 Sep 2015 21:34:38 +0000 http://blog.starbyte.co.uk/?p=150#comment-324 […] Part 1 is Here […]

]]>
Comment on GlusterFS woes by surnepiko.science https://blog.starbyte.co.uk/glusterfs-woes/#comment-319 Sat, 12 Sep 2015 18:32:25 +0000 http://blog.starbyte.co.uk/?p=135#comment-319 The challenge then is to walk away from the Unicorn.  You can’t have a single storage system to solve all of your woes.  However, you probably don’t have to live with tens or hundreds of storage systems either.

]]>
Comment on Setting Featured image on WordPress Posts in BULK by WordPress Posts without Featured Thumbnail Count | J.Lo's Tech Blog https://blog.starbyte.co.uk/setting-featured-image-on-wordpress-posts-in-bulk/#comment-305 Tue, 28 Jul 2015 18:46:40 +0000 http://blog.starbyte.co.uk/?p=139#comment-305 […] I have another script I’ve been building up to download the first  embedded image in a post, … […]

]]>
Comment on Nagios Twitter Alerts by JD https://blog.starbyte.co.uk/nagios-twitter-alerts/#comment-304 Tue, 28 Jul 2015 17:01:19 +0000 http://blog.starbyte.co.uk/nagios-twitter-alerts/#comment-304 Hi,

I haven't used this for quite a while, but yes I can see there could be a problem if you loose internet connectivity/problem where the script can't get to twitter. It's not setup like a mailer daemon to queue the messages and then try again later.
I suppose it wouldn't be all that difficult to make a twitter posting daemon to take and queue messages and keep retrying. then change this to just pass a message to the queue. But for my setup if the internet being down is the problem seeing a load of tweets after it's been fixed wouldn't help me + the tweet times would be out and could lead to falsely thinking there's another problem.

Moving a queue away from this script would be really good though, you could then use it for anything else and have nagios monitor the size of the queue.

I've since changed my setup to use LED's to notify me of a problem instead of email and twitter. I'm now using Raspberry PI's and WS2801 LED strips. http://blog.starbyte.co.uk/hyperion-leds-nagios-part-1/
A few years ago I had planned to create a poster with an LED for each server/vpn link/router, it's another project I've just not managed to finish. At the time getting the status out of nagios wasn't easy, but I believe now you can pull xml (I did add a custom field on each server with an LED number ready). I'd really like to implement this with another thing I made in the past, nagios push status to asterisk, which then would call (in this case itself as a PA speaker) and announce the server, service and status. Unfortunately leaving a USB stick in the server and remotely rebooting was a bad bad idea (wiped the whole OS including the asterisk/nagios setup). If I get time to tie that together with a speaker in a picture frame I think it would be cool though.

]]>
Comment on Nagios Twitter Alerts by Claudio https://blog.starbyte.co.uk/nagios-twitter-alerts/#comment-291 Tue, 14 Jul 2015 17:29:35 +0000 http://blog.starbyte.co.uk/nagios-twitter-alerts/#comment-291 Hi again,
I noticed that if for some reason the connectivity with twitter is not working the tweet might not be published. Wouldn't be nice to have a retry policy implemented in the plugin script?
Claudio

]]>
Comment on Raspberry PI + RTorrent +Apache2 + RUTorrent by JD https://blog.starbyte.co.uk/raspberry-pi-rtorrent-apache2-rutorrent/#comment-282 Sat, 04 Jul 2015 05:08:51 +0000 http://blog.starbyte.co.uk/raspberry-pi-rtorrent-apache2-rutorrent/#comment-282 🙂 a few months ago I stopped using this setup and haven't needed to pull together up to date information.
I've just tried the libtorrent.rakshasa.no links and they do appear to be down. Not sure if this is a temporary thing, but there is a github page https://github.com/rakshasa where you can download a zip of rtorrent and libtorrent. you'd then have to use unzip instead of tar to extract these 2.
I'm unsure though if this is the stable/development branch I'll have to look into it tomorrow.

]]>