Page 2 of 2
Re: Graphs not loading and log files not updating
Posted: Fri Dec 18, 2015 12:26 pm
by tgriep
Can you run the following command as root on the nagios system and post the output here?
I would like to see if the the processes are running correctly.
Thanks
Re: Graphs not loading and log files not updating
Posted: Fri Dec 18, 2015 12:42 pm
by neil_davidson
Here you go:
Code: Select all
# ps -ef
UID PID PPID C STIME TTY TIME CMD
root 1 0 0 Dec16 ? 00:00:01 /sbin/init
root 2 0 0 Dec16 ? 00:00:00 [kthreadd]
root 3 2 0 Dec16 ? 00:00:00 [migration/0]
root 4 2 0 Dec16 ? 00:00:01 [ksoftirqd/0]
root 5 2 0 Dec16 ? 00:00:00 [migration/0]
root 6 2 0 Dec16 ? 00:00:26 [watchdog/0]
root 7 2 0 Dec16 ? 00:01:13 [events/0]
root 8 2 0 Dec16 ? 00:00:00 [cgroup]
root 9 2 0 Dec16 ? 00:00:01 [khelper]
root 10 2 0 Dec16 ? 00:00:00 [netns]
root 11 2 0 Dec16 ? 00:00:00 [async/mgr]
root 12 2 0 Dec16 ? 00:00:00 [pm]
root 13 2 0 Dec16 ? 00:00:01 [sync_supers]
root 14 2 0 Dec16 ? 00:00:02 [bdi-default]
root 15 2 0 Dec16 ? 00:00:00 [kintegrityd/0]
root 16 2 0 Dec16 ? 00:03:45 [kblockd/0]
root 17 2 0 Dec16 ? 00:00:00 [kacpid]
root 18 2 0 Dec16 ? 00:00:00 [kacpi_notify]
root 19 2 0 Dec16 ? 00:00:00 [kacpi_hotplug]
root 20 2 0 Dec16 ? 00:00:00 [ata/0]
root 21 2 0 Dec16 ? 00:00:00 [ata_aux]
root 22 2 0 Dec16 ? 00:00:00 [ksuspend_usbd]
root 23 2 0 Dec16 ? 00:00:00 [khubd]
root 24 2 0 Dec16 ? 00:00:00 [kseriod]
root 25 2 0 Dec16 ? 00:00:00 [md/0]
root 26 2 0 Dec16 ? 00:00:00 [md_misc/0]
root 27 2 0 Dec16 ? 00:00:00 [khungtaskd]
root 28 2 0 Dec16 ? 00:00:00 [kswapd0]
root 29 2 0 Dec16 ? 00:00:00 [ksmd]
root 30 2 0 Dec16 ? 00:00:14 [khugepaged]
root 31 2 0 Dec16 ? 00:00:00 [aio/0]
root 32 2 0 Dec16 ? 00:00:00 [crypto/0]
root 37 2 0 Dec16 ? 00:00:00 [kthrotld/0]
root 38 2 0 Dec16 ? 00:00:00 [pciehpd]
root 40 2 0 Dec16 ? 00:00:00 [kpsmoused]
root 41 2 0 Dec16 ? 00:00:00 [usbhid_resumer]
root 72 2 0 Dec16 ? 00:00:00 [kstriped]
root 246 2 0 Dec16 ? 00:00:11 [mpt_poll_0]
root 247 2 0 Dec16 ? 00:00:00 [mpt/0]
root 248 2 0 Dec16 ? 00:00:00 [scsi_eh_0]
root 256 2 0 Dec16 ? 00:00:00 [scsi_eh_1]
root 257 2 0 Dec16 ? 00:00:00 [scsi_eh_2]
root 445 2 0 Dec16 ? 00:00:00 [kdmflush]
root 447 2 0 Dec16 ? 00:00:00 [kdmflush]
root 466 2 0 Dec16 ? 00:03:53 [jbd2/dm-1-8]
root 467 2 0 Dec16 ? 00:00:00 [ext4-dio-unwrit]
root 495 2 0 Dec16 ? 00:14:41 [flush-253:1]
root 547 1 0 Dec16 ? 00:00:00 /sbin/udevd -d
root 740 2 0 Dec16 ? 00:00:03 [vmmemctl]
root 921 547 0 Dec16 ? 00:00:00 /sbin/udevd -d
root 1032 2 0 Dec16 ? 00:00:00 [kauditd]
root 1235 1 0 Dec16 ? 00:00:27 auditd
root 1251 1 0 Dec16 ? 00:00:02 /sbin/rsyslogd -i /var/run/syslo
dbus 1367 1 0 Dec16 ? 00:00:00 dbus-daemon --system
avahi 1378 1 0 Dec16 ? 00:00:00 avahi-daemon: running [linux.loc
avahi 1379 1378 0 Dec16 ? 00:00:00 avahi-daemon: chroot helper
root 1402 1 0 Dec16 ? 00:00:00 /usr/sbin/acpid
68 1411 1 0 Dec16 ? 00:00:00 hald
root 1412 1411 0 Dec16 ? 00:00:00 hald-runner
root 1440 1412 0 Dec16 ? 00:00:00 hald-addon-input: Listening on /
68 1450 1412 0 Dec16 ? 00:00:00 hald-addon-acpi: listening on ac
root 1470 1 0 Dec16 ? 00:00:00 /usr/sbin/sshd
root 1481 1 0 Dec16 ? 00:00:00 xinetd -stayalive -pidfile /var/
ntp 1489 1 0 Dec16 ? 00:00:00 ntpd -u ntp:ntp -p /var/run/ntpd
root 1534 1 0 Dec16 ? 00:00:00 /bin/sh /usr/bin/mysqld_safe --d
mysql 1623 1534 0 Dec16 ? 00:10:00 /usr/libexec/mysqld --basedir=/u
postgres 1665 1 0 Dec16 ? 00:00:11 /usr/bin/postmaster -p 5432 -D /
postgres 1681 1665 0 Dec16 ? 00:00:13 postgres: logger process
root 1770 1 0 Dec16 ? 00:00:00 /usr/libexec/postfix/master
postfix 1792 1770 0 Dec16 ? 00:00:00 qmgr -l -t fifo -u
postgres 1806 1665 0 Dec16 ? 00:02:27 postgres: writer process
postgres 1807 1665 0 Dec16 ? 00:01:25 postgres: wal writer process
postgres 1808 1665 0 Dec16 ? 00:00:28 postgres: autovacuum launcher pr
postgres 1809 1665 0 Dec16 ? 00:00:32 postgres: stats collector proces
root 1810 1 0 Dec16 ? 00:00:00 /usr/sbin/abrtd
root 1818 1 0 Dec16 ? 00:00:01 abrt-dump-oops -d /var/spool/abr
root 1826 1 0 Dec16 ? 00:00:16 /usr/sbin/httpd
root 1834 1 0 Dec16 ? 00:00:04 crond
root 1856 1 0 Dec16 ? 00:00:00 /usr/sbin/atd
nagios 1873 1 0 Dec16 ? 00:00:00 /usr/local/nagios/bin/ndo2db -c
ajaxterm 1880 1 0 Dec16 ? 00:00:43 python /usr/share/ajaxterm/ajaxt
nagios 1899 1 0 Dec16 ? 00:03:32 /usr/local/nagios/bin/nagios -d
nagios 1906 1899 0 Dec16 ? 00:00:07 /usr/local/nagios/bin/nagios --w
nagios 1907 1899 0 Dec16 ? 00:00:06 /usr/local/nagios/bin/nagios --w
nagios 1908 1899 0 Dec16 ? 00:00:06 /usr/local/nagios/bin/nagios --w
nagios 1909 1899 0 Dec16 ? 00:00:06 /usr/local/nagios/bin/nagios --w
nagios 1913 1873 0 Dec16 ? 00:00:05 /usr/local/nagios/bin/ndo2db -c
nagios 1914 1913 0 Dec16 ? 00:03:29 /usr/local/nagios/bin/ndo2db -c
root 1920 1 0 Dec16 tty1 00:00:00 /sbin/mingetty /dev/tty1
root 1922 1 0 Dec16 tty2 00:00:00 /sbin/mingetty /dev/tty2
root 1924 1 0 Dec16 tty3 00:00:00 /sbin/mingetty /dev/tty3
root 1926 1 0 Dec16 tty4 00:00:00 /sbin/mingetty /dev/tty4
root 1928 1 0 Dec16 tty5 00:00:00 /sbin/mingetty /dev/tty5
root 1930 1 0 Dec16 tty6 00:00:00 /sbin/mingetty /dev/tty6
nagios 1936 1899 0 Dec16 ? 00:00:40 /usr/local/nagios/bin/nagios -d
postfix 8331 1770 0 12:00 ? 00:00:00 pickup -l -t fifo -u
nagios 8532 1 0 Dec16 ? 00:00:01 /usr/local/pnp4nagios/bin/npcd -
apache 21132 1826 0 06:17 ? 00:02:38 /usr/sbin/httpd
postgres 21157 1665 0 06:17 ? 00:00:04 postgres: nagiosxi nagiosxi 127.
root 21326 1834 0 12:41 ? 00:00:00 CROND
root 21327 1834 0 12:41 ? 00:00:00 CROND
root 21328 1834 0 12:41 ? 00:00:00 CROND
root 21329 1834 0 12:41 ? 00:00:00 CROND
root 21330 1834 0 12:41 ? 00:00:00 CROND
nagios 21331 21327 0 12:41 ? 00:00:00 /bin/sh -c /usr/bin/php -q /usr/
nagios 21332 21330 0 12:41 ? 00:00:00 /bin/sh -c /usr/bin/php -q /usr/
nagios 21334 21328 0 12:41 ? 00:00:00 /bin/sh -c /usr/bin/php -q /usr/
nagios 21335 21329 0 12:41 ? 00:00:00 /bin/sh -c /usr/bin/php -q /usr/
nagios 21336 21326 0 12:41 ? 00:00:00 /bin/sh -c /usr/bin/php -q /usr/
nagios 21338 21332 0 12:41 ? 00:00:00 /usr/bin/php -q /usr/local/nagio
nagios 21340 21334 0 12:41 ? 00:00:00 /usr/bin/php -q /usr/local/nagio
nagios 21342 21335 0 12:41 ? 00:00:00 /usr/bin/php -q /usr/local/nagio
nagios 21343 21336 0 12:41 ? 00:00:00 /usr/bin/php -q /usr/local/nagio
nagios 21344 21331 0 12:41 ? 00:00:00 /usr/bin/php -q /usr/local/nagio
root 21347 1470 0 12:41 ? 00:00:00 sshd: root@pts/0
postgres 21366 1665 0 12:41 ? 00:00:00 postgres: nagiosxi nagiosxi 127.
postgres 21368 1665 0 12:41 ? 00:00:00 postgres: nagiosxi nagiosxi 127.
postgres 21375 1665 0 12:41 ? 00:00:00 postgres: nagiosxi nagiosxi 127.
postgres 21381 1665 0 12:41 ? 00:00:00 postgres: nagiosxi nagiosxi 127.
postgres 21400 1665 0 12:41 ? 00:00:00 postgres: nagiosxi nagiosxi 127.
root 21481 21347 0 12:41 pts/0 00:00:00 -bash
root 21581 21481 0 12:41 pts/0 00:00:00 ps -ef
apache 22312 1826 0 06:20 ? 00:02:35 /usr/sbin/httpd
postgres 22356 1665 0 06:20 ? 00:00:04 postgres: nagiosxi nagiosxi 127.
apache 26204 1826 0 06:30 ? 00:02:25 /usr/sbin/httpd
postgres 26236 1665 0 06:30 ? 00:00:04 postgres: nagiosxi nagiosxi 127.
apache 27614 1826 0 06:34 ? 00:02:25 /usr/sbin/httpd
postgres 27619 1665 0 06:34 ? 00:00:04 postgres: nagiosxi nagiosxi 127.
apache 29847 1826 0 06:40 ? 00:02:19 /usr/sbin/httpd
postgres 29878 1665 0 06:40 ? 00:00:04 postgres: nagiosxi nagiosxi 127.
apache 30026 1826 0 06:40 ? 00:02:21 /usr/sbin/httpd
postgres 30053 1665 0 06:40 ? 00:00:04 postgres: nagiosxi nagiosxi 127.
apache 30340 1826 0 06:41 ? 00:02:23 /usr/sbin/httpd
postgres 30428 1665 0 06:41 ? 00:00:04 postgres: nagiosxi nagiosxi 127.
apache 30711 1826 0 06:42 ? 00:02:23 /usr/sbin/httpd
postgres 30760 1665 0 06:42 ? 00:00:04 postgres: nagiosxi nagiosxi 127.
apache 32227 1826 0 06:46 ? 00:02:16 /usr/sbin/httpd
postgres 32235 1665 0 06:46 ? 00:00:04 postgres: nagiosxi nagiosxi 127.
apache 32693 1826 0 06:47 ? 00:02:16 /usr/sbin/httpd
postgres 32712 1665 0 06:47 ? 00:00:03 postgres: nagiosxi nagiosxi 127.
Re: Graphs not loading and log files not updating
Posted: Fri Dec 18, 2015 3:18 pm
by tgriep
It looks like someone implemented pnp4nagios on your system and that is causing the issues. Any chance you can remove it?
Re: Graphs not loading and log files not updating
Posted: Fri Dec 18, 2015 5:28 pm
by neil_davidson
It was probably Past-Me - he's always getting me into jams like this, but my memory's such that I never remember. I'll do some digging on pnp4nagios on Monday and see if I can get it working. If not, I'll try removing it.
Thanks!
Re: Graphs not loading and log files not updating
Posted: Mon Dec 21, 2015 10:20 am
by hsmith
Let us know what you come up with. Thanks!
Re: Graphs not loading and log files not updating
Posted: Mon Dec 21, 2015 4:06 pm
by neil_davidson
Okay, I'm back in business. I didn't realize that NagiosXI already includes pnp4nagios, or at least some aspects of it, and trying to install over top of it breaks the graphs.
I was in a limbo where if I tried to remove it, it would tell me that it wasn't installed, and if I tried to install it I would get dependency errors. I was able to restore the default configuration by running ./install in the <nagiosxi install>/subcomponents/pnp directory. The perfdata files are now being processed and I'm starting to get graph information once again.
Thanks to all for your help!
Re: Graphs not loading and log files not updating
Posted: Mon Dec 21, 2015 4:20 pm
by rkennedy
Different versions of pnp4nagios as it's built a specific way in the process with XI. Glad to see this resolved though!
I'll close this thread out now, but feel free to open a new one if you ever need assistance in the future!