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 - Alex Kirhenshtein

#421
Создания графика на основе чего? Что хочется получить?
#422
General Support / Re: LVM_PV_STATE_NOT_ACTIVE event
September 19, 2016, 01:34:03 PM
That's event from bundled AIX template for LVM monitoring.

                <event id="100010">
                        <name>LVM_PV_STATE_NOT_ACTIVE</name>
                        <guid>ca8e1035-16cc-4c1d-a530-5900d44ba52c</guid>
                        <code>100010</code>
                        <severity>3</severity>
                        <flags>1</flags>
                        <message>Physical volume %6 is in %4 state</message>
                        <description></description>
                </event>

Event is fired when LVM.PhysicalVolume.Status({instance}) is not equal "active" for five samples.

                                        <name>LVM.PhysicalVolume.Status({instance})</name>
                                        <description>LVM: status of physical volume {instance}</description>

All DCIs should be created automatically using instance discovery - check why instance name is empty.
#423
General Support / Re: Monitor memory usage per user
September 13, 2016, 07:59:43 PM
No, there are no such functionality at the moment
#424
In threshold configuration:
number of samples=5
function: diff
value: 0
#425
General Support / Re: Custom scripts
September 06, 2016, 01:47:51 AM
One of the forum members started similar topic in Russian part of the forum: https://www.netxms.org/forum/oe-oo/em-ktam-4586/

However I think it's more convenient to keep these samples in Wiki.
#426
can you please provide result of tcpdump running inside container (during failed attempt with encryption)?
#427
General Support / Re: ZeroMQ
August 23, 2016, 06:10:18 PM
Hello.

It was developed for internal use (for integration with existing customer system) - it allows you to subscribe for node/container events and data collection values.
I think that REST API for subscription management is not public right now.


update: actually you can manage it using java API (using nxshell, for example):

public void updateZmqEventSubscription(long objectId, long dciId, boolean subscribe) throws IOException, NXCException;
public void updateZmqDataSubscription(long objectId, long dciId, boolean subscribe) throws IOException, NXCException;
public List<ZmqSubscription> getZmqSubscriptions(ZmqSubscriptionType type) throws IOException, NXCException;


You need to set "ZeroMQEndpoint" in server's configuration (standard ZeroMQ notation, server use ZMQ_PUSH socket for communications).
#428
Общие вопросы / Re: Segfault
August 22, 2016, 09:19:14 PM
Спасибо, будем смотреть.
Я удалил пока дамп из сообщения.
#429
Like any  pure-python library, just add it to search path.

mkdir c:\tmp
cd c:\tmp
git clone git://github.com/kennethreitz/requests.git
java -jar nxshell-2.0.5.jar
Server IP [127.0.0.1]:
Login [admin]:
Password [netxms]:
NetXMS 2.0.5 Interactive Shell
>>> import requests
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named requests
>>> import sys
>>> sys.path.append('c:\\tmp\\requests')
>>> import requests
>>> r = requests.get('https://www.netxms.org/')
<Response [200]>
>>> r.status_code
200
>>> r.headers
{'Keep-Alive': 'timeout=15, max=100', 'Server': 'Apache/2.2.16 (Debian)', 'Connection': 'Keep-Alive', 'Date': 'Wed, 17 Aug 2016 14:06:34 GMT', 'Accept-Ranges': 'bytes', 'Content-Encoding': 'gzip', 'Vary': 'Accept-Encoding', 'Content-Length': '3237', 'Content-Type': 'text/html'}
#430
You can remove this dependency if you are not using custom java data sources.

Most likely you'll need to add groovy-all dependency (it's used for packaging):

        <dependency>
            <groupId>org.codehaus.groovy</groupId>
            <artifactId>groovy-all</artifactId>
            <version>2.4.4</version>
        </dependency>
#431
Try to remove "Defaults requiretty" from /etc/sudoers
#432
General Support / Re: Configure Netxms to use Gmail
August 11, 2016, 04:21:34 PM
You tried "mail" (or mailx, or sendmail) command - or SMTP?
If you are sure that SMTP is working - increase debug to 6 and look for entries with tag "SMTP"
#433
General Support / Re: Configure Netxms to use Gmail
August 11, 2016, 02:11:21 PM
Verify that you can send mail  using local postfix.

Connect using telnet or netcat:

telnet 127.0.0.1 25
nc 127.0.0.1 25


Sample session (my input in bold, change email address accordingly):

alk@mail:~$ nc 127.0.0.1 25
220 mail.netxms.org ESMTP Postfix
ehlo netxms
250-mail.netxms.org
250-PIPELINING
250-SIZE 134217728
250-ETRN
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
mail from: [email protected]
250 2.1.0 Ok
rcpt to: [email protected]
250 2.1.5 Ok
data
354 End data with <CR><LF>.<CR><LF>
From: [email protected]
To: [email protected]
Subject: test mail

test body
.

250 2.0.0 Ok: queued as 7F9202019B
quit
221 2.0.0 Bye
#434
There is a set of tables for each node ("%d" is replaced with node id, you  can query it from table nodes and table object_properties):

idata_%d - single item DCIs
tdata_%d - table DCIs
tdata_records_%d
tdata_rows_%d
#435
General / Re: Help with Java API
August 09, 2016, 02:26:31 PM
Something like this:


final NXCObjectModificationData md = new NXCObjectModificationData(object.getObjectId());
GeoLocation location = GeoLocation.parseGeoLocation(latitude.getText(), longitude.getText());
md.setGeolocation(location);

final NXCSession session = (NXCSession)ConsoleSharedData.getSession();
session.modifyObject(md);