Page 1 of 2
check_radius_adv issue 2
Posted: Mon Jun 19, 2017 1:50 am
by SundanceRaphael
I got NagiosXi out of the box with check_radius_adv support.
According to the issue tracking from github
https://github.com/nagios-plugins/nagio ... issues/271 I should leave a message here. Internal bug number is #12044.
Some documentations speaks of a check_radius that should be used. Maybe it means this
https://github.com/nagios-plugins/nagio ... k_radius.c?
But can't find it in installed source or the deprecate comment in the documentation.
In the in the forum entry (
https://support.nagios.com/forum/viewto ... =6&t=35305) is a replacement of check_radius_adv is suggested to use.
I installed the replacement and get the following error
Code: Select all
Can't locate Authen/Radius.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at ./check_radius.pl line 28.
BEGIN failed--compilation aborted at ./check_radius.pl line 28.
Seems to be there is
is missing. Have you an suggestion to get this running?
Is it possible to put a known running plugin to the default install? Or at least remove the plugin from default install? It is very confusing to get a broken plugin from default.
//System
Nagios XI Version : 5.4.5
CentOS release 6.9 (Final)
Gnome is not installed
Re: check_radius_adv issue 2
Posted: Mon Jun 19, 2017 12:52 pm
by scottwilkerson
You should be able to install that from CPAN
Code: Select all
cd /tmp
wget http://search.cpan.org/CPAN/authors/id/P/PO/PORTAONE/Authen-Radius-0.26.tar.gz
tar xzf Authen-Radius-0.26.tar.gz
cd Authen-Radius-0.26
perl Makefile.PL
make
make test
make install
Re: check_radius_adv issue 2
Posted: Tue Jun 20, 2017 9:42 am
by SundanceRaphael
Make test fails with
Code: Select all
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/decode.t ...... 1/?
# Failed test 'use Authen::Radius;'
# at t/decode.t line 6.
# Tried to use 'Authen::Radius'.
# Error: Can't locate Data/HexDump.pm in @INC (@INC contains: /tmp/Authen-Radius-0.26/blib/lib /tmp/Authen-Radius-0.26/blib/arch /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /tmp/Authen-Radius-0.26/blib/lib/Authen/Radius.pm line 27.
# BEGIN failed--compilation aborted at /tmp/Authen-Radius-0.26/blib/lib/Authen/Radius.pm line 27.
# Compilation failed in require at (eval 4) line 2.
# BEGIN failed--compilation aborted at (eval 4) line 2.
Can't locate object method "load_dictionary" via package "Authen::Radius" at t/decode.t line 11.
# Tests were run but no plan was declared and done_testing() was not seen.
t/decode.t ...... Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 1/1 subtests
t/dictionary.t .. Can't locate Test/NoWarnings.pm in @INC (@INC contains: /tmp/Authen-Radius-0.26/blib/lib /tmp/Authen-Radius-0.26/blib/arch /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at t/dictionary.t line 5.
BEGIN failed--compilation aborted at t/dictionary.t line 5.
# Looks like your test exited with 2 before it could output anything.
t/dictionary.t .. Dubious, test returned 2 (wstat 512, 0x200)
Failed 9/9 subtests
t/digest.t ...... Can't locate Test/NoWarnings.pm in @INC (@INC contains: /tmp/Authen-Radius-0.26/blib/lib /tmp/Authen-Radius-0.26/blib/arch /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at t/digest.t line 4.
BEGIN failed--compilation aborted at t/digest.t line 4.
# Looks like your test exited with 2 before it could output anything.
t/digest.t ...... Dubious, test returned 2 (wstat 512, 0x200)
Failed 3/3 subtests
t/encode.t ...... Can't locate Test/NoWarnings.pm in @INC (@INC contains: /tmp/Authen-Radius-0.26/blib/lib /tmp/Authen-Radius-0.26/blib/arch /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at t/encode.t line 4.
BEGIN failed--compilation aborted at t/encode.t line 4.
# Looks like your test exited with 2 before it could output anything.
t/encode.t ...... Dubious, test returned 2 (wstat 512, 0x200)
Failed 23/23 subtests
t/error.t ....... Can't locate Test/NoWarnings.pm in @INC (@INC contains: /tmp/Authen-Radius-0.26/blib/lib /tmp/Authen-Radius-0.26/blib/arch /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at t/error.t line 4.
BEGIN failed--compilation aborted at t/error.t line 4.
# Looks like your test exited with 2 before it could output anything.
t/error.t ....... Dubious, test returned 2 (wstat 512, 0x200)
Failed 9/9 subtests
t/tag.t ......... Can't locate Test/NoWarnings.pm in @INC (@INC contains: /tmp/Authen-Radius-0.26/blib/lib /tmp/Authen-Radius-0.26/blib/arch /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at t/tag.t line 5.
BEGIN failed--compilation aborted at t/tag.t line 5.
# Looks like your test exited with 2 before it could output anything.
t/tag.t ......... Dubious, test returned 2 (wstat 512, 0x200)
Failed 17/17 subtests
t/vendor.t ...... Can't locate Test/NoWarnings.pm in @INC (@INC contains: /tmp/Authen-Radius-0.26/blib/lib /tmp/Authen-Radius-0.26/blib/arch /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at t/vendor.t line 4.
BEGIN failed--compilation aborted at t/vendor.t line 4.
# Looks like your test exited with 2 before it could output anything.
t/vendor.t ...... Dubious, test returned 2 (wstat 512, 0x200)
Failed 8/8 subtests
Test Summary Report
-------------------
t/decode.t (Wstat: 65280 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 255
Parse errors: No plan found in TAP output
t/dictionary.t (Wstat: 512 Tests: 0 Failed: 0)
Non-zero exit status: 2
Parse errors: Bad plan. You planned 9 tests but ran 0.
t/digest.t (Wstat: 512 Tests: 0 Failed: 0)
Non-zero exit status: 2
Parse errors: Bad plan. You planned 3 tests but ran 0.
t/encode.t (Wstat: 512 Tests: 0 Failed: 0)
Non-zero exit status: 2
Parse errors: Bad plan. You planned 23 tests but ran 0.
t/error.t (Wstat: 512 Tests: 0 Failed: 0)
Non-zero exit status: 2
Parse errors: Bad plan. You planned 9 tests but ran 0.
t/tag.t (Wstat: 512 Tests: 0 Failed: 0)
Non-zero exit status: 2
Parse errors: Bad plan. You planned 17 tests but ran 0.
t/vendor.t (Wstat: 512 Tests: 0 Failed: 0)
Non-zero exit status: 2
Parse errors: Bad plan. You planned 8 tests but ran 0.
Files=7, Tests=1, 0 wallclock secs ( 0.00 usr 0.03 sys + 0.06 cusr 0.03 csys = 0.12 CPU)
Result: FAIL
Failed 7/7 test programs. 1/1 subtests failed.
make: *** [test_dynamic] Error 2
Seems to be that now HexDump.pm is missing.
//System
Nagios XI Version : 5.4.5
CentOS release 6.9 (Final)
Gnome is not installed
Re: check_radius_adv issue 2
Posted: Tue Jun 20, 2017 4:25 pm
by tgriep
Hexdump and NoWarnings are missing. Run the following as root to install them on the server.
Code: Select all
cpan -i Data::HexDump
yum install perl-Test-NoWarnings
Then run the make test again. If it passes, continue on with the installation of the plugin.
Re: check_radius_adv issue 2
Posted: Wed Jun 21, 2017 1:42 am
by SundanceRaphael
After running
I got following error:
Code: Select all
Can't locate Net/IP.pm in @INC (@INC contains: /tmp/Authen-Radius-0.26/blib/lib /tmp/Authen-Radius-0.26/blib/arch /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /tmp/Authen-Radius-0.26/blib/lib/Authen/Radius.pm line 28.
I had to install additionally
Now it works. Thanks for advice.
Re: check_radius_adv issue 2
Posted: Wed Jun 21, 2017 10:40 am
by tgriep
Your welcome, glad it worked for you.
If you don't have any related questions about this post, shall I mark it as solved and lock it up for you?
Re: check_radius_adv issue 2
Posted: Thu Jun 22, 2017 4:51 am
by SundanceRaphael
Dear Tgriep,
The initial question is still open:
The out of the box plugin check_radius_adv is broken.The output of the password string is still miss formed. Internal bug number is #12044.
Is there a possibility to get check_radius_adv running again?
The original forum post is from 20 of October 2015/ issue request on github May 2017.
How can i check the Internal bug ticket #12044 out?
Best regards
Sundance Raphael
Re: check_radius_adv issue 2
Posted: Thu Jun 22, 2017 12:24 pm
by cdienger
Dev is still looking into the options on this. As the person who filed the bug on github, I too am eager to see this put to bed.
Re: check_radius_adv issue 2
Posted: Tue Jul 04, 2017 3:13 am
by SundanceRaphael
Are there changes in Ticket state?
Is there the possibility to look into the code (link)?
Re: check_radius_adv issue 2
Posted: Wed Jul 05, 2017 4:06 pm
by cdienger
Case is still being investigated. The plugin code can be found at
http://nagios-plugins.org/ (
https://nagios-plugins.org/download/nag ... 2.1.tar.gz specifically).