Exchange server partial access?

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
jbruyet
Posts: 235
Joined: Wed Dec 28, 2011 12:14 pm

Exchange server partial access?

Post by jbruyet »

Wow, I just came back to see if there were any responses to my post and I can't find my post. I decided I must have just "assumed" I had written it and when started a new post the subject of my missing post populated the subject field.

Anyway, here's my problem. I have an Exchange 2007 server that I'm monitoring with my Nagios server. I'm showing two services, IMAPS and SMTP, that are just fine. I also show two services, IMAP Procs and Mail Queue, that have a status of:

UNKNOWN: No handler for that command

I'm using the stock mail server files at this time (I'm new to Nagios) so I'm not sure why two work and two don't. I also have other Windows server "Connection Refused" problems but I haven't even Googled those yet so I'll work on those next. Any ideas on how to get these other two Exchange services to be "known" by Nagios?

Thanks,

Joe B
User avatar
jsmurphy
Posts: 989
Joined: Wed Aug 18, 2010 9:46 pm

Re: Exchange server partial access?

Post by jsmurphy »

So I guess the first question to ask is have you installed NSClient++ on your windows servers?, second is can you post the command definitions (usually found in commands.cfg under nagios/etc/objects) so I know what exactly it's executing?
jbruyet
Posts: 235
Joined: Wed Dec 28, 2011 12:14 pm

Re: Exchange server partial access?

Post by jbruyet »

Hi jsmurphy. Yes I have NSClient++ installed on my Windows servers. As to the "Command Definitions" you asked for I wasn't able to get a source install working on my Debian server so I had to do a package install and try to figure out how to move things around to get them to work. Here are the two definitions that aren't working on my mail server (they're from my services_nagios2.cfg file):

define service {
hostgroup_name mail-servers
service_description IMAP Procs
check_command check_nt!check_dovecot_procs
use generic-service
notification_interval 0
}

define service {
hostgroup_name mail-servers
service_description Mail Queue
check_command check_nt!check_mailq_postfix
use generic-service
notification_interval 0
}

I was just wondering as I was copying these definitions over; will these definitions work on an Exchange Server 2007 server?

Thanks,

Joe B
User avatar
jsmurphy
Posts: 989
Joined: Wed Aug 18, 2010 9:46 pm

Re: Exchange server partial access?

Post by jsmurphy »

OK i think I see what is going on here, have you defined check_dovecot_procs and check_mailq_postfix in your nsclient++ config? Are these checks meant to operate via NSClient++ at all?

Right now you have it set up for Nagios to ask NSClient++ on the remote server to execute a command called check_dovecot_procs... NSclient++ has no idea what you are talking about and is telling you that it has no event handler in it's config for check_dovecot_procs.
Locked