Re: [Nagios-users] oracle check

2007-12-05 Thread Roger Dierauer
Hi
do you have set the ora environement in nagios .bash_profile?

kind regards roger


2007/12/5, Benoit Moeremans [EMAIL PROTECTED]:

 Hello,

 Since a little upgrade, i've a strange thing in my nagios. I check oracle
 services on linux server.

 Everything seems to be configured as it need to be, but i don't get
 correct values in the web ui. I receveid the following warning: Cannot
 determine ORACLE_HOME for sid GI2

 However, i checked the nrpe services, when i run the command, i receive
 the good values.

 From the server where is running nagios:

 [EMAIL PROTECTED]:/usr/local/nagios/libexec$ ./check_nrpe -H 192.168.5.10-n 
 -c check_oracletnsB
 OK - reply time 20 msec from GI1


 I don't understand what's wrong. Any idea?

 regards,

 Ben

 -
 SF.Net email is sponsored by: The Future of Linux Business White Paper
 from Novell.  From the desktop to the data center, Linux is going
 mainstream.  Let it simplify your IT future.
 http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
 ___
 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




-- 
ThurGroup Informatik Dierauer

Roger Dierauer
eidg. Informatiker mit FA
VMware Certified Professional
Egelsee Strasse 20a
9535 Wilen bei Wil

Mobile: +41 79 216 34 86
Fax:+41 71 911 81 80

[EMAIL PROTECTED]
http://thurgroup.ch

== Online-Shop mit IT - Bedarf zu fairen Preisen und schneller Lieferung
http://shop.thurgroup.ch
==
-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4___
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] NRPE question

2007-12-05 Thread Hari Sekhon
Dario B. Bestetti wrote:
 ItŽs anybody interested or already working in a way to keep a centralized 
 repository of remote plugins and configuration for NRPE ?
 What we are looking for is to add/develop some new option in NRPE to pull 
 the remote plugins/configuration installed in the NRPE
 agentŽs nodes and keep them in the Nagios monitor node for backup purposes.

 Does it sounds stupid 
Not at all. Bash + Rsync. One Nrpe config for all agents. One set of 
plugins that gets put on all agents. This is what I do. Simplifies 
things nicely and keeps nrpe affairs well maintained.

-h

-- 
Hari Sekhon


-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
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 if not port open then OK

2007-12-05 Thread Sjaak Nabuurs VSM Hosting
Hi nagios users

I've a win 2003 server online as terminal server ;-(
with nagios I check through nsclient++ cpu/mem .. this al works fine.

But now I like to check if the firewall for this winbox is okay and up.
So I like to use check_ping (or any other check) to the winbox and if no 
result critical then everything is OKE.
only ports 12489 and RDP ports are open to some IP's

Can somebody give me an advice how to do this.
with negate it's not the way to do this, i guess !


Cheers,



Sjaak





-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
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 if not port open then OK

2007-12-05 Thread Philipp Geschke
Sjaak Nabuurs VSM Hosting schrieb:
 Hi nagios users
 
 I've a win 2003 server online as terminal server ;-(
 with nagios I check through nsclient++ cpu/mem .. this al works fine.
 
 But now I like to check if the firewall for this winbox is okay and up.
 So I like to use check_ping (or any other check) to the winbox and if no 
 result critical then everything is OKE.
 only ports 12489 and RDP ports are open to some IP's
 
 Can somebody give me an advice how to do this.
 with negate it's not the way to do this, i guess !
 

If I did get you right, then negate is absolutely the way to go.

Pick out a Port that would be open, if the firewall was down.
Now configure a check_tcp check for this port, and negate it.

The service will be ok as long as the port is closed, an critical if the
port is open (and your firewall down).

As I said, only if I did get you right.


Regards,
Philipp

-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
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] NRPE question

2007-12-05 Thread Hari Sekhon
Andreas Ericsson wrote:
 Hari Sekhon wrote:
 Dario B. Bestetti wrote:
 ItŽs anybody interested or already working in a way to keep a 
 centralized repository of remote plugins and configuration for NRPE ?
 What we are looking for is to add/develop some new option in NRPE to 
 pull the remote plugins/configuration installed in the NRPE
 agentŽs nodes and keep them in the Nagios monitor node for backup 
 purposes.

 Does it sounds stupid 
 Not at all. Bash + Rsync. One Nrpe config for all agents. One set of 
 plugins that gets put on all agents. This is what I do. Simplifies 
 things nicely and keeps nrpe affairs well maintained.


 Sucks arse for networks with HP-UX, *BSD, AIX, Linux and Irix all
 mixed together though.

I guess something like cfengine might work better if your systems are 
too different although I don't use it yet myself, I find svn + bash is a 
very good combo for my situation.

-h

-- 
Hari Sekhon


-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
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 Oracle

2007-12-05 Thread Leandro Silva
Hi

I'm trying to monitoring oracle database and i need to know when the 
tablespaces is near of the limite determined in the database. I use 
oraDbTablespaceSizeAllocated and oraDbTablespaceSizeUsed to check this.
Anyone knows how to use the value in oraDbTablespaceSizeAllocated to set the 
critical limit in the check_snmp plugin.-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4___
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] Adding a CFG file for virtual machines

2007-12-05 Thread Tim Palmer
Michael Egan wrote:

 I would like to add a separate group within Nagios for my virtual 
 machines. I created a file called virtual.cfg and changed the HOST 
 GROUP DEFINITION to the following:

 Define hostgroup {

 hostgroup_name virtual-servers ; the name of the hostgroup

 alias Virtual Servers ; long name of the group

 }

 For each host definition, the ‘use’ statement is as follows:

 Use virtual-servers ; Inherit default values from a template

 In the nagios.cfg file, I have added the following statement:

 Cfg_file=/usr/local/nagios/etc/objects/virtual.cfg

 When I verify the configuration files, I get the following error:

 Error: Template ‘virtual-servers’ specified in host definition could 
 not be not found (config file 
 ‘/usr/local/nagios/etc/objects/virtual.cfg’. starting on line 39

 I think I am missing a step or two to include this new cfg file. Any 
 help would be appreciated.

 Thanks,

 Mike

 Mike Egan
 Enterprise Network Engineer
 Capital Safety
 3833 Sala Way
 Red Wing, MN 55066
 651-385-6254 Office
 651-247-5719 Cell
 [EMAIL PROTECTED] blocked::mailto:[EMAIL PROTECTED]

 Home of DBI-Sala and Protecta Brands. Visit us on the web at 
 www.capitalsafety.com blocked::http://www.capitalsafety.com/

 

 -
 SF.Net email is sponsored by: The Future of Linux Business White Paper
 from Novell.  From the desktop to the data center, Linux is going
 mainstream.  Let it simplify your IT future.
 http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
 
Hi Mike,


Well, the obvious question of course is - have you defined a 
virtual-servers template anywhere in your virtual config file? When 
you define the use statement in a host definition, there must be a 
template of the same name (since thats what the use statement means). 
Check the Nagios docs on Object Inheritance (under Advanced Topics in 
2.x docs, or via links in the Object File configuration section).

tim

-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
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] RES: RES: NRPE question

2007-12-05 Thread Aaron M. Segura
I use cfengine for this very purpose.  Just drop a new plugin into a
directory and it's automatically sync'd out to all the monitored
servers.

Although I have to admit it would be *nice* for nrpe to do it's own
pulls.  Would have saved me some cfengine headaches a while back :)

On Wed, 2007-12-05 at 11:36 -0500, Kevin Scott Sumner wrote:
 Once you get into using cron for pulls and scripts to automate 
 configuration, it's probably time you start thinking about cfengine or 
 something like it.  I hate to sound like a broken record, but cfengine et 
 al have already built the wheel you're trying to reinvent with 
 cron/scripts.
 
 Also, I think you can make machines do updates from one central source if 
 you setup the correct daemons, along with having them start regular runs 
 from cron.  With this setup, you get the benefit of routine pulls along 
 with initiated pulls (essentially a push) whenever you need it.  Check on 
 cfexecd, if your interested.
 
 Cheers,
 Kevin
 -
 Kevin Sumner
 [EMAIL PROTECTED]
 (919) 962-6494
 Assistant Systems Administrator
 Physics and Astronomy Networking Infrastructure and Computing
 University of North Carolina at Chapel Hill
 
 
 On Wed, 5 Dec 2007, Hari Sekhon wrote:
 
  Dario B. Bestetti wrote:
  I can see what you are saying, but do you have any *nix servers running
  nrpe that do not have ssh and rsync?
 
  I certainly don't. It's pretty much standard on every linux system for
  example, even the tight and minimalist gentoo...
 
  -h
 
  --
  Hari Sekhon
 
 
  Yes, not us, but our customers and we want to be less invasive as 
  possible...
 
  []s
  Dario
 
  What about a cronned pull from a central location then? This is the
  pull rather than the push but it's less instant.
 
  I think by the time you start doing that though, perhaps cfengine might
  be better, I've heard good things about it, just not got round to using
  it yet.
 
  -h
 
  -- 
  Hari Sekhon
 
 
  -
  SF.Net email is sponsored by: The Future of Linux Business White Paper
  from Novell.  From the desktop to the data center, Linux is going
  mainstream.  Let it simplify your IT future.
  http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
  ___
  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
 
 
  -- 
 
 
 
 -
 SF.Net email is sponsored by: The Future of Linux Business White Paper
 from Novell.  From the desktop to the data center, Linux is going
 mainstream.  Let it simplify your IT future.
 http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
 ___
 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

-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
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] Unneeded alerts from Nagios

2007-12-05 Thread Monappallil, George
hi:
I have a nagios 2.9 instance running on an ESX linux guest. The problem
we are seeing is that whenever we lose and regain network connectivity
to the host, nagios wrongly sends a bunch of server down and server up
alerts for all the servers that nagios is monitoring. 
this is how my hosts.cfg looks like for a typical hosts
define host{
namegeneric-host; Generic
template name
notifications_enabled   1   ; Host
notifications are enabled
event_handler_enabled   1   ; Host event
handler is enabled
flap_detection_enabled  1   ; Flap detection
is enabled
process_perf_data   1   ; Process
performance data
retain_status_information   1   ; Retain status
information
retain_nonstatus_information1   ; Retain
non-status information
register0   ; DONT REGISTER
THIS DEFINITION
}
 
# This creates a generic host that your routers can use
# monitors host(s) 24x7, notifies on down and recovery, checks 15 times
before going critical,
# notifies the contact_group every 30 minutes
define host{
namebasic-host
use generic-host
check_command   check-host-alive
max_check_attempts  10
notification_interval   30
notification_period 24x7
notification_optionsd,r
register0
}
 
#adelphi
define host{
use basic-host
host_name   adelphi
alias   adelphi
address 172.xx.xx.xx (intentional)
contact_groups  rpfl-it
}
 
this is how my services.cfg file looks like
-
define service{
namegeneric-service ; Generic
service name
active_checks_enabled   1   ; Active service
checks are enabled
passive_checks_enabled  1   ; Passive
service checks are enabled/accepted
parallelize_check   1   ; Active service
checks should be parallelized
obsess_over_service 1   ; We should
obsess over this service
check_freshness 0   ; Default is to
NOT check service 'freshness'
notifications_enabled   1   ; Service
notifications are enabled
event_handler_enabled   1   ; Service event
handler is enabled
flap_detection_enabled  1   ; Flap detection
is enabled
process_perf_data   1   ; Process
performance data
retain_status_information   1   ; Retain status
information
retain_nonstatus_information1   ; Retain
non-status information
register0   ; DONT REGISTER
THIS DEFINITION
}
 
define service{
use generic-service
namebasic-service
is_volatile 0
check_period24x7
max_check_attempts  15
normal_check_interval   10
retry_check_interval2
notification_interval   0
notification_period none
register0
}
 
# Generic for all services
# PING - ensure HOSTS are available.
define service{
use basic-service
nameping-service
service_description PING
notification_interval   30
contact_groups  rpfl-it
hostgroup_name  PROD1
notification_optionsc,r
notification_period 24x7
check_command   check_ping!1000.0,20%!2000.0,60%
}
-
 
the question I have is why would nagios send DOWN/UP alerts for all the
hosts it is monitoring when it is just the host that it is on loses
connectivity.
 
thanks in advance

-George 

 
-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4___
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] RES: RES: NRPE question

2007-12-05 Thread Hari Sekhon
Kevin Scott Sumner wrote:
 Once you get into using cron for pulls and scripts to automate 
 configuration, it's probably time you start thinking about cfengine or 
 something like it.  I hate to sound like a broken record, but cfengine 
 et al have already built the wheel you're trying to reinvent with 
 cron/scripts.

 Also, I think you can make machines do updates from one central source 
 if you setup the correct daemons, along with having them start regular 
 runs from cron.  With this setup, you get the benefit of routine pulls 
 along with initiated pulls (essentially a push) whenever you need it.  
 Check on cfexecd, if your interested.
Seems you have the same idea as me, I was actually talking about push 
not pulls in the first instance, which is nice because it's instant and 
you can write stuff in like regression tests which I like doing, so that 
new stuff is tested as working, rather than you changing something and 
then finding out it's broken after the fact you sent it to all your servers.

For the pull scenario, something like cfengine does seem to be the way 
to go. I may even consider switching at some point, but I do have a nice 
setup already...

-h

-- 
Hari Sekhon


-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
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] Unneeded alerts from Nagios

2007-12-05 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of Monappallil, George
 Sent: Wednesday, December 05, 2007 2:17 PM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] Unneeded alerts from Nagios
 
 hi:
 I have a nagios 2.9 instance running on an ESX linux guest. The
problem we
 are seeing is that whenever we lose and regain network connectivity to
the
 host, nagios wrongly sends a bunch of server down and server up alerts
for
 all the servers that nagios is monitoring.
 this is how my hosts.cfg looks like for a typical hosts
 define host{
 namegeneric-host; Generic
template
 name
 notifications_enabled   1   ; Host
 notifications are enabled
 event_handler_enabled   1   ; Host event
 handler is enabled
 flap_detection_enabled  1   ; Flap
detection
 is enabled
 process_perf_data   1   ; Process
 performance data
 retain_status_information   1   ; Retain
status
 information
 retain_nonstatus_information1   ; Retain non-
 status information
 register0   ; DONT
REGISTER
 THIS DEFINITION
 }
 
 # This creates a generic host that your routers can use
 # monitors host(s) 24x7, notifies on down and recovery, checks 15
times
 before going critical,
 # notifies the contact_group every 30 minutes
 define host{
 namebasic-host
 use generic-host
 check_command   check-host-alive
 max_check_attempts  10
 notification_interval   30
 notification_period 24x7
 notification_optionsd,r
 register0
 }
 
 #adelphi
 define host{
 use basic-host
 host_name   adelphi
 alias   adelphi
 address 172.xx.xx.xx (intentional)
 contact_groups  rpfl-it
 }


 the question I have is why would nagios send DOWN/UP alerts for all
the
 hosts it is monitoring when it is just the host that it is on loses
 connectivity.

The question is why is this surprising? Your description is that the
machine nagios is running on loses network connectivity. Nagios can not
reach network hosts that it is monitoring so it believes them to be down
and sends notifications. You've not given nagios any way to tell
otherwise.

If you're unable to create a more stable environment for nagios
(generally a mission-critical service), I'd recommend creating a
host/service check for the default gateway and set that as the parent
for all your other hosts. If the hosts become unreachable, nagios will
verify if the default gateway is down and notify appropriately.

--
Marc

-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
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] RES: RES: RES: NRPE question

2007-12-05 Thread Dario B. Bestetti

 -Mensagem original-
 De: Hari Sekhon [mailto:[EMAIL PROTECTED]
 Enviada em: quarta-feira, 5 de dezembro de 2007 14:24
 Para: [EMAIL PROTECTED]
 Cc: nagios-users@lists.sourceforge.net
 Assunto: Re: RES: RES: [Nagios-users] NRPE question
 
 
 
 Dario B. Bestetti wrote:
  I can see what you are saying, but do you have any *nix servers running
  nrpe that do not have ssh and rsync?
 
  I certainly don't. It's pretty much standard on every linux system for
  example, even the tight and minimalist gentoo...
 
  -h
 
  --
  Hari Sekhon
 
 
  Yes, not us, but our customers and we want to be less invasive as 
  possible...
 
  []s
  Dario
 
 What about a cronned pull from a central location then? This is the
 pull rather than the push but it's less instant.
 
 I think by the time you start doing that though, perhaps cfengine might
 be better, I've heard good things about it, just not got round to using
 it yet.
 
 -h
 
 --
 Hari Sekhon

Yes, there are many options, but all out of the Nagios-agents. We still would 
have some sort of access, out of Nagios to pull
it. We´ll start to look into the NRPE code and see what we can do about it. 

I was just wondering if somebody else was looking for this kind of solution. 
Anyway, thanks for the answers.

[]s
Dario


-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
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] RES: RES: NRPE question

2007-12-05 Thread Kevin Scott Sumner
Once you get into using cron for pulls and scripts to automate 
configuration, it's probably time you start thinking about cfengine or 
something like it.  I hate to sound like a broken record, but cfengine et 
al have already built the wheel you're trying to reinvent with 
cron/scripts.

Also, I think you can make machines do updates from one central source if 
you setup the correct daemons, along with having them start regular runs 
from cron.  With this setup, you get the benefit of routine pulls along 
with initiated pulls (essentially a push) whenever you need it.  Check on 
cfexecd, if your interested.

Cheers,
Kevin
-
Kevin Sumner
[EMAIL PROTECTED]
(919) 962-6494
Assistant Systems Administrator
Physics and Astronomy Networking Infrastructure and Computing
University of North Carolina at Chapel Hill


On Wed, 5 Dec 2007, Hari Sekhon wrote:

 Dario B. Bestetti wrote:
 I can see what you are saying, but do you have any *nix servers running
 nrpe that do not have ssh and rsync?

 I certainly don't. It's pretty much standard on every linux system for
 example, even the tight and minimalist gentoo...

 -h

 --
 Hari Sekhon


 Yes, not us, but our customers and we want to be less invasive as 
 possible...

 []s
 Dario

 What about a cronned pull from a central location then? This is the
 pull rather than the push but it's less instant.

 I think by the time you start doing that though, perhaps cfengine might
 be better, I've heard good things about it, just not got round to using
 it yet.

 -h

 -- 
 Hari Sekhon


 -
 SF.Net email is sponsored by: The Future of Linux Business White Paper
 from Novell.  From the desktop to the data center, Linux is going
 mainstream.  Let it simplify your IT future.
 http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
 ___
 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


 -- 



-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
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] XML Document Content Matching

2007-12-05 Thread Tillotson, Jeff
Hello everyone.  I am in the process of migrating all our monitoring to
a Nagios solution.  Ultimately this will make our lives easier but it is
a little cumbersome to migrate.  We have a lot being monitored.
Everything was going smoothly until I tried to implement our RSS
monitors in Nagios.

Our current check for our RSS feeds are in SiteScope 7.9.5.  SiteScope
had the ability to content match values in the XML document.  So I could
do a content check similar to:
xml.rss.[version]=2.0,xml.rss.[xmlns:dc]=http://purl.org/dc/elements/1.1
/

Is there a plugin for Nagios that will do the same sort of content
check?  I have searched NagiosExchange to no success.  If necessary I
can make something work with check_http (or check_curl.php) or write a
plugin.

Jeff

PS: Sorry if this eventually posts to the list twice.  I initially
signed up for the mailing-list with the incorrect mail alias.  
DISCLAIMER
The information contained in this e-mail and attachments, if any, is 
confidential and may be subject to legal privilege. If you are not the intended 
recipient, you must not use, copy, distribute or disclose the e-mail and its 
attachment, or any part of its content or take any action in reliance of it. If 
you have received this e-mail in error, please e-mail the message back to the 
sender by replying and then deleting it. We cannot accept responsibility for 
loss or damage arising from the use of this e-mail or attachments, and 
recommend that you subject these to your virus checking procedures prior to use.


-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
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] NRPE question

2007-12-05 Thread Andreas Ericsson
Hari Sekhon wrote:
 Dario B. Bestetti wrote:
 ItŽs anybody interested or already working in a way to keep a centralized 
 repository of remote plugins and configuration for NRPE ?
 What we are looking for is to add/develop some new option in NRPE to pull 
 the remote plugins/configuration installed in the NRPE
 agentŽs nodes and keep them in the Nagios monitor node for backup purposes.

 Does it sounds stupid 
 Not at all. Bash + Rsync. One Nrpe config for all agents. One set of 
 plugins that gets put on all agents. This is what I do. Simplifies 
 things nicely and keeps nrpe affairs well maintained.
 

Sucks arse for networks with HP-UX, *BSD, AIX, Linux and Irix all
mixed together though.

-- 
Andreas Ericsson   [EMAIL PROTECTED]
OP5 AB www.op5.se
Tel: +46 8-230225  Fax: +46 8-230231

-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
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] RES: RES: NRPE question

2007-12-05 Thread Hari Sekhon
Dario B. Bestetti wrote:
 I can see what you are saying, but do you have any *nix servers running
 nrpe that do not have ssh and rsync?

 I certainly don't. It's pretty much standard on every linux system for
 example, even the tight and minimalist gentoo...

 -h

 --
 Hari Sekhon
 

 Yes, not us, but our customers and we want to be less invasive as 
 possible...

 []s
 Dario

What about a cronned pull from a central location then? This is the 
pull rather than the push but it's less instant.

I think by the time you start doing that though, perhaps cfengine might 
be better, I've heard good things about it, just not got round to using 
it yet.

-h

-- 
Hari Sekhon


-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
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] RES: RES: NRPE question

2007-12-05 Thread Dario B. Bestetti

 -Mensagem original-
 De: Hari Sekhon [mailto:[EMAIL PROTECTED]
 Enviada em: quarta-feira, 5 de dezembro de 2007 14:10
 Para: [EMAIL PROTECTED]
 Cc: nagios-users@lists.sourceforge.net
 Assunto: Re: RES: [Nagios-users] NRPE question
 
 
 
 Dario B. Bestetti wrote:
  -Mensagem original-
  De: Hari Sekhon [mailto:[EMAIL PROTECTED]
  Enviada em: quarta-feira, 5 de dezembro de 2007 11:50
  Para: [EMAIL PROTECTED]
  Cc: nagios-users@lists.sourceforge.net
  Assunto: Re: [Nagios-users] NRPE question
 
 
 
  Dario B. Bestetti wrote:
 
  ItRs anybody interested or already working in a way to keep a centralized 
  repository of remote
 
  plugins and configuration for NRPE ?
 
  What we are looking for is to add/develop some new option in NRPE to 
  pull the remote
 
  plugins/configuration installed in the NRPE
 
  agentRs nodes and keep them in the Nagios monitor node for backup 
  purposes.
 
  Does it sounds stupid
 
  Not at all. Bash + Rsync. One Nrpe config for all agents. One set of
  plugins that gets put on all agents. This is what I do. Simplifies
  things nicely and keeps nrpe affairs well maintained.
 
  -h
 
  --
  Hari Sekhon
 
 
  Hari, what we would like to have is a function inside NRPE agents to do it. 
  Using Bash+Rsync is ok,
 but the remote node must have
  rsync and ssh (for security) installed, itŽs another piece of software to 
  maintain operational.
 Having something inside NRPE would
  allow to do it without depending on any other sw package.
 
  []s
  Dario
 
 I can see what you are saying, but do you have any *nix servers running
 nrpe that do not have ssh and rsync?
 
 I certainly don't. It's pretty much standard on every linux system for
 example, even the tight and minimalist gentoo...
 
 -h
 
 --
 Hari Sekhon

Yes, not us, but our customers and we want to be less invasive as possible...

[]s
Dario


-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
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] hard_check_interval revisited

2007-12-05 Thread mark redding
Hi,

On 29/11/2007, Jeremy C. Reed [EMAIL PROTECTED] wrote:
 I want my final failed services to be rechecked faster that my normal
 checks. I want this so I will be notified quicker when the service is
 successful again. (I already use retry_check_interval with
 max_check_attempts, but I want an interval when the service is in HARD
 state.)


If I understand correctly what you wish to do then I think you can
achieve this using a combination of event handlers and external
commands.

Create an event handler to be triggered when the service goes into the
state you are interested in and then from the event handler script
post external commands back into nagios to increase the retry check
interval.

See :-
http://www.nagios.org/developerinfo/externalcommands/commandlist.php

With special attention on the following commands :-
CHANGE_RETRY_HOST_CHECK_INTERVAL
CHANGE_RETRY_SVC_CHECK_INTERVAL

-- 
bright blessings,
Mark

-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
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] NRPE question

2007-12-05 Thread Dario B. Bestetti

It´s anybody interested or already working in a way to keep a centralized 
repository of remote plugins and configuration for NRPE ?
What we are looking for is to add/develop some new option in NRPE to pull the 
remote plugins/configuration installed in the NRPE
agent´s nodes and keep them in the Nagios monitor node for backup purposes.

Does it sounds stupid ?

[]s
_
Dario B. BestettiOpServices
  R. Luciana de Abreu, 471 - Sala 403
  Porto Alegre, RS - CEP 90570-060
Fone 55(51)30613588 Mobile  55(51)81518218 
Fax 55(51)30613588  Email    [EMAIL PROTECTED] 
 
   In God we trust, the rest we monitor ...
_





-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
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] Two nagios processes

2007-12-05 Thread mark redding
HI,

 Sometimes, nagios hangs with two nagios processes:


I think you'll find that nagios will spawn off another process for
some of its checks (I certainly see the occassional second nagios
process running on my FreeBSD 6.2 based system). It could be that the
check being performed at the time (be it a standard plugin or a home
grown script) is not getting the response it is expected, is looping,
or doing something else rather strange - what investigation have you
carried out into the checks active at the time it goes ?

-- 
bright blessings,
Mark

-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
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] RES: NRPE question

2007-12-05 Thread Dario B. Bestetti

 -Mensagem original-
 De: Hari Sekhon [mailto:[EMAIL PROTECTED]
 Enviada em: quarta-feira, 5 de dezembro de 2007 11:50
 Para: [EMAIL PROTECTED]
 Cc: nagios-users@lists.sourceforge.net
 Assunto: Re: [Nagios-users] NRPE question
 
 
 
 Dario B. Bestetti wrote:
  ItŽs anybody interested or already working in a way to keep a centralized 
  repository of remote
 plugins and configuration for NRPE ?
  What we are looking for is to add/develop some new option in NRPE to pull 
  the remote
 plugins/configuration installed in the NRPE
  agentŽs nodes and keep them in the Nagios monitor node for backup purposes.
 
  Does it sounds stupid
 Not at all. Bash + Rsync. One Nrpe config for all agents. One set of
 plugins that gets put on all agents. This is what I do. Simplifies
 things nicely and keeps nrpe affairs well maintained.
 
 -h
 
 --
 Hari Sekhon

Hari, what we would like to have is a function inside NRPE agents to do it. 
Using Bash+Rsync is ok, but the remote node must have
rsync and ssh (for security) installed, it´s another piece of software to 
maintain operational. Having something inside NRPE would
allow to do it without depending on any other sw package.

[]s
Dario


-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
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_host_alive warns for wrong IP {Disarmed} {Fraud?}

2007-12-05 Thread Marc Powell

On Dec 5, 2007, at 1:34 AM, Dinçer Kavraal wrote:

 Hi all,
 I think check_host_alive has got sth wrong with it.

 I have controlled output of check_host_alive when I saw my host  
 down. It was saying: (on page nagios/cgi-bin/extinfo.cgi? bla bla  
 for host detail)
 CRITICAL - Host Unreachable (85.29.1.77)

 However the fact is that I have grepped all relevant nagios  
 configuration files and never seen an IP like  85.29.1.77, I just  
 defined host with IP .26.77. On the other hand, I tried to run it on  
 console, expectedly it said:
 CRITICAL - Host Unreachable (85.29.26.77)

This is pretty unusual. Please post the host and command definitions.   
For a typical installation, check_host_alive uses check_ping which is  
just a wrapper for /bin/ping. It asks /bin/ping to ping the host and  
parses it's output for the response. Could it have been that IP in the  
config file at any time? Do you have multiple copies of nagios running  
with the older one having seen that IP in the config files?


--
Marc
-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
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] Adding a CFG file for virtual machines

2007-12-05 Thread mark redding
Hi,

 I would like to add a separate group within Nagios for my virtual machines.
 I created a file called virtual.cfg and changed the HOST GROUP DEFINITION to
 the following:

Firstly, your hostgroup does not appear to have any members defined within it ?

ie.

define hostgroup{
hostgroup_name  smtp-servers
alias   mail servers
members smtp1,smtp2
}

Secondly,

Your 'use' statement should typically be that of an 'unregistered'
'define host' definition and not a hostgroup definition.

ie.

define host{
namevirtual-host   ; The name
of this host template - referenced in other host definitions
notifications_enabled   1   ; Host
notifications are enabled
notification_period 24x7
event_handler_enabled   0   ; Host event
handler is enabled
flap_detection_enabled  1   ; Flap
detection is enabled
process_perf_data   1   ; Process
performance data
retain_status_information   1   ; Retain
status information across program restarts
retain_nonstatus_information1   ; Retain
non-status information across program restarts
contact_groups  admin,techsupp
notification_interval   60
notification_optionsd,u,r
check_period24x7
max_check_attempts  3
normal_check_interval   10
passive_checks_enabled  1
obsess_over_host1
register0   ; DONT
REGISTER THIS DEFINITION
}

as the template, and something like :-

define host{
use virtual-host
host_name   smtp1
alias   (smtp1) incoming smtp server
address ???.???.???.???
check_command   check-host-alive
}

for the actual virtual host.

-- 
bright blessings,
Mark

-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
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] Adding a CFG file for virtual machines

2007-12-05 Thread Michael Egan
I would like to add a separate group within Nagios for my virtual
machines.  I created a file called virtual.cfg and changed the HOST
GROUP DEFINITION to the following:

Define hostgroup {

hostgroup_namevirtual-servers ; the name of the
hostgroup

alias Virtual Servers ; long
name of the group

}

 

For each host definition, the 'use' statement is as follows:

Use  virtual-servers ; Inherit default values from a template

 

In the nagios.cfg file, I have added the following statement:

Cfg_file=/usr/local/nagios/etc/objects/virtual.cfg

 

When I verify the configuration files, I get the following error:

Error: Template 'virtual-servers' specified in host definition could not
be not found (config file '/usr/local/nagios/etc/objects/virtual.cfg'.
starting on line 39

 

I think I am missing a step or two to include this new cfg file.  Any
help would be appreciated.

 

Thanks,

Mike

 

Mike Egan
Enterprise Network Engineer 
Capital Safety 
3833 Sala Way 
Red Wing, MN 55066 
651-385-6254 Office 
651-247-5719 Cell 
[EMAIL PROTECTED] blocked::mailto:[EMAIL PROTECTED]


Home of DBI-Sala and Protecta Brands.  Visit us on the web at
www.capitalsafety.com blocked::http://www.capitalsafety.com/  

 

-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4___
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] RES: NRPE question

2007-12-05 Thread Hari Sekhon
Dario B. Bestetti wrote:
 -Mensagem original-
 De: Hari Sekhon [mailto:[EMAIL PROTECTED]
 Enviada em: quarta-feira, 5 de dezembro de 2007 11:50
 Para: [EMAIL PROTECTED]
 Cc: nagios-users@lists.sourceforge.net
 Assunto: Re: [Nagios-users] NRPE question



 Dario B. Bestetti wrote:
 
 It®s anybody interested or already working in a way to keep a centralized 
 repository of remote
   
 plugins and configuration for NRPE ?
 
 What we are looking for is to add/develop some new option in NRPE to pull 
 the remote
   
 plugins/configuration installed in the NRPE
 
 agent®s nodes and keep them in the Nagios monitor node for backup purposes.

 Does it sounds stupid
   
 Not at all. Bash + Rsync. One Nrpe config for all agents. One set of
 plugins that gets put on all agents. This is what I do. Simplifies
 things nicely and keeps nrpe affairs well maintained.

 -h

 --
 Hari Sekhon
 

 Hari, what we would like to have is a function inside NRPE agents to do it. 
 Using Bash+Rsync is ok, but the remote node must have
 rsync and ssh (for security) installed, itŽs another piece of software to 
 maintain operational. Having something inside NRPE would
 allow to do it without depending on any other sw package.

 []s
 Dario
   
I can see what you are saying, but do you have any *nix servers running 
nrpe that do not have ssh and rsync?

I certainly don't. It's pretty much standard on every linux system for 
example, even the tight and minimalist gentoo...

-h

-- 
Hari Sekhon


-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
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] oracle check

2007-12-05 Thread Benoit Moeremans
Hello,

Since a little upgrade, i've a strange thing in my nagios. I check oracle
services on linux server.

Everything seems to be configured as it need to be, but i don't get correct
values in the web ui. I receveid the following warning: Cannot determine
ORACLE_HOME for sid GI2

However, i checked the nrpe services, when i run the command, i receive the
good values.

From the server where is running nagios:

[EMAIL PROTECTED]:/usr/local/nagios/libexec$ ./check_nrpe -H 192.168.5.10 -n
-c check_oracletnsB
OK - reply time 20 msec from GI1

I don't understand what's wrong. Any idea?

regards,

Ben
-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4___
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