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...@googlegroups.com.
> To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
>
>
--
nigel
Is it possible it's a PATH problem inside the script? Something that
works under your environment, but not under the user puppet is running
as?
On Thu, Sep 30, 2010 at 8:16 AM, D.N. van der Meijden
<cybern...@gmail.com> wrote:
> My bad!! I understand the puppet command now...
> err: //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 /tmp/test.pp:6
> debug: Finishing transaction 69992700590000 with 1 changes
>
>
> On 30 sep, 17:03, "D.N. van der Meijden" <cybernijn...@gmail.com>
I previously had a similar problem trying to start a ruby app using
bundler that I eventually found to be caused by the non existence of the
$HOME environment variable, adding this using:
environment => "HOME=/home/user" to the exec command fixed it.
Could there be an environment difference between running via puppet and
manually that could cause it not to run?
Regards
James
The script does not provide status, so when hasstatus is set to true,
puppet is querying service state via an invalid command:
/etc/init.d/zabbix status
This will always fail, which makes puppet think the service is always stopped.
I would look at:
http://www.nowvox.com/contrib/zabbix/zabbix_agentd
Thanks,
Nan