diff options
author | Michael DeHaan <mdehaan@mdehaan.rdu.redhat.com> | 2007-07-26 17:10:51 -0400 |
---|---|---|
committer | Michael DeHaan <mdehaan@mdehaan.rdu.redhat.com> | 2007-07-26 17:10:51 -0400 |
commit | 749c94d69b5cab6b217758af303fa41dcc9aa71f (patch) | |
tree | 4c2956ab99952e976f49c6dba9366183c43b88b9 /cobbler/action_check.py | |
parent | 1753ad8cc2cd7239a9daf6daa09d356477565790 (diff) | |
download | third_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.py | 7 |
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 |