Ad Widget

Collapse

How to check if user is able to log in via ssh

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lynggaard
    Junior Member
    • Sep 2012
    • 11

    #1

    How to check if user is able to log in via ssh

    I am trying to test if a user is able to log in via SSH. I do not have a Zabbix agent on the target machine.

    Testing that the service is up is not enough since I also want to validate that the user account is not expired and the ssh key is working correctly.

    I have tried to setup a simple SSH agent check do just echo some dummy value and the check itself work. However if the user account is expired the check simply goes into "Unsupported" state without any warning.

    I have tried to setup a trigger on "no data for X minutes" but that does not fire.

    What is the correct way to monitor ssh users?
  • zalex_ua
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2009
    • 1286

    #2
    See https://support.zabbix.com/browse/ZBX-1003 and https://support.zabbix.com/browse/ZBXNEXT-341

    Comment

    • mbsit
      Senior Member
      • Sep 2012
      • 130

      #3
      Hi
      Make sure you set the return value as a TEXT in Item configuration. Then item will never go to unsupported when received something like: "Your account have expired"

      Trigger it with .str function or .strlen

      Bests,
      Grzegorz

      --
      Wdrożenia Zabbix - Warszawa
      Pozdrawiam
      Grzegorz Grabowski
      ____
      WdroĊĵenia, szkolenia, umowy serwisowe
      Warszawa - Polska

      Comment

      • lynggaard
        Junior Member
        • Sep 2012
        • 11

        #4
        Originally posted by mbsit
        Hi
        Make sure you set the return value as a TEXT in Item configuration. Then item will never go to unsupported when received something like: "Your account have expired"

        Trigger it with .str function or .strlen
        Thank you I will try that

        Comment

        • lynggaard
          Junior Member
          • Sep 2012
          • 11

          #5
          Originally posted by mbsit
          Hi
          Make sure you set the return value as a TEXT in Item configuration. Then item will never go to unsupported when received something like: "Your account have expired"

          Trigger it with .str function or .strlen

          Bests,
          Grzegorz
          Doesn't work,no matter how I configure the item, is still goes to unsupported.

          Comment

          Working...