Search found 17 matches

by theace18
Wed Jun 19, 2013 10:43 am
Forum: Open Source Nagios Projects
Topic: custom Nagios check script not returning value to Nagios
Replies: 17
Views: 10827

Re: custom Nagios check script not returning value to Nagios

WOW! That was it. My sudo settings by default said:

Defaults requiretty

So I commented it out, and now it freakin works. Hallelujah!

Thank you so much for your help!
by theace18
Mon Jun 10, 2013 10:25 am
Forum: Open Source Nagios Projects
Topic: NRPE checks randomly error out
Replies: 5
Views: 1853

Re: NRPE checks randomly error out

Well it turns out that the hard disk on my Hypervisor is going bad. The Hypervisor would randomly just eat up disk I/O and cause only the NRPE checks to error out, even though on the VM server itself, there was no load. Weird.

Anyhow. Thanks for all the help!
by theace18
Fri Jun 07, 2013 3:08 pm
Forum: Open Source Nagios Projects
Topic: NRPE checks randomly error out
Replies: 5
Views: 1853

Re: NRPE checks randomly error out

It'll say:

CHECK_NRPE: Socket timeout after 10 seconds.

What's funny is that the server isn't being taxed, and it never looses ping.
by theace18
Fri Jun 07, 2013 12:13 pm
Forum: Open Source Nagios Projects
Topic: NRPE checks randomly error out
Replies: 5
Views: 1853

NRPE checks randomly error out

Hey Everyone, I'm experiencing some weirdness on a particular host. About 3-4 times a day all NRPE checks on a particular host all of a sudden go critical. I've gone in and restarted the NRPE daemon, but that doesn't seem to fix it.I don't see any weirdness regarding NRPE in /var/log/messages. Any t...
by theace18
Fri Jun 07, 2013 12:07 pm
Forum: Open Source Nagios Projects
Topic: custom Nagios check script not returning value to Nagios
Replies: 17
Views: 10827

Re: custom Nagios check script not returning value to Nagios

Here you go: ############################################################################# # Sample NRPE Config File # Written by: Ethan Galstad (nagios@nagios.org) # # Last Modified: 11-23-2007 # # NOTES: # This is a sample configuration file for the NRPE daemon. It needs to be # located on the rem...
by theace18
Wed Jun 05, 2013 4:40 pm
Forum: Open Source Nagios Projects
Topic: custom Nagios check script not returning value to Nagios
Replies: 17
Views: 10827

Re: custom Nagios check script not returning value to Nagios

Done...Still not working. [root@nas1 nrpe_raid_monitor]# ls -al total 64 drwxr-xr-x 2 root root 58 Jun 5 14:32 . drwxr-xr-x 5 root root 80 May 30 14:21 .. -rw-r--r-- 1 root root 60919 Jun 5 13:47 MegaSAS.log -rwsr-xr-x 1 root root 562 Jun 5 14:32 raid_monitoring_megaraid.sh [root@nas1 nrpe_raid_moni...
by theace18
Wed Jun 05, 2013 3:55 pm
Forum: Open Source Nagios Projects
Topic: custom Nagios check script not returning value to Nagios
Replies: 17
Views: 10827

Re: custom Nagios check script not returning value to Nagios

when I try putting "sudo" in front of the command in the nrpe.cfg file, NRPE replies back on Nagios with an "Unable to Read Output". I have also ensured that the execute bit on the MegaCli64 file is set. [root@nas1 bin]# ls -al|grep MegaCli -rwxr-xr-x 1 root root 2236264 Jun 11 2...
by theace18
Mon Jun 03, 2013 5:04 pm
Forum: Open Source Nagios Projects
Topic: custom Nagios check script not returning value to Nagios
Replies: 17
Views: 10827

Re: custom Nagios check script not returning value to Nagios

I modified my script to utilize the full path for sudo: /usr/bin/sudo. Still doesn't work. NRPE runs on all of our server as a Daemon, not through Xinetd. Below is the nagios line in the /etc/sudoers files: [root@nas1 nagios]# cat /etc/sudoers|grep nagios nagios ALL=(ALL) NOPASSWD: ALL
by theace18
Mon Jun 03, 2013 4:32 pm
Forum: Open Source Nagios Projects
Topic: custom Nagios check script not returning value to Nagios
Replies: 17
Views: 10827

Re: custom Nagios check script not returning value to Nagios

Ah thank you! So entering a little bit of code to output the results helped. I changed the script output both the wc -l and the full MegaCLI64 command output to /tmp/test. #!/bin/sh # script to check the status of the RAID volume on a server with a Megaraid RAID card # Get status of RAID card COUNT=...
by theace18
Mon Jun 03, 2013 3:16 pm
Forum: Open Source Nagios Projects
Topic: check_mysql_plugin returns NULL value
Replies: 8
Views: 4809

Re: check_mysql_plugin returns NULL value

WOW! I must need some sleep or something.

So it turned out that on my service check I still had it doing a NRPE check.

Thank you everyone SO MUCH for your help. This falls under System Administrator error. DOH! :roll: