check_nrpe

Hi there!

I configured a setup to control the availability of Exchange Database, Replication Health of the database and If the Public Folders are mounted or not…

from command line everything works fine as you can see:

[quote] ./check_nrpe -t 20 -c check_replication_health -H 172.20.1.11 OK: All replication tests passed.

./check_nrpe -t 20 -c check_publicfolders_mounted -H 172.20.1.11
OK: Public folders are mounted.

./check_nrpe -t 20 -c check_mailbox_health -H 172.20.1.11
OK: All Mailbox Databases are mounted and healthy.
[/quote]

However in my WebUI it shows:

**UNKNOWN: No handler for that command **

http://img695.imageshack.us/i/xchox.jpg/


My command in commands.cfg looks like this:
# ‘check_nrpe’ command definition
define command {
command_name check_nrpe
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c ARG1$
}

My service definitions look like this:

**define service{
use generic-service
host_name s-xch-01
service_description MailBoxHealth
check_command check_nrpe!-t 20 -c check_mailbox_health
}

define service{
use generic-service
host_name s-xch-01
service_description Public Folders Mounted
check_command check_nrpe! -t 20 -c check_publicfolders_mounted
}

define service{
use generic-service
host_name s-xch-01
service_description Replication Health
check_command check_nrpe!-t 20 -c check_replication_health
}**

Any help would be highly appreciated!
Thanks in advance!

Grtz,

Goldie

Ok,

Got it to work, sorry for the stupid mistake, I looked over it again and again.
Went smoking a cigarette, came back and instantly saw my mistake… sometimes it is good to let something go for some minutes…

The fault/error was in the command definition:

‘check_nrpe’ command definition

define command {
command_name check_nrpe
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c **$**ARG1$
}

I forgot a dollar sign before my ARG1$

Hope this can be helpful for someone…someday

Hello,
If I have a question about a check that is being ran by NRPE, can I post it here, or start a new post all together. Please advise.
Thank you very much.

-JDSavage