Nov 032015
 

I’ve got one AD integrated NAS4FREE server running on Supermicro hardware.  It is rock solid but still, it would be nice to pull some monitoring info from it, innit?

Related to previous post about local checks with check_mk – based on Monitoring FreeBSD but slightly adapted for use with NAS4FREE, here are quick steps to make it happen. Tested on 9 and 10.

 

pkg install xinetd
vi /usr/local/etc/xinetd.conf
defaults
{
# Please note that you need a log_type line to be able to use log_on_success
# and log_on_failure. The default is the following :
# log_type = SYSLOG daemon info

service check_mk
{
 type = UNLISTED
 port = 6556
 socket_type = stream
 protocol = tcp
 wait = no
 user = root
 server = /mnt/tank/service/local/bin/check_mk_agent
 only_from = 10.10.8.130
 disable = no
}
}

vi /etc/services

 check_mk 6556/tcp #check_mk agent

vi /etc/hosts.allow

check_mk_agent : 10.10.8.130 : allow
check_mk_agent : ALL : deny

vi /etc/rc.conf

xinetd_enable="YES"

and then

/usr/local/etc/rc.d/xinetd start

 

Check_MK comes with a dedicated agent for FreeBSD: check_mk_agent.freebsd – make sure to copy it from OMD server /omd/sites/mysite/share/check_mk/agents/ to /mnt/tank/service/local/bin/check_mk_agent on NAS4FREE server.

 

Oh, and check out my sophisticated check_mk script that pulls SMART status from disks!
https://github.com/zmielna/smart_diskinfo/blob/master/check_mk_smart_freebsd.sh

That’s a real piece of art, init?

 


Oct 302015
 

I use Titanium Backup and on the newer Android when using external card for storing backups I was hit by this issue, manifested by backup session being interrupted with a message “Insufficient storage”.

 

I’m currently on Android 5.1.1 (CyanogenMod 12.1 NIGHTLY) and the following steps helped:

 

  • Edit /system/etc/permissions/platform.xml

 

  • Find the following section
<permission name="android.permission.WRITE_EXTERNAL_STORAGE" >
    <group gid="sdcard_r" />
    <group gid="sdcard_rw" />
</permission>

  • Add <group gid=”media_rw” /> to make it look like that
<permission name="android.permission.WRITE_EXTERNAL_STORAGE" >
    <group gid="sdcard_r" />
    <group gid="sdcard_rw" />
     <group gid="media_rw" />
</permission>

  • Reboot your phone