Help with Prog Service
Jeremy Kister
argus-02 at jeremykister.com
Thu Feb 24 23:12:34 EST 2011
On 2/24/2011 12:13 PM, chirag.parikh at thomsonreuters.com wrote:
> I need to monitor a ZPOOL status on a Solaris system using Prog Service
> where I can issue a ssh command such as:
I solved this by installing the included argus-agent on the machine with
the zfs.
# copy the argus-agent from the argus host
scp <argus_host>:/usr/local/sbin/argus-agent /usr/local/sbin
# set up the argus-agent in /etc/services
echo -e "argus-agent\t164/tcp" >> /etc/services
# set up the argus-agent in inetd.conf
echo -e
"argus-agent\tstream\ttcp\tnowait\troot\t/usr/local/sbin/argus-agent\targus-agent"
>> /etc/inetd.conf
pkill -HUP inetd
# if the host is solaris 10, run:
inetconv
# verify it's accepting sockets on port 164 (you telnet and type "zpool
<poolname>)
telnet localhost 164
Trying localhost...
Connected to localhost.
Escape character is '^]'.
zpool rpool
ONLINE
Connection to localhost closed by foreign host.
once you get this far, you just go to your argus config, and something like:
Group "machine" {
Service Ping
Service Agent/zpool {
arg: pool_name
expect: ONLINE
}
}
make sure any packet filters you might have set up between the two hosts
allow port 164/tcp.
that should get you all set.
--
Jeremy Kister
http://jeremy.kister.net./
More information about the Arguslist
mailing list