Page 1 of 1
Parse XML
Posted: Mon Jul 25, 2011 8:37 am
by QS1
Hello,
Is there a way for Nagios to read XML files and then to alert on specific node values? Or lack thereof ?
Re: Parse XML
Posted: Mon Jul 25, 2011 9:22 am
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