08-19-2014 07:25 AM
Hello,
IF the resouces didn't probe in VCS startup and if you go and start the resource manually? would VCS will probe the resouce manually? Or would it show as not probed.
How about the hares -state?
Solved! Go to Solution.
08-19-2014 09:33 AM
08-19-2014 10:39 AM
08-19-2014 12:15 PM
Hi..
Two Questions,
Where do i find the monitering script to analyze this?
2.If i want to change the attribute value of a resource i.e wants to make a oracle resource as a critical then how to proceed?
Thanks,
Allaboutunix
08-19-2014 08:52 PM
Monitoring script is located by default in 2 folders
/opt/VRTSagents/ha/bin/<AgentName>/<AgentNameAgent>
/opt/VRTSvcs/bin/CustomAgents/
however monitor process or program can be kept in any folder with appropriate permissions ... & full path can be defined in main.cf ... for e.g
Application myapp_app2(
StartProgram="/usr/sbin/myapp start"
StopProgram="/usr/sbin/myapp stop"
CleanProgram="usr/sbin/myapp force stop"
MonitorProgram="/usr/local/bin/myappMonitor all"
MonitorProcesses={ "myapp1" , "myapp2" }
Question 2 is completely unrelated to original post however following would be steps
# haconf -makerw
# hares -modify <resource_name> Critical 1
# haconf -dump -makero
make sure you are clear with dependencies defined when you are setting critical 1 for any resources. VCS admin guides is the perfect source to understand the concepts.
G
08-20-2014 01:05 AM
08-19-2014 09:33 AM
08-19-2014 10:39 AM
08-19-2014 12:15 PM
Hi..
Two Questions,
Where do i find the monitering script to analyze this?
2.If i want to change the attribute value of a resource i.e wants to make a oracle resource as a critical then how to proceed?
Thanks,
Allaboutunix
08-19-2014 08:52 PM
Monitoring script is located by default in 2 folders
/opt/VRTSagents/ha/bin/<AgentName>/<AgentNameAgent>
/opt/VRTSvcs/bin/CustomAgents/
however monitor process or program can be kept in any folder with appropriate permissions ... & full path can be defined in main.cf ... for e.g
Application myapp_app2(
StartProgram="/usr/sbin/myapp start"
StopProgram="/usr/sbin/myapp stop"
CleanProgram="usr/sbin/myapp force stop"
MonitorProgram="/usr/local/bin/myappMonitor all"
MonitorProcesses={ "myapp1" , "myapp2" }
Question 2 is completely unrelated to original post however following would be steps
# haconf -makerw
# hares -modify <resource_name> Critical 1
# haconf -dump -makero
make sure you are clear with dependencies defined when you are setting critical 1 for any resources. VCS admin guides is the perfect source to understand the concepts.
G
08-20-2014 01:05 AM
08-26-2014 06:56 AM
Thank you alll. It is much clear now.