[Nagios-users] nrpe errors when too many hosts
hi, We have nagios server that is working for long time. We note recently when we add new hosts, all NRPE checks fail with: Return code of 127 is out of bounds - plugin may be missing However, the plugin is there and we know it run fine from command line. Only when some new hosts added this happens. When you take new hosts out, errors go away. We don't have too many hosts in our file, only about 250. This problem is identical to the one find here: http://readlist.com/lists/lists.sourceforge.net/nagios-users/5/29272.html Alex -- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] nrpe errors when too many hosts
The error itself just means that Nagios can't find the plugin that you've told it to use. Every time I've ever encountered this error it boils down to something very simple; normally a typo or a mis-pasted file path. When you added the hosts did you also add the service, or were you using a service that has already been defined and used previously? Too, did you make any changes to your check definitions at all? On Thu, Jun 20, 2013 at 3:13 AM, Aleksandr Miroslav alexmiros...@gmail.comwrote: hi, We have nagios server that is working for long time. We note recently when we add new hosts, all NRPE checks fail with: Return code of 127 is out of bounds - plugin may be missing However, the plugin is there and we know it run fine from command line. Only when some new hosts added this happens. When you take new hosts out, errors go away. We don't have too many hosts in our file, only about 250. This problem is identical to the one find here: http://readlist.com/lists/lists.sourceforge.net/nagios-users/5/29272.html Alex -- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] nrpe errors when too many hosts
Do you have servicegroups defined? How many services does it show in the largest service group? On Thu, Jun 20, 2013 at 12:13 AM, Aleksandr Miroslav alexmiros...@gmail.com wrote: hi, We have nagios server that is working for long time. We note recently when we add new hosts, all NRPE checks fail with: Return code of 127 is out of bounds - plugin may be missing However, the plugin is there and we know it run fine from command line. Only when some new hosts added this happens. When you take new hosts out, errors go away. We don't have too many hosts in our file, only about 250. This problem is identical to the one find here: http://readlist.com/lists/lists.sourceforge.net/nagios-users/5/29272.html Alex -- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] NRPE Version 2.14
Hi, Have submitted a bug report for NRPE Version 2.14 http://tracker.nagios.org/view.php?id=431 Let me know if anyone needs additional information. Regards, Kaushal -- Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester Wave(TM): Endpoint Security, Q1 2013 and remains a good choice in the endpoint security space. For insight on selecting the right partner to tackle endpoint security challenges, access the full report. http://p.sf.net/sfu/symantec-dev2dev___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] NRPE: Unable to read output; but works when run under strace ...
I would try to run a basic script which logs the nrpe environment into a file. it will make sure what is available to you and what not. test if: there are environment vars.. there is a STDOUT\IN\ERR available etc.. #!/usr/bin/env ruby f = File.open(/tmp/nrpetest.log,a) f.sync = true f.puts ENVIROMENTAR VARS\n=== ENV.each {|k,p| f.puts #{k} = #{p}} f.puts STD DATA\n== f.puts stdout exists?: #{$stdout} if $stdout f.puts stdout is tty?: #{$stdout.isatty} begin $stdout.write_nonblock 0 f.puts Wrote 0 to stdout rescue = e f.puts didnt wrote to stdout f.puts e.message f.puts e.backtrace.inspect end end modify the above to make sure what is the cause of this problem. you can also try to access stdout\err Regards, Eliezer On 1/8/2013 3:53 PM, Florian Ernst wrote: Hello all, following up to myself ... On Mon, Oct 08, 2012 at 08:31:21PM +0200, Florian Ernst wrote: [...] However, it got weirder: if I strace the nrpe process, everything works as desired: [...] I found no further hints in the strace log, but this led me to assume that there is some NRPE weirdness involved, and thus I'm writing here instead of further digging through the system. Any ideas? Lacking any further clue as to what peculiarity might be responsible for this weird behavior, I decided to simply let the nrpe process permanently run under strace like strace -f -q -e none -o /dev/null ... The performance impact is minimal, and I finally get check results. Not really a solution, but it'll do. Cheers, Flo -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122412 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] NRPE: Unable to read output; but works when run under strace ...
Hello Eliezer, thanks for your reply. On Mon, Jan 14, 2013 at 05:41:28PM +0200, Eliezer Croitoru wrote: I would try to run a basic script which logs the nrpe environment into a file. it will make sure what is available to you and what not. test if: [...] modify the above to make sure what is the cause of this problem. you can also try to access stdout\err As mentioned in the original post¹ indeed the desired text output is generated [by the plugin] but somehow gets discarded [by NRPE]. However, if I strace the nrpe process, everything works as desired. The latter is what irks me. The plugins themselves are running fine. Cheers, Flo ¹ http://sourceforge.net/mailarchive/message.php?msg_id=29939293 -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122412 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] NRPE: Unable to read output; but works when run under strace ...
Hello all, following up to myself ... On Mon, Oct 08, 2012 at 08:31:21PM +0200, Florian Ernst wrote: [...] However, it got weirder: if I strace the nrpe process, everything works as desired: [...] I found no further hints in the strace log, but this led me to assume that there is some NRPE weirdness involved, and thus I'm writing here instead of further digging through the system. Any ideas? Lacking any further clue as to what peculiarity might be responsible for this weird behavior, I decided to simply let the nrpe process permanently run under strace like strace -f -q -e none -o /dev/null ... The performance impact is minimal, and I finally get check results. Not really a solution, but it'll do. Cheers, Flo -- Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS and more. Get SQL Server skills now (including 2012) with LearnDevNow - 200+ hours of step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only - learn more at: http://p.sf.net/sfu/learnmore_122512 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] NRPE: Unable to read output; but works when run under strace ...
Hello John / Tech Support, thanks for your reply, and sorry for the delay in answering. On Wed, Oct 10, 2012 at 03:10:13PM -0400, Tech Support wrote: Whenever I've had a problem with a plugin, and was trying to figure out what was going on, I've had 100% success using a little PERL script called capture-plugin.pl that I found. You can find it here: http://www.waggy.at/nagios/capture_plugin.htm. You should check it out. It's genius is in its simplicity. Well, it helps debugging plugin weirdness, but my problem lies with NRPE: a check doesn't work when TTBOMK it should work, and it actually works as desired when I strace the NRPE process. At the moment I see no plugin to debug, but thanks anyway. Cheers, Flo -- Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and get our sweet Data Nerd shirt too! http://p.sf.net/sfu/newrelic-dev2dev ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] NRPE: Unable to read output; but works when run under strace ...
Whenever I've had a problem with a plugin, and was trying to figure out what was going on, I've had 100% success using a little PERL script called capture-plugin.pl that I found. You can find it here: http://www.waggy.at/nagios/capture_plugin.htm. You should check it out. It's genius is in its simplicity. Regards; John -Original Message- From: Florian Ernst [mailto:florian_er...@gmx.net] Sent: Tuesday, October 09, 2012 2:14 PM To: Nagios Users List Subject: Re: [Nagios-users] NRPE: Unable to read output; but works when run under strace ... Hello Peter, thanks for your reply. However, as previously written, I know of the peculiarities that might arise once sudo joins the team, and in the issue at hand sudo is no more involved than being used for illustration purposes while the issue itself doesn't even remotely touch sudo at all. Furthermore, I never found any the necessity to deal with !requiretty on Debian, but indeed had to make use of this sudo option on RHEL. Still, no sudo involved in this case, sorry ... Cheers, Flo -- Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and get our sweet Data Nerd shirt too! http://p.sf.net/sfu/newrelic-dev2dev ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and get our sweet Data Nerd shirt too! http://p.sf.net/sfu/newrelic-dev2dev ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] NRPE: Unable to read output; but works when run under strace ...
Hello Peter, thanks for your reply. However, as previously written, I know of the peculiarities that might arise once sudo joins the team, and in the issue at hand sudo is no more involved than being used for illustration purposes while the issue itself doesn't even remotely touch sudo at all. Furthermore, I never found any the necessity to deal with !requiretty on Debian, but indeed had to make use of this sudo option on RHEL. Still, no sudo involved in this case, sorry ... Cheers, Flo -- Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and get our sweet Data Nerd shirt too! http://p.sf.net/sfu/newrelic-dev2dev ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] NRPE: Unable to read output; but works when run under strace ...
-Oorspronkelijk bericht- Van: Florian Ernst [mailto:florian_er...@gmx.net] Verzonden: dinsdag 9 oktober 2012 20:14 Aan: Nagios Users List Onderwerp: Re: [Nagios-users] NRPE: Unable to read output; but works when run under strace ... Hello Peter, thanks for your reply. However, as previously written, I know of the peculiarities that might arise once sudo joins the team, and in the issue at hand sudo is no more involved than being used for illustration purposes while the issue itself doesn't even remotely touch sudo at all. Furthermore, I never found any the necessity to deal with !requiretty on Debian, but indeed had to make use of this sudo option on RHEL. Still, no sudo involved in this case, sorry ... Cheers, Flo [Peter Kaagman] Sorry that did not help you. Guess I should have read you post more closely... Peter -- Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and get our sweet Data Nerd shirt too! http://p.sf.net/sfu/newrelic-dev2dev ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] NRPE: Unable to read output; but works when run under strace ...
Hello all, given a fairly well-running monitoring setup with about 18k services I thought I had understood the basics. However, the following leaves me clueless, and I hope I'm merely missing something obvious here: On an up-to-date Debian Squeeze (i386) OpenVZ guest I have established that my monitoring user can execute a given command: root@vserv08:/# sudo -u monitor -i /usr/lib/nagios/plugins/check_dummy 0 success; echo Exitcode: $? OK: success Exitcode: 0 So far, so good. Now entering NRPE, using a stripped-down config for illustrating the point: root@vserv08:/# grep -v -e '^$' -e '^#' /etc/nagios/nrpe.cfg debug=1 nrpe_user=monitor nrpe_group=monitor allowed_hosts=127.0.0.1 command[dummy]=/usr/lib/nagios/plugins/check_dummy 0 success root@vserv08:/# ps auxww | grep '[/]usr/sbin/nrpe' monitor 7215 0.0 0.1 3704 892 ?Ss 15:20 0:00 /usr/sbin/nrpe -c /etc/nagios/nrpe.cfg -d The process startup logged as follows: Oct 8 15:20:22 vserv08 nrpe[7214]: Added command[dummy]=/usr/lib/nagios/plugins/check_dummy 0 success Oct 8 15:20:22 vserv08 nrpe[7214]: INFO: SSL/TLS initialized. All network traffic will be encrypted. Oct 8 15:20:22 vserv08 nrpe[7215]: Starting up daemon Oct 8 15:20:22 vserv08 nrpe[7215]: Listening for connections on port 5666 Oct 8 15:20:22 vserv08 nrpe[7215]: Allowing connections from: 127.0.0.1 However, executing the dummy command won't work: root@vserv08:/# /usr/lib/nagios/plugins/check_nrpe -H 127.0.0.1 -c dummy NRPE: Unable to read output This has been logged as: Oct 8 15:21:36 vserv08 nrpe[7234]: Connection from 127.0.0.1 port 48791 Oct 8 15:21:36 vserv08 nrpe[7234]: Host address is in allowed_hosts Oct 8 15:21:36 vserv08 nrpe[7234]: Handling the connection... Oct 8 15:21:36 vserv08 nrpe[7234]: Host is asking for command 'dummy' to be run... Oct 8 15:21:36 vserv08 nrpe[7234]: Running command: /usr/lib/nagios/plugins/check_dummy 0 success Oct 8 15:21:36 vserv08 nrpe[7234]: Command completed with return code 2 and output: Oct 8 15:21:36 vserv08 nrpe[7234]: Return Code: 2, Output: NRPE: Unable to read output Oct 8 15:21:36 vserv08 nrpe[7234]: Connection from 127.0.0.1 closed. This strikes me as weird: nrpe tries to execute the defined command, but somehow no output shows up. I know of the peculiarities that might arise once sudo joins the team or when permissions aren't set appropriately, but this doesn't apply here. Playing around with the dummy command (substituting a shell script, sprinkling '| tee -a logfile' into the code, ...) revealed that indeed the desired text output is generated but somehow gets discarded. Perhaps the monitoring user or even the whole system is subtly broken, but given that there are ~400 similiarily setup systems (all using the same workflow/automatisms for deploying the monitoring infrastructure) I was starting to wonder how that might have happened ... However, it got weirder: if I strace the nrpe process, everything works as desired: root@vserv08:/# strace -f -o /root/log -p 7215 And then in another terminal: root@vserv08:/# /usr/lib/nagios/plugins/check_nrpe -H 127.0.0.1 -c dummy OK: success Logged as follows: Oct 8 15:21:57 vserv08 nrpe[7240]: Connection from 127.0.0.1 port 37275 Oct 8 15:21:57 vserv08 nrpe[7240]: Host address is in allowed_hosts Oct 8 15:21:57 vserv08 nrpe[7240]: Handling the connection... Oct 8 15:21:57 vserv08 nrpe[7240]: Host is asking for command 'dummy' to be run... Oct 8 15:21:57 vserv08 nrpe[7240]: Running command: /usr/lib/nagios/plugins/check_dummy 0 success Oct 8 15:21:57 vserv08 nrpe[7240]: Command completed with return code 0 and output: OK: success Oct 8 15:21:57 vserv08 nrpe[7240]: Return Code: 0, Output: OK: success Oct 8 15:21:57 vserv08 nrpe[7240]: Connection from 127.0.0.1 closed. I found no further hints in the strace log, but this led me to assume that there is some NRPE weirdness involved, and thus I'm writing here instead of further digging through the system. Any ideas? Cheers, Flo -- Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and get our sweet Data Nerd shirt too! http://p.sf.net/sfu/newrelic-dev2dev ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] NRPE: Unable to read output; but works when run under strace ...
Lol... had me going for a while to... for me the awnser was in the sudo config (visudo)... it required a user on a tty... I believe the directive was requiretty. Disable that line and you'll be fine I think. Peter Van: Florian Ernst [florian_er...@gmx.net] Verzonden: maandag 8 oktober 2012 20:31 To: nagios-users@lists.sourceforge.net Onderwerp: [Nagios-users] NRPE: Unable to read output; but works when run under strace ... Hello all, given a fairly well-running monitoring setup with about 18k services I thought I had understood the basics. However, the following leaves me clueless, and I hope I'm merely missing something obvious here: On an up-to-date Debian Squeeze (i386) OpenVZ guest I have established that my monitoring user can execute a given command: root@vserv08:/# sudo -u monitor -i /usr/lib/nagios/plugins/check_dummy 0 success; echo Exitcode: $? OK: success Exitcode: 0 So far, so good. Now entering NRPE, using a stripped-down config for illustrating the point: root@vserv08:/# grep -v -e '^$' -e '^#' /etc/nagios/nrpe.cfg debug=1 nrpe_user=monitor nrpe_group=monitor allowed_hosts=127.0.0.1 command[dummy]=/usr/lib/nagios/plugins/check_dummy 0 success root@vserv08:/# ps auxww | grep '[/]usr/sbin/nrpe' monitor 7215 0.0 0.1 3704 892 ?Ss 15:20 0:00 /usr/sbin/nrpe -c /etc/nagios/nrpe.cfg -d The process startup logged as follows: Oct 8 15:20:22 vserv08 nrpe[7214]: Added command[dummy]=/usr/lib/nagios/plugins/check_dummy 0 success Oct 8 15:20:22 vserv08 nrpe[7214]: INFO: SSL/TLS initialized. All network traffic will be encrypted. Oct 8 15:20:22 vserv08 nrpe[7215]: Starting up daemon Oct 8 15:20:22 vserv08 nrpe[7215]: Listening for connections on port 5666 Oct 8 15:20:22 vserv08 nrpe[7215]: Allowing connections from: 127.0.0.1 However, executing the dummy command won't work: root@vserv08:/# /usr/lib/nagios/plugins/check_nrpe -H 127.0.0.1 -c dummy NRPE: Unable to read output This has been logged as: Oct 8 15:21:36 vserv08 nrpe[7234]: Connection from 127.0.0.1 port 48791 Oct 8 15:21:36 vserv08 nrpe[7234]: Host address is in allowed_hosts Oct 8 15:21:36 vserv08 nrpe[7234]: Handling the connection... Oct 8 15:21:36 vserv08 nrpe[7234]: Host is asking for command 'dummy' to be run... Oct 8 15:21:36 vserv08 nrpe[7234]: Running command: /usr/lib/nagios/plugins/check_dummy 0 success Oct 8 15:21:36 vserv08 nrpe[7234]: Command completed with return code 2 and output: Oct 8 15:21:36 vserv08 nrpe[7234]: Return Code: 2, Output: NRPE: Unable to read output Oct 8 15:21:36 vserv08 nrpe[7234]: Connection from 127.0.0.1 closed. This strikes me as weird: nrpe tries to execute the defined command, but somehow no output shows up. I know of the peculiarities that might arise once sudo joins the team or when permissions aren't set appropriately, but this doesn't apply here. Playing around with the dummy command (substituting a shell script, sprinkling '| tee -a logfile' into the code, ...) revealed that indeed the desired text output is generated but somehow gets discarded. Perhaps the monitoring user or even the whole system is subtly broken, but given that there are ~400 similiarily setup systems (all using the same workflow/automatisms for deploying the monitoring infrastructure) I was starting to wonder how that might have happened ... However, it got weirder: if I strace the nrpe process, everything works as desired: root@vserv08:/# strace -f -o /root/log -p 7215 And then in another terminal: root@vserv08:/# /usr/lib/nagios/plugins/check_nrpe -H 127.0.0.1 -c dummy OK: success Logged as follows: Oct 8 15:21:57 vserv08 nrpe[7240]: Connection from 127.0.0.1 port 37275 Oct 8 15:21:57 vserv08 nrpe[7240]: Host address is in allowed_hosts Oct 8 15:21:57 vserv08 nrpe[7240]: Handling the connection... Oct 8 15:21:57 vserv08 nrpe[7240]: Host is asking for command 'dummy' to be run... Oct 8 15:21:57 vserv08 nrpe[7240]: Running command: /usr/lib/nagios/plugins/check_dummy 0 success Oct 8 15:21:57 vserv08 nrpe[7240]: Command completed with return code 0 and output: OK: success Oct 8 15:21:57 vserv08 nrpe[7240]: Return Code: 0, Output: OK: success Oct 8 15:21:57 vserv08 nrpe[7240]: Connection from 127.0.0.1 closed. I found no further hints in the strace log, but this led me to assume that there is some NRPE weirdness involved, and thus I'm writing here instead of further digging through the system. Any ideas? Cheers, Flo -- Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and get our sweet Data Nerd shirt too! http://p.sf.net/sfu/newrelic-dev2dev ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https
[Nagios-users] nrpe on ssl
Hi Members, I am new to this list and nagios. I want to know how i can verify that nagios nrpe_check connecting to nrpe daemon via ssl . Thanks Vishesh Kumar -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] nrpe on ssl
Vishesh, The current default for NRPE is to use SSL. Additionally, you can specify allowed_hosts and the NRPE will only accept connection from the allowed hosts. Scott Wilkerson Technical Support Specialist ___ Email: swilker...@nagios.com Web: www.nagios.com On 5/24/2012 8:43 AM, vishesh kumar wrote: Hi Members, I am new to this list and nagios. I want to know how i can verify that nagios nrpe_check connecting to nrpe daemon via ssl . Thanks Vishesh Kumar -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] nrpe on ssl
Hi Vishesh check_nrpe default run over SSL. If you want run check_nrpe without SSL, you should add options "-n". example: check_nrpe -n -H hostname Best Regards On 05/24/2012 03:43 PM, vishesh kumar wrote: Hi Members, I am new to this list and nagios. I want to know how i can verify that nagios nrpe_check connecting to nrpe daemon via ssl . Thanks Vishesh Kumar -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] nrpe on ssl
You can use tcpdump and wireshark to check the tcp and ssl handshake. Regards, Axel Am 24.05.2012 15:43, schrieb vishesh kumar: Hi Members, I am new to this list and nagios. I want to know how i can verify that nagios nrpe_check connecting to nrpe daemon via ssl . Thanks Vishesh Kumar -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] NRPE and IPv6
Hi, Am 26.02.2012 14:45, schrieb Jens Link: ... problem with NRPE. It seems, that nrpe does not support IPv6. True, at least for the nagios version of nrpe. Take a look at the nrpe version that comes with Icinga. I searched the Icinga website but I didn't find any useful, except the information Plugins are not distributed with Icinga. Do you have a link to the plugin you mentioned? Thomas -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] NRPE allowed_hosts directive
Hello, I am using NRPE version 2.7 and want to configured the allowed_hosts directive so that it can take a network address in the form network_address/netmask. However, it doesn't seem to support this, so I tried putting the IP addresses of all the hosts in the network. However, when I assign this variable to all the IP addresses (which is very long), I get this error: Feb 29 10:49:30 cn004 nrpe[22540]: No variable value specified in config file '/etc/nagios/nrpe.cfg' - Line 65 Feb 29 10:49:30 cn004 nrpe[22540]: Config file '/etc/nagios/nrpe.cfg' contained errors, aborting... When I truncate a number of IP addresses, it works fine. Do you know if the newer version of NRPE resolves this issue? Namely, can it accept network addresses (network_address/netmask) and/or take a long list of IP addresses? The former will be more convenient. Regards, -- Wadud Miah, High Performance Computing Systems Developer Research Computing Services, University of East Anglia Web: http://www.uea.ac.uk/~xca10fju/ Telephone: 01603 593856 Information Services -- -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] NRPE allowed_hosts directive
tried putting the IP addresses of all the hosts in the network. However, when I assign this variable to all the IP addresses (which is very long), U... Just how many Nagios servers do you HAVE? That configuration option is to list the Nagios servers that will be polling your NRPE daemon, not all the hosts in the network. Just wanted to make sure you're understanding the option correctly... Benny -- The problem with quotes on the internet is that it's very hard to verify their authenticity. -- Abraham Lincoln -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] NRPE and IPv6
Hi, Am 27.02.2012 02:44, schrieb Robert V. Bolton: There is no need to patch Nagios to support and IPv6 address variable. You can just use a custom object variable. In fact this is the preferred way to do it. http://nagios.sourceforge.net/docs/3_0/customobjectvars.html Thanks for the infos, but if I understand the mentioned docs right, the custom object variables will not solve my problem. My problem is, I define a host with address 2001:. and I got Invalid host name '2001:... from check_nrpe. I guess, whatever variable I take to handover the IPv6 to check_nrpe, check_nrpe will still be unable to use the IPv6 to access the host, right? Kind regards Thomas -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] NRPE and IPv6
Hi, I started monitoring my infrastructure with nagios. I just begun dealing with these thing and my first steps were promising, but now I am facing a very basic problem with NRPE. It seems, that nrpe does not support IPv6. I can't belief that, I suppose, I read the wrong docs and pages, in the mailarchive I found some informations about some inofficial patches, but this can't be all. Is that true, NRPE does not support IPv6? Kind Regards Thomas -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] NRPE and IPv6
Thomas Pries seirp.sam...@googlemail.com writes: Hi, I started monitoring my infrastructure with nagios. I just begun dealing with these thing and my first steps were promising, but now I am facing a very basic problem with NRPE. It seems, that nrpe does not support IPv6. True, at least for the nagios version of nrpe. Take a look at the nrpe version that comes with Icinga. Jens -- - | Foelderichstr. 40 | 13595 Berlin, Germany| +49-151-18721264 | | http://blog.quux.de | jabber: jensl...@guug.de | --- | - -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] NRPE and IPv6
Hi, Am 26. Februar 2012 14:45 schrieb Jens Link li...@quux.de: Thomas Pries seirp.sam...@googlemail.com writes: ... It seems, that nrpe does not support IPv6. True, at least for the nagios version of nrpe. Take a look at the nrpe version that comes with Icinga Ok, that is, what I am thinking about, why using nagios when Icinga provides the better tools. May be, Icinga is the more innovative approch. I am at the beginning and I don't have to take care of existing things. -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] NRPE and IPv6
Thomas Pries seirp.sam...@googlemail.com writes: Ok, that is, what I am thinking about, why using nagios when Icinga provides the better tools. May be, Icinga is the more innovative approch. I am at the beginning and I don't have to take care of existing things. Icinga also has an address6 type for hosts. This makes life in dual stacked environment quite easy. There is a patch for Nagios but I don't think it is in the regular code base. Jens -- - | Foelderichstr. 40 | 13595 Berlin, Germany| +49-151-18721264 | | http://blog.quux.de | jabber: jensl...@guug.de | --- | - -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] NRPE and IPv6
There is no need to patch Nagios to support and IPv6 address variable. You can just use a custom object variable. In fact this is the preferred way to do it. http://nagios.sourceforge.net/docs/3_0/customobjectvars.html -- Robert V. Bolton www.robertvbolton.com -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] NRPE/NSClient++ CheckCPU Error?
Just dropping this as a note for the mailing list . It turned out that using versions of perl modules older than the recommended ones was the cause of the problem - specifically Config::Inifiles However, the new version of Check WMI Plus (v1.50), works around the limitations of the older module. On 1/02/2012 5:45 PM, Robert Jackson wrote: Hi Matthew, Create new blank check_wmi_plus.ini (chown --R Nagios:Nagios check_wmi_plus.ini to allocate permissions). Ran the command as 'root' from a command prompt: /usr/lib/nagios/plugins/check_wmi_plus.pl -H wm-tsrv2 -u 'nagios-wmi' -p 'wmicheck' -m checkts -s sessions2003 --d -z Result output is: Command Line (v1.49): /usr/lib/nagios/plugins/check_wmi_plus.pl -H wm-tsrv2 -u nagios-wmi -p wmicheck -m checkts -s sessions2003 -d -z Conf File Dir: /usr/lib/nagios/plugins/edcint Loaded Conf File /usr/lib/nagios/plugins/edcint/check_wmi_plus.conf Opening Ini Files ... opening first ini file: /usr/lib/nagios/plugins/edcint/check_wmi_plus.d/check_wmi_plus.ini checking ini dir /usr/lib/nagios/plugins/edcint/check_wmi_plus.d, found 1 file(s) opening first ini file: check_wmi_plus.ini INIFILE and/or INIDIR are set but there were no ini file(s) or an error occurred trying to read them. A valid MODE and/or SUBMODE must be specified Typical Usage: -H HOSTNAME -u DOMAIN/USER -p PASSWORD -m MODE [-s SUBMODE] [-a ARG1 ] [-w WARN] [-c CRIT] Full Usage: -H HOSTNAME -u DOMAIN/USER -p PASSWORD -m MODE [-s SUBMODE] [-b BYTEFACTOR] [-w WARN] [-c CRIT] [-a ARG1 ] [-o ARG2] [-3 ARG3] [-4 ARG4] [-t TIMEOUT] [-y DELAY] [--namespace WMINAMESPACE] [--nodatamode] [--nodataexit NODATAEXIT] [--nodatastring NODATASTRING] [-d] [-z] [--inifile=INIFILE] [--inidir=INIDIR] [--inihelp] [--nokeepstate] [--keepexpiry KEXPIRY] [--keepid KID] [-v OSVERSION] [--help] [--itexthelp] Help as a Manpage: --help Help as Text: --itexthelp -- Smartmon System Monitoring http://www.smartmon.com.au www.smartmon.com.au http://www.smartmon.com.au -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] nrpe ssh handshake error
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Manish Kumar [07.02.2012 19:57]: The details of the issue is below:- *When nrpe service on HP-UX started using this command: * /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d *And from nagiosXI server:* [root@mmkndnagxi libexec]# ./check_nrpe -H 10.204.100.74 -n -p 5667 -c check_mem -a '-w 65 -c 75' CHECK_NRPE: Socket timeout after 10 seconds. Does the nrpe daemon listen on port 5667? On our installations, it listens on 5666. On linux, I can check this with the netstat command (on the server) or with nmap (from remote), but I don't know about HP-UX's means. *When nrpe service on HP-UX started using this command: * /usr/local/nagios/bin/nrpe -n -c /usr/local/nagios/etc/nrpe.cfg -d *And from nagiosXI server:* [root@mmkndnagxi libexec]# ./check_nrpe -H 10.204.100.73 -t 60 -p 5667 -c check_mem -a '-w 65 -c 75' CHECK_NRPE: Error - Could not complete SSL handshake. If you tell the server not to use SSL (with the -n option), you should tell it the client too (by using ./check_nrpe -H 10.204.100.73 -n -t ...). And... does the server listen to port 5667? ;-) HTH Werner -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.18 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk8ykNQACgkQk33Krq8b42NUigCdHLmXqE6W+Vayjc6xqK4RO43u Kk8AnRoDNcUE3/4CdIRRDrhOcTPoCnJZ =TTcA -END PGP SIGNATURE- -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] nrpe ssl handshake error
Hi, In nrpe.cfg only_from has my nagios server IP Address. What else can i check for this issue. - Check the equivalent of /var/log/messages on HP-UX. I think it is /usr/adm/syslog Grep on nrpe (error) messages if any. M. -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] nrpe ssh handshake error
Dear List, I am monitoring some HP-UX servers on which we have installed nrpe. It was working fine until from last few days it started giving SSL handshake error. I have checked nrpe.cfg and it is perfectly fine. The nrpe on HP-UX has been started from commandline on the HP-UX servers. I have tried the following options from my NagiosXI server. [root@nagxi libexec]# ./check_nrpe -H x.x.x.x -c check_disk -a '-w 10% -c 5% -p /home' CHECK_NRPE: Socket timeout after 10 seconds. [root@nagxi libexec]# ./check_nrpe -H x.x.x.x -t 90 -c check_disk -a '-w 10% -c 5% -p /home' CHECK_NRPE: Error - Could not complete SSL handshake. [root@nagxi libexec]# ./check_nrpe -H x.x.x.x -n -c check_disk -a '-w 10% -c 5% -p /home' CHECK_NRPE: Socket timeout after 10 seconds. [root@nagxi libexec]# ./check_nrpe -H x.x.x.x -n -t 20 -c check_disk -a '-w 10% -c 5% -p /home' CHECK_NRPE: Socket timeout after 20 seconds. Thanks, Manish Open Source Tools Team, IMS, Mahindra Satyam Mob: +919035435306 DISCLAIMER: This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated. -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] nrpe ssl handshake error
Hi List, The nrpe service on some of my HP-UX machines started giving ssl handshake error. I am able to telnet into port 5666 of these machines and i have restarted the nrpe service on these machines. What can be the issue ??? -- Thanks Manish Kumar http://in.linkedin.com/in/manishkumar85 -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] nrpe ssl handshake error
On our hosts the NRPE inetd/xinetd config has a line which says only_from = ip_address If this IP address list does not match you connecting server then it will not work and give you this error, always catches me out. Jamees From: Manish Kumar [mailto:manikuma...@gmail.com] Sent: 05 February 2012 17:19 To: nagios-users Subject: [Nagios-users] nrpe ssl handshake error Hi List, The nrpe service on some of my HP-UX machines started giving ssl handshake error. I am able to telnet into port 5666 of these machines and i have restarted the nrpe service on these machines. What can be the issue ??? -- Thanks Manish Kumar http://in.linkedin.com/in/manishkumar85 -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] NRPE/NSClient++ CheckCPU Error?
Why does the NSClient++ command CheckCPU always sit as a critical condition within Nagios? The command I have in place is: $USER1$/check_nrpe -H $HOSTADDRESS$ -c CheckCPU -a warn=$ARG1$ crit=$ARG2$ time=5m $ARG1$ is set to 80% and $ARG2$ is set to 95% (have tried with and without % symbol) The output display in Nagios is: CRITICAL: 5m: average load 15% critical Anyone have any ideas why this is generating a critical condition? Regards, Rab. = Robert Jackson Phone: +44 (0) 141 332 7999 IT Manager Fax: +44 (0) 141 331 2820 Walker Martyn Ltd 1 Park Circus PlaceEmail: r...@walkermartyn.co.uk mailto:r...@walkermartyn.co.uk Glasgow G3 6AH, Scotland Web: http://www.walkermartyn.co.uk http://www.walkermartyn.co.uk/ = The information in this internet E-mail is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is unauthorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of Walker Martyn Ltd or any of its affiliates. If you are not the intended recipient please contact administra...@walkermartyn.co.uk Walker Martyn Ltd, company number SC197533. Company is registered in Scotland and has its registered office at 1 Park Circus Place, Glasgow G3 6AH, UK. -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] NRPE/NSClient++ CheckCPU Error?
You might like to try www.edcint.co.nz/checkwmiplus On 30/01/2012 9:07 PM, Robert Jackson wrote: Why does the NSClient++ command CheckCPU always sit as a critical condition within Nagios? The command I have in place is: $USER1$/check_nrpe -H $HOSTADDRESS$ -c CheckCPU -a warn=$ARG1$ crit=$ARG2$ time=5m $ARG1$ is set to 80% and $ARG2$ is set to 95% (have tried with and without % symbol) The output display in Nagios is: CRITICAL: 5m: average load 15% critical Anyone have any ideas why this is generating a critical condition? Regards, Rab. = Robert Jackson Phone: +44 (0) 141 332 7999 IT Manager Fax: +44 (0) 141 331 2820 Walker Martyn Ltd 1 Park Circus PlaceEmail: r...@walkermartyn.co.uk mailto:r...@walkermartyn.co.uk Glasgow G3 6AH, Scotland Web: http://www.walkermartyn.co.uk http://www.walkermartyn.co.uk/ = -- Smartmon System Monitoring http://www.smartmon.com.au www.smartmon.com.au http://www.smartmon.com.au -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] NRPE/NSClient++ CheckCPU Error?
In the NSClient++ documentation, CheckCPU works with normal integers as thresholds (so no %-sign required). As an alternative, you can also check the CPU Utilization with the NSClientListener/check_nt plugin: http://nsclient.org/nscp/wiki/NSClientListener I use this way of checking the cpu loads/percentages for several hundreds of Windows servers and it works just fine. On Mon, Jan 30, 2012 at 12:06 PM, Matthew Jurgens nagiosus...@edcint.co.nzwrote: You might like to try www.edcint.co.nz/checkwmiplus On 30/01/2012 9:07 PM, Robert Jackson wrote: Why does the NSClient++ command CheckCPU always sit as a critical condition within Nagios? The command I have in place is: ** ** $USER1$/check_nrpe -H $HOSTADDRESS$ -c CheckCPU -a warn=$ARG1$ crit=$ARG2$ time=5m ** ** $ARG1$ is set to 80% and $ARG2$ is set to 95% (have tried with and without % symbol) ** ** The output display in Nagios is: CRITICAL: 5m: average load 15% critical ** ** Anyone have any ideas why this is generating a critical condition? ** ** Regards, Rab. = Robert Jackson Phone: +44 (0) 141 332 7999 IT Manager Fax: +44 (0) 141 331 2820 Walker Martyn Ltd 1 Park Circus PlaceEmail: r...@walkermartyn.co.uk Glasgow G3 6AH, Scotland Web: http://www.walkermartyn.co.uk = -- Smartmon System Monitoring http://www.smartmon.com.au www.smartmon.com.au -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] NRPE Woes Monitoring Windows Servers
Sorry about the lack of info: I've turned on log debugging and it produced the following: 2012-01-29 09:39:03: debug:NSClient++.cpp:1106: Injecting: CheckVersion: 2012-01-29 09:39:03: debug:NSClient++.cpp:1142: Injected Result: OK '0.3.8.75 2010-05-27' 2012-01-29 09:39:03: debug:NSClient++.cpp:1143: Injected Performance Result: '' 2012-01-29 09:39:15: error:modules\NRPEListener\NRPEListener.cpp:393: Request contained arguments (not currently allowed, check the allow_arguments option). 2012-01-29 09:39:15: error:modules\NRPEListener\NRPEListener.cpp:365: NRPEException: Request contained arguments (not currently allowed, check the allow_arguments option). In the above case the Nagios command issued was: ./check_nrpe -H server IP -p 5666 -c CheckUpTime -a MinWarn=1d MinCrit=12h I'm aiming to get to a point where for all Windows machines (Servers and PCs) I have a default check template of: NSClient++ version Uptime CPU Load Memory Usage Disk Usage (all partitions) Explorer process is running. In the NSC.ini file, the following have all been uncomment: FileLogger.dll CheckSystem.dll CheckDisk.dll NSClientListener.dll NRPEListener.dll SysTray.dll CheckEventLog.dll CheckHelpers.dll CheckWMI.dll ; ; Script to check external scripts and/or internal aliases. CheckExternalScripts.dll Also: allowed_hosts=Nagios Server IP Address Regards, Rab. = Robert Jackson Phone: +44 (0) 141 332 7999 IT Manager Fax: +44 (0) 141 331 2820 Walker Martyn Ltd 1 Park Circus PlaceEmail: r...@walkermartyn.co.uk Glasgow G3 6AH, Scotland Web: http://www.walkermartyn.co.uk = -Original Message- From: Jim Avery [mailto:j...@jimavery.me.uk] Sent: Saturday 28 January 2012 19:21 To: Nagios Users List Subject: Re: [Nagios-users] NRPE Woes Monitoring Windows Servers On 28 January 2012 15:52, Robert Jackson r...@walkermartyn.co.uk wrote: Hope someone can point me in the right direction. For any check_nrpe command (except CheckVersion) I get the following: CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages. I know this is a bit sketchy Yes, it is rather. , but I don't understand why the CheckVersion command would work and anything else won't. I'm assuming here that because I get the version of the NSClient++ returned without error, then NSClient++ is configured correctly? I have uncommented the necessary modules within the NSC.ini files on the Windows server. I've tried both CheckMEM and CheckUptime with no success. Can someone please help? Does the nsclient.log file contain anything interesting? There are umpteen ways to configure NSClient++ and run checks against it. What specific checks are you trying to run and how are you running them? -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null The information in this internet E-mail is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is unauthorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of Walker Martyn Ltd or any of its affiliates. If you are not the intended recipient please contact administra...@walkermartyn.co.uk Walker Martyn Ltd, company number SC197533. Company is registered in Scotland and has its registered office at 1 Park Circus Place, Glasgow G3 6AH, UK. -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v
Re: [Nagios-users] NRPE Woes Monitoring Windows Servers
Hi You need to check the following is uncommented allow_arguments and it should = 1 port=5666 if you are using NRPE port=12489 did you also add allowed_hosts= you need to add here the Nagios server IP address hope this helps Nick -Original Message- From: Robert Jackson [mailto:r...@walkermartyn.co.uk] Sent: Sunday, January 29, 2012 10:53 To: Nagios Users List Subject: Re: [Nagios-users] NRPE Woes Monitoring Windows Servers Sorry about the lack of info: I've turned on log debugging and it produced the following: 2012-01-29 09:39:03: debug:NSClient++.cpp:1106: Injecting: CheckVersion: 2012-01-29 09:39:03: debug:NSClient++.cpp:1142: Injected Result: OK '0.3.8.75 2010-05-27' 2012-01-29 09:39:03: debug:NSClient++.cpp:1143: Injected Performance Result: '' 2012-01-29 09:39:15: error:modules\NRPEListener\NRPEListener.cpp:393: Request contained arguments (not currently allowed, check the allow_arguments option). 2012-01-29 09:39:15: error:modules\NRPEListener\NRPEListener.cpp:365: NRPEException: Request contained arguments (not currently allowed, check the allow_arguments option). In the above case the Nagios command issued was: ./check_nrpe -H server IP -p 5666 -c CheckUpTime -a MinWarn=1d MinCrit=12h I'm aiming to get to a point where for all Windows machines (Servers and PCs) I have a default check template of: NSClient++ version Uptime CPU Load Memory Usage Disk Usage (all partitions) Explorer process is running. In the NSC.ini file, the following have all been uncomment: FileLogger.dll CheckSystem.dll CheckDisk.dll NSClientListener.dll NRPEListener.dll SysTray.dll CheckEventLog.dll CheckHelpers.dll CheckWMI.dll ; ; Script to check external scripts and/or internal aliases. CheckExternalScripts.dll Also: allowed_hosts=Nagios Server IP Address Regards, Rab. = Robert Jackson Phone: +44 (0) 141 332 7999 IT Manager Fax: +44 (0) 141 331 2820 Walker Martyn Ltd 1 Park Circus PlaceEmail: r...@walkermartyn.co.uk Glasgow G3 6AH, Scotland Web: http://www.walkermartyn.co.uk = -Original Message- From: Jim Avery [mailto:j...@jimavery.me.uk] Sent: Saturday 28 January 2012 19:21 To: Nagios Users List Subject: Re: [Nagios-users] NRPE Woes Monitoring Windows Servers On 28 January 2012 15:52, Robert Jackson r...@walkermartyn.co.uk wrote: Hope someone can point me in the right direction. For any check_nrpe command (except CheckVersion) I get the following: CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages. I know this is a bit sketchy Yes, it is rather. , but I don't understand why the CheckVersion command would work and anything else won't. I'm assuming here that because I get the version of the NSClient++ returned without error, then NSClient++ is configured correctly? I have uncommented the necessary modules within the NSC.ini files on the Windows server. I've tried both CheckMEM and CheckUptime with no success. Can someone please help? Does the nsclient.log file contain anything interesting? There are umpteen ways to configure NSClient++ and run checks against it. What specific checks are you trying to run and how are you running them? -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null The information in this internet E-mail is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is unauthorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of Walker Martyn Ltd or any of its affiliates. If you are not the intended recipient please contact administra...@walkermartyn.co.uk Walker Martyn Ltd, company number SC197533. Company is registered in Scotland and has its registered office at 1 Park Circus Place, Glasgow G3 6AH, UK. -- Try before you buy = See our experts in action! The most
[Nagios-users] NRPE Woes Monitoring Windows Servers
Hope someone can point me in the right direction. For any check_nrpe command (except CheckVersion) I get the following: CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages. I know this is a bit sketchy, but I don't understand why the CheckVersion command would work and anything else won't. I'm assuming here that because I get the version of the NSClient++ returned without error, then NSClient++ is configured correctly? I have uncommented the necessary modules within the NSC.ini files on the Windows server. I've tried both CheckMEM and CheckUptime with no success. Can someone please help? Thanks. The information in this internet E-mail is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is unauthorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of Walker Martyn Ltd or any of its affiliates. If you are not the intended recipient please contact administra...@walkermartyn.co.uk Walker Martyn Ltd, company number SC197533. Company is registered in Scotland and has its registered office at 1 Park Circus Place, Glasgow G3 6AH, UK. -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] NRPE Woes Monitoring Windows Servers
On 28 January 2012 15:52, Robert Jackson r...@walkermartyn.co.uk wrote: Hope someone can point me in the right direction. For any check_nrpe command (except CheckVersion) I get the following: CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages. I know this is a bit sketchy Yes, it is rather. , but I don’t understand why the CheckVersion command would work and anything else won’t. I’m assuming here that because I get the version of the NSClient++ returned without error, then NSClient++ is configured correctly? I have uncommented the necessary modules within the NSC.ini files on the Windows server. I’ve tried both CheckMEM and CheckUptime with no success. Can someone please help? Does the nsclient.log file contain anything interesting? There are umpteen ways to configure NSClient++ and run checks against it. What specific checks are you trying to run and how are you running them? -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] nrpe install and start on sunos joyent
Hello I have to run NRPE client on several sunos systems, but I don't know a lot that OS. I met also many problems during the compiling..solved using the package precompiled and installed with pkgin in nrpe. 1) I have prepared nrpe.xml 2) I started the service with svcadm enable nrpe, but in the error log I read: [ Oct 11 08:26:30 Enabled. ] [ Oct 11 08:26:30 Executing start method (/opt/local/sbin/nrpe -c /opt/local/etc/nagios/nrpe.cfg -d). ] [ Oct 11 08:26:30 svc.startd could not set context for method: ] chdir: No such file or directory [ Oct 11 08:26:30 Method start exited with status 96. ] Any ideas? Does anyone ever done this kind of installation ? Regards Marco -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2d-oct___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] nrpe install and start on sunos joyent
What version of Solaris are you running? From: Marco Borsani [mailto:m.bors...@it.net] Sent: Tuesday, October 11, 2011 03:37 AM To: NAGIOS nagios-users@lists.sourceforge.net Subject: [Nagios-users] nrpe install and start on sunos joyent Hello I have to run NRPE client on several sunos systems, but I don’t know a lot that OS. I met also many problems during the compiling..solved using the package precompiled and installed with “pkgin in nrpe…” 1) I have prepared nrpe.xml 2) I started the service with “svcadm enable nrpe”, but in the error log I read: [ Oct 11 08:26:30 Enabled. ] [ Oct 11 08:26:30 Executing start method (/opt/local/sbin/nrpe -c /opt/local/etc/nagios/nrpe.cfg -d). ] [ Oct 11 08:26:30 svc.startd could not set context for method: ] chdir: No such file or directory [ Oct 11 08:26:30 Method start exited with status 96. ] Any ideas? Does anyone ever done this kind of installation ? Regards Marco -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2d-oct___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Nrpe and Windows
Folks, Thanks for the suggestions. I'll give check_wmi_plus consideration. It's disappointing that nrpe is failing like this though. I'm only checking local disk usage using check_pdm.exe for the c: drive at the moment. We wouldn't be able to work with NRPE like this as once we have production systems up and running nrpe (or whatever we decide to use) needs to reliable. Regards, Deborah -Original Message- From: Mark Elsen [mailto:mark.el...@gmail.com] Sent: 22 September 2011 15:51 To: Nagios Users List Subject: Re: [Nagios-users] Nrpe and Windows Folks, Nagios 3.2.0 is running on SLES 10 SP 1 NRPE running on Windows It all seems to work fine for a while (10 mins) and then I start seeing socket timeout errors. The only way to fix this is to restart the nrpe service on the node that is being monitored. Has anyone else had this this happen and if so, what was the solution to this sort of problem ? The problem is not 'standard' so to speak; check your windows server eventlog (e.g,)( Is nrpe the best way to monitor windows boxes or should I consider other options out there ? You may consider agent less monitoring, I have been using it for a while, google on check_wmi_plus M. -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null Complimentary Events and Webinars on In-Memory, Massively Parallel Processing and 'In the Cloud' - for more information click here This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient, please delete this e-mail immediately. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio endeavours to prevent the transmission of viruses via e-mail, we cannot guarantee that any e-mail or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused -- All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2dcopy2 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Nrpe and Windows
Hello, Which version of NRPE are you using? NSClient++ is a fairly stable NRPE/NSCA/* client/server for Windows and Linux... // Michael Medin Deborah Martin skrev 2011-09-23 14:19: Folks, Thanks for the suggestions. I'll give check_wmi_plus consideration. It's disappointing that nrpe is failing like this though. I'm only checking local disk usage using check_pdm.exe for the c: drive at the moment. We wouldn't be able to work with NRPE like this as once we have production systems up and running nrpe (or whatever we decide to use) needs to reliable. Regards, Deborah -Original Message- From: Mark Elsen [mailto:mark.el...@gmail.com] Sent: 22 September 2011 15:51 To: Nagios Users List Subject: Re: [Nagios-users] Nrpe and Windows Folks, Nagios 3.2.0 is running on SLES 10 SP 1 NRPE running on Windows It all seems to work fine for a while (10 mins) and then I start seeing socket timeout errors. The only way to fix this is to restart the nrpe service on the node that is being monitored. Has anyone else had this this happen and if so, what was the solution to this sort of problem ? The problem is not 'standard' so to speak; check your windows server eventlog (e.g,)( Is nrpe the best way to monitor windows boxes or should I consider other options out there ? You may consider agent less monitoring, I have been using it for a while, google on check_wmi_plus M. -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null Complimentary Events and Webinars on In-Memory, Massively Parallel Processing and 'In the Cloud' - for more information click here This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient, please delete this e-mail immediately. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio endeavours to prevent the transmission of viruses via e-mail, we cannot guarantee that any e-mail or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused -- All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2dcopy2 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2dcopy2 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Nrpe and Windows
Thanks for the suggestions. I'll give check_wmi_plus consideration. It's disappointing that nrpe is failing like this though. I'm only checking local disk usage using check_pdm.exe for the c: drive at the moment. What's the advantage of check_pdm.exe? We use NSClient++ and check_nrpe to check a bunch of Windows server and it's working without any issues. Regards -- Axel Rosenski - Administration - __ Wave Computersysteme GmbH Philipp-Reis-Str. 1-3 / 9 35440 Linden Geschäftsführer: Carsten Kellmann Registergericht Gießen HRB 1823 Tel.: +49 (0)6403 / 9050 8317 Fax: +49 (0)6403 / 9050 5089 mailto:rosen...@wave-computer.de http://www.wave-computer.de -- All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2dcopy2 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] Nrpe and Windows
Folks, Nagios 3.2.0 is running on SLES 10 SP 1 NRPE running on Windows It all seems to work fine for a while (10 mins) and then I start seeing socket timeout errors. The only way to fix this is to restart the nrpe service on the node that is being monitored. Has anyone else had this this happen and if so, what was the solution to this sort of problem ? Is nrpe the best way to monitor windows boxes or should I consider other options out there ? Any help / pointers / opinions would be really appreciated. Thanks, Deborah Attend complimentary seminar in New York City. Stop Dreaming make virtual cubes a reality, for those who face OLAP cube nightmares Register Now at http://www.kognitio.com/stopdreaming This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient, please delete this e-mail immediately. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio endeavours to prevent the transmission of viruses via e-mail, we cannot guarantee that any e-mail or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Nrpe and Windows
Folks, Nagios 3.2.0 is running on SLES 10 SP 1 NRPE running on Windows It all seems to work fine for a while (10 mins) and then I start seeing socket timeout errors. The only way to fix this is to restart the nrpe service on the node that is being monitored. Has anyone else had this this happen and if so, what was the solution to this sort of problem ? The problem is not 'standard' so to speak; check your windows server eventlog (e.g,)( Is nrpe the best way to monitor windows boxes or should I consider other options out there ? You may consider agent less monitoring, I have been using it for a while, google on check_wmi_plus M. -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Nrpe and Windows
Hello, Have you tried to enable a logging nrpe? What do you monitor in windows? On 22 September 2011 18:00, Deborah Martin deborah.mar...@kognitio.comwrote: Folks, Nagios 3.2.0 is running on SLES 10 SP 1 NRPE running on Windows It all seems to work fine for a while (10 mins) and then I start seeing socket timeout errors. The only way to fix this is to restart the nrpe service on the node that is being monitored. Has anyone else had this this happen and if so, what was the solution to this sort of problem ? Is nrpe the best way to monitor windows boxes or should I consider other options out there ? Any help / pointers / opinions would be really appreciated. Thanks, Deborah Attend complimentary seminar in New York City. Stop Dreaming make virtual cubes a reality, for those who face OLAP cube nightmares Register Now at http://www.kognitio.com/stopdreaming This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient, please delete this e-mail immediately. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio endeavours to prevent the transmission of viruses via e-mail, we cannot guarantee that any e-mail or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- Кирилл. -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] nrpe, xinetd and LDAP problem
Hi: I have been trying to track down the fix for this for a while. We have a Nagios server monitoring a few dozen servers. Most of these servers authenticate users against a separate (CentOS Directory Server). We ONLY use LDAP for user/group authentication. It was configured via authconfig and even has a backup LDAP server. Whenever there is a problem with the primary LDAP server, all of the NRPE clients timeout on their services. Note that the nagios user and group exists in the local auth files on all these servers...there is no need for NRPE or xinetd to use LDAP: Aug 2 12:03:18 client1 xinetd[32012]: nss_ldap: failed to bind to LDAP server ldap://ldap1.domain.com/: Can't contact LDAP server Aug 2 12:03:18 client1 xinetd[32012]: nss_ldap: reconnected to LDAP server ldap://ldap2.domain.com/ Aug 2 12:03:18 client1 nrpe[32012]: Error: Could not complete SSL handshake. 5 The message then repeats in the log several times and we all get paged (texted) hundreds of times :-( I looked around and found that others have had this issue, but I don't see a fix. Is it an xinetd problem? Should we run nrpe standalone? Here was somebody else having a similar issue (except we don't have a per_source_limit problem): http://www.linuxquestions.org/questions/linux-server-73/nrpe-ldap-and-ssl-787246/ -- BlackBerryreg; DevCon Americas, Oct. 18-20, San Francisco, CA The must-attend event for mobile developers. Connect with experts. Get tools for creating Super Apps. See the latest technologies. Sessions, hands-on labs, demos much more. Register early save! http://p.sf.net/sfu/rim-blackberry-1 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] NRPE client issues
Hi I am monitoring a windows box with very basic out of the box plugins using nsclient However, whenever we start using this box there is great load on this box (which is a server class machine) and causes the nagios checks to time out and falsely page. Has any one run into this issue and how to resolve? Julie S. Lin System Administrator j...@livescribe.com (510) 553 4912 (o) (510) 367 5772 (c) -- 10 Tips for Better Web Security Learn 10 ways to better secure your business today. Topics covered include: Web security, SSL, hacker attacks Denial of Service (DoS), private keys, security Microsoft Exchange, secure Instant Messaging, and much more. http://www.accelacomm.com/jaw/sfnl/114/51426210/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] NRPE client issues
On 20 July 2011 17:29, Julie S. Lin j...@livescribe.com wrote: Hi I am monitoring a windows box with very basic out of the box plugins using nsclient However, whenever we start using this box there is great load on this box (which is a server class machine) and causes the nagios checks to time out and falsely page. Has any one run into this issue and how to resolve? I come across this sort of thing more so with Unix test servers than Windows. I expect the easiest way to resolve this would be to configure NSClient++ to run the checks and send the results to Nagios using nsca. That way the agent will run them in its own sweet time and if they are rather slow it shouldn't matter too much. Alternatively you might be able to reduce the number of notifications you get by setting up a servicedependency so all of the checks are dependent on just one of them. If the alerts are Unknown rather than Warning or Critical then you can probably filter out the notifications using the notification_options directive either on the service definition or even on the contact definition. As ever, there are lots of different ways to approach the same problem! I hope that helps a little. -- 10 Tips for Better Web Security Learn 10 ways to better secure your business today. Topics covered include: Web security, SSL, hacker attacks Denial of Service (DoS), private keys, security Microsoft Exchange, secure Instant Messaging, and much more. http://www.accelacomm.com/jaw/sfnl/114/51426210/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] NRPE issues
Julie S. Lin wrote: Hi All please excuse the newbie question, but I'm having issues with NRPE returning inconsistent results on the local machine : #./check_mycheck result ? 1 --- critical on the nagios server : ./check_nrpe -H myhost -c check_mycheck result? 0 --- OK how can this happen ? Julie S. Lin System Administrator j...@livescribe.com (510) 553 4912 (o) (510) 367 5772 (c) Are you sure the NRPE is referencing the same command you are using manually ? check the path in the nrpe.cfg file. -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on Lean Startup Secrets Revealed. This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] NRPE issues
I see you're testing locally as root. That has bitten me more than once. -Original Message- From: Julie S. Lin [mailto:j...@livescribe.com] Sent: Wednesday, July 13, 2011 2:13 PM To: Nagios Users List Subject: [Nagios-users] NRPE issues Hi All please excuse the newbie question, but I'm having issues with NRPE returning inconsistent results on the local machine : #./check_mycheck result ? 1 --- critical on the nagios server : ./check_nrpe -H myhost -c check_mycheck result? 0 --- OK how can this happen ? Julie S. Lin System Administrator j...@livescribe.com (510) 553 4912 (o) (510) 367 5772 (c) -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on Lean Startup Secrets Revealed. This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on Lean Startup Secrets Revealed. This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] NRPE issues
Hi thanks so much for hte reply. I'm sure they are referncing same commang. wha'ts weird is when I restart nrpe client, the checks become consistent. Anyone encounter this issue? Julie S. Lin System Administrator j...@livescribe.com (510) 553 4912 (o) (510) 367 5772 (c) On Jul 14, 2011, at 1:47 AM, Assaf Flatto wrote: Julie S. Lin wrote: Hi All please excuse the newbie question, but I'm having issues with NRPE returning inconsistent results on the local machine : #./check_mycheck result ? 1 --- critical on the nagios server : ./check_nrpe -H myhost -c check_mycheck result? 0 --- OK how can this happen ? Julie S. Lin System Administrator j...@livescribe.com (510) 553 4912 (o) (510) 367 5772 (c) Are you sure the NRPE is referencing the same command you are using manually ? check the path in the nrpe.cfg file. -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on Lean Startup Secrets Revealed. This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on Lean Startup Secrets Revealed. This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] NRPE issues
Perhaps you made a change to the nrpe.cfg and had not restarted NRPE service previously? I periodically forget to do this myself when updating commands. -- Mat W. From: j...@livescribe.com To: nagios-users@lists.sourceforge.net Date: Thu, 14 Jul 2011 10:46:34 -0700 Subject: Re: [Nagios-users] NRPE issues Hi thanks so much for hte reply. I'm sure they are referncing same commang. wha'ts weird is when I restart nrpe client, the checks become consistent. Anyone encounter this issue? Julie S. Lin System Administrator j...@livescribe.com (510) 553 4912 (o) (510) 367 5772 (c) On Jul 14, 2011, at 1:47 AM, Assaf Flatto wrote: Julie S. Lin wrote: Hi All please excuse the newbie question, but I'm having issues with NRPE returning inconsistent results on the local machine : #./check_mycheck result ? 1 --- critical on the nagios server : ./check_nrpe -H myhost -c check_mycheck result? 0 --- OK how can this happen ? Julie S. Lin System Administrator j...@livescribe.com (510) 553 4912 (o) (510) 367 5772 (c) Are you sure the NRPE is referencing the same command you are using manually ? check the path in the nrpe.cfg file. -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on Lean Startup Secrets Revealed. This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on Lean Startup Secrets Revealed. This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on Lean Startup Secrets Revealed. This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] NRPE issues
Hi All please excuse the newbie question, but I'm having issues with NRPE returning inconsistent results on the local machine : #./check_mycheck result ? 1 --- critical on the nagios server : ./check_nrpe -H myhost -c check_mycheck result? 0 --- OK how can this happen ? Julie S. Lin System Administrator j...@livescribe.com (510) 553 4912 (o) (510) 367 5772 (c) -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on Lean Startup Secrets Revealed. This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] NRPE and include_dir
On 03/15/2011 10:23 AM, Mike Chesnut wrote: On 03/15/2011 08:56 AM, Andreas Ericsson wrote: On 03/15/2011 04:16 PM, Mike Chesnut wrote: On 03/14/2011 07:00 PM, Mike Chesnut wrote: We're trying to use the include_dir directive in NRPE with an /etc/nagios/nrpe.d/ directory. My assumption was that files in this directory would be loaded in alphanumeric order, but it seems to only load in alphabetical order, ignoring numerals. To follow up on this, it turns out that in nrpe.c, readdir() is used to load files from the config directory, which is totally non-deterministic in the order the files are read. I believe this to be a bug, as I think it's a reasonable expectation (based on how pretty much every other program that allows you to include a conf.d directory works) for the files to be loaded in alphanumeric order. This should really only be a problem if you're loading more than one command with the same name. If that's the case, you've done something pretty severely wrong anyway since NRPE doesn't guarantee that either of them will win out and the order could thus change at any time. It's a tossup if we should use first wins or last wins, and since it isn't documented it can (and possibly will) change. So my assertion is that it's preferable for things like this to be well-defined (and documented), rather than being essentially random. We have what I consider to be a pretty reasonable situation where this would be useful. I'm happy to share the specifics if anybody's curious, but it seems to me that it'd be generally useful to the whole community to have things like this spelled out explicitly, one way or another. Is there a reason anybody knows of that this belief is incorrect? If not, I'll work on a patch. See above. If you still want to fix it, make sure you also update the documentation so that it's obvious what the order of domination is wrt commands with the same name. Will do. No guarantees I get to it, but hopefully. If anybody has an objection to this change please let me know before I waste my time. I have this patch completed, and we've been running it in production for a couple of weeks now with no problems. Should I submit the patch officially somewhere? (Is it wanted?) I'm not finding any information on how to submit an NRPE patch. Ditto for the documentation, which seems to only exist in .odt form. Any pointers/opinions would be greatly appreciated. Thanks, Mike -- Xperia(TM) PLAY It's a major breakthrough. An authentic gaming smartphone on the nation's most reliable network. And it wants your games. http://p.sf.net/sfu/verizon-sfdev ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] NRPE and include_dir
On 03/14/2011 07:00 PM, Mike Chesnut wrote: We're trying to use the include_dir directive in NRPE with an /etc/nagios/nrpe.d/ directory. My assumption was that files in this directory would be loaded in alphanumeric order, but it seems to only load in alphabetical order, ignoring numerals. To follow up on this, it turns out that in nrpe.c, readdir() is used to load files from the config directory, which is totally non-deterministic in the order the files are read. I believe this to be a bug, as I think it's a reasonable expectation (based on how pretty much every other program that allows you to include a conf.d directory works) for the files to be loaded in alphanumeric order. Is there a reason anybody knows of that this belief is incorrect? If not, I'll work on a patch. Thanks, Mike -- Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] NRPE and include_dir
On 03/15/2011 04:16 PM, Mike Chesnut wrote: On 03/14/2011 07:00 PM, Mike Chesnut wrote: We're trying to use the include_dir directive in NRPE with an /etc/nagios/nrpe.d/ directory. My assumption was that files in this directory would be loaded in alphanumeric order, but it seems to only load in alphabetical order, ignoring numerals. To follow up on this, it turns out that in nrpe.c, readdir() is used to load files from the config directory, which is totally non-deterministic in the order the files are read. I believe this to be a bug, as I think it's a reasonable expectation (based on how pretty much every other program that allows you to include a conf.d directory works) for the files to be loaded in alphanumeric order. This should really only be a problem if you're loading more than one command with the same name. If that's the case, you've done something pretty severely wrong anyway since NRPE doesn't guarantee that either of them will win out and the order could thus change at any time. It's a tossup if we should use first wins or last wins, and since it isn't documented it can (and possibly will) change. Is there a reason anybody knows of that this belief is incorrect? If not, I'll work on a patch. See above. If you still want to fix it, make sure you also update the documentation so that it's obvious what the order of domination is wrt commands with the same name. -- Andreas Ericsson andreas.erics...@op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 Considering the successes of the wars on alcohol, poverty, drugs and terror, I think we should give some serious thought to declaring war on peace. -- Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] NRPE and include_dir
On 03/15/2011 08:56 AM, Andreas Ericsson wrote: On 03/15/2011 04:16 PM, Mike Chesnut wrote: On 03/14/2011 07:00 PM, Mike Chesnut wrote: We're trying to use the include_dir directive in NRPE with an /etc/nagios/nrpe.d/ directory. My assumption was that files in this directory would be loaded in alphanumeric order, but it seems to only load in alphabetical order, ignoring numerals. To follow up on this, it turns out that in nrpe.c, readdir() is used to load files from the config directory, which is totally non-deterministic in the order the files are read. I believe this to be a bug, as I think it's a reasonable expectation (based on how pretty much every other program that allows you to include a conf.d directory works) for the files to be loaded in alphanumeric order. This should really only be a problem if you're loading more than one command with the same name. If that's the case, you've done something pretty severely wrong anyway since NRPE doesn't guarantee that either of them will win out and the order could thus change at any time. It's a tossup if we should use first wins or last wins, and since it isn't documented it can (and possibly will) change. So my assertion is that it's preferable for things like this to be well-defined (and documented), rather than being essentially random. We have what I consider to be a pretty reasonable situation where this would be useful. I'm happy to share the specifics if anybody's curious, but it seems to me that it'd be generally useful to the whole community to have things like this spelled out explicitly, one way or another. Is there a reason anybody knows of that this belief is incorrect? If not, I'll work on a patch. See above. If you still want to fix it, make sure you also update the documentation so that it's obvious what the order of domination is wrt commands with the same name. Will do. No guarantees I get to it, but hopefully. If anybody has an objection to this change please let me know before I waste my time. Thanks, Mike -- Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] NRPE and include_dir
Apologies if this list isn't appropriate for this question, but I thought I'd try here first. We're trying to use the include_dir directive in NRPE with an /etc/nagios/nrpe.d/ directory. My assumption was that files in this directory would be loaded in alphanumeric order, but it seems to only load in alphabetical order, ignoring numerals. For instance, if I have these files: /etc/nagios/nrpe.d/000-fileone.cfg /etc/nagios/nrpe.d/100-filetwo.cfg and they both define the same command, I would expect the one in 100-filetwo.cfg to take precedence, as it should be loaded second. However, this is not the case. (I've verified the order they are loaded with debug=1). If I have these files, though: /etc/nagios/nrpe.d/aaa-fileone.cfg /etc/nagios/nrpe.d/bbb-filetwo.cfg then things work in the order I expect (checks defined in bbb-filetwo.cfg will override checks defined in aaa-fileone.cfg). I'm using NRPE 2.5.2, which I realize is slightly old (2.12 seems to be the most recent version). I can't find a bug report for this issue, though, so I'm not sure if it's been recognized as such, nor if it's been corrected in newer versions. In fact, I see no documentation anywhere that specifies the order in which files will be loaded from within a directory that's been included with include_dir. Has anybody seen this behavior? Am I correct in believing it to be a bug? Thanks, Mike -- Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] nrpe CheckEventLog
Hi guys, I hope someone can help me. I'm trying to set up Nagios to return a warning for all red error logs in both the system and application logs on a windows 2003 server. So far no matter what I try I always get 'Eventlog Check ok' even when I know that there are some red error's showing in the log. I've just been running this from the libexec folder so far as I what to get the syntax right before defining the service and alike. ./check_nrpe -H IP -p 5667 -c checkEventLog file=application file=system filter-eventType==error filter-generated=\1d Any ideas anyone? NSclient 3.3.20 installed on windows machine. Can someone provide a simple syntax that will at least produce something more interesting the 'ok' so I know that's it is possible? At the moment I'm thinking it's stuck at only reporting 'ok' no matter what I do. Thanks in advance :) Micro Peripherals Limited. Registered Office: Shorten Brook Way, Altham Business Park, Altham, Accrington, Lancs. BB5 5YJ. Tel: (01282) 776776 Fax: (01282) 858790 Micro Peripherals Limited. Registered in England No. 1511931. VAT No. GB 864 4387 91 DISCLAIMER: This e-mail and attachments are confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions presented are solely those of the author and do not necessarily represent those of Micro Peripherals Limited. If you are not the intended recipient, be advised that you have received this Email in error and that any use, dissemination, forwarding, printing, or copying of this Email is strictly prohibited. If this transmission is received in error please notify the sender immediately and delete this message from your E-mail system. All electronic transmissions to and from Micro Peripherals Ltd are recorded and may be monitored. -- The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] nrpe CheckEventLog
On Wed, Feb 16, 2011 at 1:38 PM, Tristan Drinkwater trist...@micro-p.com wrote: Hi guys, I hope someone can help me. I'm trying to set up Nagios to return a warning for all red error logs in both the system and application logs on a windows 2003 server. So far no matter what I try I always get 'Eventlog Check ok' even when I know that there are some red error's showing in the log. I've just been running this from the libexec folder so far as I what to get the syntax right before defining the service and alike. ./check_nrpe -H IP -p 5667 -c checkEventLog file=application file=system filter-eventType==error filter-generated=\1d Any ideas anyone? NSclient 3.3.20 installed on windows machine. Can someone provide a simple syntax that will at least produce something more interesting the 'ok' so I know that's it is possible? At the moment I'm thinking it's stuck at only reporting 'ok' no matter what I do. Ah, the ole-dead-thing, isn't working as it is supposed too case :-). Usually this means that something is overlooked , or there is a knowledge-gap in corrrect usage of the needed tool ; Some things to remark : - normally in your example command the '-a' flag should appear after checkEventLog to denote arguments following (I think) - in the NSC config file on the remote host, support for arguments must be , explicitly enabled, as also support for nasty meta chars (I think) - further I would advice to make tests against the lastest version of NSClient 0.3.8..x , because the syntax changed somewhat, and this can influence behavior, pending your are looking at links with correct examples w.r.t to the version of NSClient used , or not. M. -- The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] nrpe CheckEventLog
Thanks for the reply. I fear the main problem here is the lack of knowledge that's sat in-between my chair and my pc :) I've edited the ini file on the server to allow both arguments and nasty chars and restarted the service. If I use the -a switch after -c checkEventLog all I get back is 'CHECK_NRPE: Received 0 bytes from daemon... blah, blah blah...' To me, that's suggests something isn't right on my windows server end, but what? Thanks again :) -Original Message- From: Mark Elsen [mailto:mark.el...@gmail.com] Sent: 16 February 2011 12:55 To: Nagios Users List Subject: Re: [Nagios-users] nrpe CheckEventLog On Wed, Feb 16, 2011 at 1:38 PM, Tristan Drinkwater trist...@micro-p.com wrote: Hi guys, I hope someone can help me. I'm trying to set up Nagios to return a warning for all red error logs in both the system and application logs on a windows 2003 server. So far no matter what I try I always get 'Eventlog Check ok' even when I know that there are some red error's showing in the log. I've just been running this from the libexec folder so far as I what to get the syntax right before defining the service and alike. ./check_nrpe -H IP -p 5667 -c checkEventLog file=application file=system filter-eventType==error filter-generated=\1d Any ideas anyone? NSclient 3.3.20 installed on windows machine. Can someone provide a simple syntax that will at least produce something more interesting the 'ok' so I know that's it is possible? At the moment I'm thinking it's stuck at only reporting 'ok' no matter what I do. Ah, the ole-dead-thing, isn't working as it is supposed too case :-). Usually this means that something is overlooked , or there is a knowledge-gap in corrrect usage of the needed tool ; Some things to remark : - normally in your example command the '-a' flag should appear after checkEventLog to denote arguments following (I think) - in the NSC config file on the remote host, support for arguments must be , explicitly enabled, as also support for nasty meta chars (I think) - further I would advice to make tests against the lastest version of NSClient 0.3.8..x , because the syntax changed somewhat, and this can influence behavior, pending your are looking at links with correct examples w.r.t to the version of NSClient used , or not. M. -- The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null Micro Peripherals Limited. Registered Office: Shorten Brook Way, Altham Business Park, Altham, Accrington, Lancs. BB5 5YJ. Tel: (01282) 776776 Fax: (01282) 858790 Micro Peripherals Limited. Registered in England No. 1511931. VAT No. GB 864 4387 91 DISCLAIMER: This e-mail and attachments are confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions presented are solely those of the author and do not necessarily represent those of Micro Peripherals Limited. If you are not the intended recipient, be advised that you have received this Email in error and that any use, dissemination, forwarding, printing, or copying of this Email is strictly prohibited. If this transmission is received in error please notify the sender immediately and delete this message from your E-mail system. All electronic transmissions to and from Micro Peripherals Ltd are recorded and may be monitored. -- The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] nrpe CheckEventLog
On 16 February 2011 12:38, Tristan Drinkwater trist...@micro-p.com wrote: Hi guys, I hope someone can help me. I'm trying to set up Nagios to return a warning for all red error logs in both the system and application logs on a windows 2003 server. So far no matter what I try I always get 'Eventlog Check ok' even when I know that there are some red error's showing in the log. I've just been running this from the libexec folder so far as I what to get the syntax right before defining the service and alike. ./check_nrpe -H IP -p 5667 -c checkEventLog file=application file=system filter-eventType==error filter-generated=\1d Any ideas anyone? NSclient 3.3.20 installed on windows machine. If it's any help to you, the entry I have in my nsc.ini file in the [External Alias] section is: alias_CheckEventLog=CheckEventLog file=application file=system MaxWarn=1 MaxCrit=1 filter=generated gt -1h AND severity NOT IN ('success', 'informational') truncate=800 unique descriptions syntax=%severity%: %source%: %message% (%count%) (that's all one line in case your email file wraps it) As you can see it uses the new syntax. Note that to use external aliases like this, you need to uncomment the line which reads: CheckExternalScripts.dll And you can query it from the Nagios server simply with ./check_nrpe -H IP -p 5667 -c alias_CheckEventLog This method where all the command line options are in the agent config can be useful for troubleshooting, as you're less likely to hit problems with escaping non-alphanumeric characters. Once you have it working nicely you can try moving to the the method you were trying where the command line options are specified in the Nagios config. I hope that helps rather than confuses! Cheers, Jim -- The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] nrpe CheckEventLog
Thanks for the reply. I fear the main problem here is the lack of knowledge that's sat in-between my chair and my pc :) I've edited the ini file on the server to allow both arguments and nasty chars and restarted the service. If I use the -a switch after -c checkEventLog all I get back is 'CHECK_NRPE: Received 0 bytes from daemon... blah, blah blah...' To me, that's suggests something isn't right on my windows server end, but what? As far as NSC config file on windows server 2003 is concerned I have : ;# COMMAND ARGUMENT PROCESSING ; This option determines whether or not the NRPE daemon will allow clients to specify arguments to commands that are executed. allow_arguments=1 ; ;# COMMAND ALLOW NASTY META CHARS ; This option determines whether or not the NRPE daemon will allow clients to specify nasty (as in |`'\[]{}) characters in arguments. allow_nasty_meta_chars=1 For the rest this, probably, only, means that there is a syntax conflict pending. Trial and error should lead to pinpointing the problem Als remember the versioning issue. M. -- The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] nrpe CheckEventLog
Arh, no got it I uncommented the lines in the ini file but didn't change their values from 0 to 1. Not to worry. Thanks all :) -Original Message- From: Tristan Drinkwater [mailto:trist...@micro-p.com] Sent: 16 February 2011 13:13 To: Nagios Users List Subject: Re: [Nagios-users] nrpe CheckEventLog Thanks for the reply. I fear the main problem here is the lack of knowledge that's sat in-between my chair and my pc :) I've edited the ini file on the server to allow both arguments and nasty chars and restarted the service. If I use the -a switch after -c checkEventLog all I get back is 'CHECK_NRPE: Received 0 bytes from daemon... blah, blah blah...' To me, that's suggests something isn't right on my windows server end, but what? Thanks again :) -Original Message- From: Mark Elsen [mailto:mark.el...@gmail.com] Sent: 16 February 2011 12:55 To: Nagios Users List Subject: Re: [Nagios-users] nrpe CheckEventLog On Wed, Feb 16, 2011 at 1:38 PM, Tristan Drinkwater trist...@micro-p.com wrote: Hi guys, I hope someone can help me. I'm trying to set up Nagios to return a warning for all red error logs in both the system and application logs on a windows 2003 server. So far no matter what I try I always get 'Eventlog Check ok' even when I know that there are some red error's showing in the log. I've just been running this from the libexec folder so far as I what to get the syntax right before defining the service and alike. ./check_nrpe -H IP -p 5667 -c checkEventLog file=application file=system filter-eventType==error filter-generated=\1d Any ideas anyone? NSclient 3.3.20 installed on windows machine. Can someone provide a simple syntax that will at least produce something more interesting the 'ok' so I know that's it is possible? At the moment I'm thinking it's stuck at only reporting 'ok' no matter what I do. Ah, the ole-dead-thing, isn't working as it is supposed too case :-). Usually this means that something is overlooked , or there is a knowledge-gap in corrrect usage of the needed tool ; Some things to remark : - normally in your example command the '-a' flag should appear after checkEventLog to denote arguments following (I think) - in the NSC config file on the remote host, support for arguments must be , explicitly enabled, as also support for nasty meta chars (I think) - further I would advice to make tests against the lastest version of NSClient 0.3.8..x , because the syntax changed somewhat, and this can influence behavior, pending your are looking at links with correct examples w.r.t to the version of NSClient used , or not. M. -- The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null Micro Peripherals Limited. Registered Office: Shorten Brook Way, Altham Business Park, Altham, Accrington, Lancs. BB5 5YJ. Tel: (01282) 776776 Fax: (01282) 858790 Micro Peripherals Limited. Registered in England No. 1511931. VAT No. GB 864 4387 91 DISCLAIMER: This e-mail and attachments are confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions presented are solely those of the author and do not necessarily represent those of Micro Peripherals Limited. If you are not the intended recipient, be advised that you have received this Email in error and that any use, dissemination, forwarding, printing, or copying of this Email is strictly prohibited. If this transmission is received in error please notify the sender immediately and delete this message from your E-mail system. All electronic transmissions to and from Micro Peripherals Ltd are recorded and may be monitored. -- The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when
[Nagios-users] NRPE- Log files in syslog
Hi All: I use the NPRE plugin for Nagios and i know that setting the value of the variable debug to 1 in the nrpe.cfg file would make the debug messages to be logged into the syslog facility. Is there a way for me to make it log into some other folder of my choice instead of it even getting stored in syslog? I couldn't find the exact script/file where it actually writes stuff into syslog. It would be great if someone could tell me where to find this file or how to change the option to make it log into a folder of my choice. Also, i tried to find if i could find some plugin to log into some other folder. I could find many plugins for NSCA log but i couldn't find anything for NRPE. It would be great if anybody could help me with this. Thanks. Regards, Archana -- Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] NRPE- Log files in syslog
Hi All: I use the NPRE plugin for Nagios and i know that setting the value of the variable debug to 1 in the nrpe.cfg file would make the debug messages to be logged into the syslog facility. Is there a way for me to make it log into some other folder of my choice instead of it even getting stored in syslog? I couldn't find the exact script/file where it actually writes stuff into syslog. It would be great if someone could tell me where to find this file or how to change the option to make it log into a folder of my choice. Also, i tried to find if i could find some plugin to log into some other folder. I could find many plugins for NSCA log but i couldn't find anything for NRPE. It would be great if anybody could help me with this. Thanks. Regards, Archana -- Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] NRPE- Log files in syslog
Thank you Jeffrey. I'm actually new to both Nagios and the world of Unix. I shall however read up on syslog. I was very particular about this because i wanted to know the exact point where nrpe writes to syslog so that i re-route it and make it write to a place of my choice. The main reason I would want to do this is because i will not have access to the syslog of many servers in my company. On Wed, Jan 26, 2011 at 6:14 PM, Jeffrey Watts jeffrey.w.wa...@gmail.comwrote: You really ought to read up on syslog and how it works. It can do everything you're asking. The whole point of the syslog service is to abstract logging from the application - so that it can be centralized, filtered, separated, etc. :) Try (depends on which syslog you have running, ps can help you figure that out): man 5 syslog.conf man 5 syslog-ng.conf That will help you with the format of the configuration file. If you're not familiar with the concepts of syslog in general, I'd recommend googling. Good luck! Jeffrey. On Wed, Jan 26, 2011 at 11:36 AM, Archana Ramamoorthy archu2i...@yahoo.co.in wrote: Hi All: I use the NPRE plugin for Nagios and i know that setting the value of the variable debug to 1 in the nrpe.cfg file would make the debug messages to be logged into the syslog facility. Is there a way for me to make it log into some other folder of my choice instead of it even getting stored in syslog? I couldn't find the exact script/file where it actually writes stuff into syslog. It would be great if someone could tell me where to find this file or how to change the option to make it log into a folder of my choice. Also, i tried to find if i could find some plugin to log into some other folder. I could find many plugins for NSCA log but i couldn't find anything for NRPE. It would be great if anybody could help me with this. Thanks. Regards, Archana -- Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- Archana -- Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] NRPE
It is working now. The requiretty on sudoers solved it, I used added this to sudoers, to allow the nagios user only: Defaults:nagios !requiretty Thanks Mark for the help Ihab From: mark.el...@gmail.com Date: Tue, 7 Dec 2010 17:30:51 +0100 To: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] NRPE Hi List I have a problem using check_nrpe: The script on the remote machine is running this command: #/bin/bash output=`sudo /usr/sbin/lsof -X |grep tomcat| wc -l` max=$1 if [ $output -lt $max ]; then echo OK |value is $output exit 0; else echo CRITICAL value is $output exit 2; fi I have this line in sudoers file: nagios ALL=(ALL) NOPASSWD: /usr/sbin/lsof I have this in the nrpe.cfg: command[check_lsof]=/usr/local/nagios/libexec/check_lsof.sh 256 When I run the command from the nagios user on the remote machine: [nag...@serv_1]$ /usr/local/nagios/libexec/check_lsof.sh 256 OK |value is 132 When I run it from the Nagios server (remotely): [r...@healthy libexec]# ./check_nrpe -H 10.1.1.1 -c check_lsof OK |value is 0 Ive set the user in /etc/xinetd.d/nrpe to nagios, and all the other checks are working fine. Any thoughts? - Search for 'sudo' in nrpe.cfg , make sure the sudo prefix is set, not commented. - Look for 'tty' in the sudoers file, make sure 'requiretty' is commented. M. -- What happens now with your Lotus Notes apps - do you make another costly upgrade, or settle for being marooned without product support? Time to move off Lotus Notes and onto the cloud with Force.com, apps are easier to build, use, and manage than apps on traditional platforms. Sign up for the Lotus Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- This SF Dev2Dev email is sponsored by: WikiLeaks The End of the Free Internet http://p.sf.net/sfu/therealnews-com___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] NRPE
Hi List I have a problem using check_nrpe: The script on the remote machine is running this command: #/bin/bash output=`sudo /usr/sbin/lsof -X |grep tomcat| wc -l` max=$1 if [ $output -lt $max ]; then echo OK |value is $output exit 0; else echo CRITICAL value is $output exit 2; fi I have this line in sudoers file: nagios ALL=(ALL) NOPASSWD: /usr/sbin/lsof I have this in the nrpe.cfg: command[check_lsof]=/usr/local/nagios/libexec/check_lsof.sh 256 When I run the command from the nagios user on the remote machine: [nag...@serv_1]$ /usr/local/nagios/libexec/check_lsof.sh 256 OK |value is 132 When I run it from the Nagios server (remotely): [r...@healthy libexec]# ./check_nrpe -H 10.1.1.1 -c check_lsof OK |value is 0 Ive set the user in /etc/xinetd.d/nrpe to nagios, and all the other checks are working fine. Any thoughts? -- What happens now with your Lotus Notes apps - do you make another costly upgrade, or settle for being marooned without product support? Time to move off Lotus Notes and onto the cloud with Force.com, apps are easier to build, use, and manage than apps on traditional platforms. Sign up for the Lotus Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] NRPE
Hi List I have a problem using check_nrpe: The script on the remote machine is running this command: #/bin/bash output=`sudo /usr/sbin/lsof -X |grep tomcat| wc -l` max=$1 if [ $output -lt $max ]; then echo OK |value is $output exit 0; else echo CRITICAL value is $output exit 2; fi I have this line in sudoers file: nagios ALL=(ALL) NOPASSWD: /usr/sbin/lsof I have this in the nrpe.cfg: command[check_lsof]=/usr/local/nagios/libexec/check_lsof.sh 256 When I run the command from the nagios user on the remote machine: [nag...@serv_1]$ /usr/local/nagios/libexec/check_lsof.sh 256 OK |value is 132 When I run it from the Nagios server (remotely): [r...@healthy libexec]# ./check_nrpe -H 10.1.1.1 -c check_lsof OK |value is 0 Ive set the user in /etc/xinetd.d/nrpe to nagios, and all the other checks are working fine. Any thoughts? - Search for 'sudo' in nrpe.cfg , make sure the sudo prefix is set, not commented. - Look for 'tty' in the sudoers file, make sure 'requiretty' is commented. M. -- What happens now with your Lotus Notes apps - do you make another costly upgrade, or settle for being marooned without product support? Time to move off Lotus Notes and onto the cloud with Force.com, apps are easier to build, use, and manage than apps on traditional platforms. Sign up for the Lotus Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] nrpe and check_apcups newb problem
Greetings, I'm sure this is a newb problem, but I'm sorry I haven't been able to figure it out. I'm trying to monitor my APC UPS on a remote computer. My nagios website is saying this: APC CHARGE UNKNOWN 2010-09-28 18:22:02 7d 8h 2m 19s4/4 (No output returned from plugin) APC LOADUNKNOWN 2010-09-28 18:23:17 7d 8h 1m 4s 4/4 (No output returned from plugin) APC STATUS UNKNOWN 2010-09-28 18:24:32 7d 7h 59m 49s 4/4 (No output returned from plugin) APC TEMPUNKNOWN 2010-09-28 18:25:47 7d 7h 58m 34s 4/4 (No output returned from plugin) running the check_nrpe from the command line works great though: a...@nagios:/usr/lib/nagios/plugins$ ./check_nrpe -H 192.168.2.200 -c check_apcups_bcharge OK - Battery Charge: 100.0% a...@nagios:/usr/lib/nagios/plugins$ ./check_nrpe -H 192.168.2.200 -c check_apcups_loadpct OK - Load: 57.2% a...@nagios:/usr/lib/nagios/plugins$ ./check_nrpe -H 192.168.2.200 -c check_apcups_status ONLINE - STATUS : ONLINE a...@nagios:/usr/lib/nagios/plugins$ ./check_nrpe -H 192.168.2.200 -c check_apcups_itemp OK - Internal Temperature: 27.0 C a...@nagios:/usr/lib/nagios/plugins$ I think this shows that the NRPE client is configured correctly on the remote computer, and the nagios box is chatting correctly with the remote computer. How do I go about making this work? -Andy -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] NRPE and ip range in allowed hosts
On 09/22/2010 03:47 PM, Assaf Flatto wrote: Hello Has anyone tried placing a range ip entry in the allowedhosts directive of NRPE ? Will putting 10.1.0.0/24 work ? No, it won't. If not ,does anyone know if is it something that is planned to future versions of NRPE ? It's not. NRPE isn't maintained very rigorously since it Just Works(tm). -- Andreas Ericsson andreas.erics...@op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 Considering the successes of the wars on alcohol, poverty, drugs and terror, I think we should give some serious thought to declaring war on peace. -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] NRPE and ip range in allowed hosts
On 23/09/10 12:40, Andreas Ericsson wrote: On 09/22/2010 03:47 PM, Assaf Flatto wrote: Hello Has anyone tried placing a range ip entry in the allowedhosts directive of NRPE ? Will putting 10.1.0.0/24 work ? No, it won't. If not ,does anyone know if is it something that is planned to future versions of NRPE ? It's not. NRPE isn't maintained very rigorously since it Just Works(tm). So there is no way to specify a range of servers , one must put all IP's individually ? -- Never,Ever Cut A Deal With a Dragon Next year I will be doing the London to Paris bike ride to raise money for the DogTrust (www.dogstrust.co.uk) . Please Sponsor me at http://www.justgiving.com/Assaf-Flatto -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] NRPE and ip range in allowed hosts
Hi So there is no way to specify a range of servers , one must put all IP's individually ? just as an idea: Can inetd handle the range of IPs? Then you could think about starting the nrpe-server with inetd. Regards Sebastian Ries -- DT Netsolution GmbH - Talaeckerstr. 30 - D-70437 Stuttgart Tel: +49-711-849910-36 Fax: +49-711-849910-936 WEB: http://www.dtnet.de/ email: sebastian.r...@dtnet.de -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] NRPE and ip range in allowed hosts
Hello Has anyone tried placing a range ip entry in the allowedhosts directive of NRPE ? Will putting 10.1.0.0/24 work ? If not ,does anyone know if is it something that is planned to future versions of NRPE ? -- Never,Ever Cut A Deal With a Dragon Next year I will be doing the London to Paris bike ride to raise money for the DogTrust (www.dogstrust.co.uk) . Please Sponsor me at http://www.justgiving.com/Assaf-Flatto -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] NRPE and ip range in allowed hosts
Yes, CIDR-style notation is accepted. On 09/22/2010 08:47 AM, Assaf Flatto wrote: Hello Has anyone tried placing a range ip entry in the allowedhosts directive of NRPE ? Will putting 10.1.0.0/24 work ? If not ,does anyone know if is it something that is planned to future versions of NRPE ? -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] nrpe use Help
When I run any command to monitor a solaris the nrpe server runs fine from console, however in the browser sends me the error: (Return code of 137 is out of bounds) I'm using solaris 10 The command is definidon in NagiosQL as $USER1$/check_nrpe -H $HOSTADDRESS$ -t 15 -c $ARG1$ $USER1$ = /usr/local/nagios/libexec Then send console output ls $ Echo $ LD_LIBRARY_PATH / Usr / local / lib: / usr / local / libexec: / usr / sfw / lib: / usr / local / nagios / libexec / Usr / local / nagios / libexec / check_nrpe-H 10.11.3.12 NRPE v2.12 / Usr / local / nagios / libexec / check_nrpe-M 10.11.3.12-t 15-c check_total_procs PROCS OK: 40 procesos Any ideas? -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] nrpe check times out on one host, works perfectly on another.
Hello, I have got a peculiar issue with nagios that I have been trying to track down. I have an nrpe check configured to run a perl script on a pair of firewalls (fwiw, it monitors the state table utilization for pf). Nagios has no problems checking this script on the first firewall, but it always times out on the check for the second firewall. The firewalls are configured [nearly] identically, and if I run the check_nrpe2 command manually on the nagios host (both as root and as the nagios user), both hosts respond as expected. nag...@calvin:~- /usr/local/libexec/nagios/check_nrpe2 -H foobar-1-dev.claimlynx.com -c check_pf_states 2187 (%1.0935) nag...@calvin:~- /usr/local/libexec/nagios/check_nrpe2 -H foobar-2-dev.claimlynx.com -c check_pf_states 2383 (%1.1915) I have restarted nagios and nrpe2 numerous times, with no effect. Running nrpe with debugging enabled on foobar-2 (the problem host) never shows any connections from the nagios host for the check_pf_states check. However, other nrpe checks on this host are working without any issue. I have also confirmed with tcpdump that there are no uncompleted connection attempts, or any that request this check. The relevant parts of my nagios config are as follows: define service{ host_name foobar-1, foobar-2 service_description Check pf State tables use generic-service check_command rcheck_pf_states contact_groups clx-admins-email-24x7 } define command{ command_namercheck_pf_states command_line$USER1$/check_nrpe2 -H $HOSTNAME$ -c check_pf_states } define host { host_name foobar-1 alias Firewall Primary (Dev Interface) address foobar-1-dev.claimlynx.com use new-generic-host parents sw-dev } define host { host_name foobar-2 alias Firewall Secondary (Dev Interface) address foobar-2-dev.claimlynx.com use new-generic-host parents sw-dev } The nrpe2 command definition is as follows. It is worth noting that both firewalls read a shared nrpe config file (to prevent fat fingers from getting in the way). command[check_pf_states]=sudo /usr/local/libexec/nagios/check_pf_states Here is my check script (try not to laugh too hard): #!/usr/local/bin/perl # This script checks the number of firewall states currently in use by pf # and triggers an alert if the number of values exceeds a certain percentage # of the maximum allowed states. use strict; use warnings; use 5.010; use lib /usr/local/libexec/nagios; use utils qw(%ERRORS); my $debug; # Define variables that will be used throughout the script my $state_limit;# Will contain the max size of the state table my $current_states; # Will contain the current size of the state table my $adaptive_start; # Will contain the state count that starts adaptive timeouts # Get the current state table limit my @output = `pfctl -s memory 2/dev/null | grep '^states'`; say DEBUG: Found . @output . lines while grepping for state table size. if $debug; for (@output) { if ( m/^states\s+hard limit\s+(\d+)/ ) { $state_limit = $1; say DEBUG: State table size: $state_limit if $debug; last; } say DEBUG: State table size not found in: $_ if $debug; } unless ( defined $state_limit ) { die State limit not found. Cannot continue.\n; } # Get the value of adaptive start to calculate the critical bound @output = `pfctl -s timeouts 2/dev/null | grep '^adaptive.start'`; say DEBUG: Found . @output . lines while grepping for lower adaptive timeout bound. if $debug; for (@output) { if ( m/^adaptive.start\s+(\d+) states/ ) { $adaptive_start = $1; say DEBUG: Adaptive timeout lower bound is at $adaptive_start states ( . 100*($adaptive_start/$state_limit) . %). if $debug; last; } say DEBUG: Adaptive timeout lower bound not found in: $_ if $debug; } unless ( defined $adaptive_start ) { die Adaptive timeout lower bound not found. Cannot continue.\n; } # Get the current size of the state table @output = `pfctl -s info 2/dev/null | grep 'current entries'`; say DEBUG: Found . @output . lines while grepping for the number of state table entries. if $debug; for (@output) { if ( m/^\s+current entries\s+(\d+)/ ) { $current_states = $1; say DEBUG: PF reports $current_states state entries in use. if $debug; last; } say DEBUG: State entry count not found in : $_ if $debug; } unless ( defined $current_states ) { die Could not determine the current number of pf states. Cannot continue.\n } #
Re: [Nagios-users] nrpe use
Could you provide a screen shot? Regards, Justin Dorfman Mahalo.com Inc. Jr. Systems Engineer 818.485.1458 @jdorfman http://www.twitter.com/jdorfman | @MahaloSysopshttp://twitter.com/MahaloSysops| Blog: http://bit.ly/aNiWSk On Tue, Sep 14, 2010 at 2:04 PM, Oscar Cano Rodriguez oc...@corvelis.comwrote: When I run any command to monitor a solaris the nrpe server runs fine from console, however in the browser sends me the error: (Return code of 137 is out of bounds) I'm using solaris 10 Any ideas? -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] nrpe use
The command is definidon in NagiosQL as $USER1$/check_nrpe -H $HOSTADDRESS$ -t 15 -c $ARG1$ -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] nrpe use
in resource.cfg where does $USER1$ point to? FreeBSD e.g.: $USER1$=/usr/local/libexec/nagios For your case it believe it should be: *$USER1$=**/Usr/local/nagios/libexec/* Regards, Justin Dorfman Mahalo.com Inc. Jr. Systems Engineer 818.485.1458 @jdorfman http://www.twitter.com/jdorfman | @MahaloSysopshttp://twitter.com/MahaloSysops| Blog: http://bit.ly/aNiWSk On Tue, Sep 14, 2010 at 4:35 PM, Oscar Cano Rodriguez oc...@corvelis.comwrote: The command is definidon in NagiosQL as $USER1$/check_nrpe -H $HOSTADDRESS$ -t 15 -c $ARG1$ -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] nrpe use
thanks, must be something else because the file I have set the variable resource.cfg: $USER1$ = /usr/local/nagios/libexec 2010/9/14 Dorfman, Justin jus...@mahalo.com in resource.cfg where does $USER1$ point to? FreeBSD e.g.: $USER1$=/usr/local/libexec/nagios For your case it believe it should be: *$USER1$=**/Usr/local/nagios/libexec/* Regards, Justin Dorfman Mahalo.com Inc. Jr. Systems Engineer 818.485.1458 @jdorfman http://www.twitter.com/jdorfman | @MahaloSysopshttp://twitter.com/MahaloSysops| Blog: http://bit.ly/aNiWSk On Tue, Sep 14, 2010 at 4:35 PM, Oscar Cano Rodriguez oc...@corvelis.comwrote: The command is definidon in NagiosQL as $USER1$/check_nrpe -H $HOSTADDRESS$ -t 15 -c $ARG1$ -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- Oscar Cano Rodríguez www.corvelis.com , www.antilavado.com Av. Revolución No. 1176-3052 Col. San José Insurgentes C.P. 03900, México, D.F., skype: ocanor -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] NRPE check_procs cutting off arguments?
We are using Nagios 3.0.5 and one of our services monitors a particular job on a particular server: define service{ ... check_command check_nrpe!check_myown1_job } and in the nrpe.cfg file we define that command: command[check_myown1_job]=/usr/lib/nagios/plugins/check_procs -c 1:1 -a /home/myuser01/src/server/scripts/sync_api/ make_async_xmlrequest_libraries.py We just upgraded NRPE and this check started failing - it reported 0 processes. However, the process was running and the command works fine when run locally on the target machine. After some trial and error, I discovered that the arguments to the target process seem to be cut off. This works: command[check_myown1_job]=/usr/lib/nagios/plugins/check_procs -c 1:1 -a /home/myuser01/src/server/scripts/sync_api/make_as but this fails: command[check_myown1_job]=/usr/lib/nagios/plugins/check_procs -c 1:1 -a /home/myuser01/src/server/scripts/sync_api/make_asy The commands are identical except that the second one has one additional character ('y'). Any command longer than the first one fails. This also works: command[check_myown1_job]=/usr/lib/nagios/plugins/check_procs -c 1:1 -a make_as but this also fails: command[check_myown1_job]=/usr/lib/nagios/plugins/check_procs -c 1:1 -a make_asy So, it does not seem to be a problem in the argument string passed in, but rather in the arguments read from the remote machine. Is there some setting that controls size of the argument on the target machine that will allow me to specify the entire argument? Bob Swerdlow Chief Engineer Emergent Discovery rswerd...@emergentdiscovery.com 207-774-3100 -- This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] NRPE: No output returned from plugin error
Hi all, I have this weird trouble with getting nrpe agents work. My nagios server hosts on Debian box while agents on Debian and Centos (all installed from official binary packages) and the problem is check_nrpe always returns this NRPE: No output returned from plugin error when I check NRPE on any Centos host and this is true with all plugins - all of them does not return anything. I turned on debug at one Centos host but still it does not show me anything, when I run from nagios host: ./check_nrpe -H centos.host.com -c check_load I always get NRPE: Unable to read output and there is nothing in syslog at agent's host in spite of debug is on. My assumption was that command definitions on Centos host side use path to plugins that is different from Debian, for example: command[check_load]=/usr/lib/nagios/plugins/check_load -w 15,10,5 -c 30,25,20 [Debian host] command[check_load]=/usr/lib64/nagios/plugins/check_load -w 15,10,5 -c 30,25,20 [Centos host] but I made symbolic link so that plugins could be called by the same path - it didn't help. When I run command locally, all works just fine: su nrpe -c /usr/lib/nagios/plugins/check_load -w 15,10,5 -c 30,25,20 OK - load average: 1.28, 0.97, 0.97|load1=1.280;15.000;30.000;0; load5=0.970;10.000;25.000;0; load15=0.970;5.000;20.000;0; while from nagios server: ./check_nrpe -H centos.host.com -c check_load NRPE: Unable to read output The weird part of it is that all plugins work fine on debian hosts. Nagios uses the same host, service and command definitions for all monitored hosts (both debian and centos) and I really wonder what's wrong with centos nrpe agents :/ If anyone have any ideas, please try to help. P.S. I use Nagios server v.3 (from Debian lenny) and Nrpe agents versions are the same on Debian and Centos (v.2.12). -- best regards, Yuris Linux System Engineer, SMTP.com -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] NRPE: No output returned from plugin error
yuris wrote: Hi all, I have this weird trouble with getting nrpe agents work. My nagios server hosts on Debian box while agents on Debian and Centos (all installed from official binary packages) and the problem is check_nrpe always returns this NRPE: No output returned from plugin error when I check NRPE on any Centos host and this is true with all plugins - all of them does not return anything. I turned on debug at one Centos host but still it does not show me anything, when I run from nagios host: ./check_nrpe -H centos.host.com -c check_load I always get NRPE: Unable to read output and there is nothing in syslog at agent's host in spite of debug is on. My assumption was that command definitions on Centos host side use path to plugins that is different from Debian, for example: command[check_load]=/usr/lib/nagios/plugins/check_load -w 15,10,5 -c 30,25,20 [Debian host] command[check_load]=/usr/lib64/nagios/plugins/check_load -w 15,10,5 -c 30,25,20 [Centos host] but I made symbolic link so that plugins could be called by the same path - it didn't help. When I run command locally, all works just fine: su nrpe -c /usr/lib/nagios/plugins/check_load -w 15,10,5 -c 30,25,20 OK - load average: 1.28, 0.97, 0.97|load1=1.280;15.000;30.000;0; load5=0.970;10.000;25.000;0; load15=0.970;5.000;20.000;0; while from nagios server: ./check_nrpe -H centos.host.com -c check_load NRPE: Unable to read output The weird part of it is that all plugins work fine on debian hosts. Nagios uses the same host, service and command definitions for all monitored hosts (both debian and centos) and I really wonder what's wrong with centos nrpe agents :/ If anyone have any ideas, please try to help. P.S. I use Nagios server v.3 (from Debian lenny) and Nrpe agents versions are the same on Debian and Centos (v.2.12). from first look it seems that one of your server has SSL installed on it and the other does not and nagios -by default - assumes ( command definitions) to use nrpe with ssl . Try to execute the command on the CentOS hosts , but add -n after the host IP , and see if that will help . Assaf -- Never,Ever Cut A Deal With a Dragon -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] NRPE: No output returned from plugin error
Assaf Flatto wrote: yuris wrote: Hi all, I have this weird trouble with getting nrpe agents work. My nagios server hosts on Debian box while agents on Debian and Centos (all installed from official binary packages) and the problem is check_nrpe always returns this NRPE: No output returned from plugin error when I check NRPE on any Centos host and this is true with all plugins - all of them does not return anything. I turned on debug at one Centos host but still it does not show me anything, when I run from nagios host: ./check_nrpe -H centos.host.com -c check_load I always get NRPE: Unable to read output and there is nothing in syslog at agent's host in spite of debug is on. My assumption was that command definitions on Centos host side use path to plugins that is different from Debian, for example: command[check_load]=/usr/lib/nagios/plugins/check_load -w 15,10,5 -c 30,25,20 [Debian host] command[check_load]=/usr/lib64/nagios/plugins/check_load -w 15,10,5 -c 30,25,20 [Centos host] but I made symbolic link so that plugins could be called by the same path - it didn't help. When I run command locally, all works just fine: su nrpe -c /usr/lib/nagios/plugins/check_load -w 15,10,5 -c 30,25,20 OK - load average: 1.28, 0.97, 0.97|load1=1.280;15.000;30.000;0; load5=0.970;10.000;25.000;0; load15=0.970;5.000;20.000;0; while from nagios server: ./check_nrpe -H centos.host.com -c check_load NRPE: Unable to read output The weird part of it is that all plugins work fine on debian hosts. Nagios uses the same host, service and command definitions for all monitored hosts (both debian and centos) and I really wonder what's wrong with centos nrpe agents :/ If anyone have any ideas, please try to help. P.S. I use Nagios server v.3 (from Debian lenny) and Nrpe agents versions are the same on Debian and Centos (v.2.12). from first look it seems that one of your server has SSL installed on it and the other does not and nagios -by default - assumes ( command definitions) to use nrpe with ssl . Try to execute the command on the CentOS hosts , but add -n after the host IP , and see if that will help . Assaf Clarification : ./check_nrpe -H centos.host.com -n -c check_load -- Never,Ever Cut A Deal With a Dragon -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] NRPE: No output returned from plugin error
well, ./check_nrpe -H centos.host.com -n -c check_load CHECK_NRPE: Error receiving data from daemon and I see this in centos.host syslog nrpe[22928]: Error: Could not complete SSL handshake. 1 when issue command with -n option. -- wbr, yuris Assaf Flatto wrote: Assaf Flatto wrote: yuris wrote: Hi all, I have this weird trouble with getting nrpe agents work. My nagios server hosts on Debian box while agents on Debian and Centos (all installed from official binary packages) and the problem is check_nrpe always returns this NRPE: No output returned from plugin error when I check NRPE on any Centos host and this is true with all plugins - all of them does not return anything. I turned on debug at one Centos host but still it does not show me anything, when I run from nagios host: ./check_nrpe -H centos.host.com -c check_load I always get NRPE: Unable to read output and there is nothing in syslog at agent's host in spite of debug is on. My assumption was that command definitions on Centos host side use path to plugins that is different from Debian, for example: command[check_load]=/usr/lib/nagios/plugins/check_load -w 15,10,5 -c 30,25,20 [Debian host] command[check_load]=/usr/lib64/nagios/plugins/check_load -w 15,10,5 -c 30,25,20 [Centos host] but I made symbolic link so that plugins could be called by the same path - it didn't help. When I run command locally, all works just fine: su nrpe -c /usr/lib/nagios/plugins/check_load -w 15,10,5 -c 30,25,20 OK - load average: 1.28, 0.97, 0.97|load1=1.280;15.000;30.000;0; load5=0.970;10.000;25.000;0; load15=0.970;5.000;20.000;0; while from nagios server: ./check_nrpe -H centos.host.com -c check_load NRPE: Unable to read output The weird part of it is that all plugins work fine on debian hosts. Nagios uses the same host, service and command definitions for all monitored hosts (both debian and centos) and I really wonder what's wrong with centos nrpe agents :/ If anyone have any ideas, please try to help. P.S. I use Nagios server v.3 (from Debian lenny) and Nrpe agents versions are the same on Debian and Centos (v.2.12). from first look it seems that one of your server has SSL installed on it and the other does not and nagios -by default - assumes ( command definitions) to use nrpe with ssl . Try to execute the command on the CentOS hosts , but add -n after the host IP , and see if that will help . Assaf Clarification : ./check_nrpe -H centos.host.com -n -c check_load -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] NRPE: No output returned from plugin error
openssl installed on all hosts, so it seems unlikely that this is the reason.. -- wbr, yuris yuris wrote: well, ./check_nrpe -H centos.host.com -n -c check_load CHECK_NRPE: Error receiving data from daemon and I see this in centos.host syslog nrpe[22928]: Error: Could not complete SSL handshake. 1 when issue command with -n option. -- wbr, yuris Assaf Flatto wrote: Assaf Flatto wrote: yuris wrote: Hi all, I have this weird trouble with getting nrpe agents work. My nagios server hosts on Debian box while agents on Debian and Centos (all installed from official binary packages) and the problem is check_nrpe always returns this NRPE: No output returned from plugin error when I check NRPE on any Centos host and this is true with all plugins - all of them does not return anything. I turned on debug at one Centos host but still it does not show me anything, when I run from nagios host: ./check_nrpe -H centos.host.com -c check_load I always get NRPE: Unable to read output and there is nothing in syslog at agent's host in spite of debug is on. My assumption was that command definitions on Centos host side use path to plugins that is different from Debian, for example: command[check_load]=/usr/lib/nagios/plugins/check_load -w 15,10,5 -c 30,25,20 [Debian host] command[check_load]=/usr/lib64/nagios/plugins/check_load -w 15,10,5 -c 30,25,20 [Centos host] but I made symbolic link so that plugins could be called by the same path - it didn't help. When I run command locally, all works just fine: su nrpe -c /usr/lib/nagios/plugins/check_load -w 15,10,5 -c 30,25,20 OK - load average: 1.28, 0.97, 0.97|load1=1.280;15.000;30.000;0; load5=0.970;10.000;25.000;0; load15=0.970;5.000;20.000;0; while from nagios server: ./check_nrpe -H centos.host.com -c check_load NRPE: Unable to read output The weird part of it is that all plugins work fine on debian hosts. Nagios uses the same host, service and command definitions for all monitored hosts (both debian and centos) and I really wonder what's wrong with centos nrpe agents :/ If anyone have any ideas, please try to help. P.S. I use Nagios server v.3 (from Debian lenny) and Nrpe agents versions are the same on Debian and Centos (v.2.12). from first look it seems that one of your server has SSL installed on it and the other does not and nagios -by default - assumes ( command definitions) to use nrpe with ssl . Try to execute the command on the CentOS hosts , but add -n after the host IP , and see if that will help . Assaf Clarification : ./check_nrpe -H centos.host.com -n -c check_load -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] NRPE: No output returned from plugin error
Yuris, You could try compiling nrpe without ssl and then in your commands.cfg file have something like this; *# 'check_nrpe' command definition define command{ command_namecheck_nrpe_no_ssl command_line$USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ -n } * Then in your specific service definitions have the check_command line read; *check_command check_nrpe_no_ssl!put-whatever-plugin* Hope this helps. -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] NRPE: No output returned from plugin error
This is what I did. Some of my servers have nrpe compiled with SSL and some without so I just created two commands in commands.cfg for it -- one to check with NRPE with SSL and one without. _ ___ / __ \ | / / ___/ Robert Wolfe robert.wo...@robertwolfe.org / /_/ / | /| / /\__ \ Robert Wolfe Software / _, _/| |/ |/ /___/ / Web : http://www.robertwolfe.org http://www.robertwolfe.org/ /_/ |_| |__/|__/// Debian Blog : http://debian.robertwolfe.org http://debian.robertwolfe.org/ From: Julius Kidubuka [mailto:juki.e...@gmail.com] Sent: Thu 7/1/2010 7:49 AM To: yu...@smtp.com; Nagios Users List Subject: Re: [Nagios-users] NRPE: No output returned from plugin error Yuris, You could try compiling nrpe without ssl and then in your commands.cfg file have something like this; # 'check_nrpe' command definition define command{ command_namecheck_nrpe_no_ssl command_line$USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ -n } Then in your specific service definitions have the check_command line read; check_command check_nrpe_no_ssl!put-whatever-plugin Hope this helps. -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] NRPE: No output returned from plugin error
I had a very similar problem with checks coming from Ubuntu 8.04 and 10.04 destined for RHEL. I had to disable SSL on both ends and set the encryption method to 0. I would also check the NRPE config to make sure the passphrases match if you are using them. Greg Pangrazio On Thu, Jul 1, 2010 at 6:49 AM, Julius Kidubuka juki.e...@gmail.com wrote: Yuris, You could try compiling nrpe without ssl and then in your commands.cfg file have something like this; # 'check_nrpe' command definition define command{ command_name check_nrpe_no_ssl command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ -n } Then in your specific service definitions have the check_command line read; check_command check_nrpe_no_ssl!put-whatever-plugin Hope this helps. -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] NRPE: No output returned from plugin error
I strongly doubt it has any relation to ssl: NRPE - Nagios Remote Plugin Executor Copyright (c) 1999-2008 Ethan Galstad (nag...@nagios.org) Version: 2.12 Last Modified: 03-10-2008 License: GPL v2 with exemptions (-l for more info) SSL/TLS Available: Anonymous DH Mode, OpenSSL 0.9.6 or higher required TCP Wrappers Available this is output from nrpe (Centos binary package) that shows it's compiled with ssl/tls support. Openssl library is installed as well. Anyway. I tried suggested workaround, defining check_nrpe_no_ssl as $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ -n and defining service as check_nrpe_no_ssl!check_load and running nrpe deamon no centos host with -n option - result is just the same, NRPE: Unable to read output However, when I do ./check_nrpe -H centos.host.com it does return me nrpe version correctly (NRPE v2.12). From all this steps I figured that it is not about ssl at all - nrpe version is returned correctly with ssl and without it. Interesting, that in nagios server debug log I see that remote NRPE returns output that nagios check_nrpe cannot parse, it returns similar output, that I would get if call /usr/sbin/nrpe without arguments: [1277983505.131702] [016.2] [pid=17495] Parsing check output... [1277983505.131711] [016.2] [pid=17495] Short Output: (No output returned from plugin) [1277983505.131719] [016.2] [pid=17495] Long Output: NRPE Plugin for Nagios\nCopyright (c) 1999-2008 Ethan Galstad (nag...@nagios.org)\nVersion: 2.12\nLast Modified: 03-10-2008\nLicense: GPL v2 with exemptions (-l for more info)\nSSL/TLS Available: Anonymous DH Mode, OpenSSL 0.9.6 or higher required\n\nUsage: check_nrpe -H host [-n] [-u] [-p port] [-t timeout] [-c command] [-a arglist...]\n\nOptions:\n -n = Do no use SSL\n -u = Make socket timeouts return an UNKNOWN state instead of CRITICAL\n host = The address of the host running the NRPE daemon\n [port] = The port on which the daemon is running (default=5666)\n [timeout] = Number of seconds before connection times out (default=10)\n [command] = The name of the command that the remote daemon should run\n [arglist] = Optional arguments that should be passed to the command. Multiple\n arguments should be separated by a space. If provided, this must be\n the last option supplied on the command line.\n -h,--helpPrint this short help.\n -l,--license Print licensing information.\n -n,--no-ssl Do not initial an ssl handshake with the server, talk in plaintext.\n\nNote:\nThis plugin requires that you have the NRPE daemon running on the remote host.\nYou must also have configured the daemon to associate a specific plugin command\nwith the [command] option you are specifying here. Upon receipt of the\n[command] argument, the NRPE daemon will run the appropriate plugin command and\nsend the plugin output and return code back to *this* plugin. This allows you\nto execute plugins on remote hosts and 'fake' the results to make Nagios think\nthe plugin is being run locally.\n\n so that seems to me as if NRPE does not understand arguments from check_nrpe or something... any ideas? -- best regards, yuris Greg Pangrazio wrote: I had a very similar problem with checks coming from Ubuntu 8.04 and 10.04 destined for RHEL. I had to disable SSL on both ends and set the encryption method to 0. I would also check the NRPE config to make sure the passphrases match if you are using them. Greg Pangrazio On Thu, Jul 1, 2010 at 6:49 AM, Julius Kidubuka juki.e...@gmail.com wrote: Yuris, You could try compiling nrpe without ssl and then in your commands.cfg file have something like this; # 'check_nrpe' command definition define command{ command_namecheck_nrpe_no_ssl command_line$USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ -n } Then in your specific service definitions have the check_command line read; check_command check_nrpe_no_ssl!put-whatever-plugin Hope this helps. -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net
Re: [Nagios-users] NRPE: No output returned from plugin error
yuris wrote: I strongly doubt it has any relation to ssl: NRPE - Nagios Remote Plugin Executor Copyright (c) 1999-2008 Ethan Galstad (nag...@nagios.org) Version: 2.12 Last Modified: 03-10-2008 License: GPL v2 with exemptions (-l for more info) SSL/TLS Available: Anonymous DH Mode, OpenSSL 0.9.6 or higher required TCP Wrappers Available this is output from nrpe (Centos binary package) that shows it's compiled with ssl/tls support. Openssl library is installed as well. Anyway. I tried suggested workaround, defining check_nrpe_no_ssl as $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ -n and defining service as check_nrpe_no_ssl!check_load and running nrpe deamon no centos host with -n option - result is just the same, NRPE: Unable to read output However, when I do ./check_nrpe -H centos.host.com it does return me nrpe version correctly (NRPE v2.12). From all this steps I figured that it is not about ssl at all - nrpe version is returned correctly with ssl and without it. Interesting, that in nagios server debug log I see that remote NRPE returns output that nagios check_nrpe cannot parse, it returns similar output, that I would get if call /usr/sbin/nrpe without arguments: so that seems to me as if NRPE does not understand arguments from check_nrpe or something... any ideas? -- best regards, yuris Yuris.. Can you upload a sample nrpe.cfg from one of the centos servers ? That might shed more light on the issue ? -- Never,Ever Cut A Deal With a Dragon -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] NRPE: No output returned from plugin error
There is nrpe.cfg: log_facility=daemon pid_file=/var/run/nrpe.pid server_port=5666 nrpe_user=nrpe nrpe_group=nrpe allowed_hosts=nagios.domain dont_blame_nrpe=0 debug=1 command_timeout=60 connection_timeout=300 command[check_users]=/usr/lib64/nagios/plugins/check_users -w 5 -c 10 command[check_load]=/usr/lib64/nagios/plugins/check_load -w 15,10,5 -c 30,25,20 command[check_disk]=/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p /dev/mapper/VolGroup00-LogVol00 command[check_zombie_procs]=/usr/lib64/nagios/plugins/check_procs -w 5 -c 10 -s Z command[check_total_procs]=/usr/lib64/nagios/plugins/check_procs -w 200 -c 300 -- wbr, yuris Assaf Flatto wrote: yuris wrote: I strongly doubt it has any relation to ssl: NRPE - Nagios Remote Plugin Executor Copyright (c) 1999-2008 Ethan Galstad (nag...@nagios.org) Version: 2.12 Last Modified: 03-10-2008 License: GPL v2 with exemptions (-l for more info) SSL/TLS Available: Anonymous DH Mode, OpenSSL 0.9.6 or higher required TCP Wrappers Available this is output from nrpe (Centos binary package) that shows it's compiled with ssl/tls support. Openssl library is installed as well. Anyway. I tried suggested workaround, defining check_nrpe_no_ssl as $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ -n and defining service as check_nrpe_no_ssl!check_load and running nrpe deamon no centos host with -n option - result is just the same, NRPE: Unable to read output However, when I do ./check_nrpe -H centos.host.com it does return me nrpe version correctly (NRPE v2.12). From all this steps I figured that it is not about ssl at all - nrpe version is returned correctly with ssl and without it. Interesting, that in nagios server debug log I see that remote NRPE returns output that nagios check_nrpe cannot parse, it returns similar output, that I would get if call /usr/sbin/nrpe without arguments: so that seems to me as if NRPE does not understand arguments from check_nrpe or something... any ideas? -- best regards, yuris Yuris.. Can you upload a sample nrpe.cfg from one of the centos servers ? That might shed more light on the issue ? -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] NRPE: No output returned from plugin error
command[check_users]=/usr/lib64/nagios/plugins/check_users -w 5 -c 10 command[check_load]=/usr/lib64/nagios/plugins/check_load -w 15,10,5 -c 30,25,20 command[check_disk]=/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p /dev/mapper/VolGroup00-LogVol00 command[check_zombie_procs]=/usr/lib64/nagios/plugins/check_procs -w 5 -c 10 -s Z command[check_total_procs]=/usr/lib64/nagios/plugins/check_procs -w 200 -c 300 Have you tried those without double quotes? If 'check_nrpe -H host' works, but 'check_nrpe -H host -c command' doesn't, it's a problem with the plugin, pure and simple. Be it path, incorrect usage, bad arguments, whatever, it's complaining about the execution of (or inability to execute) the plugin. Benny -- Well, we *could* hunt down the perpetrators, pool some $$, and hire 3 or 4 baseball-bat wielding professional explainers to go explain our position to them. Figuring out how to do so without breaking any laws is the tough part... -- Valdis Kletnieks, 2009-01-23 -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] NRPE: No output returned from plugin error
Bingo! I suspected that it's something really stupid, like typo or something like almost always in cases like this! thanks everybody involved and especially Benny :) -- wbr, yuris C. Bensend wrote: command[check_users]=/usr/lib64/nagios/plugins/check_users -w 5 -c 10 command[check_load]=/usr/lib64/nagios/plugins/check_load -w 15,10,5 -c 30,25,20 command[check_disk]=/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p /dev/mapper/VolGroup00-LogVol00 command[check_zombie_procs]=/usr/lib64/nagios/plugins/check_procs -w 5 -c 10 -s Z command[check_total_procs]=/usr/lib64/nagios/plugins/check_procs -w 200 -c 300 Have you tried those without double quotes? If 'check_nrpe -H host' works, but 'check_nrpe -H host -c command' doesn't, it's a problem with the plugin, pure and simple. Be it path, incorrect usage, bad arguments, whatever, it's complaining about the execution of (or inability to execute) the plugin. Benny -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] nrpe configuration help
All, I need some suggestion for nrpe configuration. I have 3 different kind of architecture in my setup. I have 32 bit linux machine (plugins installed at /usr/lib/nagios/plugins directory) , 64 bit linux machine (plugins installed /usr/lib64/nagios/plugins directory), solaris machine (plugins installed at /opt/libexec directory) In my nrpe.conf file I would three definitions like below [check_something]=/usr/lib/nagios/plugins/check_something [check_something_x64]= /usr/lib64/nagios/plugins/check_something [cehck_something_unix]=/opt/libexec/check_somthing in my service definition, I would name them differently and call the command file, for example I would have a check disk, disk_x64, disk_unix. In commands.cfg file I would call them like command_name check_remote command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ However, now new requirements came in, where disk, disk_x64, disk_unix must have same service name. I need to find a clever way define service disk and call different nrpe command based on architecture. Can someone please help me with this. Thanks -- Cordially, Shadhin Rahman -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] nrpe configuration help
Could you define one wrapper service that executes one of the others based on an argument passed to it? shadih rahman wrote: All, I need some suggestion for nrpe configuration. I have 3 different kind of architecture in my setup. I have 32 bit linux machine (plugins installed at /usr/lib/nagios/plugins directory) , 64 bit linux machine (plugins installed /usr/lib64/nagios/plugins directory), solaris machine (plugins installed at /opt/libexec directory) In my nrpe.conf file I would three definitions like below [check_something]=/usr/lib/nagios/plugins/check_something [check_something_x64]= /usr/lib64/nagios/plugins/check_something [cehck_something_unix]=/opt/libexec/check_somthing in my service definition, I would name them differently and call the command file, for example I would have a check disk, disk_x64, disk_unix. In commands.cfg file I would call them like command_name check_remote command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ However, now new requirements came in, where disk, disk_x64, disk_unix must have same service name. I need to find a clever way define service disk and call different nrpe command based on architecture. Can someone please help me with this. Thanks -- Cordially, Shadhin Rahman -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null