Ad Widget

Collapse

is not supported: Cannot open file "/var/log/secure": [13] Permission denied

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mathisreel66
    Junior Member
    • Jun 2024
    • 19

    #1

    is not supported: Cannot open file "/var/log/secure": [13] Permission denied

    Error
    active check "log[/var/log/secure,,,,,,,,]" is not supported: Cannot open file "/var/log/secure": [13] Permission denied

    Setup

    RHEL SERVER with agent - wanting to monitor /var/log/secure on this server
    zabbix_agentd.conf on rhel server configured with the following
    Server=zabbix-serverName
    ServerActive=zabbix-serverName
    Hostname=namedAgent-active (matches hostname in zabbix server host config)

    zabbix user has been granted read permissions on /var/log/secure
    I am able to tail -f /var/log/secure using zabbix user.
    selinux is disabled

    -------------------------------------------------
    Zabbix Server
    Zabbix server Host Configuration
    Hostname=namedAgent-active (matches hostname in zabbix_agentd.conf )
    Zabbix host is NOT green BUT, i see other types of data coming in under latest data for this host.

    What am i missing here?
  • mathisreel66
    Junior Member
    • Jun 2024
    • 19

    #2
    item config screencap
    Attached Files

    Comment

    • mathisreel66
      Junior Member
      • Jun 2024
      • 19

      #3
      Resolved 10 mins after posting this
      Resolution: hostname can NOT be FQDN

      Comment

      • mathisreel66
        Junior Member
        • Jun 2024
        • 19

        #4
        Is this documented somewhere? in some obscure small type?

        Comment

        • tim.mooney
          Senior Member
          • Dec 2012
          • 1427

          #5
          Originally posted by mathisreel66
          Resolved 10 mins after posting this
          Resolution: hostname can NOT be FQDN
          You may have resolved the issue, but I'm highly skeptical that

          Code:
          Cannot open file "/var/log/secure": [13] Permission denied
          was caused by anything to do with the hostname.

          Are you certain it wasn't resolved by something else you did at around the same time? Perhaps you restarted zabbix_agentd for the first time after granting the zabbix user access to the file?

          Comment

          Working...