CLOSED: Server.create script

avica
Posts: 9
Joined: Mon Jul 20, 2009 1:27 pm

CLOSED: Server.create script

Postby avica » Mon Jul 16, 2018 10:05 am

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

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Server.create script

Postby bigfoot65 » Mon Jul 16, 2018 6:20 pm

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.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

avica
Posts: 9
Joined: Mon Jul 20, 2009 1:27 pm

Re: Server.create script

Postby avica » Mon Jul 16, 2018 10:39 pm

Thank you for the replay. Is there a way to remove created server so I can un-mess if I do?

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Server.create script

Postby bigfoot65 » Tue Jul 17, 2018 9:06 am

Yes.

You can use adminer App or phpmyadmin App to remove the entry from the database.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

avica
Posts: 9
Joined: Mon Jul 20, 2009 1:27 pm

Re: Server.create script

Postby avica » Sun Jul 29, 2018 1:25 am

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.

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Server.create script

Postby bigfoot65 » Sun Jul 29, 2018 6:49 pm

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.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

avica
Posts: 9
Joined: Mon Jul 20, 2009 1:27 pm

Re: Server.create script

Postby avica » Sun Jul 29, 2018 9:20 pm

Anyway editing the database worked fine using PhpMyAdmin

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Server.create script

Postby bigfoot65 » Mon Jul 30, 2018 7:47 am

Good to hear.

I presume we can mark this thread as closed.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

avica
Posts: 9
Joined: Mon Jul 20, 2009 1:27 pm

Re: Server.create script

Postby avica » Mon Jul 30, 2018 1:51 pm

Sure can do

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Server.create script

Postby bigfoot65 » Mon Jul 30, 2018 3:16 pm

Thanks for the update.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

Who is online

Users browsing this forum: No registered users and 67 guests