Re: [Nagios-users] Can't execute the CGI scripts

2007-08-27 Thread Hugo van der Kooij
On Mon, 27 Aug 2007, Andreas Ericsson wrote:

> Reynold Guerrier wrote:
>> I did. Because I can see the Nagios Homepage, I can browse the
>> Documentation webpages, but can't get through the nagios data.
>>
>
> It sounds as if you didn't configure your webserver to execute CGI's.

And checking the apache access and error log files will tell for sure. (It 
might be selinux kicking back ;-)

Hugo.

-- 
[EMAIL PROTECTED]   http://hugo.vanderkooij.org/
This message is using 100% recycled electrons.

Some men see computers as they are and say "Windows"
I use computers with Linux and say "Why Windows?"
(Thanks JFK, for this quote of George Bernard Shaw.)

-
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] Can't execute the CGI scripts

2007-08-27 Thread Andreas Ericsson
Reynold Guerrier wrote:
> I did. Because I can see the Nagios Homepage, I can browse the 
> Documentation webpages, but can't get through the nagios data.
> 

It sounds as if you didn't configure your webserver to execute CGI's.

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

-
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] Modbus/TCP??

2007-08-27 Thread Andreas Ericsson
Andrew Cruse wrote:
> Hugo van der Kooij wrote:
>> On Mon, 27 Aug 2007, Andrew Cruse wrote:
>>
>>> I'm looking to take my monitoring of a transfer switch to the next
>>> level beyond just dry-contacts.   The switch manufacturer offers a
>>> monitoring card that is TCP/IP capable, but it does not expose the
>>> various things it monitors over SNMP, but instead uses ModBus/TCP. 
>>> I've not run into that format before, but I gather it is, or is
>>> rapidly becoming, the standard communication protocol for similar
>>> devices.  Has anyone come up with a Nagios plugin that works with
>>> ModBus/TCP??  Unless I'm just not searching for the right thing,
>>> Google has been of no help at all. 
>> Based on the modbus.org website it seems this is not an open protocol
>> and implementing it might open one up to legal claims. Not being a
>> lawyer makes me a bit cautious. This might impede others as well.
> 
> 
> Well, from their FAQ, they say, "The Modbus protocol was transferred from
> Schneider Electric to Modbus-IDA in April 2004, signaling a commitment to
> openness. The specification is available free of charge for download, and
> there are no subsequent licensing fees required for using Modbus or Modbus
> TCP/IP protocols."  
> 
> I'm poking around now to see if maybe there's some kind of client daemon
> already available out there that I could perhaps use Nagios to pull output
> from.  Whatever I manage to rig up I'll put something up on nagiosexchange
> for any others that might need it.
> 

modbus rings a bell. I *think* I might have written a partial, device-specific
implementation of it once, a long time ago.

AFAIR, it's a fairly simple binary protocol along the tried and tested variant
of head+body.

I'll have a look at work tomorrow and see if I can find it. If so, I can
most likely post it here. It'll require a lot of tweaking though, but it
should be better than starting from scratch.

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

-
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] Can't execute the CGI scripts

2007-08-27 Thread Reynold Guerrier
I just reviewed all of them as you suggested but still having the 
same things. I also added the missing CGI location but, it still the same.

Rey

At 03:42 PM 8/27/2007, Tory M Blue wrote:
>On 8/27/07, Reynold Guerrier <[EMAIL PROTECTED]> wrote:
> > I did. Because I can see the Nagios Homepage, I can browse the
> > Documentation webpages, but can't get through the nagios data.
> >
> > Rey
>
>
>Ummm no, did you add the various pieces into your httpd.conf file,
>stating where the nagios cgi's are and what authentication scheme to
>use etc?
>
>EXAMPLE ONLY
>
>
>Alias /nagios "/var/spool/nagios/share/"
>
>
> Options Indexes FollowSymLinks ExecCGI
> AllowOverride None
> Order allow,deny
> Allow from all
> AuthName "Nagios Access"
> AuthType Basic
> AuthUserFile /etc/nagios/htpasswd.users
> Require valid-user
>
>
>Alias /nagios/cgi-bin "/var/spool/nagios/sbin/"
>
>
> Options  FollowSymLinks ExecCGI
> AllowOverride None
> Order allow,deny
> Allow from all
> AuthName "Nagios Access"
> AuthType Basic
> AuthUserFile /etc/nagios/htpasswd.users
> Require valid-user
>
>
>If no, then Patricks statement is valid.
>
>Tory
>
>-
>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


Reynold Guerrier
Technical Manager
Multilink SA
509-246-5502 / 246-5202
509-513-5502 / 512-5202 Ext : 3631 


-
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] Can't execute the CGI scripts

2007-08-27 Thread Tory M Blue
On 8/27/07, Reynold Guerrier <[EMAIL PROTECTED]> wrote:
> I did. Because I can see the Nagios Homepage, I can browse the
> Documentation webpages, but can't get through the nagios data.
>
> Rey


Ummm no, did you add the various pieces into your httpd.conf file,
stating where the nagios cgi's are and what authentication scheme to
use etc?

EXAMPLE ONLY


Alias /nagios "/var/spool/nagios/share/"


Options Indexes FollowSymLinks ExecCGI
AllowOverride None
Order allow,deny
Allow from all
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /etc/nagios/htpasswd.users
Require valid-user


Alias /nagios/cgi-bin "/var/spool/nagios/sbin/"


Options  FollowSymLinks ExecCGI
AllowOverride None
Order allow,deny
Allow from all
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /etc/nagios/htpasswd.users
Require valid-user


If no, then Patricks statement is valid.

Tory

-
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] Can't execute the CGI scripts

2007-08-27 Thread Reynold Guerrier
I did. Because I can see the Nagios Homepage, I can browse the 
Documentation webpages, but can't get through the nagios data.

Rey

At 03:09 PM 8/27/2007, Patrick Morris wrote:
>On Mon, 27 Aug 2007, Reynold Guerrier wrote:
>
> > Dear all
> >
> > I just installed nagios on a Raq Cobalt 550 server. The install
> > process went fine. But when I tried to access the Webpage, I can only
> > get access to the HomePage and the Documentation Page. For all the
> > other links, either I got nothing or it downloads the file I request
> > instead of executing it. Whata can cause that? Thank you for your
> > help. It will be very appreciated.
>
>I sounds like you haven't configured your webserver.


Reynold Guerrier
Technical Manager
Multilink SA
509-246-5502 / 246-5202
509-513-5502 / 512-5202 Ext : 3631 


-
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] Can't execute the CGI scripts

2007-08-27 Thread Patrick Morris
On Mon, 27 Aug 2007, Reynold Guerrier wrote:

> Dear all
> 
> I just installed nagios on a Raq Cobalt 550 server. The install 
> process went fine. But when I tried to access the Webpage, I can only 
> get access to the HomePage and the Documentation Page. For all the 
> other links, either I got nothing or it downloads the file I request 
> instead of executing it. Whata can cause that? Thank you for your 
> help. It will be very appreciated.

I sounds like you haven't configured your webserver.

-
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] Can't execute the CGI scripts

2007-08-27 Thread Reynold Guerrier
Dear all

I just installed nagios on a Raq Cobalt 550 server. The install 
process went fine. But when I tried to access the Webpage, I can only 
get access to the HomePage and the Documentation Page. For all the 
other links, either I got nothing or it downloads the file I request 
instead of executing it. Whata can cause that? Thank you for your 
help. It will be very appreciated.

Rey



Reynold Guerrier
Technical Manager
Multilink SA
509-246-5502 / 246-5202
509-513-5502 / 512-5202 Ext : 3631 


-
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] NDOUtils 1.4b4 OpenBSD build issue

2007-08-27 Thread Israel Brewster
I am attempting to build and install NDOUtils 1.4b4 on an OpenBSD 4.1  
box. Configure runs fine (after making the modifications mentioned in  
the NDOutils on FreeBSD -- solved thread), but when I run make I get  
the following:

#make
[...snip small amount of normal output...]
gcc -I/usr/local/include/mysql -DHAVE_CONFIG_H -c -o db.o db.c
gcc -I/usr/local/include/mysql -DHAVE_CONFIG_H -D BUILD_NAGIOS_2X -c - 
o dbhandlers-2x.o dbhandlers.c
In file included from dbhandlers.c:23:
../include/nagios-2x/nagios.h:452: error: syntax error before  
"pthread_mutex_t"
*** Error code 1

Stop in /root/ndoutils-1.4b3/src (line 84 of Makefile).
*** Error code 1

Stop in /root/ndoutils-1.4b3/src (line 52 of Makefile).
*** Error code 1

Stop in /root/ndoutils-1.4b3 (line 13 of Makefile).

Anyone know how I can solve this? Thanks.
---
Israel Brewster
Computer Support Technician
Frontier Flying Service Inc.
5245 Airport Industrial Rd
Fairbanks, AK 99709
(907) 450-7250 x293
---



-
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] NDOutils on FreeBSD -- solved

2007-08-27 Thread Israel Brewster
Oops, forgot to copy this to the list. Would be nice if that was  
somewhat more automatic :-P Sorry.

On Aug 22, 2007, at 7:57 AM, Ton Voon wrote:

>
> On 22 Aug 2007, at 16:44, Michael W. Lucas wrote:
>
>> checking for type of socket size... size_t
>> checking for linker flags for loadable modules... -shared
>> checking for mysql_config... /usr/local/bin/mysql_config
>> checking for mysql_init in -lmysqlclient... yes
>> MySQL library and include file(s) were found!
>> ...
>>
>> This is more like it.  Now make the main distribution work like
>> that.  ;-)
>
> That's up to Ethan. Another happy user may sway him...

Well, count me in as another happy user, at least as far as the  
configure part of the process goes. I ran into the same issues  
running configure on OpenBSD 4.1, and that fix worked. I am still  
having some problems with the make itself, but that's an issue for  
another thread :)
---
Israel Brewster
Computer Support Technician
Frontier Flying Service Inc.
5245 Airport Industrial Rd
Fairbanks, AK 99709
(907) 450-7250 x293
---
>
> 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


-
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] Modbus/TCP??

2007-08-27 Thread Andrew Cruse
Hugo van der Kooij wrote:
> On Mon, 27 Aug 2007, Andrew Cruse wrote:
> 
>> I'm looking to take my monitoring of a transfer switch to the next
>> level beyond just dry-contacts.   The switch manufacturer offers a
>> monitoring card that is TCP/IP capable, but it does not expose the
>> various things it monitors over SNMP, but instead uses ModBus/TCP. 
>> I've not run into that format before, but I gather it is, or is
>> rapidly becoming, the standard communication protocol for similar
>> devices.  Has anyone come up with a Nagios plugin that works with
>> ModBus/TCP??  Unless I'm just not searching for the right thing,
>> Google has been of no help at all. 
> 
> Based on the modbus.org website it seems this is not an open protocol
> and implementing it might open one up to legal claims. Not being a
> lawyer makes me a bit cautious. This might impede others as well.


Well, from their FAQ, they say, "The Modbus protocol was transferred from
Schneider Electric to Modbus-IDA in April 2004, signaling a commitment to
openness. The specification is available free of charge for download, and
there are no subsequent licensing fees required for using Modbus or Modbus
TCP/IP protocols."  

I'm poking around now to see if maybe there's some kind of client daemon
already available out there that I could perhaps use Nagios to pull output
from.  Whatever I manage to rig up I'll put something up on nagiosexchange
for any others that might need it.

Andrew


-
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] Modbus/TCP??

2007-08-27 Thread Hugo van der Kooij
On Mon, 27 Aug 2007, Andrew Cruse wrote:

> I'm looking to take my monitoring of a transfer switch to the next level
> beyond just dry-contacts.   The switch manufacturer offers a monitoring card
> that is TCP/IP capable, but it does not expose the various things it
> monitors over SNMP, but instead uses ModBus/TCP.  I've not run into that
> format before, but I gather it is, or is rapidly becoming, the standard
> communication protocol for similar devices.  Has anyone come up with a
> Nagios plugin that works with ModBus/TCP??  Unless I'm just not searching
> for the right thing, Google has been of no help at all.

Based on the modbus.org website it seems this is not an open protocol and 
implementing it might open one up to legal claims. Not being a lawyer 
makes me a bit cautious. This might impede others as well.

Hugo.

-- 
[EMAIL PROTECTED]   http://hugo.vanderkooij.org/
This message is using 100% recycled electrons.

Some men see computers as they are and say "Windows"
I use computers with Linux and say "Why Windows?"
(Thanks JFK, for this quote of George Bernard Shaw.)

-
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] Detecting partial outages

2007-08-27 Thread Richard Mohr

David Barrett wrote:

> Specifically, I have multiple datacenters for my production service,
> and then two separate locations from which I do monitoring.  It's
> very rare that any of the production datacenters goes down, but it
> does happen on occasion where one of the datacenters becomes
> inaccessible from only *one* of the monitoring stations.
> 
> (In other words, the datacenter is up and running fine, and appears
> accessible by real users, but looks down to one of my monitoring
> stations.) 
> 
> Is there any way to configure Nagios to detect this sort of "partial
> outage" condition and ignore it?  I only want to be notified if it's
> reported down by *both* monitoring stations.

Maybe this could be handled by service dependencies.  Here is my rough
idea, and you can decide if it adequately meets your needs.  (I'll call
the two Nagios installations Nag_A and Nag_B.)

1) Nag_B monitors the datacenter.  The service check on Nag_B never
sends notifications, it just submits passive check results to Nag_A.

2) Nag_A also monitors the datacenter.  We'll call this service DC_A.
It also has a service called DC_B which never performs active checks (it
just gets the passive check results from Nag_B).

3) A service dependency is defined so DC_A depends on DC_B, with the
"notification_failure_criteria" option set to "o".

If I understand service dependencies correctly, when DC_B is OK there
will never be a notification (regardless of the state of DC_A).  Only if
DC_B is non-OK and DC_A is non-OK will a notification get sent.

-- 
Rick Mohr
Systems Developer
Ohio Supercomputer Center


-
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] snmp over internet "best practice"

2007-08-27 Thread Hugo van der Kooij
On Mon, 27 Aug 2007, Andreas Ericsson wrote:

> If security is your primary concern, you should use ssh with shared key
> authentication as much as you possibly can, and make sure to use one key
> per command you want to execute (read the SSH manpage carefully on how to
> set this up). This can quickly become troublesome though, as the keys and
> commands mount up (maintenance nightmare, but very secure).

If you take the human factor in the equasion you know that this 1 key per 
command is very propably not the safest thing to do. It is too easy to 
make an error.

Hugo.

-- 
[EMAIL PROTECTED]   http://hugo.vanderkooij.org/
This message is using 100% recycled electrons.

Some men see computers as they are and say "Windows"
I use computers with Linux and say "Why Windows?"
(Thanks JFK, for this quote of George Bernard Shaw.)

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

2007-08-27 Thread Holger Weiss
* Edwin Zoeller <[EMAIL PROTECTED]> [2007-08-27 10:58]:
> Can anyone supply me with the syntax of how check_icmp should be entered
> in the checkcommands.cfg file.

Well, an example command definition (which assumes $USER1$ points to
your plugins directory) would be:

define command {
command_namecheck-host-alive
command_line$USER1$/check_icmp -H $HOSTADDRESS$
}

But it depends on how you want check_icmp to behave, of course.  See
"check_icmp -h" for the available options.

Holger

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

2007-08-27 Thread Edwin Zoeller
Can anyone supply me with the syntax of how check_icmp should be entered
in the checkcommands.cfg file.

Thanks,

Ed 


-
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_disk confused by negative disk space, fix or workaround?

2007-08-27 Thread Alloo, Vincent
Hello,
I have fixed the problem by upgrading my OS version (from RH7.2 to
RHEL3.8).


Vincent Alloo
TI France Design Systems Operations Manager
Europe and Middle East IT Services
Texas Instruments France

E-Mail: [EMAIL PROTECTED]
Phone: +33 4 93 22 26 97
Mobile: +33 6 82 13 00 80

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Hugo
van der Kooij
Sent: Sunday, August 26, 2007 1:21 AM
To: Nagios Users mailinglist
Subject: Re: [Nagios-users] check_disk confused by negative disk space,
fix or workaround?

On Sat, 25 Aug 2007, Thomas Guyot-Sionnest wrote:

> On 25/08/07 11:33 AM, Kelly Jones wrote:
>> Nagios' check_disk plug-in gets confused when "df -k" reports
negative
>> space remaining on a drive. For example, if df -k says:
>>
>> /dev/ccd0 567673758 524004492 -1744634 100% /partname
>>
>> nagios' check_disk says:
>>
>> DISK OK - free space: /partname 17592186042712 MB (-1% inode=97%)
>
> What system are you using? My df command never returns negative values
> so I couldn't make a simple test case...

I guess this is a unique feature of Solaris. Not even sure which version

KJ might be referring to.

Hugo.

-- 
[EMAIL PROTECTED]   http://hugo.vanderkooij.org/
This message is using 100% recycled electrons.

Some men see computers as they are and say "Windows"
I use computers with Linux and say "Why Windows?"
(Thanks JFK, for this quote of George Bernard Shaw.)


-
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/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] Modbus/TCP??

2007-08-27 Thread Andrew Cruse
I'm looking to take my monitoring of a transfer switch to the next level
beyond just dry-contacts.   The switch manufacturer offers a monitoring card
that is TCP/IP capable, but it does not expose the various things it
monitors over SNMP, but instead uses ModBus/TCP.  I've not run into that
format before, but I gather it is, or is rapidly becoming, the standard
communication protocol for similar devices.  Has anyone come up with a
Nagios plugin that works with ModBus/TCP??  Unless I'm just not searching
for the right thing, Google has been of no help at all.

Thanks,

Andrew


-
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 threads and process model

2007-08-27 Thread Andreas Ericsson
Yishai Hadas wrote:
> Hi List,
> 
>  
> 
> Where can be found some information about Nagios threads and process
> model:
> 
> * How many threads are running?   
> * What are their main tasks? 
> * Are there some threads that are starting doing some work then
> terminating? 
> * What about the process model (parent/child - fork) - When fork
> is done? How it relates to the threads model? 
> 

Primarily inside very few nagios hackers heads.

Basically nagios 2 additional :
The command_worker_thread continuously reads the unbuffered FIFO through
which a user or a program can send commands to nagios.

The service_result_worker_thread reaps service check results.

The "main" thread is responsible for scheduling and launching checks. It
also takes care of whatever action needs doing upon a state change (such
as sending notifications, executing event-handlers, updating logfiles, etc)

>  
> 
> Is there any documentation about those issues?
> 

Not really, no. Unfortunately, the code handling the threads is sparingly
commented as to what the particular threads do, but you can find the main()
function of each thread in base/utils.c of a [23].x nagios work tree.

> Can someone give here some light?
> 

Hopefully I just did. I assume you want this information in order to hack
on nagios, in which case your C-skills are hopefully sufficient to grok
the rest of it by looking at the source.

>  
> 
>  
> 
> This information can help understanding what is reasonable to do and
> what is not.
> 

For a given value of "reasonable", practically anything is ;-)

> For example assuming that process_performance_data is enabled then
> service_perfdata_command is called periodically,
> 
> Nagios uses perfdata_timeout which is by default 5 seconds to wait for
> the command and if hasn't finished it will be terminated.
> 
> 
> If there is some work that might take in the command much more time e.g.
> 1 minute, is it reasonable to it in this command and let's Nagios to
> wait for it 1 minute?
> 

I'd highly recommend that you try to keep your check execution times to
an absolute minimum. It was designed to run small programs that perform
a limited task quickly and then react on the outcome of the execution
of that small program. If you put nagios to use for a different purpose,
it will ultimately perform less excellent.

> Which other Nagios's tasks will be delayed? 
> 

That would depend on how nagios designs your scheduling queue. If it's
a host-check that's expected to take several minutes, nagios 2.x and
earlier will stall exactly everything while waiting for the check to
finish. If it's a service-check, only the other services that happened
to end up in the same batch will be delayed, but only wrt the reporting
back to the main thread.

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

-
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] snmp over internet "best practice"

2007-08-27 Thread Andreas Ericsson
Aaron wrote:
> I joined the list recently and while doing some searching for answers 
> came across a "best practices" thread.  One of the things listed in the 
> thread was using snmp whenever possible with the statement that it 
> should only be used on the local networks.
> 
> I'm wondering if this is also the popular belief "best practice" even if 
> you're using snmp v3 and if so why.  I was about to deploy snmp v3 
> active checks to check things like cpu and disk loads and then i saw 
> this post.  I thought that was the whole point of v3 with SHA and AES 
> encryptions and authentication so that we could use it over the net.
> 

If security is your primary concern, you should use ssh with shared key
authentication as much as you possibly can, and make sure to use one key
per command you want to execute (read the SSH manpage carefully on how to
set this up). This can quickly become troublesome though, as the keys and
commands mount up (maintenance nightmare, but very secure).

For routers and switches, SNMPv3 is almost always the best way to go.

Personally, I prefer NRPE since it also allows event-handlers to be
added without having to install additional software. The code is also
small, and I've audited it myself so I know it's sound, provided it's
configured properly.

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

-
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] Return code of 136 is out of bounds.

2007-08-27 Thread Andreas Ericsson
Marc Powell wrote:
> 
>> -Original Message-
>> From: [EMAIL PROTECTED] [mailto:nagios-users-
>> [EMAIL PROTECTED] On Behalf Of Lalita Drolia
>> Sent: Friday, August 24, 2007 12:14 AM
>> To: nagios-users@lists.sourceforge.net
>> Subject: [Nagios-users] Return code of 136 is out of bounds.
>>
>> I have a nagios server running successfully on version 3.01b. I
> decided to
>> make a backup server for that machine.
>>
>> So I installed Nagios on another machine and copied the etc folder
> from
>> the first machine to the second.
>>
>>
>>
>> But now in my web interface on the backup server that I have created,
> all
>> service checks are giving the error-
>>
>> "Return code of 136 is out of bounds."
> 
> 136 is highly unusual; google and I haven't seen it before. Do you mean
> 126? If so, Google leads to FAQ leads to likely answer in under 30
> seconds.
> 
> If it doesn't, please provide information about OS version and details
> about how you installed the plugins. How does this new machine differ
> from your current machine?
> 

He must indeed mean 126. 136 is impossible, as a program's return-code
is given to its caller as a signed char value.

In this case, 126 *usually* means "ENOPERM", an error you'll see if
a program tries to execute a file that doesn't have the execute flag
set, or if the user trying to execute the program lacks the permissions
to execute the given file. Since the OP stated all the plugins are
owned by the nagios user, I'd assume a simple

chmod +x /path/to/nagios/plugins/*

would suffice.

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

-
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] Detecting partial outages

2007-08-27 Thread Andreas Ericsson
David Barrett wrote:
> Is there any way to configure Nagios to detect and ignore partial outages?
> 
> Specifically, I have multiple datacenters for my production service, and
> then two separate locations from which I do monitoring.  It's very rare that
> any of the production datacenters goes down, but it does happen on occasion
> where one of the datacenters becomes inaccessible from only *one* of the
> monitoring stations.
> 
> (In other words, the datacenter is up and running fine, and appears
> accessible by real users, but looks down to one of my monitoring stations.)
> 
> Is there any way to configure Nagios to detect this sort of "partial outage"
> condition and ignore it?  I only want to be notified if it's reported down
> by *both* monitoring stations.
> 

If the production centers each hold a nagios server each, there's no way
you can accomplish this, so I'll assume your two nagios servers can still
communicate even when either data-center is down.

The best solution would be to have a neb-module that communicates check-
results between the two nagios-servers. When a check is about to be sent,
have the same neb-module check the status on that secondary nagios-server
and block the notification if either one reports the host as up. This way
you'll get an additional minor delay before receiving a notification, but
since you can force a check on either nagios from within the module whenever
the second server reports a failure, it should be a very minimal one.

Hacking up such a module should take about a week, assuming whoever does
the work is well-versed in C and has a decent grasp of nagios' internals.


A second option is to let an event-handler report the checkresults to the
other server and adding them to a list of some sort (database, flat-file, 
whatever) and then modifying your notification script to only actually
send notifications when both the servers report something as down.

Assuming you use "notification_interval 0" for all your hosts and
services, only the server that does the last check of whatever
host/service it should report on will send a notification. This shouldn't
take much more than a day to hack up, but is less elegant. With a shared
network-capable database it shouldn't be too much trouble though.


There are more options, but those are the two elegant ones I can think of.

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

-
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] notification interval is 4325420??

2007-08-27 Thread vang
hi all

I have a problem with nagios 3.0b1. when I check my config via web
interface with "view config -> service escalations" in the column
'Notification Interval' it shows 4325420. I don't understand from where
that number comes...  either I have hit a bug or I'm doing something
really wrong.

the config lines which produces that looks something like

define serviceescalation {
  host_name a-test
  service_description tcp_5556
  contacts oncall
  contact_groups
  first_notification 2
  last_notification  0
  notification_interval 5
}

(contact_groups is empty because i want to override the inherited value)


-
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 threads and process model

2007-08-27 Thread Yishai Hadas
Hi List,

 

Where can be found some information about Nagios threads and process
model:

*   How many threads are running?   
*   What are their main tasks? 
*   Are there some threads that are starting doing some work then
terminating? 
*   What about the process model (parent/child - fork) - When fork
is done? How it relates to the threads model? 

 

Is there any documentation about those issues?

Can someone give here some light?

 

 

This information can help understanding what is reasonable to do and
what is not.

For example assuming that process_performance_data is enabled then
service_perfdata_command is called periodically,

Nagios uses perfdata_timeout which is by default 5 seconds to wait for
the command and if hasn't finished it will be terminated.

 

 

If there is some work that might take in the command much more time e.g.
1 minute, is it reasonable to it in this command and let's Nagios to
wait for it 1 minute?

Which other Nagios's tasks will be delayed? 

 

 

Thanks in advance,

 

Yishai.

 

**

The contents of this email and any attachments are confidential.
It is intended for the named recipient(s) only.
If you have received this email in error please notify the system manager orĀ  
the 
sender immediately and do not disclose the contents to anyone or make copies.
** eSafe scanned this email for viruses, vandals and malicious content **

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