Monitor FreeNAS Alerts and Replications using Nagios/OP5

Created a quick and simple python script for monitoring FreeNAS alerts and replication status. It´s based on one of the FreeNAS API examples found here: https://github.com/freenas/freenas/blob/master/examples/api/startup.py #!/usr/bin/env python # Tip: To ignore capacity warnings which are set quite low, change these rows in check_alerts(): # if alert[‘level’] != ‘OK’: # if alert[‘message’].find(‘capacity for the volume’)… Continue reading Monitor FreeNAS Alerts and Replications using Nagios/OP5

rar2fs on FreeNAS 9.2 embeded

EDIT 2021-05-14: Ive added a new post for TrueNAS 12 that can be found here: http://goran.tornqvist.ws/2021/05/14/rar2fs-on-truenas/ This is a quick guide on how I configured rar2fs on my FreeNAS-9.2.1.8 and shared a rar2fs directory using Samba. My disk is mounted on /mnt/vol1. Did some tests on my “a few years old hardware” and I got average file… Continue reading rar2fs on FreeNAS 9.2 embeded

Merlin Bigscreen – OP5 Monitor Unhandled Problems on big screen TV

A fork of Morten Bekkelunds nagios-dashboard based on the OP5 Monitor API. There is also another fork that uses livestatus that you may want to check out as well: https://kb.op5.com/display/LIVESTATUS/merlin-dashboard Note that in my fork, the html/css and fonts/colors may have changed a lot from the original due to lots of non developers playing around… Continue reading Merlin Bigscreen – OP5 Monitor Unhandled Problems on big screen TV

Internet streaming from your Dreambox using VLC transcoding

UPDATED: I rewritten my PHP scripts and released them on github as “Dreambox Transcoding Manager”: https://github.com/gorantornqvist/dreambox-transcoding-mgr Summary: A web based management tool written in PHP that allows you to start VLC transcoding processes on a linux box that streams the video from Enigma 1 and Enigma 2 dreamboxes in realtime to a quality of your… Continue reading Internet streaming from your Dreambox using VLC transcoding

Dreambox2Popcorn

Dreambox2Popcorn / Dreambox To Popcorn Stream TV from a Dreambox to a Popcorn Hour. Tested using DM-500 and A-100. Simple script to generate a html file that can be browsed on the Popcorn Hour box to change channel on the Dreambox (installed with Pli Jade image) and to stream the current channel directly from it.… Continue reading Dreambox2Popcorn

Sending snmp traps from shell scripts

This is short post describing a simple way to send snmp traps from shell scripts using net-snmp snmptrap program on Linux systems. Create the below shell script. Make sure you have at least 1 trapsink section in your snmpd.conf #!/bin/sh SNMPCOMMUNITY=public snmptrap() { for traphost in $(cat /etc/snmp/snmpd.conf | grep trapsink | awk ‘{print $2}’)… Continue reading Sending snmp traps from shell scripts

Video encoding for different purposes

This is a post for some ffmpeg/mencoder commands for encoding/extracting video/audio etc… Utilities used: ffmpeg: http://www.videohelp.com/tools/ffmpeg mencoder: http://www.videohelp.com/tools/MPlayer # Encoding to AVI/XVID (Also playable by CorePlayer for Windows Mobile) # br=92 means audio bitrate is 92 kb/s # -xy 800 means resolution width is 800 pixels # fixed_quant=5 is quality factor mencoder.exe “Movie.mkv” -oac mp3lame… Continue reading Video encoding for different purposes