status.log and nagios.log/status.sav

Marc Powell mpowell at ena.com
Thu Feb 20 20:01:42 CET 2003


This works for me:

nagios_check_command=/usr/local/nagios/libexec/check_nagios
/usr/local/nagios/var/nagios.log 5 'bin/nagios'

> -----Original Message-----
> From: Mohney, Greg [mailto:GMohney at apacmail.com]
> Sent: Thursday, February 20, 2003 12:42 PM
> To: nagios-users at lists.sourceforge.net
> Subject: RE: [Nagios-users] status.log and nagios.log/status.sav
> 
> I have this problem too, and I think it might have to do with the fact
> that
> I am using mysql
> as a backend for all status information (every single MySQL option
turned
> on
> when I built
> Nagios).  Nagios is running fine, but since it keeps all info in the
> database, it doesnt write a
> status.log.
> 
> Anyone have a clue on a fix for this?  Need to be able to run commands
> from
> the CGIs...
> 
> Greg
> 
> -----Original Message-----
> From: Babak Pasdar [mailto:bpasdar at IGXGlobal.com]
> Sent: Wednesday, February 19, 2003 1:46 PM
> To: nagios-users at lists.sourceforge.net
> Subject: Re: [Nagios-users] status.log and nagios.log/status.sav
> 
> 
> 
> I must have nagios by immaculate conception then, because everything
works
> fine. All my service and host checks are running web itnerface is
> accessible
> and working.
> 
> When I do a ps -ax I get:
> 
>  1530 ? S  0:01 /usr/local/nagios/bin/nagios -d
> /usr/local/nagios/etc/nagios.cfg
> 
> However I dont have status.log running on my system,
> 
> # ls -al
> total 72
> drwxrwxr-x    4 nagios   nagios       4096 Feb 19 19:36 .
> drwxrwxr-x   16 nagios   nagios       4096 Feb 18 16:54 ..
> drwxrwxr-x    2 nagios   nagios       4096 Feb 19 00:00 archives
> prw-rw----    1 nagios   nagios          0 Feb 19 19:36 nagios.cmd
> -rw-r--r--    1 root     root            5 Feb 19 19:36 nagios.lock
> -rw-rw-r--    1 nagios   nagios      20799 Feb 19 19:36 nagios.log
> drwxrwsr-x    2 nagios   nagios       4096 Feb 15 04:18 rw
> -rw-rw-r--    1 nagios   nagios          0 Feb 19 19:36 status.sav
> 
> 
> 
> nagios.cfg config:
> 
> status_file=/usr/local/nagios/var/status.log
> 
> 
> 
> cgi.cfg config:
> 
> nagios_check_command=/usr/local/nagios/libexec/check_nagios
> /usr/local/nagios/var/status.log 5 '/usr/local/nagios/bin/nagios'
> 
> 
> 
> Nagios Startup process:
> 
> #/etc/init.d/nagios restart
> Running configuration check...done
> Stopping network monitor: nagios
> Starting network monitor: nagios
>   PID TTY          TIME CMD
>  6984 ?        00:00:00 nagios
> [root at localhost etc]# find / -name status.log
> [root at localhost etc]#
> 
> as you can see above no status.log generated when nagios starts.
> 
> I would appreciate any help.
> 
> Babak
> 
> Russell Scibetti wrote:
> > If there is no status.log file, then Nagios is not actually running.
It
> > is created on startup and deleted on shutdown of Nagios, leaving
behind
> > nagios.log (trails of state changes) and status.sav (for state
> retention).
> >
> > Russell Scibetti
> >
> > Babak Pasdar wrote:
> >
> > >Question?
> > >
> > >in the process check with the check_nagios function enabled in
cgi.cfg,
> it defaults to /usr/local/nagios/var/status.log.  However I have no
such
> thing.  I touched a file, but nagios deletes it upon exit.  I have two
> choices.  a status.sav file and nagios.log.  Am I missing something?
> > >
> > >Babak
> > >
> > >
> > >-------------------------------------------------------
> > >This SF.net email is sponsored by: SlickEdit Inc. Develop an edge.
> > >The most comprehensive and flexible code editor you can use.
> > >Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day
Trial.
> > >www.slickedit.com/sourceforge
> > >_______________________________________________
> > >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
> > >
> > >
> >
> > --
> > Russell Scibetti
> > Quadrix Solutions, Inc.
> > http://www.quadrix.com
> > (732) 235-2335, ext. 7038
> >
> >
> >
> 
> --
> Babak Pasdar
> Founder/CTO
> IGX Global
> 389 Main St.
> Hackensack, NJ 07601
> www.igxglobal.com
> (201) 498-0555 ext. 2205
> 
> The electronic message that you have received and any attachments are
> solely
> intended for the use of the addressee(s) and may contain information
that
> is
> confidential.
> 
> If you receive this email in error, please advise us by responding to
> NOC at igxglobal.com. You are required to delete the contents and destroy
any
> copies immediately.  IGX Global is not liable for the views expressed
in
> this electronic message or for the consequences of any computer
viruses
> that
> may be unknowingly transmitted within this message.
> 
> This electronic message is also subject to standard
copyright/ownership
> laws. It is not intended to be reproduced, or re-transmitted without
the
> consent of the originator.
> 
> www.igxglobal.com
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: SlickEdit Inc. Develop an edge.
> The most comprehensive and flexible code editor you can use.
> Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
> www.slickedit.com/sourceforge
> _______________________________________________
> 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: SlickEdit Inc. Develop an edge.
> The most comprehensive and flexible code editor you can use.
> Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
> www.slickedit.com/sourceforge
> _______________________________________________
> 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: SlickEdit Inc. Develop an edge.
The most comprehensive and flexible code editor you can use.
Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
www.slickedit.com/sourceforge
_______________________________________________
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