Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-17791

Remote commands not logged on agent2

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 5.0.0
    • Agent (G)
    • Linux

      Environment:

      • Agent2 configured to allow remote commands
      • Remote commands working from front end
      • DebugLevel=3 (Warnings)
      • Plugins.SystemRun.LogRemoteCommands=1

      Expected behavior:

      Remote commands logged.

      Actual behavior:

      Remote commands not logged unless DebugLevel=4

       

      Previous agent (old agent) properly logs commands @ DebugLevel=3

      These lines in src/go/plugins/systemrun/systemrun.go seem to explain the actual behavior

      70 if p.options.LogRemoteCommands == 1 && ctx.ClientID() != agent.LocalChecksClientID {}
      71 p.Warningf("Executing command:'%s'", params[0])
      72 } else {}
      73 p.Debugf("Executing command:'%s'", params[0])
      74 
      

      However, the config file description for Plugins.SystemRun.LogRemoteCommands states that commands will be logged "as warnings". Assume that means DebugLevel=3, like the previous agent?

      This change in behavior doesn't seem to be documented anywhere. 

            rvaliahmetovs Renats Valiahmetovs (Inactive)
            cszikszoy Chris
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: