Community discussions

MUM Europe 2020
User avatar
Member Candidate
Member Candidate
Topic Author
Posts: 299
Joined: Sun Jun 25, 2006 11:55 pm
Location: Argentina

check if squid is up

Mon Jun 02, 2008 10:10 pm

hi, i need a script to do something like this

Check if a port in a pc is opened
if yes do nothing
if not, disable some firewall/nat rules and send an email

my scripting skills are none... but if someone can help me with the first part (red bold line) then i can obtain the rest from other scripts
Member Candidate
Member Candidate
Posts: 152
Joined: Tue Oct 18, 2005 7:34 pm

Re: check if squid is up

Thu Jun 05, 2008 12:53 pm

I couldn't find a way to check a specific port so I created a queue for traffic coming from the proxy server and I know that if it drops below a certain level squid has probably failed.


:global proxy1rate ([/queue tree get "Proxy 1 Cache Hit" rate])
:if ($proxy1rate < 50000) do={/system script run "Proxy 1 - Disable Redirect"}
:if ($proxy1rate < 50000) do={/tool e-mail send to="" subject="Proxy1 Below Threshold" body=("Proxy1 Below Threshold " . [/system clock get time])}

Who is online

Users browsing this forum: No registered users and 21 guests