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

#976
General Support / Re: Beginner to SNMP for switches
August 01, 2008, 11:47:04 AM
Quote from: QACit on July 28, 2008, 10:06:37 PM
About 2MB.  Will send an e-mail

I've just send you an email with corrected MIBs, please try them.
#977
General Support / Re: Beginner to SNMP for switches
July 29, 2008, 11:18:28 PM
Yes, I've got your mail. There are some faulty mibs (and some are missing) - I'll try to clean them up today and send you response.
#978
General Support / Re: Beginner to SNMP for switches
July 28, 2008, 09:41:24 PM
Problem not in BGP-4; it compiles just fine on clean system. Problem is somewhere in added MIBs (or buggy compiler). Anyway, error message is weird.
Can you please zip content of you MIBs folder and attach it here (or send it to me by mail: alk - netxms.org)?
#979
Добавил.
#980
Мы читаем форум целиком. Не каждый день, но читаем. Что же до ответов - процитирую Виктора:

Quote2. Po ustojavshejsja tradicii :-), ja ne kommentiruju zaprosi na funkcional'nost', esli oni ne vizivajut u menja vozrazenij. Obichno kommentarij idet esli eto uze est' v tom ili inom vide, ili kakie-to vozrazenija.
#981
General Support / Re: Beginner to SNMP for switches
July 25, 2008, 10:50:32 PM

  • You should restart server after compiling MIBs.
  • I've checked it now - looks like compiler have nice bug - it's unable to find files if input path ends with backslash. So correct command will be something like this:
    Quotenxmibc -d C:\NetXMS\var\mibs -o C:\NetXMS\var\mibs\netxms.mib -z
  • Compiler will update netxms.mib only if all MIBs are correct and can be compiled. You can also check modification date on C:\NetXMS\var\mibs\netxms.mib to ensure it's new. Output should be like this:
    Quote...
       UDP-MIB
       UPS-MIB
       USEC-MIB
       V2ADMIN-MIB
       Wellfleet-COMMON-MIB
       WWW-MIB
  • After server restart you should be able to pick your additional OIDs in "Create DCI" dialog (set DCI source to "SNMP" prior to clicking on "Select" button).
#982
Похоже GD собран без поддержки png. Попробуйте перемерджить gd с USE=png.
#983
Да, можно. В настройках DCI есть закладка Transformation. Поставьте такие значения:

Delta Processing - None
Transformation - $1/10
#985
General Support / Re: WMI Queries
June 12, 2008, 11:30:06 AM
Hello.

You need to load "wmi" subagent (add "SubAgent = wmi.nsm" to your nxagentd.conf), this will add "WMI.Query()" parameter to the agent.
This parameter takes two arguments: namespace and query string.

Sample:

nxget SERVER_IP '"WMI.Query('root\WMI', 'SELECT InstanceName,CurrentTemperature FROM MSAcpi_ThermalZoneTemperature')"


I have no experience with querying MSSQL status using WMI, but according to google you can do something like this:

nxget SERVER_IP "WMI.Query('root\Microsoft\SqlServer\ComputerManagement', 'SELECT State FROM SqlService')"



#986
Hello.

We were working on Zabbix project a long time ago (e.g. windows agent for Zabbix was completely written by Victor), but due to strong disagreement with original author (architecture, licensing issues — e.g. accepting 3rd party patches) we decide to start out own project from scratch.

And no, we are not going to merge; and it's barely possible due to technical restrains and completely different architecture.
#987
General / Re: New module for drawing network maps
May 27, 2008, 11:32:56 PM
That's from rcp.php.

You escaping all input for insert/update queries, for missed it in few selects:
*) fetch_node_status: $_POST['node_id']
*) fetch_dciList: $_POST['node_id']
*) fetch_dci_value: $_POST['item_id'] and $_POST['node_id']
#988
General / Re: New module for drawing network maps
May 27, 2008, 07:38:27 PM
Some SQL-related things:

$result = $mdb2->query("select item_id,name,description,polling_interval from items where node_id='{$_POST['node_id']}'");
Queries like this are unsafe on any DB which allows stacked queries (postgres, sqlite - almost all except mysql).

It can be easily exploited to run multiple queries: just set node_id to something like this:
'; update users set system_access=524287; select '

This will run 3 queries:
select item_id,name,description,polling_interval from items where node_id='';
update users set system_access=524287;
select '' -- to prevent execution error
#989
General / Re: New module for drawing network maps
May 27, 2008, 07:22:36 PM
Thanks for contributions.

Note for users: netxms access rights are not used (right now); only login/password combination is checked against server's database.
#990
Я постараюсь в ближайшее время переписать драйвер (я просмотрел код - он странный) и выложить патч.