Bug 80245 - net-mgmt/zabbix: Error in Zabbix rc.d files
Summary: net-mgmt/zabbix: Error in Zabbix rc.d files
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Volker Stolz
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-22 12:40 UTC by Guilherme Oliveira
Modified: 2006-03-16 23:21 UTC (History)
0 users

See Also:


Attachments
zabbix-1.0_3.diff (4.04 KB, patch)
2005-09-26 22:39 UTC, Robin Breathe
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Guilherme Oliveira 2005-04-22 12:40:27 UTC
When Zabbix is installed it install 2 files in /usr/lcoal/etc/rc.d :

zabbix-agent.sh.sample and zabbix.sh.sample

I renamed the files minus the ".sample" as I do with all the software and it doesn't work when I reboot the server.

How-To-Repeat: Rename the filenames in /usr/local/etc/rc.d without the ".sample" and reboot the machine.
Comment 1 Volker Stolz freebsd_committer freebsd_triage 2005-04-23 15:52:59 UTC
State Changed
From-To: open->feedback

What you've discovered is indeed the current way of enabling zabbix! 
I'll forward your request to the maintainer, though, because rc_subr now 
offers a more uniform way of enabling services. 


Comment 2 Volker Stolz freebsd_committer freebsd_triage 2005-04-23 15:52:59 UTC
Responsible Changed
From-To: freebsd-ports-bugs->vs

I'll see this through.
Comment 3 Volker Stolz freebsd_committer freebsd_triage 2005-04-23 15:59:09 UTC
Oy! I'm stupid and misread your report since it didn't fit into my  
web-browser completely :)
You have to also set zabbix_suckerd_enable and zabbix_agentd_enable="YES"  
in /etc/rc.conf.
Does this solve your problem?

Volker
Comment 4 Guilherme Oliveira 2005-04-26 10:46:55 UTC
Nop.

Neither changing the filename from
/usr/local/etc/rc.d/zabbix.sh.sample to /usr/local/etc/rc.d/zabbix.sh

When booting it says:
.: Can't open %LOCALBASE%/etc/rc.subr: No such file or directory

[]'s

On 4/23/05, Volker Stolz <vs@freebsd.org> wrote:
> Oy! I'm stupid and misread your report since it didn't fit into my
> web-browser completely :)
> You have to also set zabbix_suckerd_enable and zabbix_agentd_enable=3D"YE=
S"
> in /etc/rc.conf.
> Does this solve your problem?
>=20
> Volker
>
Comment 5 Volker Stolz freebsd_committer freebsd_triage 2005-04-26 11:22:27 UTC
Am 26. Apr 2005 um 11:46 CEST schrieb Guilherme Oliveira:
> Nop.
> Neither changing the filename from
> /usr/local/etc/rc.d/zabbix.sh.sample to /usr/local/etc/rc.d/zabbix.sh
> 
> When booting it says:
> .: Can't open %LOCALBASE%/etc/rc.subr: No such file or directory

Okay, I'm cc:ing the maintainer. Something doesn't seem to be working
with the substitutions in there. He probably should be using
USE_RC_SUBR=zabbix-foo.sh zabbix-bar.sh instead of the home-grown way
anyway :)

Volker
-- 
http://www-i2.informatik.rwth-aachen.de/stolz/ *** PGP *** S/MIME
It's a million to one chance, but it just might work.
Comment 6 Volker Stolz freebsd_committer freebsd_triage 2005-07-28 14:38:06 UTC
State Changed
From-To: feedback->open

Feedback timeout, I'll see if I can bring this more into line with the expected RC_SUBR-stuff soon.
Comment 7 Robin Breathe 2005-09-26 22:39:29 UTC
In the interests of closing this PR, does the attached (untested) patch
help?

Regards,
Robin
Comment 8 Pav Lucistnik freebsd_committer freebsd_triage 2005-11-01 22:08:13 UTC
State Changed
From-To: open->closed

Okay I fixed the startup scripts to be real rcng scripts.
Comment 9 Guilherme Oliveira 2006-03-16 16:45:30 UTC
Hi !

I've cvsup'ed and with this latest version it says:

# /usr/local/etc/rc.d/zabbix_suckerd start
/usr/local/etc/rc.d/zabbix_suckerd: WARNING: $zabbix_suckerd_enable is not
set properly - see rc.conf(5).
#