On Tue, Oct 14, 2014 at 01:09:16PM -0300, Sebastian Martinez wrote:
> Craig, some news with this?
Apologies, it was sitting there waiting for me to commit it.
Can someone check this? It's a simple patch.

diff --git a/engine/pollers/tcp_connection_number.php 
b/engine/pollers/tcp_connection_number.php
index 7728d3b..568d900 100644
--- a/engine/pollers/tcp_connection_number.php
+++ b/engine/pollers/tcp_connection_number.php
@@ -33,7 +33,7 @@ function poller_tcp_connection_number ($options)
             return 0;
         reset($snmp_table);
         $static_buffer[$hid]=array();
-        foreach ($tcpConnEntry as $key => $state)
+        foreach ($snmp_table as $key => $state)
             if (strpos($state,'5')!==FALSE) { //only established
                 $entry = explode('.',$key);
                    $entry = array_slice ($entry, count($entry)-10,10); //get 
only the last 10 items (SRC-IP(4) + srcport + DEST-IP(4) + destport)

-- 
Craig Small (@smallsees)   http://enc.com.au/       csmall at : enc.com.au
Debian GNU/Linux           http://www.debian.org/   csmall at : debian.org
GPG fingerprint:        5D2F B320 B825 D939 04D2  0519 3938 F96B DF50 FEA5

------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
jffnms-users mailing list
jffnms-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jffnms-users

Reply via email to