Skip to content

Commit

Permalink
Naming changed.
Browse files Browse the repository at this point in the history
  • Loading branch information
iprever committed Dec 17, 2015
1 parent 592b079 commit a598977
Show file tree
Hide file tree
Showing 9 changed files with 29 additions and 29 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2015 Preversoft,Inc.
Copyright (c) 2015 Preversoft, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
34 changes: 17 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# prever-apps-monitor-mysqlmariadb
# pang-apps-monitor-mysqlmariadb
Mysql and Mariadb monitoring application for Traffic, Queries per second, Reads/Writes per second and more.
You can monitor and access your database using prever.io cloud web service on mobile, tablet and Laptop anywhere.
You can monitor and access your database using pangdata.com cloud web service on mobile, tablet and Laptop anywhere.

## Screen shot
###### Realtime monitoring ######
Expand All @@ -10,9 +10,9 @@ You can monitor and access your database using prever.io cloud web service on mo
![Mobile](https://github.com/pang-apps/pang-apps-monitor-mysqlmariadb/blob/master/screen-shot-2.png "Realtime monitoring")

## Getting Started
#### Sign up for Prever.io ####
Before you begin, you need an Prever.io account.
Please visit <a href="http://prever.io" target="_blank">http://prever.io</a> and create an account and retrieve your user key in user profile.
#### Sign up for Pangdata.com ####
Before you begin, you need an Pangdata.com account.
Please visit <a href="http://pangdata.com" target="_blank">http://pangdata.com</a> and create an account and retrieve your user key in user profile.

#### Minimum requirements ####
To run the application you will need **Java 1.5+**.
Expand All @@ -23,20 +23,20 @@ Very easy to install ^^.
##### Step 1 #####

###### Windows ######
Download a <a href="https://github.com/pang-apps/pang-apps-monitor-mysqlmariadb/releases/download/1.0/prever-apps-monitor-mysqlmariadb.zip">Prever mysql/mariadb monitoring application</a> file and unzip it.
Download a <a href="https://github.com/pang-apps/pang-apps-monitor-mysqlmariadb/releases/download/1.0/pang-apps-monitor-mysqlmariadb.zip">Pang Data mysql/mariadb monitoring application</a> file and unzip it.

###### Linux ######
```
wget https://github.com/pang-apps/pang-apps-monitor-mysqlmariadb/releases/download/1.0/prever-apps-monitor-mysqlmariadb.tar
tar -xvf prever-apps-monitor-mysqlmariadb.tar
wget https://github.com/pang-apps/pang-apps-monitor-mysqlmariadb/releases/download/1.0/pang-apps-monitor-mysqlmariadb.tar
tar -xvf pang-apps-monitor-mysqlmariadb.tar
```
##### Step 2: Configure prever.properties file #####
cd prever-apps-monitor-mysqlmariadb/conf
##### Step 2: Configure pang.properties file #####
cd pang-apps-monitor-mysqlmariadb/conf

Confgiure your account and user key in prever.properties.
Confgiure your account and user key in pang.properties.
```bash
prever.username=your username in prever.io
prever.userkey=your user key in prever.io
pang.username=your username in pangdata.com
pang.userkey=your user key in pangdata.com
```

Confgiure database connection properties
Expand Down Expand Up @@ -83,18 +83,18 @@ status.writes_per_second = true
status.reads_per_second = true
```

Note: User key can be found in your profile of Prever.io
Note: User key can be found in your profile of Pangdata.com
##### Step 3: Run #####
###### Windows ######
```
prever/prever.bat
pang-apps-monitor-mysqlmariadb/pang.bat
```
###### Linux ######
```
prever/./prever.sh
pang-apps-monitor-mysqlmariadb/pang.sh
```
##### Step 4: Access your devices #####
Register your device in Prever.io
Register your device in Pangdata.com

Login your account.
See main dashborad and you can find unregistered device.
Expand Down
4 changes: 2 additions & 2 deletions pang-apps-monitor-mysqlmariadb/conf/logback.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<configuration scan="true" scanPeriod="1 minutes">
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>./logs/prever.log</file>
<file>./logs/pang.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
<fileNamePattern>./logs/prever.%i.log</fileNamePattern>
<fileNamePattern>./logs/pang.%i.log</fileNamePattern>
<minIndex>1</minIndex>
<maxIndex>21</maxIndex>
</rollingPolicy>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#Prever.io reserved properties
prever.username=your username in prever.io
prever.userkey=your userkey in prever.io
# Search schedule period(seconds)
prever.period = 10
pang.username=your username in prever.io
pang.userkey=your userkey in prever.io
# Data sending schedule period(seconds)
pang.period = 10

#Don't worry. We do not send any information about connection properties
jdbc.driverClassName=com.mysql.jdbc.Driver
Expand Down
2 changes: 1 addition & 1 deletion pang-apps-monitor-mysqlmariadb/kill.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env bash

ps -ef | grep java | grep -v grep | grep io.prever.apps.monitor.MysqlMariaDBMonitor | grep -v PID | awk '{print "kill -9 "$2}' | sh -x
ps -ef | grep java | grep -v grep | grep com.pangdata.apps.monitor.MysqlMariaDBMonitor | grep -v PID | awk '{print "kill -9 "$2}' | sh -x
2 changes: 1 addition & 1 deletion pang-apps-monitor-mysqlmariadb/log.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
tail -f ./logs/prever.log
tail -f ./logs/pang.log
1 change: 1 addition & 0 deletions pang-apps-monitor-mysqlmariadb/pang.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
java -cp ./libs/*;./conf com.pangdata.apps.monitor.MysqlMariaDBMonitor
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ JMX="$JMX -Dcom.sun.management.jmxremote.authenticate=false"
JMX="$JMX -Dcom.sun.management.jmxremote.ssl=false"

#To enable JMX
#nohup $JMX java -cp ./libs/*:./conf io.prever.apps.monitor.MysqlMariaDBMonitor > /dev/null 2>&1&
#nohup $JMX java -cp ./libs/*:./conf com.pangdata.apps.monitor.MysqlMariaDBMonitor > /dev/null 2>&1&

nohup java -cp ./libs/*:./conf io.prever.apps.monitor.MysqlMariaDBMonitor > /dev/null 2>&1&
nohup java -cp ./libs/*:./conf com.pangdata.apps.monitor.MysqlMariaDBMonitor > /dev/null 2>&1&
1 change: 0 additions & 1 deletion pang-apps-monitor-mysqlmariadb/prever.bat

This file was deleted.

0 comments on commit a598977

Please sign in to comment.