Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. Alarm Parameter %6 is empty

Alarm Parameter %6 is empty

Scheduled Pinned Locked Moved Support
2 Posts 2 Posters 12.6k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H
    H
    hitzi
    wrote on last edited by
    #1

    Hi,

    I check the free space of the filesystem with this parameter FileSystem.Free(F:). This works great.
    But when I define a alarm with the text "File system %6 is low on free space (ony %4GB remains)" parameter %4 is working but parameter %6 is empty. I think should %6 display "F:" if I interpret this tutorial right: https://wiki.netxms.org/wiki/How_to_send_e-mail_notification_when_disk_space_is_low

    Or is there another way to display the used drive letter in the alarm message?

    Thanks
    hitzi

    1 Reply Last reply
    0
    • F
      F
      Filipp Sudanov
      wrote on last edited by
      #2

      In properties of a DCI on Thresholds page there is "Instance name" field. Value from this field goes into the 6-th parameter of the event.

      In event log viewer, if you double-click an event, you'll see event details with all parameters, e.g.:

         "id": 112780,
         "rootId": 0,
         "code": 17,
         "name": "SYS_THRESHOLD_REACHED",
         "timestamp": 1661420446,
         "originTimestamp": 1661420446,
         "origin": 0,
         "source": 5919,
         "zone": 0,
         "dci": 4512,
         "severity": 1,
         "message": " Threshold reached for data collection item \"Free space on file system /\" (Parameter: FileSystem.Free(/); Threshold value: 0; Actual value: 29226643456; instance THIS_IS_INSTANCE)",
         "lastAlarmKey": "DC_THRESHOLD_0x0000171F_0x000011A0",
         "lastAlarmMessage": " Threshold reached for data collection item \"Free space on file system /\" (Parameter: FileSystem.Free(/); Threshold value: 0; Actual value: 29226643456; instance THIS_IS_INSTANCE)",
         "tags": null,
         "parameters": [
            {
               "name": "dciName",
               "value": "FileSystem.Free(/)"
            },
            {
               "name": "dciDescription",
               "value": "Free space on file system /"
            },
            {
               "name": "thresholdValue",
               "value": "0"
            },
            {
               "name": "currentValue",
               "value": "29226643456"
            },
            {
               "name": "dciId",
               "value": "0x000011A0"
            },
            {
               "name": "instance",
               "value": "THIS_IS_INSTANCE"
            },
            {
               "name": "isRepeatedEvent",
               "value": "0"
            },
            {
               "name": "dciValue",
               "value": "29226643456"
            }
         ]
      

      For many events parameters have names and you can also use macros with event names, e.g.  %<instance> instead of %6

      1 Reply Last reply
      0

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      Powered by NodeBB Contributors
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups