[Nagios-users] Ndomod v1.4 b4 - no worky

2007-08-09 Thread Matthew Joyce

Using nagios 2.9, and wanting NDOMOD (sockets) with mysql.

Error: Could not load module '/usr/local/nagios/bin/ndomod.o' ->
/usr/local/nagios/bin/ndomod.o: cannot open shared object file: No such
file or directory

Any idea, I'm not sure how to proceed ?


Matthew Joyce 
02 9382 0051 | IT Manager | Children's Cancer Institute Australia for
Medical Research 

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/___
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] Make a host depend on a service on another host?

2007-08-09 Thread Shivkumar

Chris Adams said the following:
> If I know that a link to another city is down, I don't also need to know that
> the router in the other city is unreachable 
>
>   
IMHO, the general practice is to use the parent-child hierarchy  to 
prevent unreachable hosts/services from being checked.
 
Regards,
Shiv


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
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] Make a host depend on a service on another host?

2007-08-09 Thread Chris Adams
Is it possible to specify that a host depends on a particular service on
another host?

I am monitoring routers, and monitoring the router links via SNMP.  If I
know that a link to another city is down, I don't also need to know that
the router in the other city is unreachable (it'd be nice if checking
stopped while the link was down).

-- 
Chris Adams <[EMAIL PROTECTED]>
Systems and Network Administrator - HiWAAY Internet Services
I don't speak for anybody but myself - that's enough trouble.

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
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] Getting state retention to work

2007-08-09 Thread Rob Tanner

Shiv,

That was it.  I was staring at it all along and then it suddenly dawned 
on me -- nagios runs as the nagios user and not as root.  Changed 
ownership of the file and it works now.


-- Rob


Shivkumar said the following on 08/08/2007 09:01 PM:


Rob Tanner said the following:

Marc,

The retain_status_information and retain_nonstatus_information 
options are both set to 1 in the default templates at the top of the 
hosts.cfg and services.cfg files and I am specifying those default 
templates for almost all of the service and host entries.


Something else must still be missing.


Could it be the permissions on the state.dat file?

Regards,
Shiv


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/___
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] Problem with servicedependency and groups

2007-08-09 Thread Chris Adams
I am configuring Nagios 2.9 on Fedora 7.  I see in the docs:

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

   "All Services In Multiple Servicegroups: If you want to create
service dependencies for all services that belong in one or more
servicegroups, you can do use the servicegroup_name and/or
dependent_servicegroup_name directive as follows:

define servicedependency{
  servicegroup_name   SERVICEGROUP1,SERVICEGROUP2,...,SERVICEGROUPN
  dependent_servicegroup_name SERVICEGROUP3,SERVICEGROUP4,...SERVICEGROUPN
  other escalation directives ...
  }

However, when I try this format with:

define servicedependency {
  dependent_servicegroup_name hsvrouter-ifs
  servicegroup_name   hsvrouter-re
  execution_failure_criteria  w,u,c
  }

(both service groups are defined and have members) and check my config
with nagios -s, I get:

Error: NULL service description/host name in service dependency definition
Error: Could not register service execution dependency (config file 
'/etc/nagios/cfg/hiwaay-snoc/network/hsvrouter.cfg', starting on line 30)

I tried adding "host_name" and "dependent_host_name" but that didn't
change anything.
-- 
Chris Adams <[EMAIL PROTECTED]>
Systems and Network Administrator - HiWAAY Internet Services
I don't speak for anybody but myself - that's enough trouble.

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
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] check_snmp

2007-08-09 Thread Marc Powell


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of Melanie Pfefer
> Sent: Thursday, August 09, 2007 11:21 AM
> To: nagios-users@lists.sourceforge.net
> Subject: [Nagios-users] check_snmp
> 
> Hi
> I installed nagios plugin but I do not see check_snmp
> command under libexec directory.
> 
> Am I missing something?

Probably. ./configure would have complained about missing requirements.
Did you see anything?

>From the REQUIREMENTS file distributed with the plugins --

check_snmp:
- Requires the NET-SNMP package available from 
  http://net-snmp.sourceforge.net

--
Marc

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
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] OpsMgr Framework: Talking with Microsofts System Center Operations Manager 2007

2007-08-09 Thread Ingo Lantschner
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi all,
if you are interested in developing a Framework for Nagios-OpsMgr  
(Microsoft System Center Operations Manager 2007) Interoperability,  
pls. check out these sites or get in in contact with me.

Nagios-Exchange (English):
http://www.nagiosexchange.org/Communication.41.0.html? 
&tx_netnagext_pi1[p_view]=1055&tx_netnagext_pi1[page]=10%3A10

Blog (German):
http://lanti.wordpress.com/2007/08/09/opsmgr-an-nagios/
- --
Ingo Lantschner
Vienna/Austria
Mob (+43-664) 143 84 18


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (Darwin)

iD8DBQFGu0k4encxbxkaIHoRAiHvAJ9bxHN4GTtSNxyX+kHifIkx3PlcYQCfdm54
8fwUc45LC1pxVE4ikPCeNcg=
=3Fdg
-END PGP SIGNATURE-

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
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 project help required

2007-08-09 Thread Ton Voon
Hi Sekhar,

On 9 Aug 2007, at 13:59, Sekhar wrote:

> I have a new monitoring project now i am planning to implement  
> nagios with some good GUI for configuration files.
>
> Can someone help me which web interface is good for configuration  
> files like adding hosts,hostgroups etc

You might like to try Opsview - http://opsview.org.

Configuration via the web interface, reload via a web page, Nagios  
CGIs that refresh inline (using AJAX) and a great new Hostgroup  
Hierarchy page to see the status of everything in a hierarchical  
fashion with drill down.

You can get a downloadable VM, redhat RPMs or debian packages.

Ton

http://www.altinity.com
T: +44 (0)870 787 9243
F: +44 (0)845 280 1725
Skype: tonvoon



-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
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] check_snmp

2007-08-09 Thread Melanie Pfefer
Hi
I installed nagios plugin but I do not see check_snmp
command under libexec directory.

Am I missing something?
many thanks


  ___ 
Yahoo! Mail is the world's favourite email. Don't settle for less, sign up for
your free account today 
http://uk.rd.yahoo.com/evt=44106/*http://uk.docs.yahoo.com/mail/winter07.html 

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
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] Notifications problem

2007-08-09 Thread Antoine Rocher
Hi again,

My problem seems to be an acknowledgment stickyness problem :


in nagios doc :
"If the "sticky" option is set to one (1), the acknowledgement will remain 
until the service returns to an OK state. Otherwise the acknowledgement will 
automatically be removed when the service changes state" 


but in my logs :
[1186627415] EXTERNAL COMMAND: ACKNOWLEDGE_SVC_PROBLEM;serveur;Check
Services;2;0;0;burton;ack

So it seems that the (2) puts stickyness on, and not (1).
Is this an error in the nagios documentation ?


Thanks.

Antoine
 

-Message d'origine-
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Antoine Rocher
Envoyé : jeudi 9 août 2007 17:01
À : nagios-users@lists.sourceforge.net
Objet : [Nagios-users] Notifications problem

Hi all,


I got a problem with nagios last night. I don't get notifications after
the state type (SOFT or HARD) changed on one check.

Here are these options'check :

max_check_attempts 2
normal_check_interval 1
retry_check_interval 1
notification_options w,u,c,r 
notification_interval 15

In my logs I got :
[1186626921] SERVICE ALERT: serveur;Check
Services;CRITICAL;SOFT;1;Status : 2 - service problem 1
[1186626981] SERVICE ALERT: serveur;Check
Services;CRITICAL;HARD;2;Status : 2 - service problem 1

[1186626981] SERVICE NOTIFICATION: Pager;serveur;Check
Services;CRITICAL;notify-by-epager;Status : 2 - service problem 1
[1186626981] SERVICE NOTIFICATION: AlertesNagios;serveur;Check
Services;CRITICAL;notify-by-email;Status : 2 - service problem 1

[1186627041] SERVICE ALERT: serveur;Check Services;WARNING;HARD;2;Status
: 1 - service problem 1

[1186627041] SERVICE NOTIFICATION: Pager;serveur;Check
Services;WARNING;notify-by-epager;Status : 1 - service problem 1
[1186627041] SERVICE NOTIFICATION: AlertesNagios;serveur;Check
Services;WARNING;notify-by-email;Status : 1 - service problem 1

[1186627415] EXTERNAL COMMAND: ACKNOWLEDGE_SVC_PROBLEM;serveur;Check
Services;2;0;0;burton;ack

[1186628915] SERVICE ALERT: serveur;Check
Services;CRITICAL;HARD;2;Status : 2 - service problem 1,2
[1186628975] SERVICE ALERT: serveur;Check Services;WARNING;HARD;2;Status
: 1 - service problem 1
[1186629345] SERVICE ALERT: serveur;Check
Services;CRITICAL;HARD;2;Status : 2 - service problem 1,3
[1186629470] SERVICE ALERT: serveur;Check Services;WARNING;HARD;2;Status
: 1 - service problem 1,3
[1186636253] SERVICE ALERT: serveur;Check Services;OK;HARD;2;Status : 0
- 



Where "Statut" is the exit value of the script (0,1 or 2 = OK,WARNING or
CRIT). This check should reflect the change of what the script checks. I
mean, the two first checks in error should put the alert in CRIT state
(SOFT then HARD), and the third one in WARNING state (HARD). If the
thing checked changes one more time, the alert should be back in CRIT
state (HARD)before going back to WARNING state (HARD)
.
Let's go with an example as I have difficulties to explain what my
script do :

1rst check : the script check a page, which should be empty, but which
has things on it, then the script exits with 2 (and in body of alert I
have "service problem 1") => nagios CRIT (SOFT) and no notify
2nd check : the script exits with 2 (service problem 1) => nagios CRIT
(HARD) and notify
3rd check : the scripts exits with 1 (service problem 1)=> nagios WARN
(HARD) and notify
4th check : the scripts exits with 2 (service problem 1,2) => nagios
CRIT (HARD) and notify ...

But as you can see in my logs, at the 4th check nagios didn't notify,
nor the next HARD changes of state.
An other problem is that I acknowledged a WARNING state (HARD) but when
the alert changed to CRITICAL state (HARD) the acknowledgment was in
place. The same for the next changes of state. Acknowledgment was
effective only 4 changes of state after.

Hope I am clear enough. Anybody has an idea ?

Thanks for your help.
(and sorry for my poor english)


Antoine

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
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: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagio

[Nagios-users] Notifications problem

2007-08-09 Thread Antoine Rocher
Hi all,


I got a problem with nagios last night. I don't get notifications after
the state type (SOFT or HARD) changed on one check.

Here are these options'check :

max_check_attempts 2
normal_check_interval 1
retry_check_interval 1
notification_options w,u,c,r 
notification_interval 15

In my logs I got :
[1186626921] SERVICE ALERT: serveur;Check
Services;CRITICAL;SOFT;1;Status : 2 - service problem 1
[1186626981] SERVICE ALERT: serveur;Check
Services;CRITICAL;HARD;2;Status : 2 - service problem 1

[1186626981] SERVICE NOTIFICATION: Pager;serveur;Check
Services;CRITICAL;notify-by-epager;Status : 2 - service problem 1
[1186626981] SERVICE NOTIFICATION: AlertesNagios;serveur;Check
Services;CRITICAL;notify-by-email;Status : 2 - service problem 1

[1186627041] SERVICE ALERT: serveur;Check Services;WARNING;HARD;2;Status
: 1 - service problem 1

[1186627041] SERVICE NOTIFICATION: Pager;serveur;Check
Services;WARNING;notify-by-epager;Status : 1 - service problem 1
[1186627041] SERVICE NOTIFICATION: AlertesNagios;serveur;Check
Services;WARNING;notify-by-email;Status : 1 - service problem 1

[1186627415] EXTERNAL COMMAND: ACKNOWLEDGE_SVC_PROBLEM;serveur;Check
Services;2;0;0;burton;ack

[1186628915] SERVICE ALERT: serveur;Check
Services;CRITICAL;HARD;2;Status : 2 - service problem 1,2
[1186628975] SERVICE ALERT: serveur;Check Services;WARNING;HARD;2;Status
: 1 - service problem 1
[1186629345] SERVICE ALERT: serveur;Check
Services;CRITICAL;HARD;2;Status : 2 - service problem 1,3
[1186629470] SERVICE ALERT: serveur;Check Services;WARNING;HARD;2;Status
: 1 - service problem 1,3
[1186636253] SERVICE ALERT: serveur;Check Services;OK;HARD;2;Status : 0
- 



Where "Statut" is the exit value of the script (0,1 or 2 = OK,WARNING or
CRIT). This check should reflect the change of what the script checks. I
mean, the two first checks in error should put the alert in CRIT state
(SOFT then HARD), and the third one in WARNING state (HARD). If the
thing checked changes one more time, the alert should be back in CRIT
state (HARD)before going back to WARNING state (HARD)
.
Let's go with an example as I have difficulties to explain what my
script do :

1rst check : the script check a page, which should be empty, but which
has things on it, then the script exits with 2 (and in body of alert I
have "service problem 1") => nagios CRIT (SOFT) and no notify
2nd check : the script exits with 2 (service problem 1) => nagios CRIT
(HARD) and notify
3rd check : the scripts exits with 1 (service problem 1)=> nagios WARN
(HARD) and notify
4th check : the scripts exits with 2 (service problem 1,2) => nagios
CRIT (HARD) and notify ...

But as you can see in my logs, at the 4th check nagios didn't notify,
nor the next HARD changes of state.
An other problem is that I acknowledged a WARNING state (HARD) but when
the alert changed to CRITICAL state (HARD) the acknowledgment was in
place. The same for the next changes of state. Acknowledgment was
effective only 4 changes of state after.

Hope I am clear enough. Anybody has an idea ?

Thanks for your help.
(and sorry for my poor english)


Antoine

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
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 project help required

2007-08-09 Thread Brie Gordon
Nagios provides a GUI.
If that doesn't meet your needs, you might want to look into Groundwork or
Fruity.
Both are on sourceforge and ohloh also (I think).

http://sourceforge.net/projects/gwmos/
http://fruity.sourceforge.net/

They are developed by the same people. Groundwork just incorporates more
apps and stuff than Fruity which is dedicated to Nagios. I've had great
success with Groundwork thus far.

2007/8/9, Sekhar <[EMAIL PROTECTED]>:
>
> Hi Guys,
>
> I have a new monitoring project now i am planning to implement nagios with
> some good GUI for configuration files.
>
> Can someone help me which web interface is good for configuration files
> like adding hosts,hostgroups etc
>
> Thanks for your help
>
> --
> Need a vacation? Get great deals to amazing places
> on
> Yahoo! Travel.
>
> -
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> ___
> 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
>



-- 
Brie Gordon



"The more you sweat in peace, the less you bleed in war."

--Hyman G Rickover
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/___
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] NDO: ndoutils-1.4b4 and nagios 2.9 - Could not open datasink - SOLVED

2007-08-09 Thread Dirk Westfal
Hi all,

On Thursday 09 August 2007 11:18, Dirk Westfal wrote:
> Hi all,
>
> I`m trying to get ndoutils-1.4b4 to run with nagios 2.9, but regardless
> what i try, i get the dreaded "could not open datasink" message from the
> ndomod module.

I found it... after i added debug code to ndomod_open_sink in ndomod.c to 
print out all variables used by ndo_sink_open. It turned out they were 
"(null)". All of them. 

And you might guess it now: it was an error in the path to the ndomod.cfg - 
file in nagios.cfg. 

Function "ndomod_process_config_file" should really give an appropiate 
warning, returning just NDO_ERROR isn`t sufficient. 

Patch:
 diff /root/ndoutils-1.4b4/src/ndomod.c  ndomod.c
322c322
<
---
>  char temp_buffer[NDOMOD_MAX_BUFLEN];
324c324,328
<   if((thefile=ndo_mmap_fopen(filename))==NULL)
---
>   if((thefile=ndo_mmap_fopen(filename))==NULL) {
>   /* log a message to the Nagios log file */
>  snprintf(temp_buffer,sizeof(temp_buffer)-1,"ndomod: error opening 
configfile %s\n",filename);
> temp_buffer[sizeof(temp_buffer)-1]='\x0';
> ndomod_write_to_logs(temp_buffer,NSLOG_INFO_MESSAGE);
326c330
<
---
> }




-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
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] Nagios project help required

2007-08-09 Thread Sekhar
  Hi Guys,
   
  I have a new monitoring project now i am planning to implement nagios with 
some good GUI for configuration files.
  
Can someone help me which web interface is good for configuration files like 
adding hosts,hostgroups etc 
   
  Thanks for your help


   
-
Need a vacation? Get great deals to amazing places on Yahoo! Travel. -
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/___
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] Event handler

2007-08-09 Thread Marc Powell


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of Tony Delov
> Sent: Wednesday, August 08, 2007 9:51 PM
> To: nagios-users@lists.sourceforge.net
> Subject: [Nagios-users] Event handler
> 
> Hi,
> I'm trying to differentiate in my event handler script between a
recover
> from a critical state and one from an unknown state.
> I need to run a script upon a recovery, but only a recovery from a
> critical hard state?
> Is there a way to do this?

Not by a simple macro but you could probable get it by inference. My
approach would be to pass the $LASTSERVICEWARNING,CRITICAL,UNKNOWN$
macros to the script and see which one was most recent. That might get
you the information you need.

--
Marc


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
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] NDO: ndoutils-1.4b4 and nagios 2.9 - Could not open datasink

2007-08-09 Thread Dirk Westfal

Hi all, 

I`m trying to get ndoutils-1.4b4 to run with nagios 2.9, but regardless what i 
try, i get the dreaded "could not open datasink" message from the ndomod 
module.

The ndo2db deamon is running, login to the mysql database successfull.

The error occurs when using a unxisocket but also when using tcp - very 
strange. 

System is centos 5 with selinux disabled. 

Does anyone have an idea how i can debug this? 
I`m currently reading through the source code of ndomod.c but so far have no 
clue why i`m getting the "CNOD" - Message...

tia,
Dirk

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
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