summaryrefslogtreecommitdiffstats
path: root/cobbler/action_check.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@mdehaan.rdu.redhat.com>2007-07-26 17:10:51 -0400
committerMichael DeHaan <mdehaan@mdehaan.rdu.redhat.com>2007-07-26 17:10:51 -0400
commit749c94d69b5cab6b217758af303fa41dcc9aa71f (patch)
tree4c2956ab99952e976f49c6dba9366183c43b88b9 /cobbler/action_check.py
parent1753ad8cc2cd7239a9daf6daa09d356477565790 (diff)
downloadthird_party-cobbler-749c94d69b5cab6b217758af303fa41dcc9aa71f.tar.gz
third_party-cobbler-749c94d69b5cab6b217758af303fa41dcc9aa71f.tar.xz
third_party-cobbler-749c94d69b5cab6b217758af303fa41dcc9aa71f.zip
Added code to detect iptables and mention potential ports to unblock.
Diffstat (limited to 'cobbler/action_check.py')
-rw-r--r--cobbler/action_check.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/cobbler/action_check.py b/cobbler/action_check.py
index d07b5b4..9f258cc 100644
--- a/cobbler/action_check.py
+++ b/cobbler/action_check.py
@@ -54,6 +54,7 @@ class BootCheck:
self.check_tftpd_dir(status)
self.check_tftpd_conf(status)
self.check_httpd(status)
+ self.check_iptables(status)
return status
@@ -63,6 +64,12 @@ class BootCheck:
if rc != 0:
status.append(_("service %s is not running") % which)
+ def check_iptables(self, status):
+ if os.path.exists("/etc/rc.d/init.d/iptables"):
+ rc = sub_process.call("/sbin/service iptables status >/dev/null 2>/dev/null", shell=True)
+ if rc == 0:
+ status.append(_("since iptables may be running, ensure 69, 80, %s, and %s are unblocked") % (self.settings.syslog_port, self.settings.xmlrpc_port))
+
def check_name(self,status):
"""
If the server name in the config file is still set to localhost