Discussion:
[suggest] Problem with puppet and nagios stop
Thomas Heil
2010-05-07 21:03:29 UTC
Permalink
Hi,

We try to ensure that nagios is not running on our machines.
Unfortunately this results
in errors like
--
err: //nagios/Service[nagios]/ensure: change from running to stopped
failed: Could not stop Service[nagios]: Execution of '/sbin/service
nagios stop' returned 1: at /etc/puppet/modules/nagios/manifests/init.pp:10
--

The Problem is, that service nagio stop returns error 1. This is caused
by the pid_nagios function.

The two patches should correct this.

Please have a look at this.

thx and regards,
--
Thomas Heil
-
! note my new number !
Skype: phiber.sun
Email: heil at terminal-consulting.de
Tel: 0176 / 44555622
--


-------------- next part --------------
A non-text attachment was scrubbed...
Name: nagios-stop-pid-no_error.patch
Type: text/x-patch
Size: 579 bytes
Desc: not available
Url : http://lists.repoforge.org/pipermail/users/attachments/20100507/5c9bbc06/attachment.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-nagios-spec.patch
Type: text/x-patch
Size: 602 bytes
Desc: not available
Url : http://lists.repoforge.org/pipermail/users/attachments/20100507/5c9bbc06/attachment-0001.bin
Christoph Maser
2010-05-08 08:36:48 UTC
Permalink
Post by Thomas Heil
Hi,
We try to ensure that nagios is not running on our machines.
Unfortunately this results
in errors like
--
err: //nagios/Service[nagios]/ensure: change from running to stopped
failed: Could not stop Service[nagios]: Execution of '/sbin/service
nagios stop' returned 1: at /etc/puppet/modules/nagios/manifests/init.pp:10
--
The Problem is, that service nagio stop returns error 1. This is caused
by the pid_nagios function.
The two patches should correct this.
Please have a look at this.
thx and regards,
Hi Thomas

the nagios-init skript is really ugly, thats why i provided a
redhat-only init script for icinga. I will propably do the same for
nagios instead of applying an ugly fix to an ugly script. But anyway
thanks for reporting!

Chris
Thomas Heil
2010-05-07 21:03:29 UTC
Permalink
Hi,

We try to ensure that nagios is not running on our machines.
Unfortunately this results
in errors like
--
err: //nagios/Service[nagios]/ensure: change from running to stopped
failed: Could not stop Service[nagios]: Execution of '/sbin/service
nagios stop' returned 1: at /etc/puppet/modules/nagios/manifests/init.pp:10
--

The Problem is, that service nagio stop returns error 1. This is caused
by the pid_nagios function.

The two patches should correct this.

Please have a look at this.

thx and regards,
--
Thomas Heil
-
! note my new number !
Skype: phiber.sun
Email: heil at terminal-consulting.de
Tel: 0176 / 44555622
--


-------------- next part --------------
A non-text attachment was scrubbed...
Name: nagios-stop-pid-no_error.patch
Type: text/x-patch
Size: 579 bytes
Desc: not available
Url : http://lists.repoforge.org/pipermail/users/attachments/20100507/5c9bbc06/attachment-0002.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-nagios-spec.patch
Type: text/x-patch
Size: 602 bytes
Desc: not available
Url : http://lists.repoforge.org/pipermail/users/attachments/20100507/5c9bbc06/attachment-0003.bin
Christoph Maser
2010-05-08 08:36:48 UTC
Permalink
Post by Thomas Heil
Hi,
We try to ensure that nagios is not running on our machines.
Unfortunately this results
in errors like
--
err: //nagios/Service[nagios]/ensure: change from running to stopped
failed: Could not stop Service[nagios]: Execution of '/sbin/service
nagios stop' returned 1: at /etc/puppet/modules/nagios/manifests/init.pp:10
--
The Problem is, that service nagio stop returns error 1. This is caused
by the pid_nagios function.
The two patches should correct this.
Please have a look at this.
thx and regards,
Hi Thomas

the nagios-init skript is really ugly, thats why i provided a
redhat-only init script for icinga. I will propably do the same for
nagios instead of applying an ugly fix to an ugly script. But anyway
thanks for reporting!

Chris
Thomas Heil
2010-05-07 21:03:29 UTC
Permalink
Hi,

We try to ensure that nagios is not running on our machines.
Unfortunately this results
in errors like
--
err: //nagios/Service[nagios]/ensure: change from running to stopped
failed: Could not stop Service[nagios]: Execution of '/sbin/service
nagios stop' returned 1: at /etc/puppet/modules/nagios/manifests/init.pp:10
--

The Problem is, that service nagio stop returns error 1. This is caused
by the pid_nagios function.

The two patches should correct this.

Please have a look at this.

thx and regards,
--
Thomas Heil
-
! note my new number !
Skype: phiber.sun
Email: heil at terminal-consulting.de
Tel: 0176 / 44555622
--


-------------- next part --------------
A non-text attachment was scrubbed...
Name: nagios-stop-pid-no_error.patch
Type: text/x-patch
Size: 579 bytes
Desc: not available
Url : http://lists.repoforge.org/pipermail/users/attachments/20100507/5c9bbc06/attachment-0004.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-nagios-spec.patch
Type: text/x-patch
Size: 602 bytes
Desc: not available
Url : http://lists.repoforge.org/pipermail/users/attachments/20100507/5c9bbc06/attachment-0005.bin
Christoph Maser
2010-05-08 08:36:48 UTC
Permalink
Post by Thomas Heil
Hi,
We try to ensure that nagios is not running on our machines.
Unfortunately this results
in errors like
--
err: //nagios/Service[nagios]/ensure: change from running to stopped
failed: Could not stop Service[nagios]: Execution of '/sbin/service
nagios stop' returned 1: at /etc/puppet/modules/nagios/manifests/init.pp:10
--
The Problem is, that service nagio stop returns error 1. This is caused
by the pid_nagios function.
The two patches should correct this.
Please have a look at this.
thx and regards,
Hi Thomas

the nagios-init skript is really ugly, thats why i provided a
redhat-only init script for icinga. I will propably do the same for
nagios instead of applying an ugly fix to an ugly script. But anyway
thanks for reporting!

Chris
Thomas Heil
2010-05-07 21:03:29 UTC
Permalink
Hi,

We try to ensure that nagios is not running on our machines.
Unfortunately this results
in errors like
--
err: //nagios/Service[nagios]/ensure: change from running to stopped
failed: Could not stop Service[nagios]: Execution of '/sbin/service
nagios stop' returned 1: at /etc/puppet/modules/nagios/manifests/init.pp:10
--

The Problem is, that service nagio stop returns error 1. This is caused
by the pid_nagios function.

The two patches should correct this.

Please have a look at this.

thx and regards,
--
Thomas Heil
-
! note my new number !
Skype: phiber.sun
Email: heil at terminal-consulting.de
Tel: 0176 / 44555622
--


-------------- next part --------------
A non-text attachment was scrubbed...
Name: nagios-stop-pid-no_error.patch
Type: text/x-patch
Size: 579 bytes
Desc: not available
Url : http://lists.repoforge.org/pipermail/users/attachments/20100507/5c9bbc06/attachment-0006.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-nagios-spec.patch
Type: text/x-patch
Size: 602 bytes
Desc: not available
Url : http://lists.repoforge.org/pipermail/users/attachments/20100507/5c9bbc06/attachment-0007.bin
Christoph Maser
2010-05-08 08:36:48 UTC
Permalink
Post by Thomas Heil
Hi,
We try to ensure that nagios is not running on our machines.
Unfortunately this results
in errors like
--
err: //nagios/Service[nagios]/ensure: change from running to stopped
failed: Could not stop Service[nagios]: Execution of '/sbin/service
nagios stop' returned 1: at /etc/puppet/modules/nagios/manifests/init.pp:10
--
The Problem is, that service nagio stop returns error 1. This is caused
by the pid_nagios function.
The two patches should correct this.
Please have a look at this.
thx and regards,
Hi Thomas

the nagios-init skript is really ugly, thats why i provided a
redhat-only init script for icinga. I will propably do the same for
nagios instead of applying an ugly fix to an ugly script. But anyway
thanks for reporting!

Chris
Thomas Heil
2010-05-07 21:03:29 UTC
Permalink
Hi,

We try to ensure that nagios is not running on our machines.
Unfortunately this results
in errors like
--
err: //nagios/Service[nagios]/ensure: change from running to stopped
failed: Could not stop Service[nagios]: Execution of '/sbin/service
nagios stop' returned 1: at /etc/puppet/modules/nagios/manifests/init.pp:10
--

The Problem is, that service nagio stop returns error 1. This is caused
by the pid_nagios function.

The two patches should correct this.

Please have a look at this.

thx and regards,
--
Thomas Heil
-
! note my new number !
Skype: phiber.sun
Email: heil at terminal-consulting.de
Tel: 0176 / 44555622
--


-------------- next part --------------
A non-text attachment was scrubbed...
Name: nagios-stop-pid-no_error.patch
Type: text/x-patch
Size: 579 bytes
Desc: not available
URL: <http://lists.repoforge.org/pipermail/users/attachments/20100507/5c9bbc06/attachment-0008.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-nagios-spec.patch
Type: text/x-patch
Size: 602 bytes
Desc: not available
URL: <http://lists.repoforge.org/pipermail/users/attachments/20100507/5c9bbc06/attachment-0009.bin>
Christoph Maser
2010-05-08 08:36:48 UTC
Permalink
Post by Thomas Heil
Hi,
We try to ensure that nagios is not running on our machines.
Unfortunately this results
in errors like
--
err: //nagios/Service[nagios]/ensure: change from running to stopped
failed: Could not stop Service[nagios]: Execution of '/sbin/service
nagios stop' returned 1: at /etc/puppet/modules/nagios/manifests/init.pp:10
--
The Problem is, that service nagio stop returns error 1. This is caused
by the pid_nagios function.
The two patches should correct this.
Please have a look at this.
thx and regards,
Hi Thomas

the nagios-init skript is really ugly, thats why i provided a
redhat-only init script for icinga. I will propably do the same for
nagios instead of applying an ugly fix to an ugly script. But anyway
thanks for reporting!

Chris

Loading...