Re: [Nagios-users] parsing tac.cgi output

2013-01-04 Thread Andy Moran
Thanks for the suggestions! --Andy On Jan 3, 2013, at 3:09 AM, Páll Guðjón Sigurðsson wrote: > Hi andy, > > as for the tac.cgi i think your best bet is to parse the html. > > Alternatively if you have pynag installed on the nagios server you can use > this script: > > import pynag.Parsers

Re: [Nagios-users] parsing tac.cgi output

2013-01-03 Thread Páll Guðjón Sigurðsson
Hi andy, as for the tac.cgi i think your best bet is to parse the html. Alternatively if you have pynag installed on the nagios server you can use this script: import pynag.Parsers s = pynag.Parsers.status() s.parse() all_services = s.data['servicestatus'] unhandled_problems = [service for se