Skip to content

Commit 6258e64

Browse files
committed
Enh: rebranding done (ง︡’-‘︠)ง
1 parent f6ab30b commit 6258e64

File tree

931 files changed

+4033
-648
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

931 files changed

+4033
-648
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ script:
4444
- chmod a+x *sh
4545
- ./test_suite.sh
4646
# - ./test_installation.sh
47-
# - nosetests -xv --processes=1 --process-timeout=300 --process-restartworker --with-cov --cov=kunai --exe
47+
# - nosetests -xv --processes=1 --process-timeout=300 --process-restartworker --with-cov --cov=opsbro --exe
4848
# - coverage combine
4949
# - cd ..
5050

MANIFEST.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
recursive-include kunai *.*
1+
recursive-include opsbro *.*
22
recursive-include etc *
33
recursive-include bin *
44
recursive-include test *.*

README.md

+28-28
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11

22

33

4-
This is a first release of the kunai project about a service discovery / monitoring / light cfg management / command execution tool.
4+
This is a first release of the opsbro project about a service discovery / monitoring / light cfg management / command execution tool.
55

6-
[![Build Status](https://travis-ci.org/naparuba/kunai.svg)](https://travis-ci.org/naparuba/kunai)
6+
[![Build Status](https://travis-ci.org/naparuba/opsbro.svg)](https://travis-ci.org/naparuba/opsbro)
77

88

9-
## **Kunai**: monitoring and service discovery
9+
## **OpsBro**: monitoring and service discovery
1010

1111
![Agent](images/agent.png)
1212

@@ -40,36 +40,36 @@ Just launch:
4040
python setup.py install
4141

4242

43-
## Run your daemon, and join the kunai cluster
43+
## Run your daemon, and join the opsbro cluster
4444

45-
#### Start Kunai
45+
#### Start OpsBro
4646

47-
You can start kunai as a daemon with:
47+
You can start opsbro as a daemon with:
4848

49-
/etc/init.d/kunai start
49+
/etc/init.d/opsbro start
5050

5151
You can also launch it in foreground:
5252

53-
kunai agent start
53+
opsbro agent start
5454

5555

56-
#### Stop kunai daemon
56+
#### Stop opsbro daemon
5757
Just launch:
5858

59-
kunai agent stop
59+
opsbro agent stop
6060

6161
Or use the init.d script:
6262

63-
/etc/init.d/kunai stop
63+
/etc/init.d/opsbro stop
6464

6565

6666

67-
#### Display kunai information
67+
#### Display opsbro information
6868
Just launch:
6969

70-
kunai info
70+
opsbro info
7171

72-
You will have several information about the current kunai agent state:
72+
You will have several information about the current opsbro agent state:
7373

7474

7575
![Agent](images/info.png)
@@ -83,7 +83,7 @@ First you need to install and launch the node in another server.
8383

8484
Then in this other server you can launch:
8585

86-
kunai join OTHER-IP
86+
opsbro join OTHER-IP
8787

8888
##### Auto discover LAN nodes (UDP broadcast detection)
8989

@@ -92,24 +92,24 @@ If your nodes are on the same LAN, you can use the UDP auto-detection to list ot
9292
NOTE: if you are using an encryption key (recommanded) then you must already have set it. If not, the other node won't answer to your query.
9393

9494

95-
kunai agent detect
95+
opsbro agent detect
9696

9797
If the other nodes are present, they will be list by the command.
9898

9999

100100
If you want to auto-join the other node cluster, then you can use the --auto-join parameter:
101101

102-
kunai agent detect --auto-join
102+
opsbro agent detect --auto-join
103103

104104
It will try to join nodes based on:
105105
* first try to a proxy node if present
106106
* if no proxy node is present, then use the fist other node
107107

108108

109-
##### List your kunai cluster members
109+
##### List your opsbro cluster members
110110
You can list the cluster members on all nodes with :
111111

112-
kunai members
112+
opsbro members
113113

114114
![Agent](images/members.png)
115115

@@ -146,7 +146,7 @@ Collectors are code executed by the agent to grok and store local os or applicat
146146

147147
You can list available collectors with the command:
148148

149-
kunai collectors list
149+
opsbro collectors list
150150

151151

152152
![Agent](images/collectors-list.png)
@@ -241,7 +241,7 @@ You must define it in your local configuration:
241241
- unknown
242242
contacts:
243243
244-
addr_from: "kunai@mydomain.com"
244+
addr_from: "opsbro@mydomain.com"
245245
smtp_server: localhost
246246
subject_template: "email.subject.tpl"
247247
text_template: "email.text.tpl"
@@ -310,7 +310,7 @@ You must define a dns object in your local configuration to enable this interfac
310310
dns:
311311
enabled : true
312312
port : 6766
313-
domain : ".kunai"
313+
domain : ".opsbro"
314314

315315

316316
* enabled: start or not the listener
@@ -319,7 +319,7 @@ You must define a dns object in your local configuration to enable this interfac
319319

320320
You will be able to query it with dig for test:
321321

322-
$dig -p 6766 @localhost redis.tag.dc1.kunai +short
322+
$dig -p 6766 @localhost redis.tag.dc1.opsbro +short
323323
192.168.56.103
324324
192.168.56.105
325325

@@ -415,21 +415,21 @@ The API is:
415415

416416
## How to see collected data? (metrology)
417417

418-
The kunai agent is by default getting lot of metrology data from your OS and applications. It's done by "collctors" objets. You can easily list them and look at the colelcted data by launching:
418+
The opsbro agent is by default getting lot of metrology data from your OS and applications. It's done by "collctors" objets. You can easily list them and look at the colelcted data by launching:
419419

420-
kunai collectors show
420+
opsbro collectors show
421421

422422

423423
**TODO** Allow to export into json format
424424

425425

426426
## How to see docker performance informations?
427427

428-
If docker is launched on your server, Kunai will get data from it, like collectors, images and performances.
428+
If docker is launched on your server, OpsBro will get data from it, like collectors, images and performances.
429429

430430
To list all of this just launch:
431431

432-
kunai docker show
432+
opsbro docker show
433433

434434

435435
## Get quorum strong master/slave elections thanks to RAFT
@@ -446,5 +446,5 @@ You can ask your node cluster system to elect a node for a specific task or appl
446446

447447
## Is there an UI available?
448448

449-
Yes. There is a UI available in the */var/lib/kunai/ui/* directory. It's just flat files and so you can just export the directory with apache/nginx and play with it.
449+
Yes. There is a UI available in the */var/lib/opsbro/ui/* directory. It's just flat files and so you can just export the directory with apache/nginx and play with it.
450450

bash_completion/kunai renamed to bash_completion/opsbro

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
_kunai()
1+
_opsbro()
22
{
33
COMPREPLY=()
44
CUR_LINE=""
@@ -11,5 +11,5 @@ _kunai()
1111

1212
COMPREPLY=($(compgen -W "$POSSIBLE_ARGS" -- "") )
1313
}
14-
complete -F _kunai kunai
14+
complete -F _opsbro opsbro
1515

bin/kunai renamed to bin/opsbro

+11-11
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ import signal
1313

1414
sys.path.append('.')
1515

16-
from kunai.log import cprint, logger, is_tty
17-
from kunai import cli as cli_mod
18-
from kunai.info import VERSION, BANNER, TXT_BANNER
19-
from kunai.modulemanager import modulemanager
20-
from kunai.misc.bro_quotes import get_quote
21-
from kunai.defaultpaths import DEFAULT_LOG_DIR, DEFAULT_CFG_FILE
16+
from opsbro.log import cprint, logger, is_tty
17+
from opsbro import cli as cli_mod
18+
from opsbro.info import VERSION, BANNER, TXT_BANNER
19+
from opsbro.modulemanager import modulemanager
20+
from opsbro.misc.bro_quotes import get_quote
21+
from opsbro.defaultpaths import DEFAULT_LOG_DIR, DEFAULT_CFG_FILE
2222

2323
logger.setLevel('WARNING')
2424

@@ -41,9 +41,9 @@ class Dummy():
4141

4242

4343
# if os.name != 'nt':
44-
# DEFAULT_CFG = '/etc/kunai/local.json'
44+
# DEFAULT_CFG = '/etc/opsbro/local.json'
4545
# else:
46-
# DEFAULT_CFG = 'c:\\kunai\\etc\\local.json'
46+
# DEFAULT_CFG = 'c:\\opsbro\\etc\\local.json'
4747

4848

4949
# Commander is the main class for managing the CLI session and behavior
@@ -53,7 +53,7 @@ class CLICommander(object):
5353

5454
self.config = config
5555

56-
log_dir = config.get('log', DEFAULT_LOG_DIR) # '/var/lib/kunai')
56+
log_dir = config.get('log', DEFAULT_LOG_DIR) # '/var/lib/opsbro')
5757
log_level = config.get('log_level', 'INFO')
5858
# early set the logger part
5959
logger.load(log_dir, '(cli)')
@@ -75,7 +75,7 @@ class CLICommander(object):
7575
# Main list of keywords for the first parameter
7676
self.keywords.clear()
7777

78-
# CLI are located in the kunai lib
78+
# CLI are located in the opsbro lib
7979
cli_mods_dir = os.path.dirname(os.path.abspath(cli_mod.__file__))
8080

8181
logger.debug("Loading the cli directory %s" % cli_mods_dir)
@@ -391,7 +391,7 @@ if __name__ == '__main__':
391391
CLI.print_list(' '.join(command_args))
392392
sys.exit(0)
393393

394-
# if just call kunai, we must show the available commands
394+
# if just call opsbro, we must show the available commands
395395
if len(command_args) == 0:
396396
if is_tty():
397397
cprint(BANNER)

data/global-configuration/handlers/email/email.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ handler:
88
- unknown
99
contacts:
1010
11-
addr_from: kunai@mydomain.com
11+
addr_from: opsbro@mydomain.com
1212
smtp_server: localhost
1313
subject_template: email.subject.tpl
1414
text_template: email.text.tpl

data/global-configuration/packs/apache/collectors/collector_apache.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import urllib2
33
import traceback
44

5-
from kunai.collector import Collector
5+
from opsbro.collector import Collector
66

77

88
class Apache(Collector):

data/global-configuration/packs/geoloc/collectors/collector_geoloc.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import json
22
import requests
33

4-
from kunai.collector import Collector
4+
from opsbro.collector import Collector
55

66

77
class Geoloc(Collector):

data/global-configuration/packs/hypervisor/collectors/collector_hypervisor.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import ctypes
66
from ctypes import c_uint32, c_int, c_size_t, c_void_p, POINTER, CFUNCTYPE
77

8-
from kunai.collector import Collector
8+
from opsbro.collector import Collector
99

1010
# hypervisor
1111
HYPERVISOR_INFO_LEAF = 0x40000000

data/global-configuration/packs/linux/collectors/collector_diskusage.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import os
22
import re
33

4-
from kunai.collector import Collector
4+
from opsbro.collector import Collector
55

66

77
class DiskUsage(Collector):

data/global-configuration/packs/linux/collectors/collector_loadaverage.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import os
22

3-
from kunai.collector import Collector
3+
from opsbro.collector import Collector
44

55

66
class LoadAverage(Collector):

data/global-configuration/packs/linux/collectors/collector_selinux.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import os
22
import sys
33

4-
from kunai.collector import Collector
4+
from opsbro.collector import Collector
55

66

77
class Selinux(Collector):

data/global-configuration/packs/mongodb/collectors/collector_mongodb.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
import urlparse
33
import datetime
44

5-
from kunai.collector import Collector
6-
from kunai.util import to_best_int_float
5+
from opsbro.collector import Collector
6+
from opsbro.util import to_best_int_float
77

88

99
class Mongodb(Collector):

data/global-configuration/packs/mysql/collectors/collector_mysql.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import re
33
import sys
44

5-
from kunai.collector import Collector
5+
from opsbro.collector import Collector
66

77
MySQLdb = None
88

data/global-configuration/packs/nginx/collectors/collector_nginx.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import urllib2
44
import traceback
55

6-
from kunai.collector import Collector
6+
from opsbro.collector import Collector
77

88

99
class Nginx(Collector):

data/global-configuration/packs/openports/collectors/collector_openports.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import sys
22
import traceback
33

4-
from kunai.collector import Collector
4+
from opsbro.collector import Collector
55

66

77
class OpenPorts(Collector):

data/global-configuration/packs/postfix/collectors/collector_postfix.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import os
2-
from kunai.collector import Collector
2+
from opsbro.collector import Collector
33

44

55
# deferred : Stuck mails (that will be retried later)

data/global-configuration/packs/rabbitmq/collectors/collector_rabbitmq.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import traceback
44
import json
55

6-
from kunai.collector import Collector
6+
from opsbro.collector import Collector
77

88
# TODO: look at all available at to learn how rabbitmq is working https://github.com/nagios-plugins-rabbitmq/nagios-plugins-rabbitmq
99

data/global-configuration/packs/redis/collectors/collector_redis.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import time
22
import socket
33

4-
from kunai.collector import Collector
4+
from opsbro.collector import Collector
55

66

77
# Parse the result of Redis's INFO command into a Python dict

data/global-configuration/packs/sshd/collectors/collector_sshd.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import os
22

3-
from kunai.collector import Collector
3+
from opsbro.collector import Collector
44

55

66
class Sshd(Collector):

data/global-configuration/packs/system/collectors/collector_blockdevice.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import os
22

3-
from kunai.collector import Collector
3+
from opsbro.collector import Collector
44

55

66
class Blockdevice(Collector):

0 commit comments

Comments
 (0)