With this little Python script you have the ability to check your Veritas servicegroups and
the status of your volumegroup. Please use ./ -h to get an overview of the needed parameters.
In all cases you need the exact name of the servicegroup which is shown by the output of
/opt/VRTS/bin/hastatus -sum and of course you need the exact name of the volumegroup.

Author: Frank Reimer
Version: 0.3
Creation Date: 2012-08-09

Version History:

0.3 => 2012-08-14: Fixing servicegroup check – removing re.compile for Python compatibility
0.2 => 2012-08-10: Adding check for plexes in volumegroup
0.1 => 2012-08-09: Script creation


If you want to use this script, your Nagios user needs sudo privileges to perform this script. Start visudo and add the following lines at the end of the file:

<nagiosuser> ALL=(ALL) NOPASSWD:/opt/VRTS/bin/hastatus
<nagiosuser> ALL=(ALL) NOPASSWD:/sbin/vxprint
<nagiosuser> ALL=(ALL) NOPASSWD:/<path>/<to>/

Tested with the following Python versions:
– 2.4.3 on RHEL 5.7 with SFHA 5.1 SP1RP1
– 2.6.6 on RHEL 6.2 with SFHA 6.0 RP1


Version 0.3 => Download on Nagios Exchange

Version 0.3 => Checkout on GitHub