Monitor arbitrary TCP port
Greetings LM community.
We would like to monitor arbitrary TCP ports. The result we would like to achieve is a simple service is listening or not result.
Is this possible ?
Cheers,
Tom
Posted 9 years ago·Last reply 4 years ago
15 comments
Emma_Taylor
·4 years agoThis SAM component monitor tests the ability of a TCP/IP-based service to accept incoming sessions. It tries to establish a socket connection using the Connect method of System. This component monitor does not compute a statistic.
LM User
·4 years agoThe UDP protocol does not support basic echo commands because it is sessionless. Not a limitation of LogicMonitor, but a limitation in the underlying UDP protocol.
The_Bhattman
·4 years agoWould this support UDP?
LM User
·4 years agoIf you setup active discovery using the script i posted above, you wouldn't use the "Add Monitored Instance" option at all. It would just show up since LM is discovering and listing them automatically.
mark_rowlands
·4 years agoTested this, but when i hit the autocomplete the module does not show up
LM User
·5 years agoIt's there. There's just a different search box for locator codes. (Yes, I know.) In the Exchange, in the top right, there's a locator search option.
I have enhanced my version of this DS to include automatic discovery using this discovery script:
Set a property called "pingmulti.targets" in the format:
target1_IP/FQDN|target1_Name,target2_IP/FQDN|target2_Name
This also allows the appliesTo to be simplified to just "pingmulti.targets".
However, keep in mind that this still only pings from the collector. If you want to ping from the target device to some other destination, consider these two DSs. Only works on Windows or Linux, but that's usually what people are going for.
Tim_OShea
·5 years agoCant find PX4D7W. This is my first attempt at this, so I am probably doing something wrong. any advise would be helpful
LM User
·5 years agoThis is public now. Try again.
Joe_Tran
·6 years agoI had DIY'd a scripted Groovy datasource ages. Not sure if this was exactly what PortMulti- did, but the results should be similar.
You would just then setup a datapoint to capture the exitCode and alert if it was > 0.
Emerson
·6 years agoPX4D7W is private now. Any alternative???
Tom
OP9 years agoThe LogicModule is now available to me and I can happily report PortMulti- is working well.
Tom
OP9 years agoMessage when attempting to add the Datasource
503 : This LogicModule is currently undergoing security review. It will be available for import only after our engineers have validated the scripted elements.
Jon_Blake
·9 years agoHi Tom,
No, none of the monitored instances that you add via port-multi will count as a license slot.
-Jon
Tom
OP9 years agoHi Kerry,
Thank you for the easy to understand answer. Does adding of the monitored instance count as a license slot?
Cheers,
Tom.
Kerry DeVilbiss
·9 years agoHi Tom,
This is definitely possible - I am attaching the LM locator code for a "PortMulti"datasource. Once you've imported the datasource, navigate to a device, and select the dropdown next the the big blue 'Manage' button. In the dropdown there is an option to 'Add Monitored Instance' - see the attached screenshot for configuration parameters. For additional ports to monitor, repeat the process.
The datasource name will be 'PortMulti-' and the LM locator code is PX4D7W.
Cheers,
Kerry