Category: Server

  • Software Raid monitoring in Zabbix 3.2

    Item1: Item1: Name: Software Raid exist Type: Zabbix Agent Key: vfs.file.regmatch[/proc/mdstat,raid] Type of information: Character Application: Filesystem Item2: Name: Software Raid broken Type: Zabbix Agent Key: vfs.file.regmatch[/proc/mdstat,_] Type of information: Character Application: Filesystem Trigger1: Name: Software raid broken {HOSTNAME} Severity: Disaster Expression: {Template OS Linux:vfs.file.regmatch[/proc/mdstat,raid].last(0)}>0 and {Template OS Linux:vfs.file.regmatch[/proc/mdstat,_].last(0)}>0

  • FreeNas Useful Commands

    Useful command for FreeNas View Zpool info zpool status -v View smart info smartctl -a /dev/<device> View Gids glabel status More useful commands: https://forums.freenas.org/index.php?threads/useful-commands.30314/

  • Scsi Autoloader commands

    mtx -f /dev/sg5 status mtx -f /dev/sg5 unload Ladda band från slot 4 mtx -f /dev/sg5 load 4 Listar scsi devices med sg namn lsscsi -g

  • Backup of MSSQL database

    Create stored procedure. // Copyright © Microsoft Corporation. All Rights Reserved. // This code released under the terms of the // Microsoft Public License (MS-PL, http://opensource.org/licenses/ms-pl.html.) USE [master] GO /****** Object: StoredProcedure [dbo].[sp_BackupDatabases] ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO — ============================================= — Author: Microsoft — Create date: 2010-02-06 — Description: Backup Databases…

  • Install Tomcat 8 on Ubuntu 16.04

    https://www.digitalocean.com/community/tutorials/how-to-install-apache-tomcat-8-on-ubuntu-16-04

  • Tomcat 8 install Ubuntu 14.04

    https://www.digitalocean.com/community/tutorials/how-to-install-apache-tomcat-8-on-ubuntu-14-04

  • Telldus core install on Ubuntu

    Console based installation Add the following lines to your /etc/apt/sources.list: deb http://download.telldus.com/debian/ stable main The Telldus public key for apt-secure can be downloaded  here. You can add this key with sudo apt-key add telldus-public.key or combine downloading and registering: wget -q http://download.telldus.se/debian/telldus-public.key -O- | sudo apt-key add – The key fingerprint is 70C4 10C9 D73D…

  • Telldus SDK install Ubuntu from sources

    SDK Download here: http://download.telldus.se/TellStick/Software/telldus-core/ sudo apt-get install doxygen build-essential libftdi1 libftdi-dev libconfuse0 libconfuse-dev cmake wget http://developer.telldus.com/export/4342bbaa1dcd90011b66e8c1540db6ba904877fe/telldus-core/Doxyfile.in

  • Tomcat Jaas

    http://www.byteslounge.com/tutorials/jaas-authentication-in-tomcat-example

  • Tomcat Debug

    Run jvisualvm