Alarm Parameter %6 is empty
-
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_lowOr is there another way to display the used drive letter in the alarm message?
Thanks
hitzi -
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
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