{"id":706,"date":"2016-05-20T18:11:02","date_gmt":"2016-05-20T12:41:02","guid":{"rendered":"http:\/\/www.middlewareprimer.com\/blog\/?p=706"},"modified":"2016-05-20T18:11:02","modified_gmt":"2016-05-20T12:41:02","slug":"nsclient-error-invalid-password","status":"publish","type":"post","link":"http:\/\/www.middlewareprimer.com\/blog\/2016\/05\/20\/nsclient-error-invalid-password\/","title":{"rendered":"NSClient &#8211; ERROR: Invalid password"},"content":{"rendered":"<p>NSClient &#8211; ERROR: Invalid password error message pops up in Nagios console after configuring Windows monitoring services.<\/p>\n<p>Though the services are up and running in Windows, NSClient was not able to identify the password and below error message is shown on console.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-708 size-full\" src=\"http:\/\/www.middlewareprimer.com\/blog\/wp-content\/uploads\/2016\/05\/nagioswin2.png\" alt=\"NSClient - ERROR: Invalid password\" width=\"371\" height=\"42\" srcset=\"http:\/\/www.middlewareprimer.com\/blog\/wp-content\/uploads\/2016\/05\/nagioswin2.png 371w, http:\/\/www.middlewareprimer.com\/blog\/wp-content\/uploads\/2016\/05\/nagioswin2-300x34.png 300w\" sizes=\"auto, (max-width: 371px) 100vw, 371px\" \/><\/p>\n<p><span style=\"text-decoration: underline;\">Resolution<\/span><\/p>\n<p>There is one attribute, -s that is declared for check_nt command that needs to be having a PASSWORD as a value. That value is empty and that is reason why it gives us the error message. In addition to the check_nt command please do provide -s value (password used during nagios configuration) and the error will be removed.<\/p>\n<p>Below screenshot from console shows the value of ARG1 being empty and a valid password is required to fill in.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-707 size-full\" src=\"http:\/\/www.middlewareprimer.com\/blog\/wp-content\/uploads\/2016\/05\/nagioswin1.png\" alt=\"NSClient - ERROR: Invalid password\" width=\"294\" height=\"286\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>NSClient &#8211; ERROR: Invalid password error message pops up in Nagios console after configuring Windows monitoring services. Though the services are up and running in Windows, NSClient was not able to identify the password and below error message is shown on console. Resolution There is one attribute, -s that is declared for check_nt command that [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[153],"tags":[195,118,194],"class_list":["post-706","post","type-post","status-publish","format-standard","hentry","category-nagios","tag-error-invalid-password","tag-nagios","tag-nsclient"],"_links":{"self":[{"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/posts\/706","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/comments?post=706"}],"version-history":[{"count":2,"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/posts\/706\/revisions"}],"predecessor-version":[{"id":1069,"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/posts\/706\/revisions\/1069"}],"wp:attachment":[{"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/media?parent=706"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/categories?post=706"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/tags?post=706"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}