[asterisk-gui] some problems viewing 'System Info'

Paul Belanger pabelanger at gmail.com
Mon Dec 4 14:02:41 MST 2006


Ya, not too sure what happened but I did run that script, must have
been a permission issue.

Anyways, there seems to be some more problems with that menu,
specificly the syntax in the gui_sysinfo script for FreeBSD.  I have
created a new script but unsure how you want to merge it in.

-----
#!/bin/sh

GUI_SYSINFO=/usr/local/etc/asterisk/gui_sysinfo.conf

/bin/echo "[uname]" > ${GUI_SYSINFO}
UNAME="`/usr/bin/uname -mrs`"
/bin/echo "output =  $UNAME "  >> ${GUI_SYSINFO}

/bin/echo "[uptime]" >> ${GUI_SYSINFO}
UPTIME="`/usr/bin/uptime`"
/bin/echo "output = $UPTIME" >> ${GUI_SYSINFO}

/bin/echo "[asterisk]" >> ${GUI_SYSINFO}
ASTERISK="`/usr/local/sbin/asterisk -V`"
/bin/echo "output = $ASTERISK" >> ${GUI_SYSINFO}

/bin/echo "[today]" >> ${GUI_SYSINFO}
TODAY="`/bin/date`"
/bin/echo "output = $TODAY" >> ${GUI_SYSINFO}

/bin/echo "[hostname]" >> ${GUI_SYSINFO}
HOSTNAME="`/bin/hostname`"
/bin/echo "output = $HOSTNAME" >> ${GUI_SYSINFO}

/bin/echo "[ifconfig]" >> ${GUI_SYSINFO}
IFCONFIG=`/sbin/ifconfig | sed -e "s/^/output = /g"`
/bin/echo "$IFCONFIG" >> ${GUI_SYSINFO}

/bin/echo "[du]" >> ${GUI_SYSINFO}
DISKUSAGE=`/bin/df -h | sed -e "s/^/output = /g"`
/bin/echo "$DISKUSAGE" >> ${GUI_SYSINFO}

/bin/echo "[free]" >> ${GUI_SYSINFO}
MEMORYUSAGE=`/usr/bin/vmstat | sed -e "s/^/output = /g"`
/bin/echo "$MEMORYUSAGE" >> ${GUI_SYSINFO}

----
There is also some problems with the data entered into the
extensions.conf file for the paths on FreeBSD.

We'll need to figure out a good way to clear up all the path issues.

PB

On 12/4/06, Pari Nannapaneni <pari at digium.com> wrote:
> Hi Paul, Please run
>
> http://$IP:$PORT/asterisk/static/config/setup.html
>         OR
> http://$IP/static/config/setup.html (on asterisk NOW)
>
> This would create the asterisk_guitools context needed in extensions.conf
>
> To eliminate this problem in future versions I'm working on a function which
> is called after  user logsin,  essentially checks whether everything needed is in place.
> If not, it will inform the user and install the needed context in extensions.conf
>
> regards
> Pari
>
>
>
> Paul Belanger wrote:
> > When I click 'System Info' tab, no information is displayed about my
> > system.  From the debug logs, it looks like the manager is attempting
> > to spawn a local extension, but I have not created one.
> >
> > [Dec  4 13:51:43] NOTICE[455]: chan_local.c:562 local_alloc: No such
> > extension/context sysinfo at asterisk_guitools creating local channel
> > [Dec  4 13:51:43] NOTICE[455]: channel.c:2767 __ast_request_and_dial:
> > Unable to request channel Local/sysinfo at asterisk_guitools
> > fd == -1 in astman_append, should not happen
> > fd == -1 in astman_append, should not happen
> > fd == -1 in astman_append, should not happen
> >
> > What extension/context do I need to create?  I read through the README
> > file but it make no reference.
> >
> > PB
> > _______________________________________________
> > --Bandwidth and Colocation provided by Easynews.com --
> >
> > asterisk-gui mailing list
> > To UNSUBSCRIBE or update options visit:
> >   http://lists.digium.com/mailman/listinfo/asterisk-gui
>
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> asterisk-gui mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-gui
>


More information about the asterisk-gui mailing list