diff --git a/checkman/checkpoint_fw_connections b/checkman/checkpoint_fw_connections new file mode 100644 index 0000000000000000000000000000000000000000..08ef898bcf6eb7a7979de60090d54f9719bbbc5b --- /dev/null +++ b/checkman/checkpoint_fw_connections @@ -0,0 +1,45 @@ +title: Dummy check man page - used as template for new check manuals +agents: linux, windows, aix, solaris, hpux, vms, freebsd, snmp +catalog: see modules/catalog.py for possible values +license: GPL +distribution: check_mk +description: + Describe here: (1) what the check actually does, (2) under which + circumstances it goes warning/critical, (3) which devices are supported + by the check, (4) if the check requires a separated plugin or + tool or separate configuration on the target host. + +item: + Describe the syntax and meaning of the check's item here. Provide all + information one needs if coding a manual check with {checks +=} in {main.mk}. + Give an example. If the check uses {None} as sole item, + then leave out this section. + +examples: + # Give examples for configuration in {main.mk} here. If the check has + # configuration variable, then give example for them here. + + # set default levels to 40 and 60 percent: + foo_default_values = (40, 60) + + # another configuration variable here: + inventory_foo_filter = [ "superfoo", "superfoo2" ] + +perfdata: + Describe precisely the number and meaning of performance variables + the check sends. If it outputs no performance data, then leave out this + section. + +inventory: + Describe how the inventory for the check works. Which items + will it find? Describe the influence of check specific + configuration parameters to the inventory. + +[parameters] +foofirst(int): describe the first parameter here (if parameters are grouped + as tuple) +fooother(string): describe another parameter here. + +[configuration] +foo_default_levels(int, int): Describe global configuration variable of + foo here. Important: also tell the user how they are preset. diff --git a/checkpoint_fw_connections.mkp b/checkpoint_fw_connections.mkp index 1ce55a0cce2d3a4d1aa2c96e0568e8aad66285d0..56ce396198703c0eda924df2f59b846317551158 100644 Binary files a/checkpoint_fw_connections.mkp and b/checkpoint_fw_connections.mkp differ diff --git a/checks/checkpoint_fw_connections b/checks/checkpoint_fw_connections index 0acd07b98101214b668038fff0e85b79631c4639..6853eebe117f936043d0ffa52f3d946a5cc96480 100644 --- a/checks/checkpoint_fw_connections +++ b/checks/checkpoint_fw_connections @@ -75,7 +75,7 @@ def check_checkpoint_fw_connections(item, params, info): elif warn != None and value >= warn: yield 1, info + '%d' % value + unit + ' (>=%d)' % warn else: - yield 0, info % value + yield 0, info + '%d' % value + unit yield 0, 'peak: %d' % fwPeakNumConn yield 0, 'table limit: %s' % fwConnTableLimit