Newbie: chech_ssh not defined

Josiah Ritchie jritchie at bible.edu
Tue Oct 5 20:42:04 CEST 2004


Thanks all, I've got this stuff up and running. A whole new world. :-) I'm
really very impressed with Nagios. The time it will save me and the
improvement in reporting that it will provide will be phenomenal.

Thanks,
JSR/

On Tue, 5 Oct 2004 09:26:45 -0500
"Marc Powell" <marc at ena.com> wrote:

> ----Original Message----
> From: nagios-users-admin at lists.sourceforge.net
> [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Josiah
> Ritchie
> Sent: Tuesday, October 05, 2004 7:43 AM To:
> nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Newbie: chech_ssh not defined
> 
> > I'm messing around with Nagios and am really impressed. Most of what
> I've
> > done has simply been editing the default config. I tried to add a
> service
> > check like this:  
> > 
> > # Service definition
> > define service{
> >         use                             generic-service         ; Name
> of
> > service template to use
> > 
> >         host_name                       nathan
> >         service_description             SSH
> >         is_volatile                     0
> >         check_period                    24x7
> >         max_check_attempts              3
> >         normal_check_interval           5
> >         retry_check_interval            1
> >         contact_groups                  admins
> >         notification_interval           120
> >         notification_period             24x7
> >         notification_options            c,r
> >         check_command                   check_ssh
> >         }
> > 
> > and when I check the config, get this:
> > 
> > Error: Service check command 'check_ssh' specified in service 'SSH'
> for host
> > 'nathan' not defined anywhere! 
> > 
> > Where do I need to define this. I thought maybe in my miscommands.cfg,
> but
> > that wasn't it. 
> 
> Every check_command that you use must be defined somewhere, typically in
> [mis]commands.cfg. There are not example command definitions created for
> all the plugins so there will be some you need to create yourself,
> especially if/when you start creating your own checks. This is one of
> those it seems. Your command definition will look something like: 
> 
> # 'check_ssh' command definition
> define command{
>         command_name    check_ssh
>         command_line    $USER1$/check_ssh $HOSTADDRESS$ -t 30
>         }
> 
> You can of course modify it to suit your needs. Run
> /usr/local/nagios/libexec/check_ssh --help to see what command line
> arguments it understands and their meaning.
> 
> --
> Marc


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list