Skip to content

Instantly share code, notes, and snippets.

View djjudas21's full-sized avatar

Jonathan djjudas21

View GitHub Profile
@djjudas21
djjudas21 / update-puppet-modules.pl
Created January 6, 2015 09:34
update-puppet-modules.pl
#!/usr/bin/perl -w
use Switch;
# check we are root first
if ( $< != 0 ) {
print "This script must be run as root\n";
exit (0);
}
@djjudas21
djjudas21 / check_radius_status.pl
Last active March 22, 2018 11:58
Nagios plugin to check RADIUS status
#!/usr/bin/perl -w
use strict;
use Config::Tiny;
# Sample command
# echo "Message-Authenticator = 0x00, FreeRADIUS-Statistics-Type = 7" | radclient HOSTNAME:PORT status SECRET
# Sample response
# Received response ID 183, code 2, length = 344