Re: [Nagios-users] CHECK_MSSQL CRITICAL allways as output when use check_sql for MSSQL checking

2009-09-10 Thread Arlen Drina
On Thu, Sep 10, 2009 at 6:21 PM, Jim Avery j...@jimavery.me.uk wrote:
 2009/9/9 Arlen Drina arly...@gmail.com:
 Hi all,

 I am using check_sql for checking MSSQL server ( or I would like to
 check MSSQL servers ). I compiled
 freetds with --with-tdsver=8.0 support on my debian system and all
 went ok, in /etc/freetds.conf I have

 [global]
        # TDS protocol version
 #;      tds version = 4.2
        tds version = 8.0

 # A typical Microsoft server
 [MSSQL]
        host = sss.sss.sss.sss
        port = 1433
        tds version = 8.0

 and when I run ./check_mssql -H sss.sss.sss.sss -p 1433 -U USER -P PASSWORD

 I am constantly getting output

 CHECK_MSSQL CRITICAL

 Ok, I tried to solve this myself and I found at \

 http://exchange.nagios.org/directory/Plugins/Databases/Others/check_sql/details
 that is recommneded to change host--server in line

 my $cs = DBI:$driver: . ($database ? database=$database; : '') .
 server=$hostname . ($port ? ;port=$port : '');

 so I changed that, but still I am getting same output for above command.

 I am just trying to get minimal response from MSSQL server, connection
 to port 1433 is open and I can connect via
 telnet sss.sss.sss.sss 1433  and it works.

 Any hint is welcome, I exhausted all my ideas, and thank you in advance


 I don't use freetds.  Instead, I installed php5-sybase (and any
 dependencies if there were any, I can't remember) from the debian
 repositories (I'm using Ubuntu).

 I can run the plugin from the command line like so:

  /usr/local/nagios/libexec/check_mssql -H 10.10.10.123 -U loginid -P 
 mypassword
  OK: Connect time=0.004189 seconds.

 Of course, the user loginid must be configured in MSSQL with the
 password mypassword to authenticate to the database.

 Some of our MSSQL servers have a specific instance, in which case you
 need to find the port number the instance is listening on, then use
 the following syntax to do the check:

  /usr/local/nagios/libexec/check_mssql -H 10.10.10.123:1375 -u
 loginid -P mypassword
  OK: Connect time=0.045179 seconds.

 (1375 is the port number for this instance but it varies from one to the next)

 I found the check_mssql didn't like the hostname syntax when using IP
 addresses like this, so I changed it a bit by removing both the
 Validate the hostname and Validate the username sections.

 I also (very sloppily) altered the part where it checks if the
 expected result is emtpy like so:

  287c205
   if ($querytype == query  !empty($expected_result)) {
  ---
   if ($querytype == query  (!empty($expected_result) ||
 $expected_result == 0)) {

 That was because I wanted to do a check which expected a result 0.


 hth,

 Jim


After your post I installed php5-sybase and still getting same error :
CHECK_MSSQL CRITICAL

I am using command:   ./check_mssql -H sss.sss.sss.sss -U user -P pass

user and password are valid and I can connect with them to database.
MSSQL server listen on port 1433
and I can connect on port 1433 when run

telnet sss.sss.sss.sss 1433

Is there something special necessary to enable on MSSQL side, some
deamon, whatever, ...I expected
it to work with php5-sybase but it does not.

Thank you for reply and regards,

Arlen


 --
 Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
 trial. Simplify your report design, integration and deployment - and focus on
 what you do best, core application coding. Discover what's new with
 Crystal Reports now.  http://p.sf.net/sfu/bobj-july
 ___
 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


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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_MSSQL CRITICAL allways as output when use check_sql for MSSQL checking

2009-09-10 Thread Arlen Drina
I am using mssql AUTH, but I really do  not understand what I am making wrong.



On Thu, Sep 10, 2009 at 6:39 PM, Mathew Walker lmw94...@hotmail.com wrote:
 Wow, so little time to follow the list, but I've got through all this so I
 figure I had to chime in...

 Start testing via the command line...
 my environment works like...
 [r...@server]# ./check_mssql -H mssqlsrvr -p 1433 -t 10 -U user -P password
 CHECK_MSSQL OK - SQL Server responded in 0.025192 seconds | time=0.025192s;;

 NOTES
 1) based on your freetds entry... the servername for the check should be
 MSSQL
Could you please explain this, which entry you mean ?

Thank you




 2) are you using windows or SQL Auth?  if using windows domain users to
 auth... you may need to do -U domain\\user as the username

 Also tweak the debug logging and check the logs for other helpful bits.


 --
 Mat W. - http://www.techadre.com



 Date: Thu, 10 Sep 2009 17:21:50 +0100
 From: j...@jimavery.me.uk
 To: nagios-users@lists.sourceforge.net
 Subject: Re: [Nagios-users] CHECK_MSSQL CRITICAL allways as output when
 use check_sql for MSSQL checking

 2009/9/9 Arlen Drina arly...@gmail.com:
  Hi all,
 
  I am using check_sql for checking MSSQL server ( or I would like to
  check MSSQL servers ). I compiled
  freetds with --with-tdsver=8.0 support on my debian system and all
  went ok, in /etc/freetds.conf I have
 
  [global]
         # TDS protocol version
  #;      tds version = 4.2
         tds version = 8.0
 
  # A typical Microsoft server
  [MSSQL]
         host = sss.sss.sss.sss
         port = 1433
         tds version = 8.0
 
  and when I run ./check_mssql -H sss.sss.sss.sss -p 1433 -U USER -P
  PASSWORD
 
  I am constantly getting output
 
  CHECK_MSSQL CRITICAL
 
  Ok, I tried to solve this myself and I found at \
 
 
  http://exchange.nagios.org/directory/Plugins/Databases/Others/check_sql/details
  that is recommneded to change host--server in line
 
  my $cs = DBI:$driver: . ($database ? database=$database; : '') .
  server=$hostname . ($port ? ;port=$port : '');
 
  so I changed that, but still I am getting same output for above command.
 
  I am just trying to get minimal response from MSSQL server, connection
  to port 1433 is open and I can connect via
  telnet sss.sss.sss.sss 1433  and it works.
 
  Any hint is welcome, I exhausted all my ideas, and thank you in advance


 I don't use freetds. Instead, I installed php5-sybase (and any
 dependencies if there were any, I can't remember) from the debian
 repositories (I'm using Ubuntu).

 I can run the plugin from the command line like so:

 /usr/local/nagios/libexec/check_mssql -H 10.10.10.123 -U loginid -P
 mypassword
 OK: Connect time=0.004189 seconds.

 Of course, the user loginid must be configured in MSSQL with the
 password mypassword to authenticate to the database.

 Some of our MSSQL servers have a specific instance, in which case you
 need to find the port number the instance is listening on, then use
 the following syntax to do the check:

 /usr/local/nagios/libexec/check_mssql -H 10.10.10.123:1375 -u
 loginid -P mypassword
 OK: Connect time=0.045179 seconds.

 (1375 is the port number for this instance but it varies from one to the
 next)

 I found the check_mssql didn't like the hostname syntax when using IP
 addresses like this, so I changed it a bit by removing both the
 Validate the hostname and Validate the username sections.

 I also (very sloppily) altered the part where it checks if the
 expected result is emtpy like so:

 287c205
  if ($querytype == query  !empty($expected_result)) {
 ---
  if ($querytype == query  (!empty($expected_result) ||
 $expected_result == 0)) {

 That was because I wanted to do a check which expected a result 0.


 hth,

 Jim


 --
 Let Crystal Reports handle the reporting - Free Crystal Reports 2008
 30-Day
 trial. Simplify your report design, integration and deployment - and focus
 on
 what you do best, core application coding. Discover what's new with
 Crystal Reports now. http://p.sf.net/sfu/bobj-july
 ___
 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

 
 With Windows Live, you can organize, edit, and share your photos. Click
 here.
 --
 Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
 trial. Simplify your report design, integration and deployment - and focus
 on
 what you do best, core application coding. Discover what's new with
 Crystal Reports now.  http://p.sf.net/sfu/bobj-july
 ___
 Nagios-users mailing list
 Nagios

[Nagios-users] CHECK_MSSQL CRITICAL allways as output when use check_sql for MSSQL checking

2009-09-09 Thread Arlen Drina
Hi all,

I am using check_sql for checking MSSQL server ( or I would like to
check MSSQL servers ). I compiled
freetds with --with-tdsver=8.0 support on my debian system and all
went ok, in /etc/freetds.conf I have

[global]
# TDS protocol version
#;  tds version = 4.2
tds version = 8.0

# A typical Microsoft server
[MSSQL]
host = sss.sss.sss.sss
port = 1433
tds version = 8.0

and when I run ./check_mssql -H sss.sss.sss.sss -p 1433 -U USER -P PASSWORD

I am constantly getting output

CHECK_MSSQL CRITICAL

Ok, I tried to solve this myself and I found at \

http://exchange.nagios.org/directory/Plugins/Databases/Others/check_sql/details
that is recommneded to change host--server in line

my $cs = DBI:$driver: . ($database ? database=$database; : '') .
server=$hostname . ($port ? ;port=$port : '');

so I changed that, but still I am getting same output for above command.

I am just trying to get minimal response from MSSQL server, connection
to port 1433 is open and I can connect via
telnet sss.sss.sss.sss 1433  and it works.

Any hint is welcome, I exhausted all my ideas, and thank you in advance

Nice regards,

Arlen

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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] pls help me on nagios problem

2009-09-01 Thread Arlen Drina
from other machine try to enter http://ip_address_of_nagios_server/nagios

hope this helps


Arlen

On Tue, Sep 1, 2009 at 1:31 PM, joseph malaijay...@hotmail.com wrote:


 Pls help this out
 using nagios version 3.1.2
  plugin 1.4.13
   centos 5
 Got this warning  on HTTP WARNING: HTTP/1.1 403 Forbidden and can't view on
 other machine http://localhost/nagios but i can brows from machine installed
 nagios http://localhost/nagios
 
 See all the ways you can stay connected to friends and family
 --
 Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
 trial. Simplify your report design, integration and deployment - and focus
 on
 what you do best, core application coding. Discover what's new with
 Crystal Reports now.  http://p.sf.net/sfu/bobj-july
 ___
 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


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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] Redundant Nagios setups...

2009-08-27 Thread Arlen Drina
As you already have *BSD installed as base server for nagios, and you
need an mechanism when one machine is down,
second to take its rolle and all happy.

I would recommned to take a look into CARP
http://www.freebsd.org/doc/en/books/handbook/carp.html
it is natively devoeloped for OpenBSD but you have it already ported
to FreeBSD. I am using CARP + OpenBSD to set up
redundant pair of firewals and it works perfect.
In case you want one machine to shutdown, it has some problem or what
ever else, second machine take a rolle of master and it works.

Machines should be close to each other (  as they use crossover cable
to be connected for sync interfaces ), and in case you
need to set up some geographical wide redundancy , CARP will not help you.

In case your nagios servers are in same server room, I think CARP can be useful

Nice regards,

Arlen


On Thu, Aug 27, 2009 at 3:08 AM, Mark Giusmg...@createspace.com wrote:
 We use two identically configured servers with a shared DRBD
 (http://www.drbd.org/) partition that contains the nagios state/log/config
 files, Linux Heartbeat (http://www.linux-ha.org/), and a role IP address to
 do redundancy.  We can literally yank the plug on one of the servers and
 nagios will be back up in about 10 seconds.

 I wouldn't say I suggest this solution (we're doing it because the nagios
 servers also host a number of other services that we want to failover
 automatically) but it does achieve automated redundancy/failover.

 -Gius

 Janet Sullivan wrote:

 Other than the methods described in the official docs
 (http://nagios.sourceforge.net/docs/3_0/redundancy.html) and Merlin
 (http://www.op5.org/community/projects/merlin) are there any other suggested
 solutions for setting up redundant Nagios servers?

 
 --
 Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
 trial. Simplify your report design, integration and deployment - and focus
 on
 what you do best, core application coding. Discover what's new with
 Crystal Reports now.  http://p.sf.net/sfu/bobj-july

 
 ___
 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

 --
 Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
 trial. Simplify your report design, integration and deployment - and focus
 on
 what you do best, core application coding. Discover what's new with
 Crystal Reports now.  http://p.sf.net/sfu/bobj-july
 ___
 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


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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] network interface naming on windows machines

2009-08-27 Thread Arlen Drina
For monitoring network interfaces activitties on windows machines I am
using for example

./check_nt -H ggg.ggg.sss.sff -p 12489 -v COUNTER -l  \\Network
Interface(HP NC373i Multifunction Gigabit Server Adapter _2 - Teefer2
Miniport)\\Bytes Total/sec

where is

 \\Network Interface(HP NC373i Multifunction Gigabit Server Adapter
_2 - Teefer2 Miniport)\\Bytes Total/sec

value I got using

typeperf -qx in windows console ( it list all counter and then I look
for network related parameter )

As different machines has different network cards, and that means
different above value, is there any way to enter in above command
intreface name I see when I open Network connections and there are
some custom names office1, external_net etc.

then command would be like
/check_nt -H ggg.ggg.sss.sff -p 12489 -v COUNTER -l
\\(office1)\\Bytes Total/sec
I tried to enter interface name as above but nothing is returned as it
looks like cannot be found on system.


I want to have one command definition and to use it on many machines,
as on every machine I  am assignig names like
office1, office2 etc.

OS system on monitored machines is W2K3.

Thnak you in advance

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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] Change port in NSC.ini in other value than 12489 or 5666, is this possible ?

2009-08-25 Thread Arlen Drina
Hi all,

I have to set up nagios monitorig in maze of firewalls, and due to that
I am facing some strange requirements :)
For windows monitoring I am using NSClient++ and in NSC.ini is specified port

port=12489 or port=5666

 in  section  modules I have uncommented,

FileLogger.dll
CheckSystem.dll
CheckDisk.dll
NSClientListener.dll
SysTray.dll
CheckEventLog.dll
CheckHelpers.dll

I realized in NSClientListener.dll is uncommented, it works no mater
does port 12489 or
port 5666 is specfied in port line
port=
it alway bind it to port 12489 and I understant it.

When I try to change port to let say 8344 and when restart NSCservice
it does not start and I am getting error

2009-08-25 14:38:32: error:include\Socket.h:683: bind failed: 10048:
Only one usage of each socket
address (protocol/network address/port) is normally permitted.
2009-08-25 14:38:32: error:include\Socket.h:714: Socket did not start
properly, we will now do nothing...


my question is possible to change NSClient port in NSC.ini in some
other value different that 12489 or 5666 and avoid
above error.
I think it is easier for me to change port than to change port on
firewall for which I am not responsible.

Thank you in advance for sharing your experiences

Arlen

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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 severely impacting Nagios performance. Ideas?

2009-08-25 Thread Arlen Drina
Hello Ryan,

I do not know what is organization of your network, but maybe you
could take a look into service/host dependency.
It depends on your network organization, but I think it could help

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

its purpose is to suppress notifications in case main host is down,
in such case you get only notification about that problem.

As I beleive that you have some gateway/router and in case it has some
problems you are getting many notifications, and I think it
is rara that many hosts have some local problem at same time

Hope this helps

Nice regards,

Arlen

On Tue, Aug 25, 2009 at 4:43 AM, Ryan Bowlbyrbowlb...@yahoo.com wrote:
 Hello Everyone,

 We are experiencing issues with Nagios notifications. Apparently when a large 
 amount of services become critical and trigger notifications the system all 
 but stops processing new service check results (passive). The last check 
 times in the web interface stop updating until notifications are disabled.

 Tailing the nagios.log file during this issue shows mostly notifications and 
 hardly any check results being processed. As soon as I temporarily disable 
 notifications - system wide - the passive check results literally fly off the 
 screen, and all the stale results in the web interface clear up quickly.

 How does everyone handle this issue? Obviously the notifications are a 
 bottleneck. Has anyone configured notifications to be dropped in a file or 
 fifo to be processed by an external daemon? Something like OCP daemon if 
 anyone is familiar with it.

 Obviously parent child relationships would prove useful in curbing the 
 notifications, but implementation of relationships is a while off (5 D.C.s 
 lot's a data to have to collect). Any suggestions would be greatly 
 appreciated!

 -Ryan B.

 ==

 FreeBSD 7.0-RELEASE amd64, Nagios 3.0 w/ NDO2DB 1.4b7
 Total Hosts: 3741, Total Services: 9321





 --
 Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
 trial. Simplify your report design, integration and deployment - and focus on
 what you do best, core application coding. Discover what's new with
 Crystal Reports now.  http://p.sf.net/sfu/bobj-july
 ___
 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


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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] Change port in NSC.ini in other value than 12489 or 5666, is this possible ?

2009-08-25 Thread Arlen Drina
Sorry for spamming. I found out that something else listen on port
8405. It is possible to change port in nsc.ini



On Tue, Aug 25, 2009 at 2:49 PM, Arlen Drinaarly...@gmail.com wrote:
 Hi all,

 I have to set up nagios monitorig in maze of firewalls, and due to that
 I am facing some strange requirements :)
 For windows monitoring I am using NSClient++ and in NSC.ini is specified port

 port=12489 or port=5666

  in  section  modules I have uncommented,

 FileLogger.dll
 CheckSystem.dll
 CheckDisk.dll
 NSClientListener.dll
 SysTray.dll
 CheckEventLog.dll
 CheckHelpers.dll

 I realized in NSClientListener.dll is uncommented, it works no mater
 does port 12489 or
 port 5666 is specfied in port line
 port=
 it alway bind it to port 12489 and I understant it.

 When I try to change port to let say 8344 and when restart NSCservice
 it does not start and I am getting error

 2009-08-25 14:38:32: error:include\Socket.h:683: bind failed: 10048:
 Only one usage of each socket
 address (protocol/network address/port) is normally permitted.
 2009-08-25 14:38:32: error:include\Socket.h:714: Socket did not start
 properly, we will now do nothing...


 my question is possible to change NSClient port in NSC.ini in some
 other value different that 12489 or 5666 and avoid
 above error.
 I think it is easier for me to change port than to change port on
 firewall for which I am not responsible.

 Thank you in advance for sharing your experiences

 Arlen


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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 host dependencies (strange) issue--it does not works as expected

2009-08-19 Thread Arlen Drina
Hi Marc,

thank you for mail. I do not understand if I have in dependencies.cfg

define hostdependency{

host_name   FIREWALL
dependent_host_name SERVER
notification_failure_criteria   d,u
}
and nagios does not report any problem when restarted ( what means
conf. is correct )
and if I push FIREWALL host to be DOWN - and this state is correcly
stated via nagios
web interface, why host SERVER is still up and  green. I expect if
FIREWALL is down
that means all hosts depndent on it should be represented different
that OK ( down, unrechable... )

In nagios.cfg I have enabled

enable_predictive_host_dependency_checks=1
enable_predictive_service_dependency_checks=1

The same I have when I set up ( commneting above hostdependency )
in dependencies.cfg

define servicedependency{
host_name   FIREWALL
service_description PING
dependent_host_name SERVER
dependent_service_description   Remote Desktop
execution_failure_criteria  w,c,u
notification_failure_criteria   c,w,u
}

 and then disable ping to FIREWALL, Remote Desktop service on SERVER
is still UP, nothing is changed

Any comment is welcome

Thank you in advance,

Nice regards,

Arlytex

On Tue, Aug 18, 2009 at 8:42 PM, Marc Powellm...@ena.com wrote:

 On Aug 18, 2009, at 1:25 PM, arly arly wrote:

 2009/8/18 Marc Powell m...@ena.com

 Did the *host* status change to critical or just the service status?

 Host status changed, when I browse it over web  host detail ---
 host  it is
 represented as DOWN.

 The 'firewall' host showed down, right? If that's the case then I
 would expect the host dependency to suppress host notifications about
 the 'host_behind_firewall'. I don't use dependencies though so there
 may be some obscure criteria I don't remember. Again, I think using
 the 'parents' directive is probably more appropriate for your stated
 purposes.

 --
 Marc

 --
 Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
 trial. Simplify your report design, integration and deployment - and focus on
 what you do best, core application coding. Discover what's new with
 Crystal Reports now.  http://p.sf.net/sfu/bobj-july
 ___
 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


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
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