--- inputs/ISS/wwwnext.cf (revision 753)
+++ inputs/ISS/wwwnext.cf (revision 754)
classes:
wwwnext_hb_running = ( ReturnsZeroShell(/sbin/pidof heartbeat >/dev/null) )
wwwnext_mod_loaded = ( ReturnsZeroShell(/sbin/lsmod | /bin/grep drbd >/dev/null) )
- wwwnext_httpd_on = ( ReturnsZeroShell(/sbin/chkconfig --list httpd |/bin/grep -q 3:on) )
+ wwwnext_httpd_switched_on = ( ReturnsZeroShell(/sbin/chkconfig --list httpd |/bin/grep -q 3:on) )
+ wwwnext_httpd_running = ( ReturnsZeroShell(/bin/ps -e -o cmd |/bin/grep -q ^httpd) )
directories:
/etc/ha.d mode=755 owner=0 group=0
"/sbin/modprobe drbd"
iptables_on.wwwnext_restart_iptables::
"/sbin/service iptables restart >/dev/null"
- !wwwnext_httpd_on::
+ !wwwnext_httpd_switched_on::
"/sbin/chkconfig httpd on"
+ !wwwnext_httpd_running::
+ "/sbin/service httpd start"