Skip to content

Instantly share code, notes, and snippets.

View mrlesmithjr's full-sized avatar

Larry Smith Jr. mrlesmithjr

View GitHub Profile
global
log logstash local0 #Change logstash to your naming
log-send-hostname
chroot /var/lib/haproxy
user haproxy
group haproxy
daemon
maxconn 4000
defaults
watchdog /dev/watchdog
logfile /var/log/ha-log
debugfile /var/log/ha-debug
deadtime 5
warntime 10
initdead 15
bcast eth1
auto_failback on
node haproxy-1
node haproxy-2
@mrlesmithjr
mrlesmithjr / Apache_Dashboard
Last active August 29, 2015 14:02
Logstash Apache Dashboard
{
"title": "Apache",
"services": {
"query": {
"list": {
"0": {
"id": 0,
"color": "#7EB26D",
"alias": "Exclude from Top Page Requests",
"pin": false,
@mrlesmithjr
mrlesmithjr / IIS Dashboard
Last active December 10, 2015 14:10
Logstash IIS Dashboard
{
"title": "IIS",
"services": {
"query": {
"list": {
"0": {
"query": "agent:MSIE",
"alias": "",
"color": "#806EB7",
"id": 0,
@mrlesmithjr
mrlesmithjr / Nginx Dashboard
Last active December 10, 2015 14:10
Logstash Nginx Dashboard
{
"title": "Nginx",
"services": {
"query": {
"list": {
"0": {
"id": 0,
"color": "#7EB26D",
"alias": "Exclude from Top Page Requests",
"pin": false,
@mrlesmithjr
mrlesmithjr / PFsense Firewall Dashboard
Last active December 17, 2017 18:09
Logstash PFsense Firewall Dashboard
{
"title": "PFSense Firewall",
"services": {
"query": {
"idQueue": [],
"list": {
"0": {
"query": "*",
"alias": "",
"color": "#7EB26D",
@mrlesmithjr
mrlesmithjr / Syslog Dashboard
Last active January 6, 2017 20:24
Logstash Syslog Dashboard
{
"title": "Syslog",
"services": {
"query": {
"list": {
"0": {
"query": "*",
"alias": "",
"color": "#7EB26D",
"id": 0,
@mrlesmithjr
mrlesmithjr / VMware Dashboard
Last active August 29, 2015 14:02
Logstash VMware Dashboard
{
"title": "VMware",
"services": {
"query": {
"list": {
"0": {
"query": "*",
"alias": "",
"color": "#7EB26D",
"id": 0,
@mrlesmithjr
mrlesmithjr / Windows Dashboard
Last active December 10, 2015 14:10
Logstash Windows Dashboard
{
"title": "Windows",
"services": {
"query": {
"list": {
"0": {
"query": "*",
"alias": "",
"color": "#7EB26D",
"id": 0,
vrrp_script chk_haproxy {
script "killall -0 haproxy" # verify the pid existance
interval 2 # check every 2 seconds
weight 2 # add 2 points of prio if OK
}
vrrp_instance VI_1 {
interface eth0 # interface to monitor
state MASTER
virtual_router_id 51 # Assign one ID for this route