Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Issues with generic_proc agent
#1
Hello,

I use the module_type generic_proc to see if a necessary process on our server is still running.

module_begin
module_name wwwstartsrv
module_type generic_proc
module_exec ps aux | grep -c [w]wwstartsrv
module_end

Everything seems ok and in the console I get that 1 process is running.

Now if the process is stopped I don't get any mention of it in the console? Only the "last contact" keeps counting?
When I look into the xml of the agent (debug = 1) I also see that the module "wwwstartsrv" is actually not in the xml?

When I run ps aux | grep -c [w]wwstartsrv manully i get 1 (if running) or 0 (not running).

If the process is started again it the "last contact" is updated along with the other modules, and the module is also back in de xml file.

Thanks! Smile
 Reply
Messages In This Thread
Issues with generic_proc agent - by siskos - 01-04-2012, 11:01 AM
Re: Issues with generic_proc agent - by siskos - 01-05-2012, 05:52 PM
Re: Issues with generic_proc agent - by tpalacios - 01-06-2012, 09:05 PM


Users browsing this thread: 1 Guest(s)


(c) 2006-2018 Artica Soluciones Tecnol├│gicas. Contents of this wiki are under Create Common Attribution v3 licence. | pandorafms.com | pandorafms.org

Theme © MyBB Themes