News:

We really need your input in this questionnaire

Main Menu
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 - Victor Kirhenshtein

#6511
General Support / Re: Centralized agent upgrade feature
November 17, 2009, 05:11:08 PM
Quote from: CTXM on November 17, 2009, 04:17:31 PM
Small addon to instruction:
InstallationServers instruction need to be set in nxagent.conf to be able to deploy package onto agent`s OS using centralised deployment

But in case when there was no InstallationServers instruction provided, I wasn`t able even to EDIT agent`s configuration file from NetXMS server. So, I did this via standart ssh session Is it normal behavior?

Only after I have added meaned parameter pointed the same as MasterServers (is MasterServers same instruction as Servers, or there is some difference?) I was able to edit agent`s configuration

Yes, I forgot to mention that. Agent will accept upgrade packages only from server(s) listed under MasterServers parameter. And InstallationServers is a deprecated synonim for MasterServers.

Agent has three access levels for servers. To gain specific access level, server should be listed under one of thee parameters: Servers, ControlServers, or MasterServers.

Servers - gives read-only access (can get parameters)
ControlServers - read parameters and execute preconfigured actions
MasterServers - full control

Unless your setup has specific security needs, it is recommended to list your NetXMS server under MasterServers.

Best regards,
Victor
#6512
Общие вопросы / Re: Статус aknowledge
November 17, 2009, 01:14:19 PM
Nuzno v pravile, kotoroe sozdaet alarm iz sobitija SYS_IF_DOWN, dobavit' alarm key, skazem IF_DOWN_%i_%1, i dobavit' pravilo na sobitie SYS_IF_UP, gde v pole "alarm" vistavit' "terminate alarm with key" i kak key ukazat' IF_DOWN_%i_%1.

Best regards,
Victor
#6513
General Support / Re: Centralized agent upgrade feature
November 17, 2009, 01:06:53 PM
Hello!

Usually you should be able to upgrade any version of agent. Most likely there are a problem with specific system. Agent installer should left logs in /tmp on target machine - could you please provide them?

Best regards,
Victor
#6514
General Support / Re: Alert Configuration
November 17, 2009, 10:36:47 AM
Hello!

Quote from: Aron Schneider on November 17, 2009, 12:17:25 AM
1. How do we disable alerts and notifications of a sys_node_down\sys_node_up status during a set time period?  For example, during the 12am to 4am hours, the majority of our servers go through a restart process.  How do we configure the scheduling so that the email notification of sys_node_down and sys_node_up are not captured over a certain time period?

You can achieve this by adding additional filtering script to the rule. Script for checking if current time is not between 00:00 and 04:00 (04:00 not included) may look like following:


sub main()
{
   now = localtime();
   return now->hour >= 4;
}



Quote from: Aron Schneider on November 17, 2009, 12:17:25 AM
2. How do we configure the email alerts to only send once email every 5 minutes and stop after 4 emails when a sys_node_down event occurs.  In other words, we've created an event processing policy for sys_node_up and sys_node_down for sending an email notification once when an event occurs.  How do we create an email event so that we are notified once every 5 minutes with a max of 4 emails?

There are no easy way to achieve this. However, you can try the following:

1. Create custom event, like NODE_STILL_DOWN;
2. In processing policy, add action that runs a script on server; this script should run nxevent tool four times to post NODE_STILL_DOWN event to server four times with 5 minutes interval, and then exit;
3. Add event processing policy rule for NODE_STILL_DOWN event - it should check if node is still down and if yes, send additional email.

Hope this helps!

Best regards,
Victor
#6515
Hello!

It's a bug in configure. I'll fix it and put updated version on web site.

Best regards,
Victor
#6516
Сделал очередное теоретическое исправление, NetWare сервера для тестов пока нет. Попробуйте заменить libnxlp.nlm на приложенный - теоретически проблема должна пропасть.
#6517
Hello!

In this topic you could find some information about custom trap configuration: https://www.netxms.org/forum/index.php/topic,9.0.html.

As first step in troubleshooting, set server's variable LogAllSNMPTraps to 1 and check if traps are received by server at all.

Best regards,
Victor
#6518
General Support / Re: API IN C for agent communication
November 10, 2009, 11:26:56 PM
Yes, it should work on OpenBSD.

Best regards,
Victor
#6519
General Support / Re: API IN C for agent communication
November 10, 2009, 11:10:34 PM
Hello!

API is available, but for C++, not plain C. You will need libnxsrv and all it dependencies to use it. API is not documented, but is very straightforward:

1. You should create object if class AgentConnection;
2. Call Connect() method for it;
3. Call GetParameter() method to retrieve data from agent (you can call GetParameter multiple times to retrieve multiple parameters);
4. Destroy connection object.

There are command line tool called nxget which can be used to retrieve data from agents. You can use nxget's source code as a reference to build your own communication tool.

Best regards,
Victor
#6520
Hello!

Most likely you have entered OID incorrectly, or your device really does not support it. Could you please post some screenshots?

Best regards,
Victor
#6521
Hi!

You can export active alarms into comma-separated file using nxalarm tool. For terminated alarms and events the only way to export is to query database directly. Alarms stored in table alarms, and events in table event_log. Ask if you'll need comments on structure of these tables.

Best regards,
Victor
#6522
General Support / Re: write Eventlog from own Event
November 09, 2009, 06:21:56 PM
It's a bug (or confusing feature) in event viewer. If event is not marked as "write to event log", then it will not be written to database. However, server notifies all connected clients about all events, and if event viewer is open at this moment, then event is displayed. If you close event viewer and open it again, you'll see that all past events without "write to event log" mark disappeared.
In a new console, event viewer will be separated to two different views - real time event monitor, which will show all events as they coming, and event log viewer, which will show events actually logged in database.

Best regards,
Victor
#6523
Общие вопросы / Re: Хитрый DCI...
November 04, 2009, 10:34:43 PM
Esli schitat' deltu, to pri uvelichenii znachenie budet > 0, a pri umen'shenii - < 0. T.e. dlja otslezivanija postojannogo prirosta ne men'she, chem na 5 v techenii 3 oprosov mozno sdelat' sledujuschee:

1. V transformation postavit' "Simple delta"
2. V thresholde postavit' "last value" >= 5 for 3 polls
#6524
General Support / Re: Alarm viewer and some questions
November 04, 2009, 10:31:36 PM
Hello!

Quote from: DvMourik on November 04, 2009, 01:00:46 PM
We know we use to have a pc with IE6 to get it working but it works.
Also we tried the webinterface and Alarm tab... problem here is that the alarms are not updates realtime... something what is great with Alarm Viewer.

We have some slight problems with it :

- Alarm Viewer need to be reset couple of times a day
- We want to change background so it stays changed (we can change it while started in the folder... but with a restart it's gone)

Both alternate background for Alarm Viewer and automatic refresh of alarm list should be easy to implement. I'll try not to forget and add it to next release.

Quote from: DvMourik on November 04, 2009, 01:00:46 PM
Than i have also a question about Alarm Notifier.. some cool tool which runs in my system tray all the time.
I want to install it at home so i get the alarms there too is that possible... so yeah which ports it uses so i can put it in my ISA server.

All client tools use TCP port 4701 to connect to server.

Best regards,
Victor
#6525
Hi!

I still have not solved problems with .apkg installer, so I put agent version 0.2.31 for IPSO as simple archive (https://www.netxms.org/download/agent_packages/nxagent-0.2.31-ipso.tar.gz). Extract it inside /opt directory and run /opt/netxms/bin/nxagentd as usual. Agent linked statically with all subagents.

Best regards,
Victor