Page 1 of 1

unoccupied switch ports

Posted: Thu Aug 15, 2019 3:24 pm
by dslaughter
I've got a switch port that is normally empty so an alert is created and sits acknowledged. What kind of check can I configure that will alert when something is plugged into the switch port?

Re: unoccupied switch ports

Posted: Thu Aug 15, 2019 4:16 pm
by tgriep
What you could do is to create a new command using the negate plugin which will change the output of the interface status plugin to generate a Critical when something is plugged in.

Negate is used to execute other plugins, the state returned by the other plugin can be changed by the negate
plugin. For example when a check is normally considered to be in a Critical or Warning state, but the system
administrator would instead prefer to see an OK when in such a state. Understand that this will not turn any
check consistently to an OK state, but will reverse a critical to OK or an OK to critical, depending on the actual
check being run.

Check out this video for an overview on what it does.
https://support.nagios.com/kb/article/n ... n-287.html

And a detailed document on it's use.
https://assets.nagios.com/downloads/nag ... ios-XI.pdf

Re: unoccupied switch ports

Posted: Thu Aug 15, 2019 4:30 pm
by dslaughter
Thanks! Sounds like what I'm looking for.



Lock it.