Nagios 1.2 - Status Log warning
Tom Brown
tom.brown at goodtechnology.com
Fri Nov 19 18:13:50 CET 2004
I have managed to get around this issue by having my check_nagios command
actually run through nrpe - So my local machine actually checks its own
Nagios status through nrpe - Not sure why this approach worked but i am now
fully up and running.
thanks for showing me in the direction of the check_nagios_db plugin
thanks
> Hi - Yes thats the db script i was using and i have now managed to get it
> working on the command line and i no longer see these warning from within
> the GUI
>
> However even though i get a response that there are X nagios processes
> running and the status log was last updated 5 seconds ago within the GUI
>
> eg
>
> ../libexec/check_nagios
> Nagios OK: located 1 processes, program status updated 14 seconds ago
>
> however within the GUI for the 'Nagios' service this results in a warning
> being shown although the string in the GUI text says OK - for example
>
> Nagios
>
>
> WARNING 18-11-2004 10:40:23 0d 1h 3m 31s 3/3 Nagios OK: located 1
> processes, program status updated 12 seconds ago
>
>
> I'm sorry if this seems trivial but if i can get this fixed i'm sorted!!
>
> thanks
>
> ----- Original Message -----
> From: "Marc Powell" <marc at ena.com>
> To: "Tom Brown" <tom.brown at goodtechnology.com>; "Kyriacos Sakkas"
> <sakkas at unimedcy.com>
> Cc: <nagios-users at lists.sourceforge.net>
> Sent: Wednesday, November 17, 2004 7:11 PM
> Subject: RE: [Nagios-users] Nagios 1.2 - Status Log warning
>
>
> Does this help you? --
> http://www.nagios.org/faqs/viewfaq.php?faq_id=131&expand=false&showdesc=
> false
>
> --
> Marc
>
>> -----Original Message-----
>> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
>> admin at lists.sourceforge.net] On Behalf Of Tom Brown
>> Sent: Wednesday, November 17, 2004 1:03 PM
>> To: Tom Brown; Kyriacos Sakkas
>> Cc: nagios-users at lists.sourceforge.net
>> Subject: Re: [Nagios-users] Nagios 1.2 - Status Log warning
>>
>> Just installed a test system EXECTLY the same as my current live setup
> but
>> without storing stuff within MySQL. I do not get the log warning so it
>> seems
>> that when i put state data into MySQL and then use the check_nagios
> plugin
>> i
>> get bad data.
>>
>> So i guess i try and fix the plugin or don't use MySQL -
>>
>> thanks
>>
>> > thanks - I'm on RedHat and i've messed with that download just now
> but
>> > can't seem to get it to wprk just yet. Prolly a bit of a mix of a
>> > debianism and me insisting on putting everything i compile into /opt
> no
>> > doubt. Anyway i still get the same error but i think you may well be
>> onto
>> > something with the fact that i store stuff into MySQL - I'm starting
> to
>> > think this was a bad idea!! It took lots of fiddling to get it to
> build
>> in
>> > the first place.
>> >
>> > thanks again for what you have suggested though
>> >
>> > Tom
>> >
>> >> First me apologies for leaving out some important bits on my last
>> email,
>> >> that wrong password bit was in fact the last step to solving this
> for
>> me.
>> >> The full solution I found was at:
>> >>
>> >> http://wiki.tryphon.org/LinuxWiki/NagiosInstall
>> >>
>> >> and especially in this download:
>> >>
>> >> http://wiki.tryphon.org/LinuxWiki/nagios-debian-patch.tar.gz
>> >>
>> >> This might be Debian specific, but that download contains a file
> called
>> >> check_nagios_db, which I can verify works for me.
>> >> Regards,
>> >>
>> >> K.Sakkas
>> >>
>> >>
>> >> Tom Brown wrote:
>> >>> thanks for the tip - just checking my cgi conf and alas no - The
> user,
>> >>> pass and DB's are all correct as like you i'm using a DB backend
> for
>> >>> storing all this.
>> >>>
>> >>>
>> >>> Don't know if this will help, but I was getting something similar
> on
>> my
>> >>> system (Debian Testing) until I figured out that this was trying
> to
>> >>> check the nagios server state from a flat file, which I had not
>> >>> configured, as my system was setup to use DB for this. The problem
> was
>> a
>> >>> misspelled DB password in CGI.conf
>> >>>
>> >>> Tom Brown wrote:
>> >>> | Hi - sorry to repost but i can't seem to figure this one out by
>> >>> myself.
>> >>> |
>> >>> | i am still getting warnings from nagios relating to the fact
> that my
>> >>> | status.log has not updated for a long time
>> >>> |
>> >>> | [1100693016] SERVICE ALERT:
> hostname;Nagios;WARNING;SOFT;1;Nagios
>> >>> problem:
>> >>> | located 2 processes, status log updated 595 seconds ago
>> >>> | [1100693076] SERVICE ALERT: hostname;Nagios;OK;SOFT;2;Nagios ok:
>> >>> located 2
>> >>> | processes, status log updated 55 seconds ago
>> >>> |
>> >>> | I have the default settings for the check_nagios command from
> within
>> >>> the
>> >>> | cgi.cfg and in my plugins setup i have the command configured as
>> >>> |
>> >>> | # Service definition
>> >>> | define service{
>> >>> | use generic-service
> ;
>> Name
>> >>> of
>> >>> | service template to use
>> >>> |
>> >>> | host_name hostname
>> >>> | service_description Nagios
>> >>> | is_volatile 0
>> >>> | check_period 24x7
>> >>> | max_check_attempts 3
>> >>> | normal_check_interval 5
>> >>> | retry_check_interval 1
>> >>> | contact_groups linux-admins
>> >>> | notification_interval 120
>> >>> | notification_period 24x7
>> >>> | notification_options w,u,c,r
>> >>> | check_command check_nagios
>> >>> | }
>> >>> |
>> >>> | Anyone have any pointers to what i'm doing wrong? I have altered
>> >>> pretty much
>> >>> | all the parameters but nothing seems to help.
>> >>> |
>> >>> | thanks
>> >>> |
>> >>> |
>> >>> |>Hi
>> >>> |>
>> >>> |>I monitor Nagios from itself and i keep seeing warnings like
> this
>> >>> |>
>> >>> |>Nagios problem: located 2 processes, status log updated 352
> seconds
>> >>> ago
>> >>> |>
>> >>> |>And then after a 'period' of time this log will update again -
> Is
>> >>> there
>> >>> |>any way i can either make this log update more frequently or
> change
>> >>> this
>> >>> |>timeout?
>> >>> |>
>> >>> |>thanks
>> >>> |>
>> >>> |>
>> >>> |>
>> >>> |>
>> >>> |>-------------------------------------------------------
>> >>> |>This SF.Net email is sponsored by:
>> >>> |>Sybase ASE Linux Express Edition - download now for FREE
>> >>> |>LinuxWorld Reader's Choice Award Winner for best database on
> Linux.
>> >>> |>http://ads.osdn.com/?ad_id=5588&alloc_id=12065&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
>> >>> |>
>> >>> |
>> >>> |
>> >>> |
>> >>> |
>> >>> |
>> >>> | -------------------------------------------------------
>> >>> | This SF.Net email is sponsored by: InterSystems CACHE
>> >>> | FREE OODBMS DOWNLOAD - A multidimensional database that combines
>> >>> | robust object and relational technologies, making it a perfect
> match
>> >>> | for Java, C++,COM, XML, ODBC and JDBC.
> www.intersystems.com/match8
>> >>> | _______________________________________________
>> >>> | 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: InterSystems CACHE
>> >>> FREE OODBMS DOWNLOAD - A multidimensional database that combines
>> >>> robust object and relational technologies, making it a perfect
> match
>> >>> for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
>> >>> _______________________________________________
>> >>> 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: InterSystems CACHE
>> > FREE OODBMS DOWNLOAD - A multidimensional database that combines
>> > robust object and relational technologies, making it a perfect match
>> > for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
>> > _______________________________________________
>> > 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: InterSystems CACHE
>> FREE OODBMS DOWNLOAD - A multidimensional database that combines
>> robust object and relational technologies, making it a perfect match
>> for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
>> _______________________________________________
>> 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: InterSystems CACHE
> FREE OODBMS DOWNLOAD - A multidimensional database that combines
> robust object and relational technologies, making it a perfect match
> for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
> _______________________________________________
> 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: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
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