On Sep 10, 2011, at 7:24 PM, dan (ddp) wrote: > I have a bad python script (ossecctl) that does certain ossec related > tasks. One of them checks on the status of ossec agents. In nrpe I > have check_agents setup to run "ossecctl status agents" and if an > agent is not connected it exits 1 (I think, it's a nagios warning) and > lists the bad agents. > I keep meaning to clean it up a bit to be a bit smarter (check a list > to see if the agent is mobile and is allowed to be disconnected, alert > at critical after X minutes, etc.). I just haven't gotten around to > it. > Another change I keep meaning to make is having it check the agent > status directly instead of relying on ossec-control.
Any chance you'd share the script? I've been meaning to learn Python.. :P --------------------------- Jason 'XenoPhage' Frisvold [email protected] --------------------------- "Any sufficiently advanced magic is indistinguishable from technology." - Niven's Inverse of Clarke's Third Law
