aboutsummaryrefslogtreecommitdiffstats
path: root/SiteSummary.pm
diff options
context:
space:
mode:
authorPetter Reinholdtsen <pere@hungry.com>2007-10-12 17:26:49 +0000
committerPetter Reinholdtsen <pere@hungry.com>2007-10-12 17:26:49 +0000
commitf98f9e310682cd77180ef49e5fda0994d973336e (patch)
treedac9403cd49066d4bcc58fdeef88bce1c50281cf /SiteSummary.pm
parentd39cfeb90a670a5a7006602e56cd26501ad1343d (diff)
downloadsitesummary-f98f9e310682cd77180ef49e5fda0994d973336e.tar.gz
sitesummary-f98f9e310682cd77180ef49e5fda0994d973336e.tar.bz2
sitesummary-f98f9e310682cd77180ef49e5fda0994d973336e.tar.xz
* UNRELEASED
* Add get_hostclass() to the SiteSummary perl module API. * Add host class summary to the default list of web reports.
Diffstat (limited to 'SiteSummary.pm')
-rw-r--r--SiteSummary.pm9
1 files changed, 9 insertions, 0 deletions
diff --git a/SiteSummary.pm b/SiteSummary.pm
index fec7b09..b6b449a 100644
--- a/SiteSummary.pm
+++ b/SiteSummary.pm
@@ -10,6 +10,7 @@ our @ISA = qw(Exporter);
our @EXPORT = qw(
for_all_hosts
get_filepath_current
+ get_hostclass
get_site
get_sitegroup
get_hostname
@@ -66,6 +67,14 @@ sub get_sitegroup {
}
#
+# Return the hostclass string
+#
+sub get_hostclass {
+ my $hostid = shift;
+ return get_file_string($hostid, "/siteinfo/hostclass");
+}
+
+#
# Return the hostname string
#
sub get_hostname {