Fwd: Dashboard URL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Yuri,

I faced the same problem that recently only IP addresses are listed in
`ceph mgr services`

As a easy workarounf I installed a lightttp for just one CGI script:

########################################################################
#!/bin/bash

DASHBOARD=$(ceph mgr services | jq '.dashboard')

DASHIP=$(echo $DASHBOARD | awk -F[/:] '{print $4}')

if [[ $DASHIP =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
   DASHNAME=$(host $DASHIP | awk '{print $NF}' | sed 's/\.$//')
else
   DASHNAME=$DASHIP
fi

DASHURL='https://'${DASHNAME}:8443/

echo "Refresh: 2; url=$DASHURL"
echo "Content-type: text/html"
echo
echo  "You will be redirected to <a href=\"$DASHURL\">$DASHNAME</a> in 2
seconds..."

########################################################################

Yes, it's only a kludge, but it "works for me".
_______________________________________________
ceph-users mailing list -- ceph-users@xxxxxxx
To unsubscribe send an email to ceph-users-leave@xxxxxxx



[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux