Skip to content

Instantly share code, notes, and snippets.

View tolleiv's full-sized avatar

Tolleiv Nietsch tolleiv

  • Bare.ID Gmbh - an AOE Group company
  • Wiesbaden, Deutschland
View GitHub Profile
@tolleiv
tolleiv / README.md
Last active August 29, 2015 14:05
Zabbix Info Widget

Zabbix Info Widget

This is a Dashing widget and all components needed to outline some general Zabbix server numbers.

##Usage

To use this widget, copy zabbix_info.html, zabbix_info.coffee, and zabbix_info.scss into the /widgets/zabbix_info directory. Put the zabbix_info.rb file in your /jobs folder. Or simply run dashing install d7ab8e1611330e0fdf76 to let dashing do that for you.

To include the widget in a dashboard, add the following snippet to the dashboard layout file:

@tolleiv
tolleiv / README.md
Last active October 13, 2022 07:03
Font Awesome Dashing Widget

Font Awesome Dashing Widget

This is a Dashing widget and all components needed to port the original radiator information into an Dashing Widget.

##Usage

To use this widget, copy fa.html, fa.coffee, and fa.scss into the /widgets/fa directory. Or simply run dashing install da8fcf69316b1d16fcf6 to let dashing do that for you.

To include the widget in a dashboard, add the following snippet to the dashboard layout file:

@tolleiv
tolleiv / README.md
Created August 31, 2014 15:08
Zabbix Jobs

...

@tolleiv
tolleiv / graph.sh
Created September 9, 2014 21:44
RRDtool example code
#!/bin/bash
let time=1407882500
let now=$(( time+300 ))
rm datafile.rrd
rrdtool create datafile.rrd --start $time --step 60 \
DS:hdduse:GAUGE:100:0:100 \
RRA:AVERAGE:0.5:1:1440 \
@tolleiv
tolleiv / README.md
Last active August 29, 2015 14:06
An example logstash setup
@tolleiv
tolleiv / statsd-zabbix.sh
Created September 29, 2014 09:12
Building a statsd backage with the Zabbix backend configured
https://github.com/etsy/statsd
https://github.com/parkerd/statsd-zabbix-backend
https://www.digitalocean.com/community/tutorials/how-to-configure-statsd-to-collect-arbitrary-stats-for-graphite-on-ubuntu-14-04
apt-get install python-software-properties
apt-add-repository ppa:chris-lea/node.js
apt-get update
apt-get install git nodejs npm devscripts debhelper
mkdir ~/build
cd ~/build
@tolleiv
tolleiv / test.sh
Created March 31, 2015 20:40
TTFB measurement - measuring connection, time to first byte and total connection time for a web request
#!/bin/bash
curl -s -o /dev/null -w "Connect: %{time_connect} TTFB: %{time_starttransfer} Total time: %{time_total} \n" $1
@tolleiv
tolleiv / README.md
Last active August 10, 2021 21:01
Fortigate 300C logstash log parsing

Fortigate 300c log parsing in Logstash

QA ca be done with:

logstash-1.4.2/bin/logstash rspec --format documentation test.rb

@tolleiv
tolleiv / .htaccess
Last active August 29, 2015 14:19
Cache Header Demo
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule .* /cms.php
@tolleiv
tolleiv / README.md
Last active August 29, 2015 14:25
Mnfst-Sneakpeak

.