Re: nagios check_ssh, check_oracle via Web
From: Keith Keller (kkeller-usenet_at_wombat.san-francisco.ca.us)
Date: Wed, 08 Sep 2004 18:12:29 -0700
-----BEGIN PGP SIGNED MESSAGE-----
On 2004-09-08, the_dba <email@example.com> wrote:
> I'd like to be able to monitor
> hosts (Linux, Solaris, and Windows) using check_ssh THROUGH the WEB
> interface (it works fine from the command-line).
Well, the web interface only really displays the results of checks that
have been configured; you can't specify a custom check through the web.
> I'm missing
> something simple. I'm running on Linux (2.4.21) with Apache (2.0.50).
> In /usr/local/nagios/etc/services.cfg, I find FTP, HTTP, POP3, and
> SMTP "service_descriptions". I'm hoping that a SSH
> service_description is also available.
Is it in your checkcommands.cfg? If not, you need to add it, then add
the appropriate entry in services.cfg. Adding an entry to
checkcommands.cfg is usually pretty easy--all you need is a made-up
command_name and the correct command_line. Since you seem to have a
command line that works, I'd suggest adjusting that to a
> Since I find check_ssh in the
> libexec directory (/usr/local/nagios/libexec/check_ssh), I'm figuring
> that I don't need to write my own plugin/etc. Nonetheless, I'm
> clueless on how to proceed. Please help me get a clue.
You don't need to write the plugin (not if it already works through the
command line!), but you do need to add the right entry to checkcommands.cfg.
Otherwise you can't add it to services.cfg, nagios won't monitor it, and
the web interface can't show you the results of what nagios isn't
monitoring. It's not trivial, but it's not difficult, either.
If you have further trouble, you should post back to this thread with
(try just my userid to email me)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
-----END PGP SIGNATURE-----