Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Jazzy

#1
Спасибо!
Все собрал и запустил.
#2
Та же беда 1.0.0-rc2 и FreeBSD8
Quote# make
make  all-recursive
Making all in m4
Making all in contrib
Making all in startup
Making all in gentoo
Making all in redhat
Making all in suse
Making all in ubuntu
Making all in mibs
Making all in backgrounds
Making all in include
Making all in src
Making all in libnetxms
/bin/sh ../../libtool --tag=CXX    --mode=compile c++ -DHAVE_CONFIG_H -I. -I../.. -I../../include    -I/usr/local/mysql/include -I/usr/inclu
de/mysql -I/usr/mysql/include -I/usr/local/include/mysql -I/usr/local/mysql/include/mysql -I/usr/mysql/include/mysql -I/usr/local/include -D
_THREAD_SAFE -D_THREAD_SAFE -DPREFIX=\"/usr/local\" -DPREFIXW=L\"/usr/local\" -DDATADIR=\"/usr/local/share/netxms\" -DLIBDIR=\"/usr/local/li
b\"  -O2 -pipe -I/usr/local/include -fno-strict-aliasing -MT log.lo -MD -MP -MF .deps/log.Tpo -c -o log.lo log.cpp
c++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -I/usr/local/mysql/include -I/usr/include/mysql -I/usr/mysql/include -I/usr/local/include/m
ysql -I/usr/local/mysql/include/mysql -I/usr/mysql/include/mysql -I/usr/local/include -D_THREAD_SAFE -D_THREAD_SAFE -DPREFIX=\"/usr/local\"
-DPREFIXW=L\"/usr/local\" -DDATADIR=\"/usr/local/share/netxms\" -DLIBDIR=\"/usr/local/lib\" -O2 -pipe -I/usr/local/include -fno-strict-alias
ing -MT log.lo -MD -MP -MF .deps/log.Tpo -c log.cpp  -fPIC -DPIC -o .libs/log.o
log.cpp: In function 'void nxlog_write(DWORD, WORD, const char*, ...)':
log.cpp:423: error: invalid conversion from 'int' to 'const char*'
log.cpp:423: error:   initializing argument 1 of 'char* strdup(const char*)'
*** Error code 1

Stop in /home/jazzy/netxms-current/netxms-1.0.0-rc2/src/libnetxms.
*** Error code 1

Stop in /home/jazzy/netxms-current/netxms-1.0.0-rc2/src.
*** Error code 1

Stop in /home/jazzy/netxms-current/netxms-1.0.0-rc2.
*** Error code 1

Stop in /home/jazzy/netxms-current/netxms-1.0.0-rc2.
#3
Удалось сконфигурить так:
Quote./configure LDFLAGS=-lmysqlclient --with-server --with-mysql --prefix=/usr/local \
--mandir=/usr/local/man --infodir=/usr/local/info/ --build=i386-portbld-freebsd8.0
Quote
---------------------------------------------------------------------
                         Configure results
---------------------------------------------------------------------

Prefix                  : /usr/local
Build Server            : YES
Encryption enabled      : YES
Build DB-Drivers        : mysql
Build Clients           : NO
Build Web Interface     : NO
Build Agent             : YES
Subagents list          : freebsd
Build Static Agent      : NO
Build UNICODE libraries : NO
Use internal libexpat   : NO
CPPFLAGS                :  -I/usr/local/mysql/include -I/usr/include/mysql -I/usr/mysql/include -I/usr/local/include/mysql -I/usr/local/mysq
l/include/mysql -I/usr/mysql/include/mysql -I/usr/local/include -D_THREAD_SAFE -D_THREAD_SAFE -DPREFIX=\"${prefix}\" -DPREFIXW=L\"${prefix}\
" -DDATADIR=\"${pkgdatadir}\" -DLIBDIR=\"${libdir}\"
CXXFLAGS                : -g -O2 -fno-rtti -fno-exceptions -Wno-deprecated
CFLAGS                  : -g -O2
LDFLAGS                 : -lmysqlclient -L/usr/local/mysql/lib -L/usr/lib64/mysql -L/usr/lib/mysql -L/usr/mysql/lib -L/usr/local/lib/mysql -
L/usr/local/mysql/lib/mysql -L/usr/mysql/lib/mysql -L/usr/local/lib -pthread -liconv
MySQL libs              : -lmysqlclient
но далее не проходит make
Quote/bin/sh ../../libtool --tag=CXX    --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include    -I/usr/local/mysql/include -I/usr/inclu
de/mysql -I/usr/mysql/include -I/usr/local/include/mysql -I/usr/local/mysql/include/mysql -I/usr/mysql/include/mysql -I/usr/local/include -D
_THREAD_SAFE -D_THREAD_SAFE -DPREFIX=\"/usr/local\" -DPREFIXW=L\"/usr/local\" -DDATADIR=\"/usr/local/share/netxms\" -DLIBDIR=\"/usr/local/li
b\"  -g -O2 -fno-rtti -fno-exceptions -Wno-deprecated -MT log.lo -MD -MP -MF .deps/log.Tpo -c -o log.lo log.cpp
g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -I/usr/local/mysql/include -I/usr/include/mysql -I/usr/mysql/include -I/usr/local/include/m
ysql -I/usr/local/mysql/include/mysql -I/usr/mysql/include/mysql -I/usr/local/include -D_THREAD_SAFE -D_THREAD_SAFE -DPREFIX=\"/usr/local\"
-DPREFIXW=L\"/usr/local\" -DDATADIR=\"/usr/local/share/netxms\" -DLIBDIR=\"/usr/local/lib\" -g -O2 -fno-rtti -fno-exceptions -Wno-deprecated
-MT log.lo -MD -MP -MF .deps/log.Tpo -c log.cpp  -fPIC -DPIC -o .libs/log.o
log.cpp: In function 'void nxlog_write(DWORD, WORD, const char*, ...)':
log.cpp:423: error: invalid conversion from 'int' to 'const char*'
log.cpp:423: error:   initializing argument 1 of 'char* strdup(const char*)'
*** Error code 1

Stop in /usr/ports/net-mgmt/netxms-current/work/netxms-1.0.0-rc1/src/libnetxms.
*** Error code 1

Stop in /usr/ports/net-mgmt/netxms-current/work/netxms-1.0.0-rc1/src.
*** Error code 1

Stop in /usr/ports/net-mgmt/netxms-current/work/netxms-1.0.0-rc1.
*** Error code 1

Stop in /usr/ports/net-mgmt/netxms-current/work/netxms-1.0.0-rc1.
#4
Quote# locate libmysqlclient.so
/usr/local/lib/mysql/libmysqlclient.so
/usr/local/lib/mysql/libmysqlclient.so.15
#5
Во вложении.
#6
Приветствую.
Пытаюсь сделать новый port для под FreeBSD, но 1.0.0-rc1 не собирается:
Quote
# uname -a
FreeBSD t-srv1.szkti.ru 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #0:
Tue Jan  5 16:02:27 UTC 2010     [email protected]:/usr/obj/usr/src/sys/GENERIC  i386

#./configure --with-server --with-mysql --prefix=/usr/local --mandir=/usr/local/man --infodir=/usr/local/info/ --build=i386-portbld-freebsd8.0
...
checking for iconv declaration... const
checking for mysql_init in -lmysqlclient... yes
checking whether mysql clients can run... no
configure: error: Your MySQL client libraries aren't properly installed

В то время как 0.2.31 - собирается превосходно!
#7
Спасибо!
Усталость сделала свое дело. Был в полной уверенности, что SYS_ и SNMP_ - это одно  тоже. :)
#8
Доброго времени!
Сегодня поставил начисто netxms 0.2.31.
Настроил управляемый свитч на отсылку трапов при падении/поднятии интерфейсов.
Добавил этот свитч в netxms.
Проверяю, подключая/отключая ноутбук в 24 порт. 25 порт свитча смотрит в сеть.
1. Трап прибегает, это видно в "SNMP Trap Log".
2. Event тут же отображается в "Event Browser"
3. Окшко "Alarm browser"  - пустое
4. Отдельно запущенный nxav.exe тоже ничего не показывает.

Как сделать так, что бы при приходе трапа аларм отображался в nxav ?
P.S. Настройки "Event processing policy", "Events", "SNMP Traps" - не менял.

Во "прицепе" два скриншота:
1 - интерфейс "упал"
2 - интерфейс "поднялся"
#9
Announcements / Re: FreeBSD port is available
February 23, 2010, 08:27:14 PM
Hello!
Today, I make some patches (see attach.) for this port to adopt it to 0.2.31 release.
It's work fine for me and my FreeBSD box with Server+Agent+MySQL options, but need testing by other peoples.
--
Best regards,
Murmansk, Russia.
#10
Announcements / Re: FreeBSD port is available
February 22, 2010, 04:08:02 PM
Hello!

NetXMS port are broken now :

Quote# uname -a
FreeBSD t-srv1.szkti.ru 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #0:
Tue Jan  5 16:02:27 UTC 2010     [email protected]:/usr/obj/usr/src/sys/GENERIC  i386

# portsnap fetch update
Looking up portsnap.FreeBSD.org mirrors... 3 mirrors found.
Fetching snapshot tag from portsnap1.FreeBSD.org... done.
Latest snapshot on server matches what we already have.
No updates needed.
Ports tree is already up to date.

# cd /usr/ports/net-mgmt/netxms && make fetch
=> netxms-0.2.24.tar.gz doesn't seem to exist in /usr/ports/distfiles/.
=> Attempting to fetch from https://www.netxms.org/download/.
fetch: https://www.netxms.org/download/netxms-0.2.24.tar.gz: Not Found
=> Attempting to fetch from ftp://ftp.freebsd.org/pub/FreeBSD/ports/distfiles/.
fetch: ftp://ftp.freebsd.org/pub/FreeBSD/ports/distfiles/netxms-0.2.24.tar.gz: File unavailable (e.g., file not found, no access)
=> Couldn't fetch it - please try to retrieve this
=> port manually into /usr/ports/distfiles/ and try again.
*** Error code 1

Stop in /usr/ports/net-mgmt/netxms.