How would you have automated this

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
itadmins
Posts: 22
Joined: Wed Mar 28, 2018 6:15 pm

How would you have automated this

Post by itadmins »

We've got Nagios XI 5.4.13, we wanted to monitor all the plugged in ethernet ports on our servers for being up and the traffic bandwidth going through them. And have a historical record of it. We accomplished it by running the network switch/router wizard against our servers, which results in all kinds of devices being detected such as Microsoft-ISATAP-Adapter-#2, virtual adapters, wan miniports, virtual switches, etc etc. We had to manually remote into each box, or run a powershell command against the servers to see what adapters are up and get their names and then uncheck all the other adapters the wizard found.

The adapters are always named differently, try running the wizard against a few of your servers. Doing this manually for a few hundred servers would easily take a week. How would you automate this? Btw these were all windows servers.
jacek
Posts: 255
Joined: Wed Sep 09, 2015 5:49 am

Re: How would you have automated this

Post by jacek »

Do You want to skip the wizards completely?
If I would like to monitor my servers this way I wouldn't automate the process of adding them, because there might be a scenario that You somehow missed, and these things kick hard when they come back ;)
Setting up a proper monitoring for machines is a one time effort, and better take it step by step.

If You want to go via wizards, then I must agree, there are a lot of "network devices" popping up after running a switch/router wizard against the machine, but to be honest - if You work with windows, You will see the ethernet cards right away based on their name.
Additionally - most of the virtual ports will have weird speeds detected, only a few of them will show up a 1Gig connection.

I'm doing this from the other side - by monitoring the switch ports (I want to know if someone plugs out a cable).
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: How would you have automated this

Post by scottwilkerson »

If I wanted to monitor a lot of server with the same configs I would setup 1 just the way I want it.

Then, use the bulk host cloning wizard to copy that host to as many as I want in a spreadsheet.

This only works however if you know what you want to monitor (which I would highly recommend thinking about in advance).

Then as jacek mentioned, I usually monitor the network from the switch side, and ignore it on the Windows server side.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked