This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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: |
NewerOlder