#!/usr/bin/perl

#
# OpServices Tecnologia da Informacao
# This plugin for OpMon returns the curent
# versions for the packages needed to
# monitor this server
#
# Version 1.0
#

use strict;

my $rpm = `which rpm`;
chomp $rpm;


my $opplugins = `$rpm -q opmon-opservices-plugins`;
my $client = `$rpm -q opmon-nrpe`;
my $plugins = `$rpm -q opmon-nagios-plugins`;

chomp $opplugins;
chomp $client;
chomp $plugins;

print "OK - Versions $opplugins, $client, $plugins\n";
exit(0);
