Page 1 of 2
Graphs not loading and log files not updating
Posted: Tue Dec 15, 2015 3:37 pm
by neil_davidson
I've seen many similar threads, but so far haven't been able to crack this.
About a month ago we stopped getting graph information on our monitored services but didn't notice until now. Based on information in other threads, I looked at the file count in /usr/local/nagios/var/spool/checkresults, .../perfdata and .../xidpe. There were a TON of files in /perfdata (and nothing in the other two folders), so I moved them all into a temp folder. Still, files are accumulating once again in that folder.
The log files /usr/local/nagios/var/npcd.log and .../perfdata.log have not updated since Nov. 17. From the looks of the last messages, they were running into problems then.
tail npcd.log
[11-14-2015 21:49:44] NPCD: ERROR: Executed command exits with return code '1'
[11-14-2015 21:49:44] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//1447555767.perfdata.host'
[11-14-2015 21:52:39] NPCD: WARN: MAX load reached: load 13.370000/10.000000 at i=0[11-14-2015 21:52:54] NPCD: WARN: MAX load reached: load 12.100000/10.000000 at i=1[11-15-2015 01:27:30] NPCD: ERROR: Executed command exits with return code '1'
[11-15-2015 01:27:30] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//1447568815.perfdata.host'
[11-15-2015 01:27:30] NPCD: ERROR: Executed command exits with return code '1'
[11-15-2015 01:27:30] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//1447568816.perfdata.service'
[11-15-2015 01:27:30] NPCD: ERROR: Executed command exits with return code '1'
[11-15-2015 01:27:30] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//1447568830.perfdata.host'
[11-15-2015 21:52:08] NPCD: WARN: MAX load reached: load 16.400000/10.000000 at i=0[11-15-2015 21:52:24] NPCD: WARN: MAX load reached: load 14.530000/10.000000 at i=1[11-15-2015 21:52:39] NPCD: WARN: MAX load reached: load 11.380000/10.000000 at i=1[11-16-2015 21:51:40] NPCD: WARN: MAX load reached: load 16.740000/10.000000 at i=0[11-16-2015 21:51:55] NPCD: WARN: MAX load reached: load 13.980000/10.000000 at i=1[11-16-2015 21:52:10] NPCD: WARN: MAX load reached: load 10.970000/10.000000 at i=1[11-17-2015 01:00:55] NPCD: ERROR: Executed command exits with return code '1'
[11-17-2015 01:00:55] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//1447740026.perfdata.service'
tail perfdata.log
2015-11-15 01:27:30 [29438] [0] *** TIMEOUT: Timeout after 5 Sec. ****
2015-11-15 01:27:30 [29438] [0] *** TIMEOUT: Deleting current file to avoid NPCD loops
2015-11-15 01:27:30 [29438] [0] *** TIMEOUT: Please check your process_perfdata.cfg
2015-11-15 01:27:30 [29438] [0] *** TIMEOUT: /usr/local/nagios/var/spool/perfdata//1447568830.perfdata.host-PID-29438 deleted
2015-11-15 01:27:30 [29438] [0] *** process_perfdata.pl terminated on signal ALRM
2015-11-17 01:00:54 [5005] [0] *** TIMEOUT: Timeout after 5 Sec. ****
2015-11-17 01:00:55 [5005] [0] *** TIMEOUT: Deleting current file to avoid NPCD loops
2015-11-17 01:00:55 [5005] [0] *** TIMEOUT: Please check your process_perfdata.cfg
2015-11-17 01:00:55 [5005] [0] *** TIMEOUT: /usr/local/nagios/var/spool/perfdata//1447740026.perfdata.service-PID-5005 deleted
2015-11-17 01:00:55 [5005] [0] *** process_perfdata.pl terminated on signal ALRM
I've sent log level to '2' in both process_perfdata.cfg and npcd.cfg and restart npcd, but I see no change.
We suspect that the problem started when we upgraded to version 5.2.2 (it was around that time), and we just upgrade to 5.2.3 this morning.
Any suggestions would be greatly appreciated!
Re: Graphs not loading and log files not updating
Posted: Tue Dec 15, 2015 8:20 pm
by Box293
neil_davidson wrote:The log files /usr/local/nagios/var/npcd.log and .../perfdata.log have not updated since Nov. 17. From the looks of the last messages, they were running into problems then.
Once the amount of files in these spool location goes past a certain amount, nothing gets logged, there are too many files for the programs that are supposed to process them.
Delete any of the spooled files using this method:
Code: Select all
for f in /usr/local/nagios/var/spool/perfdata/*; do rm -f $f; done
Do this for each folder location that has lots of files, including the ones you moved to a temp folder. They are eating up inodes on your disk.
Then edit
/usr/local/nagios/etc/pnp/npcd.cfg and set
Save the file.
Then edit
/usr/local/nagios/etc/pnp/process_perfdata.cfg and set
Save the file.
Restart npcd
Now watch the logs and see what happens.
My recommendations are to:
Implement RAM Disk
Create services to watch the file counts in the spool folders
Here's a presentation on Nagios XI Best Practices which explains these recommendations:
https://www.youtube.com/watch?v=6WlZrG-_sAI
Re: Graphs not loading and log files not updating
Posted: Wed Dec 16, 2015 8:26 am
by neil_davidson
Sorry, I forgot to mention that I had already done those steps as well. I deleted the old files as you suggested, though it's a shame to lose all that data.
Thanks for the suggestions, and for the link - I will definitely check that out. However, the problem still remains - any other ideas?
Re: Graphs not loading and log files not updating
Posted: Wed Dec 16, 2015 11:09 am
by rkennedy
My recommendations are to:
Implement RAM Disk
Create services to watch the file counts in the spool folders
As @Box293 mentioned above - theis would greatly help to improve / monitor the processing.
What kind of resources do you have allocated to your machine? How many hosts / service checks are running?
Can you post the output of the following -
Re: Graphs not loading and log files not updating
Posted: Wed Dec 16, 2015 3:15 pm
by neil_davidson
What kind of resources do you have allocated to your machine?
1 CPU, 2.4 GHz, using 857 MHz
was at 3 GB RAM, I just bumped it up to 6 - no improvement
10 GB hard drive, 38% free
How many hosts / service checks are running?
77 Hosts
88 Services
Code: Select all
# top|head -5
top - 14:56:37 up 6:37, 2 users, load average: 0.94, 0.90, 0.83
Tasks: 156 total, 1 running, 155 sleeping, 0 stopped, 0 zombie
Cpu(s): 20.5%us, 2.3%sy, 0.0%ni, 73.4%id, 3.8%wa, 0.0%hi, 0.1%si, 0.0%st
Mem: 2956048k total, 1026092k used, 1929956k free, 83112k buffers
Swap: 262136k total, 0k used, 262136k free, 283868k cached
Thanks!
Re: Graphs not loading and log files not updating
Posted: Wed Dec 16, 2015 6:51 pm
by Box293
Can you supply us with these files:
Code: Select all
/usr/local/nagios/etc/nagios.cfg
/usr/local/nagios/etc/commands.cfg
/usr/local/nagios/etc/pnp/npcd.cfg
/usr/local/nagios/etc/pnp/process_perfdata.cfg
Re: Graphs not loading and log files not updating
Posted: Thu Dec 17, 2015 10:31 am
by neil_davidson
Sure, here you go.
NagiosLogs.zip
Re: Graphs not loading and log files not updating
Posted: Thu Dec 17, 2015 5:10 pm
by ssax
Also, please send the output of these commands:
Code: Select all
chage -l nagios
tail -100 /var/log/cron
cat /etc/cron.d/nagiosxi
Thank you
Re: Graphs not loading and log files not updating
Posted: Thu Dec 17, 2015 5:21 pm
by ssax
In addition to my post above, try running this command and see if there is any output (let it run for a few minutes):
Code: Select all
su - nagios -c /usr/bin/php /usr/local/nagiosxi/cron/perfdataproc.php
If it doesn't produce any errors then just CTRL+C to cancel the command.
Re: Graphs not loading and log files not updating
Posted: Thu Dec 17, 2015 6:47 pm
by neil_davidson
Here are the command outputs you asked for. I also ran the su command and after a few minutes there were no messages. Thanks very much for digging into it!
Code: Select all
# chage -l nagios
Last password change : Jun 06, 2012
Password expires : never
Password inactive : never
Account expires : never
Minimum number of days between password change : 0
Maximum number of days between password change : 99999
Number of days of warning before password expires : 7
Code: Select all
# tail -100 /var/log/cron
Dec 17 18:30:01 localhost CROND[11972]: (root) CMD (LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg --lock-file /var/lock/mrtg/mrtg_l --confcache-file /var/lib/mrtg/mrtg.ok)
Dec 17 18:30:01 localhost CROND[11973]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/nom.php > /usr/local/nagiosxi/var/nom.log 2>&1)
Dec 17 18:30:01 localhost CROND[11974]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/feedproc.php > /usr/local/nagiosxi/var/feedproc.log 2>&1)
Dec 17 18:30:01 localhost CROND[11975]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php > /usr/local/nagiosxi/var/cmdsubsys.log 2>&1)
Dec 17 18:30:01 localhost CROND[11978]: (root) CMD (/usr/lib64/sa/sa1 1 1)
Dec 17 18:31:01 localhost CROND[12362]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php > /usr/local/nagiosxi/var/perfdataproc.log 2>&1)
Dec 17 18:31:01 localhost CROND[12363]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php > /usr/local/nagiosxi/var/cmdsubsys.log 2>&1)
Dec 17 18:31:01 localhost CROND[12364]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/feedproc.php > /usr/local/nagiosxi/var/feedproc.log 2>&1)
Dec 17 18:31:01 localhost CROND[12365]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/eventman.php > /usr/local/nagiosxi/var/eventman.log 2>&1)
Dec 17 18:31:01 localhost CROND[12366]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php > /usr/local/nagiosxi/var/sysstat.log 2>&1)
Dec 17 18:31:01 localhost CROND[12367]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/nom.php > /usr/local/nagiosxi/var/nom.log 2>&1)
Dec 17 18:31:01 localhost CROND[12368]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/reportengine.php > /usr/local/nagiosxi/var/reportengine.log 2>&1)
Dec 17 18:31:01 localhost CROND[12375]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/cleaner.php > /usr/local/nagiosxi/var/cleaner.log 2>&1)
Dec 17 18:32:01 localhost CROND[12750]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/eventman.php > /usr/local/nagiosxi/var/eventman.log 2>&1)
Dec 17 18:32:01 localhost CROND[12751]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/feedproc.php > /usr/local/nagiosxi/var/feedproc.log 2>&1)
Dec 17 18:32:01 localhost CROND[12752]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php > /usr/local/nagiosxi/var/perfdataproc.log 2>&1)
Dec 17 18:32:01 localhost CROND[12753]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php > /usr/local/nagiosxi/var/cmdsubsys.log 2>&1)
Dec 17 18:32:01 localhost CROND[12754]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php > /usr/local/nagiosxi/var/sysstat.log 2>&1)
Dec 17 18:32:01 localhost CROND[12755]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/nom.php > /usr/local/nagiosxi/var/nom.log 2>&1)
Dec 17 18:32:01 localhost CROND[12756]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/reportengine.php > /usr/local/nagiosxi/var/reportengine.log 2>&1)
Dec 17 18:32:01 localhost CROND[12763]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/cleaner.php > /usr/local/nagiosxi/var/cleaner.log 2>&1)
Dec 17 18:33:01 localhost CROND[13124]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/reportengine.php > /usr/local/nagiosxi/var/reportengine.log 2>&1)
Dec 17 18:33:01 localhost CROND[13125]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/nom.php > /usr/local/nagiosxi/var/nom.log 2>&1)
Dec 17 18:33:01 localhost CROND[13126]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php > /usr/local/nagiosxi/var/perfdataproc.log 2>&1)
Dec 17 18:33:01 localhost CROND[13127]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/eventman.php > /usr/local/nagiosxi/var/eventman.log 2>&1)
Dec 17 18:33:01 localhost CROND[13128]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php > /usr/local/nagiosxi/var/cmdsubsys.log 2>&1)
Dec 17 18:33:01 localhost CROND[13129]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php > /usr/local/nagiosxi/var/sysstat.log 2>&1)
Dec 17 18:33:01 localhost CROND[13130]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/feedproc.php > /usr/local/nagiosxi/var/feedproc.log 2>&1)
Dec 17 18:33:01 localhost CROND[13131]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/cleaner.php > /usr/local/nagiosxi/var/cleaner.log 2>&1)
Dec 17 18:34:01 localhost CROND[13510]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/eventman.php > /usr/local/nagiosxi/var/eventman.log 2>&1)
Dec 17 18:34:01 localhost CROND[13511]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/feedproc.php > /usr/local/nagiosxi/var/feedproc.log 2>&1)
Dec 17 18:34:01 localhost CROND[13512]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php > /usr/local/nagiosxi/var/cmdsubsys.log 2>&1)
Dec 17 18:34:01 localhost CROND[13509]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php > /usr/local/nagiosxi/var/perfdataproc.log 2>&1)
Dec 17 18:34:01 localhost CROND[13513]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php > /usr/local/nagiosxi/var/sysstat.log 2>&1)
Dec 17 18:34:01 localhost CROND[13514]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/reportengine.php > /usr/local/nagiosxi/var/reportengine.log 2>&1)
Dec 17 18:34:01 localhost CROND[13515]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/nom.php > /usr/local/nagiosxi/var/nom.log 2>&1)
Dec 17 18:34:01 localhost CROND[13521]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/cleaner.php > /usr/local/nagiosxi/var/cleaner.log 2>&1)
Dec 17 18:35:01 localhost CROND[13904]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/dbmaint.php > /usr/local/nagiosxi/var/dbmaint.log 2>&1)
Dec 17 18:35:01 localhost CROND[13905]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/feedproc.php > /usr/local/nagiosxi/var/feedproc.log 2>&1)
Dec 17 18:35:01 localhost CROND[13906]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/reportengine.php > /usr/local/nagiosxi/var/reportengine.log 2>&1)
Dec 17 18:35:01 localhost CROND[13907]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/nom.php > /usr/local/nagiosxi/var/nom.log 2>&1)
Dec 17 18:35:01 localhost CROND[13908]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php > /usr/local/nagiosxi/var/perfdataproc.log 2>&1)
Dec 17 18:35:01 localhost CROND[13909]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php > /usr/local/nagiosxi/var/cmdsubsys.log 2>&1)
Dec 17 18:35:01 localhost CROND[13910]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/eventman.php > /usr/local/nagiosxi/var/eventman.log 2>&1)
Dec 17 18:35:01 localhost CROND[13911]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/cleaner.php > /usr/local/nagiosxi/var/cleaner.log 2>&1)
Dec 17 18:35:01 localhost CROND[13912]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/deadpool.php > /usr/local/nagiosxi/var/deadpool.log 2>&1)
Dec 17 18:35:01 localhost CROND[13913]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php > /usr/local/nagiosxi/var/sysstat.log 2>&1)
Dec 17 18:35:01 localhost CROND[13919]: (root) CMD (LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg --lock-file /var/lock/mrtg/mrtg_l --confcache-file /var/lib/mrtg/mrtg.ok)
Dec 17 18:36:01 localhost CROND[14292]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/cleaner.php > /usr/local/nagiosxi/var/cleaner.log 2>&1)
Dec 17 18:36:01 localhost CROND[14293]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php > /usr/local/nagiosxi/var/sysstat.log 2>&1)
Dec 17 18:36:01 localhost CROND[14294]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/feedproc.php > /usr/local/nagiosxi/var/feedproc.log 2>&1)
Dec 17 18:36:01 localhost CROND[14295]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/reportengine.php > /usr/local/nagiosxi/var/reportengine.log 2>&1)
Dec 17 18:36:01 localhost CROND[14296]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/nom.php > /usr/local/nagiosxi/var/nom.log 2>&1)
Dec 17 18:36:01 localhost CROND[14297]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php > /usr/local/nagiosxi/var/perfdataproc.log 2>&1)
Dec 17 18:36:01 localhost CROND[14298]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/eventman.php > /usr/local/nagiosxi/var/eventman.log 2>&1)
Dec 17 18:36:01 localhost CROND[14299]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php > /usr/local/nagiosxi/var/cmdsubsys.log 2>&1)
Dec 17 18:37:01 localhost CROND[14659]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/reportengine.php > /usr/local/nagiosxi/var/reportengine.log 2>&1)
Dec 17 18:37:01 localhost CROND[14660]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php > /usr/local/nagiosxi/var/sysstat.log 2>&1)
Dec 17 18:37:01 localhost CROND[14661]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/cleaner.php > /usr/local/nagiosxi/var/cleaner.log 2>&1)
Dec 17 18:37:01 localhost CROND[14662]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php > /usr/local/nagiosxi/var/perfdataproc.log 2>&1)
Dec 17 18:37:01 localhost CROND[14663]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/nom.php > /usr/local/nagiosxi/var/nom.log 2>&1)
Dec 17 18:37:01 localhost CROND[14664]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/feedproc.php > /usr/local/nagiosxi/var/feedproc.log 2>&1)
Dec 17 18:37:01 localhost CROND[14665]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/eventman.php > /usr/local/nagiosxi/var/eventman.log 2>&1)
Dec 17 18:37:01 localhost CROND[14666]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php > /usr/local/nagiosxi/var/cmdsubsys.log 2>&1)
Dec 17 18:38:01 localhost CROND[15037]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/cleaner.php > /usr/local/nagiosxi/var/cleaner.log 2>&1)
Dec 17 18:38:01 localhost CROND[15038]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/nom.php > /usr/local/nagiosxi/var/nom.log 2>&1)
Dec 17 18:38:01 localhost CROND[15039]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php > /usr/local/nagiosxi/var/perfdataproc.log 2>&1)
Dec 17 18:38:01 localhost CROND[15040]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/feedproc.php > /usr/local/nagiosxi/var/feedproc.log 2>&1)
Dec 17 18:38:01 localhost CROND[15041]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php > /usr/local/nagiosxi/var/cmdsubsys.log 2>&1)
Dec 17 18:38:01 localhost CROND[15042]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php > /usr/local/nagiosxi/var/sysstat.log 2>&1)
Dec 17 18:38:01 localhost CROND[15043]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/reportengine.php > /usr/local/nagiosxi/var/reportengine.log 2>&1)
Dec 17 18:38:01 localhost CROND[15044]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/eventman.php > /usr/local/nagiosxi/var/eventman.log 2>&1)
Dec 17 18:39:01 localhost CROND[15406]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/eventman.php > /usr/local/nagiosxi/var/eventman.log 2>&1)
Dec 17 18:39:01 localhost CROND[15407]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php > /usr/local/nagiosxi/var/cmdsubsys.log 2>&1)
Dec 17 18:39:01 localhost CROND[15408]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php > /usr/local/nagiosxi/var/sysstat.log 2>&1)
Dec 17 18:39:01 localhost CROND[15409]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/feedproc.php > /usr/local/nagiosxi/var/feedproc.log 2>&1)
Dec 17 18:39:01 localhost CROND[15410]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/nom.php > /usr/local/nagiosxi/var/nom.log 2>&1)
Dec 17 18:39:01 localhost CROND[15411]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php > /usr/local/nagiosxi/var/perfdataproc.log 2>&1)
Dec 17 18:39:01 localhost CROND[15412]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/reportengine.php > /usr/local/nagiosxi/var/reportengine.log 2>&1)
Dec 17 18:39:01 localhost CROND[15418]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/cleaner.php > /usr/local/nagiosxi/var/cleaner.log 2>&1)
Dec 17 18:40:01 localhost CROND[15789]: (root) CMD (/usr/lib64/sa/sa1 1 1)
Dec 17 18:40:01 localhost CROND[15790]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/cleaner.php > /usr/local/nagiosxi/var/cleaner.log 2>&1)
Dec 17 18:40:01 localhost CROND[15791]: (root) CMD (LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg --lock-file /var/lock/mrtg/mrtg_l --confcache-file /var/lib/mrtg/mrtg.ok)
Dec 17 18:40:01 localhost CROND[15792]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/deadpool.php > /usr/local/nagiosxi/var/deadpool.log 2>&1)
Dec 17 18:40:01 localhost CROND[15793]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php > /usr/local/nagiosxi/var/perfdataproc.log 2>&1)
Dec 17 18:40:01 localhost CROND[15794]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/dbmaint.php > /usr/local/nagiosxi/var/dbmaint.log 2>&1)
Dec 17 18:40:01 localhost CROND[15795]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/reportengine.php > /usr/local/nagiosxi/var/reportengine.log 2>&1)
Dec 17 18:40:01 localhost CROND[15796]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/nom.php > /usr/local/nagiosxi/var/nom.log 2>&1)
Dec 17 18:40:01 localhost CROND[15797]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/feedproc.php > /usr/local/nagiosxi/var/feedproc.log 2>&1)
Dec 17 18:40:01 localhost CROND[15798]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/eventman.php > /usr/local/nagiosxi/var/eventman.log 2>&1)
Dec 17 18:40:01 localhost CROND[15799]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php > /usr/local/nagiosxi/var/cmdsubsys.log 2>&1)
Dec 17 18:40:01 localhost CROND[15800]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php > /usr/local/nagiosxi/var/sysstat.log 2>&1)
Dec 17 18:41:01 localhost CROND[16183]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/eventman.php > /usr/local/nagiosxi/var/eventman.log 2>&1)
Dec 17 18:41:01 localhost CROND[16184]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/cmdsubsys.php > /usr/local/nagiosxi/var/cmdsubsys.log 2>&1)
Dec 17 18:41:01 localhost CROND[16185]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/reportengine.php > /usr/local/nagiosxi/var/reportengine.log 2>&1)
Dec 17 18:41:01 localhost CROND[16186]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/nom.php > /usr/local/nagiosxi/var/nom.log 2>&1)
Dec 17 18:41:01 localhost CROND[16187]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/feedproc.php > /usr/local/nagiosxi/var/feedproc.log 2>&1)
Dec 17 18:41:01 localhost CROND[16188]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/sysstat.php > /usr/local/nagiosxi/var/sysstat.log 2>&1)
Dec 17 18:41:01 localhost CROND[16189]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php > /usr/local/nagiosxi/var/perfdataproc.log 2>&1)
Dec 17 18:41:01 localhost CROND[16190]: (nagios) CMD (/usr/bin/php -q /usr/local/nagiosxi/cron/cleaner.php > /usr/local/nagiosxi/var/cleaner.log 2>&1)
Code: Select all
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