Page 3 of 4

Re: (No output on stdout) stderr:

Posted: Tue Dec 30, 2014 2:38 pm
by abrist
Can you query other performance counters?

Re: (No output on stdout) stderr:

Posted: Tue Dec 30, 2014 10:14 pm
by deepshikha20
PFA as requested.

Re: (No output on stdout) stderr:

Posted: Tue Dec 30, 2014 10:18 pm
by deepshikha20
I have tried few but didn't get any output.

Re: (No output on stdout) stderr:

Posted: Fri Jan 02, 2015 12:48 am
by Box293
I believe your issues are with your nagios object definition files.

For example:

Code: Select all

define host{
        host_name       fghi        ; The name we're giving to this host
        alias           ggggg       ; A longer name associated with the host
        address         10.40.10.2     ; IP address of the host
        hostgroups      servers
        address         10.40.1.33        ; IP address of the host
        check_period            24x7            ; By default, Windows servers are monitored round the clock
        check_interval          5               ; Actively check the server every 5 minutes
        retry_interval          1               ; Schedule host check retries at 1 minute intervals
        max_check_attempts      10              ; Check each server 10 times (max)
        check_command           check-host-alive        ; Default command to check if servers are "alive"
        notification_period     24x7            ; Send notification out at any time - day or night
        notification_interval   30              ; Resend notifications every 30 minutes
        notification_options    d,r             ; Only send notifications for specific host states
        contact_groups          admins          ; Notifications get sent to the admins by default

        }
You have the address defined twice.

Also,

Code: Select all

define hostgroup{
        hostgroup_name  sgxnet-servers ; The name of the hostgroup
        alias           sgxnet Servers ; Long name of the group
        members         jklm, fghi
        }
There is no host called "jklm" however there is one called "jklmn". I assume you've changed some entries to hide the real names.

What is the output from:

Code: Select all

/usr/local/nagios/bin/nagios -vvv /usr/local/nagios/etc/nagios.cfg

Re: (No output on stdout) stderr:

Posted: Fri Jan 02, 2015 2:01 am
by deepshikha20
Hi,

There were no errors.PFB the output below.
yes, i have used different names to hide the real names.

host_name]:/usr/local/nagios/etc/objects >/usr/local/nagios/bin/nagios -vvv /usr/local/nagios/etc/nagios.cfg

Nagios Core 4.0.8
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 08-12-2014
License: GPL

Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Processing object config file '/usr/local/nagios/etc/objects/commands.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/contacts.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/timeperiods.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/templates.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/localhost.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/windows.cfg'...
Read object config files okay...

Running pre-flight check on configuration data...

Checking objects...
Checked 29 services.
Checked 4 hosts.
Checked 3 host groups.
Checked 0 service groups.
Checked 1 contacts.
Checked 1 contact groups.
Checked 24 commands.
Checked 5 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 4 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: 0
Total Errors: 0

Things look okay - No serious problems were detected during the pre-flight check.

Thanks.

Regards,
Deepshikha

Re: (No output on stdout) stderr:

Posted: Fri Jan 02, 2015 10:45 am
by scottwilkerson
We have noticed something in several other cases, that may solve your problems

Can you edit your nagios.cfg changing

Code: Select all

enable_environment_macros=1
Then restart nagios

Code: Select all

service nagios restart
Let us know if this resolves the issue

Thanks

Re: (No output on stdout) stderr:

Posted: Mon Jan 05, 2015 3:21 am
by deepshikha20
This also didn't help.

It remains the same.

Regards,
Deepshikha

Re: (No output on stdout) stderr:

Posted: Mon Jan 05, 2015 3:39 am
by Box293
Did you resolve the problems I highlighted with your definition files?

For example you have the address defined twice in one of your host definitions.

Re: (No output on stdout) stderr:

Posted: Tue Jan 06, 2015 10:03 pm
by deepshikha20
yes, i have tried all the solutions which you have told.

Thanks.

Regards,
Deepshikha

Re: (No output on stdout) stderr:

Posted: Wed Jan 07, 2015 5:55 pm
by sreinhardt
Just to be sure, could you post the three cfg files one more time please?