Reading in values from a file

Started by bulwer, April 26, 2013, 06:12:54 PM

Previous topic - Next topic

bulwer

I'm trying to convert what someone else has done for PRTG. We use Spiceworks as our Helpdesk system and I want to get a display of open and unassigned calls into our dashboard. Using this link http://community.spiceworks.com/how_to/show/733-how-to-monitor-spiceworks-tickets-using-prtg

, I have got the following info out of Spiceworks and into a txt file:

tickets_new_total:0:Total new tickets - 0
tickets_open_AlistairMann:3:Open tickets for Alistair Mann - 3
tickets_open_DavidBulwer:3:Open tickets for David Bulwer - 3
tickets_open_SteveChapman:13:Open tickets for Steve Chapman - 13
tickets_open_total:45:Total open tickets - 45
tickets_overdue_total:12:Total overdue tickets - 12
tickets_unassigned_total:26:Total unassigned tickets - 26

I am struggling to figure out how to get these figures into NetXMS as DCI - It appears to me that ExternalParameters could be the way to go but I'm struggling to get my head around it - can anyone please give me any pointers?

Many thanks,

Dave

Victor Kirhenshtein

Hi!

I think that ExternalParametersProvider could be better solution in that case. You can create script which will create output like

tickets_new_total=0
tickets_open_AlistairMann=3
tickets_open_DavidBulwer=3
tickets_open_SteveChapman=13
tickets_open_total=45
tickets_overdue_total=12
tickets_unassigned_total=26

and then add to nxagentd.conf:

ExternalParametersProvider = <your_script>:<polling_interval>

Then you'll see each output line as a new parameter for the node.

Best regards,
Victor


bulwer

After lots of hair pulling over what turned out to be a path issue for the cmd file, that worked perfectly - thanks Victor!