Trying to use NetMonitorAgent (from foglight-5_7_1-cartridge-infrastructuremanagement-netmonitor-5_7_2-b31.zip) in order to monitor status of devices. IThe NetMonitor agent cartridge has been installed on the FMS; The agent package has been deployed on one windows box s sand create agent on one windows host and one linux host. They are watching the same list. On windows, it worked; but on linux, we see errors like,
socket closed error: 2015-06-03 15:03:35.189 ECHO ERROR [NetMonitor Collector Thread Group[0]-1] com.quest.monitoring.agent.netmonitor.icmp.NetMonitorPingTask - An unexpected error occurred which may cause undesired behavior. You may want to contact customer support if you see this error again: Failed to send ping request for precg1fmsl01.sjrb.ad. java.io.IOException: Socket Closed I also tried putting netmonitor.traceroute.path and netmonitor.ping.path into the configure file, still no luck.
and in the helper application log : icmphelper_xyz,
----------------------
QUEST_RUNNER_LOGDIR=/app/FMS-Presentation/Quest_Software/Foglight/fglam/state/default/logs
2015-06-05 16:00:20.000 DEBUG [native] Signal handlers registered
2015-06-05 16:00:20.000 DEBUG [native] Connected to localhost (port 44831)
2015-06-05 16:00:20.000 ERROR [native] Could not create raw ICMP IPv4 socket: Error: 1: Operation not permitted
-------------------
Foglight Net Monitor uses the ICMP service to communicate with network devices. There are two versions of this service that are available for use:
• Foglight Infrastructure Utilities Agent Manager ICMP service uses the udp2icmp application, that is installed with the Agent Manager, and can be used to issue ICMP messages to target devices - and is the Default --
• OS-specific ICMP services use the following OS-level commands to issue ICMP messages to target devices ( ping and traceroute)
Both types - udp2icmp & OS-specific ICMP services - are started through an executable application and require proper permissions to execute.
• Ensure that the ping and traceroute commands are available.
• The user account launching the Agent Manager application must have permissions to execute both ping and traceroute commands.
In order to configure the OS-level ICMP services - ping and traceroute - we will have to use:
-Dnetmonitor.icmpprovider=OS
To do this, you may either start up fglam as such,
fglam -s -Dnetmonitor.icmpprovider=OS
or
update the <fglam_home>/state/default/config/baseline.jvmargs.config file to include that line
vmparameter.x= "-Dnetmonitor.icmpprovider=OS";