Check Job status script error

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
keerthiprashanths
Posts: 50
Joined: Mon Jul 24, 2017 8:44 am

Check Job status script error

Post 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.
You do not have the required permissions to view the files attached to this post.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Check Job status script error

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
keerthiprashanths
Posts: 50
Joined: Mon Jul 24, 2017 8:44 am

Re: Check Job status script error

Post by keerthiprashanths »

Hello npolovenko,

PFA nsclient.ini file.

Let us know in case if any more details are required.
You do not have the required permissions to view the files attached to this post.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Check Job status script error

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
keerthiprashanths
Posts: 50
Joined: Mon Jul 24, 2017 8:44 am

Re: Check Job status script error

Post 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.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Check Job status script error

Post 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
keerthiprashanths
Posts: 50
Joined: Mon Jul 24, 2017 8:44 am

Re: Check Job status script error

Post 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
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Check Job status script error

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked