Re: nagios check_ssh, check_oracle via Web

From: Keith Keller (kkeller-usenet_at_wombat.san-francisco.ca.us)
Date: 09/09/04


Date: Wed, 08 Sep 2004 18:12:29 -0700


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2004-09-08, the_dba <tscoltrane@hotmail.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
checkcommands.cfg entry.

> 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
more details.

- --keith

- --
kkeller-usenet@wombat.san-francisco.ca.us
(try just my userid to email me)
AOLSFAQ=http://wombat.san-francisco.ca.us/cgi-bin/fom

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBP638hVcNCxZ5ID8RAjsSAJ0TkQVLqiDSFh5bkYevNYK9QxyuBwCeNRob
3zCOZrjop8pexMvB3dAm9Qs=
=wght
-----END PGP SIGNATURE-----



Relevant Pages

  • Re: VGA vs DVI connection to monitor
    ... :>digital interface sends a specific discrete value to the ... and then the monitor has to using the ... :>>On the setup with two DVI ... analog is a second-order effect. ...
    (rec.photo.digital)
  • Re: VGA vs DVI connection to monitor
    ... :>digital interface sends a specific discrete value to the ... and then the monitor has to using the ... analog is a second-order effect. ... identical data from the graphics device to the monitor. ...
    (rec.photo.digital)
  • Re: 2960 Port Monitoring
    ... I have setup port monitoring on other ... Cisco switches and believe I used the web interface to do so as I am ... monitor session 1 destination interface Fa0/5 ...
    (comp.dcom.sys.cisco)
  • Re: VGA vs DVI connection to monitor
    ... :>to find out for myself if there is any visible difference with this monitor. ... image or not, use the DVI connection. ... is that with age the VGA interface will drift far more ... than will the DVI interface. ...
    (rec.photo.digital)
  • Re: Unchecked_Conversion and task pointer.
    ... you should definitely use an interface. ... > entry call, and they will work as an entry in that case. ... > with such a procedure that you can do with an entry (other than requeue it; ... similarly to class-wide subroutines there could be class-wide entries. ...
    (comp.lang.ada)