Nagios 4.0.2 Error out

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
cesar.garza
Posts: 80
Joined: Mon Aug 19, 2013 3:14 pm

Nagios 4.0.2 Error out

Post by cesar.garza »

Hey guys
just wanna know is there any bugs in the Nagios Core 4.0.2 ? because i just install 4.0.2 and able to pull the nagios page. When i tried to upload some host and services, and restart the nagios, it went smoothly. BUT on the UI, i am not able to see my host and services. I checked the logs and found this and then i google it where i got that there is a bug in the 4.0.2.
Thanks

Code: Select all

[1386085200] wproc:   early_timeout=0; exited_ok=1; wait_status=32512; error_code=0;
[1386085200] wproc:   stderr line 01: /bin/sh: 1: /bin/mail: not found
[1386085200] wproc:   stderr line 02: /usr/bin/printf: write error: Broken pipe
[1386087601] Caught SIGTERM, shutting down...
[1386087601] Successfully shutdown... (PID=6618)
[1386087601] Event broker module 'NERD' deinitialized successfully.
[1386087601] Nagios 4.0.2 starting... (PID=17441)
[1386087601] Local time is Tue Dec 03 16:20:01 UTC 2013
[1386087601] LOG VERSION: 2.0
[1386087601] qh: Socket '/usr/local/nagios/var/rw/nagios.qh' successfully initialized
[1386087601] qh: core query handler registered
[1386087601] nerd: Channel hostchecks registered successfully
[1386087601] nerd: Channel servicechecks registered successfully
[1386087601] nerd: Channel opathchecks registered successfully
[1386087601] nerd: Fully initialized and ready to rock!
[1386087601] wproc: Successfully registered manager as @wproc with query handler
[1386087601] wproc: Registry request: name=Core Worker 17442;pid=17442
[1386087601] wproc: Registry request: name=Core Worker 17445;pid=17445
[1386087601] wproc: Registry request: name=Core Worker 17444;pid=17444
[1386087601] wproc: Registry request: name=Core Worker 17443;pid=17443
[1386087601] Successfully launched command file worker with pid 17446
[1386087979] Caught SIGTERM, shutting down...
[1386087979] Successfully shutdown... (PID=17441)
[1386087979] Event broker module 'NERD' deinitialized successfully.
[1386087979] Nagios 4.0.2 starting... (PID=17607)
[1386087979] Local time is Tue Dec 03 16:26:19 UTC 2013
[1386087979] LOG VERSION: 2.0
[1386087979] qh: Socket '/usr/local/nagios/var/rw/nagios.qh' successfully initialized
[1386087979] qh: core query handler registered
[1386087979] nerd: Channel hostchecks registered successfully
[1386087979] nerd: Channel servicechecks registered successfully
[1386087979] nerd: Channel opathchecks registered successfully
[1386087979] nerd: Fully initialized and ready to rock!
[1386087979] wproc: Successfully registered manager as @wproc with query handler
[1386087979] wproc: Registry request: name=Core Worker 17609;pid=17609
[1386087979] wproc: Registry request: name=Core Worker 17610;pid=17610
[1386087979] wproc: Registry request: name=Core Worker 17611;pid=17611
[1386087979] wproc: Registry request: name=Core Worker 17612;pid=17612
[1386087979] Successfully launched command file worker with pid 17613
[1386088057] EXTERNAL COMMAND: ENABLE_SVC_NOTIFICATIONS;localhost;HTTP
[1386091578] Auto-save of retention data completed successfully.
[1386095178] Auto-save of retention data completed successfully.
[1386098778] Auto-save of retention data completed successfully.

abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios 4.0.2 Error out

Post by abrist »

That log snippet looks fine. What was the issue of concern in this log?
Could you also post the output of:

Code: Select all

tail -25 /var/log/httpd/error_log
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
cesar.garza
Posts: 80
Joined: Mon Aug 19, 2013 3:14 pm

Re: Nagios 4.0.2 Error out

Post by cesar.garza »

this is what i got from my apache2 error.log . This is pretty new server so i have only this amount of log.

Code: Select all

[Tue Dec 03 05:57:55 2013] [notice] Apache/2.2.22 (Ubuntu) configured -- resuming normal operations
[Tue Dec 03 05:58:58 2013] [notice] caught SIGTERM, shutting down
[Tue Dec 03 05:59:03 2013] [notice] Apache/2.2.22 (Ubuntu) configured -- resuming normal operations
[Tue Dec 03 05:59:06 2013] [notice] caught SIGTERM, shutting down
[Tue Dec 03 05:59:07 2013] [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.8 with Suhosin-Patch configured -- resuming normal operations
[Tue Dec 03 06:13:14 2013] [notice] Graceful restart requested, doing restart
[Tue Dec 03 06:13:14 2013] [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.8 with Suhosin-Patch configured -- resuming normal operations

cesar.garza
Posts: 80
Joined: Mon Aug 19, 2013 3:14 pm

Re: Nagios 4.0.2 Error out

Post by cesar.garza »

Nagios is only showing localhost information right now even though i have added hostgroups and services. I tried ( /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg ) and didnt get any errors.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios 4.0.2 Error out

Post by abrist »

Could you post that output (of the verify)? You may not have included the new config files in the nagios.cfg.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
cesar.garza
Posts: 80
Joined: Mon Aug 19, 2013 3:14 pm

Re: Nagios 4.0.2 Error out

Post by cesar.garza »

Code: Select all

root@backup-nagios01:/usr/local/nagios/etc#
root@backup-nagios01:/usr/local/nagios/etc#
root@backup-nagios01:/usr/local/nagios/etc# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg                                                 
Nagios Core 4.0.2
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 11-25-2013
License: GPL

Website: http://www.nagios.org
Reading configuration data...
   Read main config file okay...
   Read object config files okay...

Running pre-flight check on configuration data...

Checking objects...
        Checked 242 services.
Warning: Host 'prod-activemq01' has no default contacts or contactgroups defined!
Warning: Host 'prod-activemq02' has no default contacts or contactgroups defined!
Warning: Host 'prod-api-gen01' has no default contacts or contactgroups defined!
Warning: Host 'prod-api-gen02' has no default contacts or contactgroups defined!
Warning: Host 'prod-api-gen03' has no default contacts or contactgroups defined!
Warning: Host 'prod-api-gen04' has no default contacts or contactgroups defined!
Warning: Host 'prod-api-gen05' has no default contacts or contactgroups defined!
Warning: Host 'prod-api-gen06' has no default contacts or contactgroups defined!
Warning: Host 'prod-api01' has no default contacts or contactgroups defined!
Warning: Host 'prod-api02' has no default contacts or contactgroups defined!
Warning: Host 'prod-api03' has no default contacts or contactgroups defined!
Warning: Host 'prod-cass01' has no default contacts or contactgroups defined!
Warning: Host 'prod-cass02' has no default contacts or contactgroups defined!
Warning: Host 'prod-cass03' has no default contacts or contactgroups defined!
Warning: Host 'prod-cass04' has no default contacts or contactgroups defined!
Warning: Host 'prod-cass05' has no default contacts or contactgroups defined!
Warning: Host 'prod-cass06' has no default contacts or contactgroups defined!
Warning: Host 'prod-cass07' has no default contacts or contactgroups defined!
Warning: Host 'prod-cass08' has no default contacts or contactgroups defined!
Warning: Host 'prod-epp01' has no default contacts or contactgroups defined!
Warning: Host 'prod-epp02' has no default contacts or contactgroups defined!
Warning: Host 'prod-epp03' has no default contacts or contactgroups defined!
Warning: Host 'prod-epp04' has no default contacts or contactgroups defined!
Warning: Host 'prod-epp05' has no default contacts or contactgroups defined!
Warning: Host 'prod-graphite01' has no default contacts or contactgroups defined!
Warning: Host 'prod-mysql01' has no default contacts or contactgroups defined!
Warning: Host 'prod-pce01' has no default contacts or contactgroups defined!
Warning: Host 'prod-pce02' has no default contacts or contactgroups defined!
Warning: Host 'prod-pce03' has no default contacts or contactgroups defined!
Warning: Host 'prod-pce04' has no default contacts or contactgroups defined!
Warning: Host 'prod-pce05' has no default contacts or contactgroups defined!
Warning: Host 'prod-redis01' has no default contacts or contactgroups defined!
Warning: Host 'prod-repose01' has no default contacts or contactgroups defined!
Warning: Host 'prod-repose02' has no default contacts or contactgroups defined!
Warning: Host 'prod-sam-iad01' has no default contacts or contactgroups defined!
Warning: Host 'prod-sam-iad02' has no default contacts or contactgroups defined!
Warning: Host 'prod-sam-iad03' has no default contacts or contactgroups defined!
Warning: Host 'prod-sam-iad04' has no default contacts or contactgroups defined!
Warning: Host 'prod-sam-linux01' has no default contacts or contactgroups defined!
Warning: Host 'prod-svc-gen01' has no default contacts or contactgroups defined!
Warning: Host 'prod-svc-gen02' has no default contacts or contactgroups defined!
Warning: Host 'prod-svc-gen03' has no default contacts or contactgroups defined!
Warning: Host 'prod-watchdog-handles' has no default contacts or contactgroups defined!
Warning: Host 'prod-webserver' has no default contacts or contactgroups defined!
        Checked 45 hosts.
        Checked 17 host groups.
        Checked 0 service groups.
        Checked 1 contacts.
        Checked 1 contact groups.
        Checked 67 commands.
        Checked 5 time periods.
        Checked 0 host escalations.
        Checked 0 service escalations.
Checking for circular paths...
        Checked 45 hosts
        Checked 0 service dependencies
        Checked 0 host dependencies
        Checked 5 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 44
Total Errors:   0

Things look okay - No serious problems were detected during the pre-flight check
root@backup-nagios01:/usr/local/nagios/etc#
Attachments
nagios.cfg
Nagios.cfg file here
(43.54 KiB) Downloaded 427 times
cesar.garza
Posts: 80
Joined: Mon Aug 19, 2013 3:14 pm

Re: Nagios 4.0.2 Error out

Post by cesar.garza »

I have modified in the nagios.cfg file and seems like its good. But not sure why hosts are not showing on the nagios UI.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios 4.0.2 Error out

Post by abrist »

1) Have you set up a new UI user, or are you using the nagiosadmin account?
2) Have you configured any services on these hosts? If not, you may want to configure at the very least a ping check.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
cesar.garza
Posts: 80
Joined: Mon Aug 19, 2013 3:14 pm

Re: Nagios 4.0.2 Error out

Post by cesar.garza »

abrist wrote:1) Have you set up a new UI user, or are you using the nagiosadmin account?
2) Have you configured any services on these hosts? If not, you may want to configure at the very least a ping check.
I am using nagiosadmin account and i have setup services.cfg and hostgroups.cfg too.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios 4.0.2 Error out

Post by lmiltchev »

How did you restart nagios service - did you use "stop/start", "restart" or "reload'? You can probably zip up the entire "/usr/local/nagios/etc/" directory and PM it to any of us on the Nagios tech team for a review.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked