Monitoring Engine won't start

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
fyakin
Posts: 3
Joined: Mon Jun 17, 2013 2:52 pm

Monitoring Engine won't start

Post 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
You do not have the required permissions to view the files attached to this post.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Monitoring Engine won't start

Post 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.
fyakin
Posts: 3
Joined: Mon Jun 17, 2013 2:52 pm

Re: Monitoring Engine won't start

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

Re: Monitoring Engine won't start

Post 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.
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.
fyakin
Posts: 3
Joined: Mon Jun 17, 2013 2:52 pm

Re: Monitoring Engine won't start

Post by fyakin »

It works now

Thanks

Francis :D
Locked