monitoring mongodb with monit The 2019 Stack Overflow Developer Survey Results Are Inmysql...

Are spiders unable to hurt humans, especially very small spiders?

Is it ok to offer lower paid work as a trial period before negotiating for a full-time job?

Why does the nucleus not repel itself?

Why is the maximum length of OpenWrt’s root password 8 characters?

How can I define good in a religion that claims no moral authority?

Why can't devices on different VLANs, but on the same subnet, communicate?

Is there a way to generate a uniformly distributed point on a sphere from a fixed amount of random real numbers?

Is it ethical to upload a automatically generated paper to a non peer-reviewed site as part of a larger research?

What information about me do stores get via my credit card?

Button changing its text & action. Good or terrible?

Pokemon Turn Based battle (Python)

How can I add encounters in the Lost Mine of Phandelver campaign without giving PCs too much XP?

What does Linus Torvalds mean when he says that Git "never ever" tracks a file?

Did any laptop computers have a built-in 5 1/4 inch floppy drive?

Can a flute soloist sit?

Is bread bad for ducks?

Keeping a retro style to sci-fi spaceships?

Is an up-to-date browser secure on an out-of-date OS?

"as much details as you can remember"

Old scifi movie from the 50s or 60s with men in solid red uniforms who interrogate a spy from the past

Why don't hard Brexiteers insist on a hard border to prevent illegal immigration after Brexit?

Mathematics of imaging the black hole

Short story: man watches girlfriend's spaceship entering a 'black hole' (?) forever

Ubuntu Server install with full GUI



monitoring mongodb with monit



The 2019 Stack Overflow Developer Survey Results Are Inmysql monitoring with monitMonit not restarting serviceMonit detecting error, but not restarting asteriskmongoDb 2.6 fails to start on Oracle Linux using the init scriptConfigure Monit to monitor PHP5-FPM on Ubuntu/Nginx setupAwaken monit daemon every few hours for all monitored processesExecute custom monit script upon failure to restart the processEnabling WiredTiger engine in MongoDB 3Monit for PHP7 connection failedCan not connect to MongoDB with Mongo Compass CE





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







0















I cannot get the most basic script working on monitoring mongodb on ubuntu 16.04 monit 5.16



check process mongod with pidfile /var/run/mongod.pid
group database
start program = "/usr/sbin/service mongod start"
stop program = "/usr/sbin/service mongod stop"
if failed host 127.0.0.1 port 27017 protocol http
and request "/" with timeout 15 seconds then restart


I get the error: Error reading pid from file '/var/run/mongod.pid'



but when I run cat /var/run/mongod.pid as a regular user I do get the value 51455



I've changed permissions making it both less (0x777) and more restrictive to no avail. Anyone come across this?









share





























    0















    I cannot get the most basic script working on monitoring mongodb on ubuntu 16.04 monit 5.16



    check process mongod with pidfile /var/run/mongod.pid
    group database
    start program = "/usr/sbin/service mongod start"
    stop program = "/usr/sbin/service mongod stop"
    if failed host 127.0.0.1 port 27017 protocol http
    and request "/" with timeout 15 seconds then restart


    I get the error: Error reading pid from file '/var/run/mongod.pid'



    but when I run cat /var/run/mongod.pid as a regular user I do get the value 51455



    I've changed permissions making it both less (0x777) and more restrictive to no avail. Anyone come across this?









    share

























      0












      0








      0








      I cannot get the most basic script working on monitoring mongodb on ubuntu 16.04 monit 5.16



      check process mongod with pidfile /var/run/mongod.pid
      group database
      start program = "/usr/sbin/service mongod start"
      stop program = "/usr/sbin/service mongod stop"
      if failed host 127.0.0.1 port 27017 protocol http
      and request "/" with timeout 15 seconds then restart


      I get the error: Error reading pid from file '/var/run/mongod.pid'



      but when I run cat /var/run/mongod.pid as a regular user I do get the value 51455



      I've changed permissions making it both less (0x777) and more restrictive to no avail. Anyone come across this?









      share














      I cannot get the most basic script working on monitoring mongodb on ubuntu 16.04 monit 5.16



      check process mongod with pidfile /var/run/mongod.pid
      group database
      start program = "/usr/sbin/service mongod start"
      stop program = "/usr/sbin/service mongod stop"
      if failed host 127.0.0.1 port 27017 protocol http
      and request "/" with timeout 15 seconds then restart


      I get the error: Error reading pid from file '/var/run/mongod.pid'



      but when I run cat /var/run/mongod.pid as a regular user I do get the value 51455



      I've changed permissions making it both less (0x777) and more restrictive to no avail. Anyone come across this?







      ubuntu mongodb monit





      share












      share










      share



      share










      asked 3 mins ago









      farhadffarhadf

      1033




      1033






















          0






          active

          oldest

          votes












          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "2"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f962715%2fmonitoring-mongodb-with-monit%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Server Fault!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f962715%2fmonitoring-mongodb-with-monit%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          As a Security Precaution, the user account has been locked The Next CEO of Stack OverflowMS...

          Список ссавців Італії Природоохоронні статуси | Список |...

          Українські прізвища Зміст Історичні відомості |...