Re: [Nagios-users] define service with multiple contactgroups

2011-03-22 Thread Anand, Sakshi
Purpose of both the services are essentially the same but they come with Nagios 
installation because they have defined these configurations for windows as well 
as linux users.

You must use only one of them depending on the OS being used.

Regards,
Sakshi Anand 

-Original Message-
From: Robert Eden [mailto:rme...@gmail.com] 
Sent: Wednesday, March 23, 2011 10:17 AM
To: Nagios Users List
Subject: Re: [Nagios-users] define service with multiple contactgroups

I've recently taken over our Nagios config so am still learning, but we seem to 
do something similar using two services, they just have the same description.  
You can't tell there are two services when looking at the alerts or web pages.

(example syntax below, probably full or errors)

define service{
service_description  Load
use  tpl-service-standard
servicegroupssgrp-check-standard
check_commandcheck_nrpe!check_load
hostgroup_name   win-hosts
contactgroupwin-admins
}

define service{

service_description  Load
use  tpl-service-standard
servicegroupssgrp-check-standard
check_commandcheck_nrpe!check_load
hostgroup_name   unix-hosts
contactgroupunix-admins
}


--
Enable your software for Intel(R) Active Management Technology to meet the 
growing manageability and security demands of your customers. Businesses are 
taking advantage of Intel(R) vPro (TM) technology - will your software be a 
part of the solution? Download the Intel(R) Manageability Checker today! 
http://p.sf.net/sfu/intel-dev2devmar
___
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

--
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
___
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] define service with multiple contactgroups

2011-03-22 Thread Robert Eden
I've recently taken over our Nagios config so am still learning, but we 
seem to do something similar using two services, they just have the same 
description.  You can't tell there are two services when looking at the 
alerts or web pages.

(example syntax below, probably full or errors)

define service{
service_description  Load
use  tpl-service-standard
servicegroupssgrp-check-standard
check_commandcheck_nrpe!check_load
hostgroup_name   win-hosts
contactgroupwin-admins
}

define service{

service_description  Load
use  tpl-service-standard
servicegroupssgrp-check-standard
check_commandcheck_nrpe!check_load
hostgroup_name   unix-hosts
contactgroupunix-admins
}


--
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
___
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] Issue in configuring Nagios Appender

2011-03-22 Thread Anand, Sakshi
Thanks Again. It helped.

Now, I am stuck with following exception -

Received invalid packet type/version from client - possibly due to client using 
wrong password or crypto algorithm?

I am not using any password and the decryption_method is set to 0 in nsca.cfg 
file.

What can be the possible cause of the error then?

Thanks & Regards,
Sakshi Anand


From: Jarlath Lyons [mailto:jarlath.ly...@tideworks.com]
Sent: Tuesday, March 22, 2011 8:48 PM
To: Nagios Users List
Subject: Re: [Nagios-users] Issue in configuring Nagios Appender

Try shortening the name you are using, and at least remove the space between 
Connection and Monitoring.

Jar Lyons
Senior Software Engineer
Tideworks Technology, Inc.
(206) 344-3016

[cid:735562904@23032011-1FC7]

From: Anand, Sakshi [mailto:sa185...@ncr.com]
Sent: Monday, March 21, 2011 11:13 PM
To: Nagios Users List
Subject: Re: [Nagios-users] Issue in configuring Nagios Appender

Thanks Lyons.

Now, after adding the appender-ref, I am getting following exception -


log4j:ERROR Parsing error on line 18 and column 94

log4j:ERROR Attribute value "NAGIOS-Connection Monitoring" of type ID must be a 
name.

log4j:ERROR Parsing error on line 47 and column 54

log4j:ERROR Attribute value "NAGIOS-Connection Monitoring" of type IDREF must 
be a name.



Does anyone have any idea about reason of this error.



Thanks & Regards,

Sakshi Anand


From: Jarlath Lyons [mailto:jarlath.ly...@tideworks.com]
Sent: Monday, March 21, 2011 8:39 PM
To: Nagios Users List
Subject: Re: [Nagios-users] Issue in configuring Nagios Appender
It appears the appender is correctly defined, but just not linked to the root 
logger 

Try this ...















Jar Lyons
Senior Software Engineer
Tideworks Technology, Inc.
(206) 344-3016

[cid:735562904@23032011-1FC7]

From: Anand, Sakshi [mailto:sa185...@ncr.com]
Sent: Monday, March 21, 2011 5:14 AM
To: Nagios Users List
Subject: Re: [Nagios-users] Issue in configuring Nagios Appender

Plz help.

Regards,
Sakshi Anand


From: Anand, Sakshi
Sent: Sunday, March 20, 2011 11:31 PM
To: Nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Issue in configuring Nagios Appender
All,

I am trying to configure nagios appender for one of my applications which is 
using log4j to log data. Also, my NSCA configuration is running fine.

However, I am not able to send checks from the application using nagios 
appender.

Following is what my log4j.xml looks like (it is successfully writing to 
console and to log file too) -












































































Please help me in finding the issue and a way to debug it.



Thanks & Regards,

Sakshi Anand
<>--
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar___
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] A question on using send_nsca

2011-03-22 Thread Jarlath Lyons
No problem  Btw ()...  if your client is 
written in java, you could use the NagiosAppender to automatically forward 
error log entries

http://www.novell.com/communities/node/4131/application-monitoring-made-easy-java-applications-using-nagios


Jar Lyons
Senior Software Engineer
Tideworks Technology, Inc.
(206) 344-3016

[cid:image001.gif@01C8E1BC.4F6ACE00]

From: steve f [mailto:a31mod...@hotmail.com]
Sent: Tuesday, March 22, 2011 10:34 AM
To: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] A question on using send_nsca

Thanks very much Jar, that worked

regards,

Steve



From: jarlath.ly...@tideworks.com
To: nagios-users@lists.sourceforge.net
Date: Tue, 22 Mar 2011 17:22:05 +
Subject: Re: [Nagios-users] A question on using send_nsca
This example on a linux system should help 

[root@jlyonslx test_harness]# /usr/bin/printf "HOST\tSERVICE\tCRITICAL\tMy 
Message \n"  | /usr/local/nagios/addons/nsca/send_nsca -H localhost -p 5667 
 -c ./nsca_send.cfg
1 data packet(s) sent to host successfull

Jar Lyons
Senior Software Engineer
Tideworks Technology, Inc.
(206) 344-3016

[cid:image001.gif@01C8E1BC.4F6ACE00]

From: steve f [mailto:a31mod...@hotmail.com]
Sent: Tuesday, March 22, 2011 10:09 AM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] A question on using send_nsca

I am trying to send a test job to my nagios server from a monitored client 
using send_nsca.  I am running suse linux 10 on both client & nagios server.

Currently, everything is working correctly from within nagios using send_nsca 
as I am set up as distributed environment.  I am now in the process of taking 
some in house built scripts & trying to send the results to nagios via 
send_nsca.

My issue is, if I do this from the command line :

/usr/local/nagios/bin/send_nsca -H NAGIOSSERVER -c 
/usr/local/nagios/etc/send_nsca.cfg < /tmp/test

I see the check come across to the nagios server ( granted it doesn't know what 
to do with it as the info is not set up in Nagios.  The /tmp/test file is 
nothing more than a tab delimited file as this :

HOSTNAME   TestMessage 0   This is a test message.

What I have been trying to do is run the same thing above, without the redirect 
to a discrete file. Every way I try it it fails and just shows me the help page 
for send_nsca.

Should I be able to do this some way like this ?

/usr/local/nagios/bin/send_nsca -H NAGIOSSERVER -c 
/usr/local/nagios/etc/send_nsca.cfg  HOSTNAME  TestMessage 0 This is a test 
message

It appears that the format of the message is incorrect.  I am not getting any 
tab in between the parameters.  I have tried using a \t  and [tab] but still 
not working.  Also tried doing an echo -e of the above with a xargs but not 
correct.

Blaming this actually on my  scripting skills more than Nagios :)

Can anyone shed some light / point me in a direction what I am doing wrong here?

Thanks,

Steve

-- 
Enable your software for Intel(R) Active Management Technology to meet the 
growing manageability and security demands of your customers. Businesses are 
taking advantage of Intel(R) vPro (TM) technology - will your software be a 
part of the solution? Download the Intel(R) Manageability Checker today! 
http://p.sf.net/sfu/intel-dev2devmar
___ 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
<>--
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar___
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] A question on using send_nsca

2011-03-22 Thread steve f

Thanks very much Jar, that worked 

regards,

Steve



From: jarlath.ly...@tideworks.com
To: nagios-users@lists.sourceforge.net
Date: Tue, 22 Mar 2011 17:22:05 +
Subject: Re: [Nagios-users] A question on using send_nsca











This example on a linux system should help ….
 
[root@jlyonslx test_harness]# /usr/bin/printf "HOST\tSERVICE\tCRITICAL\tMy 
Message \n"  | /usr/local/nagios/addons/nsca/send_nsca -H localhost -p 5667 
 -c ./nsca_send.cfg
1 data packet(s) sent to host successfull
 

Jar Lyons

Senior Software Engineer

Tideworks Technology, Inc.

(206) 344-3016 
 


 


From: steve f [mailto:a31mod...@hotmail.com]


Sent: Tuesday, March 22, 2011 10:09 AM

To: nagios-users@lists.sourceforge.net

Subject: [Nagios-users] A question on using send_nsca


 
I am trying to send a test job to my nagios server from a monitored client 
using send_nsca.  I am running suse linux 10 on both client & nagios server.



Currently, everything is working correctly from within nagios using send_nsca 
as I am set up as distributed environment.  I am now in the process of taking 
some in house built scripts & trying to send the results to nagios via 
send_nsca.



My issue is, if I do this from the command line :



/usr/local/nagios/bin/send_nsca -H NAGIOSSERVER -c 
/usr/local/nagios/etc/send_nsca.cfg < /tmp/test



I see the check come across to the nagios server ( granted it doesn't know what 
to do with it as the info is not set up in Nagios.  The /tmp/test file is 
nothing more than a tab delimited file as this :



HOSTNAME   TestMessage 0   This is a test message.



What I have been trying to do is run the same thing above, without the redirect 
to a discrete file. Every way I try it it fails and just shows me the help page 
for send_nsca.



Should I be able to do this some way like this ?



/usr/local/nagios/bin/send_nsca -H NAGIOSSERVER -c 
/usr/local/nagios/etc/send_nsca.cfg  HOSTNAME  TestMessage 0 This is a test 
message



It appears that the format of the message is incorrect.  I am not getting any 
tab in between the parameters.  I have tried using a \t  and [tab] but still 
not working.  Also tried doing an echo -e of the above with a xargs but not 
correct.



Blaming this actually on my  scripting skills more than Nagios :)



Can anyone shed some light / point me in a direction what I am doing wrong here?



Thanks,



Steve




--
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
___
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  
  <>--
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar___
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] A question on using send_nsca

2011-03-22 Thread Jarlath Lyons
This example on a linux system should help 

[root@jlyonslx test_harness]# /usr/bin/printf "HOST\tSERVICE\tCRITICAL\tMy 
Message \n"  | /usr/local/nagios/addons/nsca/send_nsca -H localhost -p 5667 
 -c ./nsca_send.cfg
1 data packet(s) sent to host successfull

Jar Lyons
Senior Software Engineer
Tideworks Technology, Inc.
(206) 344-3016

[cid:image001.gif@01C8E1BC.4F6ACE00]

From: steve f [mailto:a31mod...@hotmail.com]
Sent: Tuesday, March 22, 2011 10:09 AM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] A question on using send_nsca

I am trying to send a test job to my nagios server from a monitored client 
using send_nsca.  I am running suse linux 10 on both client & nagios server.

Currently, everything is working correctly from within nagios using send_nsca 
as I am set up as distributed environment.  I am now in the process of taking 
some in house built scripts & trying to send the results to nagios via 
send_nsca.

My issue is, if I do this from the command line :

/usr/local/nagios/bin/send_nsca -H NAGIOSSERVER -c 
/usr/local/nagios/etc/send_nsca.cfg < /tmp/test

I see the check come across to the nagios server ( granted it doesn't know what 
to do with it as the info is not set up in Nagios.  The /tmp/test file is 
nothing more than a tab delimited file as this :

HOSTNAME   TestMessage 0   This is a test message.

What I have been trying to do is run the same thing above, without the redirect 
to a discrete file. Every way I try it it fails and just shows me the help page 
for send_nsca.

Should I be able to do this some way like this ?

/usr/local/nagios/bin/send_nsca -H NAGIOSSERVER -c 
/usr/local/nagios/etc/send_nsca.cfg  HOSTNAME  TestMessage 0 This is a test 
message

It appears that the format of the message is incorrect.  I am not getting any 
tab in between the parameters.  I have tried using a \t  and [tab] but still 
not working.  Also tried doing an echo -e of the above with a xargs but not 
correct.

Blaming this actually on my  scripting skills more than Nagios :)

Can anyone shed some light / point me in a direction what I am doing wrong here?

Thanks,

Steve
<>--
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar___
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] A question on using send_nsca

2011-03-22 Thread steve f

I am trying to send a test job to my nagios server from a monitored client 
using send_nsca.  I am running suse linux 10 on both client & nagios server.

Currently, everything is working correctly from within nagios using send_nsca 
as I am set up as distributed environment.  I am now in the process of taking 
some in house built scripts & trying to send the results to nagios via 
send_nsca.

My issue is, if I do this from the command line :

/usr/local/nagios/bin/send_nsca -H NAGIOSSERVER -c 
/usr/local/nagios/etc/send_nsca.cfg < /tmp/test

I see the check come across to the nagios server ( granted it doesn't know what 
to do with it as the info is not set up in Nagios.  The /tmp/test file is 
nothing more than a tab delimited file as this :

HOSTNAME   TestMessage 0   This is a test message.

What I have been trying to do is run the same thing above, without the redirect 
to a discrete file. Every way I try it it fails and just shows me the help page 
for send_nsca.

Should I be able to do this some way like this ?

/usr/local/nagios/bin/send_nsca -H NAGIOSSERVER -c 
/usr/local/nagios/etc/send_nsca.cfg  HOSTNAME  TestMessage 0 This is a test 
message

It appears that the format of the message is incorrect.  I am not getting any 
tab in between the parameters.  I have tried using a \t  and [tab] but still 
not working.  Also tried doing an echo -e of the above with a xargs but not 
correct.

Blaming this actually on my  scripting skills more than Nagios :)

Can anyone shed some light / point me in a direction what I am doing wrong here?

Thanks,

Steve
  --
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar___
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] Issue in configuring Nagios Appender

2011-03-22 Thread Jarlath Lyons
Try shortening the name you are using, and at least remove the space between 
Connection and Monitoring.

Jar Lyons
Senior Software Engineer
Tideworks Technology, Inc.
(206) 344-3016

[cid:image001.gif@01C8E1BC.4F6ACE00]

From: Anand, Sakshi [mailto:sa185...@ncr.com]
Sent: Monday, March 21, 2011 11:13 PM
To: Nagios Users List
Subject: Re: [Nagios-users] Issue in configuring Nagios Appender

Thanks Lyons.

Now, after adding the appender-ref, I am getting following exception -


log4j:ERROR Parsing error on line 18 and column 94

log4j:ERROR Attribute value "NAGIOS-Connection Monitoring" of type ID must be a 
name.

log4j:ERROR Parsing error on line 47 and column 54

log4j:ERROR Attribute value "NAGIOS-Connection Monitoring" of type IDREF must 
be a name.



Does anyone have any idea about reason of this error.



Thanks & Regards,

Sakshi Anand


From: Jarlath Lyons [mailto:jarlath.ly...@tideworks.com]
Sent: Monday, March 21, 2011 8:39 PM
To: Nagios Users List
Subject: Re: [Nagios-users] Issue in configuring Nagios Appender
It appears the appender is correctly defined, but just not linked to the root 
logger 

Try this ...















Jar Lyons
Senior Software Engineer
Tideworks Technology, Inc.
(206) 344-3016

[cid:image001.gif@01C8E1BC.4F6ACE00]

From: Anand, Sakshi [mailto:sa185...@ncr.com]
Sent: Monday, March 21, 2011 5:14 AM
To: Nagios Users List
Subject: Re: [Nagios-users] Issue in configuring Nagios Appender

Plz help.

Regards,
Sakshi Anand


From: Anand, Sakshi
Sent: Sunday, March 20, 2011 11:31 PM
To: Nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Issue in configuring Nagios Appender
All,

I am trying to configure nagios appender for one of my applications which is 
using log4j to log data. Also, my NSCA configuration is running fine.

However, I am not able to send checks from the application using nagios 
appender.

Following is what my log4j.xml looks like (it is successfully writing to 
console and to log file too) -












































































Please help me in finding the issue and a way to debug it.



Thanks & Regards,

Sakshi Anand
<>--
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar___
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] define service with multiple contactgroups

2011-03-22 Thread Axel Rosenski
Hey,

that's been the solution. It's working now the way I want. 

Thanks,
Axel 

Am Montag, 21. Mär. 11, 22:04:05 schrieb Chris Beattie:
> Check out the documentation's section on implied inheritance.  It might let
> you do what you want:
> 
> http://nagios.sourceforge.net/docs/3_0/objectinheritance.html
> 
> Services can inherit their contact_groups from their associated host
> definition.  You do this by *not* assigning a contact_group in the service
> definition.


-- 
Axel Rosenski
- Administration -
__
Wave Computersysteme GmbH
Philipp-Reis-Str. 1-3 / 9
35440 Linden

Geschäftsführer: Carsten Kellmann
Registergericht Gießen HRB 1823

Tel.: +49 (0)6403 / 9050 8317
Fax: +49 (0)6403 / 9050 5089
mailto:rosen...@wave-computer.de
http://www.wave-computer.de


--
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
___
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