Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Tue Mar 28, 2017 2:40 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 25 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Netfilter Conntrack Status (shows all current connection
PostPosted: Sun Feb 16, 2014 6:42 pm 
Offline
Cacti User

Joined: Fri Sep 19, 2008 10:14 am
Posts: 56
Location: UK
yes sorry I meant ip_conntrack.

and its working fine after I disabled the ipv6. but had to look for the conntrack tool as wasnt in the default yum repo on centos5.


Top
 Profile  
 
 Post subject: Re: Netfilter Conntrack Status (shows all current connection
PostPosted: Sat Feb 22, 2014 5:34 am 
Offline
User avatar

Joined: Sun Mar 21, 2010 11:50 pm
Posts: 24
Location: Moscow, Russia
Chrysalis wrote:
yes sorry I meant ip_conntrack.

and its working fine after I disabled the ipv6. but had to look for the conntrack tool as wasnt in the default yum repo on centos5.

/proc/net/ip_conntrack shows only ipv4 (if nf_conntrack_ipv4 loaded)
/proc/net/nf_conntrack shows all proto (if nf_conntrack_ipv4 and nf_conntrack_ipv6 loaded)

Sorry, I don't use CentOS 5 and don't know about default repo in there.

_________________
"Imagination is more important than Knowledge."


Top
 Profile  
 
 Post subject: Re: Netfilter Conntrack Status (shows all current connection
PostPosted: Mon Feb 02, 2015 5:34 am 
Offline
Cacti User

Joined: Fri Sep 19, 2008 10:14 am
Posts: 56
Location: UK
is it possible to make a version of the cacti templates to work with new snmpd?

The new snmpd no longer allows exec, and extend has a different format which doesnt work with the templates.

I made a new script for cacti to use instead of the existing php script, which works on extend instead of exec in snmpd.conf.

I can share it if anyone needs it including the OP.


Top
 Profile  
 
 Post subject: Re: Netfilter Conntrack Status (shows all current connection
PostPosted: Fri Mar 06, 2015 5:44 pm 
Offline

Joined: Fri Mar 06, 2015 5:36 pm
Posts: 3
Chrysalis wrote:
is it possible to make a version of the cacti templates to work with new snmpd?

The new snmpd no longer allows exec, and extend has a different format which doesnt work with the templates.

I made a new script for cacti to use instead of the existing php script, which works on extend instead of exec in snmpd.conf.

I can share it if anyone needs it including the OP.



Hi, I would like to see how you implemented snmpd with extend.
thanks,
-paul


Top
 Profile  
 
 Post subject: Re: Netfilter Conntrack Status (shows all current connection
PostPosted: Mon Mar 09, 2015 10:47 am 
Offline

Joined: Fri Mar 06, 2015 5:36 pm
Posts: 3
I am fairly new to cacti and have installed 0.8.8b for the sole purpose of using it with the Conntrack tools.

I have the nf_conntrack_tools v.4 installed and working. I can manually poll the snmp results from the cacti server using snmpwalk but I cannot figure out how to setup cacti to poll the server. I imported the conntrack template and have followed the cacti documentation for setting up a new host, but when I use the netfilter host template, it doesn't populate the data query section. Do I need to manually create a data query? If so, do I use the conntrack xml file for that?

Thank you in advance for any pointers anyone can provide.

-paul


Top
 Profile  
 
 Post subject: Re: Netfilter Conntrack Status (shows all current connection
PostPosted: Mon Mar 09, 2015 12:51 pm 
Offline

Joined: Fri Mar 06, 2015 5:36 pm
Posts: 3
Well, I figured it out. I don't need the data query since I have data input methods defined. Turns out the root of the problem was poller.php was commented out in the cron. <forehead slap>


pwefel wrote:
I am fairly new to cacti and have installed 0.8.8b for the sole purpose of using it with the Conntrack tools.

I have the nf_conntrack_tools v.4 installed and working. I can manually poll the snmp results from the cacti server using snmpwalk but I cannot figure out how to setup cacti to poll the server. I imported the conntrack template and have followed the cacti documentation for setting up a new host, but when I use the netfilter host template, it doesn't populate the data query section. Do I need to manually create a data query? If so, do I use the conntrack xml file for that?

Thank you in advance for any pointers anyone can provide.

-paul


Top
 Profile  
 
 Post subject: Re: Netfilter Conntrack Status (shows all current connection
PostPosted: Mon Apr 06, 2015 4:43 pm 
Offline
User avatar

Joined: Sun Mar 21, 2010 11:50 pm
Posts: 24
Location: Moscow, Russia
Chrysalis wrote:
is it possible to make a version of the cacti templates to work with new snmpd?

The new snmpd no longer allows exec, and extend has a different format which doesnt work with the templates.

I made a new script for cacti to use instead of the existing php script, which works on extend instead of exec in snmpd.conf.

I can share it if anyone needs it including the OP.


Hi! I attached new snmp_execscripts.php in first post :D

_________________
"Imagination is more important than Knowledge."


Top
 Profile  
 
 Post subject: Re: Netfilter Conntrack Status (shows all current connection
PostPosted: Mon Apr 06, 2015 4:44 pm 
Offline
User avatar

Joined: Sun Mar 21, 2010 11:50 pm
Posts: 24
Location: Moscow, Russia
First post has been updated!

Attached new snmp_execscripts.php for new versions of Net-SNMP with "extend" only option.
Replace snmp_execscripts.php on new and change "exec" to "extend" in snmpd.conf

_________________
"Imagination is more important than Knowledge."


Top
 Profile  
 
 Post subject: Re: Netfilter Conntrack Status (shows all current connection
PostPosted: Sat Jan 23, 2016 8:54 am 
Offline

Joined: Tue Oct 04, 2011 12:57 pm
Posts: 17
and there is an analogue for zabbix?


Top
 Profile  
 
 Post subject: Re: Netfilter Conntrack Status (shows all current connection
PostPosted: Sat Jan 28, 2017 12:24 pm 
Offline

Joined: Wed Oct 02, 2013 7:14 am
Posts: 24
Great job, red_neon!
As for the SNMP extend issue, I just followed your install steps on an Ubuntu server 16.04, and didn't use extend, but exec, and everything is working.
I didn't get the point regarding the exec X extend issue.

_________________
Cacti 0.8.8f over Ubuntu Server 16.04.1 monitoring
[list][*]Router Ubuntu Server 16.04.1 over Celeron J1900i
[*]TP-LINK WRT841ND / OpenWRT AP
[*]Humax HG100R-L2 Residential Gateway


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 25 posts ]  Go to page Previous  1, 2

All times are UTC - 5 hours


Who is online

Users browsing this forum: Bing [Bot] and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group