This file contains hidden or 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
This widget creats the dashing dashboard for Hadoop DFS stats. | |
There is Job which parses the hadoop DFS status page and provides the below widget_event_id's | |
#Configured_Capacity | |
#DFS_Used | |
#Non_DFS_Used | |
#DFS_Remaining | |
#DFS_Used% | |
#DFS_Remaining% | |
#Block_Pool_Used |
This file contains hidden or 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
<% content_for :title do %>Hadoop dashboard<% end %> | |
<div class="gridster"> | |
<ul> | |
<li data-row="1" data-col="1" data-sizex="2" data-sizey="1"> | |
<div data-view="Clock"></div> | |
<i class="icon-time icon-background"></i> | |
</li> | |
<li data-row="2" data-col="1" data-sizex="1" data-sizey="1"> |
This file contains hidden or 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
#Source - http://www.haproxy.org/download/1.5/doc/configuration.txt | |
# Section - 9.2. Unix Socket commands | |
#show stat [<iid> <type> <sid>] | |
# Dump statistics in the CSV format. By passing <id>, <type> and <sid>, it is | |
# possible to dump only selected items : | |
# - <iid> is a proxy ID, -1 to dump everything | |
# - <type> selects the type of dumpable objects : 1 for frontends, 2 for | |
# backends, 4 for servers, -1 for everything. These values can be ORed, | |
# for example: |
This file contains hidden or 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/env python | |
#--------------------------------------------------------------------------------------------------------------- | |
# Author: | |
# Juned Memon <[email protected]> | |
# This is a simple Nagios plugin to check if any of the defined Jenkins Job is getting failed. | |
#--------------------------------------------------------------------------------------------------------------- | |
#Imports | |
import urllib2,sys,re,simplejson | |
#--------------------------------------------------------------------------------------------------------------- | |
#Variables |
This file contains hidden or 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
class Dashing.JenkinsOverallJobsStat extends Dashing.Widget | |
@accessor 'all_jobs', Dashing.AnimatedValue | |
@accessor 'failed_jobs', Dashing.AnimatedValue | |
@accessor 'disabled_jobs', Dashing.AnimatedValue | |
@accessor 'notbuilt_jobs', Dashing.AnimatedValue | |
@accessor 'arrow', -> | |
if (@get('failed_jobs') == 0 ) then 'value-up icon-caret-up' else 'icon-caret-down' | |
ready: -> | |
# This is fired when the widget is done being rendered |
This file contains hidden or 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 | |
# Step 1 --> Nagios plugins Installation | |
# add Nagios User with not shell access | |
useradd -s /sbin/nologin nagios | |
echo "user Nagios Added" >> /tmp/nagios_plugin_install.log | |
# Create a direcory at /root/nrpe to hold the Nagios plugin and Nrpe downloads; Download the Nagios Plugins |
This file contains hidden or 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
chmod 644 /etc/inet/services | |
tail -1 /etc/inet/services | |
check_mk 6556/tcp snmp # CheckMk | |
tail -1 /etc/inet/inetd.conf | |
check_mk stream tcp nowait root //usr/sfw/sbin/tcpd /usr/bin/check_mk_agent | |
inetconv |
This file contains hidden or 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
--- | |
- name: Deploy dbserver | |
hosts: all | |
user: root | |
pre_tasks: | |
vars : | |
- Dest : /etc/ansible/facts.d/sojourner.fact |
This file contains hidden or 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
#Ubuntu | |
#ps -ylC apache2 | awk '{x += $8;y += 1} END {print "Apache Memory Usage (MB): "x/1024; print "Average Proccess Size (MB): "x/((y-1)*1024)}' | |
#centos | |
ps -ylC httpd | awk '{x += $8;y += 1} END {print "Apache Memory Usage (MB): "x/1024; print "Average Proccess Size (MB): "x/((y-1)*1024)}' |
This file contains hidden or 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
Pragma: akamai-x-cache-on, akamai-x-cache-remote-on, akamai-x-check-cacheable, akamai-x-get-cache-key, akamai-x-get-extracted-values, akamai-x-get-nonces, akamai-x-get-ssl-client-session-id, akamai-x-get-true-cache-key, akamai-x-serial-no |