Viewing Open Problems from the Command Line
Posted: Tue Apr 03, 2012 8:28 pm
Is there an easy way to view open problems (host and service) via the command line? I've reviewed this list http://old.nagios.org/developerinfo/ext ... ndlist.php but didn't see anything that would dump out any current host and service problems. My end goal is to pipe a list of host and service problems back into ACKNOWLEDGE_SVC_PROBLEM so a filtered number of alerts can be acked from the command line. My issue is getting the <service_description> (of which we have a ton) for any service that's in a hard state.
I'm using NagiosXI and also have the backend API installed, but that doesn't have a list of just the open problems, though there is a massive Current Service Status. I'm trying to avoid having to transform that XML, though it could be used if there's no alternative.
Thanks!
Bryant
I'm using NagiosXI and also have the backend API installed, but that doesn't have a list of just the open problems, though there is a massive Current Service Status. I'm trying to avoid having to transform that XML, though it could be used if there's no alternative.
Thanks!
Bryant