Ad Widget

Collapse

Can't get /var/log/syslog

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • boatcoder
    Junior Member
    • Jul 2022
    • 9

    #1

    Can't get /var/log/syslog

    Applied the Linux Server Template and everything works as expected, values fetch and update

    Created an item for /var/log/syslog that looks like this but it shows Status: Not Supported

    IF I test this item, I get:
    • Accessible only as active check.
    What am I doing wrong?
    Click image for larger version

Name:	Screen Shot 2022-07-22 at 01.28.41.png
Views:	2185
Size:	100.4 KB
ID:	448421
  • Answer selected by boatcoder at 22-07-2022, 08:55.
    Atsushi
    Senior Member
    • Aug 2013
    • 2028

    If you want to monitor the log using log[], select "Zabbix agent (active)" as the item type.

    Comment

    • boatcoder
      Junior Member
      • Jul 2022
      • 9

      #2
      Should have added the agent logfile:

      Code:
      210575:20220721:223843.006 TLS support: YES
      210575:20220721:223843.006 **************************
      210575:20220721:223843.006 using configuration file: /etc/zabbix/zabbix_agentd.conf
      210575:20220721:223843.026 agent #0 started [main process]
      210578:20220721:223843.062 agent #3 started[listener #2]
      210580:20220721:223843.132 agent #4 started[listener #3]
      210577:20220721:223843.135 agent [NODE="2"]Forum[/NODE] started[listener #1]
      210576:20220721:223843.162 agent [NODE="1"]Home[/NODE] started [collector]
      210583:20220721:223843.170 agent #5 started [active checks #1]
      210584:20220721:223843.192 agent [NODE="6"]Special[/NODE] started [active checks #2]
      And the server logfile:
      Code:
      28862:20220721:224832.923 executing housekeeper
      28862:20220721:224832.953 housekeeper [deleted 0 hist/trends, 0 items/triggers, 0 events, 0 problems, 0 sessions, 0 alarms, 0 audit, 0 records in 0.012798 sec, idle for 1 hour(s)]
      28874:20220721:230546.420 item "next.dubclub.win:vfs.file.cksum[/etc/passwd,sha256]" became not supported: Too many parameters.
      28872:20220721:230746.530 item "next.dubclub.win:vfs.dev.read.await[sdb]" became not supported: Cannot evaluate function: not enough data at "last(//vfs.dev.read.time.rate[sdb])/(last(//vfs.dev.read.rate[sdb])+(last(//vfs.dev.read.rate[sdb])=0)))*1000*(last(//vfs.dev.read.rate[sdb]) > 0)".
      28874:20220721:230747.532 item "next.dubclub.win:vfs.dev.read.await[sda]" became not supported: Cannot evaluate function: not enough data at "last(//vfs.dev.read.time.rate[sda])/(last(//vfs.dev.read.rate[sda])+(last(//vfs.dev.read.rate[sda])=0)))*1000*(last(//vfs.dev.read.rate[sda]) > 0)".
      28873:20220721:230748.533 item "next.dubclub.win:vfs.dev.write.await[sdb]" became not supported: Cannot evaluate function: not enough data at "last(//vfs.dev.write.time.rate[sdb])/(last(//vfs.dev.write.rate[sdb])+(last(//vfs.dev.write.rate[sdb])=0)))*1000*(last(//vfs.dev.write.rate[sdb]) > 0)".
      28872:20220721:230749.536 item "next.dubclub.win:vfs.dev.write.await[sda]" became not supported: Cannot evaluate function: not enough data at "last(//vfs.dev.write.time.rate[sda])/(last(//vfs.dev.write.rate[sda])+(last(//vfs.dev.write.rate[sda])=0)))*1000*(last(//vfs.dev.write.rate[sda]) > 0)".
      28874:20220721:230947.658 item "next.dubclub.win:vfs.dev.read.await[sdb]" became supported
      28872:20220721:230948.659 item "next.dubclub.win:vfs.dev.read.await[sda]" became supported
      28871:20220721:230949.660 item "next.dubclub.win:vfs.dev.write.await[sdb]" became supported
      28873:20220721:230950.662 item "next.dubclub.win:vfs.dev.write.await[sda]" became supported
      28872:20220721:231145.772 item "next.dubclub.win:vfs.file.contents["/sys/class/net/eth0/speed"]" became not supported: Value "-1000000" of type "double" is not suitable for value type "Numeric (unsigned)"
      And there is not data in the zabbix server for this item.

      Comment

      • Atsushi
        Senior Member
        • Aug 2013
        • 2028

        #3
        If you want to monitor the log using log[], select "Zabbix agent (active)" as the item type.

        Comment

        • boatcoder
          Junior Member
          • Jul 2022
          • 9

          #4
          Wow, that was so simple. Thanks

          Comment

          Working...