Freeradius Cacti

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
gilubilu
Posts: 3
Joined: Thu Apr 18, 2013 1:18 pm

Freeradius Cacti

Post by gilubilu »

I am trying to monitor the freeradius server by running a shell script (defined in previous posts) that sends the..

echo "Message-Authenticator = 0x00, FreeRADIUS-Statistics-Type = 3" | radclient 192.168.0.12:18120 status testing123

however when running the script I get the following

Code: Select all

which: no radclient in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
./radstatus.sh: line 46: radclient: command not found
do I need to have the radclient installed locally on the server running cacti or should it work without the radclient installed locally???

I was under the impression that cacti would somehow connect to the freeradius server and send the command there (to avoid the need for a local radclient)

any help would be appreciated.
alxgomz
Posts: 25
Joined: Fri Nov 14, 2008 9:20 pm

Re: Freeradius Cacti

Post by alxgomz »

Yes you *DO* need the radclient binary on the cacti host. That's why the scripts check for it and that's what it reports inthe error message.
If that's a blocker for you, you could rewrite the script in another language so it behave like a radiusclient. You would the depend on the radius client library for you language instead on the C radclient binary.
Not sure how useful it would be.
gilubilu
Posts: 3
Joined: Thu Apr 18, 2013 1:18 pm

Re: Freeradius Cacti

Post by gilubilu »

thanks for your reply.. adding radclient is a no go at this point.. I will consider using other methods.

Many thanks!

Cheers
alxgomz
Posts: 25
Joined: Fri Nov 14, 2008 9:20 pm

Re: Freeradius Cacti

Post by alxgomz »

Hi gilubilu,

Just being curious. Why is it a "no go"? Is it because of the dependencies (which I could understand, among other libpcap can make some ITs unconfortable)?
Is that just procedure related ( :roll: )?
Is that anything else?

Would a custom implementation of a radiusclient be more acceptable (given that the radius bindings for the chosen language would have to be installed)?

Thanks for the informations, Alex.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests