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

#7051
There are not too much information about WMI support in NetXMS unfortunately. Brief discussion are here: https://www.netxms.org/forum/index.php/topic,389.0.html.

Best regards,
Victor
#7052
Quote from: Anth0ny on October 03, 2008, 12:13:16 PM
Интерес не праздный: столкнулся вчера со странной проблемой. По неясной мне пока причине вчера на двух серверах наблюдал странную картину, возможно схожую с твоей...

2 одинаковых сервера, опрос одинаковых сервисов ведётся через ServiceCheck.HTTP.

Так вот, в какой-то момент времени я вдруг обнаружил, что опрос приостановился, т.е. в истории полученных результатов начиная со времени "Х" виден перерыв, минут на 40 (интервал опроса- 300 секунд), до следующего полученного результата опроса, "У". Причём что самое странное, одновременно (примерно, учитывая сдвиги между поллами) на обоих серверах. Я не могу пока понять что это. И это не очень приятно, так как именно на этот самый промежуток пришлось падение www-сервиса на одном из этих серверов...

U ob'ekta servera monitoringa dolzen bit' DCI pod nazvaniem "Average length of data collection poller's request queue for last minute" - kak on menjalsja v eto vremja?
#7053
Item poller - eto potok, kotorij otvechaet za postanovku DCI v ochered' na sbor dannih. On perestaet otvechat' iz-za vnutrennih blokirovok - t.e. kakoe-to dejstvie s ob'ektom uzla sil'no zatjanulos', i vse ostal'nie, v tom chisle item poller, zdali svoej ocheredi na dostup k etomu ob'ektu. V normal'noj situacii takogo proishodit' ne dolzno.

A mozno vkljuchit' 6 uroven' debug'a dljanetxmsd i prislat' mne log?

Best regards,
Victor
#7054
Updated libnxsl.dll.

Best regards,
Victor
#7055
Quote from: Victor Kirhenshtein on October 02, 2008, 11:21:24 PM
Hi!

Quote from: Lostavar on October 02, 2008, 10:15:03 PM
1) Is it possible to send alerts using a time-schedule?
For example it want E-Mail notification Monday-Friday to person A, on Saturday and Sunday to person B.

Yes, you can create two rules with different e-mail actions, and use filtering script in each rule to match Monday-Friday or Saturday-Sunday. Script to match Monday-Friday will look like following:


sub main()
{
t = localtime();
return (t->wday >= 1) && (t->wday <= 5);
}


Best regards,
Victor


Just discovered that due to a bug attribute wday is not accessible. To fix it, replace file src/libnxsl/functions.cpp with attached one and recompile NetXMS server. If your server running on Windows, ask me and I'll post recompiled libnxsl.dll.

Best regards,
Victor
#7056
Hello!

There are no limitations of having both NetXMS and SNMP agent on one host. If you see SNMP agent as inactive, most likely you have problems with SNMP settings. Most common problems are:

1. SNMP community string is incorrect
2. NetXMS server is not allowed to communicate with SNMP agent (many SNMP agents can be configured to accept requests only from specific addresses)
3. SNMP traffic between NetXMS server and host is blocked by firewall

Best regards,
Victor
#7057
Quote from: Lostavar on October 02, 2008, 10:15:03 PM
2) How can I add values from different DCIs to one alert?
For example I have a threshold for percentage of disk usage. But in the alert message I want to see a) percentage used, b) absolutely used space (GB) and c) total amount of disk space.

There are no easy way to achieve that - only via scripting. In message text, you can use %[..] macro, which will be substituted by value returned by given script. To use script in such macro, you should create it in script library (Control Panel -> Script Library).
In the script, you can use FindDCIByName or FindDCIByDescription and GetDCIData functions to retrieve data of some other DCIs.

For example, script wchich will return total amount of disk space on root partition will look like this (assuming thet you have configured appropriate DCI):


GetDCIValue($node, FindDCIByName($node, "Disk.Total(/)"))


Best regards,
Victor
#7058
Hi!

Quote from: Lostavar on October 02, 2008, 10:15:03 PM
1) Is it possible to send alerts using a time-schedule?
For example it want E-Mail notification Monday-Friday to person A, on Saturday and Sunday to person B.

Yes, you can create two rules with different e-mail actions, and use filtering script in each rule to match Monday-Friday or Saturday-Sunday. Script to match Monday-Friday will look like following:


sub main()
{
t = localtime();
return (t->wday >= 1) && (t->wday <= 5);
}


Best regards,
Victor
#7059
Hello!

This is because $1 .. $9 is a macros substituted by NetXMS agent itself - they represent arguments for a parameter. If you need to pass $ sign as part of a command, you should use $$.
So your command should looks like:
ExternalParameter = rootInodes:/usr/sbin/df -F ufs -o i / | /bin/tail -1 | /usr/local/bin/awk '{print $$4}' | /bin/sed -e 's/%//g'

First example works, because wc -l gives you only one word, so { print $1 } transformed to { print } doesn't actually affect anything.

Best regards,
Victor
#7060
General Support / Re: solaris: "too many open files"
October 01, 2008, 11:43:07 PM
Hello!

Are you running only NetXMS agent on Solaris or server too?

Best regards,
Victor
#7061
General Support / Re: Fault Tolerant Monitoring
October 01, 2008, 11:41:41 PM
Hello!

It seems to be quite common problem. In upcoming release, I will change threshold configuration so you will be able to specify for what number of consecutive polls value should be above/below threshold to raise an event.

Best regards,
Victor
#7062
Probably most of this could be done via performance counters.
For example, to get number of ASP.NET errors, you need to get value of performance counter "\ASP.NET\Error Events Raised".
To get this counter's value into NetXMS, use parameter PDH.CounterValue, like below:

PDH.CounterValue("\ASP.NET\Error Events Raised")

I suppose that other data should be available as performance counters as well.

Best regards,
Victor
#7063
Контролировать время выполнения запросов можно, но не на уровне отдельных DCI.
В данный момент при помощи параметра AgentCommandTimeout можно задать максимальное время ожидания ответа от агента. Если ответ не пришел за указанный промежуток времени, то возвращается ошибка. На ошибки сбора данных для DCI можно делать threshold'ы.
Кроме того, если запрашиваемый параметр является внешним скриптом, то максимальное время выполнения скрипта контролируется параметром агента ExecTimeout.
#7064
PollCountForStatusChange - к DCI отношения не имеет (см. например здесь: https://www.netxms.org/forum/index.php/topic,427.0.html). Для решения вышеописанной проблемы сейчас можно использовать average(n) вместо last() в условии threshold'а - хотя это не совсем одно и то-же, как временная мера может использоваться. Я сделаю, что в last() можно будет указывать количество опросов, в течении которых условие должно выполняться, чтобы threshold сработал.
#7065
General Support / Re: Can NetXMS Do?
September 27, 2008, 12:37:20 PM
Hello!

Quote from: cjwallace on September 26, 2008, 04:08:54 PM
So can NetXMS do?

1) Monitor Windows disk space

2) Monitor Windows Memory?

3) Monitor CPU Usage?

4) Monitor Windows Services

Yes to all questions.


Quote from: cjwallace on September 26, 2008, 04:08:54 PM
5) Monitor Windows Event Viewer Logs? ( i think from something i was reading is was in the pipeline. Any ideas when this will be availabale?)

Not available yet, but planned for next release.


Quote from: cjwallace on September 26, 2008, 04:08:54 PM
6) Monitor Servers via SNMP

Yes.

Quote from: cjwallace on September 26, 2008, 04:08:54 PM
7) Monitor HP servers , disk array , temperature, failed fans , failed disk

Yes, through SNMP, and you need HP Insight Manager agent installed on server.


Quote from: cjwallace on September 26, 2008, 04:08:54 PM
8) Monitor servers uptime via ICMP or better

Yes, you can monitor server availablity with ICMP pings (or event monitor ping response times), or check availability of TCP services (like http).


Quote from: cjwallace on September 26, 2008, 04:08:54 PM
9) Network maps. Can i create a network map with icons the represent servers, switches , routers, workstations , internet etc etc

I would say partially yes :) Unfortunately, maps is not strongest part of NetXMS. You can create maps, add objects and links between them, but you cannot change pictures for them. There are also probably many bugs with the maps. However, you can try :)

There are also another maps implementation as standalone application, you can try it as well (see here: https://www.netxms.org/forum/index.php/topic,364.0.html).

Best regards,
Victor