Parse XML files

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
vidyagana
Posts: 106
Joined: Fri Mar 25, 2005 10:35 am

Parse XML files

Post by vidyagana »

Hi Alex,

I have the following requirement - One of the applications in our server has some jobs running, one job every day and one job during weekends and for each job an xml file is generated. One way for me to set up alerts is to check every new file in that directory for the words "failed" or "successful" and take actions accordingly. But I want to know if the following is possible - I want to know if I will be able to open every new file and email me with the values in certain xml tags like "Job name", "Status" etc.

Please let me know.

Thanks.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

HostMonitor cannot check "every new file", it can monitor some specific file. You don't know name of the files you need to monitor?

Regards
Alex
vidyagana
Posts: 106
Joined: Fri Mar 25, 2005 10:35 am

Post by vidyagana »

No, I dont know the name of the file because it is randomly generated by the backup exec application. All I know is that the file names will be something like BEX<some number>.xml

Thanks.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Probably you can move old (checked) files into another directory? So folder will contain only new file?

Regards
Alex
vidyagana
Posts: 106
Joined: Fri Mar 25, 2005 10:35 am

Post by vidyagana »

That is a remote possibility but if I can achieve that how will I parse the output xml file to email values of specific tags.

Thanks.
User avatar
Marcel DAVID
Posts: 5
Joined: Tue Jan 10, 2006 9:10 am
Location: France

Just an advice

Post by Marcel DAVID »

Hello !



By experience (the worst way ...), I know it's more complicated than testing the toggle "OK/ERROR" in a backup log file to be sure that the job has done what you have expected. In some situations, a backup may save quite nothing and report that all is working fine.

If you do not want to read carefully the logs, every day, you have to build an application which will report you : number of files saved, number of bytes saved, every message, comment, warning that is not normally present and so on ... This is not, in my opinion, a question that HM may solve.

But, but, but ...

Some streamers are reporting, using SNMP, some interesting status and counters. The one who is very interesting is : does the streamer nead a cleaning operation. I can't tell you the number of streamers I've encountered that are NEVER cleaned ! This, I'll monitor with HM.

I apologized for this post : it's not directly related to HM. I'm a newbee with HM but I've a too (?) long experience in IT ...

Regards
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Sorry, I missed second question.
HostMonitor does not provide built-in XML parser. So, you need some external utility.

Regards
Alex
Post Reply