check_nrpe

Carroll, Jim P [Contractor] jcarro10 at sprintspectrum.com
Mon Sep 9 20:00:04 CEST 2002


Not sure if this is what you're looking for, but:

command[check_users]=/home/nagios/libexec/check_users 5 10
command[check_load]=/home/nagios/libexec/check_load 5 10 15 20 25 30
command[check_disk]=/home/nagios/libexec/check_disk 80 95
command[check_zombie_procs]=/home/nagios/libexec/check_procs 5 10 Z
command[check_total_procs]=/home/nagios/libexec/check_procs 150 200
command[check_swap]=/home/nagios/libexec/check_swap -w 80% -c 90%
command[check_dns]=/home/nagios/libexec/check_dns -H itdmln15
command[check_log_warn]=/home/nagios/libexec/check_log2 -l /var/adm/messages
-s /home/nagios/.messages_warn.seek -p "WARN|Warn|warn"
command[check_log_err]=/home/nagios/libexec/check_log3 -l /var/adm/messages
-s /home/nagios/.messages_err.seek -p "ERR|Err|err" -n "nrpe"
command[check_log_panic]=/home/nagios/libexec/check_log3 -l
/var/adm/messages -s /home/nagios/.messages_panic.seek -p
"PANIC|Panic|panic"

and from the services.cfg (I won't do them all):

define service{
        host_name                       host1,host2
        use                             icmp
        service_description             Total Users
        contact_groups                  unix-admins
        check_command                   check_nrpe!check_users
        }

That should be plenty to get you going.

jc

> -----Original Message-----
> From: jo smith [mailto:joblow7777 at yahoo.com]
> Sent: Friday, September 06, 2002 7:42 PM
> To: Carroll, Jim P; Nagios-users at lists.sourceforge.net
> Subject: RE: [Nagios-users] check_nrpe
> 
> 
> Oh and maybe a few line from your services.cfg file of
> your server showing the commands that interface/run on
> your client, too (sorry, forgot to ask that in my
> previous email).
> 
> --- "Carroll, Jim P" <jcarro10 at sprintspectrum.com>
> wrote:
> > Take a look at nrpe.cfg on the remote host.  You may
> > have noticed a line
> > that looks like:
> > 
> >    allowed_hosts=127.0.0.1
> > 
> > Modify it to look like:
> > 
> >    allowed_hosts=127.0.0.1,xxx.xxx.xxx.xxx
> > 
> > where xxx.xxx.xxx.xxx is the IP address of your
> > Nagios host.  Remember to
> > restart the nrpe daemon after you've saved this
> > change to nrpe.cfg.
> > 
> > jc
> > 
> > > -----Original Message-----
> > > From: jo smith [mailto:joblow7777 at yahoo.com]
> > > Sent: Friday, September 06, 2002 4:25 PM
> > > To: Nagios-users at lists.sourceforge.net
> > > Subject: [Nagios-users] check_nrpe
> > > 
> > > 
> > > Hi all.
> > > 
> > > Boy, I can't believe I've made it as far as I
> > have. 
> > > Thanks for everybody's help.  Well, another
> > question I
> > > have is this.  I have nrpe running as a standalone
> > > daemon on a remote host.  I've put 5666 into the
> > > /etc/inet/services file (this is a Solaris 8
> > machine).
> > >  On the client, I'm getting this in
> > /var/adm/messages:
> > > 
> > > Sep  6 14:20:59 hostname nrpe[9095]: [ID 381997
> > > daemon.error] Host xxx.xxx.xxx.xxx is not allowed
> > to
> > > talk to us!
> > > 
> > > On the server, I'm seeing this in the Nagios GUI:
> > > 
> > > CHECK_NRPE: Received 0 bytes. Are we allowed to
> > > connect to the host? 
> > > 
> > > What am I doing wrong?
> > > 
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Yahoo! Finance - Get real-time stock quotes
> > > http://finance.yahoo.com
> > > 
> > > 
> > >
> >
> -------------------------------------------------------
> > > This sf.net email is sponsored by: OSDN - Tired of
> > that same old
> > > cell phone?  Get a new here for FREE!
> > >
> >
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> > > _______________________________________________
> > > Nagios-users mailing list
> > > Nagios-users at lists.sourceforge.net
> > >
> >
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> > > 
> > 
> > 
> >
> -------------------------------------------------------
> > This sf.net email is sponsored by: OSDN - Tired of
> > that same old
> > cell phone?  Get a new here for FREE!
> >
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> > _______________________________________________
> > Nagios-users mailing list
> > Nagios-users at lists.sourceforge.net
> >
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Finance - Get real-time stock quotes
> http://finance.yahoo.com
> 


-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390




More information about the Users mailing list