Help with Prog Service

chirag.parikh at thomsonreuters.com chirag.parikh at thomsonreuters.com
Thu Feb 24 12:13:02 EST 2011


Hi,

I need to monitor a ZPOOL status on a Solaris system using Prog Service
where I can issue a ssh command such as:

 

"ssh <hostname> zpool status -xv" 

 

and the result should be "all pools are healthy". If its any otherwise
or output contain any error on the Zpool, service should go red and
alarm should trigger. I'm just not sure how to implement this using Prog
Service. I mean how to use Pluck and/or Expect or what else. Could you
please provide a sample of the code how would this be achieved? Thanks
in advance.

 

-Chirag.



More information about the Arguslist mailing list