I am trying to install NSClient on windows 2008r2 using the below manifest class nsclient ($nagiosservers) { if ($operatingsystem == "windows") { file { ''C:/NSClient'': ensure => directory, owner => ''Administrator'', mode => ''0755'', } file { ''C:/NSClient/NSClient-0.3.9-x64.msi'': ensure => present, owner => ''Administrator'', mode => ''0755'', source => "puppet:///modules/nsclient/NSClient-0.3.9-x64.msi", require => File[''C:/NSClient''], } package { ''NSClient++ (x64)'': ensure => installed, provider => ''windows'', source => "C:\\NSClient\\NSClient-0.3.9-x64.msi", require => File[''C:/NSClient/NSClient-0.3.9-x64.msi''], } service { ''NSClient++ (x64)'': ensure => running, enable => true, require => Package[''NSClient++ (x64)''], } file { ''C:/Program Files/NSClient++/NSC.ini'': ensure => file, owner => ''Administrator'', mode => ''0755'', content => template("nsclient/NSC.ini.erb"), require => Package[''NSClient++ (x64)''], notify => Service[''NSClient++ (x64)''], } file { ''C:/Program Files/NSClient++/scripts/check_bkp.bat'': ensure => file, owner => ''SYSTEM'', mode => ''0755'', source => ''puppet:///modules/nsclient/check_bkp.bat'', require => Package[''NSClient++ (x64)''], } } else { fail(''This module is only supported on windows'') } } I get the following errors during the initial run Info: /Stage[main]/Nsclient/File[C:/Program Files/NSClient++/NSC.ini]: Scheduling refresh of Service[NSClient++ (x64)] Error: /Stage[main]/Nsclient/Service[NSClient++ (x64)]: Could not evaluate: Cannot get status of NSClient++ (x64), error was: The specified service does not exist as an installed service. Error: /Stage[main]/Nsclient/Service[NSClient++ (x64)]: Failed to call refresh: Cannot get status of NSClient++ (x64), error was: The specified service does not exist as an installed service. Error: /Stage[main]/Nsclient/Service[NSClient++ (x64)]: Cannot get status of NSClient++ (x64), error was: The specified service does not exist as an installed service. If I run the following to list the services sc queryex type= service state= all | find "DISPLAY_NAME" There is a row that says "DISPLAY_NAME: NSClient++ (x64)" so the service is there puppet is just not starting it. any more runs of the agent return this error Error: /Stage[main]/Nsclient/Service[nsclient]: Could not evaluate: Cannot get status of NSClient++ (x64), error was: The specified service does not exist as an installed service. puppetmaster : 3.2.3 puppet agent : 3.1.1 Is there something wrong with my config or is puppet having a hard time with the special characters in the service display name ? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/4d96e34c-4cad-4472-aab5-c5137768e71a%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Hi, so are the errors disappearing in subsequent agent runs? Thanks, Felix On 11/27/2013 12:53 PM, Jeffrey Smith wrote:> I get the following errors during the initial run-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/5297E0C8.4000506%40Alumni.TU-Berlin.de. For more options, visit https://groups.google.com/groups/opt_out.
No I just keep getting the error Error: /Stage[main]/Nsclient/Service[ nsclient]: Could not evaluate: Cannot get status of NSClient++ (x64), error was: The specified service does not exist as an installed service. On Friday, November 29, 2013 12:33:12 AM UTC, Felix.Frank wrote:> > Hi, > > so are the errors disappearing in subsequent agent runs? > > Thanks, > Felix > > On 11/27/2013 12:53 PM, Jeffrey Smith wrote: > > I get the following errors during the initial run >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/ef325e93-94b5-49bc-8ca4-cad150cca0ed%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
from what i have seen, this means you are not using the correct service name. Install NS Client on a windows box manually, go to run -> services.msc -> Look for NS service in the properties of that you will see the service Name, Use this service name if your code! Hope this help! -Kaustubh On Friday, November 29, 2013 6:31:28 AM UTC-5, Jeffrey Smith wrote:> > No I just keep getting the error > > Error: /Stage[main]/Nsclient/Service[ > nsclient]: Could not evaluate: Cannot get status of NSClient++ (x64), > error was: The specified service does not exist as an installed service. > > > On Friday, November 29, 2013 12:33:12 AM UTC, Felix.Frank wrote: >> >> Hi, >> >> so are the errors disappearing in subsequent agent runs? >> >> Thanks, >> Felix >> >> On 11/27/2013 12:53 PM, Jeffrey Smith wrote: >> > I get the following errors during the initial run >> >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/f636ee76-7c60-4d5b-a23b-822c3372c8b7%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
The service name is "NSClient++ (x64)" and its listed there its just not starting it as its saying it cant find it. On Friday, November 29, 2013 12:13:29 PM UTC, kaustubh chaudhari wrote:> > from what i have seen, this means you are not using the correct service > name. > > Install NS Client on a windows box manually, go to run -> services.msc -> > Look for NS service in the properties of that you will see the service > Name, Use this service name if your code! > > Hope this help! > > -Kaustubh > > On Friday, November 29, 2013 6:31:28 AM UTC-5, Jeffrey Smith wrote: >> >> No I just keep getting the error >> >> Error: /Stage[main]/Nsclient/Service[ >> nsclient]: Could not evaluate: Cannot get status of NSClient++ (x64), >> error was: The specified service does not exist as an installed service. >> >> >> On Friday, November 29, 2013 12:33:12 AM UTC, Felix.Frank wrote: >>> >>> Hi, >>> >>> so are the errors disappearing in subsequent agent runs? >>> >>> Thanks, >>> Felix >>> >>> On 11/27/2013 12:53 PM, Jeffrey Smith wrote: >>> > I get the following errors during the initial run >>> >>-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/8b0671d6-9e6a-4455-b513-4bb3d375210e%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Kaustubh''s remarks may still have merit, though. Perhaps there is a subtle typo (think trailing space or similar). Have you copy-pasted the name from an authoritative source? Regards, Felix On 11/29/2013 01:41 PM, Jeffrey Smith wrote:> > The service name is "NSClient++ (x64)" and its listed there its just not > starting it as its saying it cant find it. > > On Friday, November 29, 2013 12:13:29 PM UTC, kaustubh chaudhari wrote: > > from what i have seen, this means you are not using the correct > service name. > > Install NS Client on a windows box manually, go to run -> > services.msc -> Look for NS service in the properties of that you > will see the service Name, Use this service name if your code! > > Hope this help! > > -Kaustubh-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/52989025.1060901%40alumni.tu-berlin.de. For more options, visit https://groups.google.com/groups/opt_out.
Hi Felix, The DisplayName from the registry key HKEYY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\NSClientpp\DisplayName is "NSClient++ (x64)" in binary it is A hexdump of whats in my puppet manifest on linux gives 534e 6c43 6569 746e 2b2b 2820 3678 2934 000a while what regedit says its storing is 4e 00 53 00 43 00 6c 00 69 00 65 00 6e 00 74 00 2b 00 2b 00 20 00 28 00 78 00 36 00 34 00 29 00 00 00 Is it possible its a windows utf16 to utf8 on Linux issue? On Friday, November 29, 2013 1:01:25 PM UTC, Felix.Frank wrote:> > Kaustubh''s remarks may still have merit, though. Perhaps there is a > subtle typo (think trailing space or similar). Have you copy-pasted the > name from an authoritative source? > > Regards, > Felix > > On 11/29/2013 01:41 PM, Jeffrey Smith wrote: > > > > The service name is "NSClient++ (x64)" and its listed there its just not > > starting it as its saying it cant find it. > > > > On Friday, November 29, 2013 12:13:29 PM UTC, kaustubh chaudhari wrote: > > > > from what i have seen, this means you are not using the correct > > service name. > > > > Install NS Client on a windows box manually, go to run -> > > services.msc -> Look for NS service in the properties of that you > > will see the service Name, Use this service name if your code! > > > > Hope this help! > > > > -Kaustubh >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/8a6ba694-1308-4276-aea0-bab2ac00a8cc%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
On Sunday, December 1, 2013, Jeffrey Smith wrote:> Hi Felix, > > The DisplayName from the registry key > HKEYY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\NSClientpp\DisplayName is > "NSClient++ (x64)" in binary it is > > A hexdump of whats in my puppet manifest on linux gives > > 534e 6c43 6569 746e 2b2b 2820 3678 2934 > 000a > > while what regedit says its storing is > > 4e 00 53 00 43 00 6c 00 > 69 00 65 00 6e 00 74 00 > 2b 00 2b 00 20 00 28 00 > 78 00 36 00 34 00 29 00 > 00 00 > > Is it possible its a windows utf16 to utf8 on Linux issue? > > On Friday, November 29, 2013 1:01:25 PM UTC, Felix.Frank wrote: >> >> Kaustubh''s remarks may still have merit, though. Perhaps there is a >> subtle typo (think trailing space or similar). Have you copy-pasted the >> name from an authoritative source? >> >> Regards, >> Felix >> >> On 11/29/2013 01:41 PM, Jeffrey Smith wrote: >> > >> > The service name is "NSClient++ (x64)" and its listed there its just >> not >> > starting it as its saying it cant find it. >> > >> > On Friday, November 29, 2013 12:13:29 PM UTC, kaustubh chaudhari wrote: >> > >> > from what i have seen, this means you are not using the correct >> > service name. >> > >> > Install NS Client on a windows box manually, go to run -> >> > services.msc -> Look for NS service in the properties of that you >> > will see the service Name, Use this service name if your code! >> > >> > Hope this help! >> > >> > -Kaustubh >> > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to puppet-users+unsubscribe@googlegroups.com <javascript:_e({}, > ''cvml'', ''puppet-users%2Bunsubscribe@googlegroups.com'');>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/8a6ba694-1308-4276-aea0-bab2ac00a8cc%40googlegroups.com > . > For more options, visit https://groups.google.com/groups/opt_out. >You''ll want to use the short name of the service not the display name: http://docs.puppetlabs.com/references/latest/type.html#service-attribute-name The easiest way to find out what name puppet uses is to run ''puppet resource service'' when the service is installed and see what comes back. Josh -- Josh Cooper Developer, Puppet Labs -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CA%2Bu97u%3DC9E1gOoVp-8Rzj9aYCQJ0%3DKvC_8eMGyVF9PbYzpcSTg%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
HI Josh It seems the display name was wrong. service { ''nsclient'': name => ''NSClientpp'', ensure => running, enable => true, require => Package[''nsclient''], } That now works. Thanks for the help. On Sunday, December 1, 2013 9:37:58 PM UTC, Josh Cooper wrote:> > > > On Sunday, December 1, 2013, Jeffrey Smith wrote: > >> Hi Felix, >> >> The DisplayName from the registry key >> HKEYY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\NSClientpp\DisplayName is >> "NSClient++ (x64)" in binary it is >> >> A hexdump of whats in my puppet manifest on linux gives >> >> 534e 6c43 6569 746e 2b2b 2820 3678 2934 >> 000a >> >> while what regedit says its storing is >> >> 4e 00 53 00 43 00 6c 00 >> 69 00 65 00 6e 00 74 00 >> 2b 00 2b 00 20 00 28 00 >> 78 00 36 00 34 00 29 00 >> 00 00 >> >> Is it possible its a windows utf16 to utf8 on Linux issue? >> >> On Friday, November 29, 2013 1:01:25 PM UTC, Felix.Frank wrote: >>> >>> Kaustubh''s remarks may still have merit, though. Perhaps there is a >>> subtle typo (think trailing space or similar). Have you copy-pasted the >>> name from an authoritative source? >>> >>> Regards, >>> Felix >>> >>> On 11/29/2013 01:41 PM, Jeffrey Smith wrote: >>> > >>> > The service name is "NSClient++ (x64)" and its listed there its just >>> not >>> > starting it as its saying it cant find it. >>> > >>> > On Friday, November 29, 2013 12:13:29 PM UTC, kaustubh chaudhari >>> wrote: >>> > >>> > from what i have seen, this means you are not using the correct >>> > service name. >>> > >>> > Install NS Client on a windows box manually, go to run -> >>> > services.msc -> Look for NS service in the properties of that you >>> > will see the service Name, Use this service name if your code! >>> > >>> > Hope this help! >>> > >>> > -Kaustubh >>> >> -- >> You received this message because you are subscribed to the Google Groups >> "Puppet Users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to puppet-users+unsubscribe@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/puppet-users/8a6ba694-1308-4276-aea0-bab2ac00a8cc%40googlegroups.com >> . >> For more options, visit https://groups.google.com/groups/opt_out. >> > > You''ll want to use the short name of the service not the display name: > http://docs.puppetlabs.com/references/latest/type.html#service-attribute-name > > The easiest way to find out what name puppet uses is to run ''puppet > resource service'' when the service is installed and see what comes back. > > Josh > > > -- > Josh Cooper > Developer, Puppet Labs > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/610eac43-4227-4bda-926d-ceb8393a6453%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.