Page 1 of 2
Nagios XI service count not same in Service Summary and CCM
Posted: Mon Sep 26, 2016 4:50 pm
by swethog
Background: We had a network issue that sent our Nagios XI (5.2.9) instance spiraling out of control to a load of >500 and PHP processes in the hundreds. Before it was determined to be an actual network issue the step was taken to kill all PHP processes. Since the outage we have recycled the Nagios XI server a couple of times to see if this issue clears up but it has not.
Issue:
CCM (2.5.2) is showing 4854 services but he Service Status Summary is showing 19560 services. The SSS is showing roughly 4x the number of services. If I look at Service Detail I see 4 of just about each service listed. Going to Services in CCM I only see 4854 services.
Data: Instead of attaching screencaps hopefully this will be enough.
Services
Displaying 1-15 of 4854 results
-----
CCM Object Summary
Click on an item to view it in more detail.
613Hosts 4854Services 16Host Groups 0Service Groups 34Contacts 10Contact Groups 129Commands 0Host Dependencies 0Service Dependencies
-----
Service Status Summary
Ok Warning Unknown Critical Pending
19540
0
0
20
0
Unhandled Problems All
20
20
19560
Any ideas what I can do to get the Service Details and Summary sections to match the count in CCM?
Re: Nagios XI service count not same in Service Summary and
Posted: Mon Sep 26, 2016 4:55 pm
by ssax
I don't think you can because you can have one service attached to a hostgroup which could have any number of hosts in it, there would technically only be one service, all the other hosts would inherit the service.
Re: Nagios XI service count not same in Service Summary and
Posted: Mon Sep 26, 2016 5:13 pm
by swethog
I deleted one of the services through the interface (not CCM) and two instances of it were removed. The two that were left though show pending and multiple forced checks do not show any result. Starting to get concerned there may be some bad db corruption, running the builtin backup now.
Re: Nagios XI service count not same in Service Summary and
Posted: Mon Sep 26, 2016 6:55 pm
by Box293
What is the output of:
Can you please run these commands
Code: Select all
tail /var/log/messages -n 100 > /tmp/messages_log.txt
tail /var/log/httpd/error_log -n 100 > /tmp/httpd_log.txt
tail /var/log/mysqld.log -n 100 > /tmp/mysqld_log.txt
Send us these files:
/tmp/messages_log.txt
/tmp/httpd_log.txt
/tmp/mysqld_log.txt
Re: Nagios XI service count not same in Service Summary and
Posted: Tue Sep 27, 2016 9:18 am
by swethog
PM sent.
Re: Nagios XI service count not same in Service Summary and
Posted: Tue Sep 27, 2016 2:25 pm
by tmcdonald
Sorry for the duplication, but can you send those to myself as well? Troy is based in Australia so we won't be able to get the files from him for a few hours.
Files received and placed on shared drive
Re: Nagios XI service count not same in Service Summary and
Posted: Tue Sep 27, 2016 2:34 pm
by swethog
No worries, totally understand. PM sent.
Re: Nagios XI service count not same in Service Summary and
Posted: Tue Sep 27, 2016 2:48 pm
by tgriep
The Core Config Manager stores it's files in the MYSQL database and when you Apply the Config, it writes those settings to the files that the Nagios Process uses to run the check.
They could of become out of sync and is you feel that the number in the CCM is correct, you can run the following to sync them up.
Go to the Core Config Manager
Under "Tools", click "Write Config Files"
Click the "Delete" button then click the "Write" button and then the "Verify" button
If you get any errors, resolve them and click on the "Write", "Verify" until all of the errors are resolved.
Click the Apply Configuration link and click the "Apply Configuration" button
If this doesn't sync the files, run the following and post it here.
Code: Select all
ps -ef --cols=300
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Re: Nagios XI service count not same in Service Summary and
Posted: Mon Oct 03, 2016 11:08 am
by swethog
I did the Delete, Write, and Verify. Cleared some warnings and still see 4,841 services in CCM Object History but 19,572 services in Service Status Summary.
Output of the two commands below, I cleaned up a couple of lines where checks are running against named hosts and IPs.
Code: Select all
[root@mon-server ~]# ps -ef --cols=300
UID PID PPID C STIME TTY TIME CMD
root 1 0 0 Sep22 ? 00:00:01 init [3]
root 2 1 0 Sep22 ? 00:00:56 [migration/0]
root 3 1 0 Sep22 ? 00:00:00 [ksoftirqd/0]
root 4 1 0 Sep22 ? 00:01:44 [migration/1]
root 5 1 0 Sep22 ? 00:00:00 [ksoftirqd/1]
root 6 1 0 Sep22 ? 00:00:49 [migration/2]
root 7 1 0 Sep22 ? 00:00:00 [ksoftirqd/2]
root 8 1 0 Sep22 ? 00:02:01 [migration/3]
root 9 1 0 Sep22 ? 00:00:00 [ksoftirqd/3]
root 10 1 0 Sep22 ? 00:00:49 [migration/4]
root 11 1 0 Sep22 ? 00:00:00 [ksoftirqd/4]
root 12 1 0 Sep22 ? 00:02:01 [migration/5]
root 13 1 0 Sep22 ? 00:00:00 [ksoftirqd/5]
root 14 1 0 Sep22 ? 00:00:48 [migration/6]
root 15 1 0 Sep22 ? 00:00:00 [ksoftirqd/6]
root 16 1 0 Sep22 ? 00:02:00 [migration/7]
root 17 1 0 Sep22 ? 00:00:00 [ksoftirqd/7]
root 18 1 0 Sep22 ? 00:00:01 [events/0]
root 19 1 0 Sep22 ? 00:00:00 [events/1]
root 20 1 0 Sep22 ? 00:00:01 [events/2]
root 21 1 0 Sep22 ? 00:00:00 [events/3]
root 22 1 0 Sep22 ? 00:00:01 [events/4]
root 23 1 0 Sep22 ? 00:00:00 [events/5]
root 24 1 0 Sep22 ? 00:00:01 [events/6]
root 25 1 0 Sep22 ? 00:00:00 [events/7]
root 26 1 0 Sep22 ? 00:00:00 [khelper]
root 131 1 0 Sep22 ? 00:00:00 [kthread]
root 142 131 0 Sep22 ? 00:00:03 [kblockd/0]
root 143 131 0 Sep22 ? 00:00:00 [kblockd/1]
root 144 131 0 Sep22 ? 00:00:00 [kblockd/2]
root 145 131 0 Sep22 ? 00:00:00 [kblockd/3]
root 146 131 0 Sep22 ? 00:00:00 [kblockd/4]
root 147 131 0 Sep22 ? 00:00:00 [kblockd/5]
root 148 131 0 Sep22 ? 00:00:00 [kblockd/6]
root 149 131 0 Sep22 ? 00:00:00 [kblockd/7]
root 150 131 0 Sep22 ? 00:00:00 [kacpid]
root 309 131 0 Sep22 ? 00:00:00 [cqueue/0]
root 310 131 0 Sep22 ? 00:00:00 [cqueue/1]
root 311 131 0 Sep22 ? 00:00:00 [cqueue/2]
root 312 131 0 Sep22 ? 00:00:00 [cqueue/3]
root 313 131 0 Sep22 ? 00:00:00 [cqueue/4]
root 314 131 0 Sep22 ? 00:00:00 [cqueue/5]
root 315 131 0 Sep22 ? 00:00:00 [cqueue/6]
root 316 131 0 Sep22 ? 00:00:00 [cqueue/7]
root 319 131 0 Sep22 ? 00:00:00 [khubd]
root 321 131 0 Sep22 ? 00:00:00 [kseriod]
root 447 131 0 Sep22 ? 00:00:00 [khungtaskd]
root 450 131 0 Sep22 ? 00:00:27 [kswapd0]
root 451 131 0 Sep22 ? 00:00:00 [aio/0]
root 452 131 0 Sep22 ? 00:00:00 [aio/1]
root 453 131 0 Sep22 ? 00:00:00 [aio/2]
root 454 131 0 Sep22 ? 00:00:00 [aio/3]
root 455 131 0 Sep22 ? 00:00:00 [aio/4]
root 456 131 0 Sep22 ? 00:00:00 [aio/5]
root 457 131 0 Sep22 ? 00:00:00 [aio/6]
root 458 131 0 Sep22 ? 00:00:00 [aio/7]
root 660 131 0 Sep22 ? 00:00:00 [kpsmoused]
root 671 1 0 Sep22 ? 00:00:00 /usr/libexec/notification-daemon
root 770 131 0 Sep22 ? 00:00:00 [mpt_poll_0]
root 771 131 0 Sep22 ? 00:00:00 [mpt/0]
root 772 131 0 Sep22 ? 00:00:00 [scsi_eh_0]
root 782 131 0 Sep22 ? 00:00:00 [ata/0]
root 783 131 0 Sep22 ? 00:00:00 [ata/1]
root 784 131 0 Sep22 ? 00:00:00 [ata/2]
root 785 131 0 Sep22 ? 00:00:00 [ata/3]
root 786 131 0 Sep22 ? 00:00:00 [ata/4]
root 787 131 0 Sep22 ? 00:00:00 [ata/5]
root 788 131 0 Sep22 ? 00:00:00 [ata/6]
root 789 131 0 Sep22 ? 00:00:00 [ata/7]
root 790 131 0 Sep22 ? 00:00:00 [ata_aux]
root 809 131 0 Sep22 ? 00:00:00 [kstriped]
root 846 131 0 Sep22 ? 00:00:00 [ksnapd]
root 912 131 0 Sep22 ? 00:13:59 [kjournald]
root 938 131 0 Sep22 ? 00:00:01 [kauditd]
root 971 1 0 Sep22 ? 00:00:00 /sbin/udevd -d
postgres 1671 5068 0 08:48 ? 00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(33530) idle
root 2543 131 0 Sep22 ? 00:00:00 [kmpathd/0]
root 2544 131 0 Sep22 ? 00:00:00 [kmpathd/1]
root 2545 131 0 Sep22 ? 00:00:00 [kmpathd/2]
root 2546 131 0 Sep22 ? 00:00:00 [kmpathd/3]
root 2547 131 0 Sep22 ? 00:00:00 [kmpathd/4]
root 2548 131 0 Sep22 ? 00:00:00 [kmpathd/5]
root 2549 131 0 Sep22 ? 00:00:00 [kmpathd/6]
root 2550 131 0 Sep22 ? 00:00:00 [kmpathd/7]
root 2551 131 0 Sep22 ? 00:00:00 [kmpath_handlerd]
root 2573 131 0 Sep22 ? 00:00:00 [kjournald]
nagios 3018 1 0 Sep28 ? 00:00:05 /usr/local/nagios/bin/npcd -d -f /usr/local/nagios/etc/pnp/npcd.cfg
root 3050 131 0 Sep22 ? 00:00:00 [vmmemctl]
root 3229 1 0 Sep22 ? 00:00:45 /usr/sbin/vmtoolsd
root 3280 1 0 Sep22 ? 00:00:00 /usr/lib/vmware-vgauth/VGAuthService -s
root 3382 1 0 Sep22 ? 00:00:02 ./ManagementAgentHost
root 3445 131 0 Sep22 ? 00:00:00 [iscsi_eh]
root 3552 131 0 Sep22 ? 00:00:00 [cnic_wq]
root 3562 131 0 Sep22 ? 00:00:00 [bnx2i_thread/0]
root 3563 131 0 Sep22 ? 00:00:00 [bnx2i_thread/1]
root 3564 131 0 Sep22 ? 00:00:00 [bnx2i_thread/2]
root 3565 131 0 Sep22 ? 00:00:00 [bnx2i_thread/3]
root 3566 131 0 Sep22 ? 00:00:00 [bnx2i_thread/4]
root 3567 131 0 Sep22 ? 00:00:00 [bnx2i_thread/5]
root 3568 131 0 Sep22 ? 00:00:00 [bnx2i_thread/6]
root 3569 131 0 Sep22 ? 00:00:00 [bnx2i_thread/7]
root 3594 131 0 Sep22 ? 00:00:00 [ib_addr]
root 3623 131 0 Sep22 ? 00:00:00 [ib_mcast]
root 3624 131 0 Sep22 ? 00:00:00 [ib_inform]
root 3625 131 0 Sep22 ? 00:00:00 [local_sa]
root 3635 131 0 Sep22 ? 00:00:00 [iw_cm_wq]
root 3645 131 0 Sep22 ? 00:00:00 [ib_cm/0]
root 3646 131 0 Sep22 ? 00:00:00 [ib_cm/1]
root 3647 131 0 Sep22 ? 00:00:00 [ib_cm/2]
root 3648 131 0 Sep22 ? 00:00:00 [ib_cm/3]
root 3649 131 0 Sep22 ? 00:00:00 [ib_cm/4]
root 3650 131 0 Sep22 ? 00:00:00 [ib_cm/5]
root 3651 131 0 Sep22 ? 00:00:00 [ib_cm/6]
root 3652 131 0 Sep22 ? 00:00:00 [ib_cm/7]
root 3662 131 0 Sep22 ? 00:00:00 [rdma_cm]
root 3690 1 0 Sep22 ? 00:00:00 iscsiuio
root 3697 1 0 Sep22 ? 00:00:00 iscsid
root 3698 1 0 Sep22 ? 00:00:00 iscsid
root 4118 1 0 Sep22 ? 00:00:18 auditd
root 4120 4118 0 Sep22 ? 00:00:07 /sbin/audispd
root 4153 1 0 Sep22 ? 00:00:18 syslogd -m 0
root 4156 1 0 Sep22 ? 00:00:00 klogd -x
root 4314 1 0 Sep22 ? 00:00:05 irqbalance
rpc 4347 1 0 Sep22 ? 00:00:00 portmap
root 4389 131 0 Sep22 ? 00:00:00 [rpciod/0]
root 4390 131 0 Sep22 ? 00:00:00 [rpciod/1]
root 4391 131 0 Sep22 ? 00:00:00 [rpciod/2]
root 4392 131 0 Sep22 ? 00:00:00 [rpciod/3]
root 4393 131 0 Sep22 ? 00:00:00 [rpciod/4]
root 4394 131 0 Sep22 ? 00:00:00 [rpciod/5]
root 4395 131 0 Sep22 ? 00:00:00 [rpciod/6]
root 4396 131 0 Sep22 ? 00:00:00 [rpciod/7]
rpcuser 4409 1 0 Sep22 ? 00:00:00 rpc.statd
root 4447 1 0 Sep22 ? 00:00:00 rpc.idmapd
root 4484 1 0 Sep22 ? 00:00:00 /usr/sbin/hv_kvp_daemon
root 4503 1 0 Sep22 ? 00:00:00 /opt/VRTSpbx/bin/pbx_exchange
dbus 4522 1 0 Sep22 ? 00:00:11 dbus-daemon --system
root 4599 1 0 Sep22 ? 00:00:00 pcscd
root 4614 1 0 Sep22 ? 00:00:00 /usr/sbin/acpid
68 4628 1 0 Sep22 ? 00:00:10 hald
root 4629 4628 0 Sep22 ? 00:00:00 hald-runner
68 4638 4629 0 Sep22 ? 00:00:00 hald-addon-acpi: listening on acpid socket /var/run/acpid.socket
68 4642 4629 0 Sep22 ? 00:00:00 hald-addon-keyboard: listening on /dev/input/event0
root 4652 4629 0 Sep22 ? 00:01:24 hald-addon-storage: polling /dev/hdc
root 4721 1 0 Sep22 ? 00:00:00 automount --pid-file /var/run/autofs.pid
root 4744 1 0 Sep22 ? 00:00:00 /usr/bin/perl /usr/sbin/snmptt --daemon
snmptt 4745 4744 0 Sep22 ? 00:00:00 /usr/bin/perl /usr/sbin/snmptt --daemon
root 4759 1 0 Sep22 ? 00:00:00 ./hpiod
root 4764 1 0 Sep22 ? 00:00:00 /usr/bin/python ./hpssd.py
root 4780 1 0 Sep22 ? 00:01:39 /usr/sbin/snmpd -Lsd -Lf /dev/null -p /var/run/snmpd.pid -a
root 4795 1 0 Sep22 ? 00:00:00 /usr/sbin/snmptrapd -Lsd -p /var/run/snmptrapd.pid
root 4812 1 0 Sep22 ? 00:00:00 /usr/sbin/sshd
root 4826 1 0 Sep22 ? 00:00:00 cupsd
root 4844 1 0 Sep22 ? 00:00:00 xinetd -stayalive -pidfile /var/run/xinetd.pid
ntp 4861 1 0 Sep22 ? 00:00:00 ntpd -u ntp:ntp -p /var/run/ntpd.pid -g
nagios 4898 1 0 Sep28 ? 00:00:00 /usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg
root 4903 1 0 Sep22 ? 00:00:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --socket=/var/lib/mysql/mysql.sock --pid-file=/var/run/mysqld/mysqld.pid --basedir=/usr --user=mysql
mysql 4985 4903 3 Sep22 ? 08:42:43 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid --skip-external-locking --log-error=/var/log/mysqld.log --socket=/var/lib/mysql/mysql.sock
postgres 5068 1 0 Sep22 ? 00:00:51 /usr/bin/postmaster -p 5432 -D /var/lib/pgsql/data
postgres 5070 5068 0 Sep22 ? 00:00:00 postgres: logger process
postgres 5072 5068 0 Sep22 ? 00:00:05 postgres: writer process
postgres 5073 5068 0 Sep22 ? 00:00:08 postgres: stats buffer process
postgres 5074 5073 0 Sep22 ? 00:00:05 postgres: stats collector process
root 5087 1 0 Sep22 ? 00:00:00 /usr/openv/netbackup/bin/vnetd -standalone
root 5095 1 0 Sep22 ? 00:00:00 /usr/openv/netbackup/bin/bpcd -standalone
root 5109 1 0 Sep22 ? 00:00:27 /usr/openv/netbackup/bin/nbdisco
root 5154 1 0 Sep22 ? 00:00:01 sendmail: accepting connections
smmsp 5169 1 0 Sep22 ? 00:00:00 sendmail: Queue runner@01:00:00 for /var/spool/clientmqueue
root 5184 1 0 Sep22 ? 00:00:00 gpm -m /dev/input/mice -t exps2
root 5199 1 0 Sep22 ? 00:00:01 /usr/sbin/httpd
root 5213 1 0 Sep22 ? 00:00:05 crond
xfs 5257 1 0 Sep22 ? 00:00:00 xfs -droppriv -daemon
root 5311 1 0 Sep22 ? 00:00:01 Xvnc :1 -desktop <mon-server>:1 (root) -httpd /usr/share/vnc/classes -auth /root/.Xauthority -geometry 1024x768 -depth 16 -rfbwait 30000 -rfbauth /root/.vnc/passwd -rfbport 5901 -pn
root 5324 1 0 Sep22 ? 00:00:00 /usr/bin/gnome-session
root 5374 1 0 Sep22 ? 00:00:00 /usr/sbin/atd
avahi 5422 1 0 Sep22 ? 00:00:00 avahi-daemon: running [<mon-server>.local]
avahi 5423 5422 0 Sep22 ? 00:00:00 avahi-daemon: chroot helper
root 5430 5324 0 Sep22 ? 00:00:00 [xinitrc] <defunct>
root 5433 5324 0 Sep22 ? 00:00:00 /usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session /etc/X11/xinit/Xclients
root 5436 1 0 Sep22 ? 00:00:00 /usr/bin/dbus-launch --exit-with-session /etc/X11/xinit/Xclients
root 5437 1 0 Sep22 ? 00:00:00 /bin/dbus-daemon --fork --print-pid 4 --print-address 6 --session
root 5458 1 0 Sep22 ? 00:00:00 /usr/libexec/gconfd-2 5
ajaxterm 5459 1 0 Sep22 ? 00:00:01 python /usr/share/ajaxterm/ajaxterm.py --daemon --port=8022 --uid=ajaxterm
root 5487 1 0 Sep22 ? 00:00:00 /usr/bin/gnome-keyring-daemon
root 5491 1 0 Sep22 ? 00:00:00 /usr/libexec/gnome-settings-daemon
root 5497 1 0 Sep22 ? 00:00:21 /usr/bin/python -tt /usr/sbin/yum-updatesd
root 5500 1 0 Sep22 ? 00:00:00 /usr/libexec/gam_server
root 5510 1 0 Sep22 ? 00:00:00 /usr/lib64/scim-1.0/scim-launcher -d -c simple -e all -f socket --no-stay
root 5513 1 0 Sep22 ? 00:00:00 metacity --sm-client-id=default1
root 5517 1 0 Sep22 ? 00:00:00 gnome-panel --sm-client-id default2
root 5519 1 0 Sep22 ? 00:00:01 nautilus --no-default-window --sm-client-id default3
root 5523 1 0 Sep22 ? 00:00:00 /usr/libexec/bonobo-activation-server --ac-activate --ior-output-fd=16
root 5529 1 0 Sep22 ? 00:00:00 eggcups --sm-client-id default4
root 5530 1 0 Sep22 ? 00:00:00 /usr/lib64/scim-1.0/scim-helper-manager
root 5531 1 0 Sep22 ? 00:00:00 /usr/lib64/scim-1.0/scim-panel-gtk --display :1.0 -c socket -d --no-stay
root 5533 1 0 Sep22 ? 00:00:00 /usr/lib64/scim-1.0/scim-launcher -d -c socket -e socket -f x11
root 5535 1 0 Sep22 ? 00:00:00 /usr/libexec/gnome-vfs-daemon
root 5544 1 0 Sep22 ? 00:00:08 /usr/lib/vmware-tools/sbin64/vmtoolsd -n vmusr
root 5573 1 0 Sep22 ? 00:00:00 bt-applet --sm-disable
root 5579 1 0 Sep22 ? 00:00:06 /usr/bin/python -tt /usr/bin/puplet
root 5581 1 0 Sep22 ? 00:00:00 nm-applet --sm-disable
root 5582 1 0 Sep22 ? 00:00:00 ./escd --key_Inserted="/usr/bin/esc" --on_Signal="/usr/bin/esc"
root 5587 1 0 Sep22 ? 00:00:00 pam-panel-icon --sm-client-id default0
root 5595 1 0 Sep22 ? 00:00:00 /usr/sbin/nm-system-settings --config /etc/NetworkManager/nm-system-settings.conf
root 5596 5587 0 Sep22 ? 00:00:00 /sbin/pam_timestamp_check -d root
root 5597 1 0 Sep22 ? 00:00:08 gnome-power-manager
root 5600 1 0 Sep22 ? 00:00:00 /usr/libexec/trashapplet --oaf-activate-iid=OAFIID:GNOME_Panel_TrashApplet_Factory --oaf-ior-fd=19
root 5602 1 0 Sep22 ? 00:00:00 /usr/libexec/wnck-applet --oaf-activate-iid=OAFIID:GNOME_Wncklet_Factory --oaf-ior-fd=25
root 5649 1 0 Sep22 ? 00:00:00 /usr/libexec/notification-area-applet --oaf-activate-iid=OAFIID:GNOME_NotificationAreaApplet_Factory --oaf-ior-fd=20
root 5651 1 0 Sep22 ? 00:00:00 /usr/libexec/clock-applet --oaf-activate-iid=OAFIID:GNOME_ClockApplet_Factory --oaf-ior-fd=29
root 5653 1 0 Sep22 ? 00:00:00 /usr/libexec/mixer_applet2 --oaf-activate-iid=OAFIID:GNOME_MixerApplet_Factory --oaf-ior-fd=35
root 5660 1 0 Sep22 ? 00:00:00 /usr/libexec/mapping-daemon
root 5711 1 0 Sep22 ? 00:00:00 /usr/sbin/smartd -q never
root 5715 1 0 Sep22 ? 00:00:00 login -- root
root 5716 1 0 Sep22 tty2 00:00:00 /sbin/mingetty tty2
root 5717 1 0 Sep22 tty3 00:00:00 /sbin/mingetty tty3
root 5718 1 0 Sep22 tty4 00:00:00 /sbin/mingetty tty4
root 5719 1 0 Sep22 tty5 00:00:00 /sbin/mingetty tty5
root 5721 1 0 Sep22 tty6 00:00:00 /sbin/mingetty tty6
postgres 6586 5068 0 10:32 ? 00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(45320) idle
apache 7067 5199 1 Oct02 ? 00:22:50 /usr/sbin/httpd
apache 7068 5199 1 Oct02 ? 00:23:23 /usr/sbin/httpd
apache 7069 5199 1 Oct02 ? 00:23:25 /usr/sbin/httpd
apache 7070 5199 1 Oct02 ? 00:23:05 /usr/sbin/httpd
apache 7071 5199 1 Oct02 ? 00:23:39 /usr/sbin/httpd
apache 7073 5199 1 Oct02 ? 00:23:08 /usr/sbin/httpd
apache 7075 5199 1 Oct02 ? 00:25:28 /usr/sbin/httpd
apache 7076 5199 1 Oct02 ? 00:23:14 /usr/sbin/httpd
apache 7145 5199 1 08:49 ? 00:02:30 /usr/sbin/httpd
apache 7460 5199 1 08:49 ? 00:02:09 /usr/sbin/httpd
apache 7461 5199 1 08:49 ? 00:02:06 /usr/sbin/httpd
postgres 7598 5068 0 09:12 ? 00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(49394) idle
postgres 7688 5068 0 08:49 ? 00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(33994) idle
nagios 7697 5213 0 10:57 ? 00:00:00 crond
nagios 7698 5213 0 10:57 ? 00:00:00 crond
nagios 7699 5213 0 10:57 ? 00:00:00 crond
nagios 7700 5213 0 10:57 ? 00:00:00 crond
nagios 7701 5213 0 10:57 ? 00:00:00 crond
nagios 7706 7699 0 10:57 ? 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 7708 7697 0 10:57 ? 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 7710 7708 1 10:57 ? 00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php
nagios 7711 7706 1 10:57 ? 00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/eventman.php
nagios 7712 7698 0 10:57 ? 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 7713 7712 1 10:57 ? 00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/feedproc.php
nagios 7714 7701 0 10:57 ? 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 7715 7700 0 10:57 ? 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 7716 7714 1 10:57 ? 00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php
nagios 7717 7715 1 10:57 ? 00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php
postgres 7767 5068 0 10:57 ? 00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(33651) idle
postgres 7785 5068 0 10:57 ? 00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(33652) idle
postgres 7790 5068 0 10:57 ? 00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(33653) idle
postgres 7826 5068 0 10:57 ? 00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(33654) idle
postgres 7829 5068 0 10:57 ? 00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(33655) idle
postgres 7980 5068 0 Oct02 ? 00:00:09 postgres: nagiosxi nagiosxi 127.0.0.1(44294) idle
nagios 8463 1 1 10:50 ? 00:00:07 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios 8474 8463 0 10:50 ? 00:00:00 [nagios] <defunct>
nagios 8481 8463 0 10:50 ? 00:00:00 [nagios] <defunct>
nagios 8533 8463 0 10:50 ? 00:00:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
root 8718 5715 0 Sep22 tty1 00:00:00 -bash
postgres 8979 5068 0 08:49 ? 00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(34067) idle
postgres 8982 5068 0 08:49 ? 00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(34068) idle
postgres 9000 5068 0 08:49 ? 00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(34075) idle
apache 9522 5199 1 Oct02 ? 00:19:54 /usr/sbin/httpd
nagios 9961 8463 0 10:50 ? 00:00:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 9962 8463 0 10:50 ? 00:00:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 9963 8463 0 10:50 ? 00:00:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 9964 8463 0 10:50 ? 00:00:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 9965 8463 0 10:50 ? 00:00:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 9966 8463 0 10:50 ? 00:00:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 9967 8463 0 10:50 ? 00:00:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 9968 8463 0 10:50 ? 00:00:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 9969 8463 0 10:50 ? 00:00:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
root 9970 1 0 Sep22 ? 00:00:00 gnome-screensaver
nagios 9971 8463 0 10:50 ? 00:00:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 9972 8463 0 10:50 ? 00:00:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 9973 8463 0 10:50 ? 00:00:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 9974 4898 0 10:50 ? 00:00:00 /usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg
nagios 9975 9974 8 10:50 ? 00:00:39 /usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg
apache 10433 5199 0 08:49 ? 00:00:00 /usr/sbin/httpd
root 10598 4812 0 08:45 ? 00:00:00 sshd: root@pts/0
root 10637 10598 0 08:45 pts/0 00:00:00 -bash
postgres 11293 5068 0 Oct02 ? 00:00:09 postgres: nagiosxi nagiosxi 127.0.0.1(44354) idle
postgres 11295 5068 0 Oct02 ? 00:00:09 postgres: nagiosxi nagiosxi 127.0.0.1(44355) idle
postgres 11398 5068 0 08:49 ? 00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(34301) idle
apache 11589 5199 1 Oct02 ? 00:23:19 /usr/sbin/httpd
postgres 11634 5068 0 Oct02 ? 00:00:09 postgres: nagiosxi nagiosxi 127.0.0.1(44361) idle
postgres 11635 5068 0 Oct02 ? 00:00:09 postgres: nagiosxi nagiosxi 127.0.0.1(44362) idle
nagios 11913 9963 0 10:57 ? 00:00:00 /usr/local/nagios/libexec/check_nt -H <snip> -s check-server -p 12489 -v SERVICESTATE -l SNMP -d SHOWALL
root 11914 10637 0 10:57 pts/0 00:00:00 ps -ef --cols=300
root 12480 131 0 Sep26 ? 00:08:15 [pdflush]
postgres 12734 5068 0 Oct02 ? 00:00:08 postgres: nagiosxi nagiosxi 127.0.0.1(59252) idle
postgres 14129 5068 0 Oct02 ? 00:00:09 postgres: nagiosxi nagiosxi 127.0.0.1(44402) idle
postgres 15643 5068 0 Oct02 ? 00:00:10 postgres: nagiosxi nagiosxi 127.0.0.1(44435) idle
root 17137 131 0 Sep22 ? 00:05:05 [pdflush]
apache 17588 5199 0 08:46 ? 00:00:16 /usr/sbin/httpd
apache 17732 5199 0 08:46 ? 00:00:00 /usr/sbin/httpd
apache 17733 5199 1 08:46 ? 00:01:58 /usr/sbin/httpd
apache 18035 5199 1 09:31 ? 00:01:14 /usr/sbin/httpd
postgres 18265 5068 0 09:31 ? 00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(33534) idle
apache 20433 5199 1 08:50 ? 00:01:55 /usr/sbin/httpd
apache 20522 5199 1 Oct02 ? 00:23:53 /usr/sbin/httpd
root 20981 8718 0 Sep22 tty1 00:00:12 ping <snip>
postgres 21569 5068 0 08:50 ? 00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(34782) idle
postgres 21729 5068 0 Oct02 ? 00:00:09 postgres: nagiosxi nagiosxi 127.0.0.1(48582) idle
apache 23776 5199 1 Oct02 ? 00:15:59 /usr/sbin/httpd
apache 25323 5199 1 Oct02 ? 00:19:46 /usr/sbin/httpd
postgres 25625 5068 0 08:47 ? 00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(32926) idle
apache 28725 5199 0 08:47 ? 00:00:18 /usr/sbin/httpd
postgres 28728 5068 0 08:47 ? 00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(33055) idle
postgres 29405 5068 0 Oct02 ? 00:00:09 postgres: nagiosxi nagiosxi 127.0.0.1(44632) idle
postgres 29664 5068 0 Oct02 ? 00:00:08 postgres: nagiosxi nagiosxi 127.0.0.1(57965) idle
apache 30065 5199 1 08:47 ? 00:02:00 /usr/sbin/httpd
postgres 30071 5068 0 08:47 ? 00:00:00 postgres: nagiosxi nagiosxi 127.0.0.1(33138) idle
apache 31382 5199 1 10:31 ? 00:00:24 /usr/sbin/httpd
postgres 31724 5068 0 Oct02 ? 00:00:09 postgres: nagiosxi nagiosxi 127.0.0.1(44666) idle
apache 31825 5199 1 09:11 ? 00:01:41 /usr/sbin/httpd
postgres 31999 5068 0 Oct02 ? 00:00:06 postgres: nagiosxi nagiosxi 127.0.0.1(36392) idle
Code: Select all
[root@<mon-server> ~]# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Nagios Core 4.1.1
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 08-19-2015
License: GPL
Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Read object config files okay...
Running pre-flight check on configuration data...
Checking objects...
Checked 4896 services.
Checked 611 hosts.
Checked 16 host groups.
Checked 0 service groups.
Checked 35 contacts.
Checked 10 contact groups.
Checked 125 commands.
Checked 26 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 611 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 26 timeperiods
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
----
Service Status Summary
Ok Warning Unknown Critical Pending
19538 12 0 16 6
Unhandled Problems All
28 28
19572
Re: Nagios XI service count not same in Service Summary and
Posted: Mon Oct 03, 2016 11:44 am
by lmiltchev
Try stopping/starting services:
Code: Select all
service nagios stop
killall nagios
service ndo2db stop
service ndo2db start
service nagios start
Do you have any "extra" configs in the static directory?
Code: Select all
ls -la /usr/local/nagios/etc/static
Do you see the same number of services when you are logged in Nagios Core web UI (as in XI)?