Hi Florent,
Thank you for your help. I tried what you said.
But I am still not sure what I need to put in services.cfg.
For the hosts I have made a hostgroup by the name "Sybase" in
hostgroups.cfg.
I want it to pick names from this group and display result for all.
So my services.cfg looks like-
Define service{
Use local-service
Hostgroup_name Sybase
Service_description sybasesql
Check_command check_sybase
I know this is wrong. And it is giving me the error "return code of 139
is out of bounds." On the web interface.
Can u please help with this?
Regards,
Lalita
________________________________
From: Florent HOUBART [mailto:[EMAIL PROTECTED]
Sent: Friday, June 22, 2007 5:15 PM
To: Lalita Drolia
Cc: nagios-users@lists.sourceforge.net
Subject: RE : [Nagios-users] Sybase check on windows servers
Hello Lalita,
>
>This means I will have to pass that particular service name
individually
>to check_nt.
You can use Nagios macros for this. Use $HOSTNAME$ to get the name of
the service's associatehost. For this to work, you have of course to
name your host with their hostname.
>Is there any way to resolve this so that I can just mention the
>hostgroup name and need not write separate checks.
You may have to define a command to use this macro, like the following :
define command {
command_name check_sybase
command_line /usr/local/nagios/libexec/check_nt -v SERVICESTATE
-d SHOWALL -l STBSQL_$HOSTNAME$
}
and use this command in your service definition.
Hope it will help,
Florent
Notice: This email message, together with any attachments, may contain
information of BEA Systems, Inc., its subsidiaries and affiliated
entities, that may be confidential, proprietary, copyrighted and/or legally
privileged, and is intended solely for the use of the individual or entity
named in this message. If you are not the intended recipient, and have received
this message in error, please immediately return this by email and then delete
it.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Nagios-users mailing list
Nagios-users@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