Nagios Exchange Nagios Exchange
  • Home
  • Directory
  • Library
  • Support
  • About
  • Submit Feedback

Advanced Search

Build precise queries to find exactly what you need

Search Logic

Select compatible versions

Press ESC to close

Sign In Sign Up

Nagios World Conference 2026: Sept. 14-17 in St. Paul, MN | Learn More

  • Home
  • Directory
  • Library
  • Support
  • About
  • Submit Feedback
Plugins4406Themes and Skins13Add-ons760Graphics and Logos36View All Categories
LinuxSecuritySNMPFile SystemCloud
New Listings Recently Updated Listings Most Favored Listings Most Popular Listings Most Rated Listings Most Reviewed Listings
Random Project
RAID Controllers check_cciss – HP and Compaq Smart Array Hardware status
4.3 (26)
223.5K
RSS Feed
Newest Listings Updated Listings
Top Contributors
deskwork_itunes142 (4)Davide Lemma (3)Chad Columbus (3)Marcin Bednarski (3)Andrea Bolongaro (2)
See More
Newest Contributors
pawal (1)matthewducey (1)Linuxfabrik (1)signalgrid (1)Sanna Glue (2)
See More

Copyright © 2009-2026 Nagios Enterprises, LLC. All rights reserved.

Privacy PolicyTerms of UseTrademarks
Home > Ulrik Haugen
UH

Ulrik Haugen

@qha

User Stats

Member Since: May 2, 2012

Favorites0

Views

Projects0

No Projects Found
check_radius.pl

Very useful but some rough edges

Calling '/etc/init.d/radiusd restart' the first time I manage to supply all required options but hadn't configured my radius server well enough to permit the status-server request was rather excessive. Also the plugin has a hard coded path to radclient that isn't where my distribution installed it. I made some changes to make it easier to use, patchset pasted below, if you're responsible for this plugin and would like the patchset in a less likely to be mangled form please let me know! ---------------------- 80,'WARNING'=>1,'CRITICAL'=>2,'UNKNOWN'=>3,'DEPENDENT'=>4); @@ -33,22 +42,27 @@ print $o_debug, - 'H|hostname:s' => $host, - 'P|port:i' => $port, - 'w|warning:i' => $w, - 'c|critical:i' => $c, - 't|timeout:s' => $t, - 'e|exec:s' => $exec, - 's|secret:s' => $secret, - + 'h|help' => $help, + 'd|debug' => $debug, + 'H|hostname:s' => $host, + 'P|port:i' => $port, + 'w|warning:i' => $w, + 'c|critical:i' => $c, + 't|timeout:s' => $t, + 'e|exec:s' => $exec, + 'r|radclient:s' => $radclient, + 's|secret:s' => $secret, + ); - usage() if (defined($o_help)); - $debug = 1 if (defined($o_debug)); - if ( $port !~ /^d+$/ or ($port 65535)) { + usage() if (defined($help)); + if ( $port !~ /^d+$/ or ($port 65535)) { print "nPlease insert an integer value between 1 and 65535n"; usage(); } @@ -90,7 +101,11 @@ sub check_options () { if ( $t !~ /^d+$/ or $t /dev/null 2>&1") != 0) { + print "n$radclient used for radclient not found.n"; + usage(); + } if ( !defined($secret) ) { print "nPlease supply the secret for $hostn"; usage(); @@ -122,7 +137,7 @@ print " | "; print "'Response Time'=$elapsed;$w;$c;0;$tn"; if ( $? != 0 and defined($exec)) { - print "DEBUG: radclient timeout: executing "$exec"n"; + print "DEBUG: radclient timeout: executing "$exec"n" if $debug; system("$exec 1>/dev/null 2>/dev/null"); }

Reviewed 14 years ago

No Favorites Found

Copyright © 2009-2026 Nagios Enterprises, LLC. All rights reserved.

Privacy PolicyTerms of UseTrademarks
Home Browse Submit Profile