{"id":32803,"date":"2023-07-20T15:52:38","date_gmt":"2023-07-20T18:52:38","guid":{"rendered":"https:\/\/www.locaweb.com.br\/ajuda\/?post_type=ht_kb&#038;p=32803"},"modified":"2023-08-02T11:48:51","modified_gmt":"2023-08-02T14:48:51","slug":"como-usar-plugins-predefinidos-no-monitoramento-de-servidores","status":"publish","type":"ht_kb","link":"https:\/\/www.locaweb.com.br\/ajuda\/wiki\/como-usar-plugins-predefinidos-no-monitoramento-de-servidores\/","title":{"rendered":"Como usar plugins predefinidos &#8211; Monitoramento de Servidores"},"content":{"rendered":"<h6>Introdu\u00e7\u00e3o<\/h6>\n<p><span data-contrast=\"none\">O Monitoramento de Servidores oferece uma s\u00e9rie de plugins que permitem que voc\u00ea monitore servi\u00e7os adicionais, como o desempenho de um servidor Apache ou outras propriedades, como a temperatura de um servidor.<\/span><span data-ccp-props=\"{}\">\u00a0<\/span><\/p>\n    \t\t<div class=\"hts-messages hts-messages--alert  hts-messages--withtitle hts-messages--withicon \"   >\r\n    \t\t\t<span class=\"hts-messages__title\">Aten\u00e7\u00e3o!<\/span>    \t\t\t    \t\t\t\t<p>\r\n    \t\t\t\t\t<span data-contrast=\"none\">Estes plugins tamb\u00e9m aparecem na pasta de plugins no seu servidor, no reposit\u00f3rio do GitHub. Todos est\u00e3o documentados em suas respectivas p\u00e1ginas.<\/span><span data-ccp-props=\"{}\">\u00a0<\/span>    \t\t\t\t<\/p>\r\n    \t\t\t    \t\t\t\r\n    \t\t<\/div><!-- \/.ht-shortcodes-messages -->\r\n    \t\t\n<h6><strong>Plugins dispon\u00edveis<\/strong><\/h6>\n    \t\t<div class=\"hts-toggle  \"  >\r\n    \t\t\t<div class=\"hts-toggle__title\">Apache (Monitora o desempenho de um servidor Apache)<\/div>\r\n    \t\t\t<div class=\"hts-toggle__content\">\r\n    \t\t\t\t<div class=\"hts-toggle__contentwrap\">\r\n    \t\t\t\t\t<\/p>\n<h6>Plugin predefinido &#8211; Apache<\/h6>\n<p>Monitora o desempenho de um servidor Apache.<\/p>\n<ul>\n<li>M\u00e9tricas<\/li>\n<li>IdleWorkers<\/li>\n<li>ReadingWorkers<\/li>\n<li>WritingWorkers<\/li>\n<li>KeepaliveWorkers<\/li>\n<li>DnsWorkers<\/li>\n<li>ClosingWorkers<\/li>\n<li>LoggingWorkers<\/li>\n<li>FinishingWorkers<\/li>\n<li>CleanupWorkers<\/li>\n<li>requests_per_second<\/li>\n<li>Total kBytes<\/li>\n<li>Total Accesses<\/li>\n<li>ServerUptimeSeconds<\/li>\n<li>BusyWorkers<\/li>\n<li>BytesPerReq<\/li>\n<li>BytesPerSec<\/li>\n<li>ConnsAsyncClosing<\/li>\n<li>ConnsAsyncKeepAlive<\/li>\n<li>ConnsAsyncWriting<\/li>\n<li>DnsWorkers<\/li>\n<\/ul>\n<h6>Ativando a p\u00e1gina de status<\/h6>\n<p>Para ativar a p\u00e1gina de status do Apache, inclua o seguinte c\u00f3digo no arquivo de configura\u00e7\u00e3o (httpd.conf):<\/p>\n<pre>&lt;Location \"\/server-status\"&gt;\r\n\r\nSetHandler server-status\r\n\r\nOrder deny,allow\r\n\r\nDeny from all\r\n\r\nAllow from 127.0.0.1\r\n\r\n&lt;\/Location&gt;<\/pre>\n<p>A p\u00e1gina de status s\u00f3 estar\u00e1 dispon\u00edvel em m\u00e1quinas que estejam rodando o Apache. Voc\u00ea pode testar isso, atrav\u00e9s do seguinte comando:<\/p>\n<pre>wget -qO- http:\/\/127.0.0.1\/server-status?auto<\/pre>\n<h6>Configurando o plugin<\/h6>\n<p>Edite o arquivo\u202f\/etc\/httpd\/conf.d\/zz030_ext-monitoring.conf\u202fe adicione as seguintes linhas:<\/p>\n<pre>&lt;IfModule mod_status.c&gt;\r\n\r\nListen 7050\r\n\r\n&lt;VirtualHost 127.0.0.1:7050&gt;\r\n\r\nServerName server.local\r\n\r\n&lt;Location \"\/httpd-status\"&gt;\r\n\r\nSetHandler server-status\r\n\r\nOrder deny,allow\r\n\r\nDeny from all\r\n\r\nAllow from 127.0.0.1\r\n\r\n&lt;\/Location&gt;\r\n\r\n&lt;\/VirtualHost&gt;\r\n\r\n&lt;\/IfModule&gt;<\/pre>\n<p>Para ativar o plugin, edite o arquivo\u202f\/etc\/agent360.ini\u202fe adicione as seguintes linhas:<\/p>\n<pre>[httpd]\r\n\r\nenabled = true\r\n\r\nstatus_page_url = http:\/\/127.0.0.1:7050\/httpd-status?auto<\/pre>\n<h6>Testando o plugin<\/h6>\n<p>Verifique se o plugin funciona, executando o agent360 &#8211;test httpd.\u202fEle dever\u00e1 mostrar as seguintes m\u00e9tricas:<\/p>\n<pre>httpd:\r\n\r\n{\r\n\r\n\"BusyWorkers\": \"1\",\r\n\r\n\"BytesPerReq\": \"1183.62\",\r\n\r\n\"BytesPerSec\": \"20.1089\",\r\n\r\n\"CleanupWorkers\": 0,\r\n\r\n\"ClosingWorkers\": 0,\r\n\r\n\"ConnsAsyncClosing\": \"0\",\r\n\r\n\"ConnsAsyncKeepAlive\": \"0\",\r\n\r\n\"ConnsAsyncWriting\": \"0\",\r\n\r\n\"ConnsTotal\": \"0\",\r\n\r\n\"DnsWorkers\": 0,\r\n\r\n\"FinishingWorkers\": 0,\r\n\r\n\"IdleWorkers\": 49,\r\n\r\n\"KeepaliveWorkers\": 0,\r\n\r\n\"LoggingWorkers\": 0,\r\n\r\n\"ParentServerConfigGeneration\": \"2\",\r\n\r\n\"ParentServerMPMGeneration\": \"1\",\r\n\r\n\"ReadingWorkers\": 0,\r\n\r\n\"ServerMPM\": \"event\",\r\n\r\n\"ServerUptimeSeconds\": \"69102\",\r\n\r\n\"ServerVersion\": \"Apache\/2.4.18 (Ubuntu)\",\r\n\r\n\"Total Accesses\": \"1174\",\r\n\r\n\"Total kBytes\": \"1357\",\r\n\r\n\"Uptime\": \"69102\",\r\n\r\n\"WritingWorkers\": 1,\r\n\r\n\"requests_per_second\": 0\r\n\r\n}<\/pre>\n<p>Agora voc\u00ea pode reiniciar o agente com o comando service agent360 restart<\/p>\n<p>\n    \t\t\t\t<\/div>\r\n    \t\t\t<\/div><!-- \/ht-toggle-content -->\r\n    \t\t<\/div>\r\n    \t\t\n    \t\t<div class=\"hts-toggle  \"  >\r\n    \t\t\t<div class=\"hts-toggle__title\">Asterisk (Monitora chamadas Asterisk, assim como chamadas recebidas)<\/div>\r\n    \t\t\t<div class=\"hts-toggle__content\">\r\n    \t\t\t\t<div class=\"hts-toggle__contentwrap\">\r\n    \t\t\t\t\t<\/p>\n<p>Monitora chamadas Asterisk, assim como chamadas recebidas. O Asterisk \u00e9 um framework de uso livre, para cria\u00e7\u00e3o de aplica\u00e7\u00f5es relacionadas \u00e0 comunica\u00e7\u00e3o.<\/p>\n<h6>M\u00e9tricas<\/h6>\n<ul>\n<li>Chamadas totais<\/li>\n<li>Chamadas recebidas<\/li>\n<\/ul>\n<h6>Depend\u00eancias<\/h6>\n<p>O usu\u00e1rio\u202fagent360\u202fprecisa do acesso ao\u202fsudo\u202fpara executar o\u202fsudo asterisk. Para isso, abra o arquivo\u202f\/etc\/sudoers\u202fe adicione a seguinte linha ao final do arquivo:<\/p>\n<pre>agent360 ALL=(ALL) NOPASSWD: \/usr\/sbin\/asterisk<\/pre>\n<p>Este comando parte do princ\u00edpio de que o\u202fasterisk\u202fest\u00e1 instalado em\u202f\/usr\/sbin\/asterisk. Voc\u00ea pode saber onde o\u202fasterisk\u202fest\u00e1 instalado executando o comando\u202fwhereis asterisk<\/p>\n<h6>Configurando o plugin<\/h6>\n<p>Para ativar o plugin, edite o arquivo\u202f\/etc\/agent360.ini\u202fe adicione as seguintes linhas:<\/p>\n<pre>[asterisk]\r\n\r\nenabled = yes<\/pre>\n<h6>Teste o plugin<\/h6>\n<p>Execute os comandos\u202fsu -p agent360 e agent360 test asterisk\u202fpara ver se tudo foi instalado corretamente.<\/p>\n<pre>asterisk:{\"calls\": 0,\"incomingcalls\": 0}<\/pre>\n<p>Agora, voc\u00ea pode reiniciar o agente com o comando service agent360 restart<\/p>\n<h6>Criando gr\u00e1ficos<\/h6>\n<p>Clique em\u202fM\u00e9tricas, no menu principal. Selecione\u202fasterisk\u202fcomo o tipo da m\u00e9trica e\u202fcalls\u202fpara a m\u00e9trica. Indique os servidores para os quais voc\u00ea gostaria de ter os gr\u00e1ficos e salve-os no painel principal (dashboard).<\/p>\n<p>\n    \t\t\t\t<\/div>\r\n    \t\t\t<\/div><!-- \/ht-toggle-content -->\r\n    \t\t<\/div>\r\n    \t\t\n    \t\t<div class=\"hts-toggle  \"  >\r\n    \t\t\t<div class=\"hts-toggle__title\">CloudLinux DB Governor (Monitora os usu\u00e1rios de um banco de dados Governor, em um sistema Cloud Linux)<\/div>\r\n    \t\t\t<div class=\"hts-toggle__content\">\r\n    \t\t\t\t<div class=\"hts-toggle__contentwrap\">\r\n    \t\t\t\t\t<\/p>\n<h6>Plugin predefinido \u2013 CloudLinux DB Governor<\/h6>\n<p>Monitora os usu\u00e1rios de um banco de dados Governor, em um sistema Cloud Linux.<\/p>\n<h6>M\u00e9tricas<\/h6>\n<p>As m\u00e9tricas est\u00e3o dispon\u00edveis atrav\u00e9s do comando lveinfo<\/p>\n<h6>Depend\u00eancias<\/h6>\n<p>Para configurar o plugin, adicione a seguinte linha ao arquivo\u202f\/etc\/sudoers:<\/p>\n<pre>agent360 ALL=(ALL) NOPASSWD: \/REPLACE\/PATH\/TO\/lveinfo<\/pre>\n<h6>Configurando o plugin<\/h6>\n<p>Para ativar o plugin, edite o arquivo\u202f\/etc\/agent360.ini\u202fe adicione as seguintes linhas:<\/p>\n<pre>[cloudlinux-dbgov]\r\n\r\nenabled = yes<\/pre>\n<h6>Testando o plugin<\/h6>\n<p>Para testar o plugin, execute o comando\u202fsudo -u agent360 agent360 test cloudlinux-dbgov<\/p>\n<p>Agora voc\u00ea pode reiniciar o agente com o comando\u202fservice agent360 restart<\/p>\n<p>\n    \t\t\t\t<\/div>\r\n    \t\t\t<\/div><!-- \/ht-toggle-content -->\r\n    \t\t<\/div>\r\n    \t\t\n    \t\t<div class=\"hts-toggle  \"  >\r\n    \t\t\t<div class=\"hts-toggle__title\">CloudLinux (Monitora usu\u00e1rios de forma individual, em um servidor Cloud Linux)<\/div>\r\n    \t\t\t<div class=\"hts-toggle__content\">\r\n    \t\t\t\t<div class=\"hts-toggle__contentwrap\">\r\n    \t\t\t\t\t<\/p>\n<h6>Plugin predefinido \u2013 CloudLinux<\/h6>\n<p>Monitora usu\u00e1rios de forma individual, em um servidor Cloud Linux.<\/p>\n<h6>Depend\u00eancias<\/h6>\n<p>A vers\u00e3o m\u00ednima do\u202fagent360\u202fdeve ser a 1.1.47.<\/p>\n<p>Para fazer upgrade do agente, execute o comando\u202fpip install agent360 &#8211;upgrade<\/p>\n<p>O usu\u00e1rio\u202fagent360\u202fprecisa do acesso\u202fsudo\u202fpara executar o\u202flveinfo.<\/p>\n<p>Para isso, abra o arquivo \/etc\/sudoers\u202fe adicione a seguinte linha ao final dele:<\/p>\n<pre>agent360 ALL=(ALL) NOPASSWD: \/usr\/sbin\/lveinfo<\/pre>\n<p>Obs.: parte-se do princ\u00edpio que o\u202flveinfo\u202fest\u00e1 instalado em\u202f\/usr\/sbin\/lveinfo.<\/p>\n<h6>Configurando o plugin<\/h6>\n<p>Para ativar o plugin, edite o arquivo\u202f\/etc\/agent360.ini\u202fe adicione as seguintes linhas:<\/p>\n<pre>[cloudlinux-dbgov]\r\n\r\nenabled = yes<\/pre>\n<h6>Testando o plugin<\/h6>\n<p>Execute o comando\u202fsudo -u agent360 agent360 test cloudlinux\u202fpara verificar se tudo foi instalado corretamente:<\/p>\n<pre>cloudlinux:{\"metrics\": 0.....}<\/pre>\n<p>Agora voc\u00ea pode reiniciar o agente com o comando\u202fservice agent360 restart<\/p>\n<p>\n    \t\t\t\t<\/div>\r\n    \t\t\t<\/div><!-- \/ht-toggle-content -->\r\n    \t\t<\/div>\r\n    \t\t\n    \t\t<div class=\"hts-toggle  \"  >\r\n    \t\t\t<div class=\"hts-toggle__title\">cPanel User Count (Retorna o n\u00famero de usu\u00e1rios em um servidor cPanel)<\/div>\r\n    \t\t\t<div class=\"hts-toggle__content\">\r\n    \t\t\t\t<div class=\"hts-toggle__contentwrap\">\r\n    \t\t\t\t\t<\/p>\n<h6>Plugin predefinido \u2013 cPanel User Count<\/h6>\n<p>Retorna o n\u00famero de usu\u00e1rios em um servidor cPanel.<\/p>\n<h6>M\u00e9tricas<\/h6>\n<ul>\n<li>Usu\u00e1rios do cPanel<\/li>\n<\/ul>\n<h6>Configurando o plugin<\/h6>\n<p>Para ativar o plugin, ediet o arquivo\u202f\/etc\/agent360.ini\u202fe adicione as seguintes linhas:<\/p>\n<pre>[cpanel]\r\n\r\nenabled = yes<\/pre>\n<h6>Testando o plugin<\/h6>\n<p>Execute o comando\u202fsudo -u agent360 agent360 test cpanel<\/p>\n<p>Agora voc\u00ea pode reiniciar o agente com o comando service agent360 restart<\/p>\n<p>\n    \t\t\t\t<\/div>\r\n    \t\t\t<\/div><!-- \/ht-toggle-content -->\r\n    \t\t<\/div>\r\n    \t\t\n    \t\t<div class=\"hts-toggle  \"  >\r\n    \t\t\t<div class=\"hts-toggle__title\">CPU Temperature (Monitora a temperatura da CPU)<\/div>\r\n    \t\t\t<div class=\"hts-toggle__content\">\r\n    \t\t\t\t<div class=\"hts-toggle__contentwrap\">\r\n    \t\t\t\t\t<\/p>\n<h6>Plugin predefinido \u2013 CPU Temperature<\/h6>\n<p>Monitora a temperatura da CPU<\/p>\n<p><div class=\"hts-messages hts-messages--alert  hts-messages--withtitle hts-messages--withicon \"   >\n    \t\t\t<span class=\"hts-messages__title\">Aten\u00e7\u00e3o!<\/span>    \t\t\t    \t\t\t\t<\/p>\n<p>\n    \t\t\t\t\tA temperatura da CPU est\u00e1 dispon\u00edvel atualmente somente em servidores Linux que n\u00e3o sejam virtuais.    \t\t\t\t<\/p>\n<\/p><\/div>\n<p><!-- \/.ht-shortcodes-messages -->\n    \t\t<\/p>\n<h6>Depend\u00eancias<\/h6>\n<p>Par permitir que este plugin acesse seu servidor, adicione a seguinte linha ao final do arquivo \/etc\/sudoers\u202f:<\/p>\n<pre>agent360 ALL=(ALL) NOPASSWD: \/usr\/sbin\/kamctl<\/pre>\n<h6>Configurando the plugin<\/h6>\n<p>Para ativar o plugin, edite o arquivo\u202f\/etc\/agent360.ini\u202fe adicione as seguintes linhas:<\/p>\n<pre>[temp]\r\n\r\nenabled = yes<\/pre>\n<h6>Testando o plugin<\/h6>\n<p>Para testar o plugin, execute o comando\u202fsudo -u agent360 agent360 test temp<\/p>\n<p>Agora voc\u00ea pode reiniciar o agente com o comando service agent360 restart<\/p>\n<p>\n    \t\t\t\t<\/div>\r\n    \t\t\t<\/div><!-- \/ht-toggle-content -->\r\n    \t\t<\/div>\r\n    \t\t\n    \t\t<div class=\"hts-toggle  \"  >\r\n    \t\t\t<div class=\"hts-toggle__title\">Directory Size (Monitora o tamanho das pastas especificadas no arquivo de configura\u00e7\u00e3o)<\/div>\r\n    \t\t\t<div class=\"hts-toggle__content\">\r\n    \t\t\t\t<div class=\"hts-toggle__contentwrap\">\r\n    \t\t\t\t\t<\/p>\n<h6>Plugin predefinido \u2013 Directory Size<\/h6>\n<p>Monitora o tamanho das pastas especificadas no arquivo de configura\u00e7\u00e3o.<\/p>\n<h6>M\u00e9tricas<\/h6>\n<ul>\n<li>Tamanhos das pastas<\/li>\n<\/ul>\n<h6>Configurando o plugin<\/h6>\n<p>Para ativar o plugin, edite o arquivo\u202f\/etc\/agent360.ini\u202fe adicione as seguintes linhas:<\/p>\n<pre>[dirsize]\r\n\r\ntemp, \/home, \/home\/backups<\/pre>\n<h6>Testando o plugin<\/h6>\n<p>Para testar o plugin, execute o comando\u202fsudo -u agent360 agent360 test dirsize<\/p>\n<p>Agora voc\u00ea pode reiniciar o agente com o comando service agent360 restart<\/p>\n<p>\n    \t\t\t\t<\/div>\r\n    \t\t\t<\/div><!-- \/ht-toggle-content -->\r\n    \t\t<\/div>\r\n    \t\t\n    \t\t<div class=\"hts-toggle  \"  >\r\n    \t\t\t<div class=\"hts-toggle__title\">Disk Status (Permite monitorar o status do drives HDD, SSD e NVME)<\/div>\r\n    \t\t\t<div class=\"hts-toggle__content\">\r\n    \t\t\t\t<div class=\"hts-toggle__contentwrap\">\r\n    \t\t\t\t\t<\/p>\n<h6>Plugin predefinido \u2013 Disk Status<\/h6>\n<p>Permite monitorar o status do drives HDD, SSD e NVME<\/p>\n<p><div class=\"hts-messages hts-messages--alert  hts-messages--withtitle hts-messages--withicon \"   >\n    \t\t\t<span class=\"hts-messages__title\">Aten\u00e7\u00e3o!<\/span>    \t\t\t    \t\t\t\t<\/p>\n<p>\n    \t\t\t\t\tEste plugin requer que voc\u00ea execute o agente como um usu\u00e1rio root.    \t\t\t\t<\/p>\n<\/p><\/div>\n<p><!-- \/.ht-shortcodes-messages -->\n    \t\t<\/p>\n<h6>Depend\u00eancias<\/h6>\n<p>Este plugin requer a vers\u00e3o 1.1.50 ou superior do\u202fagent360.\u202fPara fazer upgrade do agente em um sistema que tenha python2, execute o seguinte comando:<\/p>\n<pre>pip install agent360 --upgrade<\/pre>\n<p>J\u00e1 para fazer upgrade do agente em um sistema que tenha python3, execute o seguinte comando:<\/p>\n<pre>pip3 install agent360 --upgrade<\/pre>\n<p>Para executar o comando smartctl, voc\u00ea precisa ter acesso root. Portanto, voc\u00ea tamb\u00e9m precisa ter acesso root para executar o agente.<\/p>\n<p>Para drives NVMe, voc\u00ea precisa do nvme-cli . Siga estas instru\u00e7\u00f5es\u202f.<\/p>\n<p>Para outros drives, voc\u00ea precisa do\u202fsmartctl\u202fda\u202fsmartmontools.<\/p>\n<p>No Debian e Ubuntu, o comando\u202fapt-get install smartmontools<\/p>\n<p>No CentOS, execute o comando\u202fyum install smartmontools<\/p>\n<h6>Instalando o plugin<\/h6>\n<p>Para ativar o plugin, edite o arquivo\u202f\/etc\/agent360.ini\u202fe adicione as seguintes linhas:<\/p>\n<pre>[diskstatus]\r\n\r\nenabled = yes<\/pre>\n<p>Para NVME, adicione as seguintes linhas \u202f\/etc\/agent360.ini\u202ffile:<\/p>\n<pre>[diskstatus-nvme]\r\n\r\nenabled = yes<\/pre>\n<h6>Testando o plugin (smartmontools)<\/h6>\n<p>Execute o comando\u202fagent360 test diskstatus\u202fpara saber se tudo est\u00e1 funcionando.<\/p>\n<h6>Testando o plugin (nvme-cli)<\/h6>\n<p>Execute o comando\u202f agent360 test diskstatus-nvme\u202fpara saber se tudo est\u00e1 funcionando.<\/p>\n<p>Agora voc\u00ea pode reiniciar o agente com o comando service agent360 restart<\/p>\n<p>\n    \t\t\t\t<\/div>\r\n    \t\t\t<\/div><!-- \/ht-toggle-content -->\r\n    \t\t<\/div>\r\n    \t\t\n    \t\t<div class=\"hts-toggle  \"  >\r\n    \t\t\t<div class=\"hts-toggle__title\">Docker (Acompanha as inst\u00e2ncias do Docker em sua m\u00e1quina)<\/div>\r\n    \t\t\t<div class=\"hts-toggle__content\">\r\n    \t\t\t\t<div class=\"hts-toggle__contentwrap\">\r\n    \t\t\t\t\t<\/p>\n<h6>Plugin predefinido \u2013 Docker<\/h6>\n<p>Acompanha as inst\u00e2ncias do Docker em sua m\u00e1quina.<\/p>\n<h6>M\u00e9tricas<\/h6>\n<p>Uso da mem\u00f3ria<\/p>\n<p>Mem\u00f3ria total<\/p>\n<p>Entrada de rede<\/p>\n<p>Sa\u00edda de rede<\/p>\n<p>Escrita no disco<\/p>\n<p>Leitura do disco<\/p>\n<p>Uso de CPU<\/p>\n<p>Contador de cont\u00eainer Docker<\/p>\n<h6>Depend\u00eancias<\/h6>\n<p>O usu\u00e1rio\u202fagent360\u202fprecisa de acesso sudo para executar as estat\u00edsticas do Docker. Para isso, abra o\u202f\/etc\/sudoers\u202fe adicione a seguinte linha ao seu final:<\/p>\n<pre>agent360 ALL=(ALL) NOPASSWD: \/usr\/bin\/docker<\/pre>\n<p>O comando parte do princ\u00edpio que docker\u202fexiste em\u202f\/usr\/bin\/docker.<\/p>\n<h6>Configurando o plugin<\/h6>\n<p>Para ativar o plugin, edite o arquivo\u202f\/etc\/agent360.ini\u202fe adicione as seguintes linhas:<\/p>\n<pre>[docker]\r\n\r\nenabled = yes<\/pre>\n<h6>Testando o plugin<\/h6>\n<p>Para testar o plugin, execute o comando\u202fsudo -u agent360 agent360 test docker<\/p>\n<pre>dockerdocker:\r\n\r\n{\r\n\r\n\"containers\": 2,\r\n\r\n\"goofy_lewin\":\r\n\r\n{\r\n\r\n\"cpu\": \"0.00\",\r\n\r\n\"disk_in_bytes\": 0,\r\n\r\n\"disk_out_bytes\": 0,\r\n\r\n\"mem_pct\": \"0.05\",\r\n\r\n\"mem_total_bytes\": 1040501964.8,\r\n\r\n\"mem_usage_bytes\": 483328.0,\r\n\r\n\"net_in_bytes\": 0,\r\n\r\n\"net_out_bytes\": 0\r\n\r\n},\r\n\r\n\"pensive_austin\":\r\n\r\n{\r\n\r\n\"cpu\": \"0.00\",\r\n\r\n\"disk_in_bytes\": 0,\r\n\r\n\"disk_out_bytes\": 0,\r\n\r\n\"mem_pct\": \"0.05\",\r\n\r\n\"mem_total_bytes\": 1040501964.8,\r\n\r\n\"mem_usage_bytes\": 483328.0,\r\n\r\n\"net_in_bytes\": 0,\r\n\r\n\"net_out_bytes\": 0\r\n\r\n}\r\n\r\n}<\/pre>\n<p>Agora voc\u00ea pode reiniciar o agente com o comando service agent360 restart<\/p>\n<h6>Criando gr\u00e1ficos<\/h6>\n<p>Clique em\u202fM\u00e9tricas, no menu principal. Selecione\u202fdocker\u202fcomo o tipo da m\u00e9trica. Voc\u00ea ver\u00e1 uma lista de cont\u00eainers Docker e suas estat\u00edsticas. Escolha os servidores os quais voc\u00ea gostaria de obter os gr\u00e1ficos e salve-os em seu painel principal (dashboard).<\/p>\n<p>\n    \t\t\t\t<\/div>\r\n    \t\t\t<\/div><!-- \/ht-toggle-content -->\r\n    \t\t<\/div>\r\n    \t\t\n    \t\t<div class=\"hts-toggle  \"  >\r\n    \t\t\t<div class=\"hts-toggle__title\">Elasticsearch (Monitora o desempenho de um servi\u00e7o Elasticsearch no servidor)<\/div>\r\n    \t\t\t<div class=\"hts-toggle__content\">\r\n    \t\t\t\t<div class=\"hts-toggle__contentwrap\">\r\n    \t\t\t\t\t<\/p>\n<h6>Plugin predefinido \u2013 Elasticsearch<\/h6>\n<p>Monitora o desempenho de um servi\u00e7o Elasticsearch no servidor.<\/p>\n<h6>Configurando o plugin<\/h6>\n<p>Para ativar o plugin, edite o arquivo\u202f\/etc\/agent360.ini\u202fe adicione as seguintes linhas:<\/p>\n<pre>[elasticsearch]\r\n\r\nenabled = yes\r\n\r\nstatus_page_url = http:\/\/127.0.0.1:9200\/_stats<\/pre>\n<p>Se outro processo estiver utilizando a porta 9200, voc\u00ea pode escolher outra porta no arquivo de configura\u00e7\u00e3o.<\/p>\n<h6>Testando o plugin<\/h6>\n<p>Para testar o plugin, execute o comando\u202fsudo -u agent360 agent360 test elasticsearch<\/p>\n<p>Agora voc\u00ea pode reiniciar o agente com o comando service agent360 restart<\/p>\n<p>\n    \t\t\t\t<\/div>\r\n    \t\t\t<\/div><!-- \/ht-toggle-content -->\r\n    \t\t<\/div>\r\n    \t\t\n    \t\t<div class=\"hts-toggle  \"  >\r\n    \t\t\t<div class=\"hts-toggle__title\">Exim Queue Size (Monitora o tamanho total da fila ao usar o Exim)<\/div>\r\n    \t\t\t<div class=\"hts-toggle__content\">\r\n    \t\t\t\t<div class=\"hts-toggle__contentwrap\">\r\n    \t\t\t\t\t<\/p>\n<h6>Plugin predefinido \u2013 Exim Queue Size<\/h6>\n<p>Monitora o tamanho total da fila ao usar o Exim. O comando exim -bpc\u202fretorna o tamanho total da fila dos e-mails.<\/p>\n<h6>M\u00e9trica<\/h6>\n<p>Tamanho total da fila<\/p>\n<h6>Depend\u00eancias<\/h6>\n<p>O agent360 precisa de acesso sudo para executar\u202fexim -bpc. Para isso, abra o arquivo \/etc\/sudoers\u202fe adicione a seguinte linha ao seu final:<\/p>\n<pre>agent360 ALL=(ALL) NOPASSWD: \/usr\/sbin\/exim<\/pre>\n<p>Este comando parte do princ\u00edpio que\u202fexim\u202festeja instalado em\u202f\/usr\/sbin\/exim.<\/p>\n<h6>Configurando o plugin<\/h6>\n<p>Para ativar o plugin, edite o arquivo\u202f\/etc\/agent360.ini\u202fe adicione as seguintes linhas:<\/p>\n<pre>[exim]\r\n\r\nenabled = yes<\/pre>\n<h6>Testando o plugin<\/h6>\n<p>Para testar o plugin, execute o comando\u202fsudo -u agent360 agent360 test exim<\/p>\n<pre>exim:{\"queue_size\": 0}<\/pre>\n<p>Agora voc\u00ea pode reiniciar o agente com o comando service agent360 restart<\/p>\n<h6>Criando gr\u00e1ficos<\/h6>\n<p>Clique em\u202fM\u00e9tricas, no menu principal. Selecione\u202fexim\u202fcomo o tipo da m\u00e9trica e\u202fqueue_size\u202fpara a m\u00e9trica. Indique os servidores para os quais voc\u00ea gostaria de ter os gr\u00e1ficos e salve-os no painel principal (dashboard).<\/p>\n<p>\n    \t\t\t\t<\/div>\r\n    \t\t\t<\/div><!-- \/ht-toggle-content -->\r\n    \t\t<\/div>\r\n    \t\t\n    \t\t<div class=\"hts-toggle  \"  >\r\n    \t\t\t<div class=\"hts-toggle__title\">GPU Monitor (Monitora o desempenho da placa de v\u00eddeo (GPU))<\/div>\r\n    \t\t\t<div class=\"hts-toggle__content\">\r\n    \t\t\t\t<div class=\"hts-toggle__contentwrap\">\r\n    \t\t\t\t\t<\/p>\n<h6>Plugin predefinido \u2013 GPU Monitor<\/h6>\n<p>Monitora o desempenho da placa de v\u00eddeo (GPU)<\/p>\n<p>Obs.: o monitoramento do desempenho da placa GPU est\u00e1 dispon\u00edvel apenas para sistemas operacionais Windows.<\/p>\n<h6>Configurando o plugin<\/h6>\n<p>Para ativar o plugin, edite o arquivo\u202f\/etc\/agent360.ini\u202fe adicione as seguintes linhas:<\/p>\n<pre>[gpu]\r\n\r\nenabled = yes<\/pre>\n<h6>Testando o plugin<\/h6>\n<p>Para testar o plugin, execute o comando\u202fsudo -u agent360 agent360 test gpu<\/p>\n<p>Agora voc\u00ea pode reiniciar o agente com o comando service agent360 restart<\/p>\n<p>\n    \t\t\t\t<\/div>\r\n    \t\t\t<\/div><!-- \/ht-toggle-content -->\r\n    \t\t<\/div>\r\n    \t\t\n    \t\t<div class=\"hts-toggle  \"  >\r\n    \t\t\t<div class=\"hts-toggle__title\">HAProxy (Monitora usu\u00e1rios de forma individual, em um servidor Cloud Linux)<\/div>\r\n    \t\t\t<div class=\"hts-toggle__content\">\r\n    \t\t\t\t<div class=\"hts-toggle__contentwrap\">\r\n    \t\t\t\t\t<\/p>\n<h6>Plugin predefinido \u2013 HA Proxy<\/h6>\n<p>Monitora o desempenho do seu servidor de balanceamento de carga HAProxy.<\/p>\n<h6>Configurando o plugin<\/h6>\n<p>Para ativar o plugin, edite o arquivo\u202f\/etc\/agent360.ini\u202fe adicione as seguintes linhas:<\/p>\n<pre>[haproxy]\r\n\r\nenabled = yes\r\n\r\nTest the plugin<\/pre>\n<h6>Testando o plugin<\/h6>\n<p>Para testar o plugin, execute o comando\u202fsudo -u agent360 agent360 test haproxy<\/p>\n<p>Agora voc\u00ea pode reiniciar o agente com o comando service agent360 restart<\/p>\n<p>\n    \t\t\t\t<\/div>\r\n    \t\t\t<\/div><!-- \/ht-toggle-content -->\r\n    \t\t<\/div>\r\n    \t\t\n    \t\t<div class=\"hts-toggle  \"  >\r\n    \t\t\t<div class=\"hts-toggle__title\">Janus WebRTC (Monitora servidores WebRTC)<\/div>\r\n    \t\t\t<div class=\"hts-toggle__content\">\r\n    \t\t\t\t<div class=\"hts-toggle__contentwrap\">\r\n    \t\t\t\t\t<\/p>\n<h6>Plugin predefinido \u2013 Janus WebRTC<\/h6>\n<p>Monitora servidores WebRTC.<\/p>\n<h6>Configurando the plugin<\/h6>\n<p>Para ativar o plugin, edite o arquivo\u202f\/etc\/agent360.ini\u202fe adicione as seguintes linhas:<\/p>\n<pre>[janus]\r\n\r\nenabled = yes<\/pre>\n<h6>Testando the plugin<\/h6>\n<p>Para testar o plugin, execute o comando\u202fsudo -u agent360 agent360 test janus<\/p>\n<p>Agora voc\u00ea pode reiniciar o agente com o comando service agent360 restart<\/p>\n<p>\n    \t\t\t\t<\/div>\r\n    \t\t\t<\/div><!-- \/ht-toggle-content -->\r\n    \t\t<\/div>\r\n    \t\t\n    \t\t<div class=\"hts-toggle  \"  >\r\n    \t\t\t<div class=\"hts-toggle__title\">Kamailio (Monitora o n\u00famero de dispositivos conectados a um servidor Kamailio)<\/div>\r\n    \t\t\t<div class=\"hts-toggle__content\">\r\n    \t\t\t\t<div class=\"hts-toggle__contentwrap\">\r\n    \t\t\t\t\t<\/p>\n<h6>Plugin predefinido \u2013 Kamailio<\/h6>\n<p>Monitora o n\u00famero de dispositivos conectados a um servidor Kamailio<\/p>\n<h6>M\u00e9tricas<\/h6>\n<ul>\n<li>Dispositivos conectados<\/li>\n<\/ul>\n<h6>Depend\u00eancias<\/h6>\n<p>Para permitir que este plugin acesse seu servidor, adicione a seguinte linha ao arquivo \/etc\/sudoers<\/p>\n<pre>agent360 ALL=(ALL) NOPASSWD: \/usr\/sbin\/kamctl<\/pre>\n<h6>Configurando o plugin<\/h6>\n<p>Para ativar o plugin, edite o arquivo\u202f\/etc\/agent360.ini\u202fe adicione as seguintes linhas:<\/p>\n<pre>[kamailio]\r\n\r\nenabled = yes<\/pre>\n<h6>Testando o plugin<\/h6>\n<p>Para testar o plugin, execute o comando\u202fsudo -u agent360 agent360 test kamailio<\/p>\n<p>Agora voc\u00ea pode reiniciar o agente com o comando service agent360 restart<\/p>\n<p>\n    \t\t\t\t<\/div>\r\n    \t\t\t<\/div><!-- \/ht-toggle-content -->\r\n    \t\t<\/div>\r\n    \t\t\n    \t\t<div class=\"hts-toggle  \"  >\r\n    \t\t\t<div class=\"hts-toggle__title\">Litespeed (Monitora um servidor Litespeed)<\/div>\r\n    \t\t\t<div class=\"hts-toggle__content\">\r\n    \t\t\t\t<div class=\"hts-toggle__contentwrap\">\r\n    \t\t\t\t\t<\/p>\n<h6>Plugin predefinido \u2013 Litespeed<\/h6>\n<p>Monitora um servidor Litespeed.<\/p>\n<h6>Depend\u00eancias<\/h6>\n<p>Este plugin requer o m\u00f3dulo\u202frequests. Para adicionar este m\u00f3dulo, execute o comando\u202fpip install requests<\/p>\n<h6>Configurando o plugin<\/h6>\n<p>Para ativar o plugin, edite o arquivo\u202f\/etc\/agent360.ini\u202fe adicione as seguintes linhas:<\/p>\n<pre>[litespeed]\r\n\r\nenabled=yes\r\n\r\nhost=localhost\r\n\r\nport=7080\r\n\r\nusername=admin\r\n\r\npassword=pass<\/pre>\n<p>Substitua\u202fadmin\u202fpelo seu nome de administrador e\u202fpass\u202fpela respectiva senha.<\/p>\n<h6>Testando o plugin<\/h6>\n<p>Para testar o plugin, execute o comando\u202fsudo -u agent360 agent360 test litespeed<\/p>\n<p>Agora voc\u00ea pode reiniciar o agente com o comando service agent360 restart<\/p>\n<p>\n    \t\t\t\t<\/div>\r\n    \t\t\t<\/div><!-- \/ht-toggle-content -->\r\n    \t\t<\/div>\r\n    \t\t\n    \t\t<div class=\"hts-toggle  \"  >\r\n    \t\t\t<div class=\"hts-toggle__title\">MegaRaid (Monitora controladores MegaRaid)<\/div>\r\n    \t\t\t<div class=\"hts-toggle__content\">\r\n    \t\t\t\t<div class=\"hts-toggle__contentwrap\">\r\n    \t\t\t\t\t<\/p>\n<h6>Plugin predefinido \u2013 MegaRaid<\/h6>\n<p>Monitora controladores MegaRaid.<\/p>\n<h6>Configurando o plugin<\/h6>\n<p>Para ativar o plugin, edite o arquivo\u202f\/etc\/agent360.ini\u202fe adicione as seguintes linhas:<\/p>\n<pre>[megacli]\r\n\r\nenabled=yes<\/pre>\n<h6>Testando o plugin<\/h6>\n<p>Para testar o plugin, execute o comando\u202fsudo -u agent360 agent360 test megacli<\/p>\n<p>Agora voc\u00ea pode reiniciar o agente com o comando service agent360 restart<\/p>\n<p>\n    \t\t\t\t<\/div>\r\n    \t\t\t<\/div><!-- \/ht-toggle-content -->\r\n    \t\t<\/div>\r\n    \t\t\n    \t\t<div class=\"hts-toggle  \"  >\r\n    \t\t\t<div class=\"hts-toggle__title\">Memcached (Monitora servi\u00e7os Memcached)<\/div>\r\n    \t\t\t<div class=\"hts-toggle__content\">\r\n    \t\t\t\t<div class=\"hts-toggle__contentwrap\">\r\n    \t\t\t\t\t<\/p>\n<h6>Plugin predefinido \u2013 Memcached<\/h6>\n<p>Monitora servi\u00e7os Memcached.<\/p>\n<h6>Depend\u00eancias<\/h6>\n<p>Este plugin requer o m\u00f3dulo\u202fmemcached\u202fpara Python. Para instalar este m\u00f3dulo , execute o comando\u202fpip install python-memcached\u202fcommand.<\/p>\n<h6>Configurando o plugin<\/h6>\n<p>Para ativar o plugin, edite o arquivo\u202f\/etc\/agent360.ini\u202fe adicione as seguintes linhas:<\/p>\n<pre>[memcached]\r\n\r\nenabled=yes\r\n\r\nhost=127.0.0.1\r\n\r\nport=11211<\/pre>\n<p>Substitua os valores para\u202fhost\u202fe\u202fport\u202fcom o endere\u00e7o de IP e o n\u00famero da porta para o memcached\u202fno seu servidor.<\/p>\n<h6>Testando o plugin<\/h6>\n<p>Para testar o plugin, execute o comando\u202fsudo -u agent360 agent360 test memcached<\/p>\n<p>Agora voc\u00ea pode reiniciar o agente com o comando service agent360 restart<\/p>\n<p>\n    \t\t\t\t<\/div>\r\n    \t\t\t<\/div><!-- \/ht-toggle-content -->\r\n    \t\t<\/div>\r\n    \t\t\n    \t\t<div class=\"hts-toggle  \"  >\r\n    \t\t\t<div class=\"hts-toggle__title\">Minecraft (Monitora algumas m\u00e9tricas dispon\u00edveis nos servidores Minecraft)<\/div>\r\n    \t\t\t<div class=\"hts-toggle__content\">\r\n    \t\t\t\t<div class=\"hts-toggle__contentwrap\">\r\n    \t\t\t\t\t<\/p>\n<h6>Plugin predefinido \u2013 Minecraft<\/h6>\n<p>Monitora algumas m\u00e9tricas dispon\u00edveis nos servidores Minecraft.<\/p>\n<h6>M\u00e9tricas<\/h6>\n<ul>\n<li>Active players<\/li>\n<li>Max players<\/li>\n<\/ul>\n<h6>Configurando o plugin<\/h6>\n<p>Para ativar o plugin, edite o arquivo\u202f\/etc\/agent360.ini\u202fe adicione as seguintes linhas:<\/p>\n<pre>[minecraft]\r\n\r\nenabled=yes\r\n\r\nhosts=127.0.0.1:8000,127.0.0.2:8000...<\/pre>\n<p>O valor\u202fhosts\u202fpode aceitar v\u00e1rios hosts Minecraft, sempre separados por v\u00edrgula. Voc\u00ea tamb\u00e9m pode optar por monitorar um \u00fanico host.<\/p>\n<h6>Testando o plugin<\/h6>\n<p>Para testar o plugin, execute o comando\u202fsudo -u agent360 agent360 test minecraft e veja se algum dado \u00e9 retornado.<\/p>\n<p>Agora voc\u00ea pode reiniciar o agente com o comando service agent360 restart<\/p>\n<h6>Create Charts<\/h6>\n<p>On the\u202fMetrics\u202fpage, select Minecraft as metric type, then select online to create a chart of your active and online players.<\/p>\n<h6>Criando gr\u00e1ficos<\/h6>\n<p>Clique em\u202fM\u00e9tricas, no menu principal. Selecione\u202fminecraft\u202fcomo o tipo da m\u00e9trica e, depois, selecione online para criar um gr\u00e1fico dos jogadores que estejam ativos e online.<\/p>\n<p>\n    \t\t\t\t<\/div>\r\n    \t\t\t<\/div><!-- \/ht-toggle-content -->\r\n    \t\t<\/div>\r\n    \t\t\n    \t\t<div class=\"hts-toggle  \"  >\r\n    \t\t\t<div class=\"hts-toggle__title\">Mongo DB (Monitora a inst\u00e2ncia do Mongo DB)<\/div>\r\n    \t\t\t<div class=\"hts-toggle__content\">\r\n    \t\t\t\t<div class=\"hts-toggle__contentwrap\">\r\n    \t\t\t\t\t<\/p>\n<h6>Plugin predefinido \u2013 Mongo DB<\/h6>\n<p>Monitora a inst\u00e2ncia do Mongo DB.<\/p>\n<h6>M\u00e9tricas<\/h6>\n<ul>\n<li>asserts.msg<\/li>\n<li>asserts.regular<\/li>\n<li>asserts.rollovers<\/li>\n<li>asserts.user<\/li>\n<li>asserts.warning<\/li>\n<li>connections.available<\/li>\n<li>connections.current<\/li>\n<li>connections.totalCreated<\/li>\n<li>mem: bits<\/li>\n<li>mem: mapped<\/li>\n<li>mem: mappedWithJournal<\/li>\n<li>mem: resident<\/li>\n<li>mem: supported<\/li>\n<li>mem: virtual<\/li>\n<li>opLatencies.commands.latency<\/li>\n<li>opLatencies.commands.ops<\/li>\n<li>opLatencies.reads.latency<\/li>\n<li>opLatencies.reads.ops<\/li>\n<li>opLatencies.writes.latency<\/li>\n<li>opLatencies.writes.ops<\/li>\n<li>opcounters.command<\/li>\n<li>opcounters.delete<\/li>\n<li>opcounters.getmore<\/li>\n<li>opcounters.insert<\/li>\n<li>opcounters.query<\/li>\n<li>opcounters.update<\/li>\n<\/ul>\n<h6>Depend\u00eancias<\/h6>\n<p>Para instalar o plugin do MongoDB, instale o m\u00f3dulo pymongo\u202fatrav\u00e9s do comando pip install pymongo<\/p>\n<h6>Configurando o plugin<\/h6>\n<p>Para ativar o plugin, edite o arquivo\u202f\/etc\/agent360.ini\u202fe adicione as seguintes linhas:<\/p>\n<pre>[mongodb]\r\n\r\nenabled=yes\r\n\r\nconnection_string=mongodb:\/\/username:password@127.0.0.1:27017\/admin<\/pre>\n<h6>Testando o plugin<\/h6>\n<p>Para testar o plugin, execute o comando\u202fsudo -u agent360 agent360 test mongodb para ver se algum dado \u00e9 retornado<\/p>\n<pre>JSON\r\n\r\nmongodb:\r\n\r\n{\r\n\r\n\"asserts.msg\": 0,\r\n\r\n\"asserts.regular\": 0,\r\n\r\n\"asserts.rollovers\": 0,\r\n\r\n\"asserts.user\": 0,\r\n\r\n\"asserts.warning\": 0,\r\n\r\n\"connections.available\": 50743,\r\n\r\n\"connections.current\": 457,\r\n\r\n\"connections.totalCreated\": 0,\r\n\r\n\"mem\":\r\n\r\n{\r\n\r\n\"bits\": 64,\r\n\r\n\"mapped\": 0,\r\n\r\n\"mappedWithJournal\": 0,\r\n\r\n\"resident\": 29966,\r\n\r\n\"supported\": true,\r\n\r\n\"virtual\": 45514\r\n\r\n},\r\n\r\n\"opLatencies.commands.latency\": 0,\r\n\r\n\"opLatencies.commands.ops\": 0,\r\n\r\n\"opLatencies.reads.latency\": 0,\r\n\r\n\"opLatencies.reads.ops\": 0,\r\n\r\n\"opLatencies.writes.latency\": 0,\r\n\r\n\"opLatencies.writes.ops\": 0,\r\n\r\n\"opcounters.command\": 0,\r\n\r\n\"opcounters.delete\": 0,\r\n\r\n\"opcounters.getmore\": 0,\r\n\r\n\"opcounters.insert\": 0,\r\n\r\n\"opcounters.query\": 0,\r\n\r\n\"opcounters.update\": 0\r\n\r\n}<\/pre>\n<p>Agora voc\u00ea pode reiniciar o agente com o comando service agent360 restart<\/p>\n<h6>Criando gr\u00e1ficos<\/h6>\n<p>Clique em\u202fM\u00e9tricas, no menu principal. Selecione\u202fmongodb\u202fcomo o tipo da m\u00e9trica e escolha uma das m\u00e9tricas para criar um gr\u00e1fico.<\/p>\n<p>\n    \t\t\t\t<\/div>\r\n    \t\t\t<\/div><!-- \/ht-toggle-content -->\r\n    \t\t<\/div>\r\n    \t\t\n    \t\t<div class=\"hts-toggle  \"  >\r\n    \t\t\t<div class=\"hts-toggle__title\">MySQL (Monitora o desempenho de um servidor MySQL)<\/div>\r\n    \t\t\t<div class=\"hts-toggle__content\">\r\n    \t\t\t\t<div class=\"hts-toggle__contentwrap\">\r\n    \t\t\t\t\t<\/p>\n<h6>Plugin predefinido \u2013 MySQL<\/h6>\n<p>Monitora o desempenho de um servidor MySQL.<\/p>\n<h6>M\u00e9tricas<\/h6>\n<ul>\n<li>max_used_connections<\/li>\n<li>open_files<\/li>\n<li>open_tables<\/li>\n<li>qcache_free_blocks<\/li>\n<li>qcache_free_memory<\/li>\n<li>qcache_total_blocks<\/li>\n<li>slave_open_temp_tables<\/li>\n<li>threads_cached<\/li>\n<li>threads_connected<\/li>\n<li>threads_running<\/li>\n<li>uptime<\/li>\n<li>aborted_clients<\/li>\n<li>aborted_connects<\/li>\n<li>binlog_cache_disk_use<\/li>\n<li>binlog_cache_use<\/li>\n<li>bytes_received<\/li>\n<li>bytes_sent<\/li>\n<li>com_delete<\/li>\n<li>com_delete_multi<\/li>\n<li>com_insert<\/li>\n<li>com_insert_select<\/li>\n<li>com_load<\/li>\n<li>com_replace<\/li>\n<li>com_replace_select<\/li>\n<li>com_select<\/li>\n<li>com_update<\/li>\n<li>com_update_multi<\/li>\n<li>connections<\/li>\n<li>created_tmp_disk_tables<\/li>\n<li>created_tmp_files<\/li>\n<li>created_tmp_tables<\/li>\n<li>key_reads<\/li>\n<li>key_read_requests<\/li>\n<li>key_writes<\/li>\n<li>key_write_requests<\/li>\n<li>max_used_connections<\/li>\n<li>open_files<\/li>\n<li>open_tables<\/li>\n<li>opened_tables<\/li>\n<li>qcache_free_blocks<\/li>\n<li>qcache_free_memory<\/li>\n<li>qcache_hits<\/li>\n<li>qcache_inserts<\/li>\n<li>qcache_lowmem_prunes<\/li>\n<li>qcache_not_cached<\/li>\n<li>qcache_queries_in_cache<\/li>\n<li>qcache_total_blocks<\/li>\n<li>questions<\/li>\n<li>select_full_join<\/li>\n<li>select_full_range_join<\/li>\n<li>select_range<\/li>\n<li>select_range_check<\/li>\n<li>select_scan<\/li>\n<li>slave_open_temp_tables<\/li>\n<li>slave_retried_transactions<\/li>\n<li>slow_launch_threads<\/li>\n<li>slow_queries<\/li>\n<li>sort_range<\/li>\n<li>sort_rows<\/li>\n<li>sort_scan<\/li>\n<li>table_locks_immediate<\/li>\n<li>table_locks_waited<\/li>\n<li>threads_cached<\/li>\n<li>threads_connected<\/li>\n<li>threads_created<\/li>\n<li>threads_running<\/li>\n<\/ul>\n<h6>Depend\u00eancias<\/h6>\n<p>MySQL-python<\/p>\n<p>Execute o comando apt-get install python-mysqldb\u202fno Debian ou\u202fyum install MySQL-python\u202fpara instalar o plugin requerido. Como alternativa, voc\u00ea pode executar o comando pip install MySQL-python<\/p>\n<p>Se estiver rodando python3, voc\u00ea precisar\u00e1 exedcutar os comandos\u202fapt-get install python3-mysqldb\u202fou\u202fpip3 install mysqlclient\u202f(mysql-devel\u202f\u00e9 necess\u00e1rio para o CentOS\u202fyum install mysql-devel)<\/p>\n<h6>Criando um usu\u00e1rio MySQL<\/h6>\n<p>Se voc\u00ea estiver usando Plesk, crie um usu\u00e1rio MySQL que tenha acesso ao banco de dados performance_schema\u202fatrav\u00e9s do seguinte comando, onde safeandsecurepassword\u202f\u00e9 a senha a ser atribu\u00edda ao usu\u00e1rio:<\/p>\n<pre>plesk db \"CREATE USER 'agent360'@'127.0.0.1' IDENTIFIED BY 'safeandsecurepassword'\"<\/pre>\n<p>Caso contr\u00e1rio, crie um usu\u00e1rio MySQL que tenha acesso ao banco de dados performance_schema\u202fatrav\u00e9s do seguinte comando, onde safeandsecurepassword\u202f\u00e9 a senha a ser atribu\u00edda ao usu\u00e1rio:<\/p>\n<pre>sudo mysql -e \"CREATE USER 'agent360'@'127.0.0.1' IDENTIFIED BY 'safeandsecurepassword';\"sudo mysql -e \"GRANT PROCESS ON *.* TO 'agent360'@'127.0.0.1';\"sudo mysql -e \"GRANT SELECT ON performance_schema.* TO 'agent360'@'127.0.0.1';\"<\/pre>\n<p>&nbsp;<\/p>\n<p>Caso queira ativar o monitoramento de uma replica do banco de dados, voc\u00ea ter\u00e1 que executar a seguinte query tamb\u00e9m:<\/p>\n<pre>sudo mysql -e \"grant replication client on *.* to 'agent360'@'127.0.0.1';\"<\/pre>\n<h6>Configurando o plugin<\/h6>\n<p>Para ativar o plugin, edite o arquivo\u202f\/etc\/agent360.ini\u202fe adicione as seguintes linhas:<\/p>\n<pre>[mysql]\r\n\r\nenabled=yes\r\n\r\nusername=agent360\r\n\r\npassword=safeandsecurepassword\r\n\r\nhost=127.0.0.1\r\n\r\ndatabase=performance_schema\r\n\r\nport=3306\r\n\r\nsocket=null\r\n\r\n\r\n<\/pre>\n<h6>Testando o plugin<\/h6>\n<p>Para ver se o plugin est\u00e1 funcionando, execute o comando\u202fagent360 \u2013test mysql As seguintes m\u00e9tricas dever\u00e3o ser mostradas:<\/p>\n<pre>JSON\r\n\r\nmysql:\r\n\r\n{\r\n\r\n\"aborted_clients\": 0,\r\n\r\n\"aborted_connects\": 0,\r\n\r\n\"binlog_cache_disk_use\": 0,\r\n\r\n\"binlog_cache_use\": 0,\r\n\r\n\"bytes_received\": 0,\r\n\r\n\"bytes_sent\": 0,\r\n\r\n\"com_delete\": 0,\r\n\r\n\"com_delete_multi\": 0,\r\n\r\n\"com_insert\": 0,\r\n\r\n\"com_insert_select\": 0,\r\n\r\n\"com_load\": 0,\r\n\r\n\"com_replace\": 0,\r\n\r\n\"com_replace_select\": 0,\r\n\r\n\"com_select\": 0,\r\n\r\n\"com_update\": 0,\r\n\r\n\"com_update_multi\": 0,\r\n\r\n\"connections\": 0,\r\n\r\n\"created_tmp_disk_tables\": 0,\r\n\r\n\"created_tmp_files\": 0,\r\n\r\n\"created_tmp_tables\": 0,\r\n\r\n\"key_read_requests\": 0,\r\n\r\n\"key_reads\": 0,\r\n\r\n\"key_write_requests\": 0,\r\n\r\n\"key_writes\": 0,\r\n\r\n\"max_used_connections\": 2.0,\r\n\r\n\"open_files\": 6.0,\r\n\r\n\"open_tables\": 71.0,\r\n\r\n\"opened_tables\": 0,\r\n\r\n\"qcache_free_blocks\": 1.0,\r\n\r\n\"qcache_free_memory\": 67091584.0,\r\n\r\n\"qcache_hits\": 0,\r\n\r\n\"qcache_inserts\": 0,\r\n\r\n\"qcache_lowmem_prunes\": 0,\r\n\r\n\"qcache_not_cached\": 0,\r\n\r\n\"qcache_queries_in_cache\": 0,\r\n\r\n\"qcache_total_blocks\": 1.0,\r\n\r\n\"questions\": 0,\r\n\r\n\"select_full_join\": 0,\r\n\r\n\"select_full_range_join\": 0,\r\n\r\n\"select_range\": 0,\r\n\r\n\"select_range_check\": 0,\r\n\r\n\"select_scan\": 0,\r\n\r\n\"slave_open_temp_tables\": 0.0,\r\n\r\n\"slow_launch_threads\": 0,\r\n\r\n\"slow_queries\": 0,\r\n\r\n\"sort_range\": 0,\r\n\r\n\"sort_rows\": 0,\r\n\r\n\"sort_scan\": 0,\r\n\r\n\"table_locks_immediate\": 0,\r\n\r\n\"table_locks_waited\": 0,\r\n\r\n\"threads_cached\": 1.0,\r\n\r\n\"threads_connected\": 1.0,\r\n\r\n\"threads_created\": 0,\r\n\r\n\"threads_running\": 1.0,\r\n\r\n\"uptime\": 59949.0\r\n\r\n}<\/pre>\n<p>Agora voc\u00ea pode reiniciar o agente com o comando service agent360 restart<\/p>\n<p>\n    \t\t\t\t<\/div>\r\n    \t\t\t<\/div><!-- \/ht-toggle-content -->\r\n    \t\t<\/div>\r\n    \t\t\n    \t\t<div class=\"hts-toggle  \"  >\r\n    \t\t\t<div class=\"hts-toggle__title\">NGiNX (Monitora um servidor web NGiNX)<\/div>\r\n    \t\t\t<div class=\"hts-toggle__content\">\r\n    \t\t\t\t<div class=\"hts-toggle__contentwrap\">\r\n    \t\t\t\t\t<\/p>\n<h6>Plugin predefinido \u2013 NGINX<\/h6>\n<p>Monitora um servidor web NGiNX.<\/p>\n<h6>M\u00e9tricas<\/h6>\n<ul>\n<li>Requests per second<\/li>\n<li>Accepts per second<\/li>\n<li>Handled per second<\/li>\n<li>Total requests<\/li>\n<li>Active connections<\/li>\n<li>Writing<\/li>\n<li>Waiting<\/li>\n<li>Reading<\/li>\n<\/ul>\n<h6>Depend\u00eancias<\/h6>\n<p>urllib2<\/p>\n<p>nginx\u202fcompiled with the\u202f&#8211;with-http_stub_status_module\u202fparameter<\/p>\n<h6>Ativando a p\u00e1gina de status do NGiNX<\/h6>\n<p>Para ativar a p\u00e1gina de status do NGiNX, adicione o seguinte c\u00f3digo ao arquivo de configura\u00e7\u00e3o habilitado para o NGiNX:<\/p>\n<pre>server\r\n\r\n{\r\n\r\nlisten 127.0.0.1:8080;\r\n\r\nserver_name localhost;\r\n\r\nlocation \/status_page\r\n\r\n{\r\n\r\nstub_status on;\r\n\r\nallow 127.0.0.1;\r\n\r\ndeny all;\r\n\r\n}\r\n\r\n}<\/pre>\n<p>A p\u00e1gina de status somente estar\u00e1 dispon\u00edvel por meio de uma m\u00e1quina que esteja executando o NGiNX. Se voc\u00ea tiver outra coisa em execu\u00e7\u00e3o na porta 8080, pode troc\u00e1-la para uma p\u00e1gina dispon\u00edvel.<\/p>\n<p>Teste se a p\u00e1gina de status est\u00e1 funcionando atrav\u00e9s da seguinte linha:<\/p>\n<pre>wget -qO- http:\/\/127.0.0.1:8080\/status_page<\/pre>\n<h6>Configurando o plugin<\/h6>\n<p>Para ativar o plugin, edite o arquivo\u202f\/etc\/agent360.ini\u202fe adicione as seguintes linhas:<\/p>\n<pre>[nginx]\r\n\r\nenabled = yes\r\n\r\nstatus_page_url = http:\/\/127.0.0.1:8080\/status_page<\/pre>\n<h6>Testando o plugin<\/h6>\n<p>Para testar o plugin, execute o comando\u202fagent360 \u2013test nginx<\/p>\n<p>As seguintes m\u00e9tricas dever\u00e3o ser exibidas:<\/p>\n<pre>JSON\r\n\r\nnginx:\r\n\r\n{\r\n\r\n\"accepts\": 505768,\r\n\r\n\"accepts_per_second\": 0,\r\n\r\n\"active_connections\": 198,\r\n\r\n\"handled\": 505768,\r\n\r\n\"handled_per_second\": 0,\r\n\r\n\"reading\": 0,\r\n\r\n\"requests\": 8335225,\r\n\r\n\"requests_per_second\": 0,\r\n\r\n\"waiting\": 196,\r\n\r\n\"writing\": 2\r\n\r\n}<\/pre>\n<p>Agora voc\u00ea pode reiniciar o agente com o comando service agent360 restart<\/p>\n<p>\n    \t\t\t\t<\/div>\r\n    \t\t\t<\/div><!-- \/ht-toggle-content -->\r\n    \t\t<\/div>\r\n    \t\t\n    \t\t<div class=\"hts-toggle  \"  >\r\n    \t\t\t<div class=\"hts-toggle__title\">OpenVPN (Monitora conex\u00f5es de um servidor OpenVPN)<\/div>\r\n    \t\t\t<div class=\"hts-toggle__content\">\r\n    \t\t\t\t<div class=\"hts-toggle__contentwrap\">\r\n    \t\t\t\t\t<\/p>\n<h6>Plugin predefinido \u2013 Open VPN<\/h6>\n<p>Monitora conex\u00f5es de um servidor OpenVPN.<\/p>\n<h6>Criando gr\u00e1ficos<\/h6>\n<p>Clique em\u202fM\u00e9tricas, no menu principal. Selecione\u202fasterisk\u202fcomo o tipo da m\u00e9trica e\u202fcalls\u202fpara a m\u00e9trica. Indique os servidores para os quais voc\u00ea gostaria de ter os gr\u00e1ficos e salve-os no painel principal (dashboard).<\/p>\n<h6>Depend\u00eancias<\/h6>\n<p>Este plugin requer acesso ao arquivo de log openvpn-status\u202flog.<\/p>\n<p>Para permitir este acesso, execute os comandos pip install openvpn-status\u202fcommand ou pip3 install openvpn-status<\/p>\n<h6>Configurando o plugin<\/h6>\n<p>Para ativar o plugin, edite o arquivo\u202f\/etc\/agent360.ini\u202fe adicione as seguintes linhas:<\/p>\n<pre>[openvpn]\r\n\r\nenabled=yes\r\n\r\nstatus_path = \/etc\/openvpn\/openvpn-status.log<\/pre>\n<h6>Testando o plugin<\/h6>\n<p>Para testar o plugin, execute o comando\u202fsudo -u agent360 agent360 test openvpn<\/p>\n<p>Se tiver problemas com este plugin, execute o agente de monitoramento como um usu\u00e1rio root.<\/p>\n<p>Agora voc\u00ea pode reiniciar o agente com o comando service agent360 restart<\/p>\n<p>\n    \t\t\t\t<\/div>\r\n    \t\t\t<\/div><!-- \/ht-toggle-content -->\r\n    \t\t<\/div>\r\n    \t\t\n    \t\t<div class=\"hts-toggle  \"  >\r\n    \t\t\t<div class=\"hts-toggle__title\">PowerDNS (Monitora servidores PowerDNS)<\/div>\r\n    \t\t\t<div class=\"hts-toggle__content\">\r\n    \t\t\t\t<div class=\"hts-toggle__contentwrap\">\r\n    \t\t\t\t\t<\/p>\n<h6>Plugin predefinido \u2013 Power DNS<\/h6>\n<p>Monitora servidores PowerDNS<\/p>\n<p><div class=\"hts-messages hts-messages--alert  hts-messages--withtitle hts-messages--withicon \"   >\n    \t\t\t<span class=\"hts-messages__title\">Aten\u00e7\u00e3o!<\/span>    \t\t\t    \t\t\t\t<\/p>\n<p>\n    \t\t\t\t\tPara monitorar servidores Power DNS, voc\u00ea ir\u00e1 precisar adicionar chaves adicionais ao arquivo de configura\u00e7\u00e3o.    \t\t\t\t<\/p>\n<\/p><\/div>\n<p><!-- \/.ht-shortcodes-messages -->\n    \t\t<\/p>\n<h6>Configurando o plugin<\/h6>\n<p>Para ativar o plugin, edite o arquivo\u202f\/etc\/agent360.ini\u202fe adicione as seguintes linhas:<\/p>\n<pre>[powerdns]\r\n\r\nenabled=yes\r\n\r\nstatistics_url=&lt;http:\/\/localhost:8081\/api\/v1\/servers\/localhost\/statistics&gt;\r\n\r\napi_key=changeme<\/pre>\n<p>&nbsp;<\/p>\n<p>Certifique-se de alterar a configura\u00e7\u00e3o api_key\u202fda sua chave de API atual, dispon\u00edvel na sua p\u00e1gina da API.<\/p>\n<p>Depois, adicione as seguintes linhas ao o arquivo\u202f\/etc\/agent360.ini<\/p>\n<pre>ca_file=filename\r\n\r\nca_path=path\r\n\r\ntimeout=10<\/pre>\n<p>Substitua\u202ffilename\u202fpelo nome do CA do servidor; e\u202fpath\u202fpelo caminho absoluto do arquivo.<\/p>\n<h6>Testando o plugin<\/h6>\n<p>Para testar o plugin, execute o comando\u202fsudo -u agent360 agent360 test powerdns<\/p>\n<p>Agora voc\u00ea pode reiniciar o agente com o comando service agent360 restart<\/p>\n<p>\n    \t\t\t\t<\/div>\r\n    \t\t\t<\/div><!-- \/ht-toggle-content -->\r\n    \t\t<\/div>\r\n    \t\t\n    \t\t<div class=\"hts-toggle  \"  >\r\n    \t\t\t<div class=\"hts-toggle__title\">RabbitMQ (Monitora o sistema de mensageria RabbitMQ)<\/div>\r\n    \t\t\t<div class=\"hts-toggle__content\">\r\n    \t\t\t\t<div class=\"hts-toggle__contentwrap\">\r\n    \t\t\t\t\t<\/p>\n<h6>Plugin predefinido \u2013 Rabbit MQ<\/h6>\n<p>Monitora o sistema de mensageria RabbitMQ.<\/p>\n<h6>Configurando o plugin<\/h6>\n<p>Para ativar o plugin, edite o arquivo\u202f\/etc\/agent360.ini\u202fe adicione as seguintes linhas:<\/p>\n<pre>[rabbitmq]\r\n\r\nenabled=yes<\/pre>\n<h6>Testando o plugin<\/h6>\n<p>Para testar o plugin, execute o comando\u202fsudo -u agent360 agent360 test rabbitmg<\/p>\n<p>Agora voc\u00ea pode reiniciar o agente com o comando service agent360 restart<\/p>\n<p>\ufddfHYPERLINK &#8220;https:\/\/docs.360monitoring.com\/docs\/powerdns-plugin&#8221;<\/p>\n<p>\n    \t\t\t\t<\/div>\r\n    \t\t\t<\/div><!-- \/ht-toggle-content -->\r\n    \t\t<\/div>\r\n    \t\t\n    \t\t<div class=\"hts-toggle  \"  >\r\n    \t\t\t<div class=\"hts-toggle__title\">Redis (Permite monitorar o sistema Redis)<\/div>\r\n    \t\t\t<div class=\"hts-toggle__content\">\r\n    \t\t\t\t<div class=\"hts-toggle__contentwrap\">\r\n    \t\t\t\t\t<\/p>\n<h6>Plugin predefinido \u2013 Redis<\/h6>\n<p>Permite monitorar o sistema Redis.<\/p>\n<h6>M\u00e9tricas<\/h6>\n<p>As m\u00e9tricas dispon\u00edveis no Redis podem ser encontradas no c\u00f3digo-fonte do plugin. Voc\u00ea pode habilit\u00e1-las ou desabilit\u00e1-las atrav\u00e9s de coment\u00e1rios, iniciando as linhas das m\u00e9tricas que deseja desabilitar com o caractere #.<\/p>\n<h6>Depend\u00eancias<\/h6>\n<p>redis pypi<\/p>\n<p>Se voc\u00ea estiver rodando python3, pode executar pip3 install redis. Se estiver rodando uma vers\u00e3o python2 agent360, ent\u00e3o pode executar\u202fpip install redis.<\/p>\n<p>Encontre a vers\u00e3o do seu Python atrav\u00e9s do comando agent360 info\u202fcommand. A pasta do plugin ter\u00e1 a vers\u00e3o do Python. P. ex: \/usr\/local\/lib\/python3.6\/<\/p>\n<h6>Configurando o plugin<\/h6>\n<p>Para ativar o plugin, edite o arquivo\u202f\/etc\/agent360.ini\u202fe adicione as seguintes linhas:<\/p>\n<pre>[redis_stat]\r\n\r\nenabled=yes\r\n\r\nhost=agent360\r\n\r\nport=123\r\n\r\ndb=dbname\r\n\r\npassword=safeandsecurepassword<\/pre>\n<h6>Testando o plugin<\/h6>\n<p>Para testar o plugin, execute o comando\u202f agent360 test redis_stat<\/p>\n<p>Os seguintes dados dever\u00e3o ser retornados:<\/p>\n<pre>JSON\r\n\r\nredis_stat:\r\n\r\n{\r\n\r\n\"uptime_in_seconds\": 59949.0,...\r\n\r\n}<\/pre>\n<p>Agora voc\u00ea pode reiniciar o agente com o comando service agent360 restart<\/p>\n<p>\n    \t\t\t\t<\/div>\r\n    \t\t\t<\/div><!-- \/ht-toggle-content -->\r\n    \t\t<\/div>\r\n    \t\t\n    \t\t<div class=\"hts-toggle  \"  >\r\n    \t\t\t<div class=\"hts-toggle__title\">Software RAID (Mant\u00e9m o controle de discos com falha, em uma configura\u00e7\u00e3o RAID)<\/div>\r\n    \t\t\t<div class=\"hts-toggle__content\">\r\n    \t\t\t\t<div class=\"hts-toggle__contentwrap\">\r\n    \t\t\t\t\t<\/p>\n<h6>Plugin predefinido \u2013 Software RAID<\/h6>\n<p>Mant\u00e9m o controle de discos com falha, em uma configura\u00e7\u00e3o RAID<\/p>\n<p><div class=\"hts-messages hts-messages--alert  hts-messages--withtitle hts-messages--withicon \"   >\n    \t\t\t<span class=\"hts-messages__title\">Aten\u00e7\u00e3o!<\/span>    \t\t\t    \t\t\t\t<\/p>\n<p>\n    \t\t\t\t\tmdadm\u202f\u00e9 um utilit\u00e1rio do Linux que gerencia e monitora o Software RAID. O plugin de monitoramento mdadm\u202f rastreia os discos com falha em uma configura\u00e7\u00e3o RAID.    \t\t\t\t<\/p>\n<\/p><\/div>\n<p><!-- \/.ht-shortcodes-messages -->\n    \t\t<\/p>\n<h6>M\u00e9tricas<\/h6>\n<ul>\n<li>Faulty<\/li>\n<li>Active<\/li>\n<li>Resync<\/li>\n<li>Read only<\/li>\n<\/ul>\n<h6>Depend\u00eancias<\/h6>\n<p>Este plugin requer o plugin do Python chamado mdstat. Voc\u00ea pode instal\u00e1-lo atrav\u00e9s do comando pip install mdstat<\/p>\n<p>Para funcionar corretamente, o plugin tamb\u00e9m precisa do acesso sudo . Para isso, edite o arquivo \/etc\/sudoers\u202fe adicione a seguinte linha ao final:<\/p>\n<pre>agent360 ALL=(ALL) NOPASSWD: \/usr\/local\/bin\/mdjson<\/pre>\n<p>\u00c9 um pr\u00e9-requisito a exist\u00eancia do mdjson\u202fem \/usr\/local\/bin\/mdjson.<\/p>\n<p>Para conferir essa localiza\u00e7\u00e3o, execute o comando whereis mdjson<\/p>\n<h6>Configurando o plugin<\/h6>\n<p>Para ativar o plugin, edite o arquivo\u202f\/etc\/agent360.ini\u202fe adicione as seguintes linhas:<\/p>\n<pre>[mdstat]\r\n\r\nenabled = yes<\/pre>\n<h6>Testando o plugin<\/h6>\n<p>Para testar o plugin, execute o comando\u202fsudo -u agent360 agent360 test mdstat e verifique se os seguintes dados s\u00e3o retornados:<\/p>\n<pre>JSON\r\n\r\nmdstat:\r\n\r\n{\r\n\r\n\"md0\":\r\n\r\n{\r\n\r\n\"active\": 1,\r\n\r\n\"faulty\": 0,\r\n\r\n\"read_only\": 0,\r\n\r\n\"resync\": 0\r\n\r\n},\r\n\r\n\"md1\":\r\n\r\n{\r\n\r\n\"active\": 1,\r\n\r\n\"faulty\": 0,\r\n\r\n\"read_only\": 0,\r\n\r\n\"resync\": 0\r\n\r\n},\r\n\r\n\"md2\":\r\n\r\n{\"active\": 1,\r\n\r\n\"faulty\": 0,\r\n\r\n\"read_only\": 0,\r\n\r\n\"resync\": 0\r\n\r\n}\r\n\r\n}<\/pre>\n<p>Agora voc\u00ea pode reiniciar o agente com o comando service agent360 restart<\/p>\n<h6>Criando gr\u00e1ficos<\/h6>\n<p>Clique em\u202fM\u00e9tricas, no menu principal. Selecione\u202fmdstat\u202fcomo o tipo da m\u00e9trica e\u202factive\/faulty\/read_only\/resync\u202fpara a m\u00e9trica. Indique os servidores para os quais voc\u00ea gostaria de ter os gr\u00e1ficos e salve-os no painel principal (dashboard).<\/p>\n<p>Voc\u00ea pode criar um alerta para quando a m\u00e9trica com problema for maior que zero. Isso ir\u00e1 indicar que um servidor possui uma unidade defeituosa.<\/p>\n<p>\n    \t\t\t\t<\/div>\r\n    \t\t\t<\/div><!-- \/ht-toggle-content -->\r\n    \t\t<\/div>\r\n    \t\t\n    \t\t<div class=\"hts-toggle  \"  >\r\n    \t\t\t<div class=\"hts-toggle__title\">The PHP-FPM (Permite monitorar o desempenho de processos PHP-FPM no servidor)<\/div>\r\n    \t\t\t<div class=\"hts-toggle__content\">\r\n    \t\t\t\t<div class=\"hts-toggle__contentwrap\">\r\n    \t\t\t\t\t<\/p>\n<h6>Plugin predefinido \u2013 PHP-FPM<\/h6>\n<p>Permite monitorar o desempenho de processos PHP-FPM no servidor.<\/p>\n<h6>M\u00e9tricas<\/h6>\n<ul>\n<li>Accepted connections (per second, total)<\/li>\n<li>Active processes<\/li>\n<li>Total processes<\/li>\n<li>Idle processes<\/li>\n<li>Max active processes<\/li>\n<li>Listen queue<\/li>\n<li>Listen queue length<\/li>\n<li>Max listen queue<\/li>\n<li>Max children reached<\/li>\n<li>Start time<\/li>\n<li>Start since<\/li>\n<li>Pool<\/li>\n<li>Process manager<\/li>\n<li>Slow requests<\/li>\n<\/ul>\n<h6>Depend\u00eancias<\/h6>\n<p>urllib2<\/p>\n<p>json<\/p>\n<h6>Ativando a p\u00e1gina de status PHP-FPM<\/h6>\n<p>Para habilitar a p\u00e1gina de status do PHP-FPM, adicione o seguinte c\u00f3digo ao seu arquivo de configura\u00e7\u00e3o do pool PHP-FPM:<\/p>\n<pre>pm.status_path = \/status_phpfpm<\/pre>\n<p>Depois, fa\u00e7a as seguintes altera\u00e7\u00f5es no seu arquivo de configura\u00e7\u00e3o:<\/p>\n<pre>NGINX \r\nText\r\n\r\nserver\r\n\r\n{listen 127.0.0.1:8080;\r\n\r\nserver_name localhost;\r\n\r\nlocation \/status_phpfpm {\r\n\r\nfastcgi_pass 127.0.0.1:9000;\r\n\r\ninclude fastcgi_params;\r\n\r\nfastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;\r\n\r\nallow 127.0.0.1;\r\n\r\ndeny all;\r\n\r\n}\r\n\r\n}<\/pre>\n<p>Apache2<\/p>\n<p>No Apache, edite o arquivo etc\/apache2\/mods-available\/fastcgi.conf\u202f (ou similar)<\/p>\n<pre>Text\r\n\r\n&lt;IfModule mod_fastcgi.c&gt;\r\n\r\n# Define a named handler\r\n\r\nAddHandler php7-fcgi .php\r\n\r\n# Generate an alias pointing to \/usr\/lib\/cgi-bin\/php[VersionNumber]-fcgi\r\n\r\nAlias \/php7-fcgi \/usr\/lib\/cgi-bin\/php7-fcgi\r\n\r\n# Configure an external server handling your upcoming requests (note where the alias is pointing towards)\r\n\r\nFastCgiExternalServer \/usr\/lib\/cgi-bin\/php7-fcgi -socket \/var\/run\/php\/php7.0-fpm.sock -pass-header Authorization\r\n\r\n# only on if fpm-status is match. You might want to put this into your concrete vhost.conf file. For the testing, fastcgi.conf should work.\r\n\r\n&lt;LocationMatch \"\/status_phpfpm\"&gt;\r\n\r\nOrder deny,allowD\r\n\r\neny from all\r\n\r\nAllow from 127.0.0.1\r\n\r\n# set the before defined handler here\r\n\r\nSetHandler php7-fcgi\r\n\r\n# use the handler for the action handling virtual requests\r\n\r\nAction php7-fcgi \/php7-fcgi virtual\r\n\r\n&lt;\/LocationMatch&gt;\r\n\r\n&lt;\/IfModule&gt;<\/pre>\n<p>Voc\u00ea pode testar se a p\u00e1gina de status est\u00e1 funcionando atrav\u00e9s do seguinte comando:<\/p>\n<pre>wget -qO- http:\/\/127.0.0.1:8080\/status_phpfpm?json<\/pre>\n<h6>Configurando o plugin<\/h6>\n<p>Para ativar o plugin, edite o arquivo\u202f\/etc\/agent360.ini\u202fe adicione as seguintes linhas:<\/p>\n<pre>[phpfpm]\r\n\r\nenabled = yes\r\n\r\nstatus_page_url = http:\/\/127.0.0.1:8080\/status_phpfpm?json<\/pre>\n<h6>Testando o plugin<\/h6>\n<p>Para ver se o plugin est\u00e1 funcionando, execute o comando agent360 &#8211;test phpfpm<\/p>\n<p>As seguintes m\u00e9tricas dever\u00e3o ser retornadas:<\/p>\n<pre>JSON\r\n\r\nphpfpm:\r\n\r\n{\r\n\r\n\"accepted_conn\": 3015,\r\n\r\n\"accepted_conn_per_second\": 0.0,\r\n\r\n\"active_processes\": 1,\r\n\r\n\"idle_processes\": 0,\r\n\r\n\"listen_queue\": 0,\r\n\r\n\"listen_queue_len\": 128,\r\n\r\n\"max_active_processes\": 1,\r\n\r\n\"max_children_reached\": 0,\r\n\r\n\"max_listen_queue\": 1,\r\n\r\n\"pool\": \"www\",\r\n\r\n\"process_manager\": \"ondemand\",\r\n\r\n\"slow_requests\": 0,\r\n\r\n\"start_since\": 294686,\r\n\r\n\"start_time\": 1492504250,\r\n\r\n\"total_processes\": 1\r\n\r\n}<\/pre>\n<p>Agora voc\u00ea pode reiniciar o agente com o comando service agent360 restart<\/p>\n<p>\n    \t\t\t\t<\/div>\r\n    \t\t\t<\/div><!-- \/ht-toggle-content -->\r\n    \t\t<\/div>\r\n    \t\t\n    \t\t<div class=\"hts-toggle  \"  >\r\n    \t\t\t<div class=\"hts-toggle__title\">Unbound DNS (Monitora um servidor denominado Unbound DNS)<\/div>\r\n    \t\t\t<div class=\"hts-toggle__content\">\r\n    \t\t\t\t<div class=\"hts-toggle__contentwrap\">\r\n    \t\t\t\t\t<\/p>\n<h6>Plugin predefinido \u2013 Unbound DNS<\/h6>\n<p>Monitora um servidor denominado Unbound DNS.<\/p>\n<h6>Depend\u00eancias<\/h6>\n<p>Este plugin requer que voc\u00ea adicione a seguinte linha em seu arquivo \/etc\/sudoers\u202f:<\/p>\n<pre>agent360 ALL=(ALL) NOPASSWD: \/usr\/sbin\/unbound-control<\/pre>\n<h6>Configurando o plugin<\/h6>\n<p>Para ativar o plugin, edite o arquivo\u202f\/etc\/agent360.ini\u202fe adicione as seguintes linhas:<\/p>\n<pre>[unbound]\r\n\r\nenabled=yes<\/pre>\n<h6>Testando o plugin<\/h6>\n<p>Para testar o plugin, execute o comando\u202fsudo -u agent360 agent360 test unbound<\/p>\n<p>Agora voc\u00ea pode reiniciar o agente com o comando service agent360 restart<\/p>\n<p>\n    \t\t\t\t<\/div>\r\n    \t\t\t<\/div><!-- \/ht-toggle-content -->\r\n    \t\t<\/div>\r\n    \t\t\n    \t\t<div class=\"hts-toggle  \"  >\r\n    \t\t\t<div class=\"hts-toggle__title\">Virtual Machine (Rastreia m\u00e1quinas virtuais convidadas)<\/div>\r\n    \t\t\t<div class=\"hts-toggle__content\">\r\n    \t\t\t\t<div class=\"hts-toggle__contentwrap\">\r\n    \t\t\t\t\t<\/p>\n<h6>Plugin predefinido \u2013 Virtual Machine<\/h6>\n<p>Rastreia m\u00e1quinas virtuais convidadas no seu servidor (Ex.: KVM, QEMU, Xen, Virtuozzo, VMWare ESX, LXC&#8230;)<\/p>\n<h6>M\u00e9tricas<\/h6>\n<ul>\n<li>Disk read (bytes)<\/li>\n<li>Disk write (bytes)<\/li>\n<li>Disk read (requests)<\/li>\n<li>Disk write (requests)<\/li>\n<li>Networking out (bytes)<\/li>\n<li>Networking in (bytes)<\/li>\n<li>CPU Usage<\/li>\n<li>Memory Usage<\/li>\n<li>Memory min guaranteed<\/li>\n<li>Memory hard limit<\/li>\n<li>Memory soft limit<\/li>\n<\/ul>\n<h6>Depend\u00eancias<\/h6>\n<p>apt-get install python-libxml2 libvirt-dev<\/p>\n<p>O Virtual Machine precisa do plugin libirt-python\u202f para funcionar. Voc\u00ea pode instal\u00e1-lo atrav\u00e9s do comando pip install libvirt-python , ou atrav\u00e9s do comando pip3 install libvirt-python\u202f (caso esteja rodando o agente no Python3).<\/p>\n<h6>Configurando o plugin<\/h6>\n<p>Para ativar o plugin, edite o arquivo\u202f\/etc\/agent360.ini\u202fe adicione as seguintes linhas:<\/p>\n<pre>[vms]\r\n\r\nenabled = yes<\/pre>\n<h6>Testando o plugin<\/h6>\n<p>Para testar o plugin, execute o comando\u202fsudo -u agent360 agent360 test vms<\/p>\n<p>Agora voc\u00ea pode reiniciar o agente com o comando service agent360 restart<\/p>\n<p>\n    \t\t\t\t<\/div>\r\n    \t\t\t<\/div><!-- \/ht-toggle-content -->\r\n    \t\t<\/div>\r\n    \t\t\n    \t\t<div class=\"hts-messages hts-messages--info  hts-messages--withtitle hts-messages--withicon \"   >\r\n    \t\t\t<span class=\"hts-messages__title\">Conhe\u00e7a!<\/span>    \t\t\t    \t\t\t\t<p>\r\n    \t\t\t\t\tAproveite para conhecer o <u><a href=\"https:\/\/www.locaweb.com.br\/servidor-vps\/\">Servidor VPS<\/a>:<\/u> todos os recursos de um servidor f\u00edsico, s\u00f3 que virtualizados na nuvem e com pre\u00e7os em Real.    \t\t\t\t<\/p>\r\n    \t\t\t    \t\t\t\r\n    \t\t<\/div><!-- \/.ht-shortcodes-messages -->\r\n    \t\t\n","protected":false},"excerpt":{"rendered":"<p>Introdu\u00e7\u00e3o O Monitoramento de Servidores oferece uma s\u00e9rie de plugins que permitem que voc\u00ea monitore servi\u00e7os adicionais, como o desempenho de um servidor Apache ou outras propriedades, como a temperatura de um servidor.\u00a0 Plugins dispon\u00edveis<\/p>\n","protected":false},"author":30,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[654],"ht-kb-tag":[],"class_list":["post-32803","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-monitoramento-de-servidores"],"_links":{"self":[{"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/ht-kb\/32803","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/users\/30"}],"replies":[{"embeddable":true,"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/comments?post=32803"}],"version-history":[{"count":18,"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/ht-kb\/32803\/revisions"}],"predecessor-version":[{"id":33092,"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/ht-kb\/32803\/revisions\/33092"}],"wp:attachment":[{"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/media?parent=32803"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/ht-kb-category?post=32803"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/ht-kb-tag?post=32803"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}