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 - sperlm

#16
Hello, we are running CentOS release 6.4 (final) version: 2.6.32-358.14.1.el6.x86_64.

It is 64 bit server.
#17
Hello, what was the solution?

I have got problems with upgrade from 1.2.12 to 1.2.14 - server shuts down after a while.
It all happens while trying to manage things - 2 times trying upload image, once opening scripts, once opening network map. These actions actually process but server shuts down after few seconds.

The only reasonable log from debug is
[27-May-2014 16:48:31.062] [WARN ] Failed to execute filter script for template object 26027 "H3C (-25506-,sys65) - filtr ok - bez DCI": Error 11 in line 13: Function not found
[27-May-2014 16:48:31.062] [WARN ] Failed to execute filter script for template object 26029 "H3C (-25506-,sys47) - filtr ok - bez DCI": Error 11 in line 4: Function not found
[27-May-2014 16:48:34.473] [WARN ] Failed to execute filter script for template object 26027 "H3C (-25506-,sys65) - filtr ok - bez DCI": Error 11 in line 13: Function not found
[27-May-2014 16:48:34.474] [WARN ] Failed to execute filter script for template object 26029 "H3C (-25506-,sys47) - filtr ok - bez DCI": Error 11 in line 4: Function not found
[27-May-2014 16:48:50.606] [WARN ] Failed to execute filter script for template object 26027 "H3C (-25506-,sys65) - filtr ok - bez DCI": Error 11 in line 13: Function not found
[27-May-2014 16:48:50.607] [WARN ] Failed to execute filter script for template object 26029 "H3C (-25506-,sys47) - filtr ok - bez DCI": Error 11 in line 4: Function not found
Segmentation fault


There seems to be some problems with scripts and filters (which were ok in 1.2.12).

Tried to search for the segmentation fault problem on forum but found nothing definite... :(

Attaching whole log.
#18
The filter discussed above is for the instanced DCIs, right ?
At the time of applying of the DCI it checks if there are values (non-zero and non-null) and creates real DCI for that one OID.

Where exactly are you getting those 0 values ?

If there are semi-stable values in the OIDs and DCIs are created at that time, these will exist even if OID return 0 afterwards... Check history of the DCIs which are showing 0 now.

You can also check snmpwalk if the 0 value is correct or not.
#19
Hello, just a question...

IF value is 0, doesnt it automatically mean that return value is equivalent to return false ?
(thus not passing the filter script)

MS
#20
Hi, maybe you could solve it by filters in event processing policy ?

Something along these lines:
IF
- SYS_IF_DOWN
- and:
parentNode = GetObjectParents($if);      // not sure if "$if" (Get ObjectParents reference)
if ((parentNode->status == 4) return 0;

For more details see my solution of dependency based on infrastructure, if it helps... here

With regards,

MS
#21
Sorry I did not understand the problem.

I tried to solve this with macro but not sure if instance parameter can be passed to the script...

For that reason every other part of the DCI is normal:

Code (DCI) Select
Description: ifDescr: %{script:ReturnIfDescr}
Parameter: .1.3.6.1.2.1.2.2.1.10.{instance} // <= value InOctets for ports, taken from the .10 branch
Origin: SNMP
Datatype: Integer
Instance discovery metod: SNMP Walk - OIDs
Base SNMP OID: .1.3.6.1.2.1.2.2.1.10


Script Library:
Code (ReturnIfDescr) Select
transport = CreateSNMPTransport($node);
if (transport == null) return "n/a";
return SNMPGetValue(transport, ".1.3.6.1.2.1.2.2.1.2.1"); // <= ifDescription of 1st port, taken from the .2 branch


But this script returns only description of the first port to the macro.

There should be something like this, but it does not work this way ofcourse ..
return SNMPGetValue(transport, ".1.3.6.1.2.1.2.2.1.2.".$instance);

p.s. this solution will not reflect any changes in the ifDescription though as the macro is run only when the DCI is created

M.Sperl
#22
Hi, the OID range you are trying to look into is .1.3.6.1.2.1.31.1.1.1.6.x (as seen in the transformation script) but in the DCI template you have just .1.3.6.1.2.1.31.1.1.1.1.x ?

And the Datatype in the DCI template configuration should be Integer, not String (not sure if it is the main problem though).

M.Sperl
#23
Hi,

   I was researching similar functionality and the solution depends on whether you want to disable events alltogether (if nodeX is down) or create actions depending on the events.
In both cases you will probably need a way to determine what nodes are affected by nodeX status and which are not.

Basically if you want to influence if events start at all - modify appropriate rule in Event Processing Policy. To influence actions based on the events and let script decide what to do.

In my case I modified Event Policy to send e-mail only if superior node is up.
If you want, read this topic Dependency script based on infrastructure.

With regards,

Milan Sperl
#24
Thanks for the pointer to ConnectionPoolMaxSize, tried increasing to 50 (from 20) and it looks like it stopped the message. Too bad it is not tied to the timeout problem with network maps.

Few months back this message wasnt appearing which worries me a bit because apart from reducing number of DCI and history the only major change I can think of is turning on the syslog server.

Will have to keep on testing, too bad the network creation sometimes works great but most of the time there is the timeout problem - what is really strange, creating layer 2 topology from a node opens network map stright ahead...
#25
Hello,

   this problem is probably what caused (and still is the cause of) my problems with creating Network Maps. Maybe not but whenever server is restarted, there are normal messages in the logfile. As soon as I try to create new map (and fail due to timeout) log starts filling with this message "Database Connection Pool exhausted, fallback connection used".

We are running NetXMS 1.2.10 and MySQL 5.1.69, both on the same CentOS machine.

What can be the problem ?

With regards
Milan Sperl

edit: the messages start appearing anyway, restarted sql and checked database (no direct connection to the map creation problem)
#26
General Support / Re: Execution of Script
February 13, 2014, 02:58:43 PM
Hi, not sure if it works for transformations but I am using scripts "normally" in automatic apply rules for templates... if it is consistent try simply one of these things:

1) enter the script directly to the transformation as you would while editing script in script library
2) create function in the script library and just use it in the transformation window
e.g. in script library:
sub function(x)
{code}

in tranformation tab: function(inputdata);

Will try it to be sure..

EDIT:
forgot we discussed transformations in thread History management : store averaged values ?

also did a little dummy transformation "return (2 * GetDCIValue($node, FindDCIByDescription($node, "CPU 47")));" which returns twice the value of the DCI "CPU 47" and it works fine as I suggested above

With regards,
Milan Sperl
#27
Feature Requests / Re: Dashboard container
February 11, 2014, 04:12:36 PM
Pause, or better - add more time to the dashboards depending on a parameter, either fixed or variable (e.g. if map has warnings - add 5 secs, if criticals - add 10 secs etc).

I was experminenting with a large screen showing 8 maps as small boxes and one bix slidescreen rotating those 8 maps above. It would be better if we could for example take out maps without problems out of the rotation cycle (if map has no warnings/criticals - set 0 sec to the cycle sequence).

Would be really nice :)

Milan Sperl
#28
Hi, what kind of graph is that ?

I have got charts without min/max values and the legends can be disabled by unchecking checkbox "Show legend" in the Dashboard Elements - Chart section.
#29
What was the problem if I may ask ?

I was also wandering what you mean by the Delta calculation tab, because only delta calculation I am aware of is in the Transformation tab...
#30
Can you post screenshots with the Last values (for the node) view and History (for one DCI) too ?