Page 1 of 1
Swap Usage
Posted: Mon Oct 08, 2018 9:43 am
by olmgroup
Hi, my nagios xi server has been showing 100% swap usage for the past 20 hours. Can you tell me what to do either to reduce swap usage or increase the available space?
[martinp@localhost ~]$ swapon -s
Filename Type Size Used Priority
/dev/dm-0 partition 262140 262140 -1
[martinp@localhost ~]$ ls /dev/dm0
ls: cannot access /dev/dm0: No such file or directory
Re: Swap Usage
Posted: Mon Oct 08, 2018 10:45 am
by skang
There may be several options to resolve this. You could increase your RAM, create a new swap partition, create a new swap file, or extend an existing swap volume. The specifics of what needs to be done for any of the options would depend on the specifics of your system.
Re: Swap Usage
Posted: Mon Oct 08, 2018 11:16 am
by benjaminsmith
Have your tried re-starting the system or stopping and restarting Nagios?
Please post the output to the following:
To check for other/multiple processes?
Thank you.
Re: Swap Usage
Posted: Tue Oct 09, 2018 11:32 am
by olmgroup
[martinp@localhost ~]$ free -m
total used free shared buffers cached
Mem: 15950 11713 4236 41 199 9139
-/+ buffers/cache: 2375 13574
Swap: 255 255 0
[martinp@localhost ~]$
nagios 12770 1.2 0.1 321132 23424 ? S 17:30 0:00 /usr/bin/php -q
nagios 12772 2.2 0.2 332424 34840 ? S 17:30 0:00 /usr/bin/php -q
postgres 12773 0.0 0.0 217452 4852 ? Ss 17:30 0:00 postgres: nagio
postgres 12784 0.0 0.0 217452 4832 ? Ss 17:30 0:00 postgres: nagio
postgres 12806 0.0 0.0 217452 4840 ? Ss 17:30 0:00 postgres: nagio
postgres 12820 0.0 0.0 217440 5192 ? Ss 17:30 0:00 postgres: nagio
postgres 12845 0.0 0.0 217540 5896 ? Ss 17:30 0:00 postgres: nagio
postgres 12904 0.0 0.0 217512 5280 ? Ss 17:30 0:00 postgres: nagio
root 12955 2.1 0.1 114172 24076 ? S 17:30 0:00 /usr/bin/perl -
martinp 13048 0.0 0.0 102104 1844 ? S 17:30 0:00 sshd: martinp@p
martinp 13049 0.0 0.0 108356 1796 pts/0 Ss 17:30 0:00 -bash
nagios 13118 3.0 0.0 43276 10132 ? S 17:30 0:00 /usr/bin/perl -
martinp 13185 0.0 0.0 110248 1156 pts/0 R+ 17:30 0:00 ps -aux
apache 13816 0.5 0.3 479860 60060 ? S Oct08 7:47 /usr/sbin/httpd
root 13994 0.0 0.0 108220 1472 ? S Aug13 0:00 /bin/sh /usr/bi
mysql 14101 3.0 0.8 4333036 146148 ? Sl Aug13 2477:57 /usr/libexec/m
postgres 14627 0.0 0.0 217548 6964 ? Ss Oct08 0:29 postgres: nagio
root 17559 0.0 0.0 942220 14732 ? Sl Sep26 2:48 /opt/amagent/am
apache 24093 0.5 0.3 484684 64724 ? S Oct08 8:43 /usr/sbin/httpd
postgres 24744 0.0 0.0 218064 7484 ? Ss Oct08 0:32 postgres: nagio
root 25874 0.0 0.1 342032 21976 ? Ss Aug10 1:47 /usr/sbin/httpd
apache 26497 0.5 0.3 472896 52952 ? S Oct08 7:29 /usr/sbin/httpd
postgres 27214 0.0 0.0 218064 7248 ? Ss Oct08 0:27 postgres: nagio
apache 31880 0.6 0.2 462712 42752 ? S 08:07 3:30 /usr/sbin/httpd
postgres 32157 0.0 0.0 217548 6712 ? Ss 08:08 0:12 postgres: nagio
postfix 32500 0.0 0.0 81032 3492 ? S 17:08 0:00 pickup -l -t fi
[martinp@localhost ~]$ free -m
total used free shared buffers cached
Mem: 15950 11713 4236 41 199 9139
-/+ buffers/cache: 2375 13574
Swap: 255 255 0
[martinp@localhost ~]$ [martinp@localhost ~]$ free -m
-bash: [martinp@localhost: command not found
[martinp@localhost ~]$ total used free shared buffers cached
-bash: total: command not found
[martinp@localhost ~]$ Mem: 15950 11713 4236 41 199 9139
-bash: Mem:: command not found
[martinp@localhost ~]$ -/+ buffers/cache: 2375 13574
-bash: -/+: No such file or directory
[martinp@localhost ~]$ Swap: 255 255 0
-bash: Swap:: command not found
[martinp@localhost ~]$ [martinp@localhost ~]$
-bash: [martinp@localhost: command not found
[martinp@localhost ~]$ clear
[martinp@localhost ~]$ ps -aux
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.8/FAQ
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 19352 1336 ? Ss Jul16 0:03 /sbin/init
root 2 0.0 0.0 0 0 ? S Jul16 0:00 [kthreadd]
root 3 0.0 0.0 0 0 ? S Jul16 0:53 [migration/0]
root 4 0.0 0.0 0 0 ? S Jul16 5:52 [ksoftirqd/0]
root 5 0.0 0.0 0 0 ? S Jul16 0:00 [stopper/0]
root 6 0.0 0.0 0 0 ? S Jul16 0:05 [watchdog/0]
root 7 0.0 0.0 0 0 ? S Jul16 6:10 [migration/1]
root 8 0.0 0.0 0 0 ? S Jul16 0:00 [stopper/1]
root 9 0.0 0.0 0 0 ? S Jul16 0:51 [ksoftirqd/1]
root 10 0.0 0.0 0 0 ? S Jul16 0:04 [watchdog/1]
root 11 0.0 0.0 0 0 ? S Jul16 0:51 [migration/2]
root 12 0.0 0.0 0 0 ? S Jul16 0:00 [stopper/2]
root 13 0.0 0.0 0 0 ? S Jul16 2:50 [ksoftirqd/2]
root 14 0.0 0.0 0 0 ? S Jul16 0:04 [watchdog/2]
root 15 0.0 0.0 0 0 ? S Jul16 7:31 [migration/3]
root 16 0.0 0.0 0 0 ? S Jul16 0:00 [stopper/3]
root 17 0.0 0.0 0 0 ? S Jul16 0:33 [ksoftirqd/3]
root 18 0.0 0.0 0 0 ? S Jul16 0:04 [watchdog/3]
root 19 0.0 0.0 0 0 ? S Jul16 0:53 [migration/4]
root 20 0.0 0.0 0 0 ? S Jul16 0:00 [stopper/4]
root 21 0.0 0.0 0 0 ? S Jul16 2:02 [ksoftirqd/4]
root 22 0.0 0.0 0 0 ? S Jul16 0:04 [watchdog/4]
root 23 0.0 0.0 0 0 ? S Jul16 7:32 [migration/5]
root 24 0.0 0.0 0 0 ? S Jul16 0:00 [stopper/5]
root 25 0.0 0.0 0 0 ? S Jul16 0:34 [ksoftirqd/5]
root 26 0.0 0.0 0 0 ? S Jul16 0:03 [watchdog/5]
root 27 0.0 0.0 0 0 ? S Jul16 1:21 [migration/6]
root 28 0.0 0.0 0 0 ? S Jul16 0:00 [stopper/6]
root 29 0.0 0.0 0 0 ? S Jul16 1:10 [ksoftirqd/6]
root 30 0.0 0.0 0 0 ? S Jul16 0:04 [watchdog/6]
root 31 0.0 0.0 0 0 ? S Jul16 6:50 [migration/7]
root 32 0.0 0.0 0 0 ? S Jul16 0:00 [stopper/7]
root 33 0.0 0.0 0 0 ? S Jul16 0:40 [ksoftirqd/7]
root 34 0.0 0.0 0 0 ? S Jul16 0:04 [watchdog/7]
root 35 0.0 0.0 0 0 ? S Jul16 5:18 [events/0]
root 36 0.0 0.0 0 0 ? S Jul16 5:34 [events/1]
root 37 0.0 0.0 0 0 ? S Jul16 4:28 [events/2]
root 38 0.0 0.0 0 0 ? S Jul16 4:11 [events/3]
root 39 0.0 0.0 0 0 ? S Jul16 4:10 [events/4]
root 40 0.0 0.0 0 0 ? S Jul16 3:15 [events/5]
root 41 0.0 0.0 0 0 ? S Jul16 4:07 [events/6]
root 42 0.0 0.0 0 0 ? S Jul16 40:42 [events/7]
root 43 0.0 0.0 0 0 ? S Jul16 0:00 [events/0]
root 44 0.0 0.0 0 0 ? S Jul16 0:00 [events/1]
root 45 0.0 0.0 0 0 ? S Jul16 0:00 [events/2]
root 46 0.0 0.0 0 0 ? S Jul16 0:00 [events/3]
root 47 0.0 0.0 0 0 ? S Jul16 0:00 [events/4]
root 48 0.0 0.0 0 0 ? S Jul16 0:00 [events/5]
root 49 0.0 0.0 0 0 ? S Jul16 0:00 [events/6]
root 50 0.0 0.0 0 0 ? S Jul16 0:00 [events/7]
root 51 0.0 0.0 0 0 ? S Jul16 0:00 [events_long/0]
root 52 0.0 0.0 0 0 ? S Jul16 0:00 [events_long/1]
root 53 0.0 0.0 0 0 ? S Jul16 0:00 [events_long/2]
root 54 0.0 0.0 0 0 ? S Jul16 0:00 [events_long/3]
root 55 0.0 0.0 0 0 ? S Jul16 0:00 [events_long/4]
root 56 0.0 0.0 0 0 ? S Jul16 0:00 [events_long/5]
root 57 0.0 0.0 0 0 ? S Jul16 0:00 [events_long/6]
root 58 0.0 0.0 0 0 ? S Jul16 0:00 [events_long/7]
root 59 0.0 0.0 0 0 ? S Jul16 0:00 [events_power_ef]
root 60 0.0 0.0 0 0 ? S Jul16 0:00 [events_power_ef]
root 61 0.0 0.0 0 0 ? S Jul16 0:00 [events_power_ef]
root 62 0.0 0.0 0 0 ? S Jul16 0:00 [events_power_ef]
root 63 0.0 0.0 0 0 ? S Jul16 0:00 [events_power_ef]
root 64 0.0 0.0 0 0 ? S Jul16 0:00 [events_power_ef]
root 65 0.0 0.0 0 0 ? S Jul16 0:00 [events_power_ef]
root 66 0.0 0.0 0 0 ? S Jul16 0:00 [events_power_ef]
root 67 0.0 0.0 0 0 ? S Jul16 0:00 [cgroup]
root 68 0.0 0.0 0 0 ? S Jul16 0:00 [khelper]
root 69 0.0 0.0 0 0 ? S Jul16 0:00 [netns]
root 70 0.0 0.0 0 0 ? S Jul16 0:00 [async/mgr]
root 71 0.0 0.0 0 0 ? S Jul16 0:00 [pm]
root 72 0.0 0.0 0 0 ? S Jul16 0:16 [sync_supers]
root 73 0.0 0.0 0 0 ? S Jul16 0:00 [bdi-default]
root 74 0.0 0.0 0 0 ? S Jul16 0:00 [kintegrityd/0]
root 75 0.0 0.0 0 0 ? S Jul16 0:00 [kintegrityd/1]
root 76 0.0 0.0 0 0 ? S Jul16 0:00 [kintegrityd/2]
root 77 0.0 0.0 0 0 ? S Jul16 0:00 [kintegrityd/3]
root 78 0.0 0.0 0 0 ? S Jul16 0:00 [kintegrityd/4]
root 79 0.0 0.0 0 0 ? S Jul16 0:00 [kintegrityd/5]
root 80 0.0 0.0 0 0 ? S Jul16 0:00 [kintegrityd/6]
root 81 0.0 0.0 0 0 ? S Jul16 0:00 [kintegrityd/7]
root 82 0.0 0.0 0 0 ? S Jul16 7:14 [kblockd/0]
root 83 0.0 0.0 0 0 ? S Jul16 1:37 [kblockd/1]
root 84 0.0 0.0 0 0 ? S Jul16 5:42 [kblockd/2]
root 85 0.0 0.0 0 0 ? S Jul16 1:33 [kblockd/3]
root 86 0.0 0.0 0 0 ? S Jul16 5:45 [kblockd/4]
root 87 0.0 0.0 0 0 ? S Jul16 1:28 [kblockd/5]
root 88 0.0 0.0 0 0 ? S Jul16 6:43 [kblockd/6]
root 89 0.0 0.0 0 0 ? S Jul16 7:21 [kblockd/7]
root 90 0.0 0.0 0 0 ? S Jul16 0:00 [kacpid]
root 91 0.0 0.0 0 0 ? S Jul16 0:00 [kacpi_notify]
root 92 0.0 0.0 0 0 ? S Jul16 0:00 [kacpi_hotplug]
root 93 0.0 0.0 0 0 ? S Jul16 0:00 [ata_aux]
root 94 0.0 0.0 0 0 ? S Jul16 0:00 [ata_sff/0]
root 95 0.0 0.0 0 0 ? S Jul16 0:00 [ata_sff/1]
root 96 0.0 0.0 0 0 ? S Jul16 0:00 [ata_sff/2]
root 97 0.0 0.0 0 0 ? S Jul16 0:00 [ata_sff/3]
root 98 0.0 0.0 0 0 ? S Jul16 0:00 [ata_sff/4]
root 99 0.0 0.0 0 0 ? S Jul16 0:00 [ata_sff/5]
root 100 0.0 0.0 0 0 ? S Jul16 0:00 [ata_sff/6]
root 101 0.0 0.0 0 0 ? S Jul16 0:00 [ata_sff/7]
root 102 0.0 0.0 0 0 ? S Jul16 0:00 [ksuspend_usbd]
root 103 0.0 0.0 0 0 ? S Jul16 0:00 [khubd]
root 104 0.0 0.0 0 0 ? S Jul16 0:00 [kseriod]
root 105 0.0 0.0 0 0 ? S Jul16 0:00 [md/0]
root 106 0.0 0.0 0 0 ? S Jul16 0:00 [md/1]
root 107 0.0 0.0 0 0 ? S Jul16 0:00 [md/2]
root 108 0.0 0.0 0 0 ? S Jul16 0:00 [md/3]
root 109 0.0 0.0 0 0 ? S Jul16 0:00 [md/4]
root 110 0.0 0.0 0 0 ? S Jul16 0:00 [md/5]
root 111 0.0 0.0 0 0 ? S Jul16 0:00 [md/6]
root 112 0.0 0.0 0 0 ? S Jul16 0:00 [md/7]
root 113 0.0 0.0 0 0 ? S Jul16 0:00 [md_misc/0]
root 114 0.0 0.0 0 0 ? S Jul16 0:00 [md_misc/1]
root 115 0.0 0.0 0 0 ? S Jul16 0:00 [md_misc/2]
root 116 0.0 0.0 0 0 ? S Jul16 0:00 [md_misc/3]
root 117 0.0 0.0 0 0 ? S Jul16 0:00 [md_misc/4]
root 118 0.0 0.0 0 0 ? S Jul16 0:00 [md_misc/5]
root 119 0.0 0.0 0 0 ? S Jul16 0:00 [md_misc/6]
root 120 0.0 0.0 0 0 ? S Jul16 0:00 [md_misc/7]
root 121 0.0 0.0 0 0 ? S Jul16 0:00 [linkwatch]
root 124 0.0 0.0 0 0 ? S Jul16 0:03 [khungtaskd]
root 125 0.0 0.0 0 0 ? S Jul16 0:25 [kswapd0]
root 126 0.0 0.0 0 0 ? SN Jul16 0:00 [ksmd]
root 127 0.0 0.0 0 0 ? SN Jul16 24:42 [khugepaged]
root 128 0.0 0.0 0 0 ? S Jul16 0:00 [aio/0]
root 129 0.0 0.0 0 0 ? S Jul16 0:00 [aio/1]
root 130 0.0 0.0 0 0 ? S Jul16 0:00 [aio/2]
root 131 0.0 0.0 0 0 ? S Jul16 0:00 [aio/3]
root 132 0.0 0.0 0 0 ? S Jul16 0:00 [aio/4]
root 133 0.0 0.0 0 0 ? S Jul16 0:00 [aio/5]
root 134 0.0 0.0 0 0 ? S Jul16 0:00 [aio/6]
root 135 0.0 0.0 0 0 ? S Jul16 0:00 [aio/7]
root 136 0.0 0.0 0 0 ? S Jul16 0:00 [crypto/0]
root 137 0.0 0.0 0 0 ? S Jul16 0:00 [crypto/1]
root 138 0.0 0.0 0 0 ? S Jul16 0:00 [crypto/2]
root 139 0.0 0.0 0 0 ? S Jul16 0:00 [crypto/3]
root 140 0.0 0.0 0 0 ? S Jul16 0:00 [crypto/4]
root 141 0.0 0.0 0 0 ? S Jul16 0:00 [crypto/5]
root 142 0.0 0.0 0 0 ? S Jul16 0:00 [crypto/6]
root 143 0.0 0.0 0 0 ? S Jul16 0:00 [crypto/7]
root 150 0.0 0.0 0 0 ? S Jul16 0:00 [kthrotld/0]
root 151 0.0 0.0 0 0 ? S Jul16 0:00 [kthrotld/1]
root 152 0.0 0.0 0 0 ? S Jul16 0:00 [kthrotld/2]
root 153 0.0 0.0 0 0 ? S Jul16 0:00 [kthrotld/3]
root 154 0.0 0.0 0 0 ? S Jul16 0:00 [kthrotld/4]
root 155 0.0 0.0 0 0 ? S Jul16 0:00 [kthrotld/5]
root 156 0.0 0.0 0 0 ? S Jul16 0:00 [kthrotld/6]
root 157 0.0 0.0 0 0 ? S Jul16 0:00 [kthrotld/7]
root 158 0.0 0.0 0 0 ? S Jul16 0:00 [pciehpd]
root 160 0.0 0.0 0 0 ? S Jul16 0:00 [kpsmoused]
root 161 0.0 0.0 0 0 ? S Jul16 0:00 [usbhid_resumer]
root 162 0.0 0.0 0 0 ? S Jul16 0:00 [deferwq]
root 195 0.0 0.0 0 0 ? S Jul16 0:00 [kdmremove]
root 196 0.0 0.0 0 0 ? S Jul16 0:00 [kstriped]
root 227 0.0 0.0 0 0 ? S Jul16 0:00 [ttm_swap]
root 518 0.0 0.0 0 0 ? S Jul16 0:00 [scsi_eh_0]
root 519 0.0 0.0 0 0 ? S Jul16 0:00 [scsi_eh_1]
root 591 0.0 0.0 0 0 ? S Jul16 1:34 [mpt_poll_0]
root 592 0.0 0.0 0 0 ? S Jul16 0:00 [mpt/0]
root 593 0.0 0.0 0 0 ? S Jul16 0:00 [scsi_eh_2]
root 674 0.0 0.0 0 0 ? S Jul16 0:00 [kdmflush]
root 676 0.0 0.0 0 0 ? S Jul16 0:00 [kdmflush]
root 694 0.0 0.0 0 0 ? S Jul16 28:43 [jbd2/dm-1-8]
root 695 0.0 0.0 0 0 ? S Jul16 0:00 [ext4-dio-unwrit]
root 791 0.0 0.0 11036 280 ? S<s Jul16 0:00 /sbin/udevd -d
root 963 0.0 0.0 0 0 ? S Jul16 1:17 [vmmemctl]
root 1312 0.0 0.0 0 0 ? S Jul16 3:42 [kauditd]
root 1398 0.1 0.0 0 0 ? S Jul16 169:58 [flush-253:1]
root 1912 0.0 0.0 29764 648 ? S<sl Jul16 3:45 auditd
root 1934 0.0 0.0 249852 5512 ? Sl Jul16 10:27 /sbin/rsyslogd -i /var/run/syslogd.pid -c 5
root 1968 0.0 0.0 18384 596 ? Ss Jul16 3:33 irqbalance --pid=/var/run/irqbalance.pid
dbus 1986 0.0 0.0 21432 796 ? Ss Jul16 0:00 dbus-daemon --system
root 2024 0.0 0.0 4076 512 ? Ss Jul16 0:00 /usr/sbin/acpid
68 2036 0.0 0.0 38244 1912 ? Ssl Jul16 0:34 hald
root 2037 0.0 0.0 20396 908 ? S Jul16 0:00 hald-runner
root 2069 0.0 0.0 22516 860 ? S Jul16 0:00 hald-addon-input: Listening on /dev/input/event2 /dev/input/event0
68 2081 0.0 0.0 18004 868 ? S Jul16 0:00 hald-addon-acpi: listening on acpid socket /var/run/acpid.socket
root 2189 0.0 0.0 205144 11832 ? Ss Jul16 3:00 /usr/sbin/snmptrapd -Ln -p /var/run/snmptrapd.pid
root 2201 0.0 0.0 161840 2092 ? Ss Jul16 0:59 /usr/bin/perl /usr/sbin/snmptt --daemon
snmptt 2202 0.0 0.0 166116 4296 ? Ss Jul16 3:04 /usr/bin/perl /usr/sbin/snmptt --daemon
root 2219 0.0 0.0 66256 604 ? Ss Jul16 0:09 /usr/sbin/sshd
root 2230 0.0 0.0 21712 656 ? Ss Jul16 0:00 xinetd -stayalive -pidfile /var/run/xinetd.pid
ntp 2241 0.0 0.0 30748 1632 ? Ss Jul16 0:08 ntpd -u ntp:ntp -p /var/run/ntpd.pid -g
postgres 2428 0.0 0.0 216080 3364 ? S Jul16 19:21 /usr/bin/postmaster -p 5432 -D /var/lib/pgsql/data
nagios 2444 0.0 0.0 41492 952 ? Ss Jul16 0:00 /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d
postgres 2523 0.0 0.0 179092 576 ? Ss Jul16 1:50 postgres: logger process
root 2524 0.0 0.0 80952 2620 ? Ss Jul16 1:27 /usr/libexec/postfix/master
postfix 2537 0.0 0.0 81324 2988 ? S Jul16 0:46 qmgr -l -t fifo -u
postgres 2539 0.0 0.2 216216 33516 ? Ss Jul16 13:32 postgres: writer process
postgres 2540 0.0 0.0 216080 820 ? Ss Jul16 7:52 postgres: wal writer process
postgres 2541 0.0 0.0 216504 1100 ? Ss Jul16 3:27 postgres: autovacuum launcher process
postgres 2542 0.0 0.0 179360 960 ? Ss Jul16 16:23 postgres: stats collector process
497 2544 0.0 0.0 39500 1172 ? Ss Jul16 0:00 shellinaboxd -u shellinabox -g shellinabox --cert=/var/lib/shellinabox --port=7878 --background=/var/ru
497 2545 0.0 0.0 39500 312 ? S Jul16 0:00 shellinaboxd -u shellinabox -g shellinabox --cert=/var/lib/shellinabox --port=7878 --background=/var/ru
root 2559 0.0 0.0 182904 1100 ? Ss Jul16 0:00 /usr/sbin/abrtd
root 2585 0.0 0.0 180680 1628 ? Ss Jul16 1:39 abrt-dump-oops -d /var/spool/abrt -rwx /var/log/messages
root 2608 0.0 0.0 116912 1072 ? Ss Jul16 3:42 crond
nagios 2625 0.0 0.0 368884 1012 ? S Jul16 11:43 /usr/local/nagios/bin/npcd -d -f /usr/local/nagios/etc/pnp/npcd.cfg
root 2639 0.0 0.0 21104 324 ? Ss Jul16 0:00 /usr/sbin/atd
root 2654 0.0 0.0 82204 5348 ? Ssl Jul16 0:31 /opt/BUAgent/VVAgent -d -p /opt/BUAgent
root 2704 0.0 4.5 1398260 745528 ? Ssl Jul16 24:12 /opt/BUAgent/buagent --path "/opt/BUAgent"
nagios 2749 0.0 0.0 49836 376 ? Ss Jul16 0:00 /usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg
nagios 2814 0.6 0.1 34812 18592 ? Ss 14:55 0:58 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios 2815 0.0 0.0 10120 988 ? S 14:55 0:02 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 2816 0.0 0.0 10120 988 ? S 14:55 0:02 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 2817 0.0 0.0 10120 984 ? S 14:55 0:02 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 2818 0.0 0.0 10120 984 ? S 14:55 0:02 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 2819 0.0 0.0 10120 988 ? S 14:55 0:02 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 2820 0.0 0.0 10120 988 ? S 14:55 0:02 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 2821 0.0 0.0 10120 984 ? S 14:55 0:02 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 2823 0.0 0.0 10120 988 ? S 14:55 0:02 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
root 2824 0.0 0.0 4060 464 tty1 Ss+ Jul16 0:00 /sbin/mingetty /dev/tty1
nagios 2825 0.0 0.0 10120 988 ? S 14:55 0:02 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
root 2826 0.0 0.0 4060 464 tty2 Ss+ Jul16 0:00 /sbin/mingetty /dev/tty2
nagios 2827 0.0 0.0 10120 988 ? S 14:55 0:02 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
root 2828 0.0 0.0 4060 464 tty3 Ss+ Jul16 0:00 /sbin/mingetty /dev/tty3
nagios 2829 0.0 0.0 10120 988 ? S 14:55 0:02 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
root 2830 0.0 0.0 4060 464 tty4 Ss+ Jul16 0:00 /sbin/mingetty /dev/tty4
nagios 2831 0.0 0.0 10120 988 ? S 14:55 0:02 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
root 2832 0.0 0.0 4060 464 tty5 Ss+ Jul16 0:00 /sbin/mingetty /dev/tty5
nagios 2833 0.0 0.0 49836 1248 ? S 14:55 0:05 /usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg
root 2834 0.0 0.0 4060 464 tty6 Ss+ Jul16 0:00 /sbin/mingetty /dev/tty6
root 2835 0.0 0.0 11032 248 ? S< Jul16 0:00 /sbin/udevd -d
root 2836 0.0 0.0 11032 236 ? S< Jul16 0:00 /sbin/udevd -d
nagios 2837 2.4 0.0 51400 2908 ? S 14:55 3:47 /usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg
nagios 2840 0.0 0.0 31312 3744 ? S 14:55 0:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
apache 8064 0.5 0.3 478552 58680 ? S Oct08 8:55 /usr/sbin/httpd
postgres 8073 0.0 0.0 217548 6980 ? Ss Oct08 0:32 postgres: nagiosxi nagiosxi ::1(59806) idle
apache 8076 0.5 0.3 479132 59216 ? S Oct08 8:59 /usr/sbin/httpd
apache 8077 0.5 0.3 481784 61872 ? S Oct08 9:06 /usr/sbin/httpd
apache 8087 0.5 0.3 478740 58800 ? S Oct08 8:54 /usr/sbin/httpd
apache 8088 0.5 0.3 479324 59372 ? S Oct08 8:57 /usr/sbin/httpd
apache 8089 0.5 0.3 481676 61896 ? S Oct08 9:03 /usr/sbin/httpd
apache 8090 0.5 0.3 479852 60092 ? S Oct08 8:59 /usr/sbin/httpd
postgres 8374 0.0 0.0 217548 6988 ? Ss Oct08 0:34 postgres: nagiosxi nagiosxi ::1(59930) idle
postgres 8375 0.0 0.0 218064 7336 ? Ss Oct08 0:33 postgres: nagiosxi nagiosxi ::1(59932) idle
postgres 8690 0.0 0.0 218148 7612 ? Ss Oct08 0:33 postgres: nagiosxi nagiosxi ::1(60002) idle
postgres 8692 0.0 0.0 218064 7592 ? Ss Oct08 0:34 postgres: nagiosxi nagiosxi ::1(60004) idle
postgres 9168 0.0 0.0 218064 7792 ? Ss Oct08 0:32 postgres: nagiosxi nagiosxi ::1(60160) idle
postgres 9630 0.0 0.0 217548 6984 ? Ss Oct08 0:33 postgres: nagiosxi nagiosxi ::1(60244) idle
apache 10416 0.4 0.2 460480 40456 ? S 14:58 0:42 /usr/sbin/httpd
postgres 10579 0.0 0.0 217548 6284 ? Ss 14:58 0:02 postgres: nagiosxi nagiosxi ::1(38780) idle
apache 10631 0.4 0.2 460288 40236 ? S 14:58 0:42 /usr/sbin/httpd
apache 10640 0.4 0.2 459796 39760 ? S 14:58 0:44 /usr/sbin/httpd
apache 10641 0.4 0.2 456228 36144 ? S 14:58 0:44 /usr/sbin/httpd
postgres 10733 0.0 0.0 217548 6284 ? Ss 14:58 0:02 postgres: nagiosxi nagiosxi ::1(38816) idle
postgres 11642 0.0 0.0 217548 6264 ? Ss 14:59 0:02 postgres: nagiosxi nagiosxi ::1(39122) idle
postgres 11749 0.0 0.0 217548 6324 ? Ss 14:59 0:02 postgres: nagiosxi nagiosxi ::1(39134) idle
root 12720 0.0 0.0 102104 4336 ? Ss 17:30 0:00 sshd: martinp [priv]
martinp 13048 0.0 0.0 102104 1852 ? S 17:30 0:00 sshd: martinp@pts/0
martinp 13049 0.0 0.0 108356 1808 pts/0 Ss 17:30 0:00 -bash
apache 13816 0.5 0.3 480116 60316 ? S Oct08 7:48 /usr/sbin/httpd
root 13994 0.0 0.0 108220 1472 ? S Aug13 0:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --socket=/var/lib/mysql/mysql.sock --pid-file=/va
mysql 14101 3.0 0.8 4333036 144244 ? Sl Aug13 2477:59 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --log-error=/var/log/mysqld.l
postgres 14627 0.0 0.0 217548 6964 ? Ss Oct08 0:29 postgres: nagiosxi nagiosxi ::1(41162) idle
root 16993 0.0 0.0 139800 1628 ? S 17:32 0:00 CROND
root 16994 0.0 0.0 139800 1628 ? S 17:32 0:00 CROND
root 16995 0.0 0.0 139800 1628 ? S 17:32 0:00 CROND
root 16996 0.0 0.0 139800 1628 ? S 17:32 0:00 CROND
root 16997 0.0 0.0 139800 1628 ? S 17:32 0:00 CROND
root 16998 0.0 0.0 139800 1628 ? S 17:32 0:00 CROND
nagios 17002 0.0 0.0 106112 1148 ? Ss 17:32 0:00 /bin/sh -c /usr/bin/php -q /usr/local/nagiosxi/cron/feedproc.php >> /usr/local/nagiosxi/var/feedproc.lo
nagios 17003 0.0 0.0 106112 1148 ? Ss 17:32 0:00 /bin/sh -c /usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php >> /usr/local/nagiosxi/var/cmdsubsys.
nagios 17006 0.0 0.0 106112 1152 ? Ss 17:32 0:00 /bin/sh -c /usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php >> /usr/local/nagiosxi/var/perfdat
nagios 17007 0.0 0.0 106112 1148 ? Ss 17:32 0:00 /bin/sh -c /usr/bin/php -q /usr/local/nagiosxi/cron/eventman.php >> /usr/local/nagiosxi/var/eventman.lo
nagios 17008 0.0 0.0 106112 1148 ? Ss 17:32 0:00 /bin/sh -c /usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php >> /usr/local/nagiosxi/var/sysstat.log
nagios 17009 0.0 0.0 106112 1152 ? Ss 17:32 0:00 /bin/sh -c /usr/bin/php -q /usr/local/nagiosxi/cron/event_handler.php >> /usr/local/nagiosxi/var/event_
nagios 17010 0.2 0.1 321132 23436 ? S 17:32 0:00 /usr/bin/php -q /usr/local/nagiosxi/cron/feedproc.php
nagios 17011 0.5 0.2 332424 35000 ? S 17:32 0:00 /usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php
nagios 17014 0.2 0.1 321132 23432 ? S 17:32 0:00 /usr/bin/php -q /usr/local/nagiosxi/cron/event_handler.php
nagios 17015 0.3 0.1 321356 23688 ? S 17:32 0:00 /usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php
nagios 17018 0.3 0.1 321620 23808 ? S 17:32 0:00 /usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php
nagios 17019 0.5 0.2 331744 34548 ? S 17:32 0:00 /usr/bin/php -q /usr/local/nagiosxi/cron/eventman.php
postgres 17025 0.0 0.0 217312 4080 ? Ss 17:32 0:00 postgres: nagiosxi nagiosxi ::1(56734) idle
postgres 17028 0.0 0.0 217452 4880 ? Ss 17:32 0:00 postgres: nagiosxi nagiosxi ::1(56738) idle
postgres 17041 0.0 0.0 217452 4852 ? Ss 17:32 0:00 postgres: nagiosxi nagiosxi ::1(56742) idle
postgres 17066 0.0 0.0 217512 5316 ? Ss 17:32 0:00 postgres: nagiosxi nagiosxi ::1(56744) idle
postgres 17076 0.0 0.0 217452 4884 ? Ss 17:32 0:00 postgres: nagiosxi nagiosxi ::1(56746) idle
postgres 17138 0.0 0.0 217472 5636 ? Ss 17:32 0:00 postgres: nagiosxi nagiosxi ::1(56750) idle
root 17559 0.0 0.0 942220 14740 ? Sl Sep26 2:48 /opt/amagent/amagent
nagios 18433 0.0 0.0 37280 2436 ? S 17:32 0:00 /usr/local/nagios/libexec/check_nrpe -H 172.31.131.38 -p 5666 -c ADDCReplicationCheck -t 30
nagios 18804 6.0 0.0 107672 14232 ? S 17:32 0:00 /usr/bin/python /usr/local/nagios/libexec/cisco_ucs_nagios -u admin --passEnc QW5zLVVjNTE= -H slgpiucs0
martinp 18806 0.0 0.0 110252 1156 pts/0 R+ 17:32 0:00 ps -aux
apache 24093 0.5 0.3 482892 62932 ? S Oct08 8:43 /usr/sbin/httpd
postgres 24744 0.0 0.0 218064 7484 ? Ss Oct08 0:32 postgres: nagiosxi nagiosxi ::1(38622) idle
root 25874 0.0 0.1 342032 21976 ? Ss Aug10 1:47 /usr/sbin/httpd
apache 26497 0.5 0.3 474436 54372 ? S Oct08 7:29 /usr/sbin/httpd
postgres 27214 0.0 0.0 218064 7248 ? Ss Oct08 0:27 postgres: nagiosxi nagiosxi ::1(36862) idle
apache 31880 0.6 0.2 462712 42752 ? S 08:07 3:31 /usr/sbin/httpd
postgres 32157 0.0 0.0 217548 6712 ? Ss 08:08 0:12 postgres: nagiosxi nagiosxi ::1(46370) idle
postfix 32500 0.0 0.0 81032 3492 ? S 17:08 0:00 pickup -l -t fifo -u
[martinp@localhost ~]$
Re: Swap Usage
Posted: Tue Oct 09, 2018 1:06 pm
by benjaminsmith
Thank you, the output looks normal. I would suggest re-booting the server to clear the swap. When data goes into swap, it is normal for it to stay there even once your memory starts to free up again
Re: Swap Usage
Posted: Wed Oct 10, 2018 6:04 am
by olmgroup
Thanks for that, the reboot sorted the problem.
Re: Swap Usage
Posted: Wed Oct 10, 2018 8:09 am
by scottwilkerson
olmgroup wrote:Thanks for that, the reboot sorted the problem.
Glad to hear it is resolved!
Locking thread