Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_radius_ih
Meet The New Nagios Core Services Platform
Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.
Monitoring Made Magically Better
- Nagios Core on Overdrive
- Powerful Monitoring Dashboards
- Time-Saving Configuration Wizards
- Open Source Powered Monitoring On Steroids
- And So Much More!
++ The advanced featetures compared to original check_radius_adv are:
* radius attributes used for the authentication can be defined on command line.
++ Installation
Just unpack the file. And afterwards use ./configure and make
++ Command line
{{
check_radius_ih -h
Usage: # ./check_radius_ih OPTIONS...
OPTIONS
-v verbose (output with verification)
-u [username] cleartext username
-p [password] cleartext password
-s [shared secret] shared secret for RADIUS server
-r [radius server] radius server to auth off of
-c [radius port] radius server port
-t [auth timeout] interval to wait until auth timeout in seconds
-a [attributes] filename of the attributes file (see samplefile)
-A [attributes] attributes list semicolon separated (same format
as samplefile)
-o [ok state] auth reply code which will return ok state
-m [replymsg] expected replymsg (type=18)
-h this menu
Examples:
./check_radius_ih
-v
-u pepito
-p 'r3pikn'
-s 'kmPANAs'
-r localhost
-t 10
-A '4 0 0 A 192.168.20.1; 61 0 0 I 15; 26 3414 41 I 1; 26 3414 42 I 2'
}}
* radius attributes used for the authentication can be defined on command line.
++ Installation
Just unpack the file. And afterwards use ./configure and make
++ Command line
{{
check_radius_ih -h
Usage: # ./check_radius_ih OPTIONS...
OPTIONS
-v verbose (output with verification)
-u [username] cleartext username
-p [password] cleartext password
-s [shared secret] shared secret for RADIUS server
-r [radius server] radius server to auth off of
-c [radius port] radius server port
-t [auth timeout] interval to wait until auth timeout in seconds
-a [attributes] filename of the attributes file (see samplefile)
-A [attributes] attributes list semicolon separated (same format
as samplefile)
-o [ok state] auth reply code which will return ok state
-m [replymsg] expected replymsg (type=18)
-h this menu
Examples:
./check_radius_ih
-v
-u pepito
-p 'r3pikn'
-s 'kmPANAs'
-r localhost
-t 10
-A '4 0 0 A 192.168.20.1; 61 0 0 I 15; 26 3414 41 I 1; 26 3414 42 I 2'
}}
Reviews (2)
bycandlerb, February 15, 2018
Useless: password+shared secret is encrypted wrongly, as shown by garbage User-Password received at Freeradius.
This is still the case after fixing the most immediately obvious bugs:
--- check_radius_ih.c.orig 2018-02-15 13:35:01.467142532 +0000
+++ check_radius_ih.c 2018-02-15 13:35:21.572082237 +0000
@@ -38,6 +38,7 @@
#include
#include
#include
+#include ^lt;limits.h>
#include "md5.h"
@@ -254,7 +255,7 @@
void fnInitialize(RADIUS_HEADER *radhead)
{
memset(&global,0,sizeof(GLOBAL));
- memset(radhead,0,sizeof(radhead));
+ memset(radhead,0,sizeof(*radhead));
radhead->rad_attr = NULL;
@@ -558,7 +559,7 @@
}
regfree(®ex);
}
- memset(buffer,MAX_BUFFER,0);
+ memset(buffer,0,MAX_BUFFER);
}
/*
This is still the case after fixing the most immediately obvious bugs:
--- check_radius_ih.c.orig 2018-02-15 13:35:01.467142532 +0000
+++ check_radius_ih.c 2018-02-15 13:35:21.572082237 +0000
@@ -38,6 +38,7 @@
#include
#include
#include
+#include ^lt;limits.h>
#include "md5.h"
@@ -254,7 +255,7 @@
void fnInitialize(RADIUS_HEADER *radhead)
{
memset(&global,0,sizeof(GLOBAL));
- memset(radhead,0,sizeof(radhead));
+ memset(radhead,0,sizeof(*radhead));
radhead->rad_attr = NULL;
@@ -558,7 +559,7 @@
}
regfree(®ex);
}
- memset(buffer,MAX_BUFFER,0);
+ memset(buffer,0,MAX_BUFFER);
}
/*
byhavrla, July 5, 2016
Heloo
compile error:
check_radius_ih.c:148:18: error: ‘PATH_MAX’ undeclared here (not in a function)
solution:
add to file check_radius_ih.c
#include
example:
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
:-)
Havrla
compile error:
check_radius_ih.c:148:18: error: ‘PATH_MAX’ undeclared here (not in a function)
solution:
add to file check_radius_ih.c
#include
example:
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
:-)
Havrla