NetXMS Support Forum

Please login or register.

Login with username, password and session length

Author Topic: Displaying timestamp of DCI in dashboard  (Read 97 times)

szabolcs

  • Newbie
  • *
  • Posts: 3
    • View Profile
Displaying timestamp of DCI in dashboard
« on: October 10, 2019, 01:51:33 pm »

Hello,

I'm monitoring backups with a Push DCI through snmp traps. So the snmp trap fires an action script runs that pushes the result to the DCI.
Now I would like to visualize this by displaying the timestamp of the dci + result, but don't really know where should I start with this.
Currently I have a DCI that has the name of the backup job and stores the result.

What I would like to achieve is something like this:
BackupJobName |Last Backup Result datetime |Last Backup Result

Any guidance where and how to start is much appreciated.
Logged

Filipp Sudanov

  • Global Moderator
  • Newbie
  • *****
  • Posts: 13
    • View Profile
Re: Displaying timestamp of DCI in dashboard
« Reply #1 on: October 10, 2019, 04:50:58 pm »

In the action script you can push the result to several DCIs, so you can store the result to one DCI and timestamp to another.
Displaying on dashboard is easier, if you have a DCI with the same name present on several nodes - in that case you can create a DCI Summary Table and use it in a Dashboard, specifying a container, where the needed nodes are located.
If all DCIs are on a single node, then it would be necessary to create a gauge for each DCI manually. Or it could be possible to create a table DCI on that node and populate data into it by script, but it would require quite complicated scripting.
Logged

szabolcs

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Displaying timestamp of DCI in dashboard
« Reply #2 on: October 10, 2019, 05:45:37 pm »

Dear Filipp, thank you very much, think I can get this work now with, had a lack of understanding of the time functions but think I got it now. :)
Logged

szabolcs

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Displaying timestamp of DCI in dashboard
« Reply #3 on: October 11, 2019, 09:38:45 am »

One more thing :)
Is it possible to somehow display the date/time on dashboard when stored as uint? Tried to play around with formatting string %tY for example, but all i get is invalid format.
Logged