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

#7081
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
#7082
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
#7083
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
#7084
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
#7085
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
#7086
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
#7087
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
#7088
Контролировать время выполнения запросов можно, но не на уровне отдельных DCI.
В данный момент при помощи параметра AgentCommandTimeout можно задать максимальное время ожидания ответа от агента. Если ответ не пришел за указанный промежуток времени, то возвращается ошибка. На ошибки сбора данных для DCI можно делать threshold'ы.
Кроме того, если запрашиваемый параметр является внешним скриптом, то максимальное время выполнения скрипта контролируется параметром агента ExecTimeout.
#7089
PollCountForStatusChange - к DCI отношения не имеет (см. например здесь: https://www.netxms.org/forum/index.php/topic,427.0.html). Для решения вышеописанной проблемы сейчас можно использовать average(n) вместо last() в условии threshold'а - хотя это не совсем одно и то-же, как временная мера может использоваться. Я сделаю, что в last() можно будет указывать количество опросов, в течении которых условие должно выполняться, чтобы threshold сработал.
#7090
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
#7091
Hello!

It's not a plain SQL script. Commands may vary between databases, so it's a set of static and dynamically created SQL queries encoded into nxdbmgr code.

I change the upgrade code to re-create tables instead of adding constraints, hopefully it will work.

Attached is a latest version of nxdbmgr.exe.

Best regards,
Victor
#7092
Hi!

Could you please do the following:

1. Post here your netxmsd.conf file
2. Run command


nxdbmgr check


and post here it's output?

Best regards,
Victor
#7093
Peresobrannij subagent dlja Windows.
#7094
Looks like a bug in handling MS SQL on upgrade (it works fine on my test system, but I have MS SQL 2005). Try to do an upgrade with attached nxdbmgr.exe.

Best regards,
Victor
#7095
General Support / Re: Communication to agent stops working
September 05, 2008, 12:02:58 PM
Hello!

If you have two (or more) IP addresses on your management server, they all should be listed in agents' MasterServers parameter. In your case, all agents should have in nxagentd.conf


MasterServers = 172.28.7.29, 172.28.7.196


Best regards,
Victor