If High CPU run batch file or restart service.
Posted: Thu Dec 15, 2011 3:29 pm
Hello,
I have installed Nagios XI as a VM which is the lastest centos version for a vm. Don't know what version that is but latest.
We are checking out Nagios since a vendor can not seem to fix tomcat service on one of our critical servers. We need a way to monitor the cpu on a windows 2008 server and it goes above 90 or 95 percent then it automatically restarts the tomcat service. This doesn't sound hard but putting the monitor with the execute a batch file or restart the service must be harder than it sounds. I can not figure out Nagios well enough yet to do basic things and it looks like I am going to the hardest thing.
Does anyone know how to, I am told, tell Nagios with a shell script or anything to use a monitor for CPU that reaches 90 or above to restart a specific service on a server (tomcat service)??
Please step by step since I am new to this and my linux is very rusty...........btw how do you copy a windows file to a Nagios VM?
We would wait for the vendor to fix their application that uses tomcat but that is a pending request for a year now. We are into option 2 which is why not automate the tomcat service restart rather than a person onsite having to do it when we get a high cpu email.
Thanks
I have installed Nagios XI as a VM which is the lastest centos version for a vm. Don't know what version that is but latest.
We are checking out Nagios since a vendor can not seem to fix tomcat service on one of our critical servers. We need a way to monitor the cpu on a windows 2008 server and it goes above 90 or 95 percent then it automatically restarts the tomcat service. This doesn't sound hard but putting the monitor with the execute a batch file or restart the service must be harder than it sounds. I can not figure out Nagios well enough yet to do basic things and it looks like I am going to the hardest thing.
Does anyone know how to, I am told, tell Nagios with a shell script or anything to use a monitor for CPU that reaches 90 or above to restart a specific service on a server (tomcat service)??
Please step by step since I am new to this and my linux is very rusty...........btw how do you copy a windows file to a Nagios VM?
We would wait for the vendor to fix their application that uses tomcat but that is a pending request for a year now. We are into option 2 which is why not automate the tomcat service restart rather than a person onsite having to do it when we get a high cpu email.
Thanks