How to get result from netstat -tan from nagios to another windows machine?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
lzdravkov
Posts: 9
Joined: Mon Jul 06, 2020 2:58 am

How to get result from netstat -tan from nagios to another windows machine?

Post by lzdravkov »

Can you please tell me how to monitor an established connection (on a specified port) in a windows machine from nagios (centOS) here an example (output of netstat):

netstat -ant | find "4443"
TCP 0.0.0.0:4443 0.0.0.0:0 LISTENING InHost
TCP [::]:4443 [::]:0 LISTENING InHost
bbahn
Posts: 386
Joined: Thu Jan 12, 2023 5:42 pm

Re: How to get result from netstat -tan from nagios to another windows machine?

Post by bbahn »

Hello and thanks for reaching out.

While there are many ways you could accomplish this, the suggested method would be to create a plugin that you run using the Nagios Cross-Platform Agent (NCPA) on your Windows machine.

Here are some useful resources for getting started:
https://www.nagios.org/ncpa/
https://nagiosenterprises.my.site.com/s ... A-32a58c75

Blake Bahner
Actively advancing awesome answers with ardent alliteration, aptly addressing all ambiguities. Amplify your acumen and avail our amicable assistance. Eagerly awaiting your astute assessments of our advice.
Post Reply