[Nagiosplug-help] RE: [RE: [ check_nrpe plugin error => (No output returned from plugin)] Help needed ]
Lawrence, Lynne
LLawrence at osc.uscg.mil
Wed Dec 22 08:01:08 CET 2004
> -----Original Message-----
> From: nagiosplug-help-admin at lists.sourceforge.net
> [mailto:nagiosplug-help-admin at lists.sourceforge.net]On Behalf
> Of Shobhan
> Challa
> Sent: Wednesday, December 22, 2004 7:39 AM
> To: nagiosplug-help at lists.sourceforge.net
> Subject: [Nagiosplug-help] RE: [RE: [ check_nrpe plugin error => (No
> output returned from plugin)] Help needed ]
>
>
> Hi Lawrence,
>
> I've incorporated your changes in the config file and it
> works fine without
> any errors.
>
> 1) I've noticed another problem. I've added two more services (total
> services now:3 ) in the services.cfg as follows:
>
>
> define service{
> use generic-service
> ; Name of
> service template to use
> host_name Linux2
> service_description check
> check_period 24x7
> max_check_attempts 15
> normal_check_interval 5
> retry_check_interval 1
> check_command
> check_nrpe!check_disk!80%!80%!/dev/hda9
> contact_groups linux-admins
> notification_interval 120
> notification_period 24x7
> notification_options c,r
> register 1
> }
> define service{
> use generic-service
> ; Name of
> service template to use
> host_name Linux2-0
> service_description check-ssh
> check_period 24x7
> max_check_attempts 15
> normal_check_interval 5
> retry_check_interval 1
> check_command
> check_nrpe!check_ssh!192.168.100.125
> contact_groups linux-admins
> notification_interval 120
> notification_period 24x7
> notification_options c,r
> register 1
> }
>
> define service{
> use generic-service
> ; Name of
> service template to use
> host_name Linux2-1
> service_description check-users
> check_period 24x7
> max_check_attempts 15
> normal_check_interval 5
> retry_check_interval 1
> check_command check_nrpe!check_users!4!5
> contact_groups linux-admins
> notification_interval 120
> notification_period 24x7
> notification_options c,r
> register 1
> }
>
> I've added the relevant host information to hosts.cfg and
> hostgroups.cfg and
> restarted NAGIOS.
>
> Tailing the /var/log/messages on the Nagios host shows that
> the nrpe client
> is performing checks for "check-disk" and "check-users"
> services and not for
> "chec-ssh" service.
> Any idea why is it so..??
If what you are trying to accomplish with the check_ssh check is whether
sshd is running on host Linux2-0, you don't need to run it through nrpe.
Nrpe is only used to run checks on the monitored system - disk and user
checks have to be run on the monitored system.
Ssh, on the other hand, is a network service that can be monitored remotely
from your management station (the system running Nagios) using check_ssh.
Typically, the service definition would define the check command as:
check_command check_ssh
and have the command defined something like the following:
define command {
command_name check_ssh
command_line $USER1$/check_ssh %HOSTADDRESS%
}
>
> 2) How do I make Nagios to check the services every 5 minutes
> of every 15
> minutes. Currently the services are checked every 1 hour (looking at
> /var/log/messages).
Your service checks look like they are set up to run every 5 minutes
(assuming the interval_length in nagios.cfg is set to 60 - you might want to
check that out). Are you sure that the checks are not running? On my
system, I don't get log messages each time a service check runs. What does
your web interface tell you?
>
> Regards
> --Shobhan
><snip>
>
More information about the Help
mailing list