21 Commits

Author SHA1 Message Date
florian
5c4712418a zabbix: correct pidfile und update initscript
zabbix_agentd will not start because the initscript checks an old
path to the configfile and then zabbix_agentd uses the new path.
(old /etc/zabbix/zabbix_agentd.conf   new /etc/zabbix_agentd.conf)
I think the new path is better as most people have only one zabbix
tool installed on their embedded device.

Further there is a problem with the pid-file: zabbix creates it by
default in /tmp, and the init script creates a folder in
/var/run/zabbix where the pid-file is expected. start-stop-daemon will
not find the pid-file and cannot stop zabbix_agentd. So I changed the
initscript and conffile to use the same pid-file. I actually chose
/var/run/zabbix_agentd.conf instead of creating a subfolder or use /tmp.

While doing that I redid the whole initscript and changed additionally:
- move conffile to new location if is in the location from before
  changeset #32497
- only create zabbix users if there is no AllowRoot=1 in config
- only support the pid-file path /var/run/zabbix_agentd.pid, check it
  in initscript and warn if it is changed.
- don't log to a file in /tmp, but use syslog
- only start one passive check agent instead of default 3
- don't search actively for a zabbix-server on 127.0.0.1
- don't set the hostname to "Zabbix server" but use system.hostname

Signed-off-by: Stefan Hellermann <stefan@the2masters.de>
Signed-off-by: Florian Fainelli <florian@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/packages@34492 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-12-04 16:21:02 +00:00
florian
44c1043ce2 zabbix: preserve conffile over sysupgrade
while doing a sysupgrade the conffile was lost because:
- the path in the Makefile is incorrect
- the parametrized /conffiles  define doesn't seem to work for me

So I added a /conffiles define for every zabbix component and corrected
the path. I think the path changed while upgrading to 2.0.0.

I also had an issue with "hostname" and "uname" not being present on my
system, so I added selects onto these busybox-applets if the native
tool is not installed. Zabbix could also call lsusb and lspci, but I
think it's okay if these calls don't work on an embedded device.

Additionally I deleted an old conffile "files/zabbix_agentd.conf"
which is unused since changeset 32497 (level up zabbix to version 2.0.0)

Signed-off-by: Stefan Hellermann <stefan@the2masters.de>
Signed-off-by: Florian Fainelli <florian@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/packages@34491 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-12-04 16:20:59 +00:00
mirko
81938508b5 [packages/zabbix] level up zabbix to version 2.0.0
git-svn-id: svn://svn.openwrt.org/openwrt/packages@32497 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-06-24 19:03:42 +00:00
nico
9a9089341f packages/zabbix: use new service functions, various other zabbix-agent fixes:
* move user/group creation from postinst to initscript
 * use /var/run/zabbix directory for pid file
 * use /var/log/zabbix directory for log file
 * set correct ownership and perms for both directories

git-svn-id: svn://svn.openwrt.org/openwrt/packages@28892 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-09 19:49:06 +00:00
nico
26387c4086 packages/zabbix: use common CONFIGURE_ARGS var, cleanup
git-svn-id: svn://svn.openwrt.org/openwrt/packages@23438 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-10-14 12:41:29 +00:00
jow
a6738aeee0 [packages] zabbix: don't chown on host system (#7497)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@21865 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-21 22:23:22 +00:00
lars
6226083b54 [packages] zabbix: Fix build.
zabbix build expects $ARCH to be the target OS not the target architecture.


git-svn-id: svn://svn.openwrt.org/openwrt/packages@19869 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-02-26 10:55:00 +00:00
lars
1e28de24b4 [packages] Use default templates instead of custom reimplementations where applicable
git-svn-id: svn://svn.openwrt.org/openwrt/packages@19705 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-02-18 13:10:21 +00:00
florian
38cea02224 [package] fix zabbix dependencies, remove whitespaces
git-svn-id: svn://svn.openwrt.org/openwrt/packages@18993 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-02 12:14:14 +00:00
nbd
1d9e53bdec zabbix: add missing dependency
git-svn-id: svn://svn.openwrt.org/openwrt/packages@16694 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-07-05 13:14:34 +00:00
nbd
996067d6b3 nuke $Id$ in /packages as well
git-svn-id: svn://svn.openwrt.org/openwrt/packages@15244 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-04-17 14:22:30 +00:00
florian
3e7bac00b7 Update zabbix to 1.6
git-svn-id: svn://svn.openwrt.org/openwrt/packages@12815 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-09-30 17:08:43 +00:00
florian
5f5ee085e2 Add zabix agent configuration and init script (#3936)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@12749 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-09-28 06:43:14 +00:00
nbd
e296673ba6 packages: Use $(CP) instead of $(INSTALL_BIN) for binaries.
Signed-off-by: Andy Boyett <agb-openwrt@padded-cell.net>


git-svn-id: svn://svn.openwrt.org/openwrt/packages@9695 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-12-09 18:59:01 +00:00
blogic
0a5cafe97c package clean up
git-svn-id: svn://svn.openwrt.org/openwrt/packages@9396 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-10-21 15:59:31 +00:00
blogic
0550a9ac78 remove PKG_CAT from packages
git-svn-id: svn://svn.openwrt.org/openwrt/packages@9349 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-10-18 18:46:37 +00:00
blogic
1d6d2b8c2f fixed zabix description
git-svn-id: svn://svn.openwrt.org/openwrt/packages@9318 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-10-14 13:54:24 +00:00
nbd
9bc7a17e4d fix zabbix source url
git-svn-id: svn://svn.openwrt.org/openwrt/packages@6677 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-03-24 19:12:31 +00:00
pavlov
ba7c3f90cc add md5sum for zabbix
git-svn-id: svn://svn.openwrt.org/openwrt/packages@6496 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-03-04 03:03:20 +00:00
nico
61899a1f13 fix zabbix build with the SDK
git-svn-id: svn://svn.openwrt.org/openwrt/packages@6296 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-02-13 13:36:13 +00:00
nico
115353a61b add zabbix package (closes: #1199)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@6222 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-01-27 17:05:02 +00:00