'STATUS' => $text{'mon_'.$suffix},
uc($suffix) => 1,
);
+ foreach my $s (@monitor_statuses) {
+ $hash{uc($s)} ||= 0;
+ }
foreach my $k (keys %$serv) {
$hash{'SERVICE_'.uc($k)} = $serv->{$k};
}
%monitor_os_support = ( 'traffic' => { 'os_support' => '*-linux freebsd' },
);
+@monitor_statuses = ( 'up', 'down', 'un', 'webmin', 'timed', 'isdown' );
+
# list_services()
# Returns a list of all services this module knows how to get status on.
# If this is the first time the function is called a default set of services