Skip to content

Instantly share code, notes, and snippets.

View baskarp's full-sized avatar

Baskar Puvanathasan baskarp

View GitHub Profile
@baskarp
baskarp / import_users.rb
Created December 18, 2012 20:07
A simple Ruby script to import users into PagerDuty from a CSV file
#!/usr/bin/env ruby
require 'rubygems'
require 'faraday'
require 'json'
require 'csv'
class PagerDutyAgent
attr_reader :requester_id
attr_reader :token
@baskarp
baskarp / pagerduty_nagios.pl
Created July 20, 2012 08:48
PagerDuty Nagios plug-in with support for FLAPPINGSTART and FLAPPINGSTOP
#!/usr/bin/env perl
# Nagios plugin that sends Nagios events to PagerDuty.
#
# Copyright (c) 2011, PagerDuty, Inc. <info@pagerduty.com>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met: