Alive

This tool allows you to monitor a systems alive status

You'll need to keep sending an alive beacon to the server. If the server does not receive an alive message within the last 24 hours, the system is considered dead.

Usage : posting an alive message

http://prescienta-stun.cloudapp.net/alive/alive.aspx?uid=[username]&pid=[probe name]

Example (curl)

curl http://prescienta-stun.cloudapp.net/alive/alive.aspx?uid=morten&pid=OMS3_Server

Viewing your statuses

http://prescienta-stun.cloudapp.net/alive/alive_dash.aspx?uid=[username]

Gather

This tool allows you to collect and view numbers

Usage

http://prescienta-stun.cloudapp.net/gather/gather.aspx?uid=[username]&pid=[probe name]&val=[numerical value]

Example (curl)

curl http://prescienta-stun.cloudapp.net/gather/gather.aspx?uid=morten&pid=visitors&val=4

Example (powershell)

Invoke-RestMethod http://prescienta-stun.cloudapp.net/gather/gather.aspx?uid=morten"&"pid=oms"&"val=14

Use case example

Track CPU, memory and or disk usage from a customer system.

Example Powershell script (Don't forget to change the uid and pid)

$cpu = Get-Counter '\Processor(_total)\% Processor Time'
$cpu_use = $cpu.CounterSamples.CookedValue
Invoke-RestMethod http://prescienta-stun.cloudapp.net/gather/gather.aspx?uid=morten"&"pid=test"&"val=$cpu_use

View a graph of the gathered values by going to this address

http://prescienta-stun.cloudapp.net/Gather/graph.aspx?uid=[username]&pid=[probe name]

Example

Smtp2Webhook

This tool allows you to get (close to) realtime notifications from cameras that sends emails, and execute a webhook command instead

Usage

Smtp2Webhook.exe [port] [webhook]

Example

Smtp2Webhook.exe 10000 http://prescienta-stun.cloudapp.net/pusher/push_event.aspx?msg=Alarm+${from}

macros

${from}From address given
${to}To address given
${peer}Peer address (ip:port)
${subject}email subject
mail payloadthe mail payload (DATA) is sent as a POST payload

Download a tool here (Windows, .NET) : Smtp2Webhook.exe

StreamFinder

Streamfinder is a very simple, work in progress tool that allows you to find cameras on a LAN, while seeing what cameras are found from a web page.

A common problem is that the installer may have a phone or laptop that is NOT on the customers LAN. The installer then has to either open ports on the firewall (bad), or get their device on the LAN (also bad, you do not want foreign devices on the CCTV segment).

This app shows using a bit of custom code, and a bit of cloud dust to accomplish these things, it is by no means intended as a product, but more as a demo of what you can do with the tools at our disposal

The first thing you need to do, is to open a URL in a browser,

http://prescienta-stun.cloudapp.net/pusher/pusher2.aspx?who=[enter some ID here]

You'll see a very boring page that says "Live notifications will appear here"

Then, open a prompt, and CD to the dir with the streamfinderloop.exe file.

You'll enter the following command :

StreamFinderLoop.exe [start IP] [stop IP] [ID you entered before]

So for example, you have opened

http://prescienta-stun.cloudapp.net/pusher/pusher2.aspx?who=neat
and your cameras are located on 192.168.0.10 to 192.168.0.100, you'll enter the following command
StreamFinderLoop.exe 192.168.0.10 192.168.0.100 neat
as the streamfinderloop runs, the web page will populate with the camera found.

Download a tool here : Stream Finder

You should pick 720p and possibly full screen for the best viewing result