Getting frequent Swap and Memory warning/critical message

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
pratikmehta003
Posts: 105
Joined: Thu Apr 09, 2020 7:35 am

Re: Getting frequent Swap and Memory warning/critical messag

Post by pratikmehta003 »

Sure.. let me send u..
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Getting frequent Swap and Memory warning/critical messag

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
pratikmehta003
Posts: 105
Joined: Thu Apr 09, 2020 7:35 am

Re: Getting frequent Swap and Memory warning/critical messag

Post 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 *
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Getting frequent Swap and Memory warning/critical messag

Post 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.​
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
pratikmehta003
Posts: 105
Joined: Thu Apr 09, 2020 7:35 am

Re: Getting frequent Swap and Memory warning/critical messag

Post 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
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Getting frequent Swap and Memory warning/critical messag

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
pratikmehta003
Posts: 105
Joined: Thu Apr 09, 2020 7:35 am

Re: Getting frequent Swap and Memory warning/critical messag

Post by pratikmehta003 »

Sure, i will run that and send u..

and have asked customer to increase RAM
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Getting frequent Swap and Memory warning/critical messag

Post by benjaminsmith »

HI,

Sounds good. You can send the profile as a private message (PM) or attach it to the thread.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
pratikmehta003
Posts: 105
Joined: Thu Apr 09, 2020 7:35 am

Re: Getting frequent Swap and Memory warning/critical messag

Post by pratikmehta003 »

sure.. give me sometime.. working with customer on it
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Getting frequent Swap and Memory warning/critical messag

Post by benjaminsmith »

HI,
sure.. give me sometime.. working with customer on it
Sounds good. Whenever you are ready.

Benjamin
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked