new poll example SQL queries
[APKPM.git] / templates / index.html.ep
1 % layout 'default';
2 % title 'Gearman demo';
3
4 <ul>
5 <li><a href="/user">Search for user</a> and show LDAP and ADSL stats
6 <li><a href="/gearman.html#ping/127.0.0.1">Gearman</a> web interface
7 <li><a href="/redis.html">last poll stats</a>
8 </ul>
9
10 Database schema:
11
12 <ul>
13 % foreach my $table ( qw(cpe_poll ping cpe_Davolink cpe_EasyGateway dslam_poll dslam) ) {
14 <li><a href="/psql/_d <%= $table %>"><%= $table %></a>
15 % }
16 </ul>
17
18 Gnuplot graphs:
19
20 <ul>
21 <li>poll stats
22 <ul>
23 <li><a href="/gnuplot?sql=select start,queued,ping_ok,davolink_ok,easygateway_ok from cpe_poll order by start desc limit 200">CPE</a>
24 <li><a href="/gnuplot?sql=select start,ok,queued,complete from dslam_poll where variant = 'ZTEDSLAM' order by start desc limit 200">ZTEDSLAM</a>
25 <li><a href="/gnuplot?sql=select start,ok,queued,complete from dslam_poll where variant = 'ZTEMSAN' order by start desc limit 200">ZTEMSAN</a>
26 </ul>
27 <li><a href="/gnuplot?sql=select timestamp,snrtx,attntx,pwrtx,pwrrx,attnrx,snrrx from adsl where username='test36zg@h1snc'">adsl stat for single user</a>
28 <li><a href="/gnuplot?sql=select timestamp,rtt from ping where ip << inet '10.17/16' order by timestamp desc limit 1000">ttl from 10.17 network</a>
29 </ul>
30
31 <!--
32 Low-level API tests:
33
34 <%= link_to 'HTTP ping' => 'ping_http' %>
35 <%= link_to 'Gearman ping' => 'ping_g' %>
36 -->