Skip to content

Instantly share code, notes, and snippets.

View nicolasmarengo's full-sized avatar

Nicolas Marengo nicolasmarengo

View GitHub Profile
@nicolasmarengo
nicolasmarengo / gist:5965926
Created July 10, 2013 12:34
.htaccess with Load Balancer
SetEnvIF X-FORWARDED-FOR "^11\.111\.11\.11$" AllowIP
order deny,allow
allow from 11.111.11.11
allow from env=AllowIP
deny from all
@nicolasmarengo
nicolasmarengo / check_cronjob
Last active August 23, 2021 08:25
Nagios Plugin to check if a cronjob is enabled/disabled through NRPE, by checking if the line on crontab has been commented out or not.
#!/bin/bash
#
# Program : check_cronjob
#
PROGNAME=`basename $0`
REVISION=`echo '$Revision: 0.1 $' | sed -e 's/[^0-9.]//g'`
. /usr/lib/nagios/plugins/utils.sh