On Thu, Sep 30, 2010 at 6:42 AM, D.N. van der Meijden
<cybernijn...@gmail.com> wrote:
> I'm trying to get a service running, but I keep getting the following
> error message:
> "err: //Node[debiannode]/zabbix/Service[zabbix_agent]/ensure: change
> from stopped to running failed: Could not start Service[zabbix_agent]:
> Execution of '/etc/init.d/zabbix_agent start' returned 1:  at /etc/
> puppet/modules/zabbix/manifests/init.pp:62"
>
> The part of the init.pp script:
>   service { "zabbix_agent":
>      name      => "zabbix_agent",
>      enable    => true,
>      ensure    => running,
>      hasstatus => true,
>      subscribe => File["zabbix_agentd.conf"],
>      require   => [ File["/etc/zabbix"],
> File["zabbix_agentd.conf"] ],
>   }     # <-- line 62
>
> If I start the daemon manually [as root or normal user zabbix] (i.e. /
> etc/init.d/zabbix_agent start), it works.
> I checked the permissions, but these are set at 755 so that shouldn't
> be a problem.
>
> client:~# /etc/init.d/zabbix_agent start
> Starting Zabbix agent: zabbix_agentd
> client:~# ps -ef | grep zabbix
> zabbix    2116     1  0 15:37 ?        00:00:00 /etc/zabbix/sbin/
> zabbix_agentd
> zabbix    2117  2116  0 15:37 ?        00:00:00 /etc/zabbix/sbin/
> zabbix_agentd
> zabbix    2118  2116  0 15:37 ?        00:00:00 /etc/zabbix/sbin/
> zabbix_agentd
> zabbix    2119  2116  0 15:37 ?        00:00:00 /etc/zabbix/sbin/
> zabbix_agentd
> zabbix    2120  2116  0 15:37 ?        00:00:00 /etc/zabbix/sbin/
> zabbix_agentd
> zabbix    2121  2116  0 15:37 ?        00:00:00 /etc/zabbix/sbin/
> zabbix_agentd
> zabbix    2122  2116  0 15:37 ?        00:00:00 /etc/zabbix/sbin/
> zabbix_agentd
> root      2124  1890  0 15:37 pts/2    00:00:00 grep zabbix
>
>
> What am I missing here?

The exit status of starting the daemon, which is what Puppet is
reporting back to you.

/etc/init.d/zabbix_agent start ; echo $?

It sounds like puppet is actually starting it but thinking the
operation failed because the init script exits non-zero.

>
> --
> You received this message because you are subscribed to the Google Groups 
> "Puppet Users" group.
> To post to this group, send email to puppet-us...@googlegroups.com.
> To unsubscribe from this group, send email to 
> puppet-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/puppet-users?hl=en.
>
>



-- 
nigel

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to