Migrating from Nagios 2.0b4 to Nagios 3.03
Robert Yeo
r.yeo at utah.edu
Thu Jan 8 16:55:59 CET 2009
I am actually having a very similar problem.
We had a power failure that lasted longer then our UPSs could take on Dec
24th. Nagios went down and when it came back up, some services have not
been checked since. It is not everything... just a select few.
After a round of troubleshooting I decided to narrow down what was not
getting check so I moved retention.dat and made a clean spool directory as
well. Now I have about 40 services out of 308 stuck in pending.
This is an example config for one of the services.
# 'check_nrpe' command definition
define command {
command_name check_nrpe
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ -u
}'
define service{
hostgroup_name Nmw_Servers,Wi_Servers
host_name
!Nmw_104_010_Finearts_Dataserver,!Nmw_104_020_Nagios,Dgh_000_012_FairUse,Art
_104_014_FilmServer,!Nmw_104_092_Nagios3
service_description Check CPU Load
use medium-high-priority-service
check_command check_nrpe!check_load
}
define service{
name medium-high-priority-service
use generic-service
check_period 24x7
max_check_attempts 5
normal_check_interval 5
retry_check_interval 2
contact_groups nagiosadmin
notification_options c,r,f
notification_interval 180
notification_period extendedworkhours
register 0
}
define service{
name generic-service
active_checks_enabled 1
passive_checks_enabled 1
parallelize_check 1
obsess_over_service 0
check_freshness 0
notifications_enabled 1
event_handler_enabled 1
flap_detection_enabled 1
failure_prediction_enabled 1
process_perf_data 1
retain_status_information 1
retain_nonstatus_information 1
is_volatile 0
register 0
}
Nagios 3.0.6 on 10.4.11 OSX.
Check CPU Load is returning fine from some boxes, others it is not. It
always returns correctly from the command line. I have tried manually
forcing a check from the cgis with debug turned on (-1, high verbosity) and
it never even shows up in the debug log as an attempt.
Any suggestions would be greatly appreciated.
Robert Yeo
On 12/30/08 1:22 AM, "Thomas Guyot-Sionnest" <dermoth at aei.ca> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 29/12/08 12:07 PM, Deborah Martin wrote:
>> Hi,
>>
>> I'm using Suse 10 / Nagios 3.03.
>>
>> I have migrated all of my .cfg files across to Nagios 3.03 and all seems to
>> work well except that, I still have all the host
>> checks still pending on nagios 3.03. But on Nagios 2.0b4, all the hosts have
>> a status of up. (Each version runs on it's own dedicated box.)
>>
>> I only define service checks such as an ssh check per host to ensure a host
>> is up (ping isn't allowed)
>>
>> Is this a known behaviour difference between the versions ? Do I need to
>> make some changes to this new version ?
>>
>> Any pointers / ideas would be much appreciated.
>
> Probably something wrong with your host settings like check/retry
> interval, missing check command or any option that can control check
> execution.
>
> It's possible that checks weren't executing in your 2.x setup and what
> you saw as "up" was a very old state.
>
> Otherwise post your host config, including any needed template.
>
> - --
> Thomas
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFJWdoz6dZ+Kt5BchYRAlxJAKDs6uI2t9xSAxjJh5hMRkWC7IoEOACeMYJ9
> 1dv9RkbDzk6K6Jk+48+X4ik=
> =vaLJ
> -----END PGP SIGNATURE-----
>
> ------------------------------------------------------------------------------
> _______________________________________________
> 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
------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
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