Ad Widget

Collapse

Redis template problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • TDex96
    Junior Member
    • Jan 2021
    • 14

    #1

    Redis template problem

    Hey guys!

    I use Zabbix Server 7.0 LTS, and now i stucked with the Redis template. I have a simple standalone redis instance which i want to monitor with agent 2 active.
    I have the session config in the plguins/redis.conf:
    Plugins.Redis.Sessions.http39.Uri=tcp://localhost:6379
    And for the host:
    Click image for larger version

Name:	image.png
Views:	230
Size:	13.0 KB
ID:	503143
    I use the following template:
    Redis by Zabbix agent 2
    I didn't got any error message in the agent log, however i used log level 5, so debugging but nothing.

    Thank you veyry much if you have any suggestion!
  • PavelZ
    Senior Member
    • Dec 2024
    • 162

    #2

    default value for macro {$REDIS.CONN.URI} = "tcp://localhost:6379"
    And it works great. Why change anything?

    Comment

    • TDex96
      Junior Member
      • Jan 2021
      • 14

      #3
      Still not working with the default macro.

      Comment

      • PavelZ
        Senior Member
        • Dec 2024
        • 162

        #4
        What about the agent settings? Did you restore them to their original state?

        In addition, it is now common to configure Redis with a password. Here you will need to configure a password in the agent files​

        Try connecting with some diagnostic program as well - it seems that even telnet will work.

        Comment

        • TDex96
          Junior Member
          • Jan 2021
          • 14

          #5
          Unfortunately my redis instances don't have password, it works on vlan. The redis plugin config files now untouched, and i tried to use with default settings, but nothing. In the agent config files i only edited the ServerActive and Hsotname variables. Now for the test i use a simple standalone redis from the apt repo. Nothing special. In the agent logs i also not saw anything with redis.

          Comment

          • PavelZ
            Senior Member
            • Dec 2024
            • 162

            #6
            There is nothing wrong if the password is missing. This is not always a problem and should not affect the functionality of the template.

            Maybe you can check each individual items? Are there any errors?
            And then check autodiscovery status

            Comment

            • TDex96
              Junior Member
              • Jan 2021
              • 14

              #7
              The discovery look like thos:
              Click image for larger version

Name:	image.png
Views:	88
Size:	72.4 KB
ID:	503208

              Comment

              • PavelZ
                Senior Member
                • Dec 2024
                • 162

                #8
                I see red signals. This means these are errors and now you have a place to get debug information

                Comment

                • TDex96
                  Junior Member
                  • Jan 2021
                  • 14

                  #9
                  Click image for larger version

Name:	image.png
Views:	99
Size:	10.8 KB
ID:	503211
                  Debug log on agent side?

                  Comment

                  • PavelZ
                    Senior Member
                    • Dec 2024
                    • 162

                    #10
                    I think you have installed agent version 1, but use template for agent2.
                    They both are quite compatible in terms of keys. Sometimes you can get them mixed up.

                    Comment

                    • TDex96
                      Junior Member
                      • Jan 2021
                      • 14

                      #11
                      Here is the agent version:
                      Code:
                      zabbix_agent2 -V
                      zabbix_agent2 (Zabbix) 7.0.12
                      Revision ada4cd46eae 22 April 2025, compilation time: Apr 22 2025 09:30:57, built with: go1.24.1
                      Plugin communication protocol version is 6.4.0
                      Server version:
                      Code:
                       zabbix_server -V
                      zabbix_server (Zabbix) 7.0.11
                      Revision 7b462dfe68e 27 March 2025, compilation time: Mar 27 2025 06:24:15
                      Now i turned on DebugLevel=4 and i only see my other plugin information, which is Mysql. Mysql works fine but i can't see any Redis related log.

                      If i see right, i use agent 2 and the template is also for agent 2.
                      Last edited by TDex96; 19-05-2025, 18:55.

                      Comment

                      Working...