how can i read from XML

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
oranzie
Posts: 1
Joined: Thu Jan 31, 2013 4:58 am

how can i read from XML

Post by oranzie »

Hello

We have an XML that has information about the amount of visitors currently in our website
looks like this:

</OneMany_TotalHosts>
- <OneMany_TotalGuests Counter="964">
</One2Many_TotalGuests>
<MultiView_TotalGuests Counter="0" />
- <MultiView_Hosts_HH Counter="3" fly6="2" fly2="1">
<_2 Counter="3" fly6="2" fly2="1" />
</MultiView_Hosts_HH>

what can i use to get a read for section "OneMany_TotalGuests Counter" showing me "964" ?

Thanks !
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: how can i read from XML

Post by slansing »

You could wrap this in php and create a plugin that pulls that data dynamically though variables within. That would be one way to do it, would you like a handful of documentation on the subject?
Locked