local deployment with OMD

Support requests, bug reports, questions etc.
sitweak

local deployment with OMD

Post by sitweak » Wed Dec 14, 2011 11:13

Hey guys,
i´m currently using NConf 1.3.0.0 with OMD (Open Monitoring Disitribution 0.50). Myplan is to use the new deployment modul. I Run into problems restarting nagios.

Current settings:

Code: Select all

reload_command = "/omd/sites/<sitename>/bin/omd restart <sitename> nagios"


In local shell it works. When deploying it via web-interface it says

Code: Select all

system call    OK   

/omd/sites/<sitename>/bin/omd restart  <sitename> nagios



In the apache error log i find the following:

Code: Select all

sh: /omd/sites/<sitename>/etc/init.d/<sitename>: No such file or directory
sh: /omd/sites/<sitename>/etc/init.d/<sitename>: No such file or directory


Any ideas?

User avatar
fgander
NConf developer
NConf developer
Posts: 308
Joined: Mon Mar 16, 2009 14:23
Location: Bern, Switzerland
Contact:

Re: local deployment with OMD

Post by fgander » Wed Dec 14, 2011 23:51

Hey ! Nice that you try it, so to configure it correctly, did you read the documentation of it ?

I am just wondering, are you sure you have your process restart script here ? :
/omd/sites/<sitename>/etc/init.d/<sitename>


I would not expect that ... should be something like

Code: Select all

/etc/init.d/...
not ?

Check your configuration and please check the documentation ! (If you did not until now...)
http://www.nconf.org/dokuwiki/doku.php?id=nconf:help:documentation:modules:deployment:types:local

Regards Fabian
F.G. - NConf developer
http://www.nconf.org
Image
Follow NConf on Twitter!

sitweak
beginner
beginner
Posts: 5
Joined: Wed Dec 14, 2011 14:29

Re: local deployment with OMD

Post by sitweak » Thu Dec 15, 2011 09:21

Actually i have no idea why this message appears in the log. As you can see my reload command is:

reload_command = "/omd/sites/<sitename>/bin/omd restart <sitename> nagios"

The file /omd/sites/<sitename>/etc/init.d/omd exists
The file /omd/sites/<sitename>/etc/init.d/<sitename>/omd doesn´t exist.

Xould be that it is a OMD based problem :/

User avatar
fgander
NConf developer
NConf developer
Posts: 308
Joined: Mon Mar 16, 2009 14:23
Location: Bern, Switzerland
Contact:

Re: local deployment with OMD

Post by fgander » Sun Dec 18, 2011 00:58

Hm or permissions, I hope you get a solution somehow... :)

Could also be that our execution has problems with running the different arguments... not sure...

Regards Fabian
F.G. - NConf developer
http://www.nconf.org
Image
Follow NConf on Twitter!

sitweak
beginner
beginner
Posts: 5
Joined: Wed Dec 14, 2011 14:29

Re: local deployment with OMD

Post by sitweak » Mon Dec 19, 2011 10:56

I got it up and running. The problem is, that as user OMD the described errors occure. Imho this has nothig to do with permissions. It´s probably just the way OMD is implemented (?).

When I run the the command as root user (like in your documentation) it works and it takes the right path.

Once again: I think this problem is somehow related to OMD.

THanks for your great work and support!

User avatar
fgander
NConf developer
NConf developer
Posts: 308
Joined: Mon Mar 16, 2009 14:23
Location: Bern, Switzerland
Contact:

Re: local deployment with OMD

Post by fgander » Mon Dec 19, 2011 23:22

OK, I am happy its working now for you:)

Regards Fabian
F.G. - NConf developer
http://www.nconf.org
Image
Follow NConf on Twitter!

Locked