File download Using NRPE
-
harsha.s.aryan
- Posts: 52
- Joined: Fri Nov 13, 2015 9:05 am
File download Using NRPE
Hi,
is there any plugin where i can download a file from every nagios clients (NRPE).
Harsha S
is there any plugin where i can download a file from every nagios clients (NRPE).
Harsha S
Regards,
Harsha
Harsha
Re: File download Using NRPE
Not really. NRPE is a protocol that allows Nagios to request information from an NRPE agent running on a remote server, and return a Nagios plugin result. Those results are typically short, one line output designed to be used in a page or SMS text message for alerts. They are not files. Also, Nagios is a monitoring tool, not a file management tool, so having it download a file would take time, and Nagios may prematurely terminate the connection because it takes too much time - or at least, more time than it thinks that a service check should take.
So the bottom line is that if you are looking to transfer files, Nagios is not a good tool for that, and NRPE is just a communications protocol, not a file transfer mechanism.
So the bottom line is that if you are looking to transfer files, Nagios is not a good tool for that, and NRPE is just a communications protocol, not a file transfer mechanism.
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
-
harsha.s.aryan
- Posts: 52
- Joined: Fri Nov 13, 2015 9:05 am
Re: File download Using NRPE
this is not exactly for file transfer
i have a script and the output is more than 10 lines but in nrpe output is not coming completely.
is there any way to get the output of the complete file
i have a script and the output is more than 10 lines but in nrpe output is not coming completely.
is there any way to get the output of the complete file
Regards,
Harsha
Harsha
Re: File download Using NRPE
My first question would be, do you really need to capture all that output? My second question would be, can you use a different plugin?
NRPE has a limitation on the number of characters it will send back, so it's likely that you will not be able to do what you need with NRPE. Remember, Nagios plugin outputs are supposed to be short and concise.
NRPE has a limitation on the number of characters it will send back, so it's likely that you will not be able to do what you need with NRPE. Remember, Nagios plugin outputs are supposed to be short and concise.
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
-
harsha.s.aryan
- Posts: 52
- Joined: Fri Nov 13, 2015 9:05 am
Re: File download Using NRPE
yes i want to capture complete the output.
is there any other way where i can capture the complete output. or what is the max output NRPE can provide
is there any other way where i can capture the complete output. or what is the max output NRPE can provide
Regards,
Harsha
Harsha
Re: File download Using NRPE
Can you share what the plugin does and what the output is supposed to be? This might help us better understand what you are trying to do.
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
-
harsha.s.aryan
- Posts: 52
- Joined: Fri Nov 13, 2015 9:05 am
Re: File download Using NRPE
its not a plugin,
its a script which will check all users in linux and give the status of all users.
if needed i will share the script
its a script which will check all users in linux and give the status of all users.
if needed i will share the script
Regards,
Harsha
Harsha
Re: File download Using NRPE
Outputting more than 10 lines shouldn't be an issue...i have a script and the output is more than 10 lines but in nrpe output is not coming completely.
is there any way to get the output of the complete file
On the client:
Code: Select all
command[catfile]=cat /tmp/testCode: Select all
[root@localhost libexec]# ./check_nrpe -H x.x.x.x -c catfile
This is line 1
This is line 2
This is line 3
This is line 4
This is line 5
This is line 6
This is line 7
This is line 8
This is line 9
This is line 10
This is line 11
[root@localhost libexec]#Be sure to check out our Knowledgebase for helpful articles and solutions!
-
harsha.s.aryan
- Posts: 52
- Joined: Fri Nov 13, 2015 9:05 am
Re: File download Using NRPE
I believe we are limited to 1024 characters right now. We have a version coming out that should resolve this in the future. If you're interested, check it out here: https://github.com/NagiosEnterprises/nr ... pe-3.0-RC2
Please note that the amount of support we can provide for a RC version is very limited, and if you believe you find a bug/issue, you should post it on the GitHub page.
Please note that the amount of support we can provide for a RC version is very limited, and if you believe you find a bug/issue, you should post it on the GitHub page.
Former Nagios Employee.
me.
me.