Page 2 of 3
Re: Getting frequent Swap and Memory warning/critical messag
Posted: Wed Nov 04, 2020 11:58 pm
by pratikmehta003
Sure.. let me send u..
Re: Getting frequent Swap and Memory warning/critical messag
Posted: Thu Nov 05, 2020 4:13 pm
by benjaminsmith
Hi,
Sure.. let me send u..
Sounds good. If you have already sent it, can you send it once more ( my inbox was full). Thanks, Benjamin
Re: Getting frequent Swap and Memory warning/critical messag
Posted: Mon Nov 09, 2020 1:17 am
by pratikmehta003
Hi Benjamin,
PFB info:
User_Alias NAGIOSXI=nagios
User_Alias NAGIOSXIWEB=apache
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios start
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios stop
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios restart
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios reload
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios status
NAGIOSXI ALL = NOPASSWD:/etc/init.d/nagios checkconfig
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd start
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd stop
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd restart
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd reload
NAGIOSXI ALL = NOPASSWD:/etc/init.d/npcd status
NAGIOSXI ALL = NOPASSWD:/usr/bin/php /usr/local/nagiosxi/scripts/components/autodiscover_new.php *
NAGIOSXI ALL = NOPASSWD:/usr/bin/php /usr/local/nagiosxi/scripts/send_to_nls.php *
NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/scripts/components/getprofile.sh
NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/scripts/upgrade_to_latest.sh
NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/scripts/change_timezone.sh
NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/scripts/manage_services.sh *
NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/scripts/reset_config_perms.sh
NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/scripts/manage_ssl_config.sh *
NAGIOSXI ALL = NOPASSWD:/usr/local/nagiosxi/scripts/backup_xi.sh *
NAGIOSXIWEB ALL = NOPASSWD:/etc/init.d/snmptt restart
NAGIOSXIWEB ALL = NOPASSWD:/usr/bin/tail -100 /var/log/messages
NAGIOSXIWEB ALL = NOPASSWD:/usr/bin/tail -100 /var/log/httpd/error_log
NAGIOSXIWEB ALL = NOPASSWD:/usr/bin/tail -100 /var/log/mysqld.log
NAGIOSXIWEB ALL = NOPASSWD:/usr/bin/php /usr/local/nagiosxi/scripts/components/autodiscover_new.php *
NAGIOSXIWEB ALL = NOPASSWD:/usr/local/nagiosxi/scripts/components/getprofile.sh
NAGIOSXIWEB ALL = NOPASSWD:/usr/local/nagiosxi/scripts/repair_databases.sh
NAGIOSXIWEB ALL = NOPASSWD:/usr/local/nagiosxi/scripts/manage_services.sh *
Re: Getting frequent Swap and Memory warning/critical messag
Posted: Mon Nov 09, 2020 3:07 pm
by benjaminsmith
Hi,
That looks correct, are you still not able to download the profile for the GUI? How often is the monitoring engine stopping right now?
It's not common for the Nagios process to die or crash. Can you re-send a fresh system profile (I was unable to retrieve it in the PM message system)? Thanks, Benjamin
Generating a Profile fom the Command Line
Code: Select all
rm -rf /usr/local/nagiosxi/var/components/profile*​​
/usr/local/nagiosxi/scripts/components/getprofile.sh SUPPORT
Then send me the resulting /usr/local/nagiosxi/var/components/profile.zip​ file.​
Re: Getting frequent Swap and Memory warning/critical messag
Posted: Tue Nov 10, 2020 3:15 am
by pratikmehta003
Hi Benjamin,
Even for this instance i m not able to download the profile from GUI..
We are getting frequent swap and memory alerts for Nagios VM... and monitoring engine process keep fluctuating.. swap space almost goes down to 0%.. then if i restart the monitoring engine process, it again picks up... and this keeps going on...
the 2 commands u mentioned, needs to be ran separately?
this DF -h output:
Filesystem Size Used Avail Use% Mounted on
devtmpfs 7.8G 0 7.8G 0% /dev
tmpfs 7.8G 4.0K 7.8G 1% /dev/shm
tmpfs 7.8G 842M 7.0G 11% /run
tmpfs 7.8G 0 7.8G 0% /sys/fs/cgroup
/dev/mapper/systemvg-rootlv 2.0G 108M 1.8G 6% /
/dev/mapper/systemvg-usrlv 4.9G 4.1G 567M 88% /usr
/dev/sda1 976M 202M 708M 23% /boot
/dev/mapper/systemvg-homelv 984M 2.9M 932M 1% /home
/dev/mapper/systemvg-tmplv 4.9G 633M 4.0G 14% /tmp
/dev/mapper/systemvg-optlv 13G 2.2G 11G 18% /opt
/dev/mapper/datavg-data01_lv 197G 61M 187G 1% /data01
/dev/mapper/systemvg-varlv 4.9G 4.5G 199M 96% /var
tmpfs 1.6G 0 1.6G 0% /run/user/423
tmpfs 1.6G 0 1.6G 0% /run/user/10009
tmpfs 1.6G 0 1.6G 0% /run/user/1000
Re: Getting frequent Swap and Memory warning/critical messag
Posted: Tue Nov 10, 2020 6:46 pm
by benjaminsmith
Hi,
the 2 commands u mentioned, needs to be ran separately?
The first command is optional. If you run the following command:
Code: Select all
/usr/local/nagiosxi/scripts/components/getprofile.sh SUPPORT
Make sure you retrieve the most recent profile form the following directory:
Code: Select all
/usr/local/nagiosxi/var/components/
Also, if you have enough memory, it should not need the swap space. Can you increase the RAM on this server as it's probably not sufficient?
Benajmin
Re: Getting frequent Swap and Memory warning/critical messag
Posted: Thu Nov 12, 2020 7:31 am
by pratikmehta003
Sure, i will run that and send u..
and have asked customer to increase RAM
Re: Getting frequent Swap and Memory warning/critical messag
Posted: Thu Nov 12, 2020 3:52 pm
by benjaminsmith
HI,
Sounds good. You can send the profile as a private message (PM) or attach it to the thread.
Re: Getting frequent Swap and Memory warning/critical messag
Posted: Mon Nov 16, 2020 2:38 am
by pratikmehta003
sure.. give me sometime.. working with customer on it
Re: Getting frequent Swap and Memory warning/critical messag
Posted: Mon Nov 16, 2020 10:12 am
by benjaminsmith
HI,
sure.. give me sometime.. working with customer on it
Sounds good. Whenever you are ready.
Benjamin