aboutsummaryrefslogtreecommitdiffstats
path: root/sitesummary-nodes
diff options
context:
space:
mode:
Diffstat (limited to 'sitesummary-nodes')
-rwxr-xr-xsitesummary-nodes12
1 files changed, 2 insertions, 10 deletions
diff --git a/sitesummary-nodes b/sitesummary-nodes
index e08efcd..1a08470 100755
--- a/sitesummary-nodes
+++ b/sitesummary-nodes
@@ -24,12 +24,6 @@ if ($opts{'m'}) {
print_list();
}
-sub in_dns {
- my $hostname = shift;
- my $packed_ip = gethostbyname($hostname);
- return defined $packed_ip;
-}
-
sub handle_host {
my $hostid = shift;
my $address = get_dns_address($hostid);
@@ -182,8 +176,7 @@ define service {
check_command check_ssh
}
EOF
- print <<EOF if (is_pkg_installed($hostid, "apache") ||
- is_pkg_installed($hostid, "apache2"));
+ print <<EOF if (is_pkg_installed($hostid, "apache") || is_pkg_installed($hostid, "apache2"));
define service {
use server-service
host_name $hostname
@@ -192,8 +185,7 @@ define service {
}
EOF
- print <<EOF if (is_pkg_installed($hostid, "ntp") ||
- is_pkg_installed($hostid, "ntp-server"));
+ print <<EOF if (is_pkg_installed($hostid, "ntp") || is_pkg_installed($hostid, "ntp-server"));
define service {
use server-service
host_name $hostname