summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e6c7276)
raw | patch | inline | side by side (parent: e6c7276)
author | Florian Forster <octo@noris.net> | |
Tue, 26 Aug 2008 15:59:18 +0000 (17:59 +0200) | ||
committer | Florian Forster <octo@noris.net> | |
Tue, 26 Aug 2008 15:59:18 +0000 (17:59 +0200) |
contrib/snmp-probe-host.px | patch | blob | history |
index 1cfaa0729f0c33617e2419d63e7efdb55dca01e5..1d8f975b6a6066f41b94e4b18bb96dbf38ceb089 100755 (executable)
$version--;
} # while ($version > 0)
- if (!@valid_data)
- {
- return;
- }
-
print <<EOF;
<Host "$host">
Address "$address"
{
print " Collect \"$_\"\n";
}
+ if (!@valid_data)
+ {
+ print <<EOF;
+# WARNING: Autoconfiguration failed.
+# TODO: Add one or more `Collect' statements here:
+# Collect "foo"
+EOF
+ }
print <<EOF;
Interval 60
</Host>