Ad Widget

Collapse

SSH Agent on Zabbix Frontend returning wrong value

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • cyberphantom
    Member
    • Dec 2021
    • 67

    #1

    SSH Agent on Zabbix Frontend returning wrong value

    Hello
    I have an host with some items with SSH Agent type. It was working well before we changed the user/password. Now that it changed, the items are returning a empty value, but it's enabled. When I logged by SSH from Zabbix Server to the host, I typed the same command as Zabbix front and it returned to me the correct value (I logged using the new user that we changed recently, and this is the user that is on Zabbix front now).
    We don't have any errors... so we don't have idea for what is this... Why zabbix frontend is showing another value but by terminal on zabbix server to my host, it works well?
    Any ideas?
    Last edited by cyberphantom; 19-09-2022, 22:00.
  • Answer selected by cyberphantom at 22-09-2022, 14:38.
    cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4806

    Originally posted by cyberphantom
    I received the message that may be a security measure (from my hosts), which is required a graphical interface (tty) when we execute a sudo command. I'm still new to zabbix, so it makes sense for this kind of problem?
    sudo execution can be configured with or without tty... but that is agreement with your security people...

    Comment


    • cyberphantom
      cyberphantom commented
      Editing a comment
      We disabled the tty and run commands with sudo. Then everything work right.
      Thanks
  • markfree
    Senior Member
    • Apr 2019
    • 868

    #2
    Have you checked your server logs? Are there any error messages there?
    Did you try to check the item using "zabbix_get"?​

    Comment


    • cyberphantom
      cyberphantom commented
      Editing a comment
      There's no errors in the logs file...
      I've never used this command zabbix_get, it's returning "Check access restrictions in Zabbix agent configuration".. I'm using "zabbix_get -s (HOST-IP-ADDRESS) -p 22 -k "my-item-key"" I'm not sure if it's correct (I read the manual). This host don't have an zabbix agent installed, I'm just checking by ssh
  • cyberphantom
    Member
    • Dec 2021
    • 67

    #3
    I received the message that may be a security measure (from my hosts), which is required a graphical interface (tty) when we execute a sudo command. I'm still new to zabbix, so it makes sense for this kind of problem?

    Comment


    • markfree
      markfree commented
      Editing a comment
      Sorry. My mistake. "zabbix_get" works only with Zabbix Agent. As pointed by Cyber, you should check your SSH and user access restrictions.
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4806

    #4
    Originally posted by cyberphantom
    I received the message that may be a security measure (from my hosts), which is required a graphical interface (tty) when we execute a sudo command. I'm still new to zabbix, so it makes sense for this kind of problem?
    sudo execution can be configured with or without tty... but that is agreement with your security people...

    Comment


    • cyberphantom
      cyberphantom commented
      Editing a comment
      We disabled the tty and run commands with sudo. Then everything work right.
      Thanks
Working...