Search found 188 matches

by jfrickson
Fri May 05, 2017 8:57 am
Forum: Open Source Nagios Projects
Topic: Unable to execute a application specific cmd using check_nrp
Replies: 35
Views: 22229

Re: Unable to execute a application specific cmd using check

It looks like some of that output is from the line sudo /<Path to cmd>/watchqueue 1 at the top. Try changing that to sudo /<Path to cmd>/watchqueue 1 &>/dev/null and see how that works.

If that works, try changing the sed command back and try it again.
by jfrickson
Wed May 03, 2017 9:53 am
Forum: Open Source Nagios Projects
Topic: Unable to execute a application specific cmd using check_nrp
Replies: 35
Views: 22229

Re: Unable to execute a application specific cmd using check

Ok, it sounds like we're making progress.

Those junk characters look like terminal control sequences (move cursor, set colors, etc.).

Try replacing this part: /bin/sed 's/(//g' with this: /bin/sed 's/\x1b[\[(0-9a-zA-Z;]*//g and see if that gets rid of the garbage.
by jfrickson
Mon May 01, 2017 9:06 pm
Forum: Open Source Nagios Projects
Topic: Unable to execute a application specific cmd using check_nrp
Replies: 35
Views: 22229

Re: Unable to execute a application specific cmd using check

In your source for check_by_ssh.c where it checks for -z, change it to use -tt instead of -t and see if that makes any difference.
by jfrickson
Mon May 01, 2017 2:29 pm
Forum: Open Source Nagios Projects
Topic: Unable to execute a application specific cmd using check_nrp
Replies: 35
Views: 22229

Re: Unable to execute a application specific cmd using check

The nrpe process on the remote does not even try to allocate a tty and is probably unable to do so. I can check into that further. But right now it looks like the only option is to use check_by_ssh.

Is there some reason why you want to use nrpe instead of check_by_ssh?
by jfrickson
Thu Apr 27, 2017 10:04 am
Forum: Open Source Nagios Projects
Topic: nagios plugin to monitor HP hardware and HP Disk array
Replies: 5
Views: 6172

Re: nagios plugin to monitor HP hardware and HP Disk array

Try https://exchange.nagios.org/directory/Plugins/Hardware/Server-Hardware/HP-%28Compaq%29 for a more limited list of checks. Also, in the "Search" box at http://exchange.nagios.org (upper right corner), enter: smartarray for plugins that check disks/RAID/Controller hp ilo for plugins that...
by jfrickson
Wed Apr 26, 2017 9:08 am
Forum: Open Source Nagios Projects
Topic: Nagios Core 4.3.1
Replies: 1
Views: 1165

Re: Nagios Core 4.3.1

hi we use nagios core 4.3.1 and plugins 2.2.1. after our upgrade, quick search not working and return below error: It appears as though you do not have permission to view information for any of the hosts you requested... That is fixed in the pending release. You can get it at https://github.com/Nag...
by jfrickson
Tue Apr 25, 2017 9:40 am
Forum: Open Source Nagios Projects
Topic: nagios plugin to monitor HP hardware and HP Disk array
Replies: 5
Views: 6172

Re: nagios plugin to monitor HP hardware and HP Disk array

There are a lot of HP plugins at the exchange. Start here for a list: https://exchange.nagios.org/index.php?o ... rchword=HP
by jfrickson
Mon Apr 24, 2017 11:23 am
Forum: Open Source Nagios Projects
Topic: Need help with service description
Replies: 8
Views: 4853

Re: Need help with service description

jim, I wrote the following very basic check: ---------------------- Service Description ---------------------- define service{ use local-service host_name host1 service_description My test check check_command check_test max_check_attempts 2 } ---------------------- check_test Script ----------------...
by jfrickson
Fri Apr 21, 2017 3:48 pm
Forum: Nagios XI
Topic: AIX 7.1 - Testing NRPE-CHECK_NRPE: Error - Could not con ...
Replies: 1
Views: 1465

Re: AIX 7.1 - Testing NRPE-CHECK_NRPE: Error - Could not con

nrpe and check_nrpe log to syslog, so check those.

Additionally, you might want to turn on SSL messages. Set ssl_logging=-1 in nrpe.cfg and use the -s 0xff switch on check_nrpe.
by jfrickson
Fri Apr 21, 2017 2:18 pm
Forum: Open Source Nagios Projects
Topic: Unable to execute a application specific cmd using check_nrp
Replies: 35
Views: 22229

Re: Unable to execute a application specific cmd using check

Off-hand, I would say it's a permission problem. Make sure the output is going into a folder that the nagios user has write access to.