{"id":710,"date":"2006-01-17T18:44:46","date_gmt":"2006-01-17T23:44:46","guid":{"rendered":"https:\/\/blog.nightmare.org\/?p=710"},"modified":"2024-03-08T18:46:42","modified_gmt":"2024-03-08T23:46:42","slug":"vagaries-of-nagios","status":"publish","type":"post","link":"https:\/\/blog.nightmare.org\/?p=710","title":{"rendered":"vagaries of nagios"},"content":{"rendered":"<div class=\"storycontent\">\n<p><a href=\"http:\/\/www.nagios.org\/\"><img decoding=\"async\" src=\"http:\/\/nightmare.org\/wp-images\/weblogo1.png\" align=\"right\" hspace=\"10\" border=\"0\" alt=\"nagios\"\/><\/a> <a href=\"http:\/\/www.nagios.org\/\">nagios<\/a> is a great open source service\/server monitor, i&#8217;ve been using it for a very long time. one thing i noticed, however, as you update the various config files, if you make a mistake and try to start nagios again it will report this error:<\/p>\n<blockquote>\n<p>\n[root@ethereal nagios]# .\/nagios.initscript start<br \/>\nStarting network monitor: nagios<br \/>\nNo lock file found in \/usr\/local\/nagios\/var\/nagios.lock\n<\/p>\n<\/blockquote>\n<p>not all that helpful, but if you look in your messages log it is much more helpful:<\/p>\n<blockquote>\n<p>\nJan 17 08:53:14 ethereal nagios: Error: Could not register hostgroup (config file &#8216;\/usr\/local\/nagios\/etc\/hostgroups.cfg&#8217;, line 29)\n<\/p>\n<\/blockquote>\n<p>you can also run this to test your nagios config first (but i can never remember it so i use the above method):<\/p>\n<blockquote>\n<p>\n\/usr\/local\/nagios\/bin\/nagios -v \/usr\/local\/nagios\/etc\/nagios.cfg\n<\/p>\n<\/blockquote><\/div>\n","protected":false},"excerpt":{"rendered":"<p>nagios is a great open source service\/server monitor, i&#8217;ve been using it for a very long time. one thing i noticed, however, as you update the various config files, if you make a mistake and try to start nagios again it will report this error: [root@ethereal nagios]# .\/nagios.initscript start Starting network monitor: nagios No lock [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"bgseo_title":"","bgseo_description":"","bgseo_robots_index":"index","bgseo_robots_follow":"follow","site-sidebar-layout":"default","site-content-layout":"default","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"footnotes":""},"categories":[24,28],"tags":[],"class_list":["post-710","post","type-post","status-publish","format-standard","hentry","category-archive","category-tech"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/blog.nightmare.org\/index.php?rest_route=\/wp\/v2\/posts\/710","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.nightmare.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.nightmare.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.nightmare.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.nightmare.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=710"}],"version-history":[{"count":1,"href":"https:\/\/blog.nightmare.org\/index.php?rest_route=\/wp\/v2\/posts\/710\/revisions"}],"predecessor-version":[{"id":711,"href":"https:\/\/blog.nightmare.org\/index.php?rest_route=\/wp\/v2\/posts\/710\/revisions\/711"}],"wp:attachment":[{"href":"https:\/\/blog.nightmare.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=710"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.nightmare.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=710"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.nightmare.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=710"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}