Re: [Nagios-users] MRTG problem

2007-06-25 Thread Cyrille Bollu
MRTG has a so-called "threshold checking" functionality where it can call 
an external program when a monitored value crosses arbitrary boundaries 
(see http://oss.oetiker.ch/mrtg/doc/mrtg-reference.en.html). Such a 
program might well sends passive check results to Nagios (see 
http://nagios.sourceforge.net/docs/2_0/passivechecks.html) so that it can 
handle the notification part.

However, that's all that I'm aware of about integrating those 2 products 
together; Which I find too limited. For beter integration, I would suggest 
you to use something like Nagiosgrapher together with the check_snmp 
nagios plugin. In such a scenario, Nagios does the SNMP monitoring using 
the check_snmp plugin then sends performance data (see 
http://nagios.sourceforge.net/docs/2_0/perfdata.html) that Nagiosgrapher 
stores in rrd files. In addition, Nagiosgrapher adds links in the Nagios 
interface to rrd graphs (see demo here http://nagios-demo.netways.de/ - 
use guest as login and passwd)

Here in my company we set up Nagios & MRTG about 2 years ago and are now 
moving to Nagiosgrapher because of this bad integration.

HTH,

Cyrille

[EMAIL PROTECTED] a écrit sur 25/06/2007 18:12:49 
:

> That depends on how you want to integrate it. What would you like to
> accomplish?
> 
> > I am a Network Engineer and my company gave me a new project on
> Nagios. I installed 
> > Nagios 2.9 and configured it and added local machines. I now want to
> install MRTG 
> > and integrate with nagios.Please tell me how should i go from here. 
> 
> 
> 
-
> 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
-
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

Re: [Nagios-users] RE : [SPAM?] RE: RE : Sybase check on windows servers

2007-06-25 Thread Lalita Drolia
Hi,

Your last mail helped me to clear my concepts. Thank you :-)

I am trying check_nt from the command line now, with the instructions
you gave.

But I am getting the error "Connection refused. Could not fetch
information from server."

Unable to fix that.

Please help.

Lalita

 

 From: Florent HOUBART [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 25, 2007 7:12 PM
To: Lalita Drolia
Cc: nagios-users@lists.sourceforge.net
Subject: RE : [SPAM?] RE: RE : [Nagios-users] Sybase check on windows
servers

 

Hi,

>Thank you so much for being patient with me. I tried what you said. But
>unfortunately I am still getting the error "return code of 139 is out
of
>bounds".

This mean that there is a problem with the execution of your control.
Did you try to run the command as you defined it in a shell prompt ?

>
>Here is my configuration-
>
>
>Commands.cfg-
>
>define command{
>command_namecheck_sybase
>command_line   $USER1$/check_nt -v SERVICESTATE -d SHOWALL
-l $ARG1$ $ARG2$
>}

I think there is an error here in your definition. Addording to your
service definition, you will run :
$USER1$/check_nt -v SERVICESTATE -d SHOWALL -l 0 SYBSQL_ganges
If you run this, you will get a "Segmentation fault". You lack the name
of the requested host (-H flag) and the syntax of the -l flag is wrong.
A check_nt -h says :

 SERVICESTATE =
  Check the state of one or several services.
  Request a -l parameters with the following syntax:
  -l ,,,...
  You can specify -d SHOWALL in case you want to see working services
  in the returned string.

Your command should be something like :
$USER1$/check_nt -H ganges -v SERVICESTATE -d SHOWALL -l SYBSQL_ganges

You should test it in a shell prompt until you get the expected result,
and then write it in your configuration file. To get the IP address of
the host, you can use the macro $HOSTADDRESS$.

Regards,

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

Re: [Nagios-users] monitoring remote routers on different networks

2007-06-25 Thread Demetri Mouratis
On Mon, 25 Jun 2007, reed wrote:

> On one of my nagios servers hosted by a third party, the monitoring often
> alerts me about bad RTA or lots of packet loss for these multiple routers
> at same time.
>
> It appears that the problem is the local network and not the remote
> routers.

You can use Service dependencies to accomodate this scenario.

http://nagios.sourceforge.net/docs/2_0/dependencies.html

You'd want to add the intermediate router to your 3rd party hosted Nagios 
and then make the target routers dependent on the intermediate.

Or, you could bump up the RTT requirements to the target routers and treat 
the network in between as a slow black box.

Also, check out Smokeping:

http://oss.oetiker.ch/smokeping/

-D

-
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


Re: [Nagios-users] monitoring remote routers on different networks

2007-06-25 Thread Patrick Morris
See the Service Dependencies section of the docs.  It sounds like you
want 
On Mon, 25 Jun 2007, reed wrote:

> I am using nagios 2.9 and monitoring round trip average and packet loss 
> using check_ping plugin. I have multiple networks in different physical 
> locations.
> 
> On one of my nagios servers hosted by a third party, the monitoring often 
> alerts me about bad RTA or lots of packet loss for these multiple routers 
> at same time.
> 
> It appears that the problem is the local network and not the remote 
> routers.
> 
> How can I add a conditional type configurations so I don't get an alert if 
> the multiple remote routers all have same problem at same time?
> 
> Or should I check the third-party's local routers also?
> 
> Any configuration examples of making it so I don't get alerts for my 
> remote routers if the local network has RTA or packet loss problems would 
> be much appreciated. Thanks in advance.

See the Service Dependencies section of the docs.  It sounds like you
want the remote checks to be dependent on the local ones, and not notify
if the local service is in a warning state.  The examples at
http://nagios.sourceforge.net/docs/2_0/dependencies.html should give you
a pretty good idea how to do that.

-
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


[Nagios-users] monitoring remote routers on different networks

2007-06-25 Thread reed
I am using nagios 2.9 and monitoring round trip average and packet loss 
using check_ping plugin. I have multiple networks in different physical 
locations.

On one of my nagios servers hosted by a third party, the monitoring often 
alerts me about bad RTA or lots of packet loss for these multiple routers 
at same time.

It appears that the problem is the local network and not the remote 
routers.

How can I add a conditional type configurations so I don't get an alert if 
the multiple remote routers all have same problem at same time?

Or should I check the third-party's local routers also?

Any configuration examples of making it so I don't get alerts for my 
remote routers if the local network has RTA or packet loss problems would 
be much appreciated. Thanks in advance.


  Jeremy C. Reed

-
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


Re: [Nagios-users] MRTG problem

2007-06-25 Thread Morris, Patrick
That depends on how you want to integrate it. What would you like to
accomplish?

> I am a Network Engineer and my company gave me a new project on
Nagios. I installed 
> Nagios 2.9 and configured it and added local machines. I now want to
install MRTG 
> and integrate with nagios.Please tell me how should i go from here. 


-
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


[Nagios-users] CN=Jason Ellmers/OU=FirstInfo/O=FirstGroup is out of the office.

2007-06-25 Thread Jason Ellmers

I will be Out of the Office
Start Date: 25/06/2007.
End Date: 01/07/2007.


I will be out of the office until 2nd July please contact the service desk
if your enquiry is service based.

For escelations please contact Lee Angell on 07766441659









**
This message is confidential. It may not be disclosed to, or used by, 
anyone other than the addressee. If you receive this message in 
error, please advise us immediately.

Internet email is not necessarily secure. First does not accept
responsibility for changes to any email which occur after the email
has been sent. Attachments to this email could contain software
viruses which could damage your system. First have checked the
attachments for viruses before sending, but you should virus-check
them before opening.

For more information on our range of services or to book your tickets
online, please visit:- http://www.firstgroup.com
**

-
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


[Nagios-users] MRTG problem

2007-06-25 Thread Rahul Thomas Varghese

Hi All,

I am a Network Engineer and my company gave me a new project on Nagios. I
installed Nagios 2.9 and configured it and added local machines. I now want
to install MRTG and integrate with nagios.Please tell me how should i go
from here.

Thanks
Rahul T Varghese
-
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

Re: [Nagios-users] Nagios HTTP monitoring

2007-06-25 Thread Mark.Law
You might try closing the "!" in the service definition and putting
double quotes around the $ARGn$ parameters in the command file.

 

Mark Law
Thomson Global Technology Infrastructure (TGTI)
(734) 913-3775  Phone
(734) 260-5740  Cell
(734) 913- 3500 Fax
[EMAIL PROTECTED]



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jerad
Riggin
Sent: Monday, June 25, 2007 10:05 AM
To: GJP
Cc: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Nagios HTTP monitoring

 

Any idea why this -a switch isn't working?

 

If I do this in a command prompt it works fine: ./check_http -S -H
url.com -a username:password it returns an OK.

 

The same command in nagios won't work (unauthorized).

 

On 6/22/07, Jerad Riggin <[EMAIL PROTECTED]> wrote: 

It's still giving me an unauthorized message.  I've verified the
credentials work for me to get in through a browser.  Is there something
else I could be missing?  

 

On 6/22/07, GJP <[EMAIL PROTECTED]> wrote: 

Jerad,

No entirely, because you feed the arguments to the actual command with
$ARGn$

So in de service definition: 

check_http!site.com!5!admin:password

And the command_line format in command definition (probably
in: /etc/nagios-plugins/config/http.cfg) should be:

command_line/usr/lib/nagios/plugins/check_http -H $ARG1$ -t $ARG2$
-a 
$ARG3$

Be carefull with that "-t 5" btw. That is a very low value to timeout.

Hope it helps.

Regards,

Gerard.

On Friday 22 June 2007 19:17:29 Jerad Riggin wrote:
> So check_http!-H site.com   -t 5 -a admin:password
>
> should be
>
> check_http!-H site.com!-t 5!-a admin:password? 
>
> On 6/22/07, GJP <[EMAIL PROTECTED] > wrote:
> > Jerad,
> >
> > I didn't understand that either. That's why I customized the the 
> > check_http
> > command definition. That way (in my previous example) you can have
your 
> > http
> > checks from any Nagios client. Usefull for instance for  off-site
checks.
> > 
> > Regarding the -a switch. The -a $ARG1$ (or whatever) should be in
your
> > command 
> > definition. And your parms as you 'feed' them to the command in your
> > service
> > definition seperated with "!".
> >
> > Regards,
> >
> > Gerard. 
> >
> > On Friday 22 June 2007 16:59:30 Jerad Riggin wrote:
> > > If I change the hosts.cfg from the IP of the server (10.10.10.7
 ) to the
> >
> > URL 
> >
> > > I'm specifying in services.cfg, it works fine.  The default site
for
> > > 10.10.10.7   is a CRM site which requires
basic auth.  So even though i'm 
> > > specifying a URL in services.cfg, it looks like it's be overridden
by
> >
> > the
> >
> > > hosts.cfg so it can't auth.  What is the point of the -H switch in

> > > services.cfg if it always uses the IP for the host in hosts.cfg?
I
> >
> > tried
> >
> > > that format (-a admin:password) at the end of the check in
> > > services.cfgbut it still failed with unauthorized.
> > >
> > > On 6/22/07, Marc Powell <[EMAIL PROTECTED] > wrote:
> > > > > -Original Message- 
> > > > > From: [EMAIL PROTECTED] [mailto:
> >
> > nagios-users-
> >
> > > > > [EMAIL PROTECTED] On Behalf Of Jerad Riggin
> > > > > Sent: Friday, June 22, 2007 8:41 AM
> > > > > To: GJP
> > > > > Cc: nagios-users@lists.sourceforge.net
> > > > > Subject: Re: [Nagios-users] Nagios HTTP monitoring
> > > > >
> > > > > I have a check_http command that works perfectly at the
command 
> >
> > prompt
> >
> > > > > ./check_http -H lagarde -t 5 -s "LaGarde Intranet site"
> > > > >
> > > > > However in nagios, check_http!-H lagarde -t 5 -s "LaGarde
Intranet 
> > > >
> > > > site"
> > > >
> > > > > still returns an unauthorized.  So basically why would it work
in a
> > > > > command prompt but not in nagios? 
> > > >
> > > > Perhaps some difference in environment? Did you test as the
nagios
> >
> > user?
> >
> > > > Is that the _exact_ way it's defined in the config? 
> > > >
> > > > > And what is the syntax for the -a
> > > > > (basic auth) switch?  Thanks again for everyones help.
> > > >
> > > > -a username:password. 
> > > >
> > > > --
> > > > Marc
> >
> >

-
> >
> > > > 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







 

-
This SF.net email is sponsored by DB2 Express
D

Re: [Nagios-users] Nagios HTTP monitoring

2007-06-25 Thread Jerad Riggin

Any idea why this -a switch isn't working?

If I do this in a command prompt it works fine: ./check_http -S -H
url.com-a username:password it returns an OK.

The same command in nagios won't work (unauthorized).


On 6/22/07, Jerad Riggin <[EMAIL PROTECTED]> wrote:


It's still giving me an unauthorized message.  I've verified the
credentials work for me to get in through a browser.  Is there something
else I could be missing?

On 6/22/07, GJP <[EMAIL PROTECTED]> wrote:
>
> Jerad,
>
> No entirely, because you feed the arguments to the actual command with
> $ARGn$
>
> So in de service definition:
>
> check_http!site.com!5!admin:password
>
> And the command_line format in command definition (probably
> in: /etc/nagios-plugins/config/http.cfg) should be:
>
> command_line/usr/lib/nagios/plugins/check_http -H $ARG1$ -t $ARG2$
> -a
> $ARG3$
>
> Be carefull with that "-t 5" btw. That is a very low value to timeout.
>
> Hope it helps.
>
> Regards,
>
> Gerard.
>
> On Friday 22 June 2007 19:17:29 Jerad Riggin wrote:
> > So check_http!-H site.com -t 5 -a admin:password
> >
> > should be
> >
> > check_http!-H site.com!-t 5!-a admin:password?
> >
> > On 6/22/07, GJP <[EMAIL PROTECTED] > wrote:
> > > Jerad,
> > >
> > > I didn't understand that either. That's why I customized the the
> > > check_http
> > > command definition. That way (in my previous example) you can have
> your
> > > http
> > > checks from any Nagios client. Usefull for instance for  off-site
> checks.
> > >
> > > Regarding the -a switch. The -a $ARG1$ (or whatever) should be in
> your
> > > command
> > > definition. And your parms as you 'feed' them to the command in your
> > > service
> > > definition seperated with "!".
> > >
> > > Regards,
> > >
> > > Gerard.
> > >
> > > On Friday 22 June 2007 16:59:30 Jerad Riggin wrote:
> > > > If I change the hosts.cfg from the IP of the server (10.10.10.7)
> to the
> > >
> > > URL
> > >
> > > > I'm specifying in services.cfg, it works fine.  The default site
> for
> > > > 10.10.10.7 is a CRM site which requires basic auth.  So even
> though i'm
> > > > specifying a URL in services.cfg, it looks like it's be overridden
> by
> > >
> > > the
> > >
> > > > hosts.cfg so it can't auth.  What is the point of the -H switch in
>
> > > > services.cfg if it always uses the IP for the host in hosts.cfg
> ?  I
> > >
> > > tried
> > >
> > > > that format (-a admin:password) at the end of the check in
> > > > services.cfgbut it still failed with unauthorized.
> > > >
> > > > On 6/22/07, Marc Powell <[EMAIL PROTECTED]> wrote:
> > > > > > -Original Message-
> > > > > > From: [EMAIL PROTECTED] [mailto:
> > >
> > > nagios-users-
> > >
> > > > > > [EMAIL PROTECTED] On Behalf Of Jerad Riggin
> > > > > > Sent: Friday, June 22, 2007 8:41 AM
> > > > > > To: GJP
> > > > > > Cc: nagios-users@lists.sourceforge.net
> > > > > > Subject: Re: [Nagios-users] Nagios HTTP monitoring
> > > > > >
> > > > > > I have a check_http command that works perfectly at the
> command
> > >
> > > prompt
> > >
> > > > > > ./check_http -H lagarde -t 5 -s "LaGarde Intranet site"
> > > > > >
> > > > > > However in nagios, check_http!-H lagarde -t 5 -s "LaGarde
> Intranet
> > > > >
> > > > > site"
> > > > >
> > > > > > still returns an unauthorized.  So basically why would it work
> in a
> > > > > > command prompt but not in nagios?
> > > > >
> > > > > Perhaps some difference in environment? Did you test as the
> nagios
> > >
> > > user?
> > >
> > > > > Is that the _exact_ way it's defined in the config?
> > > > >
> > > > > > And what is the syntax for the -a
> > > > > > (basic auth) switch?  Thanks again for everyones help.
> > > > >
> > > > > -a username:password.
> > > > >
> > > > > --
> > > > > Marc
> > >
> > >
> -
> > >
> > > > > 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
>
>
>

-
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 Na

Re: [Nagios-users] Migration of nagios comments and trends graphs

2007-06-25 Thread Marc Powell


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of Rafael Alfaro
> Sent: Saturday, June 23, 2007 8:26 PM
> To: Nagios Users mailinglist
> Subject: Re: [Nagios-users] Migration of nagios comments and trends
graphs
> 
> You are right!!
> 
> Really I'm working with groundwork open source, that  comes with
nagios
> 2.5,  I want  to migrate  to another version of groundwork that has
the
> same nagios 2.5  embeded, because I want to migrate the
nagioscomment.log
> and trends graphs, I think that this list is the best place to find a
> solution.

The groundwork support lists are probably going to be your best bet but
for a normal nagios installation, you simply need to copy over the
comment log file (comment_file in nagios.cfg), nagios log (log_file in
nagios.cfg) and the contents of the archive directory (log_archive_path
in nagios.cfg).

--
Marc

-
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


[Nagios-users] RE : [SPAM?] RE: RE : Sybase check on windows servers

2007-06-25 Thread Florent HOUBART
Hi,

>Thank you so much for being patient with me. I tried what you said. But
>unfortunately I am still getting the error "return code of 139 is out of
>bounds".

This mean that there is a problem with the execution of your control. Did you 
try to run the command as you defined it in a shell prompt ?

>
>Here is my configuration-
>
>
>Commands.cfg-
>
>define command{
>command_namecheck_sybase
>command_line   $USER1$/check_nt -v SERVICESTATE -d SHOWALL -l 
> $ARG1$ $ARG2$
>}

I think there is an error here in your definition. Addording to your service 
definition, you will run :
$USER1$/check_nt -v SERVICESTATE -d SHOWALL -l 0 SYBSQL_ganges
If you run this, you will get a "Segmentation fault". You lack the name of the 
requested host (-H flag) and the syntax of the -l flag is wrong. A check_nt -h 
says :

 SERVICESTATE =
  Check the state of one or several services.
  Request a -l parameters with the following syntax:
  -l ,,,...
  You can specify -d SHOWALL in case you want to see working services
  in the returned string.

Your command should be something like :
$USER1$/check_nt -H ganges -v SERVICESTATE -d SHOWALL -l SYBSQL_ganges

You should test it in a shell prompt until you get the expected result, and 
then write it in your configuration file. To get the IP address of the host, 
you can use the macro $HOSTADDRESS$.
 
Regards,

Florent 

-
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

Re: [Nagios-users] RE : Sybase check on windows servers

2007-06-25 Thread Lalita Drolia
Florent,

Thank you so much for being patient with me. I tried what you said. But
unfortunately I am still getting the error "return code of 139 is out of
bounds".

Here is my configuration-

 

Hostgroups.cfg-

 

define hostgroup{

hostgroup_namesybasetest

alias Sybase Servers Test

members   ganges,nila

 }

 

Commands.cfg-

 

define command{

command_namecheck_sybase

command_line   $USER1$/check_nt -v SERVICESTATE -d SHOWALL
-l $ARG1$ $ARG2$

}

 

Services.cfg-

 

define service{

use local-service

hostgroup_name  sybasetest

service_description  Sybase

check_command check_sybase!0!SYBSQL_$HOSTNAME$

 }

 

Kindly help.

 

Regards,

Lalita

 

From: Florent HOUBART [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 25, 2007 4:54 PM
To: Lalita Drolia
Cc: nagios-users@lists.sourceforge.net
Subject: RE : [Nagios-users] Sybase check on windows servers

 

Hi,

>I am using nagios2.9 and Nagios plugins 1.4.9.
>
>I have made a hostgroup for Sybase servers of the sort-
>
>define hostgroup{
>hostgroup_name  sybase
>alias   Sybase Servers
>members machine1,machine2,machine3,machine4,machine5
>}
>
>Now I want to know if its possible to define a single service for all
>these machines as the service name differs in each server because it
is-
>Sybsql-machine1,sybsql_machine2,sybsql_machine3 etc.
>
>Can you please also provide me help on command definition and service
>definition for Sybase check on linux machines.

Here is a small test I done to validate that using HOSTNAME in serice
definition is OK.
You can adapt this exemple with your real commands.

I use the dummy check to verify if the hostname is well read by the
command. This plugin take in first argument the return value, and in
second the status message.
I have two hosts, host1 and host2, and a hostgroup containing the two
hosts.
I then define the service on the hostgroup.
I use the $HOSTNAME$ macro in service definition to specify parameters.


  ##
  # Command definition
 
  # 'check_dummy' command definition
  define command{
  command_namecheck_dummy
  command_line$USER1$/check_dummy $ARG1$ $ARG2$
  }


  ##
  # hosts definition definition


  define host{
  use linux-server
  host_name   host1
  alias   Host1
  address 127.0.0.1
  }
  define host{
  use linux-server
  host_name   host2
  alias   Host2
  address 127.0.0.1
  }

  ##
  # Hostgroup definition

  define hostgroup{
  hostgroup_name  Sybase  ; The name of the hostgroup
  alias   Sybase servers  ; Long name of the group
  members host1,host2 ; Comma separated list of
hosts that belong to this group
  }

  ##
  # Service definition

  define service{
  use local-service
  hostgroup_name  Sybase   ; I
specify here the hostgroup
  service_description Sybase
  check_command
check_dummy!0!SYBSQL_$HOSTNAME$ ; The $HOSTNAME$ will be replaced by
Nagios by the name of the host
  }


In nagios console, I then have :
host1Sybase   OK: SYBSQL_host1
host2Sybase   OK: SYBSQL_host2



Best regards,

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

[Nagios-users] RE : Sybase check on windows servers

2007-06-25 Thread Florent HOUBART
Hi,

>I am using nagios2.9 and Nagios plugins 1.4.9.
>
>I have made a hostgroup for Sybase servers of the sort-
>
>define hostgroup{
>hostgroup_name  sybase
>alias   Sybase Servers
>members machine1,machine2,machine3,machine4,machine5
>}
>
>Now I want to know if its possible to define a single service for all
>these machines as the service name differs in each server because it is-
>Sybsql-machine1,sybsql_machine2,sybsql_machine3 etc.
>
>Can you please also provide me help on command definition and service
>definition for Sybase check on linux machines.

Here is a small test I done to validate that using HOSTNAME in serice 
definition is OK.
You can adapt this exemple with your real commands.

I use the dummy check to verify if the hostname is well read by the command. 
This plugin take in first argument the return value, and in second the status 
message.
I have two hosts, host1 and host2, and a hostgroup containing the two hosts.
I then define the service on the hostgroup.
I use the $HOSTNAME$ macro in service definition to specify parameters.


  ##
  # Command definition
  
  # 'check_dummy' command definition
  define command{
  command_namecheck_dummy
  command_line$USER1$/check_dummy $ARG1$ $ARG2$
  }


  ##
  # hosts definition definition


  define host{
  use linux-server
  host_name   host1
  alias   Host1
  address 127.0.0.1
  }
  define host{
  use linux-server
  host_name   host2
  alias   Host2
  address 127.0.0.1
  }

  ##
  # Hostgroup definition

  define hostgroup{
  hostgroup_name  Sybase  ; The name of the hostgroup
  alias   Sybase servers  ; Long name of the group
  members host1,host2 ; Comma separated list of hosts that 
belong to this group
  }

  ##
  # Service definition

  define service{
  use local-service
  hostgroup_name  Sybase   ; I specify 
here the hostgroup
  service_description Sybase
  check_command   check_dummy!0!SYBSQL_$HOSTNAME$ ; The 
$HOSTNAME$ will be replaced by Nagios by the name of the host
  }


In nagios console, I then have :
host1Sybase   OK: SYBSQL_host1
host2Sybase   OK: SYBSQL_host2



Best regards,

Florent
-
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

Re: [Nagios-users] RE : [SPAM?] RE: RE : Sybase check on windows servers

2007-06-25 Thread Lalita Drolia
I am using nagios2.9 and Nagios plugins 1.4.9.

I have made a hostgroup for Sybase servers of the sort-

define hostgroup{

hostgroup_name  sybase

alias   Sybase Servers

members machine1,machine2,machine3,machine4,machine5

}

 

Now I want to know if its possible to define a single service for all
these machines as the service name differs in each server because it is-

Sybsql-machine1,sybsql_machine2,sybsql_machine3 etc.

 

Can you please also provide me help on command definition and service
definition for Sybase check on linux machines.

 

With a million thanks :-)

 

Lalita

 

From: Florent HOUBART [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 25, 2007 1:36 PM
To: Lalita Drolia
Cc: nagios-users@lists.sourceforge.net
Subject: RE : [SPAM?] RE: RE : [Nagios-users] Sybase check on windows
servers

 

Hi Lalita,


>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_nameSybase
>
>Service_descriptionsybasesql
>
>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.

It's certainly a problem in the command definition. Did you try to run
it in command line to check if it's correct ?
Can you send us more information about your definitions, and the
versions of Nagios and the plugin you are using ?


Regards,

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

[Nagios-users] RE : [SPAM?] RE: RE : Sybase check on windows servers

2007-06-25 Thread Florent HOUBART
Hi Lalita,


>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_nameSybase
>
>Service_descriptionsybasesql
>
>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.

It's certainly a problem in the command definition. Did you try to run it in 
command line to check if it's correct ?
Can you send us more information about your definitions, and the versions of 
Nagios and the plugin you are using ?
 

Regards,

Florent

 

 

-
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