Skip to content

Instantly share code, notes, and snippets.

View jangaraj's full-sized avatar
💭
Devopsing, Dockerising, Grafanasing, Keycloaking, Clouding, Lambdasing,...

Jan Garaj jangaraj

💭
Devopsing, Dockerising, Grafanasing, Keycloaking, Clouding, Lambdasing,...
View GitHub Profile
@jangaraj
jangaraj / errcron.sh
Last active January 29, 2019 10:02
Basic cron wrapper
#!/bin/bash
# Reporting nonzero RC executions to syslog
# * * * * * root /usr/local/bin/errcron.sh <command>
# Installation: wget -O /usr/local/bin/errcron.sh https://gist.githubusercontent.com/jangaraj/c4c9262fe04156a40b02/raw/580ab988f9ff28c01cc9ee729ac9f0fe175b3a80/errcron.sh
OUT=$("$@" 2>&1)
RESULT=$?
if [ $RESULT -ne 0 ]
then
#!/usr/bin/python
# www.jangaraj.com
# Creating of submodules for https://github.com/zabbix/zabbix-community-repos
import os
import commands
# format of file
# https://github.com/jangaraj/Zabbix-Template-App-Zenoss Template App Zenoss (jangaraj)
with open('repos.txt') as f: