Parse XML

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
QS1
Posts: 195
Joined: Tue Sep 21, 2010 3:30 pm

Parse XML

Post by QS1 »

Hello,

Is there a way for Nagios to read XML files and then to alert on specific node values? Or lack thereof ?
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: Parse XML

Post by nscott »

There is not currently a way to do that, however writing a plugin for that could be pretty simple. If you are remotely familiar with any modern programming language (at least one that has decent XML library) writing what you ask would be pretty straightforward and probably a pretty short task. However, I did search the exchange but there was not a plugin for your purpose.

If you'd like a guideline on writing a plugin, this is golden:

http://nagiosplug.sourceforge.net/devel ... lines.html
Nicholas Scott
Former Nagios employee
Locked