Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support
It is currently Mon May 21, 2012 8:56 am


ATTENTION: All users passwords have been cleared.
Please use the "Forgot Password" feature to reset your password.


All times are UTC - 5 hours




Post new topic Reply to topic  [ 128 posts ]  Go to page 1, 2, 3, 4, 5 ... 9  Next
Author Message
 Post subject: [XML] SquidStats version 0.1 (cacti 0.8.5 only!!!)
PostPosted: Thu Jan 29, 2004 4:45 pm 
Offline

Joined: Wed Dec 10, 2003 7:19 am
Posts: 42
Folks:

I'm placing this first release in this forum because you either have to be brave enough to be using a cacti 0.8.5 pre-release installation or desperate enough to upgrade in order to get your squid system monitored. 8)

So this most definitely needs an upgrade to the latest pre-release version - I've tested SquidStats v0.1 with the 28Jan build.

The other reason I'm putting this out here, is that it would be great if someone could give it a spin and see whether there are any problems with it.

I will then re-release as v0.2 in the main add-ons forum once cacti 0.8.5 is out.

For further details please see the included readme.txt file.

Kind Regards,
Rolf.


Attachments:
File comment: SquidStats v0.1 - Please see README.txt
SquidStats-0.1.zip [23.06 KiB]
Downloaded 13562 times
Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 30, 2004 9:18 am 
Offline
Cacti User

Joined: Wed Oct 29, 2003 7:08 am
Posts: 101
Rolf - What's the 0.8.5 Driver - is it a bug fix (I've found a couple in 0.8.4 imports) or feature thing ?

Deano


Top
 Profile  
 
 Post subject: cacti 0.8.5 - where to find it:
PostPosted: Fri Jan 30, 2004 9:35 am 
Offline

Joined: Wed Dec 10, 2003 7:19 am
Posts: 42
Deano:

I'm a big fan of your templates by the way ! Especially Cisco NBAR..

I didn't mean "driver", I meant the latest beta release of cacti version 0.8.5.

In case you didn't know where to find it, it is at:

http://www.raxnet.net/download/beta/unix

or

http://www.raxnet.net/download/beta/win32

(depending on which OS you're using).

I haven't tested it on the windows version, but I trust that cacti abstracts the OS details enough for us not to worry about it too much.

Just get the latest nightly build (currently 30 Jan) and squidstats should work with that.

If you're not willing to take the risks beta versions bring, then it's probably best to wait until cacti version 0.8.5 is released.

Regards,
Rolf.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 30, 2004 9:47 am 
Offline
Cacti User

Joined: Wed Oct 29, 2003 7:08 am
Posts: 101
Sorry I meant Driver - as in "why you need" 0.8.5 - Just interested if it was to make use of new features or to solve bugs.

Testing my stuff on 0.8.5 is on my list (just struggling to find enouh time).

Deano
(If I could type I'd be truly dangerous!)


Top
 Profile  
 
 Post subject: 0.8.5 has fixed host template imports
PostPosted: Fri Jan 30, 2004 9:55 am 
Offline

Joined: Wed Dec 10, 2003 7:19 am
Posts: 42
Deano:

Oh...

Basically the subject line says it - the host template imports had a bug in version 0.8.4 which caused problems with more than one graph template. That would be the main reason.

Another reason is the fact that there is also a derivation precedence for SNMP variables makes life easier but isn't absolutely essential.

(Basically the new behaviour is if the data template values for snmp community string. version or other common items are empty, then it will look for the defaults from the host's values and use those.)

I guess I could have created 14 graph template exports and those might have worked with 0.8.4, but I thought I'd try and make life simple and wait for 0.8.5 to bring the goodies. Perhaps I should have waited a bit before going public, but I figured there may be some squid enthusiasts out there that would be willing to try it out so long.

A big thank you goes to Rax for fixing the bugs I mentioned above !!!

Regards,
Rolf.


Top
 Profile  
 
 Post subject: problem with ssquistats 0.1 and cacti 0.8.5
PostPosted: Mon Mar 29, 2004 6:28 am 
Is there a new version of squidstats for cacti 0.8.5?

Because i didn't succeed in making it work with my cacti installation.

All is going well with the import of template but when i want to import the device it doesn't work as it should to work

in the docs it s written
The real test to see whether the association of your new host and the Squid Host template worked is in the
block called "Associated Data Queries". There should be two data query entries, and both of them should have
a green "Success" indicator showing that the queries succeeded.

The first query (Core) should have 1 Item and 1 Row, and the second (Median Based) should have 3 Items and 3 Rows.

and i got this
Associated Data Queries
Data Query Name Debugging Status
1) (Verbose Query) Success [0 Items, 0 Rows]
2) WebCache - Squid Statistics - Core (Verbose Query) Success [0 Items, 0 Rows]

and no associated graphs.

when i click on verbose query i got
+ Running data query [10].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/webcache_squid_core.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.3495.1.3.2.1.11'
+ No SNMP data returned

I guess i got no date from snmp

but it work then i ran the snmpquery by hand

snmpwalk -c community -v 1 proxy.int-evry.fr:3401 .1.3.6.1.4.1.3495.1.3.2.1.11

SNMPv2-SMI::enterprises.3495.1.3.2.1.11.0 = INTEGER: 0

Does someone know what happened?


Top
  
 
 Post subject:
PostPosted: Sat Apr 17, 2004 11:20 pm 
Offline

Joined: Sat Apr 17, 2004 11:15 pm
Posts: 1
Rolf:
Thanks you very much!...nice and great howto, working great in Gentoo/Cacti 0.8.5a with a Clarkconnect (Redhat 9) Squid Box.

thanks again.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 21, 2004 5:19 pm 
thank you I have, been wanting to convert from mrtg to cacti and this was the only thing holding me back was poll my squid server.

one word... pimp...

I'm just going to add this just in case your cacti and squid aren't running on the same box.

add this to your /etc/squid/squid.conf
Code:
acl cactiserver src <ipaddress here>

......

snmp_access allow snmpcommunity cactiserver

--> restart squid

add open up udp for the squid server with iptables
==============================
Code:
# iptables -A INPUT -I ethX -p udp --dport 3401 -j ACCEPT


Top
  
 
 Post subject:
PostPosted: Thu Apr 22, 2004 7:14 am 
i have about the same problem as glopglop, queries seem successful but they're both empty (0 items , 0 rows)
Code:
Data Query Debug Information:
+ Running data query [11].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/webcache_squid_median.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.3495.1.3.2.2.1.1'
+ No SNMP data returned

when testing with a snmpwalk i get a lot of lines looking like the following :
Code:
SNMPv2-SMI::enterprises.3495.1.1.1.0 = INTEGER: 1868
SNMPv2-SMI::enterprises.3495.1.1.2.0 = INTEGER: 1843168
SNMPv2-SMI::enterprises.3495.1.1.3.0 = Timeticks: (90029) 0:15:00.29

until the 2 last lines where i get an error :
Code:
SNMPv2-SMI::enterprises.3495.1.5.2.1.1.10.0.105.81 = IpAddress: 10.0.105.81
Error: OID not increasing: SNMPv2-SMI::enterprises.3495.1.5.2.1.1.10.0.105.91
>= SNMPv2-SMI::enterprises.3495.1.5.2.1.1.10.0.105.81


any help would be greatly appreciated :(


Top
  
 
 Post subject: Squid SNMP
PostPosted: Mon Apr 26, 2004 9:15 am 
Offline
Cacti User
User avatar

Joined: Mon Oct 13, 2003 4:11 am
Posts: 99
Location: Zottegem, Belgium
Hi,

If you use the SNMP deamon of the system you need to proxy your squid SNMP stats into the SNMP deamon of the system.

To do so add the following to your "snmpd.conf"
Code:
# Retrieve Squid Proxy SNMP
proxy -v 1 -c your_community_string localhost:3401 .1.3.6.1.4.1.3495.1


This makes your System SNMP deamon proxy the Squid SNMP stats.
Otherwise your SNMP deamon that is running on the same port will intercept the querries for Squid and returns no data.

Hope this helps,
Kwabbernoot


Top
 Profile  
 
 Post subject: graph problem
PostPosted: Mon May 03, 2004 11:23 am 
hy guys,

ive got a problem with my cacti tool and squid-monitoring (running cacti 0.8.5a).

when i create a graph for my host the debug mode says:

ERROR: opening '/opt/lampp/htdocs/cacti/rra/squid_port_8080_squid_serverinkb_507.rrd': No such file or directory

what does this mean ?

i think when i press the "create" button, the cacti doesn't create a .rrd file ?

any ideas?

thank for your help! :)


Top
  
 
 Post subject: No .rrd file
PostPosted: Tue May 04, 2004 2:13 am 
Offline
Cacti User
User avatar

Joined: Mon Oct 13, 2003 4:11 am
Posts: 99
Location: Zottegem, Belgium
Hi,

This usually means that Cacti did not create your rrd file.
These files are created whenever the Cacti poller executes your stat request for the first time.

In case you use "cmd.php" it will create the file, in case you use "cactid" this process will create the file.

In case that either of these processes do not create any files you should check the permissions of the <path_cacti>/rra and <path_cacti>/log.
The permissions on these directories should permit read and write access for the user and group that is used by the polling process.

Regards,
Kwabbernoot


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 04, 2004 2:19 am 
all other graphs are working without any problem ...

so, the permissions are okay.


Top
  
 
 Post subject: Log File
PostPosted: Tue May 04, 2004 4:58 am 
Offline
Cacti User
User avatar

Joined: Mon Oct 13, 2003 4:11 am
Posts: 99
Location: Zottegem, Belgium
What does the cacti log file specify ?

If no log file is present you can always redirect your crontab to a log file.

I use cactid to retreive my stats and I use a script that also generates a log file for script debug purposes:
Code:
date > /home/cacti/cactid084_run.log;
/usr/share/cactid/bin/cactid >> /home/cacti/cactid084_run.log;
date >> /home/cacti/cactid084_run.log;


My crontab looks like this:
Code:
# Get Cacti 0.8.4 Information
*/5 * * * * /home/cacti/run_cactid084 > /dev/null 2>&1


You could also redirect your output to a file directly. Instead of using "> /dev/nulll 2>&1".
I use a script because I additionaly log start and stop of deamon execution.

Regards,
Kwabbernoot


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 30, 2004 5:42 am 
Offline

Joined: Fri Jul 18, 2003 3:46 am
Posts: 23
First I want to say thanks for this pack, it seems to work fine here. Update from cacti 0.8.3 to 0.8.5a was luckily painless for me :)
But I can't create a graph for "WebCache - Squid - Service Timers", although this is presented in page source, it's not in the dropdown-menu...


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 128 posts ]  Go to page 1, 2, 3, 4, 5 ... 9  Next

All times are UTC - 5 hours


Who is online

Users browsing this forum: Bing [Bot] and 6 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