Page 1 of 1
Check Job status script error
Posted: Thu Jan 11, 2018 3:26 am
by keerthiprashanths
Hello Team,
Greetings.
Plugin we are using check_nrpe for the above job status
Status is throwing as unknown.
But when we try to execute the command via command line it is throwing an error as "Failed to execute check_log 2: The system cannot find the file specified."
Checked with tech team and found that the path is also correct as mentioned.
Please suggest what needs to be done on the same. Sample screenshot for your ref.
Re: Check Job status script error
Posted: Thu Jan 11, 2018 1:42 pm
by npolovenko
Hello,
@keerthiprashanths . Are you using NRPE under NSClient on the windows computer? If so, please upload your nsclient.ini file here. You may need to hardcode the path to the log file inside the command definition.
Re: Check Job status script error
Posted: Fri Jan 12, 2018 8:20 am
by keerthiprashanths
Hello npolovenko,
PFA nsclient.ini file.
Let us know in case if any more details are required.
Re: Check Job status script error
Posted: Fri Jan 12, 2018 3:02 pm
by npolovenko
@keerthiprashanths, What version of NSClient are you using? I've tried replicating the command but it seems like my version of NSClient can't recognize the
check_log command. I've found this reference but it actually requires some definitions inside the ini file in order for this check to work.
http://docs.nsclient.org/0.4.2/referenc ... gFile.html
Also, can you look in the nsclient folder to see if you have a file called nsc.ini? And if you do, please upload it.
Re: Check Job status script error
Posted: Mon Jan 15, 2018 3:26 am
by keerthiprashanths
Hello,
Checked the nsclient version and we are using 0.4.4.19. With that we did not found any nsc.ini inside the nsclient folder.
Please suggest what needs to be done next.
Re: Check Job status script error
Posted: Mon Jan 15, 2018 4:29 pm
by dwhitfield
Is this check_log something you wrote? In either case, cam you link to the script or some documentation about it? I'm not finding anything about check_log in NSClient other than the check_logfile to which we already linked.
https://exchange.nagios.org/directory/P ... pl/details is known to work on windows. The maintainer of that plugin is pretty active and suggests going to him with issues from the plugin at
[email protected]. You can also submit issues to him
https://github.com/pmcaulay/nagios-plugins/issues
Re: Check Job status script error
Posted: Fri Jan 19, 2018 3:14 am
by keerthiprashanths
Is there any other way where we can get this issue fixed or is it possible for scheduling a webex session for this issue
Re: Check Job status script error
Posted: Fri Jan 19, 2018 3:32 pm
by npolovenko
@keerthiprashanths, I was looking through the nsclient.ini file that you provided but I haven't found any check_log command definitions.That makes me suspect that this ini file might be from a different server. Can you please verify that? Also, it would be helpful to take a look at the nsclient.log file. It is also located on the remote server, in the same folder as nsclient.ini.