Child pages
  • FreeBSD

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
# cd /usr/local/
root@/usr/local# hg clone http://hg.nocproject.org/noc noc

...

Pid файлы хранятся по умолчанию в каталоге /var/log/noc. Меняем его на /var/run/noc.

Code Block
# cd ./noc
root@/usr/local/noc# ./scripts/post-install -p /usr/local/noc -r /var/db/noc/repo -b /var/db/noc/backup -P /var/run/noc

Настраиваем конфиги:

Code Block

...

#cd /usr/local/noc/etc

...

в noc.conf изменяем пути к необходимым бинарникам

...

прописываем параметры БД:

Code Block
[database]

# postgresql_psycopg2
engine = postgresql_psycopg2
# Database name
name = noc
# Database user
user = noc
# User password
password = noc_password
# Set to empty string for localhost
host =
# Set to empty string for default
port =

[nosql_database]
# MongoDB database name
name = noc
# MongoDB database user
user = noc
# MongoDB database password
password = 12345
#
host = 127.0.0.1
#
port =

...

Code Block
[activator]
name = default
listen_instance = 0
listen_traps = <listen_ip>
listen_syslog = <listen_ip>
listen_pm_data = 127.0.0.1
secret = secret
software_update = true
max_scripts = 10
pm_data_secret = secret

 

в noc-probe.conf

Code Block
[path]
fping = /usr/local/bin/fping

[activator]
host = 127.0.0.1
port = 19704
local_address = 127.0.0.1
secret = secret

...

Завершающие штрихи:

Code Block
root@usr/usr/local/noc# ./scripts/sync-contrib
root@usr/usr/local/noc# chown noc:noc etc/ssh
root@usr/usr/local/noc# su noc
$ cd /usr/local/noc
noc@/usr/local/noc$ ./scripts/post-update

...