Page 1 of 1
adding services problem
Posted: Thu May 23, 2013 2:29 pm
by shakra2005
Hi Guys,
i have created a new command with the core config manager.
next i go to services and i have added my new command as service to a host and then
i have saved the configuration.
Now i dont see the Service in the nagiosxi view.
Whats the error ?
Re: adding services problem
Posted: Thu May 23, 2013 2:53 pm
by abrist
Go to --> Configure --> Core Config Manager -->Tools --> Write Config Files.
Click "Write" and the "Verify"
Post the output here.
Re: adding services problem
Posted: Thu May 23, 2013 3:55 pm
by shakra2005
Write host configurations ...
Host configuration files successfully written!
Write service configurations ...
Service configuration files successfully written!
Configuration file: hostgroups.cfg successfully written!
Configuration file: servicegroups.cfg successfully written!
Configuration file: hosttemplates.cfg successfully written!
Configuration file: servicetemplates.cfg successfully written!
Configuration file: timeperiods.cfg successfully written!
Configuration file: commands.cfg successfully written!
Configuration file: contacts.cfg successfully written!
Configuration file: contactgroups.cfg successfully written!
Configuration file: contacttemplates.cfg successfully written!
Configuration file: servicedependencies.cfg successfully written!
Configuration file: hostdependencies.cfg successfully written!
Configuration file: serviceescalations.cfg successfully written!
Configuration file: hostescalations.cfg successfully written!
Configuration file: serviceextinfo.cfg successfully written!
Configuration file: hostextinfo.cfg successfully written!
Running pre-flight check on configuration data...
Checking services...
Checked 212 services.
Checking hosts...
Checked 18 hosts.
Checking host groups...
Checked 4 host groups.
Checking service groups...
Checked 9 service groups.
Checking contacts...
Checked 2 contacts.
Checking contact groups...
Checked 2 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 118 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: 0
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check
Re: adding services problem
Posted: Thu May 23, 2013 4:22 pm
by abrist
That looks fine. Could you post the service check and command definition in code wraps?
Re: adding services problem
Posted: Thu May 23, 2013 4:25 pm
by shakra2005
Code: Select all
./check_snmp_apc_ups -H 172.17.2.202 -C public
Code: Select all
/usr/local/nagios/libexec/check_snmp_apc_ups -H $HOSTADDRESS$
Re: adding services problem
Posted: Fri May 24, 2013 10:44 am
by abrist
Go to the CCM --> services. Click the "disk" icon for the service in question. Post the contents of the text file here.