Apply config error, no snapshot error to view

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
r.jaynes
Posts: 58
Joined: Wed May 19, 2010 1:27 pm

Apply config error, no snapshot error to view

Post by r.jaynes »

NagiosXI 2012R1.6 running from VMware OVF on CentOS 6.3. We migrated from CentOS 5.9 2012R1.6 to this new OVF with a backup/restore. Anytime I make a service change through the CCM of from the Configure tab, the config verification fails and there is no associated error snapshot (See attached screenshots). I have not tried to add a new host or service yet.
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: Apply config error, no snapshot error to view

Post by slansing »

Can you run the following and output it's results in your reply?

Navigate to: Configuration > Core Config Manager > Tools > Write Config Tool > Click each of the three buttons from top to bottom, copy and paste the text output by each here.
r.jaynes
Posts: 58
Joined: Wed May 19, 2010 1:27 pm

Re: Apply config error, no snapshot error to view

Post by r.jaynes »

slansing wrote:Can you run the following and output it's results in your reply?

Navigate to: Configuration > Core Config Manager > Tools > Write Config Tool > Click each of the three buttons from top to bottom, copy and paste the text output by each here.
Write Config

Code: Select all

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!
Verify

Code: Select all

Nagios Core 3.4.1 
Copyright (c) 2009-2011 Nagios Core Development Team and Community Contributors 
Copyright (c) 1999-2009 Ethan Galstad 
Last Modified: 05-11-2012 
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/xitemplates.cfg'... 
Processing object config file '/usr/local/nagios/etc/static/xitest.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/loki.megagate.com.cfg'... 
Processing object config file '/usr/local/nagios/etc/hosts/MG-ME-873-WPINET.cfg'... 
Processing object config file '/usr/local/nagios/etc/hosts/Office of Chapter 13 3120.cfg'... 
Processing object config file '/usr/local/nagios/etc/hosts/OMX5A Gulfport.cfg'... 
Processing object config file '/usr/local/nagios/etc/hosts/10.2.131.21.cfg'... 
Processing object config file '/usr/local/nagios/etc/hosts/Hattiesburg Telepak Internet.cfg'... 
Processing object config file '/usr/local/nagios/etc/hosts/APC-RR102.10-A12.cfg'... 
Processing object config file '/usr/local/nagios/etc/hosts/Hattiesburg ATT OC3.cfg'... 
Processing object config file '/usr/local/nagios/etc/hosts/AMX1A MUX.cfg'... 
Processing object config file '/usr/local/nagios/etc/hosts/49N Tower CBW.cfg'... 
Processing object config file '/usr/local/nagios/etc/hosts/Corp MetroE 1534 SW.cfg'... 
Processing object config file '/usr/local/nagios/etc/hosts/Ivey MetroE 1534 SW ATT Uplink.cfg'... 
Processing object config file '/usr/local/nagios/etc/hosts/SQL3.cfg'... 
Processing object config file '/usr/local/nagios/etc/hosts/janus.megagate.com.cfg'... 
Processing object config file '/usr/local/nagios/etc/hosts/vh1.iv.virtual.megagate.com.cfg'... 
Processing object config file '/usr/local/nagios/etc/hosts/CLEC2-Billing.cfg'... 
Processing object config file '/usr/local/nagios/etc/hosts/2600 HBG Main Eth Side.cfg'... 
Processing object config file '/usr/local/nagios/etc/hosts/monitor.iv.virtual.megagate.com.cfg'... 
Processing object config file '/usr/local/nagios/etc/hosts/West MetroE 1534 SW.cfg'... 
Processing object config file '/usr/local/nagios/etc/hosts/GPT7609.cfg'... 
Processing object config file '/usr/local/nagios/etc/hosts/AcmeSBC-2.cfg'... 
Processing object config file '/usr/local/nagios/etc/hosts/SQL1.cfg'... 
Processing object config file '/usr/local/nagios/etc/hosts/Customer-EaglesTrail.cfg'... 
Processing object config file '/usr/local/nagios/etc/hosts/MG-ME-873-WESLEY.cfg'... 
Processing object config file '/usr/local/nagios/etc/hosts/Webmon.cfg'... 
Processing object config file '/usr/local/nagios/etc/hosts/1NETII.cfg'... 
Processing object config file '/usr/local/nagios/etc/hosts/MG-ME-873-WPWAN.cfg'... 
Processing object config file '/usr/local/nagios/etc/hosts/thor.megagate.com.cfg'... 
Processing object config file '/usr/local/nagios/etc/hosts/Jackson Level 3 100MB Ethernet.cfg'... 
Processing object config file '/usr/local/nagios/etc/hosts/OptimistPark-CBW.cfg'... 
Processing object config file '/usr/local/nagios/etc/hosts/cp2.megagate.com.cfg'... 
Processing object config file '/usr/local/nagios/etc/hosts/Temperature Monitor.cfg'... 
Processing object config file '/usr/local/nagios/etc/hosts/vh2.iv.virtual.megagate.com.cfg'... 
Processing object config file '/usr/local/nagios/etc/hosts/MG-ME-873-FGH.cfg'... 
Processing object config file '/usr/local/nagios/etc/hosts/JetStor1.cfg'... 
Processing object config file '/usr/local/nagios/etc/hosts/mail.megagate.com.cfg'... 
Processing object config file '/usr/local/nagios/etc/hosts/ADS2A DS3 InBand MGMT.cfg'... 
Processing object config file '/usr/local/nagios/etc/hosts/JXN7206.cfg'... 
Processing object config file '/usr/local/nagios/etc/hosts/sbc.megagate.com.cfg'... 
Processing object config file '/usr/local/nagios/etc/hosts/vh3.iv.virtual.megagate.com.cfg'... 
Processing object config file '/usr/local/nagios/etc/hosts/IveyVPN.cfg'... 
Processing object config file '/usr/local/nagios/etc/hosts/AMX8A MUX.cfg'... 
Processing object config file '/usr/local/nagios/etc/hosts/cms.megagate.com.cfg'... 
Processing object config file '/usr/local/nagios/etc/hosts/MG-ME-873-FGH-CPE.cfg'... 
Processing object config file '/usr/local/nagios/etc/hosts/Ross Building Backhaul.cfg'... 
Processing object config file '/usr/local/nagios/etc/hosts/localhost.cfg'... 
Processing object config file '/usr/local/nagios/etc/hosts/Ross Building Voltage.cfg'... 
Processing object config file '/usr/local/nagios/etc/hosts/Ivey MetroE 1534 SW.cfg'... 
Processing object config file '/usr/local/nagios/etc/hosts/LRL7206.cfg'... 
Processing object config file '/usr/local/nagios/etc/hosts/Wireshark-Ziggy.cfg'... 
Processing object config file '/usr/local/nagios/etc/hosts/Kevin Pack DSL.cfg'... 
Processing object config file '/usr/local/nagios/etc/hosts/SQL2.cfg'... 
Processing object config file '/usr/local/nagios/etc/hosts/Eagles Trail 2851 Router.cfg'... 
Processing object config file '/usr/local/nagios/etc/hosts/2600 HBG Main T1 Side.cfg'... 
Processing object config file '/usr/local/nagios/etc/hosts/DC Power Plant.cfg'... 
Processing object config file '/usr/local/nagios/etc/hosts/MegaServer.cfg'... 
Processing object config file '/usr/local/nagios/etc/hosts/Lrl MetroE 1534 SW.cfg'... 
Processing object config file '/usr/local/nagios/etc/hosts/Site132SQL.cfg'... 
Processing object config file '/usr/local/nagios/etc/hosts/WPSM-vPD01.cfg'... 
Processing object config file '/usr/local/nagios/etc/hosts/SynCraft Timing System.cfg'... 
Processing object config file '/usr/local/nagios/etc/hosts/ra.megagate.com.cfg'... 
Processing object config file '/usr/local/nagios/etc/hosts/APC-RR102.11-A14.cfg'... 
Processing object config file '/usr/local/nagios/etc/hosts/cp1.megagate.com.cfg'... 
Processing object config file '/usr/local/nagios/etc/hosts/smtp.megagate.com.cfg'... 
Processing object config file '/usr/local/nagios/etc/hosts/ftp2.megagate.com.cfg'... 
Processing object config file '/usr/local/nagios/etc/hosts/Main MetroE 1534 SW.cfg'... 
Processing object config directory '/usr/local/nagios/etc/services'... 
Processing object config file '/usr/local/nagios/etc/services/loki.megagate.com.cfg'... 
Processing object config file '/usr/local/nagios/etc/services/APC-RR102-10-A12.cfg'... 
Processing object config file '/usr/local/nagios/etc/services/MG-ME-873-WPINET.cfg'... 
Processing object config file '/usr/local/nagios/etc/services/Office of Chapter 13 3120.cfg'... 
Processing object config file '/usr/local/nagios/etc/services/OMX5A Gulfport.cfg'... 
Processing object config file '/usr/local/nagios/etc/services/10.2.131.21.cfg'... 
Processing object config file '/usr/local/nagios/etc/services/Hattiesburg Telepak Internet.cfg'... 
Processing object config file '/usr/local/nagios/etc/services/Hattiesburg ATT OC3.cfg'... 
Processing object config file '/usr/local/nagios/etc/services/AMX1A MUX.cfg'... 
Processing object config file '/usr/local/nagios/etc/services/49N Tower CBW.cfg'... 
Processing object config file '/usr/local/nagios/etc/services/Corp MetroE 1534 SW.cfg'... 
Processing object config file '/usr/local/nagios/etc/services/Ivey MetroE 1534 SW ATT Uplink.cfg'... 
Processing object config file '/usr/local/nagios/etc/services/SQL3.cfg'... 
Processing object config file '/usr/local/nagios/etc/services/janus.megagate.com.cfg'... 
Processing object config file '/usr/local/nagios/etc/services/vh1.iv.virtual.megagate.com.cfg'... 
Processing object config file '/usr/local/nagios/etc/services/CLEC2-Billing.cfg'... 
Processing object config file '/usr/local/nagios/etc/services/2600 HBG Main Eth Side.cfg'... 
Processing object config file '/usr/local/nagios/etc/services/monitor.iv.virtual.megagate.com.cfg'... 
Processing object config file '/usr/local/nagios/etc/services/West MetroE 1534 SW.cfg'... 
Processing object config file '/usr/local/nagios/etc/services/208.24.218.11.cfg'... 
Processing object config file '/usr/local/nagios/etc/services/GPT7609.cfg'... 
Processing object config file '/usr/local/nagios/etc/services/AcmeSBC-2.cfg'... 
Processing object config file '/usr/local/nagios/etc/services/SQL1.cfg'... 
Processing object config file '/usr/local/nagios/etc/services/Customer-EaglesTrail.cfg'... 
Processing object config file '/usr/local/nagios/etc/services/MG-ME-873-WESLEY.cfg'... 
Processing object config file '/usr/local/nagios/etc/services/Webmon.cfg'... 
Processing object config file '/usr/local/nagios/etc/services/1NETII.cfg'... 
Processing object config file '/usr/local/nagios/etc/services/MG-ME-873-WPWAN.cfg'... 
Processing object config file '/usr/local/nagios/etc/services/thor.megagate.com.cfg'... 
Processing object config file '/usr/local/nagios/etc/services/Jackson Level 3 100MB Ethernet.cfg'... 
Processing object config file '/usr/local/nagios/etc/services/OptimistPark-CBW.cfg'... 
Processing object config file '/usr/local/nagios/etc/services/cp2.megagate.com.cfg'... 
Processing object config file '/usr/local/nagios/etc/services/Temperature Monitor.cfg'... 
Processing object config file '/usr/local/nagios/etc/services/vh2.iv.virtual.megagate.com.cfg'... 
Processing object config file '/usr/local/nagios/etc/services/MG-ME-873-FGH.cfg'... 
Processing object config file '/usr/local/nagios/etc/services/JetStor1.cfg'... 
Processing object config file '/usr/local/nagios/etc/services/mail.megagate.com.cfg'... 
Processing object config file '/usr/local/nagios/etc/services/ADS2A DS3 InBand MGMT.cfg'... 
Processing object config file '/usr/local/nagios/etc/services/JXN7206.cfg'... 
Processing object config file '/usr/local/nagios/etc/services/sbc.megagate.com.cfg'... 
Processing object config file '/usr/local/nagios/etc/services/vh3.iv.virtual.megagate.com.cfg'... 
Processing object config file '/usr/local/nagios/etc/services/IveyVPN.cfg'... 
Processing object config file '/usr/local/nagios/etc/services/AMX8A MUX.cfg'... 
Processing object config file '/usr/local/nagios/etc/services/cms.megagate.com.cfg'... 
Processing object config file '/usr/local/nagios/etc/services/MG-ME-873-FGH-CPE.cfg'... 
Processing object config file '/usr/local/nagios/etc/services/Ross Building Backhaul.cfg'... 
Processing object config file '/usr/local/nagios/etc/services/localhost.cfg'... 
Processing object config file '/usr/local/nagios/etc/services/Ross Building Voltage.cfg'... 
Processing object config file '/usr/local/nagios/etc/services/Ivey MetroE 1534 SW.cfg'... 
Processing object config file '/usr/local/nagios/etc/services/LRL7206.cfg'... 
Processing object config file '/usr/local/nagios/etc/services/Wireshark-Ziggy.cfg'... 
Processing object config file '/usr/local/nagios/etc/services/Kevin Pack DSL.cfg'... 
Processing object config file '/usr/local/nagios/etc/services/SQL2.cfg'... 
Processing object config file '/usr/local/nagios/etc/services/Eagles Trail 2851 Router.cfg'... 
Processing object config file '/usr/local/nagios/etc/services/2600 HBG Main T1 Side.cfg'... 
Processing object config file '/usr/local/nagios/etc/services/DC Power Plant.cfg'... 
Processing object config file '/usr/local/nagios/etc/services/MegaServer.cfg'... 
Processing object config file '/usr/local/nagios/etc/services/Lrl MetroE 1534 SW.cfg'... 
Processing object config file '/usr/local/nagios/etc/services/Site132SQL.cfg'... 
Processing object config file '/usr/local/nagios/etc/services/WPSM-vPD01.cfg'... 
Processing object config file '/usr/local/nagios/etc/services/SynCraft Timing System.cfg'... 
Processing object config file '/usr/local/nagios/etc/services/ra.megagate.com.cfg'... 
Processing object config file '/usr/local/nagios/etc/services/APC-RR102.11-A14.cfg'... 
Processing object config file '/usr/local/nagios/etc/services/cp1.megagate.com.cfg'... 
Processing object config file '/usr/local/nagios/etc/services/smtp.megagate.com.cfg'... 
Processing object config file '/usr/local/nagios/etc/services/ftp2.megagate.com.cfg'... 
Processing object config file '/usr/local/nagios/etc/services/Main MetroE 1534 SW.cfg'... 
Warning: Duplicate definition found for service 'SSH' on host 'localhost' (config file '/usr/local/nagios/etc/services/CLEC2-Billing.cfg', starting on line 32) 
Warning: Duplicate definition found for service 'SMTP' on host 'cp2.megagate.com' (config file '/usr/local/nagios/etc/services/mail.megagate.com.cfg', starting on line 76) 
Warning: Duplicate definition found for service 'SSH' on host 'cp2.megagate.com' (config file '/usr/local/nagios/etc/services/mail.megagate.com.cfg', starting on line 92) 
Warning: Duplicate definition found for service 'SSH' on host 'localhost' (config file '/usr/local/nagios/etc/services/mail.megagate.com.cfg', starting on line 92) 
Read object config files okay... 

Running pre-flight check on configuration data... 

Checking services... 
Warning: Service 'Battery Voltage' on host '49N Tower CBW' has no check time period defined! 
Warning: Service 'Temperature' on host '49N Tower CBW' has no check time period defined! 
Warning: Service 'Data NIC 1' on host 'JetStor1' has no check time period defined! 
Warning: Service 'Data NIC 2' on host 'JetStor1' has no check time period defined! 
Warning: Service 'Data NIC 3' on host 'JetStor1' has no check time period defined! 
Warning: Service 'Data NIC 4' on host 'JetStor1' has no check time period defined! 
Warning: Service 'Drive E: SQL Data Disk Usage' on host 'Site132SQL' has no default contacts or contactgroups defined! 
Warning: Service 'Drive F: Backup USB' on host 'Site132SQL' has no default contacts or contactgroups defined! 
Warning: Service 'Drive G: SQL Archive' on host 'Site132SQL' has no default contacts or contactgroups defined! 
Warning: Service 'JetStor1-LUN1 Usage' on host 'monitor.iv.virtual.megagate.com' has no check time period defined! 
Warning: Service 'JetStor1-LUN2 Usage' on host 'monitor.iv.virtual.megagate.com' has no check time period defined! 
Warning: Service 'JetStor2-LUN1 Usage' on host 'monitor.iv.virtual.megagate.com' has no check time period defined! 
Warning: Service 'JetStor2-LUN2 Usage' on host 'monitor.iv.virtual.megagate.com' has no check time period defined! 
Warning: Service 'Ping' on host 'vh1.iv.virtual.megagate.com' has no check time period defined! 
Warning: Service 'Ping' on host 'vh1.iv.virtual.megagate.com' has no notification time period defined! 
Warning: Service 'Ping' on host 'vh2.iv.virtual.megagate.com' has no check time period defined! 
Warning: Service 'Ping' on host 'vh2.iv.virtual.megagate.com' has no notification time period defined! 
Warning: Service 'Ping' on host 'vh3.iv.virtual.megagate.com' has no check time period defined! 
Warning: Service 'Ping' on host 'vh3.iv.virtual.megagate.com' has no notification time period defined! 
Checked 261 services. 
Checking hosts... 
Checked 66 hosts. 
Checking host groups... 
Checked 7 host groups. 
Checking service groups... 
Checked 7 service groups. 
Checking contacts... 
Checked 13 contacts. 
Checking contact groups... 
Checked 3 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 16 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: 19 
Total Errors: 0 

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

Code: Select all

Restart command successfully sent to Nagios
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Apply config error, no snapshot error to view

Post by abrist »

Try increasing the php.ini memory limits and execution time:
http://support.nagios.com/wiki/index.ph ... _Completes
EDIT: Remember to restart apache after the changes are made.
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.
r.jaynes
Posts: 58
Joined: Wed May 19, 2010 1:27 pm

Re: Apply config error, no snapshot error to view

Post by r.jaynes »

Changed php.ini settings per link, and still have the issue from the screenshot. When I click submit for the change, this part shows instantly "Configuration submitted for processing..." and about 1 second later the two errors appear. The page loads with the errors very quickly.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Apply config error, no snapshot error to view

Post by abrist »

Open up a terminal to the XI box and run the following:

Code: Select all

cat /var/log/messages | grep seg
We are looking for a segfault as that is a symptom of a possible problem. If you go to "home" --> "Process Info" in the XI interface, are all the "dots" green as well as the "system ok" dots/checks in the upper right hand corner?

Check for multiple nagios parent processes:

Code: Select all

service nagios stop
ps -aef | grep nagios
killall nagios
service nagios start
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.
r.jaynes
Posts: 58
Joined: Wed May 19, 2010 1:27 pm

Re: Apply config error, no snapshot error to view

Post by r.jaynes »

abrist wrote:Open up a terminal to the XI box and run the following:

Code: Select all

cat /var/log/messages | grep seg
We are looking for a segfault as that is a symptom of a possible problem. If you go to "home" --> "Process Info" in the XI interface, are all the "dots" green as well as the "system ok" dots/checks in the upper right hand corner?

Check for multiple nagios parent processes:

Code: Select all

service nagios stop
ps -aef | grep nagios
killall nagios
service nagios start
No results for grep on "seg" in messages. All dots are green as well as the system ok dots at the top right. Pic attached of the "Process Info" screen.
You do not have the required permissions to view the files attached to this post.
r.jaynes
Posts: 58
Joined: Wed May 19, 2010 1:27 pm

Re: Apply config error, no snapshot error to view

Post by r.jaynes »

Didn't appear to be multiple processes running:

Output of ps -aef | grep nagios before stop/starting/killall

Code: Select all

[root@monitor local]# ps -aef | grep nagios
nagios     543   538  0 15:40 ?        00:00:00 /bin/sh -c /usr/bin/php -q /usr/local/nagiosxi/cron/feedproc.php > /usr/local/nagiosxi/var/feedproc.log 2>&1
nagios     544   539  0 15:40 ?        00:00:00 /bin/sh -c /usr/bin/php -q /usr/local/nagiosxi/cron/eventman.php > /usr/local/nagiosxi/var/eventman.log 2>&1
nagios     550   540  0 15:40 ?        00:00:00 /bin/sh -c /usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php > /usr/local/nagiosxi/var/cmdsubsys.log 2>&1
nagios     551   537  0 15:40 ?        00:00:00 /bin/sh -c /usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php > /usr/local/nagiosxi/var/perfdataproc.log 2>&1
nagios     553   541  0 15:40 ?        00:00:00 /bin/sh -c /usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php > /usr/local/nagiosxi/var/sysstat.log 2>&1
nagios     554   544  5 15:40 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/eventman.php
nagios     559   543  3 15:40 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/feedproc.php
nagios     560   550  3 15:40 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php
nagios     561   551  4 15:40 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php
nagios     563   553  4 15:40 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php
postgres   584  1596  0 15:40 ?        00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(53938) idle
postgres   587  1596  0 15:40 ?        00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(53941) idle
postgres   590  1596  0 15:40 ?        00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(53942) idle
postgres   617  1596  0 15:40 ?        00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(53947) idle
nagios     653   563  0 15:40 ?        00:00:00 /bin/sh /etc/init.d/npcd status
root       656 25067  0 15:40 pts/0    00:00:00 grep nagios
nagios     657   653  0 15:40 ?        00:00:00 ps -p 19766
nagios    1842     1  0 Mar06 ?        00:00:00 /usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg
nagios    5692     1  0 Mar08 ?        00:16:12 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios   13689  1842  0 15:00 ?        00:00:00 /usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg
nagios   13690 13689  0 15:00 ?        00:00:00 /usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg
postgres 18326  1596  0 15:10 ?        00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(52172) idle
postgres 18365  1596  0 15:10 ?        00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(52173) idle
postgres 18382  1596  0 15:10 ?        00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(52174) idle
postgres 18383  1596  0 15:10 ?        00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(52175) idle
postgres 18398  1596  0 15:10 ?        00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(52178) idle
postgres 18403  1596  0 15:10 ?        00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(52179) idle
postgres 18410  1596  0 15:10 ?        00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(52180) idle
postgres 18416  1596  0 15:10 ?        00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(52181) idle
postgres 18865  1596  0 15:11 ?        00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(52239) idle
postgres 19061  1596  0 15:11 ?        00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(52247) idle
nagios   19766     1  0 Mar06 ?        00:01:05 /usr/local/nagios/bin/npcd -d -f /usr/local/nagios/etc/pnp/npcd.cfg
postgres 19980  1596  0 15:13 ?        00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(52356) idle
postgres 20470  1596  0 15:14 ?        00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(52424) idle
postgres 22473  1596  0 15:18 ?        00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(52645) idle
nagios   32531 32528  0 15:39 ?        00:00:00 /bin/sh -c /usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php > /usr/local/nagiosxi/var/sysstat.log 2>&1
nagios   32533 32525  0 15:39 ?        00:00:00 /bin/sh -c /usr/bin/php -q /usr/local/nagiosxi/cron/feedproc.php > /usr/local/nagiosxi/var/feedproc.log 2>&1
nagios   32539 32531  0 15:39 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php
nagios   32540 32533  0 15:39 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/feedproc.php
postgres 32562  1596  0 15:39 ?        00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(53865) idle
postgres 32708  1596  0 15:39 ?        00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(53895) idle
Results afterward:

Code: Select all

[root@monitor local]# service nagios stop
Stopping nagios: .done.
[root@monitor local]# ps -aef | grep nagios
nagios     543   538  0 15:40 ?        00:00:00 /bin/sh -c /usr/bin/php -q /usr/local/nagiosxi/cron/feedproc.php > /usr/local/nagiosxi/var/feedproc.log 2>&1
nagios     544   539  0 15:40 ?        00:00:00 /bin/sh -c /usr/bin/php -q /usr/local/nagiosxi/cron/eventman.php > /usr/local/nagiosxi/var/eventman.log 2>&1
nagios     550   540  0 15:40 ?        00:00:00 /bin/sh -c /usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php > /usr/local/nagiosxi/var/cmdsubsys.log 2>&1
nagios     551   537  0 15:40 ?        00:00:00 /bin/sh -c /usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php > /usr/local/nagiosxi/var/perfdataproc.log 2>&1
nagios     553   541  0 15:40 ?        00:00:00 /bin/sh -c /usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php > /usr/local/nagiosxi/var/sysstat.log 2>&1
nagios     554   544  1 15:40 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/eventman.php
nagios     559   543  0 15:40 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/feedproc.php
nagios     560   550  0 15:40 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php
nagios     561   551  0 15:40 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php
nagios     563   553  1 15:40 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php
postgres   584  1596  0 15:40 ?        00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(53938) idle
postgres   587  1596  0 15:40 ?        00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(53941) idle
postgres   590  1596  0 15:40 ?        00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(53942) idle
postgres   617  1596  0 15:40 ?        00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(53947) idle
postgres   721  1596  0 15:40 ?        00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(53955) idle
postgres   743  1596  0 15:40 ?        00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(53958) idle
root       845 25067  0 15:40 pts/0    00:00:00 grep nagios
nagios    1842     1  0 Mar06 ?        00:00:00 /usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg
postgres 18326  1596  0 15:10 ?        00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(52172) idle
postgres 18365  1596  0 15:10 ?        00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(52173) idle
postgres 18382  1596  0 15:10 ?        00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(52174) idle
postgres 18383  1596  0 15:10 ?        00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(52175) idle
postgres 18398  1596  0 15:10 ?        00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(52178) idle
postgres 18403  1596  0 15:10 ?        00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(52179) idle
postgres 18410  1596  0 15:10 ?        00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(52180) idle
postgres 18416  1596  0 15:10 ?        00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(52181) idle
postgres 18865  1596  0 15:11 ?        00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(52239) idle
postgres 19061  1596  0 15:11 ?        00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(52247) idle
nagios   19766     1  0 Mar06 ?        00:01:05 /usr/local/nagios/bin/npcd -d -f /usr/local/nagios/etc/pnp/npcd.cfg
postgres 19980  1596  0 15:13 ?        00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(52356) idle
postgres 20470  1596  0 15:14 ?        00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(52424) idle
postgres 22473  1596  0 15:18 ?        00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(52645) idle

[root@monitor local]# killall nagios
nagios: no process killed

[root@monitor local]# service nagios start
Starting nagios: done.

[root@monitor local]# ps -aef | grep nagios
nagios     543   538  0 15:40 ?        00:00:00 /bin/sh -c /usr/bin/php -q /usr/local/nagiosxi/cron/feedproc.php > /usr/local/nagiosxi/var/feedproc.log 2>&1
nagios     544   539  0 15:40 ?        00:00:00 /bin/sh -c /usr/bin/php -q /usr/local/nagiosxi/cron/eventman.php > /usr/local/nagiosxi/var/eventman.log 2>&1
nagios     550   540  0 15:40 ?        00:00:00 /bin/sh -c /usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php > /usr/local/nagiosxi/var/cmdsubsys.log 2>&1
nagios     551   537  0 15:40 ?        00:00:00 /bin/sh -c /usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php > /usr/local/nagiosxi/var/perfdataproc.log 2>&1
nagios     553   541  0 15:40 ?        00:00:00 /bin/sh -c /usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php > /usr/local/nagiosxi/var/sysstat.log 2>&1
nagios     554   544  0 15:40 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/eventman.php
nagios     559   543  0 15:40 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/feedproc.php
nagios     560   550  0 15:40 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php
nagios     561   551  0 15:40 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php
nagios     563   553  0 15:40 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php
postgres   584  1596  0 15:40 ?        00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(53938) idle
postgres   587  1596  0 15:40 ?        00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(53941) idle
postgres   590  1596  0 15:40 ?        00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(53942) idle
postgres   617  1596  0 15:40 ?        00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(53947) idle
postgres   721  1596  0 15:40 ?        00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(53955) idle
postgres   743  1596  0 15:40 ?        00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(53958) idle
nagios     864  1842  0 15:40 ?        00:00:00 /usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg
nagios     865   864  1 15:40 ?        00:00:00 /usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg
nagios     868     1  0 15:40 ?        00:00:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
root       925 25067  0 15:40 pts/0    00:00:00 grep nagios
nagios    1842     1  0 Mar06 ?        00:00:00 /usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg
postgres 18326  1596  0 15:10 ?        00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(52172) idle
postgres 18365  1596  0 15:10 ?        00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(52173) idle
postgres 18382  1596  0 15:10 ?        00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(52174) idle
postgres 18383  1596  0 15:10 ?        00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(52175) idle
postgres 18398  1596  0 15:10 ?        00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(52178) idle
postgres 18403  1596  0 15:10 ?        00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(52179) idle
postgres 18410  1596  0 15:10 ?        00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(52180) idle
postgres 18416  1596  0 15:10 ?        00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(52181) idle
postgres 18865  1596  0 15:11 ?        00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(52239) idle
postgres 19061  1596  0 15:11 ?        00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(52247) idle
nagios   19766     1  0 Mar06 ?        00:01:05 /usr/local/nagios/bin/npcd -d -f /usr/local/nagios/etc/pnp/npcd.cfg
postgres 19980  1596  0 15:13 ?        00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(52356) idle
postgres 20470  1596  0 15:14 ?        00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(52424) idle
postgres 22473  1596  0 15:18 ?        00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(52645) idle
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Apply config error, no snapshot error to view

Post by abrist »

You are correct. Your process list looks normal. Lets do a running tail on /var/log/httpd/error_log and try to "apply configuration" again:

Code: Select all

tail -f /var/log/httpd/error_log
Click "apply configuration" and then post the tail output.
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.
r.jaynes
Posts: 58
Joined: Wed May 19, 2010 1:27 pm

Re: Apply config error, no snapshot error to view

Post by r.jaynes »

I hate to be the bearer of bad news, but there was no output. I did the same thing for "access_log" and captured the following if it helps

Code: Select all

204.80.201.50 - - [12/Mar/2013:15:59:07 -0500] "POST /nagiosxi/config/configobject.php HTTP/1.1" 200 12887 "http://monitor.megagate.com/nagiosxi/config/configobject.php?host=cp2.megagate.com&service=Memory+Usage&return=servicedetail" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.152 Safari/537.22"
127.0.0.1 - - [12/Mar/2013:15:59:07 -0500] "POST /nagiosql/index.php HTTP/1.0" 302 1027 "-" "Wget/1.12 (linux-gnu)"
127.0.0.1 - - [12/Mar/2013:15:59:07 -0500] "GET /nagiosql/admin.php HTTP/1.0" 200 5286 "-" "Wget/1.12 (linux-gnu)"
127.0.0.1 - - [12/Mar/2013:15:59:08 -0500] "POST /nagiosql/admin/import.php HTTP/1.0" 200 52653 "-" "Wget/1.12 (linux-gnu)"
127.0.0.1 - - [12/Mar/2013:15:59:08 -0500] "POST /nagiosxi/backend/ HTTP/1.1" 200 725 "-" "BinGet/1.00.A (http://www.bin-co.com/php/scripts/load/)"
204.80.201.50 - - [12/Mar/2013:15:59:08 -0500] "GET /nagiosxi/ajaxhelper.php?cmd=getcommandstatus&opts=1430&nsp=40eadb3409ba7eff114c2431125a9eff HTTP/1.1" 200 236 "http://monitor.megagate.com/nagiosxi/config/configobject.php" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.152 Safari/537.22"
Locked