From: Ton Voon Date: Tue, 18 Mar 2008 01:21:54 +0000 (+0000) Subject: Updated check_procs with a hidden --input-file option. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a36696e454ccd3bcfd9fbb0d5f22f4fe176b6e7e;p=nagiosplug.git Updated check_procs with a hidden --input-file option. Include some sample outputs for testing git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1954 f882894a-f735-0410-b71e-b25c423dba1c --- diff --git a/plugins/check_procs.c b/plugins/check_procs.c index 7dae845..d56d457 100644 --- a/plugins/check_procs.c +++ b/plugins/check_procs.c @@ -91,11 +91,13 @@ float pcpu; char *statopts; char *prog; char *args; +char *input_filename = NULL; regex_t re_args; char *fmt; char *fails; char tmp[MAX_INPUT_BUFFER]; +FILE *ps_input = NULL; int @@ -156,25 +158,31 @@ main (int argc, char **argv) if (verbose >= 2) printf (_("CMD: %s\n"), PS_COMMAND); - child_process = spopen (PS_COMMAND); - if (child_process == NULL) { - printf (_("Could not open pipe: %s\n"), PS_COMMAND); - return STATE_UNKNOWN; + if (input_filename == NULL) { + ps_input = spopen (PS_COMMAND); + if (ps_input == NULL) { + printf (_("Could not open pipe: %s\n"), PS_COMMAND); + return STATE_UNKNOWN; + } + child_stderr = fdopen (child_stderr_array[fileno (ps_input)], "r"); + if (child_stderr == NULL) + printf (_("Could not open stderr for %s\n"), PS_COMMAND); + } else { + ps_input = fopen(input_filename, "r"); + if (ps_input == NULL) { + die( STATE_UNKNOWN, _("Error opening %s\n"), input_filename ); + } } - child_stderr = fdopen (child_stderr_array[fileno (child_process)], "r"); - if (child_stderr == NULL) - printf (_("Could not open stderr for %s\n"), PS_COMMAND); - /* flush first line */ - fgets (input_buffer, MAX_INPUT_BUFFER - 1, child_process); + fgets (input_buffer, MAX_INPUT_BUFFER - 1, ps_input); while ( input_buffer[strlen(input_buffer)-1] != '\n' ) - fgets (input_buffer, MAX_INPUT_BUFFER - 1, child_process); + fgets (input_buffer, MAX_INPUT_BUFFER - 1, ps_input); - while (fgets (input_buffer, MAX_INPUT_BUFFER - 1, child_process)) { + while (fgets (input_buffer, MAX_INPUT_BUFFER - 1, ps_input)) { asprintf (&input_line, "%s", input_buffer); while ( input_buffer[strlen(input_buffer)-1] != '\n' ) { - fgets (input_buffer, MAX_INPUT_BUFFER - 1, child_process); + fgets (input_buffer, MAX_INPUT_BUFFER - 1, ps_input); asprintf (&input_line, "%s%s", input_line, input_buffer); } @@ -273,19 +281,21 @@ main (int argc, char **argv) } /* If we get anything on STDERR, at least set warning */ - while (fgets (input_buffer, MAX_INPUT_BUFFER - 1, child_stderr)) { - if (verbose) - printf ("STDERR: %s", input_buffer); - result = max_state (result, STATE_WARNING); - printf (_("System call sent warnings to stderr\n")); - } + if (input_filename == NULL) { + while (fgets (input_buffer, MAX_INPUT_BUFFER - 1, child_stderr)) { + if (verbose) + printf ("STDERR: %s", input_buffer); + result = max_state (result, STATE_WARNING); + printf (_("System call sent warnings to stderr\n")); + } - (void) fclose (child_stderr); + (void) fclose (child_stderr); - /* close the pipe */ - if (spclose (child_process)) { - printf (_("System call returned nonzero status\n")); - result = max_state (result, STATE_WARNING); + /* close the pipe */ + if (spclose (ps_input)) { + printf (_("System call returned nonzero status\n")); + result = max_state (result, STATE_WARNING); + } } if (found == 0) { /* no process lines parsed so return STATE_UNKNOWN */ @@ -357,6 +367,7 @@ process_arguments (int argc, char **argv) {"version", no_argument, 0, 'V'}, {"verbose", no_argument, 0, 'v'}, {"ereg-argument-array", required_argument, 0, CHAR_MAX+1}, + {"input-file", required_argument, 0, CHAR_MAX+2}, {0, 0, 0, 0} }; @@ -523,6 +534,9 @@ process_arguments (int argc, char **argv) case 'v': /* command */ verbose++; break; + case CHAR_MAX+2: + input_filename = optarg; + break; } } @@ -690,7 +704,7 @@ print_help (void) { print_revision (progname, revision); - printf ("Copyright (c) 1999 Ethan Galstad "); + printf ("Copyright (c) 1999 Ethan Galstad \n"); printf (COPYRIGHT, copyright, email); printf ("%s\n", _("Checks all processes and generates WARNING or CRITICAL states if the specified")); diff --git a/plugins/tests/var/ps-axwo.darwin b/plugins/tests/var/ps-axwo.darwin new file mode 100644 index 0000000..b71d834 --- /dev/null +++ b/plugins/tests/var/ps-axwo.darwin @@ -0,0 +1,96 @@ +STAT UID PID PPID VSZ RSS %CPU UCOMM COMMAND +Ss 0 1 0 603456 976 0.0 launchd /sbin/launchd +Ss 0 10 1 612820 3608 0.0 kextd /usr/libexec/kextd +Ss 0 11 1 632980 8680 0.0 DirectoryService /usr/sbin/DirectoryService +Ss 0 12 1 602832 720 0.0 notifyd /usr/sbin/notifyd +Ss 0 13 1 603916 1136 0.0 syslogd /usr/sbin/syslogd +Ss 0 14 1 614928 4928 0.0 configd /usr/sbin/configd +Ss 65 15 1 615496 5616 0.0 mDNSResponder /usr/sbin/mDNSResponder -launchd +Ss 1 16 1 608960 2212 0.0 distnoted /usr/sbin/distnoted +Ss 65 18 1 602432 504 0.0 launchd /sbin/launchd +Ss 0 20 1 614836 5844 0.3 securityd /usr/sbin/securityd -i +Ss 0 24 1 610536 2704 0.0 ntpd /usr/sbin/ntpd -n -g -p /var/run/ntpd.pid -f /var/db/ntp.drift +Ss 0 25 1 602228 496 0.0 update /usr/sbin/update +Ss 0 26 1 609900 2320 0.0 SystemStarter /sbin/SystemStarter +Ss 0 30 1 834352 36264 0.3 mds /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Support/mds +Ss 501 31 1 1110572 23948 0.0 loginwindow /System/Library/CoreServices/loginwindow.app/Contents/MacOS/loginwindow console +Ss 0 32 1 609448 2616 0.0 KernelEventAgent /usr/sbin/KernelEventAgent +Ss 0 34 1 609892 2204 0.0 hidd /usr/libexec/hidd +Ss 0 35 1 624704 4284 0.0 fseventsd /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/Support/fseventsd +Ss 0 36 1 610256 2876 0.0 dynamic_pager /sbin/dynamic_pager -F /private/var/vm/swapfile +Ss 0 39 1 613408 4140 0.0 diskarbitrationd /usr/sbin/diskarbitrationd +Ss 0 43 1 665708 8024 0.0 blued /usr/sbin/blued +Ss 0 44 1 609408 2828 0.0 autofsd autofsd +Ss 0 45 1 654084 9600 0.0 socketfilterfw /usr/libexec/ApplicationFirewall/socketfilterfw +Ss 0 46 1 704764 12788 0.0 ccc_helper /Applications/Carbon Copy Cloner.app/Contents/Resources/ccc_helper.app/Contents/MacOS/ccc_helper 3231BC22-F30F-45D8-BDE8-47A098D57ABD +Ss 0 54 1 667956 19212 0.0 coreservicesd /System/Library/CoreServices/coreservicesd +Ss 88 56 1 1205840 85700 1.6 WindowServer /System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreGraphics.framework/Resources/WindowServer -daemon +Ss 0 67 1 602992 612 0.0 llipd /Library/StartupItems/ParallelsTransporter/llipd +S 0 83 1 613352 2312 0.0 pvsnatd /Library/StartupItems/Parallels/pvsnatd +Ss 0 94 1 712036 15056 0.0 coreaudiod /usr/sbin/coreaudiod +Ss 501 102 1 602432 1040 0.0 launchd /sbin/launchd +S 501 109 102 1176668 28068 0.0 Spotlight /System/Library/CoreServices/Spotlight.app/Contents/MacOS/Spotlight +S 501 110 102 941796 10988 0.0 UserEventAgent /usr/sbin/UserEventAgent -l Aqua +S 501 112 102 610028 2056 0.0 pboard /usr/sbin/pboard +S 501 114 102 1090056 29196 1.3 Dock /System/Library/CoreServices/Dock.app/Contents/MacOS/Dock -psn_0_24582 +S 501 115 102 685360 14048 0.0 ATSServer /System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Support/ATSServer +S 501 117 102 1121904 94432 0.1 SystemUIServer /System/Library/CoreServices/SystemUIServer.app/Contents/MacOS/SystemUIServer -psn_0_32776 +S 501 118 102 1110388 42064 1.4 Finder /System/Library/CoreServices/Finder.app/Contents/MacOS/Finder -psn_0_36873 +S 501 123 102 718264 34752 0.0 FileSyncAgent /System/Library/CoreServices/FileSyncAgent.app/Contents/MacOS/FileSyncAgent -launchedByLaunchd +S 501 127 102 1048388 25344 0.0 smcFanControl /Applications/smcFanControl.app/Contents/MacOS/smcFanControl -psn_0_53261 +S 501 128 102 970912 12924 0.0 iTunesHelper /Applications/iTunes.app/Contents/Resources/iTunesHelper.app/Contents/MacOS/iTunesHelper -psn_0_57358 +S 501 129 102 1095920 23364 1.4 Activity Monitor /Applications/Utilities/Activity Monitor.app/Contents/MacOS/Activity Monitor -psn_0_61455 +S 501 132 102 657212 8356 0.0 dmnotifyd /System/Library/PrivateFrameworks/DMNotification.framework/Versions/Current/Resources/dmnotifyd +Ss -2 133 1 610464 2328 0.0 usbmuxd /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/Resources/usbmuxd -launchd +Ss 0 136 129 637456 6340 10.6 pmTool /Applications/Utilities/Activity Monitor.app/Contents/Resources/pmTool +Ss 501 142 1 676652 8984 0.1 diskimages-helpe /System/Library/PrivateFrameworks/DiskImages.framework/Resources/diskimages-helper -uuid F2225770-5EFF-467C-91FD-C990F056B22F -post-exec +Ss 0 147 1 627640 5928 0.0 hdiejectd /System/Library/PrivateFrameworks/DiskImages.framework/Resources/hdiejectd +S 501 157 102 1045492 27480 0.0 GrowlHelperApp /Library/PreferencePanes/Growl.prefPane/Contents/Resources/GrowlHelperApp.app/Contents/MacOS/GrowlHelperApp -psn_0_81940 +U 501 158 102 1878012 388136 0.7 Safari /Applications/Safari.app/Contents/MacOS/Safari -psn_0_86037 +S 501 172 102 645560 11344 0.0 AppleSpell /System/Library/Services/AppleSpell.service/Contents/MacOS/AppleSpell -psn_0_98328 +S 501 175 102 1055412 33396 0.0 Terminal /Applications/Utilities/Terminal.app/Contents/MacOS/Terminal -psn_0_102425 +Z 501 186 158 0 0 0.0 Meeting Manager (Meeting Manager) +S 501 214 102 616988 3808 0.0 ssh-agent /usr/bin/ssh-agent -l +Ss 502 217 1 602432 1016 0.0 launchd /sbin/launchd +S 501 499 102 1313808 130396 0.3 Mail /Applications/Mail.app/Contents/MacOS/Mail -psn_0_180268 +S 501 502 102 1091652 52168 0.0 NetNewsWire Lite /Applications/NetNewsWire Lite.app/Contents/MacOS/NetNewsWire Lite -psn_0_184365 +Ss 502 572 56 818908 20988 0.0 loginwindow /System/Library/CoreServices/loginwindow.app/Contents/MacOS/loginwindow +S 502 585 217 741824 19056 0.0 Spotlight /System/Library/CoreServices/Spotlight.app/Contents/MacOS/Spotlight +S 502 586 217 941900 11044 0.0 UserEventAgent /usr/sbin/UserEventAgent -l Aqua +S 502 588 217 757320 18080 0.0 Dock /System/Library/CoreServices/Dock.app/Contents/MacOS/Dock -psn_0_237626 +S 502 590 217 610072 2068 0.0 pboard /usr/sbin/pboard +S 502 592 217 794140 25456 0.0 SystemUIServer /System/Library/CoreServices/SystemUIServer.app/Contents/MacOS/SystemUIServer -psn_0_245820 +S 502 593 217 845552 30596 0.0 Finder /System/Library/CoreServices/Finder.app/Contents/MacOS/Finder -psn_0_249917 +S 502 594 217 671780 7872 0.0 ATSServer /System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Support/ATSServer +U 502 605 217 938844 64964 0.0 Pages /Applications/iWork '08/Pages.app/Contents/MacOS/Pages -psn_0_266305 +S 502 609 217 644432 10828 0.0 AppleSpell /System/Library/Services/AppleSpell.service/Contents/MacOS/AppleSpell -psn_0_270402 +S 502 610 217 638552 5216 0.0 AppleSpell /System/Library/Services/AppleSpell.service/Contents/MacOS/AppleSpell -psn_0_274499 +U 502 710 217 1029148 223312 0.0 Safari /Applications/Safari.app/Contents/MacOS/Safari -psn_0_331857 +S 502 712 217 904056 62928 0.3 Mail /Applications/Mail.app/Contents/MacOS/Mail -psn_0_335954 +U 501 998 102 1068272 26532 0.0 Address Book /Applications/Address Book.app/Contents/MacOS/Address Book -psn_0_417894 +S 502 2228 217 820940 30600 0.0 TextEdit /Applications/TextEdit.app/Contents/MacOS/TextEdit -psn_0_729266 +S 501 2431 102 1067868 43492 0.0 iCal /Applications/iCal.app/Contents/MacOS/iCal -psn_0_803012 +S 501 2531 102 1250108 68792 2.4 Skype /Applications/Skype.app/Contents/MacOS/Skype -psn_0_823497 +Ss 92 3143 1 602432 828 0.0 launchd /sbin/launchd +S 501 3491 102 1048620 31256 0.0 TextEdit /Applications/TextEdit.app/Contents/MacOS/TextEdit -psn_0_962795 +S 501 3536 102 1073340 30524 0.0 Preview /Applications/Preview.app/Contents/MacOS/Preview -psn_0_983280 +S 501 4045 102 1041544 29168 0.0 PasswordWallet /Applications/PasswordWallet.app/Contents/MacOS/PasswordWallet -psn_0_1138966 +S 501 4892 114 1064948 43488 0.0 DashboardClient /System/Library/CoreServices/Dock.app/Contents/Resources/DashboardClient.app/Contents/MacOS/DashboardClient +S 501 6806 102 1163836 67356 0.0 Colloquy /Applications/Colloquy.app/Contents/MacOS/Colloquy -psn_0_2220574 +U 501 6969 102 1156804 58764 0.0 Adium /Applications/Adium.app/Contents/MacOS/Adium -psn_0_2294320 +S 501 7530 102 671612 17440 0.0 helpdatad /System/Library/PrivateFrameworks/HelpData.framework/Versions/A/Resources/helpdatad +Ss -2 38255 1 602432 952 0.0 launchd /sbin/launchd +S 501 40569 102 1160664 49484 0.0 Dictionary /Applications/Dictionary.app/Contents/MacOS/Dictionary -psn_0_4387887 +SNs 501 42683 1 744096 21084 0.0 mdworker /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Versions/A/Support/mdworker MDSImporterWorker com.apple.Spotlight.ImporterWorker.501 +S 501 62225 102 711004 18040 0.0 SyncServer /System/Library/Frameworks/SyncServices.framework/Versions/Current/Resources/SyncServer.app/Contents/MacOS/SyncServer +SNs -2 62284 1 671812 10880 0.0 mdworker /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Versions/A/Support/mdworker MDSImporterWorker com.apple.Spotlight.ImporterWorker.-2 +Ss 0 62285 1 617056 5472 0.0 cupsd /usr/sbin/cupsd -l +S 502 62287 217 632360 10044 0.0 PubSubAgent /System/Library/Frameworks/PubSub.framework/Versions/A/Resources/PubSubAgent.app/Contents/MacOS/PubSubAgent +SNs 502 62288 1 668876 10440 0.0 mdworker /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Versions/A/Support/mdworker MDSImporterWorker com.apple.Spotlight.ImporterWorker.502 +S 501 62296 102 643688 11980 2.2 PubSubAgent /System/Library/Frameworks/PubSub.framework/Versions/A/Resources/PubSubAgent.app/Contents/MacOS/PubSubAgent +Ss 0 4558 175 630816 6960 0.0 login login -pf tonvoon +S 501 4559 4558 603600 1736 0.0 bash -bash +R+ 0 62297 4559 602388 852 0.0 ps /bin/ps -axwo stat +Ss 0 7301 175 630816 6960 0.0 login login -pf tonvoon +S 501 7302 7301 603600 1584 0.0 bash -bash +S+ 501 41381 7302 615408 4196 0.0 ssh ssh dev.net.altinity diff --git a/plugins/tests/var/ps_axwo.debian b/plugins/tests/var/ps_axwo.debian new file mode 100644 index 0000000..0d7d7bc --- /dev/null +++ b/plugins/tests/var/ps_axwo.debian @@ -0,0 +1,84 @@ +STAT UID PID PPID VSZ RSS %CPU COMMAND COMMAND +S 0 1 0 1504 428 0.0 init init [2] +SN 0 2 1 0 0 0.0 ksoftirqd/0 [ksoftirqd/0] +S< 0 3 1 0 0 0.0 events/0 [events/0] +S< 0 4 3 0 0 0.0 khelper [khelper] +S< 0 5 3 0 0 0.0 kacpid [kacpid] +S< 0 38 3 0 0 0.0 kblockd/0 [kblockd/0] +S 0 48 3 0 0 0.0 pdflush [pdflush] +S< 0 51 3 0 0 0.0 aio/0 [aio/0] +S 0 50 1 0 0 0.0 kswapd0 [kswapd0] +S 0 193 1 0 0 0.0 kseriod [kseriod] +S 0 214 1 0 0 0.0 scsi_eh_0 [scsi_eh_0] +S 0 221 1 0 0 0.0 khubd [khubd] +S 0 299 1 0 0 0.3 kjournald [kjournald] +S 0 1148 1 0 0 0.0 pciehpd_event [pciehpd_event] +S 0 1168 1 0 0 0.0 shpchpd_event [shpchpd_event] +Ss 1 1795 1 1612 276 0.0 portmap /sbin/portmap +Ss 0 2200 1 1652 568 0.0 vmware-guestd /usr/sbin/vmware-guestd --background /var/run/vmware-guestd.pid +Ss 0 2209 1 2240 532 0.0 inetd /usr/sbin/inetd +Ss 0 2319 1 3468 792 0.0 sshd /usr/sbin/sshd +Ss 0 2323 1 2468 676 0.0 rpc.statd /sbin/rpc.statd +Ss 1 2332 1 1684 488 0.0 atd /usr/sbin/atd +Ss 0 2335 1 1764 636 0.0 cron /usr/sbin/cron +Ss+ 0 2350 1 1500 348 0.0 getty /sbin/getty 38400 tty1 +Ss+ 0 2351 1 1500 348 0.0 getty /sbin/getty 38400 tty2 +Ss+ 0 2352 1 1500 348 0.0 getty /sbin/getty 38400 tty3 +Ss+ 0 2353 1 1500 348 0.0 getty /sbin/getty 38400 tty4 +Ss+ 0 2354 1 1500 348 0.0 getty /sbin/getty 38400 tty5 +Ss+ 0 2355 1 1500 348 0.0 getty /sbin/getty 38400 tty6 +S 0 6907 1 2308 892 0.0 mysqld_safe /bin/sh /usr/bin/mysqld_safe +S 103 6944 6907 123220 27724 0.0 mysqld /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid --skip-locking --port=3306 --socket=/var/run/mysqld/mysqld.sock +S 0 6945 6907 1488 420 0.0 logger logger -p daemon.err -t mysqld_safe -i -t mysqld +S 1001 17778 1 6436 1588 0.0 snmpd /usr/sbin/snmpd -u nagios -Lsd -Lf /dev/null -p/var/run/snmpd.pid +Ss 0 17789 1 9496 5556 0.0 snmptrapd /usr/sbin/snmptrapd -t -m ALL -M /usr/share/snmp/mibs:/usr/local/nagios/snmp/load -p /var/run/snmptrapd.pid +Ss 0 847 2319 14452 1752 0.0 sshd sshd: tonvoon [priv] +S 1000 857 847 14616 1832 0.0 sshd sshd: tonvoon@pts/3 +Ss 1000 860 857 2984 1620 0.0 bash -bash +S 0 868 860 2588 1428 0.0 bash -su +S+ 1001 877 868 2652 1568 0.0 bash -su +S 0 6086 3 0 0 0.0 pdflush [pdflush] +Ss 0 17832 2319 14452 1752 0.0 sshd sshd: tonvoon [priv] +S 1000 18155 17832 14620 1840 0.0 sshd sshd: tonvoon@pts/0 +Ss 1000 18156 18155 2984 1620 0.0 bash -bash +S 0 18518 18156 2588 1428 0.0 bash -su +S 1001 18955 18518 2672 1600 0.0 bash -su +Ss 0 21683 2319 14452 1756 0.0 sshd sshd: tonvoon [priv] +S 1000 21742 21683 14620 1896 0.0 sshd sshd: tonvoon@pts/1 +Ss 1000 21743 21742 2984 1620 0.0 bash -bash +S 0 21748 21743 2592 1432 0.0 bash -su +S 1001 21757 21748 2620 1540 0.0 bash -su +Ss 0 2334 2319 14452 1756 0.0 sshd sshd: tonvoon [priv] +S 1000 2343 2334 14620 1840 0.0 sshd sshd: tonvoon@pts/2 +Ss 1000 2344 2343 2984 1620 0.0 bash -bash +S 0 2349 2344 2592 1432 0.0 bash -su +S+ 1001 2364 2349 2620 1520 0.0 bash -su +T 1001 2454 2364 2096 1032 0.0 vi vi configure.in.rej +S+ 1001 8500 21757 69604 52576 0.0 opsview_web_ser /usr/bin/perl -w ./script/opsview_web_server.pl -f -d +Ss 0 7609 2319 14452 1756 0.0 sshd sshd: tonvoon [priv] +S 1000 7617 7609 14460 1828 0.0 sshd sshd: tonvoon@pts/4 +Ss 1000 7618 7617 2984 1620 0.0 bash -bash +S 0 7623 7618 2592 1432 0.0 bash -su +S+ 1001 7632 7623 2620 1528 0.0 bash -su +Ss 1001 12678 1 20784 17728 0.0 opsviewd opsviewd +Ss 0 832 1 14512 6360 0.0 apache2 /usr/sbin/apache2 -k start -DSSL +S 33 842 832 14648 6596 0.0 apache2 /usr/sbin/apache2 -k start -DSSL +S 33 843 832 14512 6504 0.0 apache2 /usr/sbin/apache2 -k start -DSSL +S 33 844 832 14512 6476 0.0 apache2 /usr/sbin/apache2 -k start -DSSL +S 33 845 832 14512 6476 0.0 apache2 /usr/sbin/apache2 -k start -DSSL +S 33 846 832 14512 6476 0.0 apache2 /usr/sbin/apache2 -k start -DSSL +Ss 7 4081 1 2464 884 0.0 lpd /usr/sbin/lpd -s +S 33 26484 832 14512 6476 0.0 apache2 /usr/sbin/apache2 -k start -DSSL +Ss 1001 22324 1 20252 1612 0.1 nagios ../../bin/nagios -d /usr/local/nagios/etc/nagios.cfg +Ss 0 23336 2319 14452 1756 0.0 sshd sshd: tonvoon [priv] +S 1000 23339 23336 14620 1840 0.0 sshd sshd: tonvoon@pts/5 +Ss 1000 23340 23339 2996 1636 0.0 bash -bash +S 0 23367 23340 3020 1628 0.0 bash bash +S 1001 23370 23367 3064 1748 0.0 bash bash +Ss 1001 23783 1 3220 764 0.0 ndo2db /usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg +Ss 1001 23784 1 6428 4948 0.0 import_ndologsd import_ndologsd +S+ 1001 9803 18955 4132 1936 0.0 ssh ssh altinity@cube02.lei.altinity +S 1001 22505 22324 20256 1616 0.0 nagios ../../bin/nagios -d /usr/local/nagios/etc/nagios.cfg +S 1001 22506 22505 1676 608 0.0 check_ping /usr/local/nagios/libexec/check_ping -H 192.168.10.23 -w 3000.0,80% -c 5000.0,100% -p 1 +S 1001 22507 22506 1660 492 0.0 ping /bin/ping -n -U -w 10 -c 1 192.168.10.23 +R+ 1001 22508 23370 2308 680 0.0 ps ps axwo stat uid pid ppid vsz rss pcpu comm args