Page 1 of 2

System Status - system statistics issue

Posted: Mon Jun 17, 2013 11:12 pm
by gm_rajkumar
Hi,

I can see the system statistics in System status shows in Red, kindly let me know if you any issues to be addressed on this. i have enclosed the screenshot for reference.

Regards,
Raj.

I have enclosed the process utilization of postgres, there are lot of postgres process are running behind. Even i kill that process it keeps on started coming. Let me know if any changes needs to be taken place or let me know if you need further. thanks!!
system status-statistics.PNG

Re: System Status - system statistics issue

Posted: Tue Jun 18, 2013 10:48 am
by abrist
Have you edited your crontab at all?
Lets check the current running crons on the server:

Code: Select all

ps -aef | grep cron
You should see the following line listed:

Code: Select all

/usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php
If not, or even if so, restart cron:

Code: Select all

service crond stop
killall crond
service crond start
Check ps again:

Code: Select all

ps -aef | grep cron
If sysstat.php is still not running check the crond file and post the outputs here:

Code: Select all

cat /etc/cron.d/nagiosxi

Re: System Status - system statistics issue

Posted: Tue Jun 18, 2013 11:45 pm
by gm_rajkumar
Please find the results for your reference..

Code: Select all

# ps -aef | grep cron
nagios     301 32757  0 08:25 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/cleaner.php
nagios     303 32765  0 08:25 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php
nagios     305 32755  0 08:25 ?        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     306   305  0 08:25 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/feedproc.php
nagios     307 32767  0 08:25 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php
root       329 28239  0 May10 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root       330 28239  0 May10 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root       494     1  0 Jun02 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root       931 28803  0 May07 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root       932 28803  0 May07 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
nagios     977 23049  0 08:26 ?        00:00:00 crond
nagios     978 23049  0 08:26 ?        00:00:00 crond
nagios     979 23049  0 08:26 ?        00:00:00 crond
nagios     980 23049  0 08:26 ?        00:00:00 crond
nagios     981 23049  0 08:26 ?        00:00:00 crond
nagios     982 23049  0 08:26 ?        00:00:00 crond
nagios     985 23049  0 08:26 ?        00:00:00 crond
nagios     986 23049  0 08:26 ?        00:00:00 crond
nagios     987   985  0 08:26 ?        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     988   979  0 08:26 ?        00:00:00 /bin/sh -c /usr/bin/php -q /usr/local/nagiosxi/cron/nom.php > /usr/local/nagiosxi/var/nom.log 2>&1
nagios     989   978  0 08:26 ?        00:00:00 /bin/sh -c /usr/bin/php -q /usr/local/nagiosxi/cron/reportengine.php > /usr/local/nagiosxi/var/reportengine.log 2>&1
nagios     990   987  0 08:26 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php
nagios     991   989  0 08:26 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/reportengine.php
nagios     992   981  0 08:26 ?        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     993   980  0 08:26 ?        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     994   992  0 08:26 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/feedproc.php
nagios     995   977  0 08:26 ?        00:00:00 /bin/sh -c /usr/bin/php -q /usr/local/nagiosxi/cron/cleaner.php > /usr/local/nagiosxi/var/cleaner.log 2>&1
nagios     996   995  1 08:26 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/cleaner.php
nagios     997   993  0 08:26 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php
nagios     998   986  0 08:26 ?        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     999   982  0 08:26 ?        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    1000   999  1 08:26 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/eventman.php
nagios    1001   988  0 08:26 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/nom.php
nagios    1002   998  0 08:26 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php
root      1070 22054  0 May15 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root      1071 22054  0 May15 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root      1214  4551  0 08:26 pts/1    00:00:00 grep cron
root      1603     1  0 May14 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root      2045 31088  0 Jun10 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root      2046 31088  0 Jun10 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root      2113     1  0 May22 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root      2701     1  0 Jun03 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
nagios    4293 23049  0 08:15 ?        00:00:00 crond
nagios    4312  4293  0 08:15 ?        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    4320  4312  0 08:15 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php
nagios    4575 23049  0 08:16 ?        00:00:00 crond
nagios    4588  4575  0 08:16 ?        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    4590  4588  0 08:16 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php
root      4972     1  0 May28 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
nagios    5485 23049  0 08:17 ?        00:00:00 crond
nagios    5487  5485  0 08:17 ?        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    5498  5487  0 08:17 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php
root      5625  8728  0 May18 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root      5626  8728  0 May18 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
nagios    6130 23049  0 08:18 ?        00:00:00 crond
nagios    6131 23049  0 08:18 ?        00:00:00 crond
nagios    6137  6131  0 08:18 ?        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    6143  6137  0 08:18 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php
nagios    6145  6130  0 08:18 ?        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    6146  6145  0 08:18 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php
root      6293  9440  0 May17 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root      6294  9440  0 May17 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root      6837 10503  0 04:10 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root      6838 10503  0 04:10 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root      7237     1  0 May20 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root      7374     1  0 May26 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root      7650 28987  0 May30 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root      7651 28987  0 May30 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root      8191 30346  0 May19 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root      8192 30346  0 May19 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root      8209     1  0 Jun01 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root      8728     1  0 May18 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root      9430     1  0 May02 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root      9440     1  0 May17 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root      9502     1  0 May01 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root      9776 12853  0 May16 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root      9777 12853  0 May16 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root      9828     1  0 May23 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root      9950   494  0 Jun02 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root      9951   494  0 Jun02 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     10160  4972  0 May28 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     10161  4972  0 May28 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     10499 23049  0 04:02 ?        00:00:00 crond
root     10503 10499  0 04:02 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root     11016     1  0 May31 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root     11468 31424  0 Jun06 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     11469 31424  0 Jun06 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     11553  9430  0 May02 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     11554  9430  0 May02 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     11779 15549  0 Jun11 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     11780 15549  0 Jun11 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     12242 23049  0 Jun17 ?        00:00:00 crond
root     12243 12242  0 Jun17 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root     12521 23049  0 Jun16 ?        00:00:00 crond
root     12522 12521  0 Jun16 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root     12853     1  0 May16 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root     13011     1  0 Jun07 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root     13672     1  0 May24 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root     13763  1603  0 May14 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     13764  1603  0 May14 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     13938 11016  0 May31 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     13939 11016  0 May31 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     14102 13011  0 Jun07 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     14103 13011  0 Jun07 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     14241 12522  0 Jun16 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     14242 12522  0 Jun16 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     14253     1  0 May11 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root     14607 12243  0 Jun17 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     14608 12243  0 Jun17 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     14682  9502  0 May01 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     14683  9502  0 May01 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     14971     1  0 May03 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root     15063 23049  0 Jun15 ?        00:00:00 crond
root     15064 15063  0 Jun15 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root     15196 14253  0 May11 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     15197 14253  0 May11 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     15289 23233  0 May25 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     15290 23233  0 May25 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     15385 24614  0 Apr30 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     15386 24614  0 Apr30 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     15539 23049  0 Jun11 ?        00:00:00 crond
root     15549 15539  0 Jun11 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root     16042 23049  0 Jun18 ?        00:00:00 crond
root     16056 16042  0 Jun18 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root     16686 23049  0 Jun14 ?        00:00:00 crond
root     16687 16686  0 Jun14 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root     16747 15064  0 Jun15 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     16748 15064  0 Jun15 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     17091 23049  0 Jun13 ?        00:00:00 crond
root     17092 17091  0 Jun13 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root     17142  2113  0 May22 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     17143  2113  0 May22 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
nagios   17406 23049  0 08:19 ?        00:00:00 crond
nagios   17411 23049  0 08:19 ?        00:00:00 crond
nagios   17412 17406  0 08:19 ?        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   17413 17412  0 08:19 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php
nagios   17414 17411  0 08:19 ?        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   17415 17414  0 08:19 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php
root     17960 16056  0 Jun18 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     17961 16056  0 Jun18 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
nagios   18614 23049  0 08:20 ?        00:00:00 crond
nagios   18615 23049  0 08:20 ?        00:00:00 crond
nagios   18621 18614  0 08:20 ?        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   18622 18621  0 08:20 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php
nagios   18623 18615  0 08:20 ?        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   18624 18623  0 08:20 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php
nagios   18803 23049  0 08:21 ?        00:00:00 crond
nagios   18804 23049  0 08:21 ?        00:00:00 crond
nagios   18815 18804  0 08:21 ?        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   18818 18815  0 08:21 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php
nagios   18819 18803  0 08:21 ?        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   18820 18819  0 08:21 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php
root     18943     1  0 May04 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
nagios   19130 23049  0 08:22 ?        00:00:00 crond
nagios   19131 23049  0 08:22 ?        00:00:00 crond
nagios   19137 19130  0 08:22 ?        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   19138 19137  0 08:22 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php
nagios   19140 19131  0 08:22 ?        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   19145 19140  0 08:22 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php
root     19191  9828  0 May23 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     19192  9828  0 May23 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     19552 27675  0 Jun05 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     19553 27675  0 Jun05 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     19926 21695  0 May06 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     19927 21695  0 May06 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     19932  7237  0 May20 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     19933  7237  0 May20 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
nagios   19961 23049  0 08:23 ?        00:00:00 crond
nagios   19962 23049  0 08:23 ?        00:00:00 crond
nagios   19966 19961  0 08:23 ?        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   19967 19966  0 08:23 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php
root     19970     1  0 May27 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
nagios   19973 19962  0 08:23 ?        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   19974 19973  0 08:23 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php
root     20679 19970  0 May27 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     20680 19970  0 May27 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     21317 17092  0 Jun13 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     21318 17092  0 Jun13 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     21413 28382  0 May08 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     21414 28382  0 May08 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     21498 14971  0 May03 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     21499 14971  0 May03 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     21589     1  0 May13 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root     21695     1  0 May06 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root     22036 25580  0 May12 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     22037 25580  0 May12 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     22054     1  0 May15 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root     22127 23049  0 Jun09 ?        00:00:00 crond
root     22128 22127  0 Jun09 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root     22789     1  0 May05 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.weekly
root     22815 22789  0 May05 ?        00:00:00 /bin/bash /etc/cron.weekly/makewhatis.cron
root     22816 22789  0 May05 ?        00:00:00 awk -v progname=/etc/cron.weekly/makewhatis.cron progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     23024  8209  0 Jun01 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     23025  8209  0 Jun01 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     23049     1  0 Jun07 ?        00:00:19 crond
root     23233     1  0 May25 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root     23264 22128  0 Jun09 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     23265 22128  0 Jun09 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     24586  7374  0 May26 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     24588  7374  0 May26 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     24614     1  0 Apr30 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root     24772 29320  0 May05 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     24773 29320  0 May05 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     24889 23049  0 Jun08 ?        00:00:00 crond
root     24890 24889  0 Jun08 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root     25580     1  0 May12 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root     25970 24890  0 Jun08 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     25971 24890  0 Jun08 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     26377 30321  0 May09 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     26378 30321  0 May09 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     26813 31695  0 Jun12 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     26814 31695  0 Jun12 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     26848     1  0 May29 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root     27301     1  0 Jun04 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root     27575  2701  0 Jun03 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     27576  2701  0 Jun03 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     27675     1  0 Jun05 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root     28239     1  0 May10 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root     28357 27301  0 Jun04 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     28358 27301  0 Jun04 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     28382     1  0 May08 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root     28803     1  0 May07 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root     28987     1  0 May30 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root     29320     1  0 May05 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root     29430 13672  0 May24 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     29431 13672  0 May24 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     29459 18943  0 May04 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     29460 18943  0 May04 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     30321     1  0 May09 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root     30346     1  0 May19 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root     30731 31748  0 May21 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     30732 31748  0 May21 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     30750 16687  0 Jun14 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     30751 16687  0 Jun14 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     31086 23049  0 Jun10 ?        00:00:00 crond
root     31088 31086  0 Jun10 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root     31424     1  0 Jun06 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
nagios   31617 23049  0 08:24 ?        00:00:00 crond
nagios   31619 23049  0 08:24 ?        00:00:00 crond
nagios   31620 31619  0 08:24 ?        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   31627 31617  0 08:24 ?        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   31629 31627  0 08:24 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php
nagios   31631 31620  0 08:24 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php
root     31686 23049  0 Jun12 ?        00:00:00 crond
root     31695 31686  0 Jun12 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root     31748     1  0 May21 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root     31896 26848  0 May29 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     31897 26848  0 May29 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     32339 21589  0 May13 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     32340 21589  0 May13 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
nagios   32746 23049  0 08:25 ?        00:00:00 crond
nagios   32754 23049  0 08:25 ?        00:00:00 crond
nagios   32755 23049  0 08:25 ?        00:00:00 crond
nagios   32757 32746  0 08:25 ?        00:00:00 /bin/sh -c /usr/bin/php -q /usr/local/nagiosxi/cron/cleaner.php > /usr/local/nagiosxi/var/cleaner.log 2>&1
nagios   32758 32754  0 08:25 ?        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   32759 32758  0 08:25 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php
nagios   32763 23049  0 08:25 ?        00:00:00 crond
nagios   32765 32763  0 08:25 ?        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   32766 23049  0 08:25 ?        00:00:00 crond
nagios   32767 32766  0 08:25 ?        00:00:00 /bin/sh -c /usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php > /usr/local/nagiosxi/var/sysstat.log 2>&1
You have new mail in /var/spool/mail/root
------------------------------------------------------------------------------------------------

Re: System Status - system statistics issue

Posted: Tue Jun 18, 2013 11:47 pm
by gm_rajkumar
abrist wrote:Have you edited your crontab at all?
Lets check the current running crons on the server:

Code: Select all

ps -aef | grep cron
You should see the following line listed:

Code: Select all

/usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php
If not, or even if so, restart cron:

Code: Select all

service crond stop
killall crond
service crond start
Check ps again:

Code: Select all

ps -aef | grep cron
If sysstat.php is still not running check the crond file and post the outputs here:

Code: Select all

cat /etc/cron.d/nagiosxi

Code: Select all

# /usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php 
DB BACKEND:
Array
(
    [last_checkin] => 2014-04-04 16:23:34
    [bytes_processed] => 1618954086
    [entries_processed] => 5946550
    [connect_time] => 2014-04-01 22:49:14
    [disconnect_time] => 0000-00-00 00:00:00
)

[1]+  Stopped                 /usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php
------------------------------------------------------------------------------------------------------
# service crond stop
Stopping crond:                                            [  OK  ]
# killall crond
# service crond start
Starting crond:                                            [  OK  ]
--------------------------------------------------------------------------------------------------------------

# ps -aef | grep cron
nagios     303 32765  0 08:25 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php
nagios     307 32767  0 08:25 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php
root       329 28239  0 May10 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root       330 28239  0 May10 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root       494     1  0 Jun02 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root       931 28803  0 May07 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root       932 28803  0 May07 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
nagios     987     1  0 08:26 ?        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     990   987  0 08:26 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php
nagios     993     1  0 08:26 ?        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     997   993  0 08:26 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php
nagios     998     1  0 08:26 ?        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    1002   998  0 08:26 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php
root      1070 22054  0 May15 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root      1071 22054  0 May15 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root      1603     1  0 May14 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
nagios    1942     1  0 08:27 ?        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    1943  1942  0 08:27 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php
nagios    1944     1  0 08:27 ?        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    1956     1  0 08:27 ?        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    1960  1956  0 08:27 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php
nagios    1961  1944  0 08:27 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php
root      2045 31088  0 Jun10 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root      2046 31088  0 Jun10 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root      2113     1  0 May22 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
nagios    2585     1  0 08:28 ?        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    2586  2585  0 08:28 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php
nagios    2587     1  0 08:28 ?        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    2588  2587  0 08:28 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php
nagios    2591     1  0 08:28 ?        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    2592  2591  0 08:28 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php
nagios    2594     1  0 08:28 ?        00:00:00 /bin/sh -c /usr/bin/php -q /usr/local/nagiosxi/cron/cleaner.php > /usr/local/nagiosxi/var/cleaner.log 2>&1
nagios    2595  2594  0 08:28 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/cleaner.php
nagios    2596     1  0 08:28 ?        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    2597  2596  0 08:28 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/feedproc.php
root      2701     1  0 Jun03 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root      4972     1  0 May28 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root      5625  8728  0 May18 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root      5626  8728  0 May18 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
nagios    6145     1  0 08:18 ?        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    6146  6145  0 08:18 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php
root      6293  9440  0 May17 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root      6294  9440  0 May17 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root      6837 10503  0 04:10 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root      6838 10503  0 04:10 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root      7237     1  0 May20 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root      7374     1  0 May26 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root      7650 28987  0 May30 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root      7651 28987  0 May30 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root      8191 30346  0 May19 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root      8192 30346  0 May19 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root      8209     1  0 Jun01 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root      8728     1  0 May18 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root      9430     1  0 May02 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root      9440     1  0 May17 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root      9502     1  0 May01 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root      9776 12853  0 May16 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root      9777 12853  0 May16 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root      9828     1  0 May23 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root      9950   494  0 Jun02 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root      9951   494  0 Jun02 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     10160  4972  0 May28 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     10161  4972  0 May28 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     10503     1  0 04:02 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root     11016     1  0 May31 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root     11468 31424  0 Jun06 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     11469 31424  0 Jun06 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     11553  9430  0 May02 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     11554  9430  0 May02 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     11779 15549  0 Jun11 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     11780 15549  0 Jun11 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     12243     1  0 Jun17 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root     12522     1  0 Jun16 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root     12853     1  0 May16 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root     13011     1  0 Jun07 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root     13672     1  0 May24 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root     13763  1603  0 May14 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     13764  1603  0 May14 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
nagios   13855     1  0 08:29 ?        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   13856 13855  0 08:29 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/feedproc.php
nagios   13860     1  0 08:29 ?        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   13862 13860  0 08:29 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php
nagios   13865     1  0 08:29 ?        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   13867     1  0 08:29 ?        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   13868 13865  0 08:29 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php
nagios   13870 13867  0 08:29 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php
root     13938 11016  0 May31 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     13939 11016  0 May31 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     14102 13011  0 Jun07 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     14103 13011  0 Jun07 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     14241 12522  0 Jun16 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     14242 12522  0 Jun16 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     14253     1  0 May11 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root     14607 12243  0 Jun17 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     14608 12243  0 Jun17 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     14638     1  0 08:29 ?        00:00:00 crond
nagios   14656 14638  0 08:30 ?        00:00:00 crond
nagios   14657 14638  0 08:30 ?        00:00:00 crond
nagios   14658 14638  0 08:30 ?        00:00:00 crond
nagios   14659 14638  0 08:30 ?        00:00:00 crond
nagios   14660 14638  0 08:30 ?        00:00:00 crond
nagios   14662 14638  0 08:30 ?        00:00:00 crond
root     14665 14638  0 08:30 ?        00:00:00 crond
nagios   14668 14658  0 08:30 ?        00:00:00 /bin/sh -c /usr/bin/php -q /usr/local/nagiosxi/cron/reportengine.php > /usr/local/nagiosxi/var/reportengine.log 2>&1
nagios   14679 14668  0 08:30 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/reportengine.php
nagios   14681 14659  0 08:30 ?        00:00:00 /bin/sh -c /usr/bin/php -q /usr/local/nagiosxi/cron/nom.php > /usr/local/nagiosxi/var/nom.log 2>&1
root     14682  9502  0 May01 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     14683  9502  0 May01 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
nagios   14684 14681  0 08:30 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/nom.php
nagios   14687 14662  0 08:30 ?        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   14688 14687  1 08:30 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/eventman.php
nagios   14691 14660  0 08:30 ?        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   14692 14691  0 08:30 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php
nagios   14696 14656  0 08:30 ?        00:00:00 /bin/sh -c /usr/bin/php -q /usr/local/nagiosxi/cron/cleaner.php > /usr/local/nagiosxi/var/cleaner.log 2>&1
nagios   14697 14657  0 08:30 ?        00:00:00 /bin/sh -c /usr/bin/php -q /usr/local/nagiosxi/cron/dbmaint.php > /usr/local/nagiosxi/var/dbmaint.log 2>&1
nagios   14700 14697  0 08:30 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/dbmaint.php
nagios   14701 14696  0 08:30 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/cleaner.php
root     14971     1  0 May03 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root     15064     1  0 Jun15 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root     15196 14253  0 May11 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     15197 14253  0 May11 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     15261  4551  0 08:30 pts/1    00:00:00 grep cron
root     15289 23233  0 May25 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     15290 23233  0 May25 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     15385 24614  0 Apr30 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     15386 24614  0 Apr30 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     15549     1  0 Jun11 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root     16056     1  0 Jun18 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root     16687     1  0 Jun14 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root     16747 15064  0 Jun15 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     16748 15064  0 Jun15 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     17092     1  0 Jun13 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root     17142  2113  0 May22 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     17143  2113  0 May22 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
nagios   17412     1  0 08:19 ?        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   17413 17412  0 08:19 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php
root     17960 16056  0 Jun18 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     17961 16056  0 Jun18 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
nagios   18621     1  0 08:20 ?        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   18622 18621  0 08:20 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php
nagios   18819     1  0 08:21 ?        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   18820 18819  0 08:21 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php
root     18943     1  0 May04 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
nagios   19137     1  0 08:22 ?        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   19138 19137  0 08:22 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php
nagios   19140     1  0 08:22 ?        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   19145 19140  0 08:22 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php
root     19191  9828  0 May23 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     19192  9828  0 May23 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     19552 27675  0 Jun05 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     19553 27675  0 Jun05 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     19926 21695  0 May06 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     19927 21695  0 May06 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     19932  7237  0 May20 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     19933  7237  0 May20 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
nagios   19966     1  0 08:23 ?        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   19967 19966  0 08:23 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php
root     19970     1  0 May27 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
nagios   19973     1  0 08:23 ?        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   19974 19973  0 08:23 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php
root     20679 19970  0 May27 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     20680 19970  0 May27 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     21317 17092  0 Jun13 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     21318 17092  0 Jun13 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     21413 28382  0 May08 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     21414 28382  0 May08 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     21498 14971  0 May03 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     21499 14971  0 May03 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     21589     1  0 May13 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root     21695     1  0 May06 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root     22036 25580  0 May12 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     22037 25580  0 May12 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     22054     1  0 May15 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root     22128     1  0 Jun09 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root     22789     1  0 May05 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.weekly
root     22815 22789  0 May05 ?        00:00:00 /bin/bash /etc/cron.weekly/makewhatis.cron
root     22816 22789  0 May05 ?        00:00:00 awk -v progname=/etc/cron.weekly/makewhatis.cron progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     23024  8209  0 Jun01 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     23025  8209  0 Jun01 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     23233     1  0 May25 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root     23264 22128  0 Jun09 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     23265 22128  0 Jun09 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     24586  7374  0 May26 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     24588  7374  0 May26 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     24614     1  0 Apr30 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root     24772 29320  0 May05 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     24773 29320  0 May05 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     24890     1  0 Jun08 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root     25580     1  0 May12 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root     25970 24890  0 Jun08 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     25971 24890  0 Jun08 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     26377 30321  0 May09 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     26378 30321  0 May09 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     26813 31695  0 Jun12 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     26814 31695  0 Jun12 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     26848     1  0 May29 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root     27301     1  0 Jun04 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root     27575  2701  0 Jun03 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     27576  2701  0 Jun03 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     27675     1  0 Jun05 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root     28239     1  0 May10 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root     28357 27301  0 Jun04 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     28358 27301  0 Jun04 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     28382     1  0 May08 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root     28803     1  0 May07 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root     28987     1  0 May30 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root     29320     1  0 May05 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root     29430 13672  0 May24 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     29431 13672  0 May24 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     29459 18943  0 May04 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     29460 18943  0 May04 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     30321     1  0 May09 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root     30346     1  0 May19 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root     30731 31748  0 May21 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     30732 31748  0 May21 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     30750 16687  0 Jun14 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     30751 16687  0 Jun14 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     31088     1  0 Jun10 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root     31424     1  0 Jun06 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
nagios   31620     1  0 08:24 ?        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   31627     1  0 08:24 ?        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   31629 31627  0 08:24 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php
nagios   31631 31620  0 08:24 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php
root     31695     1  0 Jun12 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root     31748     1  0 May21 ?        00:00:00 /bin/bash /usr/bin/run-parts /etc/cron.daily
root     31896 26848  0 May29 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     31897 26848  0 May29 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
root     32339 21589  0 May13 ?        00:00:00 /bin/sh /etc/cron.daily/rpm
root     32340 21589  0 May13 ?        00:00:00 awk -v progname=/etc/cron.daily/rpm progname {?????   print progname ":\n"?????   progname="";????       }????       { print; }
nagios   32758     1  0 08:25 ?        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   32759 32758  0 08:25 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php
nagios   32765     1  0 08:25 ?        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   32767     1  0 08:25 ?        00:00:00 /bin/sh -c /usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php > /usr/local/nagiosxi/var/sysstat.log 2>&1
-------------------------------------------------------------------------------------------------------------------------
# cat /etc/cron.d/nagiosxi 
# /etc/cron.d/nagiosxi: crontab fragment for nagiosxi

# Backup MySQL & PostgreSQL Databases
0   7 * * * root   /root/scripts/automysqlbackup
0   8 * * * root   /root/scripts/autopostgresqlbackup

*   * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php > /usr/local/nagiosxi/var/sysstat.log 2>&1
*   * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php > /usr/local/nagiosxi/var/cmdsubsys.log 2>&1
*   * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/eventman.php > /usr/local/nagiosxi/var/eventman.log 2>&1
*   * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/feedproc.php > /usr/local/nagiosxi/var/feedproc.log 2>&1
*   * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php > /usr/local/nagiosxi/var/perfdataproc.log 2>&1
*   * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/nom.php > /usr/local/nagiosxi/var/nom.log 2>&1
*   * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/reportengine.php > /usr/local/nagiosxi/var/reportengine.log 2>&1
*/5 * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/dbmaint.php > /usr/local/nagiosxi/var/dbmaint.log 2>&1
*   * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/cleaner.php > /usr/local/nagiosxi/var/cleaner.log 2>&1
01  * * * * nagios /usr/local/nagiosxi/cron/recurringdowntime.pl > /usr/local/nagiosxi/var/recurringdowntime.log 2>&1
*/5 * * * * nagios /usr/bin/php -q /usr/local/nagiosxi/cron/deadpool.php > /usr/local/nagiosxi/var/deadpool.log 2>&1
------------------------------------------------------------------------------------------------------------
Let me know if you need further details, thanks!
Regards,
Raj.

Re: System Status - system statistics issue

Posted: Wed Jun 19, 2013 11:52 am
by abrist
You have a large number of multiples for each of these crons. Stop the cron service, run a ps, and then restart cron. Post the output of that ps in code wraps.

Code: Select all

service crond stop
ps -aef | grep cron
service crond start

Re: System Status - system statistics issue

Posted: Tue Jun 25, 2013 3:45 am
by gm_rajkumar
Please find the below results, kindly let me know if you need further over this..however, Im still facing the issue.I'm suspecting that postgres is utilizing the more resources of the system. System status show Red already tried Nagios server slowness http://support.nagios.com/forum/viewtop ... =6&t=10660 Is it possible to change postgres to Mysql instead of it???
kindly check and let me know... thanks!!

Code: Select all

[root@monitoring ~]# service crond stop
Stopping crond:                                            [  OK  ]
[root@monitoring ~]# ps -aef | grep cron
nagios    3569     1  0 12:41 ?        00:00:00 crond
nagios    3572     1  0 12:41 ?        00:00:00 crond
nagios    3573     1  0 12:41 ?        00:00:00 crond
nagios    3574     1  0 12:41 ?        00:00:00 crond
nagios    3575     1  0 12:41 ?        00:00:00 crond
nagios    3576     1  0 12:41 ?        00:00:00 crond
nagios    3581  3572  0 12:41 ?        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    3582  3574  0 12:41 ?        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    3583  3582  0 12:41 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/eventman.php
nagios    3585  3569  0 12:41 ?        00:00:00 /bin/sh -c /usr/bin/php -q /usr/local/nagiosxi/cron/cleaner.php > /usr/local/nagiosxi/var/cleaner.log 2>&1
nagios    3586  3585  0 12:41 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/cleaner.php
nagios    3587  3576  0 12:41 ?        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    3588  3573  0 12:41 ?        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    3589  3575  0 12:41 ?        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    3590  3588  0 12:41 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/feedproc.php
nagios    3591  3581  0 12:41 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php
nagios    3593  3589  0 12:41 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php
nagios    3594  3587  0 12:41 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php
nagios    6896     1  0 12:30 ?        00:00:00 crond
nagios    6897     1  0 12:30 ?        00:00:00 crond
nagios    6920  6896  0 12:30 ?        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    6926  6897  0 12:30 ?        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    6930  6926  0 12:30 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php
nagios    6934  6920  0 12:30 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php
nagios    7034     1  0 12:42 ?        00:00:00 crond
nagios    7035     1  0 12:42 ?        00:00:00 crond
nagios    7258  7034  0 12:42 ?        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    7260  7035  0 12:42 ?        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    7262  7258  0 12:42 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php
nagios    7263  7260  0 12:42 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php
nagios    7290     1  0 12:31 ?        00:00:00 crond
nagios    7292  7290  0 12:31 ?        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    7296  7292  0 12:31 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php
nagios   10705     1  0 12:32 ?        00:00:00 crond
nagios   10706     1  0 12:32 ?        00:00:00 crond
nagios   10888 10706  0 12:32 ?        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   10890 10705  0 12:32 ?        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   10893 10888  0 12:32 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php
nagios   10894 10890  0 12:32 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php
nagios   12127     1  0 12:43 ?        00:00:00 crond
nagios   12131     1  0 12:43 ?        00:00:00 crond
nagios   12133     1  0 12:43 ?        00:00:00 crond
nagios   12134     1  0 12:43 ?        00:00:00 crond
nagios   12135     1  0 12:43 ?        00:00:00 crond
nagios   12139 12127  0 12:43 ?        00:00:00 /bin/sh -c /usr/bin/php -q /usr/local/nagiosxi/cron/cleaner.php > /usr/local/nagiosxi/var/cleaner.log 2>&1
nagios   12142 12131  0 12:43 ?        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   12143 12142  0 12:43 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php
nagios   12144 12133  0 12:43 ?        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   12145 12144  0 12:43 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/eventman.php
nagios   12149 12134  0 12:43 ?        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   12151 12149  0 12:43 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php
nagios   12153 12135  0 12:43 ?        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   12154 12139  0 12:43 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/cleaner.php
nagios   12155 12153  0 12:43 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php
nagios   13310     1  0 12:44 ?        00:00:00 crond
nagios   13322 13310  0 12:44 ?        00:00:00 /bin/sh -c /usr/bin/php -q /usr/local/nagiosxi/cron/reportengine.php > /usr/local/nagiosxi/var/reportengine.log 2>&1
nagios   13325 13322  0 12:44 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/reportengine.php
root     17318 16763  0 12:44 pts/1    00:00:00 grep cron
nagios   17381     1  0 12:34 ?        00:00:00 crond
nagios   17382     1  0 12:34 ?        00:00:00 crond
nagios   17391 17382  0 12:34 ?        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   17392 17391  0 12:34 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php
nagios   17393 17381  0 12:34 ?        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   17394 17393  0 12:34 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php
nagios   21189     1  0 12:35 ?        00:00:00 crond
nagios   21216 21189  0 12:35 ?        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   21217 21216  0 12:35 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php
nagios   21369     1  0 12:36 ?        00:00:00 crond
nagios   21370     1  0 12:36 ?        00:00:00 crond
nagios   21375 21370  0 12:36 ?        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   21377 21369  0 12:36 ?        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   21383 21377  0 12:36 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php
nagios   21386 21375  0 12:36 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php
nagios   29905     1  0 12:38 ?        00:00:00 crond
nagios   29909     1  0 12:38 ?        00:00:00 crond
nagios   29917 29905  0 12:38 ?        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   29918 29917  0 12:38 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php
nagios   29919 29909  0 12:38 ?        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   29920 29919  0 12:38 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php
[root@monitoring ~]# 
[root@monitoring ~]# service crond start
Starting crond:                                            [  OK  ]

Re: System Status - system statistics issue

Posted: Tue Jun 25, 2013 9:19 am
by slansing
Lets run the following, and please report the output from each and every command, thanks!:

Code: Select all

df -h

Code: Select all

df -i

Code: Select all

service nagios stop

Code: Select all

service mysqld stop

Code: Select all

service postgresql stop

Code: Select all

service ndo2db stop

Code: Select all

killall -9 nagios

Code: Select all

killall -9  mysqld

Code: Select all

killall -9 postgresql

Code: Select all

killall -9 ndo2db

Code: Select all

service ndo2db start

Code: Select all

service nagios start

Code: Select all

service mysqld start

Code: Select all

service postgresql start
Then run:

Code: Select all

 psql nagiosxi nagiosxi
 VACUUM;
 VACUUM ANALYZE;
 VACUUM FULL;
 \q
And:

Code: Select all

 psql postgres postgres
 VACUUM;
 VACUUM ANALYZE;
 VACUUM FULL;
 \q

Re: System Status - system statistics issue

Posted: Tue Jun 25, 2013 10:52 pm
by gm_rajkumar
Please find below results results..kindly let me know if you need further inputs..

Code: Select all

[root@monitoring data]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                       47G   22G   23G  50% /
/dev/sda1              99M   25M   70M  27% /boot
tmpfs                 1.5G     0  1.5G   0% /dev/shm
[root@monitoring data]# 

================================================

[root@monitoring data]# df -i
Filesystem            Inodes   IUsed   IFree IUse% Mounted on
/dev/mapper/VolGroup00-LogVol00
                     12570624  179633 12390991    2% /
/dev/sda1              26104      46   26058    1% /boot
tmpfs                 219736       1  219735    1% /dev/shm
You have new mail in /var/spool/mail/root
========================================

[root@monitoring data]# service nagios stop
Stopping nagios: .done.
ser[root@monitoring data]# service mysqld stop
Stopping MySQL:                                            [  OK  ]
[root@monitoring data]# service postgresql stop
Stopping postgresql service: 

                                                           [  OK  ]
[root@monitoring data]# 
[root@monitoring data]# 
[root@monitoring data]# service ndo2db stop
Stopping ndo2db: .done.
[root@monitoring data]# killall -9 nagios
nagios: no process killed
[root@monitoring data]# killall -9 mysqld 
mysqld: no process killed
[root@monitoring data]# killall -9 postgresql
postgresql: no process killed
=======================================================
[root@monitoring data]# service ndo2db start
Starting ndo2db: done.
You have new mail in /var/spool/mail/root
[root@monitoring data]# service nagios start
sStarting nagios:ervice postgresql start
 done.
[root@monitoring data]# service postgresql start
Starting postgresql service:                               [  OK  ]
[root@monitoring data]# 
=========================================================

root@monitoring data]# psql nagiosxi nagiosxi
Welcome to psql 8.1.23, the PostgreSQL interactive terminal.

Type:  \copyright for distribution terms
       \h for help with SQL commands
       \? for help with psql commands
       \g or terminate with semicolon to execute query
       \q to quit



nagiosxi=> VACUUM;
WARNING:  skipping "pg_authid" --- only table or database owner can vacuum it
WARNING:  skipping "pg_tablespace" --- only table or database owner can vacuum it
WARNING:  skipping "pg_pltemplate" --- only table or database owner can vacuum it
WARNING:  skipping "pg_shdepend" --- only table or database owner can vacuum it
WARNING:  skipping "pg_auth_members" --- only table or database owner can vacuum it
WARNING:  skipping "pg_database" --- only table or database owner can vacuum it
VACUUM


nagiosxi=> VACUUM ANALYZE;
WARNING:  skipping "pg_authid" --- only table or database owner can vacuum it
WARNING:  skipping "pg_tablespace" --- only table or database owner can vacuum it
WARNING:  skipping "pg_pltemplate" --- only table or database owner can vacuum it
WARNING:  skipping "pg_shdepend" --- only table or database owner can vacuum it
WARNING:  skipping "pg_auth_members" --- only table or database owner can vacuum it
WARNING:  skipping "pg_database" --- only table or database owner can vacuum it
VACUUM
nagiosxi=> VACUUM FULL;
WARNING:  skipping "pg_authid" --- only table or database owner can vacuum it
WARNING:  skipping "pg_tablespace" --- only table or database owner can vacuum it
WARNING:  skipping "pg_pltemplate" --- only table or database owner can vacuum it
WARNING:  skipping "pg_shdepend" --- only table or database owner can vacuum it
WARNING:  skipping "pg_auth_members" --- only table or database owner can vacuum it
WARNING:  skipping "pg_database" --- only table or database owner can vacuum it
===========================================================

[root@monitoring data]# psql postgres postgres
Welcome to psql 8.1.23, the PostgreSQL interactive terminal.

Type:  \copyright for distribution terms
       \h for help with SQL commands
       \? for help with psql commands
       \g or terminate with semicolon to execute query
       \q to quit

postgres=# VACUUM ANALYZE;
NOTICE:  number of page slots needed (28880) exceeds max_fsm_pages (20000)
HINT:  Consider increasing the configuration parameter "max_fsm_pages" to a value over 28880.
VACUUM
postgres=# VACUUM FULL;
NOTICE:  number of page slots needed (28880) exceeds max_fsm_pages (20000)
HINT:  Consider increasing the configuration parameter "max_fsm_pages" to a value over 28880.
VACUUM
postgres=# \q
======================================================================

postgres=# VACUUM;
NOTICE:  number of page slots needed (28848) exceeds max_fsm_pages (20000)
HINT:  Consider increasing the configuration parameter "max_fsm_pages" to a value over 28848.
VACUUM

Re: System Status - system statistics issue

Posted: Wed Jun 26, 2013 9:50 am
by abrist
Is the server running better? Can we check your cron processes one more time:

Code: Select all

ps -aef | grep cron

Re: System Status - system statistics issue

Posted: Wed Jun 26, 2013 9:53 am
by slansing
Sorry, I never saw you reply before I posted mine, can you run the following quick? We're playing a hunch:

Code: Select all

service crond status
Share the output with us, and also then run:

Code: Select all

service crond restart
Also please share the following after the restart:

Code: Select all

cat /etc/cron.d/nagiosxi

Code: Select all

tail -30 /var/log/cron