TECHZEN Zenoss User Community ARCHIVE  

deploying other applications in ControlCenter

Subject: deploying other applications in ControlCenter
Author: [Not Specified]
Posted: 2015-05-12 14:08

I'm attempting to create my own templates and deploy other applications in ControlCenter but I'm not having much luck. I've started with Elasticsearch and Logstash in hopes to get a fully functional ELK stack (I'll work on Kibana later) running for centralized logging of all my servers. Right now, I can add the templates and add the applications, but I cannot start either of them. Both of them give the error: "Was unable to start service Internal Server Error: virtual host is already running under service".

here are the templates I'm using:
elasticsearch: https://gist.github.com/ssplatt/64051fc053eb2b02a459
logstash: https://gist.github.com/ssplatt/576c13c3e898189f120d

any ideas on what is going on



Subject: Try:
Author: Jan Garaj
Posted: 2015-05-12 18:25

Try:

"VHosts": null

instead of

"VHosts": [
""
]

Could you share your final templates please ELK stack is in my TODO list :-)

Devops Monitoring Expert advice: Dockerize/automate/monitor all the things.

DevOps stack: Docker / Kubernetes / Mesos / Zabbix / Zenoss / Grafana / Puppet / Ansible / Vagrant / Terraform / Elasticsearch



Subject: that helped a little. now I
Author: [Not Specified]
Posted: 2015-05-13 10:30

that helped a little. now I see next to both of the applications on the main page, but in their details under services, both have checks. I also don't see anything under Configuration Files which I thought the ConfigFiles section would populate. Also strange, this is what i see under "docker ps -a" on the main host:

06837dd7e4f3 localhost:5000/8mqjx9690qbkckprpy9j5ic9s/logstash:latest "/docker-entrypoint. 2 minutes ago Up 2 minutes 0.0.0.0:49225->5140/tcp 41z2y6am5i153m9r1oykscz6a
7677a7225f70 elasticsearch:1 "/docker-entrypoint. 2 minutes ago Up 2 minutes 9200/tcp, 9300/tcp, 0.0.0.0:49224->9220/tcp 9rehbemsufrlrldoczmug58be

I guess elasticsearch was already running, so it just added a new port forward



Subject: > now I see ? next to both of
Author: Jan Garaj
Posted: 2015-05-13 13:23

> now I see next to both of the applications on the main page
Define health check http://controlcenter.io/docs/topics/svcdef-health.html
> I also don't see anything under Configuration Files
Check http://controlcenter.io/docs/topics/svcdef-configFile.html
> I guess elasticsearch was already running
No, it is running -"Up 2 minutes"

Yes, you need to setup port fowarding. For Kibana you will need to define vhost, e.g.kibana
BTW: you can create one json template for ELK stack.

Devops Monitoring Expert advice: Dockerize/automate/monitor all the things.

DevOps stack: Docker / Kubernetes / Mesos / Zabbix / Zenoss / Grafana / Puppet / Ansible / Vagrant / Terraform / Elasticsearch



Subject: I deployed a new service
Author: Jim R
Posted: 2015-05-15 08:26

I deployed a new service yesterday and continually see the flashing "" as well. I assume this means that there is no service check defined. Without the service check, CC can't figure out whether or not it is working.



Subject: Documentation
Author: [Not Specified]
Posted: 2016-02-02 14:21

I'm interested about create a new services into CC with health services. What is the correct procedure to create a new service with health checks



Subject: A few things that I have
Author: Jim R
Posted: 2016-09-12 14:37

A few things that I have picked up as I have tried to create new servers:

1. The Docker image should be built to use the EXEC and CMD method for starting contatiners. CC runs the container with a command rather than just starting the container.

2. The command given to start the process should not exit. If so, the containter will continually restart.

3. Make sure bash is included in the image.

You can build a service by creating a directory hierarchy for the service and creating a service.json in each directory that defines the service or sub-service.

serviced template compile

will create template for the entire service.

serviced template compile

| serviced template add will add the template to CC.

To update the image for a running service,i.e. to ugrade the image but not redeploy the service, you need to add the new Docker image, re-tag it, and then run srivced docker sync.



< Previous
control center services failing
  Next
Monitoring QNAP NAS using ZenOSS core
>