(No output on stdout) stderr:

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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: (No output on stdout) stderr:

Post by abrist »

Can you query other performance counters?
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.
deepshikha20
Posts: 33
Joined: Fri Oct 31, 2014 1:19 am

Re: (No output on stdout) stderr:

Post by deepshikha20 »

PFA as requested.
Attachments
cgi.cfg
cgi.cfg
(12.1 KiB) Downloaded 517 times
nagios.cfg
nagios.cfg
(44.74 KiB) Downloaded 460 times
resource.cfg
resource.cfg
(1.31 KiB) Downloaded 456 times
deepshikha20
Posts: 33
Joined: Fri Oct 31, 2014 1:19 am

Re: (No output on stdout) stderr:

Post by deepshikha20 »

I have tried few but didn't get any output.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: (No output on stdout) stderr:

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
deepshikha20
Posts: 33
Joined: Fri Oct 31, 2014 1:19 am

Re: (No output on stdout) stderr:

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: (No output on stdout) stderr:

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
deepshikha20
Posts: 33
Joined: Fri Oct 31, 2014 1:19 am

Re: (No output on stdout) stderr:

Post by deepshikha20 »

This also didn't help.

It remains the same.

Regards,
Deepshikha
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: (No output on stdout) stderr:

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
deepshikha20
Posts: 33
Joined: Fri Oct 31, 2014 1:19 am

Re: (No output on stdout) stderr:

Post by deepshikha20 »

yes, i have tried all the solutions which you have told.

Thanks.

Regards,
Deepshikha
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: (No output on stdout) stderr:

Post by sreinhardt »

Just to be sure, could you post the three cfg files one more time please?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked