X-Git-Url: http://git.onelab.eu/?p=monitor.git;a=blobdiff_plain;f=Monitor.spec;h=32ecb4405fa96851755834de4fcfdcd3c6a8e571;hp=2a396035083ce6de37cabb03e8de086009de61fb;hb=f4f26439ae2db33f8f9a55e1a3350f6ed4f78278;hpb=145f2f31748357892139d5271f292c949bc9d062 diff --git a/Monitor.spec b/Monitor.spec index 2a39603..32ecb44 100644 --- a/Monitor.spec +++ b/Monitor.spec @@ -62,6 +62,8 @@ Requires: nagios-plugins-all Requires: ndoutils Requires: ndoutils-mysql +Requires: rt3 + %description nagios Scripts and setup necessary to integrate and monitor PLC with Nagios. @@ -162,7 +164,7 @@ install -D -m 755 monitor-server.init $RPM_BUILD_ROOT/%{_sysconfdir}/plc.d/monit install -D -m 755 zabbix/monitor-zabbix.init $RPM_BUILD_ROOT/%{_sysconfdir}/plc.d/zabbix install -D -m 755 nagios/monitor-nagios.init $RPM_BUILD_ROOT/%{_sysconfdir}/plc.d/monitor-nagios -install -D -m 644 nagios/monitor-server.cron $RPM_BUILD_ROOT/%{_sysconfdir}/cron.d/monitor-nagios.cron +install -D -m 644 nagios/monitor-nagios.cron $RPM_BUILD_ROOT/%{_sysconfdir}/cron.d/monitor-nagios.cron # cron job for automated polling install -D -m 644 monitor-server.cron $RPM_BUILD_ROOT/%{_sysconfdir}/cron.d/monitor-server.cron @@ -348,10 +350,12 @@ chkconfig --add monitor chkconfig monitor on %post runlevelagent -chkconfig --add monitor-runlevelagent -chkconfig monitor-runlevelagent on -if [ "$PL_BOOTCD" != "1" ] ; then - service monitor-runlevelagent restart +if [ -f /etc/planetlab/node_id ] ; then + chkconfig --add monitor-runlevelagent + chkconfig monitor-runlevelagent on + if [ "$PL_BOOTCD" != "1" ] ; then + service monitor-runlevelagent restart + fi fi