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

#226
General Support / Re: Questions about UPS
February 10, 2010, 12:36:23 PM
Do you have any suggestion?

Thank you very much.
Marco.
#227
General Support / Re: Questions about UPS
February 07, 2010, 05:17:53 PM
Ok, I tried and the Query Parameter tells "Cannot get parameter: Communication Failure".

Here the agent configuration:

MasterServers = 192.168.0.48
LogFile = {syslog}
FileStore = C:\Program Files\NetXMS\var
SubAgent = winperf.nsm
SubAgent = ups.nsm

*UPS
Device = 0:ANY:USB


Here the output in debug mode:

C:\Program Files\NetXMS\bin>"C:\Program Files\NetXMS\bin\nxagentd.exe" -D -c "C:\Program Files\NetXMS\etc\nxagentd.conf" -n "NetXMSAgentdW32" -e "NetXMS Win32 Agent" -M "192.168.0.48"
Downloading configuration from 192.168.0.48...
Configuration download failed
[07-Feb-2010 16:11:14] Debug: Log file opened
[07-Feb-2010 16:11:14] Additional configs was loaded from C:\nxagentd.conf.d
[07-Feb-2010 16:11:14] Debug: Subagent API initialized
[07-Feb-2010 16:11:14] Subagent "WINNT.NSM" loaded successfully
[07-Feb-2010 16:11:16] Subagent "winperf.nsm" loaded successfully
[07-Feb-2010 16:11:16] Counter set B is empty, collector thread for that set will not start
[07-Feb-2010 16:11:16] Counter set C is empty, collector thread for that set will not start
[07-Feb-2010 16:11:16] Subagent "ups.nsm" loaded successfully
[07-Feb-2010 16:11:16] UPS: Cannot establish communication with device #0 "USB-ANY"
[07-Feb-2010 16:11:17] Debug: Trying to bind on 0.0.0.0:4700
[07-Feb-2010 16:11:17] Listening on socket 0.0.0.0:4700
[07-Feb-2010 16:11:18] NetXMS Agent started
Agent running. Press ESC to shutdown.
[07-Feb-2010 16:11:20] Debug: Incoming connection from 192.168.0.48
[07-Feb-2010 16:11:20] Debug: Connection from 192.168.0.48 accepted
[07-Feb-2010 16:11:20] Debug: {0} Received control message CMD_GET_NXCP_CAPS
[07-Feb-2010 16:11:20] Debug: {0} Sending message CMD_NXCP_CAPS (size 16)
[07-Feb-2010 16:11:20] Debug: {0} Received message CMD_KEEPALIVE
[07-Feb-2010 16:11:20] Debug: {0} Sending message CMD_REQUEST_COMPLETED (size 32)
[07-Feb-2010 16:11:20] Debug: {0} Received message CMD_ENABLE_AGENT_TRAPS
[07-Feb-2010 16:11:20] Debug: {0} Sending message CMD_REQUEST_COMPLETED (size 32)
[07-Feb-2010 16:11:20] Debug: {0} Received message CMD_GET_PARAMETER
[07-Feb-2010 16:11:20] Debug: {0} Requesting parameter "System.Memory.Physical.Total"
[07-Feb-2010 16:11:20] Debug: {0} Sending message CMD_REQUEST_COMPLETED (size 72)
[07-Feb-2010 16:11:20] Debug: {0} Received message CMD_GET_PARAMETER
[07-Feb-2010 16:11:20] Debug: {0} Requesting parameter "System.IO.DiskQueue"
[07-Feb-2010 16:11:20] Debug: {0} Sending message CMD_REQUEST_COMPLETED (size 64)
Agent shutting down...
[07-Feb-2010 16:11:21] Debug: Trap sender thread terminated
[07-Feb-2010 16:11:22] Debug: {0} CommSession::disconnect()
[07-Feb-2010 16:11:22] Debug: {0} Session with 192.168.0.48 closed
[07-Feb-2010 16:11:23] Debug: Listener thread terminated
[07-Feb-2010 16:11:23] Debug: Session Watchdog thread terminated
[07-Feb-2010 16:11:23] Collector thread for counter set A terminated
[07-Feb-2010 16:11:24] NetXMS Agent stopped


It isn't unable to communicate with the UPS,  where am I wrong?
#228
General Support / Re: Questions about UPS
February 07, 2010, 03:29:55 PM
Quote from: Victor Kirhenshtein on February 04, 2010, 01:15:05 PM
Yes, but only on Windows. To add USB UPS, use the following syntax:



Now I'm able to start properly the agent but I'm unable to get values from it. All the UPS.xxx functions expect a parameter, what I have to indicate? I tried to experiment myself putting different values (0, 1, USB, USB1, ...) but I always get the same error message "Cannot get parameter: Requested data collection item is not supported by agent".
I don't understand if this is due to the wrong parameter specified or if my USB UPS doesn't support the command (I tried with all the functions, without success). I tried to search in the documentation but there is no info about this topic.

Thank you very much for your support.
Marco.
#229
General Support / Re: Questions about UPS
February 03, 2010, 05:09:31 PM
Quote from: Victor Kirhenshtein on January 28, 2010, 01:11:08 AM

*UPS
Device = 1:"COM1:":APC

Replace COM1 with actual port name. If your have UPS other than APC, change communication protocol to BCMXCP or MICRODOWELL, depending on what your UPS supports. Restart agent.

Best regards,
Victor


Does NetXMS supports USB UPS? If yes, how should I configure it?

Thanks,
Marco
#230
Feature Requests / 95th percentile
October 23, 2009, 06:53:26 PM
Hello!

I don't know if this is already available, I tried to search buth without success. It could be an interesting feature the possibility to calculate the 95th percentile, as it used as a common way to estimate the bandwidth consumption.

Marco.
#231
Quote from: MEVALDEZ on October 09, 2009, 06:39:37 PM
Hi Victor and Team,

I upgraded from upgraded my server from version 0.2.27 to version 0.2.29 and now I am having having problems. I tried starting the service manually and it won't start.
---8<----
My question is where do I make this change or what is the best way to correct this problem.


Same problem here! :-(
#232
General Support / Re: Problem with agent netxms-0.2.27
August 12, 2009, 05:36:56 PM
Quote from: Victor Kirhenshtein on August 12, 2009, 09:56:41 AM
When you start agent as standalone program, not as system service, you should not use -d option. So, to debug, you should use command

"C:\Program Files (x86)\NetXMS\bin\nxagentd.exe" -D -c "C:\Program Files (x86)\NetXMS\etc\nxagentd.conf" -M "192.168.0.1"

Best regards,
Victor


Thank you very much Victor!

The debug helped to solve the problem: since the server is mutihomed (due to Hyper-V) the agent was receiving connection from an address not specified in the config file, I added even the second address to the MasterServers and everything worked fine.

All the best,
Marco
#233
General Support / Re: Problem with agent netxms-0.2.27
August 10, 2009, 12:45:12 PM
Quote from: Alex Kirhenshtein on August 03, 2009, 11:00:43 AM
Looks like agent is rejecting connections.

Check "Servers", "InstallationServers", "ControlServers", or "MasterServers" section in nxagentd.conf, one of this sections should contain IP address of your netxms server. For more information take a look at nxagentd.conf-dist

If nxagentd.conf is correct, verify that you can connect from your windows machine to linux server on port 4700 — if you can't, check firewall settings.

If both are correct, you can stop agent and start it with "-D" argument, this will enable debug output.

I have a similar problem, I'm able to properly connect boxes outside my network but I'm unable to connect those in my network. Firewall is disabled and telnet connects without problem. Tried with either a physical machine with Windows 2008 x64 and with a virtual machine under hyper-v with Windows 2003 x64. Tried also both x86 and x64 agents, no differences.

Running the -D argument produces this:
C:\Program Files (x86)\NetXMS\bin>"C:\Program Files (x86)\NetXMS\bin\nxagentd.exe" -D -d -c "C:\Program Files (x86)\NetXMS\etc\nxagentd.conf" -n "NetXMSAgentdW32" -e "NetXMS Win32 Agent" -M "192.168.0.1"
Downloading configuration from 192.168.0.1...
Configuration download failed
StartServiceCtrlDispatcher() failed: The service process could not connect to the service controller.

This is the content of the configuration file:
#
# NetXMS agent configuration file
# Created by agent installer at Sun Aug 09 15:52:06 2009
#

MasterServers = 192.168.0.1
LogFile = {syslog}
FileStore = C:\Program Files (x86)\NetXMS\var
SubAgent = winperf.nsm

Any hints appreciated,
thank you