{"id":746,"date":"2014-02-26T19:35:01","date_gmt":"2014-02-26T19:35:01","guid":{"rendered":"http:\/\/www.gregkuchyt.net\/?p=746"},"modified":"2014-02-27T18:58:00","modified_gmt":"2014-02-27T18:58:00","slug":"check_radius-nagios-check","status":"publish","type":"post","link":"https:\/\/www.gregkuchyt.net\/?p=746","title":{"rendered":"check_radius nagios check"},"content":{"rendered":"<p>Now that we are a participating SP\/IdP for <a href=\"https:\/\/www.eduroam.us\">eduroam<\/a> we wanted to monitor the two top-level radius servers in use on their side. Their wiki suggests using the <a href=\"http:\/\/exchange.nagios.org\/directory\/Uncategorized\/check_radius-2Epl\/details\">check_radius.pl plugin<\/a> available on the Nagios plugin directory. I found it to be a little too limiting and not well-tailored for monitoring so I went ahead and made some modifications. Below is the source for it along with a summary of the changes I&#8217;ve made.<\/p>\n<h4>Changes<\/h4>\n<ul>\n<li>Changed the default port value to 1812 from 18120<\/li>\n<li>Remove -e flag to execute an arbitrary script\/binary if status != OK, this is just for monitoring.<\/li>\n<li>Add -S flag to specify secret file rather than providing it on the command-line<\/li>\n<li>Add -b flag to specify arbitrary path to radclient (was a hard-coded path in original)<\/li>\n<li>Modify -d flag to additionally pass the -x flag to radclient<\/li>\n<li>Modified behavior of -H flag to support comma-delimitted list of hostnames<\/li>\n<li>Modified output to show timing thresholds for all checks as well as each host&#8217;s status and time taken for response<\/li>\n<\/ul>\n<h4>Output<\/h4>\n<p><code>OK: (w:3;c:5;t:10) tlrs1.eduroam.us (0.056135 sec): OK; tlrs2.eduroam.us (0.08103 sec): OK<\/code>\n<\/p>\n<h4>Source<\/h4>\n<p><a href=\"https:\/\/github.com\/kuchytgj\/check_radius\">check_radius on GitHub<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Now that we are a participating SP\/IdP for eduroam we wanted to monitor the two top-level radius servers in use on their side. Their wiki suggests using the check_radius.pl plugin available on the Nagios plugin directory. I found it to be a little too limiting and not well-tailored for monitoring so I went ahead and [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[9],"tags":[],"class_list":["post-746","post","type-post","status-publish","format-standard","hentry","category-work"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4mwGD-c2","_links":{"self":[{"href":"https:\/\/www.gregkuchyt.net\/index.php?rest_route=\/wp\/v2\/posts\/746","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gregkuchyt.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gregkuchyt.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gregkuchyt.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gregkuchyt.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=746"}],"version-history":[{"count":9,"href":"https:\/\/www.gregkuchyt.net\/index.php?rest_route=\/wp\/v2\/posts\/746\/revisions"}],"predecessor-version":[{"id":762,"href":"https:\/\/www.gregkuchyt.net\/index.php?rest_route=\/wp\/v2\/posts\/746\/revisions\/762"}],"wp:attachment":[{"href":"https:\/\/www.gregkuchyt.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=746"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gregkuchyt.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=746"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gregkuchyt.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=746"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}