Search found 11 matches

by karl
Tue Nov 07, 2017 11:04 am
Forum: Open Source Nagios Projects
Topic: Monitored host not displaying
Replies: 24
Views: 12866

Re: Monitored host not displaying

Image
by karl
Tue Nov 07, 2017 3:38 am
Forum: Open Source Nagios Projects
Topic: Monitored host not displaying
Replies: 24
Views: 12866

Re: Monitored host not displaying

Ok so when I run that it gives me the list of options and then at the bottom says:

Code: Select all

check_ncpa.py: error: Hostname is required for use.
by karl
Mon Nov 06, 2017 4:27 am
Forum: Open Source Nagios Projects
Topic: Monitored host not displaying
Replies: 24
Views: 12866

Re: Monitored host not displaying

Hi, sorry i've had a few days off work.

I have changed line 282 to say 'as e' i've now got

UNKNOWN: Error occurred while running the plugin. Use the verbose flag for more details

Image
by karl
Tue Oct 31, 2017 4:49 am
Forum: Open Source Nagios Projects
Topic: Monitored host not displaying
Replies: 24
Views: 12866

Re: Monitored host not displaying

Ok so I found that the path to python was

Code: Select all

/usr/bin/python3.5m
I changed it in the check_ncpa.py file and tried to run it

i'm now getting

Code: Select all

File "./check_ncpa.py", line 282
except Exception, e:
                ^

SyntaxError: invalid syntax
by karl
Fri Oct 27, 2017 5:04 am
Forum: Open Source Nagios Projects
Topic: Monitored host not displaying
Replies: 24
Views: 12866

Re: Monitored host not displaying

when I run

Code: Select all

./check_ncpa.py
it tells me

/usr/bin/env: 'python' : No such file or directory
by karl
Wed Oct 25, 2017 2:26 am
Forum: Open Source Nagios Projects
Topic: Monitored host not displaying
Replies: 24
Views: 12866

Re: Monitored host not displaying

Hi, I'm back from my holiday and have tried your suggestion however i'm still getting (Return code of 127 is out of bounds - plugin may be missing : (No output on stdout) stderr: /usr/bin/env: ‘python’: No such file or directory)) The check_ncpa.py file was already there and had all of what you sent...
by karl
Wed Oct 18, 2017 4:36 am
Forum: Open Source Nagios Projects
Topic: Monitored host not displaying
Replies: 24
Views: 12866

Re: Monitored host not displaying

Hiya, Thanks for all your help. I've got the commands file uploaded and the service restarted with no errors. I have the NCPA installed on a windows server and that's now displaying under hosts which is great! Only problem is it's displaying a new error now: (Return code of 127 is out of bounds - pl...
by karl
Fri Oct 13, 2017 9:50 am
Forum: Open Source Nagios Projects
Topic: Monitored host not displaying
Replies: 24
Views: 12866

Re: Monitored host not displaying

Hiya,

Added as suggested.

When I tried to restart I got this:

Image

So I ran

Code: Select all

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
again and got this:

Image
by karl
Fri Oct 13, 2017 2:54 am
Forum: Open Source Nagios Projects
Topic: Monitored host not displaying
Replies: 24
Views: 12866

Re: Monitored host not displaying

Hiya, I can't seem to copy and paste so instead I've taken screenshots I hope it comes out OK. For security I've blanked out any IP addresses or passwords. The forum will only allow me to upload a max of 20 URL's and unfortunately there are a few more than that so instead I have uploaded them to my ...
by karl
Thu Oct 12, 2017 3:21 am
Forum: Open Source Nagios Projects
Topic: Monitored host not displaying
Replies: 24
Views: 12866

Re: Monitored host not displaying

Morning, Thanks for the info. I have followed your steps and when I try to start the nagios service again I get this error saying that it failed to start the service with this reason: Check your configuration file(s) to ensure that they contain valid directives and data definitions. If you are upgra...