UNKNOWN: Error occured while running the plugin
-
- Posts: 74
- Joined: Thu Jan 25, 2018 1:13 am
UNKNOWN: Error occured while running the plugin
Hi,
I am having an issue with one of the check where it throws UNKNOWN error. I tried to google it but couldn't able to find much help. I have attached my hosts/service.cfg file if you would like to see my setup.
I am having an issue with one of the check where it throws UNKNOWN error. I tried to google it but couldn't able to find much help. I have attached my hosts/service.cfg file if you would like to see my setup.
- Attachments
-
- eft_hosts.cfg
- (18.02 KiB) Downloaded 296 times
-
- Posts: 74
- Joined: Thu Jan 25, 2018 1:13 am
Re: UNKNOWN: Error occured while running the plugin
Attached hosts/service/hostgroup.cfg
- Attachments
-
- eft_hosts.cfg
- (18.02 KiB) Downloaded 296 times
-
- eft-services.cfg
- (30.25 KiB) Downloaded 284 times
-
- hostgroups.cfg
- (3.88 KiB) Downloaded 280 times
-
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: UNKNOWN: Error occured while running the plugin
Hello, @shamrozkadiwal. Let's try running these commands from the command line(please show me the output):
su - nagios
/usr/local/nagios/libexec/check_ncpa.py -H 10.180.60.26 -P 1248 -t $USER14$ -M cpu/percent -q aggregate=avg -w 90
/usr/local/nagios/libexec/check_ncpa.py -H 10.180.60.26 -P 1248 -t $USER14$ -M cpu/percent -q aggregate=avg -w 90 -v
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
- Posts: 74
- Joined: Thu Jan 25, 2018 1:13 am
Re: UNKNOWN: Error occured while running the plugin
@npolovenko, my check_ncpa script is in different location.
Code: Select all
[root@ams900 plugins]# /usr/lib64/nagios/plugins/check_ncpa.py -H 10.180.60.26 -P 1248 -t $USER14$ -M cpu/percent -q aggregate=avg -w 90
UNKNOWN: Error occurred while running the plugin. Use the verbose flag for more details.
[root@ams900 plugins]#
[root@ams900 plugins]# /usr/lib64/nagios/plugins/check_ncpa.py -H 10.180.60.26 -P 1248 -t $USER14$ -M cpu/percent -q aggregate=avg -w 90 -v
Connecting to: https://10.180.60.26:1248/api/cpu/percent/?token=%24&warning=90&check=1&aggregate=avg
An error occurred:<urlopen error [Errno 1] _ssl.c:492: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol>
[root@ams900 plugins]#
Re: UNKNOWN: Error occured while running the plugin
What is the output of these commands?
- Make sure to change YOURTOKEN in the command below
Additionally, please attach your ncpa.cfg from 10.180.60.26.
- Make sure to change YOURTOKEN in the command below
Code: Select all
/usr/lib64/nagios/plugins/check_ncpa.py -V
/usr/lib64/nagios/plugins/check_ncpa.py -H 10.180.60.26 -P 1248 -t 'YOURTOKEN' -l -M 'system/agent_version' -v -D
-
- Posts: 74
- Joined: Thu Jan 25, 2018 1:13 am
Re: UNKNOWN: Error occured while running the plugin
@ssax, I have removed my token.
[root@ams900 private]# /usr/lib64/nagios/plugins/check_ncpa.py -V
check_ncpa.py, Version 1.1.1
[root@ams900 private]#
[root@ams900 private]# /usr/lib64/nagios/plugins/check_ncpa.py -H 10.180.60.26 -P 1248 -t 'MYTOKEN' -l -M 'system/agent_version' -v -D
Connecting to: https://10.180.60.26:1248/api/system/ag ... 1%40%23%24
The stack trace:Traceback (most recent call last):
File "/usr/lib64/nagios/plugins/check_ncpa.py", line 272, in main
info_json = get_json(options)
File "/usr/lib64/nagios/plugins/check_ncpa.py", line 221, in get_json
ret = urlopen(url)
File "/usr/lib64/python2.6/urllib2.py", line 126, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib64/python2.6/urllib2.py", line 391, in open
response = self._open(req, data)
File "/usr/lib64/python2.6/urllib2.py", line 409, in _open
'_open', req)
File "/usr/lib64/python2.6/urllib2.py", line 369, in _call_chain
result = func(*args)
File "/usr/lib64/python2.6/urllib2.py", line 1198, in https_open
return self.do_open(httplib.HTTPSConnection, req)
File "/usr/lib64/python2.6/urllib2.py", line 1165, in do_open
raise URLError(err)
URLError: <urlopen error [Errno 1] _ssl.c:492: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol>
[root@ams900 private]#
[root@ams900 private]# /usr/lib64/nagios/plugins/check_ncpa.py -V
check_ncpa.py, Version 1.1.1
[root@ams900 private]#
[root@ams900 private]# /usr/lib64/nagios/plugins/check_ncpa.py -H 10.180.60.26 -P 1248 -t 'MYTOKEN' -l -M 'system/agent_version' -v -D
Connecting to: https://10.180.60.26:1248/api/system/ag ... 1%40%23%24
The stack trace:Traceback (most recent call last):
File "/usr/lib64/nagios/plugins/check_ncpa.py", line 272, in main
info_json = get_json(options)
File "/usr/lib64/nagios/plugins/check_ncpa.py", line 221, in get_json
ret = urlopen(url)
File "/usr/lib64/python2.6/urllib2.py", line 126, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib64/python2.6/urllib2.py", line 391, in open
response = self._open(req, data)
File "/usr/lib64/python2.6/urllib2.py", line 409, in _open
'_open', req)
File "/usr/lib64/python2.6/urllib2.py", line 369, in _call_chain
result = func(*args)
File "/usr/lib64/python2.6/urllib2.py", line 1198, in https_open
return self.do_open(httplib.HTTPSConnection, req)
File "/usr/lib64/python2.6/urllib2.py", line 1165, in do_open
raise URLError(err)
URLError: <urlopen error [Errno 1] _ssl.c:492: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol>
[root@ams900 private]#
Re: UNKNOWN: Error occured while running the plugin
Please attach a sanitized copy of your ncpa.cfg file from the remote host for review.
Additionally, what version of the agent do you have installed on the remote system?
Additionally, what version of the agent do you have installed on the remote system?
-
- Posts: 74
- Joined: Thu Jan 25, 2018 1:13 am
Re: UNKNOWN: Error occured while running the plugin
I have attached ncps.cfg file and also we are using nsclient. Sorry I couldn't able to find out the Nsclient version
- Attachments
-
- ncpa.cfg
- (6.3 KiB) Downloaded 306 times
-
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: UNKNOWN: Error occured while running the plugin
@shamrozkadiwal, On the windows server type the following link in the web browser.
Once you're there click on the API menu, then API Endpoint -> system, agent version. This should give you the agent version of the NCPA agent.
From there please try switching the API endpoint to CPU, Disk and Memory and see if it shows any data.
Also, please upload all ncpa logs from the following directory:
*Where 192.168.3.145 is the IP address of the Windows server.
Once you're there click on the API menu, then API Endpoint -> system, agent version. This should give you the agent version of the NCPA agent.
From there please try switching the API endpoint to CPU, Disk and Memory and see if it shows any data.
Also, please upload all ncpa logs from the following directory:
C:\Program Files (x86)\Nagios\NCPA\var\log
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
- Posts: 74
- Joined: Thu Jan 25, 2018 1:13 am
Re: UNKNOWN: Error occured while running the plugin
I couldn't able to find API menu, then API Endpoint -> system, agent
Also, all the log files are empty. I made sure the NCPA servic is running.
Also, all the log files are empty. I made sure the NCPA servic is running.