Page 4 of 4

Re: Nagios crashed. Re-building again.

Posted: Thu Mar 19, 2015 12:01 pm
by scottwilkerson
If you continue to have trouble can you post your

Code: Select all

/etc/httpd/conf.d/nagiosql.conf
Thanks

Re: Nagios crashed. Re-building again.

Posted: Fri Mar 20, 2015 9:18 am
by prateekagr1988
The previous issues are mostly resolved.

However, I have the below errors now:
1. Apply configuration fails. Verification of nagios config says below:
"
.
.
.
Warning: Contact 'nagiosadmin' has no service notification time period defined!
Warning: Contact 'nagiosadmin' has no host notification time period defined!
Warning: Host recovery notification option for contact 'nagiosadmin' doesn't make any sense - specify down and/or unreachable options as well
Warning: Service recovery notification option for contact 'nagiosadmin' doesn't make any sense - specify critical and/or warning options as well
Checked 63 contacts.
Checking contact groups...
Checked 9 contact groups.
Checking service escalations...
Checked 0 service escalations.
Checking service dependencies...
Checked 0 service dependencies.
Checking host escalations...
Checked 0 host escalations.
Checking host dependencies...
Checked 0 host dependencies.
Checking commands...
Checked 143 commands.
Checking time periods...
Checked 72 time periods.
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 14
Total Errors: 0

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

2. check_http fails only for windows machines, but works for solaris/redhat machines
3. Alerts cleared in XI, are not cleared in spectrum
4. We have the feeling checks in XI immediatly send an alert, instead of waiting as per the set policy

Re: Nagios crashed. Re-building again.

Posted: Fri Mar 20, 2015 12:13 pm
by lmiltchev
1. Apply configuration fails.
If you are referring to the 14 warnings, these are not errors and will not prevent applying configuration. Are you still getting the "ERROR 500: Internal Server Error" when you run the "reconfigure_nagios.sh" script from the CLI? You haven't given us any of the requested info below:
service nagios status
service ndo2db status
service mysqld status
service crond restart
service crond status
ps -ef | grep cron
tail -20 /var/log/cron
chage nagios -l
chage apache -l
getenforce
ll /usr/local/nagiosxi/scripts/nagiosql*
tail -50 /var/log/httpd/error_log
cat /etc/httpd/conf.d/nagiosql.conf
2. check_http fails only for windows machines, but works for solaris/redhat machines
Can you show us the actual check that you are running along with the output of it (one that is failing and one that is working)?
3. Alerts cleared in XI, are not cleared in spectrum
What is "spectrum"? Can you elaborate?
4. We have the feeling checks in XI immediately send an alert, instead of waiting as per the set policy
Go to:
* Reports->State History, and post us a screenshot of this page, showing the "problem" service in hard non-OK state
* Reports->Notifications, and post us a screenshot of this page, showing the notifications sent around the same time
* CCM->Services-><your service>->View Text Config (diskette icon) and show us the service definition