hi gourav
to monitor remote disks/partitionsthrough nagios
you should install nrpe on both nagios server and also on the remote host to
be monitored
and on the remote host edit the nrepe.cfg file
go to the command section
there will be a default eg for command[check_hda1]
edit it with your actaual hardisk values in my case h i have modified it like
this way
command[check_home]=/usr/local/nagios/libexec/check_disk -w 20% -c 1% -p
/dev/cciss/c0d1p1
and on nagios server edit the commands.cfg
add the following commnads (use your remote host ip my case it was
192.168.1.5)
define command{
command_name check_home_partition
command_line /usr/local/nagios/libexec/check_nrpe -H 192.168.1.5 -c
check_home
on the nagios server edit the remotehost.cfg and add the following new
service
on the host section add your remote host details
define host{
use mail-server ; Name of host template
to use
; This host definition
will inherit all variables that are defined
; in (or inherited by)
the linux-server host template definition.
host_name mailserver
alias mailserver
address 192.168.1.5
}
in the service section
define service{
use local-service ; Name of service
template to use
host_name mailserver # (put your remote host
server name here)
service_description Home Disk Space
check_command check_home_partition
notifications_enabled 1
contact_groups erpadmin # put your contact name
here)
}
if you are using a template for copying values
edit the templates.cfg and add your remote host details
define host{
use mail-server ; Name of host template
to use
; This host definition
will inherit all variables that are defined
; in (or inherited by)
the linux-server host template definition.
host_name mailserver
alias mailserver
address 192.168.1.5
}
check for any nagios error by using the command
/usr/local/nagios/bin/./nagios -v /usr/local/nagios/etc/nagios.cfg
if no errors restart the nagios service
now you should monitor remote disks/partitionsthrough nagios
--- On Mon, 15/6/09, Gourav Joshi <[email protected]> wrote:
From: Gourav Joshi <[email protected]>
Subject: Re: [LinuxVadaPav] How to configure Nagios?
To: [email protected]
Date: Monday, 15 June, 2009, 2:08 PM
On Mon, Jun 15, 2009 at 11:25 AM, ashok abraham <ashok...@yahoo. com>
wrote:
>
>
> where exactly you are facing the problem
>
> you can call me on 9892386920 /67490119
>
> regards
>
> ashok
>
> --- On Thu, 11/6/09, cool hem <kehe...@yahoo. co.in <kehem19%40yahoo. co.in>>
> wrote:
>
> From: cool hem <kehe...@yahoo. co.in <kehem19%40yahoo. co.in>>
>
> Subject: Re: [LinuxVadaPav] How to configure Nagios?
> To: linuxvadapav@ yahoogroups. com <linuxvadapav% 40yahoogroups. com>
> Date: Thursday, 11 June, 2009, 5:44 PM
>
>
> hi gaurav
> thanx for the help.I have refer that docs only n configured Nagios.Now i
> want to monitor remote host.But nt able to do it.So pls help me.
>
> --- On Thu, 11/6/09, Gourav Joshi <gouravjoshi@ gmail.com> wrote:
>
> From: Gourav Joshi <gouravjoshi@ gmail.com>
> Subject: Re: [LinuxVadaPav] How to configure Nagios?
> To: linuxvadapav@ yahoogroups. com
> Date: Thursday, 11 June, 2009, 4:27 PM
>
> On Thu, Jun 11, 2009 at 11:48 AM, cool hem <kehe...@yahoo. . co.in> wrote:
>
> >
>
> >
>
> > Hi All
>
> >
>
> > I have installed Nagios in local server, and its working fine.Now i want
> to
>
> > monitor a linux node so is it necessary to install NRPE plugin into each
>
> > remote server which i am going to monitor?and if yes than anyone pls help
> me
>
> > to do so.
>
> >
>
> > Thanx in advance
>
> >
>
> > Hemal
>
> >
>
> > Bollywood news, movie reviews, film trailers and more! Go to
>
> > http://in.movies. yahoo.com/
>
> >
>
> > [Non-text portions of this message have been removed]
>
> >
>
> >
>
> >
>
> visit my site given below and find the doc there.
>
> --
>
> Have a nice time,
>
> Gourav Joshi
>
> Visit me at :- http://www.gouravjo shi.co.in
>
> [Non-text portions of this message have been removed]
>
> Bring your gang together. Do your thing.. Find your favourite Yahoo! group
> at http://in.promos. yahoo.com/ groups/
>
> [Non-text portions of this message have been removed]
>
> Explore and discover exciting holidays and getaways with Yahoo! India
> Travel http://in.travel. yahoo.com/
>
> [Non-text portions of this message have been removed]
>
>
>
Hi Ashok,
I 've a query about nagios. I'm trying to monitor remote disks/partitions
through nagios tell me how can I achieve this?
Thanks in advance.
--
Have a nice time,
Gourav Joshi
Visit me at :- http://www.gouravjo shi.co.in
[Non-text portions of this message have been removed]
Cricket on your mind? Visit the ultimate cricket website. Enter
http://beta.cricket.yahoo.com
[Non-text portions of this message have been removed]