Page 1 of 1

Inverting standard SSH login checks

Posted: Wed Aug 16, 2023 8:40 am
by keiferb
Hello,

I've got a case where I need to create a check that fails if an SSH login succeeds and is OK if the login fails. Just wanted to check to see if there's anything existing that can do this before I re-invent the wheel.

Thanks!

Re: Inverting standard SSH login checks

Posted: Wed Aug 16, 2023 9:50 am
by bgelhaye
Hi @keiferb and thank you for your post.
It appears that something like this exists already, on exchange.nagios.com.
https://exchange.nagios.org/directory/D ... in/details

This plugin can be 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

Hope this helps!

-Brandon Gelhaye

Re: Inverting standard SSH login checks

Posted: Wed Aug 16, 2023 12:09 pm
by keiferb
This seems like exactly what I needed. Thank you!