found on Solaris)
User-Agent: Heirloom mailx 12.4 7/29/08
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Module: check_mk
Branch: master
Commit: afa5c4cbc0dcd6bf2b1d40f265f2445c14fddbb6
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=afa5c4cbc0dcd6…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Jun 5 17:18:08 2012 +0200
tcp_conn_stats: handle state BOUND (found on Solaris)
---
ChangeLog | 1 +
checks/tcp_conn_stats | 1 +
web/plugins/wato/check_parameters.py | 12 ++++++++++++
3 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index d8d90e9..0415657 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -13,6 +13,7 @@
* postgres_stat_database.size: New check for PostgreSQL database size
* FIX: hpux_if: convert_to_hex was missing on non-SNMP-hosts -replace
with inline implementation
+ * tcp_conn_stats: handle state BOUND (found on Solaris)
1.2.0b6:
Multisite:
diff --git a/checks/tcp_conn_stats b/checks/tcp_conn_stats
index 1d75cb0..3b6e046 100644
--- a/checks/tcp_conn_stats
+++ b/checks/tcp_conn_stats
@@ -35,6 +35,7 @@ tcp_conn_stats_states = [
"CLOSING", # our socket is shut down; remote endpoint is shut down; not
all data has been sent
"FIN_WAIT1", # our socket has closed; we are in the process of tearing down
the connection
"FIN_WAIT2", # the connection has been closed; our socket is waiting for the
remote endpoint to shut down
+"BOUND", # Socket did a bound() but TCP stack not yet active (Solaris)
]
diff --git a/web/plugins/wato/check_parameters.py b/web/plugins/wato/check_parameters.py
index 96227fe..9bfe53f 100644
--- a/web/plugins/wato/check_parameters.py
+++ b/web/plugins/wato/check_parameters.py
@@ -630,6 +630,18 @@ checkgroups.append((
]
)
),
+ ( "BOUND",
+ Tuple(
+ title = _("BOUND"),
+ help = _("the socket has been created and an address assigned
"
+ "to with bind(). The TCP stack is not active yet. "
+ "This state is only reported on Solaris."),
+ elements = [
+ Integer(title = _("Warning at"), label =
_("connections")),
+ Integer(title = _("Critical at"), label =
_("connections"))
+ ]
+ )
+ ),
]
),
None,