Ask Your Question

How to monitor a application services which runs on different ports and on different servers..!?

asked 2016-10-05 21:04:43 -0500

rohithmn03 gravatar image

updated 2016-10-06 01:01:15 -0500

image description

If any of the above APP services goes down, puppet should automatically start it with the command "/path/to/start/a/service/", if it unable to start or got any errors/exceptions, puppet should check some files are present in a particular path (like,is file present unser /this/path/)

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2016-10-06 08:40:29 -0500

Puppet is the wrong tool for that.

edit flag offensive delete link more


ya.. i know..! But is there a way we can implement it. It helps me..!

rohithmn03 gravatar imagerohithmn03 ( 2016-10-06 10:25:08 -0500 )edit

answered 2016-10-06 12:04:35 -0500

DarylW gravatar image

updated 2016-10-06 17:49:12 -0500

I would recommend either making an appropriate service that can restart itself, either using systemd if it is on your system, using with


or using an external tool like monit or keepalived

-- EDIT --

If you want to 'write your own service', look into using the base provider..

You can then manually specify the commands you want run in each case for start, stop, restart, status, etc... With a focus on the following parameters

service { 'resource title':
  binary     => # The path to the daemon.  This is only used for...
  hasrestart => # Specify that an init script has a `restart...
  hasstatus  => # Declare whether the service's init script has a...
  pattern    => # The pattern to search for in the process table...
  provider   => 'base',
  restart    => # Specify a *restart* command manually.  If left...
  start      => # Specify a *start* command manually.  Most...
  status     => # Specify a *status* command manually.  This...
  stop       => # Specify a *stop* command...
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2016-10-05 21:04:43 -0500

Seen: 39 times

Last updated: Oct 06 '16