{"id":7316,"date":"2023-08-19T12:41:05","date_gmt":"2023-08-19T07:11:05","guid":{"rendered":"https:\/\/pheonixsolutions.com\/blog\/?p=7316"},"modified":"2023-08-19T12:41:09","modified_gmt":"2023-08-19T07:11:09","slug":"how-to-set-up-the-pm2-service-monitor-on-nagios","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/how-to-set-up-the-pm2-service-monitor-on-nagios\/","title":{"rendered":"How to set up the PM2 service monitor on Nagios"},"content":{"rendered":"\n<p><strong>Introduction:<\/strong><\/p>\n\n\n\n<p>To set up the PM2 service monitor on Nagios, you&#8217;ll need to follow these general steps. PM2 is a process manager for Node.js applications, so we&#8217;ll assume you&#8217;re monitoring Node.js processes managed by PM2.<\/p>\n\n\n\n<p><strong>Prerequisite<\/strong>:<\/p>\n\n\n\n<p>1. Server root login credentials.<\/p>\n\n\n\n<p><strong>Step 1:<\/strong><\/p>\n\n\n\n<p>Log in to your Ubuntu or Centos server as a user with sudo privileges. You can use SSH or directly access the server.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>$ ssh root@Ip<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>Step 2:<\/strong><\/p>\n\n\n\n<p>Edit the \/etc\/nagios\/nrpe.cfg configuration file and search for <strong><em>command<\/em><\/strong> definition sections. Here you can define or update check commands.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>$ vi \/etc\/nagios\/nrpe.cfg<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>Please update the below command for the PM2 check.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>command[check_pm2_port]= \/usr\/lib\/nagios\/plugins\/check_pm2_port.sh<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>Step 3:<\/strong><\/p>\n\n\n\n<p>Please go to the plugin&#8217;s path and create a new script file&nbsp;in the specified path, such as check_pm2_port.sh. The script should check if the PM2 service port is open or not.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>vi \/usr\/lib\/nagios\/plugins\/check_pm2_port.sh<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>Please copy the below commands, and paste the check_pm2_port.sh file, and save the file.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>#!\/bin\/bash<br>&nbsp;<br># Modify the following variables according to your setup<br>PM2_HOST=&#8221;localhost&#8221;<br>PM2_PORT=3000<br>&nbsp;<br>nc -z -w 2 $PM2_HOST $PM2_PORT &gt; \/dev\/null 2&gt;&amp;1<br>result=$?<br>&nbsp;<br>if [ $result -eq 0 ]; then<br>&nbsp;&nbsp;&nbsp; echo &#8220;OK &#8211; PM2 service is listening on port $PM2_PORT&#8221;<br>&nbsp;&nbsp;&nbsp; exit 0<br>else<br>&nbsp;&nbsp;&nbsp; echo &#8220;CRITICAL &#8211; PM2 service is not listening on port $PM2_PORT&#8221;<br>&nbsp;&nbsp;&nbsp; exit 2<br>fi<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>Step 4:<\/strong><\/p>\n\n\n\n<p>Give permission to the check_pm2_port.sh file and follow the below command:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>chmod 755 check_pm2_port.sh<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>Step 5:<\/strong><\/p>\n\n\n\n<p>Next, restart the NRPE service. Now it is ready to listen to requests from the Nagios Server.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>systemctl restart nagios-nrpe-server<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>Open the Nagios server.<\/strong><\/p>\n\n\n\n<p><strong>Step 6:<\/strong><\/p>\n\n\n\n<p>Go to the path of the object using the below commands:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>vi \/usr\/local\/nagios\/etc\/objects\/commands.cfg<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>Here, we want to add the below command to a file and save it.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>define command {<br>&nbsp;&nbsp;&nbsp; command_name&nbsp;&nbsp;&nbsp; check_pm2_port<br>&nbsp;&nbsp;&nbsp; command_line&nbsp;&nbsp;&nbsp; \/usr\/lib\/nagios\/plugins\/check_nrpe -H $HOSTADDRESS$ -c check_pm2_port<br>}<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>Step 7:<\/strong><\/p>\n\n\n\n<p>Please open the below for the configuration path.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>vi \/usr\/local\/nagios\/etc\/servers\/testserver2.cfg<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>Add the below lines for PM2 checking the configuration and save it.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>define service {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; use&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;       generic-service&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ; Name of service template to use<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; host_name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; testserver2<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; service_description&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pm2_service<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check_command&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; check_nrpe!check_pm2_port<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; contact_groups&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;admins<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; notifications_enabled&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>Step 8:<\/strong><\/p>\n\n\n\n<p>Save the configuration file.<\/p>\n\n\n\n<p>And finally, restart Nagios to apply the recent configuration changes:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>systemctl restart nagios<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>We can verify the PM2 status in the below snapshot.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-14-071154.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"23\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-14-071154-1024x23.png\" alt=\"\" class=\"wp-image-7318\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-14-071154-1024x23.png 1024w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-14-071154-300x7.png 300w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-14-071154-768x17.png 768w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-14-071154-850x19.png 850w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-14-071154.png 1438w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p><strong>Conclusion<\/strong><\/p>\n\n\n\n<p>Following the steps mentioned above, we can set up the PM2 service monitor on Nagios.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction: To set up the PM2 service monitor on Nagios, you&#8217;ll need to follow these general steps. PM2 is a process manager for Node.js applications, so we&#8217;ll assume you&#8217;re monitoring Node.js processes managed by PM2. Prerequisite: 1. Server root login credentials. Step 1: Log in to your Ubuntu or Centos&hellip; <a href=\"https:\/\/pheonixsolutions.com\/blog\/how-to-set-up-the-pm2-service-monitor-on-nagios\/\" class=\"more-link read-more\" rel=\"bookmark\">Continue Reading <span class=\"screen-reader-text\">How to set up the PM2 service monitor on Nagios<\/span><i class=\"fa fa-arrow-right\"><\/i><\/a><\/p>\n","protected":false},"author":499,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":{"0":"post-7316","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-uncategorized","7":"h-entry","9":"h-as-article"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Pheonix Solutions - We Empower Your Business Growth<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/pheonixsolutions.com\/blog\/how-to-set-up-the-pm2-service-monitor-on-nagios\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Pheonix Solutions - We Empower Your Business Growth\" \/>\n<meta property=\"og:description\" content=\"Introduction: To set up the PM2 service monitor on Nagios, you&#8217;ll need to follow these general steps. PM2 is a process manager for Node.js applications, so we&#8217;ll assume you&#8217;re monitoring Node.js processes managed by PM2. Prerequisite: 1. Server root login credentials. Step 1: Log in to your Ubuntu or Centos&hellip; Continue Reading How to set up the PM2 service monitor on Nagios\" \/>\n<meta property=\"og:url\" content=\"https:\/\/pheonixsolutions.com\/blog\/how-to-set-up-the-pm2-service-monitor-on-nagios\/\" \/>\n<meta property=\"og:site_name\" content=\"PHEONIXSOLUTIONS\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/PheonixSolutions-209942982759387\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-08-19T07:11:05+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-08-19T07:11:09+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-14-071154-1024x23.png\" \/>\n<meta name=\"author\" content=\"ragupathi N\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@pheonixsolution\" \/>\n<meta name=\"twitter:site\" content=\"@pheonixsolution\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"ragupathi N\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-set-up-the-pm2-service-monitor-on-nagios\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-set-up-the-pm2-service-monitor-on-nagios\\\/\"},\"author\":{\"name\":\"ragupathi N\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/38a5dbc84c35460f6302cb0ca3b48598\"},\"headline\":\"How to set up the PM2 service monitor on Nagios\",\"datePublished\":\"2023-08-19T07:11:05+00:00\",\"dateModified\":\"2023-08-19T07:11:09+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-set-up-the-pm2-service-monitor-on-nagios\\\/\"},\"wordCount\":627,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-set-up-the-pm2-service-monitor-on-nagios\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/Screenshot-2023-08-14-071154-1024x23.png\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-set-up-the-pm2-service-monitor-on-nagios\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-set-up-the-pm2-service-monitor-on-nagios\\\/\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-set-up-the-pm2-service-monitor-on-nagios\\\/\",\"name\":\"Pheonix Solutions - We Empower Your Business Growth\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-set-up-the-pm2-service-monitor-on-nagios\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-set-up-the-pm2-service-monitor-on-nagios\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/Screenshot-2023-08-14-071154-1024x23.png\",\"datePublished\":\"2023-08-19T07:11:05+00:00\",\"dateModified\":\"2023-08-19T07:11:09+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-set-up-the-pm2-service-monitor-on-nagios\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-set-up-the-pm2-service-monitor-on-nagios\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-set-up-the-pm2-service-monitor-on-nagios\\\/#primaryimage\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/Screenshot-2023-08-14-071154.png\",\"contentUrl\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/Screenshot-2023-08-14-071154.png\",\"width\":1438,\"height\":32},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-set-up-the-pm2-service-monitor-on-nagios\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to set up the PM2 service monitor on Nagios\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/\",\"name\":\"Pheonix Solutions\",\"description\":\"We Empower Your Business Growth\",\"publisher\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#organization\",\"name\":\"PheonixSolutions\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/12\\\/logo.png\",\"contentUrl\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/12\\\/logo.png\",\"width\":454,\"height\":300,\"caption\":\"PheonixSolutions\"},\"image\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/PheonixSolutions-209942982759387\\\/\",\"https:\\\/\\\/x.com\\\/pheonixsolution\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/38a5dbc84c35460f6302cb0ca3b48598\",\"name\":\"ragupathi N\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/7a25050762812aa4121dc2fc399845811de371369904acb2bb9cea2ebc2ed8e0?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/7a25050762812aa4121dc2fc399845811de371369904acb2bb9cea2ebc2ed8e0?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/7a25050762812aa4121dc2fc399845811de371369904acb2bb9cea2ebc2ed8e0?s=96&r=g\",\"caption\":\"ragupathi N\"},\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/author\\\/ragupathi\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Pheonix Solutions - We Empower Your Business Growth","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/pheonixsolutions.com\/blog\/how-to-set-up-the-pm2-service-monitor-on-nagios\/","og_locale":"en_US","og_type":"article","og_title":"Pheonix Solutions - We Empower Your Business Growth","og_description":"Introduction: To set up the PM2 service monitor on Nagios, you&#8217;ll need to follow these general steps. PM2 is a process manager for Node.js applications, so we&#8217;ll assume you&#8217;re monitoring Node.js processes managed by PM2. Prerequisite: 1. Server root login credentials. Step 1: Log in to your Ubuntu or Centos&hellip; Continue Reading How to set up the PM2 service monitor on Nagios","og_url":"https:\/\/pheonixsolutions.com\/blog\/how-to-set-up-the-pm2-service-monitor-on-nagios\/","og_site_name":"PHEONIXSOLUTIONS","article_publisher":"https:\/\/www.facebook.com\/PheonixSolutions-209942982759387\/","article_published_time":"2023-08-19T07:11:05+00:00","article_modified_time":"2023-08-19T07:11:09+00:00","og_image":[{"url":"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-14-071154-1024x23.png","type":"","width":"","height":""}],"author":"ragupathi N","twitter_card":"summary_large_image","twitter_creator":"@pheonixsolution","twitter_site":"@pheonixsolution","twitter_misc":{"Written by":"ragupathi N","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/pheonixsolutions.com\/blog\/how-to-set-up-the-pm2-service-monitor-on-nagios\/#article","isPartOf":{"@id":"https:\/\/pheonixsolutions.com\/blog\/how-to-set-up-the-pm2-service-monitor-on-nagios\/"},"author":{"name":"ragupathi N","@id":"https:\/\/pheonixsolutions.com\/blog\/#\/schema\/person\/38a5dbc84c35460f6302cb0ca3b48598"},"headline":"How to set up the PM2 service monitor on Nagios","datePublished":"2023-08-19T07:11:05+00:00","dateModified":"2023-08-19T07:11:09+00:00","mainEntityOfPage":{"@id":"https:\/\/pheonixsolutions.com\/blog\/how-to-set-up-the-pm2-service-monitor-on-nagios\/"},"wordCount":627,"commentCount":0,"publisher":{"@id":"https:\/\/pheonixsolutions.com\/blog\/#organization"},"image":{"@id":"https:\/\/pheonixsolutions.com\/blog\/how-to-set-up-the-pm2-service-monitor-on-nagios\/#primaryimage"},"thumbnailUrl":"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-14-071154-1024x23.png","inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/pheonixsolutions.com\/blog\/how-to-set-up-the-pm2-service-monitor-on-nagios\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/pheonixsolutions.com\/blog\/how-to-set-up-the-pm2-service-monitor-on-nagios\/","url":"https:\/\/pheonixsolutions.com\/blog\/how-to-set-up-the-pm2-service-monitor-on-nagios\/","name":"Pheonix Solutions - We Empower Your Business Growth","isPartOf":{"@id":"https:\/\/pheonixsolutions.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/pheonixsolutions.com\/blog\/how-to-set-up-the-pm2-service-monitor-on-nagios\/#primaryimage"},"image":{"@id":"https:\/\/pheonixsolutions.com\/blog\/how-to-set-up-the-pm2-service-monitor-on-nagios\/#primaryimage"},"thumbnailUrl":"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-14-071154-1024x23.png","datePublished":"2023-08-19T07:11:05+00:00","dateModified":"2023-08-19T07:11:09+00:00","breadcrumb":{"@id":"https:\/\/pheonixsolutions.com\/blog\/how-to-set-up-the-pm2-service-monitor-on-nagios\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/pheonixsolutions.com\/blog\/how-to-set-up-the-pm2-service-monitor-on-nagios\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/pheonixsolutions.com\/blog\/how-to-set-up-the-pm2-service-monitor-on-nagios\/#primaryimage","url":"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-14-071154.png","contentUrl":"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-14-071154.png","width":1438,"height":32},{"@type":"BreadcrumbList","@id":"https:\/\/pheonixsolutions.com\/blog\/how-to-set-up-the-pm2-service-monitor-on-nagios\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/pheonixsolutions.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to set up the PM2 service monitor on Nagios"}]},{"@type":"WebSite","@id":"https:\/\/pheonixsolutions.com\/blog\/#website","url":"https:\/\/pheonixsolutions.com\/blog\/","name":"Pheonix Solutions","description":"We Empower Your Business Growth","publisher":{"@id":"https:\/\/pheonixsolutions.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/pheonixsolutions.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/pheonixsolutions.com\/blog\/#organization","name":"PheonixSolutions","url":"https:\/\/pheonixsolutions.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/pheonixsolutions.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2016\/12\/logo.png","contentUrl":"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2016\/12\/logo.png","width":454,"height":300,"caption":"PheonixSolutions"},"image":{"@id":"https:\/\/pheonixsolutions.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/PheonixSolutions-209942982759387\/","https:\/\/x.com\/pheonixsolution"]},{"@type":"Person","@id":"https:\/\/pheonixsolutions.com\/blog\/#\/schema\/person\/38a5dbc84c35460f6302cb0ca3b48598","name":"ragupathi N","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/7a25050762812aa4121dc2fc399845811de371369904acb2bb9cea2ebc2ed8e0?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/7a25050762812aa4121dc2fc399845811de371369904acb2bb9cea2ebc2ed8e0?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/7a25050762812aa4121dc2fc399845811de371369904acb2bb9cea2ebc2ed8e0?s=96&r=g","caption":"ragupathi N"},"url":"https:\/\/pheonixsolutions.com\/blog\/author\/ragupathi\/"}]}},"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p7F4uM-1U0","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/7316","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/users\/499"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=7316"}],"version-history":[{"count":0,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/7316\/revisions"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=7316"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=7316"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=7316"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}