Forum Discussion

Andrew_Cropley's avatar
9 years ago

Custom Monitoring Scripts

Greetings All..  i have a Solaris 10 cluster running VCS 5.0  and i observed an odd behaviour

I have a number of APPs under VCS control and for monitoring, the ones written in ksh work fine.

I have one that a developer just wrote in bash and when i run it manually on the command line i do get the proper return codes (100/110) but VCS is just unhappy and says its  unknown (as if it werent gettting the return code at all)

is there any restriction on the custom scripts, specifically, will bash not work?  i know ksh does and worse case, i will look to covert this gentleman's code if needed.

thanks

  • There is no restriction on the custom scripts - you can run any shell, including bash, perl and executables.

    Your issue is probably environment as specifically I don't believe the Application agent in 5.0 runs the profile of the user - i.e. the application agent runs "su user" where as in 5.1 it runs "su - user".

    Mike

  • Hello

     

    Have you run the script exactly as VCS would run it (you can usually see what parameters were passed to it if you check the logs). There might be an inconsistency in what you're using to what VCS is.

     

    Also, was this working and it stopped? 

  • There is no restriction on the custom scripts - you can run any shell, including bash, perl and executables.

    Your issue is probably environment as specifically I don't believe the Application agent in 5.0 runs the profile of the user - i.e. the application agent runs "su user" where as in 5.1 it runs "su - user".

    Mike