Sounds good, depending on your environment on the size increment(s).
You can set and watch it:
Code: Select all
watch -n 5 ls -lahrt /usr/local/nagios/var/nagios.log /usr/local/nagios/var/nagios.debugPerry
Code: Select all
watch -n 5 ls -lahrt /usr/local/nagios/var/nagios.log /usr/local/nagios/var/nagios.debugIn: /usr/local/nagios/etc/nagios.cfgplugin_timeout = 120
Then restart the nagios service:host_check_timeout=120
service_check_timeout=120
Code: Select all
systemctl restart nagiosCode: Select all
rm -rf /usr/local/nagiosxi/var/components/profile.zip
/usr/local/nagiosxi/scripts/components/getprofile.sh SUPPORTPHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate....) and the NPCD has reached MAX LOAD too.
We see that /opt/SumoCollector/jre/bin/java is taking up bit and it is on the top of the resource users listed as 'java'. May want to review that process to take a look at how things look.22731 nagios 20 0 11.6g 40312 11688 S 112.5 0.1 0:00.20 java
10032 apache 20 0 684800 72184 6124 S 100.0 0.2 0:10.72 httpd
1936 apache 20 0 643556 30884 6232 R 93.8 0.1 0:05.10 httpd
You can run this check command on the configs to get results:Warning: Duplicate definition found for service 'CPU Stats' on host 'XXXXXXXXX' (config file '/usr/local/nagios/etc/services/RHEL_Jira.cfg'....)
Code: Select all
/usr/local/nagios/bin/nagios -vvv /usr/local/nagios/etc/nagios.cfgCode: Select all
/usr/local/nagiosxi/scripts/repair_databases.shCode: Select all
systemctl restart nagiosCode: Select all
/usr/local/nagios/bin/nagios -vvv /usr/local/nagios/etc/nagios.cfgCode: Select all
tail -Fn0 /var/log/httpd/* /var/log/apache2/* /usr/local/nagios/var/* /usr/local/nagiosxi/tmp/* /usr/local/nagiosxi/var/* /var/log/syslog /var/log/messages /usr/local/nagios/var/spool/* /usr/local/nagiosxi/var/components/* | grep -Ei "warn|error|fail|timeout|<yourhostnameoripaddresshere>" >> /tmp/results.txt