Hi Team,
We are getting availability report issue.
top - 05:07:35 up 29 days, 15:32, 2 users, load average: 2.52, 2.08, 1.95
Tasks: 194 total, 3 running, 191 sleeping, 0 stopped, 0 zombie
%Cpu(s): 27.4 us, 32.1 sy, 0.0 ni, 28.9 id, 11.3 wa, 0.0 hi, 0.3 si, 0.0 st
KiB Mem: 3883560 total, 3753396 used, 130164 free, 49776 buffers
KiB Swap: 4095996 total, 270020 used, 3825976 free. 3125112 cached Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
8858 nagios 20 0 31952 3724 16 R 99.1 0.1 305:25.61 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
20550 apache 20 0 20.152g 2.550g 2.544g R 68.5 68.8 1:10.36 /usr/local/nagios/sbin/avail.cgi
availability report issue.
- tacolover101
- Posts: 432
- Joined: Mon Apr 10, 2017 11:55 am
Re: availability report issue.
hi friend,
your load average looks fine, but your memory appears to be all used up. reports can sometimes take time to run, and do require resources.
could you please describe the issue you're facing in more detail? what are you noticing? what is nagios doing?
your load average looks fine, but your memory appears to be all used up. reports can sometimes take time to run, and do require resources.
could you please describe the issue you're facing in more detail? what are you noticing? what is nagios doing?
-
- Posts: 222
- Joined: Thu Jul 06, 2017 8:55 am
Re: availability report issue.
quick reply.
I have observed that when we try to fetch the information from nagios its using more memory utilization.
We have problem with log rotation nagios.log. And we are using nagios .4.1.1 version.
The logs are appending to next date nagios.log file in archives.
For Ex: 1st dec nagios log is appending to 2nd dec and 1,2,3 rd dec are appended to 4th log and as well as all 1st dec to 31 dec nagios log is appended to 1st jan 2020 nagios log file.
Because of this dec month availability report is not coming. we are getting the nov month availability.
And i found something like
[nagadm@local]$ ls -lZ
drwxr-xr-x. root root system_u:object_r:bin_t:s0 bin
drwxr-xr-x. root root system_u:object_r:usr_t:s0 etc
drwxr-xr-x. root root system_u:object_r:usr_t:s0 games
drwxr-xr-x. root root system_u:object_r:usr_t:s0 include
drwxr-xr-x. root root system_u:object_r:lib_t:s0 lib
drwxr-xr-x. root root system_u:object_r:lib_t:s0 lib64
drwxr-xr-x. root root system_u:object_r:usr_t:s0 libexec
drwxr-xr-x. root root unconfined_u:object_r:usr_t:s0 nagios
drwxr-xr-x nagios nagcmd ? pnp4nagios
drwxr-xr-x. root root system_u:object_r:bin_t:s0 sbin
Is Redcolored unconfined_u:object_r: this is the reason we are not getting log rotation?
We need some help on this to resolve the issue.
I have observed that when we try to fetch the information from nagios its using more memory utilization.
We have problem with log rotation nagios.log. And we are using nagios .4.1.1 version.
The logs are appending to next date nagios.log file in archives.
For Ex: 1st dec nagios log is appending to 2nd dec and 1,2,3 rd dec are appended to 4th log and as well as all 1st dec to 31 dec nagios log is appended to 1st jan 2020 nagios log file.
Because of this dec month availability report is not coming. we are getting the nov month availability.
And i found something like
[nagadm@local]$ ls -lZ
drwxr-xr-x. root root system_u:object_r:bin_t:s0 bin
drwxr-xr-x. root root system_u:object_r:usr_t:s0 etc
drwxr-xr-x. root root system_u:object_r:usr_t:s0 games
drwxr-xr-x. root root system_u:object_r:usr_t:s0 include
drwxr-xr-x. root root system_u:object_r:lib_t:s0 lib
drwxr-xr-x. root root system_u:object_r:lib_t:s0 lib64
drwxr-xr-x. root root system_u:object_r:usr_t:s0 libexec
drwxr-xr-x. root root unconfined_u:object_r:usr_t:s0 nagios
drwxr-xr-x nagios nagcmd ? pnp4nagios
drwxr-xr-x. root root system_u:object_r:bin_t:s0 sbin
Is Redcolored unconfined_u:object_r: this is the reason we are not getting log rotation?
We need some help on this to resolve the issue.
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: availability report issue.
Can you please post your nagios.cfg file so we can review your log file settings. It could be located in /usr/local/nagios/etc/
Does your system log indicate any errors when the rotation is supposed to occur each night? This will most likely be logged int /var/log/messages.
Does your system log indicate any errors when the rotation is supposed to occur each night? This will most likely be logged int /var/log/messages.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
- Posts: 222
- Joined: Thu Jul 06, 2017 8:55 am
Re: availability report issue.
its resolved you can close.
The issue is archives folder don't have right permissions. We have changed as below
chmod g+w /usr/local/nagios/var/archives/
Its res loved. Because of this nagios log file as appending. small permission issue.
As i suggest to nagios support team, There should be some default front end options should be there saying as this folder is some permission issue and the folder should have this permission, its just suggestion which helps to us.
The issue is archives folder don't have right permissions. We have changed as below
chmod g+w /usr/local/nagios/var/archives/
Its res loved. Because of this nagios log file as appending. small permission issue.
As i suggest to nagios support team, There should be some default front end options should be there saying as this folder is some permission issue and the folder should have this permission, its just suggestion which helps to us.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: availability report issue.
Great!grayloglearn wrote:its resolved you can close.
The issue is archives folder don't have right permissions. We have changed as below
chmod g+w /usr/local/nagios/var/archives/
Its res loved. Because of this nagios log file as appending. small permission issue.
As i suggest to nagios support team, There should be some default front end options should be there saying as this folder is some permission issue and the folder should have this permission, its just suggestion which helps to us.
Locking