Tuesday, 28 January 2014

Nagrestconf REST Tutorial with a bit of Vim.

I've just finished the REST tutorial, and the File System Layout pages, and learned a few things myself! I've been doing all the Web site editing using Vim (and please don't say "It shows!") and the greatest thing I found today was Insert mode key mapping. I tried a couple different tag completion plugins that didn't really do what I wanted but all I needed to do was add the following to my ~/.vimrc,

imap </ </<c-x><c-o><esc>

The previous line also takes you out of insert mode, which gets really annoying, so the following is what I'm using now, which feels much better:

imap </ </<c-x><c-o>

So now I still fully type the opening tag, but when I started typing the closing tag, '</', it completes the tag for me. The other benefit is that I can start typing the closing tag at various places to see if it closes a tag I forgot to close.

Sunday, 26 January 2014

Synology Load Problem

Getting back to my overloaded Diskstation 412+, it looks like it might have been Plex. I'll see how it goes over the next few days/weeks but so far the performance seems to be pretty good. I'll switch Plex back on soon and see if the load increases again.

Saturday, 25 January 2014

Web Site Update

I got the install guides finished tonight and I'm quite happy with the result. It involved going through each platform and testing, which I've been putting off for a long time. It was quite a laborious task but, I think, well worth the effort. It would be nice if the distro's stop updating their software for a few years so I won't have to update the instructions!

On another good note, SyNagios has been working faultlessly on my Diskstation so far. Letting me know how over loaded it is and I think Symform is using a lot of resources. Whilst digging around the Synology NAS I noticed Symform uses mono (the free .Net) and I wonder if that's the reason - just a thought. I need to dig a little more, but it's using about 15% of the precious little memory, but cloudstation uses alot too, causing it to swap alot. The swap activity graph is above, but I think the plugin sets the scale incorrectly.

Also, vpnauthd is stuck in a loop running at 25% CPU with no connections, but a vpn service restart cured that. I'd really like to see how much resources each service uses and graph it in SyNagios, so I'm going to go on a hunt for a plugin for that; hopefully I won't have to write one.

I saw a post somewhere where someone took their diskstation 412+ apart and upgraded the memory. Now this would work a treat as I'm using a fair amount of swap - or maybe there's some way to use zswap?

Bye for now.

Friday, 24 January 2014


A really nice guy from Synology got back to me about including SyNagios on their web site. He just wants a little bit of information, features, design, etc. Needless to say I haven't got anything 'nice' to send him so I better pull my finger out and get the Web site finished. I say 'finished' but that's not going to happen overnight, and I suppose it's not the sort of thing that ever gets finished, so I really mean 'get some decent content in it'. I'll keep you updated...

Nagrestconf Web Site UP!

I finally felt ready to get a Web site up for nagrestconf a couple of days ago; now that it's gone beta. It's still under construction but I'm gettting there... slowly. It's at http://nagrestconf.sourceforge.net - take a look, and I hope someone finds it useful!

Saturday, 18 January 2014

I have just submitted Synagios to Synology for inclusion in their official packages. Fingers crossed!

Thursday, 16 January 2014

Synagios - Nagios for Synology NAS boxes.

Nagios, PNP4Nagios and Nagrestconf on a Synology Diskstation NAS Box

Nagrestconf for Synology Diskstation NAS devices.
  • The Synagios package includes Nagios, Pnp4nagios and Nagrestconf. The x86 version was tested on a Synology Diskstation DS412+, DSM 4.3 to 5.2, Intel Atom and the arm version was tested on a DS112 with 256MB RAM, but lots of people use it on many different models.
Get the Synagios package file (.spk) from http://nagrestconf.smorg.co.uk/downloads.html and be sure to read the Install Guide to make sure you get the right package - it's short.

The nagios interface - runs on port 8888

PNP4Nagios graphs - by pressing the graph icon in Nagios

Why put it on a Synology Diskstation?
  1. Because the Diskstation is always on.
  2. With this package it's easy to get Nagios running quickly.
  3. The example configuration, available for download separately, monitors many important parts of your Diskstation. This way you can find out when your Diskstation is working too hard.
  4. It's lightweight, with no Relational Database.
  5. It has a REST interface for automation. It can be used for automating monitoring for the home or the office, and there are a packages available for other popular Operating Systems such as Centos, Redhat, Ubuntu and Debian.