Hello Guest

Author Topic: Monitor Swap space  (Read 97 times)

0 Members and 1 Guest are viewing this topic.

Offline miyappan

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
    • View Profile
Monitor Swap space
« on: December 26, 2016, 11:15:20 PM »
Hi Team,

how to monitor linux client machine Swap space through pandora FMS server..can you please guide me how to add modules on Pandora agent.

Offline roberto

  • Administrator
  • Full Member
  • *****
  • Posts: 28
  • Karma: 0
    • View Profile
Re: Monitor Swap space
« Reply #1 on: December 30, 2016, 04:44:06 AM »
Hi miyappan,

You will need to install a software agent in your machine. Using swapon command you will be able to see that information, e.g:

[root@artica]# swapon -s
Filename                                Type            Size    Used    Priority
/dev/dm-1                               partition       2097148 125676  -1

After that you will need to edit /etc/pandora/pandora_agent.conf and add at the end of the file:

module_begin
module_name Swap Used
module_type generic_data
module_exec swapon -s | grep /dev/dm-1 | gawk '{print $4}'
module_end

Save conf file and restart pandora_agent_daemon service.

Best regards,

Roberto.