I'm new at Zenoss, and just taking my first steps with it
it took a few hours to get it up and running,
amongst the issues I came across was that I wanted to avoid the
"localhost.localdomain" as the hostname in Zenoss of the Zenoss server itself:
in order to correct that before the installation, it requires a simple change
to one of the install scripts :
in /opt/zenoss/bin/install-functions.sh
change the line with
Code:
ZOPE_HOST=
> # adds localhost as a device via the web UI
> add_localhost_device()
> {
> ZOPE_HOST=localhost.localdomain
> HOST_CLASS_PATH="/Server/Linux"
>
> URL="http://${ZOPE_HOST}:${ZOPE_LISTEN_PORT}/zport/dmd/DeviceLoader/loadDevice?deviceName=${ZOPE_HOST}&devicePath=${HOST_CLASS_PATH}"
>
> # add localhost as a device
> wget -O /dev/null \
> --user=${ZOPE_USERNAME} \
> --password=${ZOPE_PASSWORD} \
> ${URL}
>
> }
to
> # adds localhost as a device via the web UI
> add_localhost_device()
> {
> ZOPE_HOST=$HOSTNAME
> HOST_CLASS_PATH="/Server/Linux"
>
> URL="http://${ZOPE_HOST}:${ZOPE_LISTEN_PORT}/zport/dmd/DeviceLoader/loadDevice?deviceName=${ZOPE_HOST}&devicePath=${HOST_CLASS_PATH}"
>
> # add localhost as a device
> wget -O /dev/null \
> --user=${ZOPE_USERNAME} \
> --password=${ZOPE_PASSWORD} \
> ${URL}
>
> }
I'm surprised that something like the hostname is hardcoded in an installation
script. is there any reason to??
Lb
------------------------
Lightningbit
-------------------- m2f --------------------
Read this topic online here:
http://community.zenoss.com/forums/viewtopic.php?p=8723#8723
-------------------- m2f --------------------
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users