Skip to content

Instantly share code, notes, and snippets.

View junaid18183's full-sized avatar

Juned Memon junaid18183

View GitHub Profile
#Create a new issue in Jira from the Python XMLRPC interface. You'll have to
#provide the server and user credentials and match up your own fields
import sys
from xmlrpclib import Server
user = "username"
passwd = "passwd"
serverurl = "https://server.example.com/rpc/xmlrpc"
projectname = "demoproject"
@junaid18183
junaid18183 / nagios-client-install
Created July 11, 2013 09:37
This is the sample script to install the Nagios Plugins and NRPE on nagios clients, using compiling them.
#! /bin/bash
# Script to install nagios plugin and NRPE on nagios clients using downloading and compiling them.
# 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
@junaid18183
junaid18183 / cass_unreachable_nodes
Last active December 19, 2015 15:09
#These Nagios plug-in's monitors the Cassandra Cluster for number of nodes connected, and Unreachable nodes in Cassandra Ring; using nodetool ring command
#! /bin/bash
#This Plug-in monitors the Unreachable nodes in Cassandra Ring; using nodetool ring command
# Author - Juned Memon [email protected]
#########THIS part is for Nagios ################################
PROGNAME=`/usr/bin/basename $0`
@junaid18183
junaid18183 / hdfs_file_count
Created July 11, 2013 09:23
This is Nagios plug-in to monitor the HDFS direcory for number of files in it and sends the alert basis on the threshold
#!/bin/bash
#This Plug-in monitors the HDFS direcory for number of files in it and sends the alert basis on the threshold
# Author - Juned Memon [email protected]
#######################################################################################
#Nagios Exit Status
STATE_OK=0
STATE_WARNING=1