check_by_ssh troubles

Andy Harrison ah43 at httpsite.com
Mon Mar 24 21:49:51 CET 2003


-----BEGIN PGP SIGNED MESSAGE-----


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
On 24-Mar-2003, nny wrote message "RE: [Nagios-users] check_by_ssh troubles"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> how are you calling that service check from your services.cfg or
> whatever file you have specified it in?
> 

Like so:


services.cfg:
define service {
host_name                      bsd.nachoz.com
service_description            ssh_disk_root
check_command                  ssh_disk_root
use                            generic-service
max_check_attempts             3
normal_check_interval          30
retry_check_interval           1
check_period                   24x7
notification_interval          120
notification_period            workhours
notification_options           w,u,c,r
contact_groups                 system-ops
}

checkcommands.cfg
define command {
command_name                   ssh_disk_root
command_line                   /usr/local/libexec/nagios/check_by_ssh -H
$HOSTADDRESS$ -C '/usr/local/libexec/nagios/check_disk -w 15% -c 5% -m /' 
}



> 
> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net
> [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Andy
> Harrison
> Sent: Monday, March 24, 2003 2:24 PM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] check_by_ssh troubles
> 
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> 
> Any idea why this works:
> 
> (2)[nagios] [~] > /usr/local/libexec/nagios/check_by_ssh -H
> bsd.nachoz.com -C '/usr/local/libexec/nagios/check_disk -w 15% -c 5% -m
> /' DISK OK - [879406 kB (93%) free on /]
> 
> 
> But nagios simply shows status "Warning!" and status information
> "Aborted by 
> user!"
> 
> I'm definitely testing it as the nagios user.  I can see that the
> process is running as nagios:
> 
> (7)[nagios] [~] > ps -uax | grep nagios.cfg | grep -v grep
> nagios      4406  0.0  0.2  2360 2096  ??  Ss   Wed04PM   4:46.08
> /usr/local/bin/nagios -d /usr/local/etc/nagios/nagios.cfg
> 
> 
> and I can definitely log in without a pw from the nagios server when
> using the nagios login: (8)[nagios] [~] > ssh bsd.nachoz.com Last login:
> Wed Mar 19 16:14:11 2003 from xxxxxxxxxxxx Copyright (c) 1980, 1983,
> 1986, 1988, 1990, 1991, 1993, 1994
>         The Regents of the University of California.  All rights
> reserved.
> 
> FreeBSD 5.0-RELEASE (ANDY) #0: Mon Feb 17 00:09:28 EST 2003
> 
> Welcome to FreeBSD!
> 
> Before seeking technical support, please use the following resources:
> 
> o  Security advisories and updated errata information for all releases
> are
>    at http://www.FreeBSD.org/releases/ - always consult the ERRATA
> section
>    for your release first as it's updated frequently.
> 
> o  The Handbook and FAQ documents are at http://www.FreeBSD.org/ and,
>    along with the mailing lists, can be searched by going to
>    http://www.FreeBSD.org/search/.  If the doc distribution has
>    been installed, they're also available formatted in /usr/share/doc.
> 
> If you still have a question or problem, please take the output of
> `uname -a', along with any relevant error messages, and email it as a
> question to the questions at FreeBSD.org mailing list.  If you are
> unfamiliar with FreeBSD's directory layout, please refer to the hier(7)
> man page.  If you are not familiar with man pages, type `man man'.
> 
> You may also use sysinstall(8) to re-enter the installation and
> configuration utility.  Edit /etc/motd to change this login
> announcement.
> 
>> 
> 
> 
> 
> 
> Any clues?
> 
> 
> 
> 
> ~~ 
> Andy Harrison
> ah##@httpsite.com
> ICQ: 123472  AIM/Y!: AHinMaine
> homepage: http://www.nachoz.com
> 
> -----BEGIN PGP SIGNATURE-----
> Version: PGP 6.5.8
> 
> iQCVAwUBPn9pblPEkLgodAWVAQHJjQP+L2e3Utn3dw3H1iG47SYQycHFu6w0tyrb
> 7IFq+BLRzBub0spIRskd1hvwjvrH/Wsclz+DLto6drOEtnmcYzLBt/OmkFD+OIKl
> 00h2DR+yyfLw/dPtIPExoVGP+bAcKrkC9WY8RZqyQT8DhHWR4l09LZkPg2qH67bL
> 3rI9esNrDjQ=
> =/EsH
> -----END PGP SIGNATURE-----
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf _______________________________________________
> 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
> 

~~ 
Andy Harrison
ah##@httpsite.com
ICQ: 123472  AIM/Y!: AHinMaine
homepage: http://www.nachoz.com

-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.8

iQCVAwUBPn9vblPEkLgodAWVAQFgegP/Sl22trlIy0m8OeVaNYBFa+n80z8tRuxd
7eP/YICrW0bCsPXCnIjefS9vfI4wrhrVwgH2BZUGx3M0nNJjjgzrETYbft/I6qqY
Udsf/Y7Jh18hO39D8O2a5JSsdozLDfORygQ6QnM8Kj3jX4jW2oOfZkZgbZNOLIje
IoXvMbFaB5E=
=yo2l
-----END PGP SIGNATURE-----


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
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