I have been getting this Lack of free swap space on Zabbix server on my aws instance via zabbix monitoring.

I am thinking of creating say 2 Gb of swap space. Do I risk loosing or interfering with anything since it is a live server (being used).

I found some steps that I intend to use as listed below:

  1. sudo dd if=/dev/zero of=/var/swapfile bs=1M count=2048
  2. sudo chmod 600 /var/swapfile
  3. sudo mkswap /var/swapfile
  4. echo /var/swapfile none swap defaults 0 0 | sudo tee -a /etc/fstab
  5. sudo swapon -a

Anyone warn me if I am taking a risk with live server? Thank you.

  • 1
    There is probably a memory leak in one component - keep zabbix-server updated and restart it when you get that alert. – user9517 Dec 13 '16 at 14:53
  • There is no indication of a memory leak anywhere. – Richlv Dec 13 '16 at 15:20

Monitoring tells you what it is configured to tell. In this case, do you need swap? If you need it, configure it. If you do not need it, adjust monitoring not to complain about the lack of swap.

Do not modify your systems just because the default settings of a monitoring system complain about something. Understand it and make sure the expectations of the monitoring system match your expectations.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.