Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Did you update the check_nt command and removed the single quotes from around the Arguments and then restart Nagios?
Verify that you did do that and to be complete, restart the nagios process.
Also, post the command definition and the service definition here so we can view them.
The sc command not finding the service is puzzling, can you run this on the windows server and upload the c:\service.txt file so we can view all of the service names on that system?
tgriep wrote:Did you update the check_nt command and removed the single quotes from around the Arguments and then restart Nagios?
Verify that you did do that and to be complete, restart the nagios process.
Also, post the command definition and the service definition here so we can view them.
The sc command not finding the service is puzzling, can you run this on the windows server and upload the c:\service.txt file so we can view all of the service names on that system?
The commands.cfg there is a command in there at the bottom that is commented out, because if i uncomment it, it breaks nagios saying there is a duplicate command. I have a previous topic open regarding this as well.
I would guess that the nt.cfg file and the commands.cfg files are included in the nagios configurations and if you have a check_nt command in one of the files, you cannot have another one defined.
So, leaving the check_nt command in the commands.cfg file is needed.
The service name is in the txt file so that looks OK.
Can you post the nagios.cfg file here so we can view it's settings?
Be sure to check out our Knowledgebase for helpful articles and solutions!
tgriep wrote:Are you running version 3.5.1 of Nagios Core?
I would guess that the nt.cfg file and the commands.cfg files are included in the nagios configurations and if you have a check_nt command in one of the files, you cannot have another one defined.
So, leaving the check_nt command in the commands.cfg file is needed.
The service name is in the txt file so that looks OK.
Can you post the nagios.cfg file here so we can view it's settings?
correct. I took the old commands.cfg file and copied them into the new one. and nagios3 -v nagios.cfg and found the errors and commented out as needed. The check_nt command is commented out in the commands.cfg file because it's a duplicate when i check the config.
Nagios Core 3.5.1
Copyright (c) 2009-2011 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 08-30-2013
License: GPL
tgriep wrote:The nagios.cfg file looks stock so that is good.
I would edit all of the commands and remove the extra $ as it looks like it is getting truncated.
Change all of then to just \$ where needed and replace the $"$" for that one service.
I have already done that before and it did not work, however executing it from the terminal like so(below) and it brings back data.