NCPA question - cannot get to work
Posted: Mon Oct 12, 2020 6:18 pm
Hello Nagios and good day to you, thanks in advance,
I've been struggling for a bout a week now. tried almost everything I know possible.
It is time to plea for a knowledgeable guru for help.
I've been trying to instrument a Nagios Plugin, the Check_logfiles plugin.
ok, now, I've got it working on Windows box. it works like a dream. it is working as expected.
however, this setup is all standalone on the windows machine.
I want to be able to either have Nagios Core issue the invokation on plugin OR somehow get statistics back to Nagios.
The Windows box ONLY has the NCPA agent on it. So, I'm trying to invoke it with NCPA call.
TESTING ON THE NAGIOS SERVER
1. check_ncpa.py -v -H 10.14.28.11 -t 'gold3726' -P 5693 -M 'plugins/check_logfiles.exe' -q "args=-f C:\\NagiosAncillaryScrips\\check_logfiles.cfg"
Connecting to: https://10.14.28.11:5693/api/plugins/ch ... gfiles.cfg
An error occurred:<urlopen error [Errno 104] Connection reset by peer>
2. check_ncpa.py -v -H 10.14.28.11 -t 'gold3726' -P 5693 -M 'plugins/check_logfiles.exe' -a '-f "C:\\NagiosAncillaryScrips\\check_logfiles.cfg"'
Connecting to: https://10.14.28.11:5693/api/plugins/ch ... 26&check=1
An error occurred:<urlopen error [Errno 104] Connection reset by peer>
The documentation on this plugin shows it communicating with Nagios with NRPE agent.
however, I do not have the NRPE agent on this box. hoping I don't need to intall another agent, ...
Also, communicates with $postscript = 'send_nsca'; AND I DO NOT have this NSCA script on the box.
can you tell me if what I'm doing is doable? why am I getting the 104 Error? do I need to install NRPE? where do I get this 'send_nsca' script. I can't find it. how can I get this talking to Nagios?
THANK YOU!!!
I've been struggling for a bout a week now. tried almost everything I know possible.
It is time to plea for a knowledgeable guru for help.
I've been trying to instrument a Nagios Plugin, the Check_logfiles plugin.
ok, now, I've got it working on Windows box. it works like a dream. it is working as expected.
however, this setup is all standalone on the windows machine.
I want to be able to either have Nagios Core issue the invokation on plugin OR somehow get statistics back to Nagios.
The Windows box ONLY has the NCPA agent on it. So, I'm trying to invoke it with NCPA call.
TESTING ON THE NAGIOS SERVER
1. check_ncpa.py -v -H 10.14.28.11 -t 'gold3726' -P 5693 -M 'plugins/check_logfiles.exe' -q "args=-f C:\\NagiosAncillaryScrips\\check_logfiles.cfg"
Connecting to: https://10.14.28.11:5693/api/plugins/ch ... gfiles.cfg
An error occurred:<urlopen error [Errno 104] Connection reset by peer>
2. check_ncpa.py -v -H 10.14.28.11 -t 'gold3726' -P 5693 -M 'plugins/check_logfiles.exe' -a '-f "C:\\NagiosAncillaryScrips\\check_logfiles.cfg"'
Connecting to: https://10.14.28.11:5693/api/plugins/ch ... 26&check=1
An error occurred:<urlopen error [Errno 104] Connection reset by peer>
The documentation on this plugin shows it communicating with Nagios with NRPE agent.
however, I do not have the NRPE agent on this box. hoping I don't need to intall another agent, ...
Also, communicates with $postscript = 'send_nsca'; AND I DO NOT have this NSCA script on the box.
can you tell me if what I'm doing is doable? why am I getting the 104 Error? do I need to install NRPE? where do I get this 'send_nsca' script. I can't find it. how can I get this talking to Nagios?
THANK YOU!!!