misipino wrote:misipino wrote:Hi,
launching the script on the shell my output is:
[root@cacti scripts]# ./radstatus.sh auth 172.25.0.23 cacti
FreeRADIUS-Total-Access-Requests:4713 FreeRADIUS-Total-Access-Accepts:4719 FreeRADIUS-Total-Access-Rejects:0 FreeRADIUS-Total-Access-Challenges:0 FreeRADIUS-Total-Auth-Responses:4719 FreeRADIUS-Total-Auth-Duplicate-Requests:0 FreeRADIUS-Total-Auth-Malformed-Requests:0 FreeRADIUS-Total-Auth-Invalid-Requests:0 FreeRADIUS-Total-Auth-Dropped-Requests:0 FreeRADIUS-Total-Auth-Unknown-Types:0[root@cacti scripts]#
but in log there is:
04/25/2010 04:05:21 AM - CMDPHP: Poller[0] Host[21] DS[628] CMD: /var/www/html/cacti/scripts/radstatus.sh auth 172.25.0.23 cacti , output: U
04/25/2010 04:05:21 AM - CMDPHP: Poller[0] Host[21] DS[627] WARNING: Result from CMD not valid. Partial Result: U
There is anything to change in to radius server or client?
Thanks
Two problem find and solved.
The file /usr/local/etc/raddb/dictionary must read from cactiuser (644)
In the script, the radclient path must be specified (/usr/local/bin)
echo -e "Message-Authenticator = $3\n$FR_STAT_ATTR_NAME = $QTYPE" |\
/usr/local/bin/radclient ${2}$UDP_PORT status $3 |\
sed '1d;s/\ =\ /:/' |\
tr -d '\n' |\
tr '\t' ' '
I have the same problem: "08/17/2010 10:50:01 PM - CMDPHP: Poller[0] Host[2] DS[19] WARNING: Result from CMD not valid. Partial Result: U "
But the script run correctly... here
Script: /usr/local/share/cacti/scripts/radstatus.sh auth 127.0.0.1 adminsecret 18120
RRD: /usr/local/share/cacti/rra/radius_tds_auth_drop_19.rrd
# /usr/local/share/cacti/scripts/radstatus.sh acct 127.0.0.1 adminsecret 18120
FreeRADIUS-Total-Accounting-Requests:5 FreeRADIUS-Total-Accounting-Responses:5 FreeRADIUS-Total-Acct-Duplicate-Requests:0 FreeRADIUS-Total-Acct-Malformed-Requests:0 FreeRADIUS-Total-Acct-Invalid-Requests:0 FreeRADIUS-Total-Acct-Dropped-Requests:0 FreeRADIUS-Total-Acct-Unknown-Types:0#
# /usr/local/share/cacti/scripts/radstatus.sh auth 127.0.0.1 adminsecret 18120
FreeRADIUS-Total-Access-Requests:0 FreeRADIUS-Total-Access-Accepts:1 FreeRADIUS-Total-Access-Rejects:0 FreeRADIUS-Total-Access-Challenges:0 FreeRADIUS-Total-Auth-Responses:1 FreeRADIUS-Total-Auth-Duplicate-Requests:0 FreeRADIUS-Total-Auth-Malformed-Requests:0 FreeRADIUS-Total-Auth-Invalid-Requests:0 FreeRADIUS-Total-Auth-Dropped-Requests:0 FreeRADIUS-Total-Auth-Unknown-Types:0#
I made the changes and download the lasted version.
Have anyone some suggestion?
Thx