LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   service checks in nagios not working (https://www.linuxquestions.org/questions/linux-software-2/service-checks-in-nagios-not-working-4175410733/)

melborden 06-10-2012 09:35 AM

service checks in nagios not working
 
I recently set up nagios on my Fedora 14 virtual box running Vplayer 4.0.3 and configured nagios to monitor another Fedora 14 host and the status indicates it is up, but all the service status details (c:\ drive space, CPU load, memory usage, etc) are displaying a critical error. The status information statest that there is a socket timeout after 10 seconds. Can anyone guide me in the right direction on this?

acid_kewpie 06-11-2012 03:37 AM

c:\ space? on Linux?? Hmm??

How are you trying to connect from the server to the client? Nagios is, IMHO, utter junk, and you have to externally provide a network mechanism to transfer that data. By default, people use NPRE, but that sucks big time too. I'd suggest using the check_by_ssh (i think it's called that) method instead of check_nrpe as at least that way you're not opening up another massively insecure service to the network.

Note that you should be able to run 1) the check plugin ON the client, and then 2) the check plugin on the server via your remote plugin, and then only then 3) checking from Nagios. make sure things work in that order and troubleshoot appropriately at each level.

melborden 06-11-2012 11:35 AM

Thank you for your response. will try what you suggest and let you know.

melborden 06-11-2012 12:03 PM

Whoa, Chris, I did not mention to you that the client is not Unix or Linux, but Windows 2008R2 64-bit. I installed nsclient on the box. I can see on the status that it is up and my Nagios box is successfully showing the periodic ping results. I believe the Windows configuration file looks good for each of the service configurations. Sorry I did not include this information earlier.

Mel

acid_kewpie 06-12-2012 01:34 AM

you said you configured a FC14 server to monitoring another fc14 host...

anyway.... so can you run the check script for the windows checker from the server directly? Is there a firewall? can you telnet to whatever port it's listening on? (I recall it's something like 50000?)

melborden 06-18-2012 10:37 AM

Sorry I haven't responded sooner. Will check what you suggested. Also researching a little bit on NPRE. I am a somewhat Linux newbie and some of the items are a bit unfamilliar to me.

Habitual 06-20-2012 11:23 AM

What's the value of "allowed_hosts=" in NSC.INI?


All times are GMT -5. The time now is 03:04 PM.