Ad Widget

Collapse

Start Service SNMP After triggered

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mackane
    Junior Member
    • Sep 2023
    • 12

    #1

    Start Service SNMP After triggered

    Hello,
    I would like to restart my snmp service automatically (10 mins later) when the zabbix "service stopped" alert is triggered.
    without success,
    agent version 6.4 zabbix
    below my configurations (see captures)
    I authorized on the agent zabbix windows
    AllowKey=system.run[*]

    from zabbix server:
    Action->SCRIPT
    any idea?
    thanks in advance​
    Attached Files
  • mackane
    Junior Member
    • Sep 2023
    • 12

    #2
    any idea what might prevent the script from running?

    Comment

    • markosa
      Senior Member
      Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
      • Aug 2022
      • 104

      #3
      What's in the agent log? What's in error message seen in GUI?

      Comment

      • mackane
        Junior Member
        • Sep 2023
        • 12

        #4
        Hello Markosa,
        thanks for the feedback,
        in the GUI, I have
        Remote command Failed
        "Get value from agent failed: cannot connect to [[192.167.17.40]:10050]: [111] Connection refused"


        Zabbix permission


        ​​

        on zabbix
        ​​

        ​​

        ​​

        Thanks

        Comment

        • mackane
          Junior Member
          • Sep 2023
          • 12

          #5
          logs agent:4316:20240416:205634.272 agent #5 started [active checks #1]
          4316:20240416:205655.584 Unable to connect to [192.168.17.201]:10051 [cannot connect to [[192.168.17.201]:10051]: A connection timeout occurred.]
          4316:20240416:205655.586 Unable to send heartbeat message to [192.168.17.201]:10051 [cannot connect to [[192.168.17.201]:10051]: A connection timeout occurred.]
          4316:20240416:205659.125 Unable to connect to [192.168.17.201]:10051 [cannot connect to [[192.168.17.201]:10051]: Connection refused.]
          4316:20240416:205659.127 Active check configuration update started to fail
          4316:20240416:205734.707 Successfully sent heartbeat message to [192.168.17.201]:10051
          4316:20240416:205759.169 Active check configuration update from [192.168.17.201:10051] is working again

          Comment

          • markosa
            Senior Member
            Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
            • Aug 2022
            • 104

            #6
            So, have you allowed connections to agent from server/proxy? This "Get value from agent failed: cannot connect to [[192.167.17.40]:10050]: [111] Connection refused" looks like you haven't, check firewall(s), selinux etc.
            Also, read Zabbix documentation, it's quite good.

            Comment

            Working...