Ad Widget

Collapse

How to monitor logs on /var/log/secure location?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • adrianzabvitz
    Junior Member
    • Oct 2020
    • 10

    #1

    How to monitor logs on /var/log/secure location?

    Hi, I want to know how could I monitor logs on the /var/log/secure location, I have created an Item an Trigger but It does not work and I do not know why, below is the images for the Item, trigger and I have also change the permissions on the server I want to monitor, I have added the zabbix user to the root group.

    Click image for larger version

Name:	Captura.PNG
Views:	1353
Size:	36.2 KB
ID:	411805Click image for larger version

Name:	Captura.PNG
Views:	1302
Size:	40.3 KB
ID:	411806

    Attached Files
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    Check the file permissions. You wrote that you added the zabbix user to the root group, but does the file have permissions that allow it to be read by the root group?
    In my CentOS 8 environment, the file permissions are as follows, so I think that only the root user can read and write unless you change the permissions.

    Code:
    # ls -l /var/log/secure
    -rw------- 1 root root 0 Oct 25 03:41 /var/log/secure
    #

    Comment


    • adrianzabvitz
      adrianzabvitz commented
      Editing a comment
      I have restarted the zabbix agent

    • Atsushi
      Atsushi commented
      Editing a comment
      Did you output a log that matches the character string specified in the regular expression?

    • adrianzabvitz
      adrianzabvitz commented
      Editing a comment
      Yes, the output matches the regular expression
Working...