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    


Bluecoat Proxy Template (inc fan & temp) (2005/09/19)
Goto page 1, 2, 3  Next
 
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates
Author Message
cmarsot



Joined: 13 Sep 2005
Posts: 27

PostPosted: Tue Sep 13, 2005 7:23 am    Post subject: Bluecoat Proxy Template (inc fan & temp) (2005/09/19) Reply with quote

Hi,

Here is a template for Bluecoat Proxy (based on the one done by Morgan)
http://forums.cacti.net/viewtopic.php?t=6735&start=0&postdays=0&postorder=asc&highlight=bluecoat

Here what it graphs:
- Traffic
- CPU Load
- HTTP Clients Requests / Clients Hits
- HTTP Proxy Requests (Server requests)
- Hit Ratio (Objects, Bytes)
- Workers (Max specified by licence, and current)
- Availability
- Response Time
- Fan Speed : CPU, Chassis (new)
- Temperature : CPU, Motherboard (new)


DO NOT FORGET to change username/password in perl script.

When CPU Temp is not available (like CPU2 on ProxySG 800) the return value is 0.
When Fan speed is not available (like fan on CPU 2 on proxySG 800), the return value is defined to 10. I decided not to define to 0 due to thold Alerts.

Temperature & Fan Speed DO NOT WORK on ProxySG400 (information are not available in sysinfo).
Both scripts (Fan Speed & Temperature) must be modified to work with CacheFlow.

Have Fun !



cacti_host_template_bluecoat_proxy.xml
 Description:
Bluecoat Template export from cacti 0.8.6g (include temperature & fan speed)

Download
 Filename:  cacti_host_template_bluecoat_proxy.xml
 Filesize:  225.06 KB
 Downloaded:  2396 Time(s)


proxySG_hit_ratio.pl.txt
 Description:
Hit Ratio Script (to be placed in scripts folder) Valided with SGOS 3.2.X

Download
 Filename:  proxySG_hit_ratio.pl.txt
 Filesize:  4.69 KB
 Downloaded:  1726 Time(s)


proxySG_workers.pl.txt
 Description:
Get Workers Script (to be placed in scripts folder) Valided with SGOX 3.2.X

Download
 Filename:  proxySG_workers.pl.txt
 Filesize:  2.76 KB
 Downloaded:  1570 Time(s)



Last edited by cmarsot on Mon Sep 19, 2005 2:45 am; edited 6 times in total
Back to top
Morgan
Cacti User


Joined: 25 Feb 2004
Posts: 187

PostPosted: Tue Sep 13, 2005 8:13 am    Post subject: Reply with quote

cmarsot, could you post some screenshots so i can see if there are any differences.
Also, i have a sticky over at forums.bluecoat.com in the proxy SG forum with a link to my original post if you feel like adding yours there.

Morgan
Back to top
cmarsot



Joined: 13 Sep 2005
Posts: 27

PostPosted: Wed Sep 14, 2005 2:35 am    Post subject: Bluecoat Proxy Template Screenshot 1 Reply with quote

You will find below screenshots asked by Morgan.


cpu.png
 Description:
Cpu
 Filesize:  5.15 KB
 Viewed:  17647 Time(s)

cpu.png



client requests.png
 Description:
Clients Hits & Requests
 Filesize:  9.49 KB
 Viewed:  17647 Time(s)

client requests.png



availability.png
 Description:
Availability
 Filesize:  3.71 KB
 Viewed:  17647 Time(s)

availability.png




Last edited by cmarsot on Wed Sep 14, 2005 2:36 am; edited 1 time in total
Back to top
cmarsot



Joined: 13 Sep 2005
Posts: 27

PostPosted: Wed Sep 14, 2005 2:36 am    Post subject: Bluecoat Proxy Template Screenshot 2 Reply with quote

Other screenshots


server requests.png
 Description:
Proxy Requests
 Filesize:  7.5 KB
 Viewed:  17646 Time(s)

server requests.png



response time.png
 Description:
Response Time
 Filesize:  5.14 KB
 Viewed:  17646 Time(s)

response time.png



hit ratio.png
 Description:
Hit Ratio
 Filesize:  4.82 KB
 Viewed:  17646 Time(s)

hit ratio.png


Back to top
cmarsot



Joined: 13 Sep 2005
Posts: 27

PostPosted: Wed Sep 14, 2005 2:37 am    Post subject: Bluecoat Proxy Template Screenshot 3 Reply with quote

More screenshots


workers.png
 Description:
Workers
 Filesize:  4.78 KB
 Viewed:  17644 Time(s)

workers.png



traffic.png
 Description:
Traffic
 Filesize:  6.41 KB
 Viewed:  17644 Time(s)

traffic.png


Back to top
cmarsot



Joined: 13 Sep 2005
Posts: 27

PostPosted: Fri Sep 16, 2005 4:23 am    Post subject: Temperature & Fan rotation of Bluecoat Proxy SG Reply with quote

Hi,

I have write scripts and graphs to graphs Temperature of CPU & Motherboard, and Fan rotation speed of CPU, and chassis.

Anyone is interesting ?
Back to top
cmarsot



Joined: 13 Sep 2005
Posts: 27

PostPosted: Mon Sep 19, 2005 2:41 am    Post subject: Reply with quote

Temperature graph


temperature.png
 Description:
Temperature Graph
 Filesize:  9.79 KB
 Viewed:  17517 Time(s)

temperature.png



proxySG_sensors_temp.pl.txt
 Description:
Temperature Script

Download
 Filename:  proxySG_sensors_temp.pl.txt
 Filesize:  2.15 KB
 Downloaded:  1119 Time(s)



Last edited by cmarsot on Mon Sep 19, 2005 3:23 am; edited 1 time in total
Back to top
cmarsot



Joined: 13 Sep 2005
Posts: 27

PostPosted: Mon Sep 19, 2005 2:43 am    Post subject: Reply with quote

Fan Speed


Fan Speed.png
 Description:
Fan Speed Graph
 Filesize:  10.3 KB
 Viewed:  17516 Time(s)

Fan Speed.png



proxySG_sensors_fan.pl.txt
 Description:
Fan Speed Script

Download
 Filename:  proxySG_sensors_fan.pl.txt
 Filesize:  2.47 KB
 Downloaded:  1132 Time(s)

Back to top
special_r



Joined: 21 Sep 2005
Posts: 2

PostPosted: Wed Sep 21, 2005 8:47 am    Post subject: importing templates Reply with quote

I'm having the same problems that HL had on the Bluecoat forums. I'm unable to import the templates.I'm getting a 'Error: XML: Hash version does not exist.' when I attempt either importing from a file or by copying the text.
Back to top
cmarsot



Joined: 13 Sep 2005
Posts: 27

PostPosted: Thu Sep 22, 2005 5:10 am    Post subject: Reply with quote

What is your version of cacti ?
Back to top
special_r



Joined: 21 Sep 2005
Posts: 2

PostPosted: Fri Sep 23, 2005 5:22 am    Post subject: Reply with quote

I'm using Cacti 0.8.6f
Back to top
cmarsot



Joined: 13 Sep 2005
Posts: 27

PostPosted: Sat Sep 24, 2005 2:03 am    Post subject: Reply with quote

As I said on the post, the template has been extract from cacti 0.8.6g

I don't know if you can import template from 0.8.6g with an older version ...
Back to top
cmarsot



Joined: 13 Sep 2005
Posts: 27

PostPosted: Wed Sep 28, 2005 5:23 am    Post subject: Reply with quote

Hi all,

I have found that perhaps scripts will not work fine.
By default, HTTP statistics returned by scripts (Hit Ratio, Temp, Fan speed) will be in HTLM mode ...

So to not have this problem, you should connect to your proxies using this URL (one time is enough):
https://X.X.X.X:8082/Console_urls/stats_mode=0

I will try to insert this in my scripts !
Back to top
mbassett



Joined: 04 Oct 2005
Posts: 2

PostPosted: Tue Oct 04, 2005 3:15 pm    Post subject: problems Reply with quote

First i have a dependency problem in the import of this and yes i'm running g.

Cacti has imported the following items:

Round Robin Archive
[success] Daily (5 Minute Average) [update]
[success] Weekly (30 Minute Average) [update]
[success] Monthly (2 Hour Average) [update]
[success] Yearly (1 Day Average) [update]

CDEF
[success] Unknown-Data [update]
[success] Turn Bytes into Bits [update]
[success] Total All Data Sources [update]
[success] Turn Bytes into Bits, Make per Second, Convert in Percent [update]

GPRINT Preset
[success] Normal [update]
[success] Percentage [update]
[success] Exact Numbers [update]

Data Input Method
[success] Get SNMP Data [update]
[success] ProxySG Hit Ratio [update]
[success] ProxySG Workers [update]
[success] Host - Get Availability Percent [update]
[success] Host - Get Availability Current [update]
[success] ProxySG Temp [update]
[success] ProxySG Fan [update]
[success] Get SNMP Data (Indexed) [update]

Data Template
[success] Bluecoat Proxy - Client HTTP Requests [update]
[success] Bluecoat Proxy - Client HTTP Hits [update]
[success] Bluecoat Proxy - CPU [update]
[success] Bluecoat Proxy - Server HTTP [update]
[success] Bluecoat Proxy - Hit Ratio [update]
[success] Bluecoat Proxy - Workers [update]
[success] _Availability [update]
[success] _Response Time [update]
[success] Bluecoat Proxy - Temperature [update]
[success] Bluecoat Proxy - Fan [update]
[success] Interface - Traffic [update]
[success] Interface - Errors/Discards [update]
[success] Interface - Unicast Packets [update]
[success] Interface - Non-Unicast Packets [update]

Graph Template
[success] #PRX03 - Proxy - HTTP Client Requests (and Hits) [update]
[success] #PRX02 - Proxy - CPU Load [update]
[success] #PRX04 - Proxy - HTTP Server Requests [update]
[success] #PRX08 - Proxy - Hit Ratio [update]
+ Found Dependency: (Data Template Item) hr_objects
+ Found Dependency: (GPRINT Preset) Percentage
+ Found Dependency: (Data Template Item) hr_bytes
+ Unmet Dependency: (Data Template Item)
+ Found Dependency: (CDEF) Unknown-Data
+ Found Dependency: (GPRINT Preset) Normal
[success] #PRX09 - Proxy - Workers [update]
[success] #_Availability [update]
[success] #_Response Time [update]
[success] #PRX10 - Proxy - Temperature [update]
[success] #PRX11 - Proxy - Fan [update]
[success] Interface - Traffic (bits/sec) [update]
[success] Interface - Packets Errors/Discards [update]
[success] Interface - Packets Unicast [update]
[success] Interface - Packets Non-Unicast [update]
[success] Interface - Traffic (bytes/sec) [update]
[success] Interface - Traffic (bits/sec, 95th Percentile, Total Bandwith) [update]
[success] Interface - Traffic (bits/sec, Total Bandwidth) [update]
[success] Interface - Traffic (bytes/sec, Total Bandwidth) [update]

Data Query
[success] SNMP - Interface Statistics [update]

Host Template
[success] Bluecoat Proxy [new]



Second: When trying to use the provided scripts (after changing to their proper case sensitivity of course (proxySG) i would get
500 Can't read entity body:

and I'm using the latest proxySG in HTTPS mode which uses port 8082. SO, after changing all the scripts to use curl instead of LWP since I could not get LWP to work at all, I now am getting the proper results when I manually run the scripts. However, still nothing in the graphs at all.
Back to top
mbassett



Joined: 04 Oct 2005
Posts: 2

PostPosted: Tue Oct 04, 2005 4:11 pm    Post subject: Reply with quote

sh: /usr/share/cacti/site/scripts/host_availability_percent.php: No such file or directory
sh: /usr/share/cacti/site/scripts/host_availability_current.php: No such file or directory


what are these?

I've gotten some of them fixed by trimming whitespace (probably the difference between using LWP and curl) but I still can't get any of the snmp ones to work.

The ones that aren't working are showing this
:
ERROR: bad format for [G]PRINT in 'Current:'
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 1, 2, 3  Next
Page 1 of 3

 



Powered by phpBB © 2001, 2005 phpBB Group