Ad Widget

Collapse

Global reg ex, vfs.fs.discovery, and net.if.discovery

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kblackwell
    Junior Member
    • Oct 2013
    • 22

    #1

    Global reg ex, vfs.fs.discovery, and net.if.discovery

    I've recently upgraded form zabbix 1.8 to 2.0.

    I've been testing LLD to in the 2.0 Template_OS_Linux

    Below I posted results of zabbix_get -s 127.0.0.1 -p 10050 -k "vfs.fs.discovery" and "net.if.discovery"

    now one thing I seeing is everyone stating that global reg ex is supposed to process that. 2 things about that.

    1. It's not populating the interfaces
    2. when i go the the reg ex page, it's empty.

    Should some global reg ex expression be there?


    Thanks


    [linux@linux-01 ~]$ zabbix_get -s 127.0.0.1 -p 10050 -k "vfs.fs.discovery"
    {
    "data":[
    {
    "{#FSNAME}":"\/",
    "{#FSTYPE}":"rootfs"},
    {
    "{#FSNAME}":"\/proc",
    "{#FSTYPE}":"proc"},
    {
    "{#FSNAME}":"\/sys",
    "{#FSTYPE}":"sysfs"},
    {
    "{#FSNAME}":"\/dev",
    "{#FSTYPE}":"devtmpfs"},
    {
    "{#FSNAME}":"\/dev\/pts",
    "{#FSTYPE}":"devpts"},
    {
    "{#FSNAME}":"\/dev\/shm",
    "{#FSTYPE}":"tmpfs"},
    {
    "{#FSNAME}":"\/",
    "{#FSTYPE}":"ext4"},
    {
    "{#FSNAME}":"\/proc\/bus\/usb",
    "{#FSTYPE}":"usbfs"},
    {
    "{#FSNAME}":"\/boot",
    "{#FSTYPE}":"ext4"},
    {
    "{#FSNAME}":"\/data",
    "{#FSTYPE}":"ext4"},
    {
    "{#FSNAME}":"\/home",
    "{#FSTYPE}":"ext4"},
    {
    "{#FSNAME}":"\/var",
    "{#FSTYPE}":"ext4"},
    {
    "{#FSNAME}":"\/proc\/sys\/fs\/binfmt_misc",
    "{#FSTYPE}":"binfmt_misc"}]}
    [linux@linux ~]$ zabbix_get -s 127.0.0.1 -p 10050 -k "net.if.discovery"
    {
    "data":[
    {
    "{#IFNAME}":"lo"},
    {
    "{#IFNAME}":"em1"},
    {
    "{#IFNAME}":"em2"}]}
  • tchjts1
    Senior Member
    • May 2008
    • 1605

    #2
    When you say you are testing 2.0 ... what subversion? 2.0.6? 2.0.9?

    Anyway, you should see global regexps under Administration --> General and then the dropdown box "Regular expressions" and there it should look like my below screenshot.

    As for LLD rules, they can take up to an hour to start getting data back once you apply them to a host.
    Attached Files

    Comment

    • kblackwell
      Junior Member
      • Oct 2013
      • 22

      #3
      Sorry, by testing I meant I'm testing our installation of out zabbix server we recently upgraded to 2.0.

      The reg ex page you just sent looks nothing like mine. It's empty. I've attached the image below.

      Is that something I can import from somewhere for network and filesystems?

      Kevin
      Attached Files

      Comment

      • tchjts1
        Senior Member
        • May 2008
        • 1605

        #4
        You upgraded to 2.0.8, not 2.0 There's a difference.

        Hmmm. I am not sure in what part of the upgrade that information is populated from. It is not something that you should have to import as a separate part of the upgrade.

        How did you upgrade? Did you do a compile from source and then use the DB upgrade script, or did you do it in some other fashion?

        Comment

        • kblackwell
          Junior Member
          • Oct 2013
          • 22

          #5
          added the epel repo for centos 6 and installed from there.



          I added 2 reg ex based on the image you posted. files system and network.

          Seems to be populating now.

          Besides those 2, am I missing any other default ones?

          Kevin
          Last edited by kblackwell; 24-10-2013, 18:35. Reason: Update

          Comment

          • tchjts1
            Senior Member
            • May 2008
            • 1605

            #6
            The third one there is for SNMP. But just to be sure you have the other 2 correct, here are screenshots of their details
            Attached Files

            Comment

            Working...