Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#57 check_versions via NRPE

open
nobody
None
5
2009-01-28
2009-01-28
Wilfried Brunken
No

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

Discussion

  • libexec.zip contaiins the 3 scripts

     
    Attachments