ms exchange services monitoring

Marc Powell marc at ena.com
Thu Mar 11 19:21:15 CET 2004


On Thursday, March 11, 2004 11:16 AM, James Bowes shared with us:

> Hi all.
> 
> I have set up Nagios (1.2) on Red Hat 8.0. It's working fine for
> simple disk checks using nsclient. Now comes the fun part - checking
> Windows Exchange related services.  
> 
> After having gone through the documentation, FAQ's and reading
> through Square Box's site I attempted to check the services I wanted
> to know about like this:  
> 
> # Service definition
> define service  {
>         use                             generic-service ; Name of
> service template to use
> 
>         host_name                       sim.testbox.net
>         service_description             check_nt_service
>         is_volatile                     0
>         check_period                    24x7
>         max_check_attempts              3
>         normal_check_interval           5
>         retry_check_interval            1
>         contact_groups                  nt-admins
>         notification_interval           120
>         notification_period             24x7
>         notification_options            c,r
>         check_command                   check_nt_service!Microsoft
> Exchange Information Store
>         }
> 
> The related hosts.cfg and escalations.cfg are configured fine and no
> errors occur when I run the command: 
> 
> /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
> 
> I am able to reload the nagios config without problems. After the
> service check, a service warning shows the service I am checking is
> unknown.  
> 
> Does anyone have an idea for me to try with this?


What does your check_nt_service command definition look like? What
happens if you run that command as the nagios user from the command
line, filling in all the appropriate variables? If you're using
check_nt, I suspect that the check is being truncated to "Microsoft".
You may need to put the service description in quotes in your command
definition (i.e. "$ARG1$"). A caveat here is that I'm not familiar with
checking services via check_nt so I'm not sure if your nameing
convention is even right. I usually use -v PROCSTATE to check individual
processes.

--
Marc



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list