Ad Widget

Collapse

vfs.file.regexp Problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Achim55
    Junior Member
    • Sep 2016
    • 19

    #1

    vfs.file.regexp Problem

    Hi members of Zabbix Forums,

    I´m using zabbix agent in a Linux machine running (Debian) The zabbix agent is running and works fine.

    But when I decided to use a new key to check a string in a text file using vfs.file.regexp, I had some problems:

    vfs.file.regexp[/var/log/fail2ban,WARNING]

    Answer :Not supported by Zabbix Agent!




    Thanks a lot
  • andris
    Zabbix developer
    • Feb 2012
    • 228

    #2
    File access permissions ok ? Can 'zabix user read /var/log/fail2ban file ?

    Comment

    • Achim55
      Junior Member
      • Sep 2016
      • 19

      #3
      Hi!
      Yes i have.

      Code:
      -rwsrwsrwt  1 root     adm         3136 Okt 21 14:40 fail2ban.log

      The configuration is ok?

      [IMG][/IMG]


      i have a new Error:
      Received value [2016-10-21 14:05:40,664 fail2ban.actions[3576]: WARNING [ssh] Ban 88.152.185.2] is not suitable for value type [Numeric (unsigned)] and data type [Decimal]
      Last edited by Achim55; 21-10-2016, 17:13.

      Comment

      • nobodysu
        Member
        • Sep 2016
        • 84

        #4
        You need to change fail2ban.actions item 'Type of information' from Numeric to Text or Log.

        Comment

        • Achim55
          Junior Member
          • Sep 2016
          • 19

          #5
          i have change 'Type of information' from Numeric to Text or Log.

          Then comes : Not supported by Zabbix Agent!

          Comment

          • andris
            Zabbix developer
            • Feb 2012
            • 228

            #6
            Documentation https://www.zabbix.com/documentation...s/zabbix_agent says that
            vfs.file.regexp[] returns "The line containing the matched string, or as specified by the optional output parameter".
            So, as 'nobodysu' already noted, in general case 'Type of information" should be 'Log'.
            You can increase DebugLevel to 4 in agent config. file and try to find out why agent complains about this item.

            Comment

            • Achim55
              Junior Member
              • Sep 2016
              • 19

              #7
              it works !

              i reboot the Server

              Best thanks for the info!

              Comment

              Working...