{"id":691,"date":"2012-08-31T23:42:07","date_gmt":"2012-08-31T21:42:07","guid":{"rendered":"http:\/\/diablo.craem.net\/wordpress\/?p=691"},"modified":"2012-08-31T23:42:07","modified_gmt":"2012-08-31T21:42:07","slug":"habilitar-deshabilitar-notificaciones-del-nagios","status":"publish","type":"post","link":"https:\/\/diablo.craem.net\/?p=691","title":{"rendered":"Habilitar \/ Deshabilitar notificaciones del nagios"},"content":{"rendered":"<p>Otra entrada que es un apunte.<br \/>\nYa tengo varios nagios corriendo en clientes y en alguna ocasi\u00f3n (cuando cae todo), es mejor deshabilitar las notificaciones&#8230;.. ya sabemos que est\u00e1 todo ca\u00ed\u00addo y que se queden en cola no es lo \u00f3ptimo.<br \/>\nPara ello, en un pc con el <strong><em>curl<\/em><\/strong> instalado (apt-get install curl), copy&amp;pasteamos los siguientes comandos:<br \/>\nPara deshabilitar:<br \/>\n<code><br \/>\ncurl -d \"cmd_mod=2&amp;cmd_typ=11\" \"https:\/\/ip.srv.nagios\/cgi-bin\/nagios\/cmd.cgi\" -u \"user:password\"<\/code><br \/>\nPara volverlas a habilitar:<br \/>\n<code><br \/>\ncurl -d \"cmd_mod=2&amp;cmd_typ=12\" \"https:\/\/ip.srv.nagios\/cgi-bin\/nagios\/cmd.cgi\" -u \"user:password\"<br \/>\n<\/code><br \/>\nEnjoy \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Otra entrada que es un apunte. Ya tengo varios nagios corriendo en clientes y en alguna ocasi\u00f3n (cuando cae todo), es mejor deshabilitar las notificaciones&#8230;.. ya sabemos que est\u00e1 todo ca\u00ed\u00addo y que se queden en cola no es lo \u00f3ptimo. Para ello, en un pc con el curl instalado (apt-get install curl), copy&amp;pasteamos los [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[17,56,58,117,128],"class_list":["post-691","post","type-post","status-publish","format-standard","hentry","category-linux","tag-alerts","tag-curl","tag-debian","tag-nagios","tag-notifications"],"_links":{"self":[{"href":"https:\/\/diablo.craem.net\/index.php?rest_route=\/wp\/v2\/posts\/691","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/diablo.craem.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/diablo.craem.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/diablo.craem.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/diablo.craem.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=691"}],"version-history":[{"count":0,"href":"https:\/\/diablo.craem.net\/index.php?rest_route=\/wp\/v2\/posts\/691\/revisions"}],"wp:attachment":[{"href":"https:\/\/diablo.craem.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=691"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/diablo.craem.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=691"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/diablo.craem.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=691"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}