Monitor a Linux Machine

Scott Miller srmiller at interbel.net
Thu May 1 23:39:48 CEST 2008


Thanks everyone for your help.  

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg really is
my best friend.  Found all the errors, and now it's happy.

Thanks for all the help.

Scott Miller

-----Original Message-----
From: nagios-users-bounces at lists.sourceforge.net
[mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Marc Powell
Sent: Thursday, May 01, 2008 3:17 PM
To: nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] Monitor a Linux Machine



> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
> bounces at lists.sourceforge.net] On Behalf Of Scott Miller
> Sent: Thursday, May 01, 2008 3:43 PM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Monitor a Linux Machine
> 
> I have nagios 3.x installed as per the quick install guide, and it
seems to
> be working fine with the default config, looking only at localhost.
> 


> 2.  Create Service Definitions:
> 
> /usr/local/nagios/etc/objects/servers.cfg (in same file as above)
> 
> define service{
> 	use		generic-service	; Inherit default values from a
> template
> 	host_name		remotehost
> 	service_description	HTTP
> 	check_command		check_ping!200.0,20%!600.0,60%
> 	}

Not relevant to your problem (likely), but PING is probably a better
service_description.

 
> Running configuration check... CONFIG ERROR!  Restart aborted.  Check
your
> Nagios configuration.

Run /path/to/nagios -v /path/to/nagios.cfg to check your Nagios
configuration. It will detail the cause of the error.

> The directions say I can have the Host definition and Service
definition in
> any object configuration file specified by a cfg_file directive.

That's correct.

> It's been a few years since I've messed with nagios, but I was certain
there
> was more to do than the above.  I've read through the docs and just
don't
> see where I went wrong.
> 
> Anyone have any pointers or suggestions?

I have a suspicion but verifying your config will be better than
guessing.

--
Marc

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javao
ne
_______________________________________________
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


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
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