(No output on stdout) stderr:
Re: (No output on stdout) stderr:
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.
"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:
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:
I have tried few but didn't get any output.
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: (No output on stdout) stderr:
I believe your issues are with your nagios object definition files.
For example:
You have the address defined twice.
Also,
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:
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
}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
}What is the output from:
Code: Select all
/usr/local/nagios/bin/nagios -vvv /usr/local/nagios/etc/nagios.cfgAs 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:
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
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:
We have noticed something in several other cases, that may solve your problems
Can you edit your nagios.cfg changing
Then restart nagios
Let us know if this resolves the issue
Thanks
Can you edit your nagios.cfg changing
Code: Select all
enable_environment_macros=1Code: Select all
service nagios restartThanks
-
deepshikha20
- Posts: 33
- Joined: Fri Oct 31, 2014 1:19 am
Re: (No output on stdout) stderr:
This also didn't help.
It remains the same.
Regards,
Deepshikha
It remains the same.
Regards,
Deepshikha
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: (No output on stdout) stderr:
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.
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:
yes, i have tried all the solutions which you have told.
Thanks.
Regards,
Deepshikha
Thanks.
Regards,
Deepshikha
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: (No output on stdout) stderr:
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.