{"id":633,"date":"2017-04-20T08:31:37","date_gmt":"2017-04-20T08:31:37","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/2017\/04\/20\/starting-and-stopping-nagios-core\/"},"modified":"2025-02-01T23:06:43","modified_gmt":"2025-02-01T23:06:43","slug":"starting-and-stopping-nagios-core","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/starting-and-stopping-nagios-core\/","title":{"rendered":"How to Start and Stop Nagios Core | Nagios Tutorial"},"content":{"rendered":"<div><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-2919 aligncenter\" src=\"http:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2017\/04\/starting-and-stopping-nagio.png\" alt=\"starting-and-stopping-nagios-core\" width=\"600\" height=\"400\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2017\/04\/starting-and-stopping-nagio.png 600w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2017\/04\/starting-and-stopping-nagio-300x200.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/div>\n<div><\/div>\n<div><strong>Starting Nagios Core<\/strong><\/div>\n<div><\/div>\n<div><strong>Init Script:<\/strong> The easiest way to start the Nagios Core daemon is by using the init script like so:<\/div>\n<div>\/etc\/rc.d\/init.d\/nagios start<\/div>\n<div><\/div>\n<div><strong>Manually:<\/strong> You can start the Nagios daemon manually with the -d command line option like so:<\/div>\n<div>\/usr\/local\/nagios\/bin\/nagios -d \/usr\/local\/nagios\/etc\/nagios.cfg<\/div>\n<div><\/div>\n<div><strong>Restarting Nagios Core<\/strong><\/div>\n<div><\/div>\n<div>Restarting\/reloading is nececessary when you modify your configuration files and want those changes to take effect.<\/div>\n<div><\/div>\n<div><strong>Init Script:<\/strong> The easiest way to restart the Nagios Core daemon is by using the init script like so:<\/div>\n<div>\/etc\/rc.d\/init.d\/nagios reload<\/div>\n<div><\/div>\n<div><strong>Web Interface:<\/strong> You can restart the Nagios Core through the web interface by clicking the &#8220;Process Info&#8221; navigation link and selecting &#8220;Restart the Nagios process&#8221;:<\/div>\n<div><\/div>\n<div><strong>Manually:<\/strong> You can restart the Nagios Core process by sending it a SIGHUP signal like so:<\/div>\n<div>kill -HUP &lt;nagios_pid&gt;<\/div>\n<div><\/div>\n<div><strong>Stopping Nagios Core<\/strong><\/div>\n<div><\/div>\n<div><strong>Init Script:<\/strong> The easiest way to stop the Nagios Core daemon is by using the init script like so:<\/div>\n<div>\/etc\/rc.d\/init.d\/nagios stop<\/div>\n<div><\/div>\n<div><strong>Web Interface:<\/strong> You can stop the Nagios Core through the web interface by clicking the &#8220;Process Info&#8221; navigation link and selecting &#8220;Shutdown the Nagios process&#8221;:<\/div>\n<div><\/div>\n<div><strong>Manually:<\/strong> You can stop the Nagios Core process by sending it a SIGTERM signal like so:<\/div>\n<div>kill &lt;nagios_pid&gt;<\/div>\n<div><\/div>\n\n<div class=\"epyt-gallery\" data-currpage=\"1\" id=\"epyt_gallery_39229\"><figure class=\"wp-block-embed wp-block-embed-youtube is-type-video is-provider-youtube epyt-figure\"><div class=\"wp-block-embed__wrapper\"><iframe loading=\"lazy\"  id=\"_ytid_22912\"  width=\"760\" height=\"427\"  data-origwidth=\"760\" data-origheight=\"427\" src=\"https:\/\/www.youtube.com\/embed\/?enablejsapi=1&#038;autoplay=0&#038;cc_load_policy=0&#038;cc_lang_pref=&#038;iv_load_policy=1&#038;loop=0&#038;rel=1&#038;fs=1&#038;playsinline=0&#038;autohide=2&#038;theme=dark&#038;color=red&#038;controls=1&#038;disablekb=0&#038;\" class=\"__youtube_prefs__  no-lazyload\" title=\"YouTube player\"  data-epytgalleryid=\"epyt_gallery_39229\"  allow=\"fullscreen; accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen data-no-lazy=\"1\" data-skipgform_ajax_framebjll=\"\"><\/iframe><\/div><\/figure><div class=\"epyt-gallery-list\"><div>Sorry, there was a YouTube error.<\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>Starting Nagios Core Init Script: The easiest way to start the Nagios Core daemon is by using the init script like so: \/etc\/rc.d\/init.d\/nagios start Manually: You can start the Nagios daemon manually with the -d command line option like so: \/usr\/local\/nagios\/bin\/nagios -d \/usr\/local\/nagios\/etc\/nagios.cfg Restarting Nagios Core Restarting\/reloading is nececessary when you modify your configuration files&#8230;<\/p>\n","protected":false},"author":1,"featured_media":2919,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","_joinchat":[],"footnotes":""},"categories":[541],"tags":[378,545,721,722,724,723,725,729,728,719,726,720,727],"class_list":["post-633","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-networking","tag-commands","tag-how","tag-nagios","tag-nagios-core","tag-nagios-guide","tag-nagios-tutorial","tag-network-monitoring","tag-restart","tag-restarting-nagios-core","tag-start","tag-starting-nagios-core","tag-stop","tag-stopping-nagios-core"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/633","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=633"}],"version-history":[{"count":2,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/633\/revisions"}],"predecessor-version":[{"id":25761,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/633\/revisions\/25761"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media\/2919"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=633"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=633"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=633"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}