Page 1 of 1

CLOSED: Server.create script

Posted: Mon Jul 16, 2018 10:05 am
by avica
Hi
I am a trying to add some servers to control panel. Searching I got to the wiki page for Icinga https://wiki.amahi.org/index.php/Icing ... e_Admin_CP.
There they use :

Code: Select all

sh: warning: setlocale: LC_ALL: cannot change locale (C.UTF-8) ‚Äčecho 'Server.create(:name => "icinga", :comment => "Icinga")' | (cd /var/hda/platform/html && ./script/console production)‚Äč
to create server status. I know that this wiki is outdated, should that still work?
What should I do to remove a server status once I created one?

Thanks
Avi

Re: Server.create script

Posted: Mon Jul 16, 2018 6:20 pm
by bigfoot65
It should work.

If it doesn't, please let us know. BTW, this is an unsupported tutorial, so be careful to not mess up your HDA database.

We cannot provide help if that should happen.

Re: Server.create script

Posted: Mon Jul 16, 2018 10:39 pm
by avica
Thank you for the replay. Is there a way to remove created server so I can un-mess if I do?

Re: Server.create script

Posted: Tue Jul 17, 2018 9:06 am
by bigfoot65
Yes.

You can use adminer App or phpmyadmin App to remove the entry from the database.

Re: Server.create script

Posted: Sun Jul 29, 2018 1:25 am
by avica
The above code lines are not working for Amahi 9 on Fedora 23 since there isn't any console production script present in the /var/hda/platform/html/script folder.

Re: Server.create script

Posted: Sun Jul 29, 2018 6:49 pm
by bigfoot65
The guidance was contributed by the Amahi community, so it may be outdated or not work. It's not officially supported by Amahi.

We cannot provide much assistance, but maybe someone can jump in to help.

Re: Server.create script

Posted: Sun Jul 29, 2018 9:20 pm
by avica
Anyway editing the database worked fine using PhpMyAdmin

Re: Server.create script

Posted: Mon Jul 30, 2018 7:47 am
by bigfoot65
Good to hear.

I presume we can mark this thread as closed.

Re: Server.create script

Posted: Mon Jul 30, 2018 1:51 pm
by avica
Sure can do

Re: Server.create script

Posted: Mon Jul 30, 2018 3:16 pm
by bigfoot65
Thanks for the update.