Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


[perl] TCP Connection Status
Goto page Previous  1, 2, 3, 4
 
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates
Author Message
Rael
Cacti User


Joined: 05 Apr 2007
Posts: 128

PostPosted: Tue Sep 23, 2008 8:31 am    Post subject: Reply with quote

Anyone? I'm pretty stumped here.
Back to top
Rael
Cacti User


Joined: 05 Apr 2007
Posts: 128

PostPosted: Tue Oct 07, 2008 10:35 am    Post subject: Reply with quote

Nobody has anything on why running the same script from within cacti and by hand produces two different results like I posted on page 3 at the bottom?
Back to top
lints



Joined: 08 Nov 2007
Posts: 25
Location: Ottawa, Canada

PostPosted: Thu Oct 09, 2008 9:59 am    Post subject: Reply with quote

I can't say I have any idea why it's producing different results when run by hand versus by the poller, but I might have a work around.

I converted this from perl to script server because I figured it might be a bit faster overall than the perl version.

Attached is a PHP script-server version that calls snmpnetstats and returns the values needed. It also should support SNMP V3, although I haven't tested it.

You should just be able to import the xml file (which has the graph template and all it's dependencies) and put the php file in your scripts directory after removing the ".txt" from the end of the filename.



cacti_graph_template_snmp_-_tcp_connection_status.xml
 Description:
Graph template with all dependencies. NOTE:this includes my non-standard RRAs. You may have to remove them manually after importing this.

Download
 Filename:  cacti_graph_template_snmp_-_tcp_connection_status.xml
 Filesize:  39.92 KB
 Downloaded:  91 Time(s)


ss_tcp_connections.php.txt
 Description:
Script Server version of the TCP Connections script. Remove the ".txt" extension and place in your Scripts directory.

Download
 Filename:  ss_tcp_connections.php.txt
 Filesize:  2.88 KB
 Downloaded:  81 Time(s)

Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates All times are GMT - 5 Hours
Goto page Previous  1, 2, 3, 4
Page 4 of 4

 



Powered by phpBB © 2001, 2005 phpBB Group