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 - Marco Incalcaterra

#151
General Support / Re: Cumulative network traffic
December 09, 2013, 09:25:27 PM
Hi Victor,

it works, thank you for your help. Do you have a suggestion on how to store cumulative values month by month (e.g. traffic for january, february, etc.)?

I have a suggestion for the transformation editor: add the line numbers, if the script is long it is difficult to reach the line indicated by the error message without manually counting the lines.

Best regards,
Marco
#152
General Support / Cumulative network traffic
December 08, 2013, 07:12:02 PM
I grab the Victor's suggestion present in this post:

https://www.netxms.org/forum/general-support/summary-of-network-traffic-1387/msg6048/#msg6048

And I wrote my transformation for the Internal DCI in this way (keeping the original value):

sub getValue(paramDescr)
{
obj = FindDCIByDescription($node, paramDescr);
if (obj != null)
{
   dci = GetDCIObject($node, obj);
   if (dci != null && dci->status == 0 && dci->errorCount == 0)
   {
    val = GetDCIValue($node, dci->id);
    if (val != null)
   return val;
  }
}
   return 0;
}

return $1+getValue("_HF - Download on eth0 (bytes)");


My problem is that I'm getting exactly the value of the original DCI ("_HF - Download on eth0 (bytes)"). Where am I wrong?

Do you have a suggestion on how to reset the counter once per month still mantaining an history (even in another DCI)? The goal is to obtain network traffic statistics per each month.

Best regards,
Marco
#153
General Support / Re: Wrong CPU count on linux
December 07, 2013, 08:01:35 PM
Good job. Thank you!

Marco
#154
General Support / Re: Wrong CPU count on linux
December 06, 2013, 06:37:33 PM
Hi Alex,

did you find anything interesting in the files I attached? I have the same behaviour also on a CentOS v. 5.10 (Kernel Linux 2.6.18-371.1.2.el5 on x86_64).

Best regards,
Marco
#155
General Support / Re: Wrong CPU count on linux
November 26, 2013, 12:51:38 PM
Quote from: Alex Kirhenshtein on November 25, 2013, 10:43:18 PM
Could you please send me content of /proc/stat and /proc/cpuinfo from the affected server?

Hi Alex,

you can find here attached the requested info for Zeroshell and Debian.

Best regards,
Marco
#156
General Support / Re: Wrong CPU count on linux
November 25, 2013, 08:53:12 PM
Quote from: Victor Kirhenshtein on November 25, 2013, 08:43:56 PM
It's hard to do something wrong here :) Definitely a bug, I'll check this.

Well, for the momenti I just added +1 in the transformation ;D

Marco
#157
General Support / Wrong CPU count on linux
November 25, 2013, 06:13:43 PM
Hi,

it seems that this counter:

System.CPU.Count

reports the wrong number of CPU (it reports one less than the real number). I tried it on two Linux distribution (ZeroShell 2.0RC2 and Debian 7 x64). It works properly on Windows (all flavours).

Do it is a bug or I'm doing something wrong?

Best regards,
Marco
#158
I have a node used as a "fake" switch to collect all the traffic generated from a group of virtual machines. That node is configured with the IP 0.0.0.0 so it has no interface. Everything works fine in the data collection, except that the node persists in the "Unknown" status.
Is there a way to force its status to "Normal"? I'm not interested in its "real" state since it hasn't a real state: is just a container for the aggregated values computed from other nodes.

Maybe I'm just using the worst approach to solve this problem, any other suggestion is welcome! :-)

Best regards,
Marco
#159
Hi Victor!

yes, that was the problem. Thank you very much for your help!

Best regards,
Marco
#160
General Support / Re: Error editing DCI
August 13, 2013, 11:20:12 AM
Quote from: Victor Kirhenshtein on August 13, 2013, 11:16:33 AM
Hi!

Sorry for late reply! I've fixed this issue (SVN rev. 7613). Unfortunately, console built from trunk will not be compatible with 1.2.8 server. If this is critical, I can build an 1.2.8-compatible console with the fix, otherwise you have to wait for 1.2.9 release.

Best regards,
Victor

Hi Victor,

Don't worry, I removed and re-added the DCI from the template, the lost of history was not a big deal, the really bad side effect was the necessity to edit all the dashboards where it was used :-)

Best regards,
Marco
#161
Quote from: testos on February 21, 2013, 05:28:06 PM
millerpaint,
I apply this template to nodes that I need to know if my Internet Service Provider meets the Service Level Agreements availability contracted, ie all remote nodes.

Best regads.

Hi,

is the template intended to be used on any nodes? I tried to apply it to two nodes where I have the netxms agent running, I left it running for a couple of days but I only get:

Failure 0
MTBF (hours) empty
MTTR (hours) empty
Node availability (percentage) 0

Any hints on where I'm wrong?

Best regards,
Marco
#162
Feature Requests / Re: Templates - re-apply to nodes
August 01, 2013, 06:38:49 PM
Well, I just manually and uselessly selected almost 150 nodes to re-apply something that would be re-applied automatically! :D
#163
General Support / Re: Error editing DCI
August 01, 2013, 06:28:18 PM
Ok, log found, cleaned up and edited again, this is the content:


!ENTRY org.eclipse.jface 4 2 2013-08-01 17:25:10.942
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jface".
!STACK 0
java.lang.NumberFormatException: For input string: "FF000000"
   at java.lang.NumberFormatException.forInputString(Unknown Source)
   at java.lang.Integer.parseInt(Unknown Source)
   at org.netxms.ui.eclipse.perfview.PerfTabGraphSettings.getColorAsInt(PerfTabGraphSettings.java:124)
   at org.netxms.ui.eclipse.perfview.propertypages.PerfTab.createContents(PerfTab.java:103)
   at org.eclipse.jface.preference.PreferencePage.createControl(PreferencePage.java:232)
   at org.netxms.ui.eclipse.console.tools.ExtendedPropertyDialog.createAllPages(ExtendedPropertyDialog.java:71)
   at org.netxms.ui.eclipse.datacollection.views.DataCollectionEditor.editSelectedObject(DataCollectionEditor.java:702)
   at org.netxms.ui.eclipse.datacollection.views.DataCollectionEditor.access$17(DataCollectionEditor.java:695)
   at org.netxms.ui.eclipse.datacollection.views.DataCollectionEditor$10.run(DataCollectionEditor.java:408)
   at org.netxms.ui.eclipse.datacollection.views.DataCollectionEditor$4.doubleClick(DataCollectionEditor.java:211)
   at org.eclipse.jface.viewers.StructuredViewer$1.run(StructuredViewer.java:845)
   at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
   at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
   at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
   at org.eclipse.jface.viewers.StructuredViewer.fireDoubleClick(StructuredViewer.java:843)
   at org.eclipse.jface.viewers.StructuredViewer.handleDoubleSelect(StructuredViewer.java:1134)
   at org.eclipse.jface.viewers.StructuredViewer$4.widgetDefaultSelected(StructuredViewer.java:1246)
   at org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEvent(OpenStrategy.java:249)
   at org.eclipse.jface.util.OpenStrategy.access$0(OpenStrategy.java:246)
   at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:307)
   at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
   at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
   at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165)
   at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754)
   at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)
   at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)
   at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
   at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
   at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
   at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
   at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
   at org.netxms.ui.eclipse.console.NXMCApplication.start(NXMCApplication.java:37)
   at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
   at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
   at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
   at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
   at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
   at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
   at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
   at org.eclipse.equinox.launcher.Main.main(Main.java:1386)

I understand that there is an exception but how the hell can I throw away that bad value without deleting the DCI?  :)
#164
Feature Requests / Templates - re-apply to nodes
August 01, 2013, 04:58:52 PM
I did not find a way to re-apply a template to nodes. Is there a way? It could be useful when modifying a template that is assigned to a big amount of nodes.

Best regards,
Marco
#165
General Support / Error editing DCI
August 01, 2013, 04:56:07 PM
I got an error trying to edit a DCI:

An error has occurred. See error log for more details.
For input string: "FF000000"


Any hints for the source of the problem? Where is the error log?

Best regards,
Marco