[Nagiosplug-devel] [ nagiosplug-Feature Requests-2542428 ] check_versions via NRPE

SourceForge.net noreply at sourceforge.net
Wed Jan 28 08:42:45 CET 2009


Feature Requests item #2542428, was opened at 2009-01-28 08:42
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397600&aid=2542428&group_id=29880

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Priority: 5
Private: No
Submitted By: Wilfried Brunken (df7be)
Assigned to: Nobody/Anonymous (nobody)
Summary: check_versions via NRPE

Initial Comment:
Hello,
wie habe written 3 simple Plugins vor Version checks.
The User can modify it to its own use.

copy this scripts to /usr/local/nagios/libexec
and set executable permission by chmod 755 ...

1.) check_version_plugins

In utils.sh the function "print_revision" prints out
the version of the installed Nagios Plugins:
 ./check_version_plugins
Nagios Plugins 1.4.13

Calling vi NRPE, the Version was send to the Nagios
Server. Entry in nrpe.cfg

command[check_version_plugins]=/usr/local/nagios/libexec/check_version_plugins


In the same Matter, all the 2 next scripts are good
examples for checking versions


2.) check_version_tcp
checks the version of the Plugin check_tcp by calling
it with the --version Option. Only the Line with the
Version was printed.

3.) check_version_perl
check the Version of the Perl-Interpreter, the Version
was printed by perl in the second line.

Write another script for what you need (gcc, make, ...)


73 de DF7BE



   


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397600&aid=2542428&group_id=29880




More information about the Devel mailing list