Ad Widget

Collapse

Logfiles Monitoring

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mohammadjuve
    Junior Member
    • Mar 2018
    • 24

    #1

    Logfiles Monitoring

    Hello All,

    I try to monitor the Log files on Linux Servers in the same network so I've made the following changes:

    Agent Side:

    -Hostname' parameter matches the host name in the frontend.

    -ervers in the 'ServerActive' parameter are specified for the processing of active checks.

    -RefreshActiveChecks=120 in zabbix_agentd.conf.

    -give the Zabbix User access to the monitored Files.

    Server

    Aktive Server

    listen port 10051

    item:

    like the photo in the attachment

    trigger

    {xxxx:log[/var/log/syslog,zabbixtest].nodata(180)}=0

    I've wrote also this command

    logger zabbixtest

    but I still get no Vlaues or triggers !! any Idea

    Thank you



    Attached Files
  • Mohammadjuve
    Junior Member
    • Mar 2018
    • 24

    #2
    No one have an Idea !!

    Comment

    • aigars.kadikis
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Mar 2018
      • 208

      #3
      Hello, Mohammadjuve!

      Is this the only item on host defined?
      Do you have any other signs (passive items configured) which proves that some relation has established between server and agent?

      About log monitoring..
      Pease test communication from zabbix agent to zabbix server. Test if zabbix agent can deliver data to zabbix server:
      Code:
      nmap -p 10051 ip.of.zabbix.server
      P.S. If you have no triggers configured then you can see all data received under Monitoring -> Latest data

      Regards,
      Aigars

      Comment

      • Mohammadjuve
        Junior Member
        • Mar 2018
        • 24

        #4
        Hello Aigars,
        Thank you for your reply.
        the host has more than 500 passive checks, the only thing that annoys me is the active check.

        the connection between agent and Server is ok
        the result of nmap command is:

        Code:
        Host is up (0.00047s latency).
        PORT STATE SERVICE
        10051/tcp open unknown
        Regards,

        Comment

        • aigars.kadikis
          Senior Member
          Zabbix Certified SpecialistZabbix Certified Professional
          • Mar 2018
          • 208

          #5
          Hi,

          Let's try a little different approach. Please try to move to the zabbix user:
          Code:
          su -s /bin/bash zabbix
          Create some content which will definitely be owned by zabbix
          Code:
          echo "some zabbixtest" >> /tmp/logfile
          Configure /tmp/logfile as log file in zabbix. Make sure you wait for the configuration to synchronize (60 seconds by default). Look for latest data under Monitoring -> Latest data
          I hope the data came..

          But if not..
          What operating system do you have? Do you have SELinux enabled?
          Code:
          getenforce
          What zabbix_agentd.log says?

          Regards,

          Comment

          • Mohammadjuve
            Junior Member
            • Mar 2018
            • 24

            #6
            Hello Aigars,
            it was a Silly fault, I've wrote the wrong ip address for ServerActive.
            every thing works Super locally,
            i'm trying now to monitor the log files for server in far sites.

            Big Regards,

            Comment

            • aigars.kadikis
              Senior Member
              Zabbix Certified SpecialistZabbix Certified Professional
              • Mar 2018
              • 208

              #7
              Originally posted by Mohammadjuve
              Hello Aigars,
              it was a Silly fault, I've wrote the wrong ip address for ServerActive.
              every thing works Super locally,
              i'm trying now to monitor the log files for server in far sites.

              Big Regards,
              Thanks for feedback!

              Comment

              Working...