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

#991
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).
#992
Похоже GD собран без поддержки png. Попробуйте перемерджить gd с USE=png.
#993
Да, можно. В настройках DCI есть закладка Transformation. Поставьте такие значения:

Delta Processing - None
Transformation - $1/10
#995
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')"



#996
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.
#997
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']
#998
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
#999
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.
#1000
Я постараюсь в ближайшее время переписать драйвер (я просмотрел код - он странный) и выложить патч.
#1001
answer in russian

(sorry for bad english, it's just a quick and dirty translation - I'll update it later)

You can use add custom performance counter to agent's config.

Configuration sample, add this to nxagentd.conf:

*WinPerf
Counter = DiskWriteBytes:"\PhysicalDisk(_Total)\Disk Write Bytes/sec":60:A:INT:Average number of bytes per second written to disk for last minute


"*WinPerf" - section name
"Counter" - counter definition. Format:
    Counter = ParameterNameForNetXms:"\PDH\Counter\Name":SamplesCount:Queue:Type:Description

"ParameterNameForNetXms" - this name you will see in management console, in DCI configuration
"\PDH\Counter\Name - Counter name, e.g. "Memory\Available Bytes".
"SamplesCount" - number of samples taken for calculation of average value
"Queue" - querying queue, it can be: A, B or C. A - counter will be read every second, B - every 5 seconds, C - every 30 seconds.

Example: if you will set SamplesCount to 60 and queue to A, this parameter will return average value for last minute. count=30 and queue=C - this will be average for 15min.
#1002
I'd set something like "average >= 10 for last 5 polls"
#1003
It looks normal; most of the time queue is empty - these peaks are caused by housekeeping process which runs every hour (it loads quite bit amount of data, do vacuum (on postgresql), etc).

DB Writer queue size indicates problem only when it's value is above zero most of the time.

However, if db load will be too high, you can try to increase housekeeping intervals in server config - this should help a bit.
#1005
Попробуйте выставить скорость порта в 9600.

Да, и еще. Покажите пожалуйста результат команды "stty < /dev/ttyS0" после запуска сервера (и инициализации модема).