Page 1 of 1

Monitoring Engine won't start

Posted: Tue Jul 09, 2013 10:15 am
by fyakin
I am having issue with Nagios XI.

The monitoring enginee won't start

"No lock file found in /usr/local/nagios/var/nagios.lock

I attached the snapshot result/logs from the nagios configuration files showing the error

Thanks

Francis

Re: Monitoring Engine won't start

Posted: Tue Jul 09, 2013 11:53 am
by slansing
Can you do the following and report the output:

Navigate to CCM > Tools > Write Config Tool. Then click the verification buttons from top to bottom. Please share the output that is returned to the page.

Re: Monitoring Engine won't start

Posted: Wed Jul 10, 2013 11:34 am
by fyakin
Hi

Here is the output from the verify

Error: Contact 'Francis' has no service notification commands defined!
Error: Contact 'Francis' has no host notification commands defined!
Error: Contact 'Hemant' has no service notification commands defined!
Error: Contact 'Hemant' has no host notification commands defined!
Error: Contact 'Mahsa' has no service notification commands defined!
Error: Contact 'Mahsa' has no host notification commands defined!
Error: Contact 'Mark' has no service notification commands defined!
Error: Contact 'Mark' has no host notification commands defined!
Error: Contact 'Michael' has no service notification commands defined!
Error: Contact 'Michael' has no host notification commands defined!
Error: Contact 'Rex' has no service notification commands defined!
Error: Contact 'Rex' has no host notification commands defined!
Error: Contact 'Ryan' has no service notification commands defined!
Error: Contact 'Ryan' has no host notification commands defined!
Error: Contact 'Sanjeev' has no service notification commands defined!
Error: Contact 'Sanjeev' has no host notification commands defined!
Error: Contact 'Vincent' has no service notification commands defined!
Error: Contact 'Vincent' has no host notification commands defined!

Nagios Core 3.5.0
Copyright (c) 2009-2011 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 03-15-2013
License: GPL

Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Processing object config directory '/usr/local/nagios/etc/static'...
Processing object config file '/usr/local/nagios/etc/static/xiobjects.cfg'...
Processing object config file '/usr/local/nagios/etc/static/xitest.cfg'...
Processing object config file '/usr/local/nagios/etc/static/xitemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/contacttemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/contactgroups.cfg'...
Processing object config file '/usr/local/nagios/etc/contacts.cfg'...
Processing object config file '/usr/local/nagios/etc/timeperiods.cfg'...
Processing object config file '/usr/local/nagios/etc/commands.cfg'...
Processing object config file '/usr/local/nagios/etc/hostgroups.cfg'...
Processing object config file '/usr/local/nagios/etc/servicegroups.cfg'...
Processing object config file '/usr/local/nagios/etc/hosttemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/servicetemplates.cfg'...
Processing object config file '/usr/local/nagios/etc/servicedependencies.cfg'...
Processing object config file '/usr/local/nagios/etc/serviceescalations.cfg'...
Processing object config file '/usr/local/nagios/etc/hostdependencies.cfg'...
Processing object config file '/usr/local/nagios/etc/hostescalations.cfg'...
Processing object config file '/usr/local/nagios/etc/hostextinfo.cfg'...
Processing object config file '/usr/local/nagios/etc/serviceextinfo.cfg'...
Processing object config directory '/usr/local/nagios/etc/hosts'...
Processing object config file '/usr/local/nagios/etc/hosts/localhost.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/cesr.kaiser.org.cfg'...
Processing object config file '/usr/local/nagios/etc/hosts/www.google.com.cfg'...
Processing object config directory '/usr/local/nagios/etc/services'...
Processing object config file '/usr/local/nagios/etc/services/localhost.cfg'...
Processing object config file '/usr/local/nagios/etc/services/cesr.kaiser.org.cfg'...
Processing object config file '/usr/local/nagios/etc/services/www.google.com.cfg'...
Read object config files okay...

Running pre-flight check on configuration data...

Checking services...
Checked 16 services.
Checking hosts...
Checked 3 hosts.
Checking host groups...
Checked 8 host groups.
Checking service groups...
Checked 1 service groups.
Checking contacts...
Error: Contact 'Francis' has no service notification commands defined!
Error: Contact 'Francis' has no host notification commands defined!
Warning: Contact 'Francis' has no service notification time period defined!
Warning: Contact 'Francis' has no host notification time period defined!
Error: Contact 'Hemant' has no service notification commands defined!
Error: Contact 'Hemant' has no host notification commands defined!
Warning: Contact 'Hemant' has no service notification time period defined!
Warning: Contact 'Hemant' has no host notification time period defined!
Error: Contact 'Mahsa' has no service notification commands defined!
Error: Contact 'Mahsa' has no host notification commands defined!
Warning: Contact 'Mahsa' has no service notification time period defined!
Warning: Contact 'Mahsa' has no host notification time period defined!
Error: Contact 'Mark' has no service notification commands defined!
Error: Contact 'Mark' has no host notification commands defined!
Warning: Contact 'Mark' has no service notification time period defined!
Warning: Contact 'Mark' has no host notification time period defined!
Error: Contact 'Michael' has no service notification commands defined!
Error: Contact 'Michael' has no host notification commands defined!
Warning: Contact 'Michael' has no service notification time period defined!
Warning: Contact 'Michael' has no host notification time period defined!
Error: Contact 'Rex' has no service notification commands defined!
Error: Contact 'Rex' has no host notification commands defined!
Warning: Contact 'Rex' has no service notification time period defined!
Warning: Contact 'Rex' has no host notification time period defined!
Error: Contact 'Ryan' has no service notification commands defined!
Error: Contact 'Ryan' has no host notification commands defined!
Warning: Contact 'Ryan' has no service notification time period defined!
Warning: Contact 'Ryan' has no host notification time period defined!
Error: Contact 'Sanjeev' has no service notification commands defined!
Error: Contact 'Sanjeev' has no host notification commands defined!
Warning: Contact 'Sanjeev' has no service notification time period defined!
Warning: Contact 'Sanjeev' has no host notification time period defined!
Error: Contact 'Vincent' has no service notification commands defined!
Error: Contact 'Vincent' has no host notification commands defined!
Warning: Contact 'Vincent' has no service notification time period defined!
Warning: Contact 'Vincent' has no host notification time period defined!
Checked 11 contacts.
Checking contact groups...
Checked 6 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 108 commands.
Checking time periods...
Checked 8 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: 18
Total Errors: 18

***> One or more problems was encountered while running the pre-flight check...

Check your configuration file(s) to ensure that they contain valid
directives and data defintions. If you are upgrading from a previous
version of Nagios, you should be aware that some variables/definitions
may have been removed or modified in this version. Make sure to read
the HTML documentation regarding the config files, as well as the
'Whats New' section to find out what has changed.

Re: Monitoring Engine won't start

Posted: Wed Jul 10, 2013 11:51 am
by abrist
Your contacts are missing notification commands. Go to the CCM in XI --> Contacts --> open each contact --> Alert Settings Tab.

Click each of the Manage Service/Host Notification Commands Buttons
If your contacts are also XI users, set their notification commands to xi_service/host_notification_handler (respectively).
If the contacts are not XI users, set the notificaiton commands to notify_host/service_by_email (respectively)

Once completed for all the users, apply configuration.

Re: Monitoring Engine won't start

Posted: Wed Jul 10, 2013 1:17 pm
by fyakin
It works now

Thanks

Francis :D