/[smecontribs]/rpms/smeserver-cacti/contribs8/smeserver-cacti-0.8.8b-poller.patch
ViewVC logotype

Contents of /rpms/smeserver-cacti/contribs8/smeserver-cacti-0.8.8b-poller.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (show annotations) (download)
Tue Jun 17 18:35:32 2014 UTC (10 years, 5 months ago) by unnilennium
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +0 -0 lines
FILE REMOVED
Initial import to v9

1 diff -up smeserver-cacti-0.8.8b/createlinks.poller smeserver-cacti-0.8.8b/createlinks
2 --- smeserver-cacti-0.8.8b/createlinks.poller 2013-11-21 11:29:41.000000000 -0500
3 +++ smeserver-cacti-0.8.8b/createlinks 2013-11-21 11:31:40.000000000 -0500
4 @@ -17,6 +17,8 @@ for my $event (qw(
5 templates2events("/etc/httpd/conf/httpd.conf", $event);
6 templates2events("/etc/cacti/db.php", $event);
7 safe_symlink("sigusr1", "root/etc/e-smith/events/$event/services2adjust/httpd-e-smith");
8 + templates2events("/etc/crontab", $event);
9 + safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/crond");
10 }
11
12 templates2events("/etc/e-smith/sql/init/80cacti", "post-upgrade");
13 diff -up smeserver-cacti-0.8.8b/root/etc/e-smith/templates/etc/crontab/86cacti.poller smeserver-cacti-0.8.8b/root/etc/e-smith/templates/etc/crontab/86cacti
14 --- smeserver-cacti-0.8.8b/root/etc/e-smith/templates/etc/crontab/86cacti.poller 2013-11-21 11:33:03.000000000 -0500
15 +++ smeserver-cacti-0.8.8b/root/etc/e-smith/templates/etc/crontab/86cacti 2013-11-21 11:36:23.000000000 -0500
16 @@ -0,0 +1,11 @@
17 +# cacti poller:
18 +{
19 +if ($cacti{'status'} eq "enabled")
20 + {
21 + $OUT .="*/5 * * * * cacti /usr/bin/php /usr/share/cacti/poller.php > /dev/null 2> /dev/null &\n";
22 + }
23 +else
24 + {
25 + $OUT .="# cacti disabled";
26 + }
27 +}
28 diff -up smeserver-cacti-0.8.8b/root/etc/e-smith/templates.metadata/etc/cacti/db.php.poller smeserver-cacti-0.8.8b/root/etc/e-smith/templates.metadata/etc/cacti/db.php
29 --- smeserver-cacti-0.8.8b/root/etc/e-smith/templates.metadata/etc/cacti/db.php.poller 2013-10-12 19:00:12.000000000 -0400
30 +++ smeserver-cacti-0.8.8b/root/etc/e-smith/templates.metadata/etc/cacti/db.php 2013-11-21 11:32:20.000000000 -0500
31 @@ -1,3 +1,3 @@
32 -UID="root"
33 +UID="cacti"
34 GID="www"
35 PERMS=0640

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed