check_procs not functioning well
anil kamath
amk_dude at yahoo.com
Wed May 19 11:01:39 CEST 2004
Hi swati,
seen your contents, as i had mentioned earlier that
even if the check procs points at a remote host it
hasnt got the rights to check procs unless you do
check_by_ssh or run a nrpe daemon on remote host and
make check_nrpe check the proc status.
the proc status is okay b'coz it checks the local
procs and not the procs running on the remote host. A
simple example is try creating the proc check for
another host and u will get the same result. I have
configured check_procs to monitor procs on a remote
host and it works fine.
U need to install the nrpe daemon on the remote host
and also the plugins. you need to configure nrpe.cfg
and also start the daemon as an xinetd service.
check_command
check_nrpe!check_total_procs!150!200
}
this is from services.cfg.
define command{
command_name check_local_procs
command_line $USER1$/check_procs -w $ARG1$
-c $ARG2$ -s $ARG3$
}
this is for checking local procs even if it points to
a emote host.
define command{
command_name check_nrpe
command_line $USER1$/check_nrpe -H
$HOSTADDRESS$ -c $ARG1$
}
this entry is for checking procs and other services on
a remote host.
reply back if it works fine
Regards,
anil
--- Swati Srivastava <swati220781 at hotmail.com> wrote:
> Hi Anil!
> Thanks a lot for your help.
> I have configured check_procs and it is showing me
> the results now.
> But since you said that i need to install nrpe on
> the remote host, is it a
> possibility that the results i'm getting are not
> correct? I mean, how come
> Nagios shows OK status for check_procs?
> Also, regarding the syntax of check_procs, i have
> got this link which helped
> me:
> http://www.totkat.org/pages/nconf_commands.shtml
> But I'm not very clear with the -s,-a and -C
> options.It will be very helpful
> if you can elaborate them.
> Thanks.
> Swati
>
> >From: anil kamath <amk_dude at yahoo.com>
> >To: Swati Srivastava <swati220781 at hotmail.com>
> >CC: nagios-users at lists.sourceforge.net
> >Subject: Re: [Nagios-users] check_procs not
> functioning well
> >Date: Tue, 18 May 2004 03:39:49 -0700 (PDT)
> >
> >hi swati,
> >
> >firstly you need to configure nrpe daemon on the
> >remote host to check_procs. else it will monitor
> the
> >prrocs on the localhost only. if you want to
> monitor
> >procs you need to compile nrpe on the remote host
> and
> >install the nrpe daemon as a standalone or an
> xinetd
> >service later from the nagios host you throw
> commands
> >using check_nrpe to the nrpe daemon which will give
> >you the procs running on the remote host.
> >do you need the syntax for check_procs ?????
> >or is it okay with the config..
> >
> >reply
> >anil
> >--- Swati Srivastava <swati220781 at hotmail.com>
> wrote:
> > > 1) I have configured nagios check_procs command
> to
> > > check Nagios process by
> > > supplying the process id with which it is
> > > running.Only when i see the host
> > > details, i get the status information as OK-1
> > > processes running...whereas,
> > > on all the other options (eg.service detail,
> status
> > > overview, etc.), it
> > > shows a warning for the corresponding entry. In
> > > service detail, it states
> > > WARNING-0 processes running with ppid-15904.
> > >
> > > 2) Also, I have configured check_procs to
> monitor a
> > > process on some other
> > > host by supplying the process id. That host is
> Up.
> > > But it always shows this
> > > WARNING-0 processes running with PPID=2177.
> > > I want to monitor a particular process on this
> > > host,like, how many child
> > > processes it spawns,etc.This host is in our LAN.
> > >
> > > Kindly help,
> > > Thanks in advance,
> > > Swati
> > >
> > >
>
>_________________________________________________________________
> > > Best of Indian handicrafts.
> > >
> http://www.fabmall.com/affiliatehtml/redir/nl8.asp
> > > At MSN Shopping.
> > >
> > >
> > >
> > >
>
>-------------------------------------------------------
> > > This SF.Net email is sponsored by:
> SourceForge.net
> > > Broadband
> > > Sign-up now for SourceForge Broadband and get
> the
> > > fastest
> > > 6.0/768 connection for only $19.95/mo for the
> first
> > > 3 months!
> > >
>
>http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
> > > _______________________________________________
> > > 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
> >
> >
> >
> >
> >
> >__________________________________
> >Do you Yahoo!?
> >SBC Yahoo! - Internet access at a great low price.
> >http://promo.yahoo.com/sbc/
>
>
_________________________________________________________________
> Best of Indian handicrafts.
> http://www.fabmall.com/affiliatehtml/redir/nl8.asp
> At MSN Shopping.
>
__________________________________
Do you Yahoo!?
SBC Yahoo! - Internet access at a great low price.
http://promo.yahoo.com/sbc/
-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
_______________________________________________
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