Re: [Nagios-users] Nagios.log not updating

2011-09-09 Thread Mailing Lists
mysql> select log_notifications,log_service_retries,
log_host_retries,log_event_handlers,log_initial_states,log_external_commands,log_passive_checks
from cfg_nagios;
+---+-+--+++---++
| log_notifications | log_service_retries | log_host_retries |
log_event_handlers | log_initial_states | log_external_commands |
log_passive_checks |
+---+-+--+++---++
| 1 | 1   | 1|
1  | 1  | 1 |
2  |
| 1 | 1   | 1|
1  | 1  | 1 |
2  |
| 1 | 1   | 1|
1  | 1  | 1 |
2  |
| 1 | 1   | 1|
1  | 1  | 1 |
2  |
+---+-+--+++---++


On Fri, Sep 9, 2011 at 1:07 PM, Mailing Lists
wrote:

> Yeah, this is setup exactly like the other pollers. Below you will find the
> relevant parts of the config...
>
> [root@ etc]# grep -i log nagios.cfg
> log_file=/usr/local/nagios/var/nagios.log
> status_file=/usr/local/nagios/var/status.log
> log_rotation_method=d
> log_archive_path=/usr/local/nagios/var/archives/
> use_syslog=0
> log_notifications=1
> log_service_retries=1
> log_host_retries=1
> log_event_handlers=1
> log_initial_states=1
> log_external_commands=1
>
>
>
> On Fri, Sep 9, 2011 at 12:35 PM, Jim Avery  wrote:
>
>> On 9 September 2011 16:01, Mailing Lists 
>> wrote:
>> > I currently have a centreon / nagios setup with one central centreon box
>> > with three pollers. The newest poller is working fine with in terms of
>> > updating the central centreon system. However, the one issue I am
>> running
>> > into and haven't been able to find an answer to is that the newest
>> poller
>> > isn't logging to the nagios.log when a service is checked. It logs the
>> > initial service state and that's it. Any idea what could cause this? I
>> have
>> > googled for hours.
>>
>> Have you checked the various option in nagios.cfg?  See:-
>> http://nagios.sourceforge.net/docs/nagioscore/3/en/configmain.html
>> log_service_retries and log_passive_checks etc,.
>>
>>
>> --
>> Why Cloud-Based Security and Archiving Make Sense
>> Osterman Research conducted this study that outlines how and why cloud
>> computing security and archiving is rapidly being adopted across the IT
>> space for its ease of implementation, lower cost, and increased
>> reliability. Learn more. http://www.accelacomm.com/jaw/sfnl/114/51425301/
>> ___
>> 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
>>
>
>
--
Why Cloud-Based Security and Archiving Make Sense
Osterman Research conducted this study that outlines how and why cloud
computing security and archiving is rapidly being adopted across the IT 
space for its ease of implementation, lower cost, and increased 
reliability. Learn more. http://www.accelacomm.com/jaw/sfnl/114/51425301/___
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.log not updating

2011-09-09 Thread Mailing Lists
Yeah, this is setup exactly like the other pollers. Below you will find the
relevant parts of the config...

[root@ etc]# grep -i log nagios.cfg
log_file=/usr/local/nagios/var/nagios.log
status_file=/usr/local/nagios/var/status.log
log_rotation_method=d
log_archive_path=/usr/local/nagios/var/archives/
use_syslog=0
log_notifications=1
log_service_retries=1
log_host_retries=1
log_event_handlers=1
log_initial_states=1
log_external_commands=1


On Fri, Sep 9, 2011 at 12:35 PM, Jim Avery  wrote:

> On 9 September 2011 16:01, Mailing Lists 
> wrote:
> > I currently have a centreon / nagios setup with one central centreon box
> > with three pollers. The newest poller is working fine with in terms of
> > updating the central centreon system. However, the one issue I am running
> > into and haven't been able to find an answer to is that the newest poller
> > isn't logging to the nagios.log when a service is checked. It logs the
> > initial service state and that's it. Any idea what could cause this? I
> have
> > googled for hours.
>
> Have you checked the various option in nagios.cfg?  See:-
> http://nagios.sourceforge.net/docs/nagioscore/3/en/configmain.html
> log_service_retries and log_passive_checks etc,.
>
>
> --
> Why Cloud-Based Security and Archiving Make Sense
> Osterman Research conducted this study that outlines how and why cloud
> computing security and archiving is rapidly being adopted across the IT
> space for its ease of implementation, lower cost, and increased
> reliability. Learn more. http://www.accelacomm.com/jaw/sfnl/114/51425301/
> ___
> 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
>
--
Why Cloud-Based Security and Archiving Make Sense
Osterman Research conducted this study that outlines how and why cloud
computing security and archiving is rapidly being adopted across the IT 
space for its ease of implementation, lower cost, and increased 
reliability. Learn more. http://www.accelacomm.com/jaw/sfnl/114/51425301/___
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.log not updating

2011-09-09 Thread Mailing Lists
I currently have a centreon / nagios setup with one central centreon box
with three pollers. The newest poller is working fine with in terms of
updating the central centreon system. However, the one issue I am running
into and haven't been able to find an answer to is that the newest poller
isn't logging to the nagios.log when a service is checked. It logs the
initial service state and that's it. Any idea what could cause this? I have
googled for hours.
--
Why Cloud-Based Security and Archiving Make Sense
Osterman Research conducted this study that outlines how and why cloud
computing security and archiving is rapidly being adopted across the IT 
space for its ease of implementation, lower cost, and increased 
reliability. Learn more. http://www.accelacomm.com/jaw/sfnl/114/51425301/___
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] Comments between versions 2 and 3 of Nagios

2007-10-09 Thread Andy Shellam (Mailing Lists)
Hi Martine,

This is a known issue between Nagios 2 and 3 - it's also the case for 
downtime.
See the following package for how-to migrate the comments from one 
system to another: 
http://nagios.sourceforge.net/docs/3_0/upgrading.html#nagios2x

I don't know if anyone's written a script for it, but it's a 10-second 
job to do manually as I did it on my test Nagios 3 system.

Andy

Martine Carannante wrote:
> If we update a nagios 2 version into a nagios3.0b4, the comments set on 
> hosts and services are lost.
> In nagios 2, the comments are saved in a file comments.dat .
> In nagios 3, the comments are saved in status.dat.
> Is there a script to keep comments between versions 2 and 3 of Nagios
>
> Thanks for your help
> Martine
>
>   


-
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] [Fwd: Re: Nagios 3.0b4 crashing]

2007-10-08 Thread Andy Shellam (Mailing Lists)
Sorry, due to an error on my mail server, this didn't get through first 
time round.

Hi,

Found the cause of this: the pre-flight check isn't working correctly 
(see output below) which caused the confusion (the errors were 
off-screen in my terminal window, and I mistakenly trusted the "Total 
Warnings: 0, Total Errors: 0" bit!!

I've copied in nagios-devel to report this (also confirmed the same with 
today's CVS build.)  Note that the servicegroup "Server_Info" does *not* 
exist (I mistakenly removed it a few days ago), so the pre-flight check 
should report it as an error, but it doesn't.

Nagios 3.0b4
Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org)
Last Modified: 09-27-2007
License: GPL

Reading configuration data...

Error: Could not find any servicegroup matching 'Server_Info' (config 
file 
'/usr   
  
/local/nagios.test/etc/services/system-uptime.cfg', starting on line 1)
Error: Could not find any servicegroup matching 'Server_Info' (config 
file 
'/usr   
  
/local/nagios.test/etc/services/system-processes.cfg', starting on line 1)
Error: Could not find any servicegroup matching 'Server_Info' (config 
file 
'/usr   
  
/local/nagios.test/etc/services/system-name.cfg', starting on line 1)
Error: Could not find any servicegroup matching 'Server_Info' (config 
file 
'/usr   
  
/local/nagios.test/etc/services/system-location.cfg', starting on line 1)
Error: Could not find any servicegroup matching 'Server_Info' (config 
file 
'/usr   
  
/local/nagios.test/etc/services/system-contact.cfg', starting on line 1)
Error: Could not find any servicegroup matching 'Server_Info' (config 
file 
'/usr   
  
/local/nagios.test/etc/services/snmp-uptime.cfg', starting on line 1)
Running pre-flight check on configuration data...

Checking services...
   Checked 7 services.
Checking hosts...
   Checked 1 hosts.
Checking host groups...
   Checked 1 host groups.
Checking service groups...
   Checked 1 service groups.
Checking contacts...
   Checked 1 contacts.
Checking contact groups...
   Checked 1 contact groups.
Checking service escalations...
   Checked 0 service escalations.
Checking service dependencies...
   Checked 0 service dependencies.
Checking host escalations...
   Checked 0 host escalations.
Checking host dependencies...
   Checked 0 host dependencies.
Checking commands...
   Checked 4 commands.
Checking time periods...
   Checked 1 time periods.
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 0
Total Errors:   0

Things look okay - No serious problems were detected during the 
pre-flight check

Thanks,

Andy

Andreas Ericsson wrote:
> Please don't top-post.
>
> [EMAIL PROTECTED] wrote:
>> Thanks,
>>
>> According to the 3.0 documentation, you don't need to re-compile 
>> Nagios to
>> get the debug symbols - is this right?
>>
>
> No. See below.
>
>> "Debugging information can now be written to a separate debug file, 
>> which
>> is automatically rotated when it reaches a user-defined size. This 
>> should
>> make debugging problems much easier, as you don't need to recompiled
>> Nagios."
>>
>
> This is about debugging symbols which reside inside the executable 
> binary,
> not about debugging output generated by the program itself.
>
> Debugging symbols and debug output is not even remotely the same.
>
>
>> I've enabled the "allow Nagios to create core dumps" option (can't 
>> remember
>> what it's called atm), and the notes for that directive do say that even
>> with that option enabled, Nagios may not create a core dump, which it
>> doesn't.
>>
>
> It's supposed to. Perhaps you meant "disabled the ..." ?
>
>> I'll try strace/ktrace, but how do you get Nagios to run in the 
>> foreground,
>> as soon as you start it with "-d" it goes to the background anyway?
>
> Start it without -d, or use "strace -f", although you'll still have to 
> send
> the backtrace of your resulting core-dump to the nagios-devel@ mailing 
> list
> if you want any help solving the problem, unless a recent CVS snapshot 
> does
> the trick for you.
>



-
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/
___

Re: [Nagios-users] check_telnet?

2007-09-18 Thread Andy Shellam (Mailing Lists)
Use check_tcp to connect to port 23 (if it's a Telnet host in the 
strictest sense of the word) or check_ssh if it's an SSH host.

Andy

Marc Powell wrote:
>   
>> -Original Message-
>> From: [EMAIL PROTECTED] [mailto:nagios-users-
>> [EMAIL PROTECTED] On Behalf Of Melanie Pfefer
>> Sent: Tuesday, September 18, 2007 5:47 AM
>> To: nagios-users@lists.sourceforge.net
>> Subject: [Nagios-users] check_telnet?
>>
>> Hi
>>
>> Is there a "check_telnet" to see if the server can be
>> telnet'ed?
>> 
>
> 99% of the time, Google will tell you if you search for 'nagios
> check_something' (i.e. 'nagios check_telnet') or 'nagios check
> something'. With very few exceptions, you're almost certainly not the
> first to need to check whatever it is.
>
> Google should really be the first place checked for any question.
>
> --
> Marc
>
> -
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
> ___
> 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
>
> !DSPAM:37,46efbfff7681725816736!
>
>
>
>   



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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] Fwd: Problem with availability report

2007-09-03 Thread Andy Shellam (Mailing Lists)
Hi Pablo,

 

Yes, it looks as if your Nagios user does not have permissions to write to 
/var/log/nagios2/archives.

 

Do "chown nagios:adm /var/log/nagios2/archives", then when your logs are 
rotated, you should get the old logs moved inside your archives directory, and 
you'll be able to run historical reports.  

 

What you'll probably find is that currently, the reports are only picking up 
the current day's data (as you only have today's log file.)

 

Andy.

 

 

From: Pablo Daniel Estigarribia Davyt [mailto:[EMAIL PROTECTED] 
Sent: Monday, 03 September, 2007 11:15 pm
To: [EMAIL PROTECTED]
Subject: Re: [Nagios-users] Fwd: Problem with availability report

 

Is possible it happens by file system rights ?

XXXHOST:/etc/nagios2/conf.d# ll /var/log/nagios2/
total 13552
drwxr-xr-x 2 root   root 4096 2007-03-04 20:56 archives
-rw-r--r-- 1 nagios adm  13850632 2007-09-03 19:11 nagios.log

Br,

2007/9/3, Pablo Daniel Estigarribia Davyt <[EMAIL PROTECTED]>:

Hi Andy,
  I opened and it says the current log file is: 
/var/log/nagios2/nagios.log, so I on latest archive and it says the following: 
Error: Could not open log file 
'/var/log/nagios2/archives/nagios-09-03-2007-00.log ' for reading!
  Wen i see inside /var/log/nagios2/archives there are no file inside. 
Do you know how i can fix it?

My /etc/nagios2/nagios.cfg has log_rotation_method=d, but there is only 
/var/log/nagios2/nagios.log on my filesystem. 



Thanks !

2007/9/3, Andy Shellam (Mailing Lists) < <mailto:[EMAIL PROTECTED]>  [EMAIL 
PROTECTED]>:

Hi Pablo,

 

What does the report class the "Indeterminate" data as?  (Insufficient data or 
Nagios not running?)

 

If it says "Insufficient data," I'd hazard a guess that your last month's log 
files aren't where Nagios expects them to be, perhaps they've been archived or 
zipped by a log rotation program, but that's just a guess.

 

If you browse to your "Event Log" in Nagios, near the the top, it should say 
"File:" and the path to a file.  That's the current log file.  Look in that 
file's directory on your system and see if there are any other files with last 
month's dates in.

 

Andy.

 

From: [EMAIL PROTECTED] [mailto: <mailto:[EMAIL PROTECTED]>  [EMAIL PROTECTED] 
On Behalf Of Pablo Daniel Estigarribia Davyt
Sent: Monday, 03 September, 2007 1:52 pm
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Fwd: Problem with availability report

 

I re send it because the confirmation of my register arrives after I sent the 
email

-- Forwarded message --
From: Pablo Daniel Estigarribia Davyt <[EMAIL PROTECTED]>
Date: 03-sep-2007 8:57
Subject: Problem with availability report
To: nagios-users@lists.sourceforge.net 

Hi all,
I have installed nagios on Debian, I have 2 installation and I have the 
same problem on both: 
*When I try to take a report from the last month every host appears with 
undetermined state to %100, but if I try to take a report of this month 
everything works well. 

Do you know something about this?, I searched on google but I don't know how I 
can fix it.

Br,

-- 
Pablo Estigarribia.
counter.li.org : 392716 

-- 
Pablo Estigarribia.

counter.li.org : 392716 




-- 
Pablo Estigarribia.
counter.li.org : 392716 




-- 
Pablo Estigarribia.
counter.li.org : 392716 !DSPAM:37,46dc875f107508896821081! 

-
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] Fwd: Problem with availability report

2007-09-03 Thread Andy Shellam (Mailing Lists)
Hi Pablo,

 

What does the report class the "Indeterminate" data as?  (Insufficient data or 
Nagios not running?)

 

If it says "Insufficient data," I'd hazard a guess that your last month's log 
files aren't where Nagios expects them to be, perhaps they've been archived or 
zipped by a log rotation program, but that's just a guess.

 

If you browse to your "Event Log" in Nagios, near the the top, it should say 
"File:" and the path to a file.  That's the current log file.  Look in that 
file's directory on your system and see if there are any other files with last 
month's dates in.

 

Andy.

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Pablo Daniel 
Estigarribia Davyt
Sent: Monday, 03 September, 2007 1:52 pm
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Fwd: Problem with availability report

 

I re send it because the confirmation of my register arrives after I sent the 
email

-- Forwarded message --
From: Pablo Daniel Estigarribia Davyt <[EMAIL PROTECTED]>
Date: 03-sep-2007 8:57
Subject: Problem with availability report
To: nagios-users@lists.sourceforge.net 

Hi all,
I have installed nagios on Debian, I have 2 installation and I have the 
same problem on both: 
*When I try to take a report from the last month every host appears with 
undetermined state to %100, but if I try to take a report of this month 
everything works well. 

Do you know something about this?, I searched on google but I don't know how I 
can fix it.

Br,

-- 
Pablo Estigarribia.
counter.li.org : 392716 

-- 
Pablo Estigarribia.
counter.li.org : 392716 !DSPAM:37,46dc422e107501718520730! 

-
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 Nagios keep the data returned from the services?

2007-08-30 Thread Andy Shellam (Mailing Lists)
Hi Chris,

I'm looking at the possibility of doing this myself over the coming months.
Unfortunately, I can only give you a pointer.  I believe what you're looking
for is performance data - that is, when a plugin returns it's output, a
specially crafted string at the end of the output (containing the statistics
- e.g cpu usage, memory usage etc) for that particular plugin can be parsed
by Nagios and processed in some way.

However, not having done this, I'm not privy to how it works - lookup the
performance-related config directives in the Nagios 2 documentation, I'm
sure this will provide an insight.

Andy.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Chris Lee
Sent: Thursday, 30 August, 2007 7:44 am
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Can Nagios keep the data returned from the services?

Hi,

I am new to nagios and just set up one a few days ago. I am using Nagios to
monitor the CPU, Memory usage and disk usage of the my servers. I would like
to know if Nagios is able to keep the data (ie. cpu, memory, disk usage
data) returned by the services from those hosts. I need the data because I
will use it for capacity planning and for some simple monthly reports. Can I
make use of  Nagios for this purpose?

Thanks a lot,

- Chris Lee

---
The mailing list archive is found here:
http://www.nagiosexchange.org/nagios-users.34.0.html


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

!DSPAM:37,46d66738107502094449794!






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

2007-08-29 Thread Andy Shellam (Mailing Lists)
Hi Israel,

The "ceil" function is part of a standard math library, a quick Google
search for "undefined reference to `ceil'"
(http://www.google.co.uk/search?q=undefined+reference+to+%60ceil'&ie=utf-8&o
e=utf-8&aq=t&rls=org.mozilla:en-GB:official&client=firefox-a) reveals that
you need to add the flag "-lm" to your linker flags.

E.g., try:

LDFLAGS="-L/usr/lib/mysql -lz -lnsl -lmysqlclient -lm" ./configure 

Andy.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Israel
Brewster
Sent: Wednesday, 29 August, 2007 9:31 pm
To: Nagios Users mailinglist
Subject: [Nagios-users] NDOUtils 1.4b4 OpenBSD build issue

Ok, I have now attempted to build ndoutils 1.4b4 on a RHEL 4 box,  
only to get the following error:

gcc -O0 -g -DHAVE_CONFIG_H  -D BUILD_NAGIOS_2X -o ndo2db-2x ndo2db.c  
dbhandlers-2x.o io.o utils.o db.o  -L/usr/lib/mysql -lz  -lnsl - 
lmysqlclient
utils.o(.text+0x14e): In function `ndo_dbuf_strcat':
/root/ndoutils-1.4b4/src/utils.c:67: undefined reference to `ceil'
collect2: ld returned 1 exit status
make[2]: *** [ndo2db-2x] Error 1
make[2]: Leaving directory `/root/ndoutils-1.4b4/src'
make[1]: *** [ndo2db] Error 2
make[1]: Leaving directory `/root/ndoutils-1.4b4/src'

Not that building it on the RHEL box would help with the OpenBSD  
build, mind you, but at least it would show me that the problem isn't  
in the package. To make things more interesting, if I try building  
ndoutils 1.4b3 on the RHEL box, it builds just fine. Neither one will  
build on my OpenBSD box however. Are there any other utilities that  
perform the same function as ndoutils perhaps? Or anywhere else that  
I can ask to get a solution? My primary goal here is to be able to  
use Nagvis, which, to the best of my knowledge, requires this  
utility. So any help that can be provided in getting this working  
would be appreciated. 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

!DSPAM:37,46d5d7e8107501641318227!






-
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] How do I check the services on remote machines

2007-08-16 Thread Andy Shellam (Mailing Lists)
Hi Lingyun,

Have a look at NRPE.

Basically you run an NRPE daemon on the remote machines (which is 
configured with the commands to use.)
You set up a service in Nagios to use check_nrpe to query the remote 
NRPE daemon.  The NRPE daemon takes the command name to use, runs the 
command associated on the system, then sends the result back to Nagios, 
which determines if it was successful or not.

You get the check_nrpe plugin by compiling NPRE (you just have to copy 
it to Nagios' libexec directory.

Andy.

Lingyun Yang wrote:
> Hi:
>I am running nagios to monitoring a cluster. There are different 
> kinds of services running on different machines. How could I use nagios 
> to monitor the services on remote machines? I know I may need to write  
> new plugins to check the service status. My question is: how could I 
> send the service status back to nagios's machine. Do I need to write a 
> client  which running on the remote machine and send check results back 
> to nagios periodically? or is there any existing nagios's figure 
> supporting this functionality?
>
> thanks
> Lingyun
>
> -
> 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
>
> !DSPAM:37,46c499c8107501549885501!
>
>
>
>   


-
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] Opinion Sought... Essential Nagios 3rd PartyApps.

2007-08-16 Thread Andy Shellam (Mailing Lists)
Hi Dimitry,

Yep.  NLG 2.0 release is code-named "Padlock" for this very reason!  The 
main goal is purely on security, anything else I can get going will be a 
bonus, and it will feature a complete security model.

In v2, you'll be able to create users and tag them to groups.  Users can 
then be assigned to host- and/or service-groups, as well as 
hosts/services themselves.  Users and individual groups will be able to 
have different permission levels, and if a user is defined in a group, 
but has explicit permissions on their username, the individual 
permissions will override that of the group (the way I see it at the 
moment, unless anyone has any objections / other ideas?)

As for how it links in with Nagios, I'm not sure yet whether to pick up 
the contact group a user is in, or to leave NLG permissions completely 
separate to Nagios?

In NLG 2, the view will also revolve around host/service groups as 
opposed to the hosts/services themselves.  At the moment I'm thinking 
something along the lines of (in the network browser):

- Network Status
--- Web servers (host group)
- Web 01
- Web 02
--- Mail servers (host group)
- Mail 01
- Mail 02
--- Web services (service group)
- www.websiteone.com on Web 01
- www.websiteone.com (user login) on Web 02
--- Mail services (service group)
- SMTP server on Mail 01
- IMAP server on Mail 01
- IMAP server on Mail 02#

Thoughts on any of the above, anyone?

If you need anything quick in the meantime, NLG 1.0.6 features 
custom-filters, so you can only include certain hosts in the filter view 
filters.  This only works on the hostname set in Nagios, and each host 
has to be explicitly set (i.e. it doesn't allow for regex's.)  This was 
a quick-fix patch I put in for a user back in v1.0.2, and it became a 
popular requested feature so I put it in the trunk for the 1.0.6 release.

Thanks,

Andy.

Sapon, Dimitry wrote:
> Andy,
>
> In the future release, will it allow the ability to customize which
> hosts you want to view, maybe by viewing only certain host groups (by
> specifically choosing them or through some REGEX on the name)? 
>
> Also, in terms of security, are you planning on implementing who can
> view what services based on the if they are a contact of that
> service/host? 
>
> Regards,
> Dimitry
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Andy
> Shellam (Mailing Lists)
> Sent: Thursday, August 16, 2007 1:40 PM
> To: Chris Stankaitis
> Cc: nagios-users@lists.sourceforge.net
> Subject: Re: [Nagios-users] Opinion Sought... Essential Nagios 3rd
> PartyApps.
>
> Hi Chris,
>
> I'm playing my own trumpet a bit here, but I started a project called
> Nagios Looking Glass - it's aim is to provide a prettier, read-only
> interface to users with the essentials "at-a-glance" without the
> complexity of the Nagios GUI.
>
> The view-switching between servers, services and network status all uses
> AJAX.  The next major release series (2.x) promises to provide much more
> security features, and better views on the information that's in your
> Nagios system.
>
> Check out http://looking-glass.andyshellam.eu for a live demo, or
> www.nagioslookingglass.co.uk for the project website.
>
> Thanks,
>
> Andy.
>
> Chris Stankaitis wrote:
>   
>> We have been using Nagios for a very long time, I have been running it
>> 
>
>   
>> under an older rev for a bit because everything has worked, and there 
>> have been no new features that my install has needed.  However for 
>> various reasons we are now looking to upgrade to current.
>>
>> I would like some opinions of what the must have 3rd party apps are 
>> for nagios (beyond say NSCA) to make life easier for config, make 
>> nagios look prettier (some Ajax eye candy would be nice in the 
>> interface), extend information presented (graphs etc)...
>>
>> basically if your using an app... and your asking yourself why the 
>> heck don't they just put this into the main trunk of the program 
>> because we can't live without it then I would like to know about that 
>> app and investigate it for my own inclusion in my upgrade.
>>
>> Thanks for the recommendations in advanced.
>>
>> --Chris
>>
>>
>>
>> --
>> --- 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 >&

Re: [Nagios-users] Opinion Sought... Essential Nagios 3rd Party Apps.

2007-08-16 Thread Andy Shellam (Mailing Lists)
Hi Chris,

I'm playing my own trumpet a bit here, but I started a project called 
Nagios Looking Glass - it's aim is to provide a prettier, read-only 
interface to users with the essentials "at-a-glance" without the 
complexity of the Nagios GUI.

The view-switching between servers, services and network status all uses 
AJAX.  The next major release series (2.x) promises to provide much more 
security features, and better views on the information that's in your 
Nagios system.

Check out http://looking-glass.andyshellam.eu for a live demo, or 
www.nagioslookingglass.co.uk for the project website.

Thanks,

Andy.

Chris Stankaitis wrote:
> We have been using Nagios for a very long time, I have been running it
> under an older rev for a bit because everything has worked, and there
> have been no new features that my install has needed.  However for
> various reasons we are now looking to upgrade to current.
>
> I would like some opinions of what the must have 3rd party apps are for
> nagios (beyond say NSCA) to make life easier for config, make nagios
> look prettier (some Ajax eye candy would be nice in the interface),
> extend information presented (graphs etc)...
>
> basically if your using an app... and your asking yourself why the heck
> don't they just put this into the main trunk of the program because we
> can't live without it then I would like to know about that app and
> investigate it for my own inclusion in my upgrade.
>
> Thanks for the recommendations in advanced.
>
> --Chris
>
>
>
> -
> 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
>
> !DSPAM:37,46c45800107503214010152!
>
>
>
>   


-
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] guest access

2007-07-29 Thread Andy Shellam (Mailing Lists)
Hi Paul,

Are you looking for your read-only users simply to see your host/service 
statuses without being able to do anything else?
If so, this is what Nagios Looking Glass was designed for, and as Nagios 
moves into v3.0, there are plans to possibly extend this functionality 
to do other stuff as well, like reporting, and a full management suite.

See www.nagioslookingglass.co.uk for more details and to get it.
Version 2 of Nagios Looking Glass (due for previews at the end of the 
year/early next year) will have a complete security model and management 
dashboard.

Regards

Andy

Paul Dugas wrote:
> Been fiddling with this for a while now and am stumped.  I figure I'm
> not the first to want this so before I get a brain cramp I'll ask.  
>
> I run a couple Nagios server on internal networks and I want internal
> users to get read access without having to log in.  I want a select
> number of users to be able to login and get higher level access.  I've
> been trying to get the HTTP interface default to the guest account and
> the HTTPS interface to require a login.  My admins and I would use the
> HTTPS interface while our customers would use the standard HTTP
> interface.  
>
> Anybody got something like this going?  Perhaps something else that
> would accomplish the same?  Any info would be appreciated.
>
> pd
>   
> 
>
> -
> 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/
>
> !DSPAM:37,46acd2fb267728080321068!
>   
> 
>
> ___
> 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
>
> !DSPAM:37,46acd2fb267728080321068!
>   


-
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] Problem with statusmap

2007-03-02 Thread Andy Shellam (Mailing Lists)
Try adding /usr/local/lib to /etc/ld.so.conf and run ldconfig (not sure 
if SuSE has this?)
Or try linking /usr/local/lib/libgd*.so* /usr/local/lib/libpng*.so* 
/usr/local/lib/libjpeg*.so* /usr/local/lib/libttf*.so.* into /lib.


I've had this sorta problem with other applications on FreeBSD (Nagios 
was actually OK.)


PS. Don't forget to copy the list in!

Mark Thompson wrote:

./configure --sysconfdir=/etc/nagios --localstatedir=/var/nagios 
--with-command-group=nagcmd --with-gd-lib=/usr/local/lib 
--with-gd-inc=/usr/local/include.

The 4 libs that are listed in the faq were installed with yast.

thanks


  

"Andy Shellam (Mailing Lists)" <[EMAIL PROTECTED]> 3/2/2007 11:28 AM >>>


What's your ./configure line?


Mark Thompson wrote:
  

Opensuse 10.2
Nagios 2.7
all libs installed.
make all returns this error:

gcc -g -O2 -I/usr/local/include/ -DHAVE_CONFIG_H -DNSCGI -L/usr/local/lib/ -o 
statusmap.cgi statusmap.c getcgi.o cgiutils.o cgiauth.o  objects-cgi.o 
xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o -lgd -lttf -lpng -ljpeg -lz 
-lm
/tmp/ccQJAY1X.o: In function `load_image_from_file':
/usr/local/src/nagios-2.7/cgi/statusmap.c:2215: undefined reference to 
`gdImageCreateFromJpeg'

collect2: ld returned 1 exit status
make[1]: *** [statusmap.cgi] Error 1
make[1]: Leaving directory `/usr/local/src/nagios-2.7/cgi'
make: *** [all] Error 2

Is this a bug in the compile or is there something else that needs to be 
installed?

thanks

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV 
___

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





  





!DSPAM:37,45e860fc103001942811417!


  



--
Andy Shellam
NetServe Support Team

the Mail Network
"an alternative in a standardised world"

p: +44 (0) 121 288 0832/0839
m: +44 (0) 7818 000834

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
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] Problem with statusmap

2007-03-02 Thread Andy Shellam (Mailing Lists)
What's your ./configure line?


Mark Thompson wrote:
> Opensuse 10.2
> Nagios 2.7
> all libs installed.
> make all returns this error:
>
> gcc -g -O2 -I/usr/local/include/ -DHAVE_CONFIG_H -DNSCGI -L/usr/local/lib/ -o 
> statusmap.cgi statusmap.c getcgi.o cgiutils.o cgiauth.o  objects-cgi.o 
> xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o -lgd -lttf -lpng -ljpeg -lz 
> -lm
> /tmp/ccQJAY1X.o: In function `load_image_from_file':
> /usr/local/src/nagios-2.7/cgi/statusmap.c:2215: undefined reference to 
> `gdImageCreateFromJpeg'
>
> collect2: ld returned 1 exit status
> make[1]: *** [statusmap.cgi] Error 1
> make[1]: Leaving directory `/usr/local/src/nagios-2.7/cgi'
> make: *** [all] Error 2
>
> Is this a bug in the compile or is there something else that needs to be 
> installed?
>
> thanks
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> 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
>
> !DSPAM:37,45e85264103002543180458!
>
>
>   


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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] [Fwd: Re: Service Dependencies - How do you do yours?]

2007-02-28 Thread Andy Shellam (Mailing Lists)
For anyone else that's interested in this, I've raised as a project on 
Nagios Exchange.

Hopefully should have something up over the weekend!

http://www.nagiosexchange.org/Configuration.20.0.html?&tx_netnagext_pi1[p_view]=882&tx_netnagext_pi1[page]=10%3A10

Andy.

 Original Message 
Subject:Re: [Nagios-users] Service Dependencies - How do you do yours?
Date:   Wed, 28 Feb 2007 15:02:09 +
From:   Andy Shellam (Mailing Lists) <[EMAIL PROTECTED]>
To: Hari Sekhon <[EMAIL PROTECTED]>
CC: Nagios Users mailinglist 
References: <[EMAIL PROTECTED]>



Hari,

I have this exact problem (raised it a few weeks ago.)
I've got it on my to-do list to create a shell script (probably PHP) 
that will create a service_dependencies.cfg file for you with each host 
and it's NRPE services.


I'll try and get round to it this weekend and post on Nagios Exchange.  
I'll probably even post it as a page on my webserver so you won't have 
to have PHP locally.


HTH

Andy.

Hari Sekhon wrote:

Hi,
   I'm using NRPE to check a lot of things, but it occurs to me that if 
nrpe goes down, I will receive a storm of emails about all the things 
that it checks.


So I want to create service_dependencies which say, for example, "all 
Ram checks must depend on check serviceX on the same host" where 
"serviceX" is also an nrpe check that always succeeds.
Therefore, if NRPE breaks for any reason, it should only alert me once 
for serviceX


Of course, I'm not sure this could be done in a very easily templated 
way. I've had a look at the templating docs again but it seems to me 
that group hosts or service together will create a lattice of 
dependencies across hosts or services which will probably mean that any 
broken service on any host will prevent all dependent services from 
sending notifications for any other host.


Any ideas on this?

-h

  



--
Andy Shellam
NetServe Support Team

the Mail Network
"an alternative in a standardised world"

p: +44 (0) 121 288 0832/0839
m: +44 (0) 7818 000834


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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


!DSPAM:37,45e599b7103001596114515!




--
Andy Shellam
NetServe Support Team

the Mail Network
"an alternative in a standardised world"

p: +44 (0) 121 288 0832/0839
m: +44 (0) 7818 000834

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
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] Service Dependencies - How do you do yours?

2007-02-28 Thread Andy Shellam (Mailing Lists)
Hari,

I have this exact problem (raised it a few weeks ago.)
I've got it on my to-do list to create a shell script (probably PHP) 
that will create a service_dependencies.cfg file for you with each host 
and it's NRPE services.

I'll try and get round to it this weekend and post on Nagios Exchange.  
I'll probably even post it as a page on my webserver so you won't have 
to have PHP locally.

HTH

Andy.

Hari Sekhon wrote:
> Hi,
>I'm using NRPE to check a lot of things, but it occurs to me that if 
> nrpe goes down, I will receive a storm of emails about all the things 
> that it checks.
>
> So I want to create service_dependencies which say, for example, "all 
> Ram checks must depend on check serviceX on the same host" where 
> "serviceX" is also an nrpe check that always succeeds.
> Therefore, if NRPE breaks for any reason, it should only alert me once 
> for serviceX
>
> Of course, I'm not sure this could be done in a very easily templated 
> way. I've had a look at the templating docs again but it seems to me 
> that group hosts or service together will create a lattice of 
> dependencies across hosts or services which will probably mean that any 
> broken service on any host will prevent all dependent services from 
> sending notifications for any other host.
>
> Any ideas on this?
>
> -h
>
>   


-- 
Andy Shellam
NetServe Support Team

the Mail Network
"an alternative in a standardised world"

p: +44 (0) 121 288 0832/0839
m: +44 (0) 7818 000834


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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] [Fwd: Re: Uptime error]

2007-02-28 Thread Andy Shellam (Mailing Lists)
A hostname check would be much more informative, or check_nrpe - if the 
other guy in your office doesn't have NRPE installed, then a check_nrpe 
will fail.


Note that the way you have it setup, check_uptime will always run on the 
Nagios server, regardless, because it's a local plugin.  So whatever the 
IP of your router (Nagios machine), it will always succeed.  You need to 
be using NRPE in conjunction with it to get it to check by IP address.  
Even that will always succeed at the moment because your IP in your 
Nagios configuration is 127.0.0.1, which will always refer to itself.


You're much better off having this as a service.  For every host in my 
install I have a "Server Availability" service which is a check_ping, as 
this constantly monitors that the servers are up and responding, every 
minute, and doesn't create any havoc from host checks being run too often.


Andy.

 Original Message 
Subject:Re: [Nagios-users] Uptime error
Date:   Wed, 28 Feb 2007 19:12:50 +0530
From:   sujith h <[EMAIL PROTECTED]>
To: Andy Shellam (Mailing Lists) <[EMAIL PROTECTED]>
References: 
<[EMAIL PROTECTED]> 
<[EMAIL PROTECTED]> 
<[EMAIL PROTECTED]> 
<[EMAIL PROTECTED]> 
<[EMAIL PROTECTED]> 
<[EMAIL PROTECTED]> 
<[EMAIL PROTECTED]> 
<[EMAIL PROTECTED]> 
<[EMAIL PROTECTED]> 
<[EMAIL PROTECTED]>




Actually we used check_ping till 5 months before and then we decided to 
move on to uptime .
The reason is that suppose I have a machine named don whose ip is 
192.102.1.2 <http://192.102.1.2>
and if my machine is down for 1 day. And some other guy in my office 
started his machine
his dhcpclient will run and give my ip (Think as if for the time being). 
Now the ping will
work in any case but the uptime wont. So that is why I decided to move 
on with uptime

in Host check.

Sujith

Bangalore

On 2/28/07, *Andy Shellam (Mailing Lists)* 
<[EMAIL PROTECTED] 
<mailto:[EMAIL PROTECTED]> > wrote:


   You can do it by setting scheduled host checks, but it's very
   performance-intensive, and *will* affect your service checks.
   Your uptime check will do what you want much better if you add it as
   a service to your host.

   Why are you so insistent you don't want to use check_ping as your
   host command and Uptime as a service?

   Andy.


   sujith h wrote:

The use of option : use_aggressive_host_checking=1
in the nagios.cfg file will make any difference???

 Sujith

 Bangalore

On 2/28/07, *Andy Shellam (Mailing Lists) *
<[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:

sujith h wrote:

I think i foregot to explain a crucial point that nagios is
running in my router not in my
machine. If i had told u my machine, then I really apolagise
for stealing your precious
time. 


No, I understand that.


And is there anyway that I can trigger the check_uptime
(plugin written by me)
all the time when the router is up???


Yes.  Define it as a service for your host that runs, say,
every 5 minutes 24x7.


. If so please do tell me. If the router is down and
nagios doesnt run then its ok for me. Since that is a
different issue. But from your reply
I came to understand that check_uptime will be called for the
first time when the nagios
is started and then if any of the services fails then again
the check_uptime is called.


Yes.  Nagios only checks a host status when it absolutely
needs to, not any other time.  This is usually when a service
fails, or a network blockage is detected.  check_ping to
127.0.0.1 <http://127.0.0.1> on this check would work fine in
your case.

Andy.




Sujith

Bangalore.

On 2/28/07, *Andy Shellam (Mailing Lists) * <
[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:

Again, as I and Patrick have said, your host's
check_command is only getting run when a service is
deemed to have problems.

You're getting the difference in the uptime output in
Nagios and the console because Nagios hasn't run the
uptime command for the host for over a day.
If you're not retaining status information, then when you
restart Nagios, it re-runs all it's checks, hence why it
then gets updated.  After that it is only run when a
service fails.

What I still don't understand is how your uptime command
ensures the router is up?  If the router is not up, then
Nagios won't be running (as you're running it on the same
host) so it seems quite pointless really.  If the Lanli

Re: [Nagios-users] Uptime error

2007-02-28 Thread Andy Shellam (Mailing Lists)
You can do it by setting scheduled host checks, but it's very 
performance-intensive, and *will* affect your service checks.
Your uptime check will do what you want much better if you add it as a 
service to your host.


Why are you so insistent you don't want to use check_ping as your host 
command and Uptime as a service?


Andy.


sujith h wrote:

The use of option : use_aggressive_host_checking=1
in the nagios.cfg file will make any difference???

 Sujith

 Bangalore

On 2/28/07, *Andy Shellam (Mailing Lists) * 
<[EMAIL PROTECTED] 
<mailto:[EMAIL PROTECTED]>> wrote:


sujith h wrote:

I think i foregot to explain a crucial point that nagios is
running in my router not in my
machine. If i had told u my machine, then I really apolagise for
stealing your precious
time. 


No, I understand that.


And is there anyway that I can trigger the check_uptime (plugin
written by me)
all the time when the router is up???


Yes.  Define it as a service for your host that runs, say, every 5
minutes 24x7.


. If so please do tell me. If the router is down and
nagios doesnt run then its ok for me. Since that is a different
issue. But from your reply
I came to understand that check_uptime will be called for the
first time when the nagios
is started and then if any of the services fails then again the
check_uptime is called.


Yes.  Nagios only checks a host status when it absolutely needs
to, not any other time.  This is usually when a service fails, or
a network blockage is detected.  check_ping to 127.0.0.1
<http://127.0.0.1> on this check would work fine in your case.

Andy.




Sujith

Bangalore.

    On 2/28/07, *Andy Shellam (Mailing Lists) *
<[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:

Again, as I and Patrick have said, your host's check_command
is only getting run when a service is deemed to have problems.

You're getting the difference in the uptime output in Nagios
and the console because Nagios hasn't run the uptime command
for the host for over a day.
If you're not retaining status information, then when you
restart Nagios, it re-runs all it's checks, hence why it then
gets updated.  After that it is only run when a service fails.

What I still don't understand is how your uptime command
ensures the router is up?  If the router is not up, then
Nagios won't be running (as you're running it on the same
host) so it seems quite pointless really.  If the Lanlink
checks that the LAN interface is up and connected - that
makes sense, but then a check_ping to 127.0.0.1
<http://127.0.0.1> as your host check_command would give the
same result as the uptime, then you could have an "Uptime"
service with your check_uptime command. 


That way you could be confident that the status detail in
Nagios is reasonably up-to-date.

Andy.




!DSPAM:37,45e56884103005404720733! 



--
Andy Shellam
NetServe Support Team

the Mail Network
"an alternative in a standardised world"

p: +44 (0) 121 288 0832/0839
m: +44 (0) 7818 000834

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
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] Uptime error

2007-02-28 Thread Andy Shellam (Mailing Lists)

sujith h wrote:
I think i foregot to explain a crucial point that nagios is running in 
my router not in my
machine. If i had told u my machine, then I really apolagise for 
stealing your precious
time. 


No, I understand that.

And is there anyway that I can trigger the check_uptime (plugin 
written by me)

all the time when the router is up???


Yes.  Define it as a service for your host that runs, say, every 5 
minutes 24x7.



. If so please do tell me. If the router is down and
nagios doesnt run then its ok for me. Since that is a different issue. 
But from your reply
I came to understand that check_uptime will be called for the first 
time when the nagios
is started and then if any of the services fails then again the 
check_uptime is called.


Yes.  Nagios only checks a host status when it absolutely needs to, not 
any other time.  This is usually when a service fails, or a network 
blockage is detected.  check_ping to 127.0.0.1 on this check would work 
fine in your case.


Andy.




Sujith

Bangalore.

On 2/28/07, *Andy Shellam (Mailing Lists) * 
<[EMAIL PROTECTED] 
<mailto:[EMAIL PROTECTED]>> wrote:


Again, as I and Patrick have said, your host's check_command is
only getting run when a service is deemed to have problems.

You're getting the difference in the uptime output in Nagios and
the console because Nagios hasn't run the uptime command for the
host for over a day.
If you're not retaining status information, then when you restart
Nagios, it re-runs all it's checks, hence why it then gets
updated.  After that it is only run when a service fails.

What I still don't understand is how your uptime command ensures
the router is up?  If the router is not up, then Nagios won't be
running (as you're running it on the same host) so it seems quite
pointless really.  If the Lanlink checks that the LAN interface is
up and connected - that makes sense, but then a check_ping to
127.0.0.1 <http://127.0.0.1> as your host check_command would give
the same result as the uptime, then you could have an "Uptime"
service with your check_uptime command. 


That way you could be confident that the status detail in Nagios
is reasonably up-to-date.

Andy.



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
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] Uptime error

2007-02-28 Thread Andy Shellam (Mailing Lists)
Again, as I and Patrick have said, your host's check_command is only 
getting run when a service is deemed to have problems.


You're getting the difference in the uptime output in Nagios and the 
console because Nagios hasn't run the uptime command for the host for 
over a day.
If you're not retaining status information, then when you restart 
Nagios, it re-runs all it's checks, hence why it then gets updated.  
After that it is only run when a service fails.


What I still don't understand is how your uptime command ensures the 
router is up?  If the router is not up, then Nagios won't be running (as 
you're running it on the same host) so it seems quite pointless really.  
If the Lanlink checks that the LAN interface is up and connected - that 
makes sense, but then a check_ping to 127.0.0.1 as your host 
check_command would give the same result as the uptime, then you could 
have an "Uptime" service with your check_uptime command. 

That way you could be confident that the status detail in Nagios is 
reasonably up-to-date.


Andy.

sujith h wrote:

Ok let me explain the scenario in detail.
I have  my router in which nagios is installed.
I have to monitor a few services like Lanstatus of
net1 interface, Webserver, and DNS.
Well now for this I have a host.cfg and services.cfg file
where I had configured this way:
Host.cfg
define hostgroup{
hostgroup_name  Enpaq
alias   Enpaq
members sujith
}

define host{
host_name   sujith
alias   Enpaq Router
address 127.0.0.1 <http://127.0.0.1>
max_check_attempts  1
check_command   check_uptime
check_period24x7
contact_groups  admin
notification_interval   0
notification_period 24x7
notification_optionsd,u,r,f
}

And services.cfg
define service{
host_name   sujith
service_description LAN LINK
check_command   check_link!net1
max_check_attempts  1
normal_check_interval   1
retry_check_interval1
check_period24x7
notification_interval   2
notification_period 24x7
notification_optionsw,u,c,r,f
contact_groups  admin
}

define service{
host_name   sujith
service_description WEB SERVER
check_command   check_procs!1:!1:!apache2!SNSlSsRl
max_check_attempts  1
normal_check_interval   1
retry_check_interval1
check_period24x7
notification_interval   2
notification_period 24x7
notification_optionsw,u,c,r,f
contact_groups  admin
}


define service{
host_name   sujith
service_description DNS
check_command   check_dig!sujith.elina.in
max_check_attempts  1
normal_check_interval   1
retry_check_interval1
check_period24x7
notification_interval   2
notification_period 24x7
notification_optionsw,u,c,r,f
contact_groups  admin
}

This is all about the 2 files. And let me give the output also.
When I type the command uptime in my router I see like this:
[EMAIL PROTECTED]:~$uptime
 15:15:50 up 4 days,  4:54,  1 user,  load average: 0.76, 0.70, 0.59

And when I see the nagios page for the Host Detail section, the Status 
Information shows me:


20:17:46 up 3 days, 9:56, 1 user, load average: 0.89, 0.86, 0.71 


But the output that I had given you is from the running nagios page.
If i would restart nagios then everything will be ok for a while.
This is what I want to know why this output comes like this.
Again in the /var/nagios/status.dat file is there which when I do
ls -lt command , it shows me that its getting updated in each and
every minute. Now if u again have any doubt on what I am trying to
tell please do mail me. Again I do repeat that when I do
/usr/local/nagios/bin/nagios -v /etc/nagios/etc/nagios.cfg
It doesn't give me any error. But this misbehaviour is worrying
me


Sujith

Bangalore

On 2/28/07, *Andy Shellam (Mailing Lists)* 
<[EMAIL PROTECTED] 
<mailto:[EMAIL PROTECTED]>> wrote:


I think you need to explain what you're trying to do overall, as
this isn't making any sense to me!

You cannot possibly determine which server is responding using
it's uptime output.
A more sensible option surely would be it's hostname?

#!/bin/bash
hostname
exit 0

However you're going to run into a lot of trouble trying to use
Nagios to monitor a server using its dynamic IP address.
I think to start with you need to be looking at a solution such as
Dynamic DNS (e.g. No-IP, DynDNS for commercial services, or Bind
with DNSSEC/TSIG if you use Bind within your organisation.)
Your machines would then change their DNS address when they detect
their IP address has 

Re: [Nagios-users] Uptime error

2007-02-28 Thread Andy Shellam (Mailing Lists)
I think you need to explain what you're trying to do overall, as this 
isn't making any sense to me!


You cannot possibly determine which server is responding using it's 
uptime output.

A more sensible option surely would be it's hostname?

#!/bin/bash
hostname
exit 0

However you're going to run into a lot of trouble trying to use Nagios 
to monitor a server using its dynamic IP address.
I think to start with you need to be looking at a solution such as 
Dynamic DNS (e.g. No-IP, DynDNS for commercial services, or Bind with 
DNSSEC/TSIG if you use Bind within your organisation.)
Your machines would then change their DNS address when they detect their 
IP address has changed, and you would definite it's dynamic DNS hostname 
as the host_name directive to Nagios.
Only thing you'd have to watch would be if your DNS service fails, 
Nagios will fail on everything.


Re your last e-mail, please give example outputs of what you see on the 
command-line and what Nagios says.


Andy.

sujith h wrote:
Actually the problem with the ping is that we are giving dynamic IP 
address
so when the ip address changes its difficult to know who is responding 
to the

ping.  And so we moved to ssh and uptime...

Sujith

Bangalore.

On 2/28/07, *sujith h* <[EMAIL PROTECTED] 
<mailto:[EMAIL PROTECTED]>> wrote:


Hi Andy,

Actually my problem is that it works for some 1 day or more. But
after that I get these sort of
results. So thats what makes me worry...

Sujith
Bangalore


On 2/28/07, *Andy Shellam (Mailing Lists)*
<[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:

As Patrick said, this plugin (as a host check) will only get
run if a service goes into a non-OK state, therefore showing
old information until it a service fails.

I have exactly the same plugin (written myself with a couple
of differences to yours) which runs as a service called
"Uptime" on every host - this way it is always run every 5
minutes and shows up-to-date info.

The host check is a simple check_ping.

HTH

Andy.

sujith h wrote:


No am running this plugin for host check only

Sujith
On 2/28/07, *Morris, Patrick* < [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:

> when I click the Host Detail I can see that
> in the status information section we have a different
output.. such
aser
> 20:17:46 up 3 days, 9:56, 1 user, load average: 0.89,
0.86, 0.71

> Here u can see that am not getting the output synchronized.

>   But the problem I had found with uptime
only in
> the Host Detail. The Service Details
>   are running good as if now.

Are you running this command as both a host check and a
service check?
If so, that's why you're seeing different output. The
host check will
only run if a service on it goes to a non-OK state, and
probably hasn't
run for a few days, when the host had only been up for
two minutes.

It looks like you've defined the same plugin for two
checks. If that's
the case, they are never going to match.





-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share 
your


opinions on IT & business topics through brief surveys-and earn cash


http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV 
<http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV>

!DSPAM:37,45e52941103001189734924!
  



___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net

 <mailto: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


!DSPAM:37,45e52941103001189734924!
  



-- 
Andy Shellam

NetServe Support Team

the Mail Network
"an alternative in a standardised world"

p: +44 (0) 121 288 0832/0839
m: +44 (0) 7818 000834



!DSPAM:37

Re: [Nagios-users] Uptime error

2007-02-28 Thread Andy Shellam (Mailing Lists)

What results?
I haven't yet been able to find a clear indication in this thread of the 
problem you're seeing.


What is the relevant definitions of your host, service and commands?
Please explain your problem more clearly.

Thanks

Andy.

sujith h wrote:

Hi Andy,

Actually my problem is that it works for some 1 day or more. But after 
that I get these sort of

results. So thats what makes me worry...

Sujith
Bangalore

On 2/28/07, *Andy Shellam (Mailing Lists)* 
<[EMAIL PROTECTED] 
<mailto:[EMAIL PROTECTED]>> wrote:


As Patrick said, this plugin (as a host check) will only get run
if a service goes into a non-OK state, therefore showing old
information until it a service fails.

I have exactly the same plugin (written myself with a couple of
differences to yours) which runs as a service called "Uptime" on
every host - this way it is always run every 5 minutes and shows
up-to-date info.

The host check is a simple check_ping.

HTH

Andy.

sujith h wrote:


No am running this plugin for host check only

Sujith
On 2/28/07, *Morris, Patrick* < [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:

> when I click the Host Detail I can see that
> in the status information section we have a different
output.. such
aser
> 20:17:46 up 3 days, 9:56, 1 user, load average: 0.89, 0.86, 0.71

> Here u can see that am not getting the output synchronized.

>   But the problem I had found with uptime only in
> the Host Detail. The Service Details
>   are running good as if now.

Are you running this command as both a host check and a
service check?
If so, that's why you're seeing different output. The host
check will
only run if a service on it goes to a non-OK state, and
probably hasn't
run for a few days, when the host had only been up for two
minutes.

It looks like you've defined the same plugin for two checks.
If that's
the case, they are never going to match.




-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your

opinions on IT & business topics through brief surveys-and earn cash

http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV 
<http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV>

!DSPAM:37,45e52941103001189734924!
  



___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
 <mailto: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


!DSPAM:37,45e52941103001189734924!
  


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
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] Uptime error

2007-02-28 Thread Andy Shellam (Mailing Lists)
As Patrick said, this plugin (as a host check) will only get run if a 
service goes into a non-OK state, therefore showing old information 
until it a service fails.


I have exactly the same plugin (written myself with a couple of 
differences to yours) which runs as a service called "Uptime" on every 
host - this way it is always run every 5 minutes and shows up-to-date info.


The host check is a simple check_ping.

HTH

Andy.

sujith h wrote:


No am running this plugin for host check only

Sujith
On 2/28/07, *Morris, Patrick* <[EMAIL PROTECTED] 
> wrote:


> when I click the Host Detail I can see that
> in the status information section we have a different output.. such
aser
> 20:17:46 up 3 days, 9:56, 1 user, load average: 0.89, 0.86, 0.71

> Here u can see that am not getting the output synchronized.

>   But the problem I had found with uptime only in
> the Host Detail. The Service Details
>   are running good as if now.

Are you running this command as both a host check and a service check?
If so, that's why you're seeing different output. The host check will
only run if a service on it goes to a non-OK state, and probably
hasn't
run for a few days, when the host had only been up for two minutes.

It looks like you've defined the same plugin for two checks. If
that's
the case, they are never going to match.


!DSPAM:37,45e52941103001189734924!


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

!DSPAM:37,45e52941103001189734924!
  



___
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


!DSPAM:37,45e52941103001189734924!
  



--
Andy Shellam
NetServe Support Team

the Mail Network
"an alternative in a standardised world"

p: +44 (0) 121 288 0832/0839
m: +44 (0) 7818 000834

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
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] cgi.cfg

2007-02-26 Thread Andy Shellam (Mailing Lists)
My guess is Nagios is trying to parse cgi.cfg as an object configuration 
file.
IIRC, cgi.cfg should be in the same place as nagios.cfg, and NOT entered 
into the nagios.cfg as part of either a cfg_file or cfg_dir directive.


As Jim said, it would help if you post the relevant portions of your 
nagios.cfg file.


Andy.

Jim Avery wrote:

On 26/02/07, Michael Weiner <[EMAIL PROTECTED]> wrote:
  

I am experiencing two issues, which i am having trouble getting around. The
first issue, and probably the most concerning is that whenever i define the
cgi.cfg in nagios.cfg and run nagios -v /etc/nagios/nagios.cfg it fails
complaining about the first unremarked line in the file



It would help greatly if you could post the relevant portion of your
nagios.cfg and cgi.cfg files, and the exact error you get when you run
"nagios -v /etc/nagios/nagios.cfg".

I would strongly recommend that you consider installing Nagios and the
plugins from the source tarball which can be found at
http://www.nagios.org rather than from .rpm .  The .rpm install is
quite different to a source tarball install - it puts various bits of
Nagios in various different directories and makes it more difficult to
support.  Also, it will install a version which has embedded perl
enabled - something you might find you don't want in the future.

If you install from source tarball, it may take you a little longer
than an rpm install, but you will learn more about Nagios while you do
the install, and will find that if you want to try some of the various
excellent add-ons for Nagios in the future, they are easier to get
working if you have done a standard install from tarball.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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


!DSPAM:37,45e2e0b9103003857517878!


  



--
Andy Shellam
NetServe Support Team

the Mail Network
"an alternative in a standardised world"

p: +44 (0) 121 288 0832/0839
m: +44 (0) 7818 000834

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
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] PHP parse error in NLG

2007-02-25 Thread Andy Shellam (Mailing Lists)

Hi Carlo,

What version of PHP are you running?

Line 327 in the code is a comparison of two classes, using the 
"instanceof" operator, which was introduced in PHP 5 
(http://uk2.php.net/manual/en/language.operators.type.php).


It sounds like you have PHP 4, which is not supported by NLG.

Andy.

Carlo Piccini wrote:


Hello,

 


just installed NLG 1.0.2, but stuck with a blank page on hitting URL.

In apache error log I have:

 

[client 192.168.1.5] PHP Parse error:  parse error, unexpected 
T_STRING in /usr/share/nagios/client/s3_client.php on line 327


 


Any advice for me?

Nagios 2.0

 


Thank you,

Carlo Piccini

!DSPAM:37,45e0cf26925177317654902!


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

!DSPAM:37,45e0cf26925177317654902!
  



___
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


!DSPAM:37,45e0cf26925177317654902!
  



--
Andy Shellam
NetServe Support Team

the Mail Network
"an alternative in a standardised world"

p: +44 (0) 121 288 0832/0839
m: +44 (0) 7818 000834

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Notifications by SMS

2007-02-23 Thread Andy Shellam (Mailing Lists)
I think this could spark an interesting discussion!

Both AQL and Text Anywhere (providers I've used in the past) take only 
the subject and the body (up to the 160-character limit) as the text 
message body.
Taking the entire e-mail including headers seems bad practice for the 
obvious reasons of message length restrictions!

TextAnywhere also do some other interesting things, based upon which TA 
domain you send your e-mail to:

- Take the first 11 characters of the e-mail subject as the originator 
ID (instead of your mobile number) and the first 160 characters of the 
body as the text message
- Take the first 160 characters of the e-mail body as the text message, 
setting the originator ID to your account's default mobile number
- Take the entire e-mail body and send as many SMSes as needed to send 
the complete message (up to 3 messages will get linked as 1 by your handset)

If you use the HTTP gateway there are a lot more options you can do, 
including getting a delivery report back when the message has been 
delivered to the handset (obviously custom programming on your side is 
needed.)

Andy.


Frost, Mark {PBG} wrote:
> We do this as well (e-mail to [EMAIL PROTECTED]) to receive alerts.
> What's not so good about this is that most phone companies limit the
> length of an SMS message.  The provider includes a lot of the e-mail
> header in the SMS message which eats up a good chunk of that length.  We
> find that regularly we get the subject, but little or none of the body
> of the alert message.
>
> It would be nice to be able to get just the alert without all the e-mail
> header crap.  That's what makes the notion of a service that translates
> the e-mail message more intelligently and sends it via SMS an intriguing
> idea to us.
>
> Mark
>
>   

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Notifications by SMS

2007-02-22 Thread Andy Shellam (Mailing Lists)
There are plenty of email-to-SMS providers out there.

www.textanywhere.net
www.aql.com

To name 2 that spring to mind (UK-based.)

They all use pretty much the same approach - send an e-mail to 
@.tld, and it'll relay the 
first 160 characters (or whatever the network allows) of the e-mail to 
the mobile device number.

I've used both AQL and TextAnywhere, TA has a slightly quicker response 
time than AQL on sent messages, and they invoice us on a monthly basis 
rather than having to pre-pay (like AQL, where we often ran into the 
problem of running out of credit, then messages don't get relayed.)

I'm sure there are some free providers that may do this too, but the 
paid ones often implement better solutions (like TA has a HTTP and SOAP 
protocol so you can POST a HTTP request in the correct format to 
generate a text message rather than using e-mail.)

HTH,

Andy.

Chaim Keren Tzion wrote:
> What are the recommended ways to have Nagios send SMS notifications via the 
> net? (Non modem solutions please.) Free and non-free.
>
> TIA
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> 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
>
> !DSPAM:37,45de396b925171512379562!
>
>
>   

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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 unable to read output

2007-02-21 Thread Andy Shellam (Mailing Lists)
Another stab in the dark... the NRPE agent isn't inside a BSD jail is 
it?  My Nagios host refuses to read NRPE's output in a machine that's 
jailed :(


Andy.


Hari Sekhon wrote:
Thanks for the reply, I just tried that but unfortunately it still 
gave the same result.


I have another sudo /etc/nagios/plugin and that works. Also, su-ing to 
nagios and then running the command by hand works.


so I'm still stuck

Hari Sekhon
  


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
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 unable to read output

2007-02-21 Thread Andy Shellam (Mailing Lists)
I had this problem, and had to put the full path to sudo (/usr/bin/sudo) 
in nrpe's config.


HTH

Andy.

Hari Sekhon wrote:
I know that nrpe works, I run over 100 checks via nrpe, and on this host 
all other nrpe checks work.


I don't know if it's really the sudo in the line because I have another 
line which says


command[check_another_plugin]=sudo /etc/nagios/another_plugin

and this works fine when called via nrpe as such

check_nrpe -H hostname -c check_another_plugin
OK: test ok

If sudo was the problem, I would expect both checks to fail, but the 
other one works fine.


Also, I need to run the check with sudo because this check will not work 
without root privs and my

nrpe runs under the nagios user.

-h

Hari Sekhon



Lane, Jim wrote:
  
Hari: I think your problem is with the sudo in the line 


command[check_plugin]=sudo /etc/nagios/check_plugin

Try it as 


command[check_plugin]=/etc/nagios/check_plugin

and see how you get on. I run NRPE plugins as above on my systems and
they work fine.

HTH

Jim Lane 


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Hari
Sekhon
Sent: February 21, 2007 8:04 AM
To: Nagios Users mailinglist
Subject: [Nagios-users] NRPE unable to read output

Hi,
   I'm using NRPE to execute checks on remote hosts and am have problems

with one plugin on just one machine. I have the plugin in the 
configuration of nrpe and execute


/usr/nagios/libexec/check_nrpe -H hostname -c check_plugin
NRPE: Unable to read output

The definition of the command call in nrpe.cfg is as follows:

command[check_plugin]=sudo /etc/nagios/check_plugin

and I have the following line in /etc/sudoers:

nagios  ALL=(ALL)  NOPASSWD: /etc/nagios/check_plugin

NRPE is running as the nagios user. When logged in as root I can do

su - nagios
sudo /etc/nagios/check_plugin
OK: test passed

so I don't understand why it is saying no output.

I tried changing the nrpe.cfg to have > /tmp/output.log 2>&1 at the end 
of it but the file /tmp/output.log was not created so I assume that 
there really was no output when run from the check_nrpe command.
This works on all my other servers (most of which are Gentoo) and this 
one is RHEL4. SELinux is disabled. I can execute all other nrpe checks 
correctly on this server including another one which also uses sudo.
The difference in Distro is the only thing I can think of but it even 
works from the command line. I am using nrpe 2.6.


I have racked my brains but can't think of anything else.

Any ideas on this?

-h

  



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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


!DSPAM:37,45dc4dfa18514730279235!


  



--
Andy Shellam
NetServe Support Team

the Mail Network
"an alternative in a standardised world"

p: +44 (0) 121 288 0832/0839
m: +44 (0) 7818 000834

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
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] Using SSH to run remote command checks

2007-02-16 Thread Andy Shellam (Mailing Lists)
Nagios Mail wrote:
> I wanted to update this problem as it appears to have never been 
> resolved. The current version of check_by_ssh still returns an 
> "UKNOWN" status in nagios. I have ran the command manually from the 
> command line and echoed $?, and while it does return 0, nagios is 
> putting in an UNKNOWN status. Not only that but the status appears to 
> be flapping.
>
> The Critical and Warning status appear to work every time, but when an 
> OK status is returned from one of the check programs (check_load, 
> check_disk, check_process), check_by_ssh returns an UNKNOWN almost 80% 
> of the time.
>
> I've followed up with three different people on this list who have 
> reported the problem, and all of them just decided to move to NRPE.
>
> Has anyone gotten this plugin to work? I am assuming this is a code 
> problem with check_by_ssh

I just get the following very helpful error message:

Remote command execution failed:  ___  ___ _ _

Not even a reason why it failed, just a lot of underscores!

I preferred NRPE from the beginning anyway, so I've always used that.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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] email notice problem

2007-02-16 Thread Andy Shellam (Mailing Lists)

[EMAIL PROTECTED] wrote:

This is within your MTA - you'll have to read up (in sendmail's
documentation) on how to set your nagios shell user as a trusted user
within sendmailhassles tells sendmail the users that are allowed to


usehasslehasslehassle
  

it in "program-mode" (i.e. local submission, not over an SMTP connection.)

Either that, or you need a script/plugin that will receive your text and
send the mail via SMTP instead of local submission.

Somebody familiar with sendmail may be able to help, I'm afraid I'm not.




Hardly worth the hassle, just to get notices. If I install mailx will it
work without the same hassles?
  


Try it.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
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] email notice problem

2007-02-16 Thread Andy Shellam (Mailing Lists)

[EMAIL PROTECTED] wrote:

The trick is to (while logged in or "su'd" to the Nagios user) manually
type out a command and keep adjusting until it works - then put that
into Nagios.
e.g. echo "Test e-mail"|/usr/sbin/sendmail -s "Host DOWN" [EMAIL PROTECTED]




OK, now we're getting somewhere. Here is the error I get under the
nagios user:

WARNING: RunAsUser for MSP ignored, check group ids (egid=1001, want=120)
can not chdir(/var/spool/mqueue-client/): Permission denied
Program mode requires special privileges, e.g., root or TrustedUser.

What is the best way to resolve this without causing a security problem?

  
This is within your MTA - you'll have to read up (in sendmail's 
documentation) on how to set your nagios shell user as a trusted user 
within sendmail - this tells sendmail the users that are allowed to use 
it in "program-mode" (i.e. local submission, not over an SMTP connection.)


Either that, or you need a script/plugin that will receive your text and 
send the mail via SMTP instead of local submission.


Somebody familiar with sendmail may be able to help, I'm afraid I'm not.

Andy.
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
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] email notice problem

2007-02-16 Thread Andy Shellam (Mailing Lists)

[EMAIL PROTECTED] wrote:

If you "su" to the Nagios user, and just run "mail" - does it yield
anything, or "command not found"?

The error seems to be (as someone previously said) it's piping your
notification text to " -s "Host DOWN..."" which isn't a valid command.
You need to change your notification command to pipe the result to "mail
-s " instead of " -s ..."

You may also need to try "sendmail" (I don't use sendmail so I don't
know if "mail" is part of it or not.)




I inserted "sendmail", but still get the err. I am working on the syntax
to see if I can resolve the error. What does everyone else have installed
that the "mail" command works. I really don't care what MTA is used, just
so I can get the sample, and new configs to work. I assumed on the install
it would locate sendmail and insert the appropriate commands, but
obviously, I was wrong.
  
No, Nagios doesn't assume anything because everyone's networks/servers 
are setup differently.
Try an absolute path to sendmail (use "whereis sendmail" to locate it if 
you're not sure.)


The trick is to (while logged in or "su'd" to the Nagios user) manually 
type out a command and keep adjusting until it works - then put that 
into Nagios.

e.g. echo "Test e-mail"|/usr/sbin/sendmail -s "Host DOWN" [EMAIL PROTECTED]

Andy.
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
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] email notice problem

2007-02-16 Thread Andy Shellam (Mailing Lists)

[EMAIL PROTECTED] wrote:

That looks fine to me. The problem is in your host-notify-by-email
definition in the misccommands.cfg file. If you look below you have;
sterilizing
  Host Unreachable (10.10.4.89)\n\nDate/Time: Fri Feb 16 09:10:01 CST
 > 2007\n" |  -s "Host DOWN alert for relay-1.domain.com!"
[EMAIL PROTECTED]"

Where it should read;

 > Host Unreachable (10.10.4.89)\n\nDate/Time: Fri Feb 16 09:10:01 CST
 > 2007\n" | mail -s "Host DOWN alert for relay-1.domain.com!"
[EMAIL PROTECTED]"


Looks like a copy and paste error. Oh and you probably also want to use
something other than your '[EMAIL PROTECTED]' account. It's like sending from
[EMAIL PROTECTED] :P




Sorry about that... I was sterolizing the error. Here is exactly what the
error says.

[1171638601] HOST NOTIFICATION:
nagiosadmin;relay-1.lctn.org;DOWN;host-notify-by-email;CRITICAL - Host
Unreachable (10.10.4.89)
[1171638601] Warning: Attempting to execute the command "/usr/bin/printf
"%b" "* Nagios 2.7 *\n\nNotification Type: PROBLEM\nHost:
relay-1.lctn.org\nState: DOWN\nAddress: 10.10.4.89\nInfo: CRITICAL - Host
Unreachable (10.10.4.89)\n\nDate/Time: Fri Feb 16 09:10:01 CST 2007\n" | 
-s "Host DOWN alert for relay-1.lctn.org!" [EMAIL PROTECTED]" resulted in a

return code of 127.  Make sure the script or binary you are trying to
execute actually exists...

I do not have a misccommands.cfg, but I do have commands.cfg.

using the "mail" command yields nothing, but as I mentioned, I do have
sendmail installed. I can telnet to localhost on port 25.


The reason I suspected it stops at "email", is that if I change the
contact email, it shows up in the log file with the same error.


  


If you "su" to the Nagios user, and just run "mail" - does it yield 
anything, or "command not found"?


The error seems to be (as someone previously said) it's piping your 
notification text to " -s "Host DOWN..."" which isn't a valid command.
You need to change your notification command to pipe the result to "mail 
-s " instead of " -s ..."


You may also need to try "sendmail" (I don't use sendmail so I don't 
know if "mail" is part of it or not.)


Andy.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
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] email notice problem

2007-02-16 Thread Andy Shellam (Mailing Lists)
[EMAIL PROTECTED] wrote:
> I am running 2.7 on an Ubuntu server, with sendmail. I have read the docs,
> but am having trouble here. According to the examples given I have "define
> contact" set up correctly. I also have an alias "nagiosadmin" in
> /etc/aliases. Here is my config, and the error I am getting below. The
> error is occuring when it reaches the "email" line. Any ideas how to
> resolve this?
>   

Not sure if this directly relates to your problem, but you don't need 
"nagiosadmin" in your aliases file, as the e-mail address that will be 
delivered to is "[EMAIL PROTECTED]", and the e-mail will come "from" your 
Nagios shell [EMAIL PROTECTED] machine domain (e.g. [EMAIL PROTECTED])

How do you know the error is at the "email" line?
If "/path/to/nagios/bin/nagios -v /path/to/nagios.cfg" (substitute paths 
as required) reports your configuration is correct, then the problem 
more than likely lies within your command definitions.

Andy.
>
> define contact{
> contact_namenagiosadmin
> alias   Nagios Admin
> service_notification_period 24x7
> host_notification_period24x7
> service_notification_optionsw,u,c,r
> host_notification_options   d,r
> service_notification_commands   notify-by-email
> host_notification_commands  host-notify-by-email
> email   [EMAIL PROTECTED]
> }
>
>
>
>
>
>
>
> Host Unreachable (10.10.4.89)\n\nDate/Time: Fri Feb 16 09:10:01 CST
> 2007\n" |  -s "Host DOWN alert for relay-1.domain.com!" [EMAIL PROTECTED]"
> resulted in a return code of 127.  Make sure the script or binary you are
> trying to execute actually exists...
>
>
>   


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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] Host down /UNREACHABLE

2007-02-16 Thread Andy Shellam (Mailing Lists)

Does the host have the same parent in both Nagios installations?

It looks like on one Nagios server, the host goes through a parent which 
is down, and on the other there is no parent relationship (or it's 
parent is OK.)


Note: UNREACHABLE is not in terms of the network packets not reaching 
the host, it means that the parent host of a child host in Nagios is down.


Andy.

Riahi Taieb wrote:

thanks for the replay
I'm using the check_host_alive for hosts and check_ping as service, 
but the problem is that both of the 2 machines go through the same 
routers.


Robert Wolfe a écrit :


Are you using a PING plugin to check this?  If so, one of the routes 
may have a firewall or router that blocks ICMP pings.


 

 

*From:* [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] *On Behalf Of 
*Riahi Taieb

*Sent:* Friday, February 16, 2007 4:26 AM
*To:* nagios-users@lists.sourceforge.net
*Subject:* [Nagios-users] Host down /UNREACHABLE

 


Hi list,

I have Nagios running on 2 machines on 2 sites that monitor the same 
route to one host. Although they have the same route, one gives me 
host down and the other host unreachable!

1:

Host Status:



  DOWN


Status Information:



CRITICAL - Plugin timed out after 10 seconds


2:

Host Status:



  UNREACHABLE


Status Information:



CRITICAL - Plugin timed out after 10 seconds


Do any one see this before ?

Thx





!DSPAM:37,45d585c318516976812548!


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

!DSPAM:37,45d585c318516976812548!
  



___
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


!DSPAM:37,45d585c318516976812548!
  



--
Andy Shellam
NetServe Support Team

the Mail Network
"an alternative in a standardised world"

p: +44 (0) 121 288 0832/0839
m: +44 (0) 7818 000834

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
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] Passive checks

2007-02-15 Thread Andy Shellam (Mailing Lists)
Assuming this is Nagios 2.x, you don't have "active_checks_enabled 1" in 
your service definition (active checks are not enabled.)

Andy.

Kevin DaSilva wrote:
> Hi All...
>
> I seem to have a problem with passive checks. When I look at the
> Services Detail window in Nagios, all my passive checks are pending,
> with a status of Service is not scheduled to be checked. I manually
> submit a trap using the submit_check_result, the event shows in the log,
> but the status doesn't change.
>
> Here is what I submit :
> /usr/local/nagios/libexec/eventhandlers/submit_check_result
> (servername) Short term alloc failed 1 $3 requests for short term memory
> could not be granted on server $1
>
>
>
> Below is an example of my service:
>
> define service{
>   host_name   (server name)
>   service_description Short term alloc failed
>   is_volatile 1
>   max_check_attempts  1
>   normal_check_interval   1
>   retry_check_interval1
>   passive_checks_enabled  1
>   check_command   check-host-alive
>   check_periodnone
>   notification_interval   31536000
>   notification_period 24x7
>   notification_optionsw,u,c,r
>   contact_groups  it-dept
>   }
>
>
> Any help would be greatly appreciated.
>
> Thanks,
> Kevin
>
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> 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
>
> !DSPAM:37,45d48a7618513788438255!
>
>
>   


-- 
Andy Shellam
NetServe Support Team

the Mail Network
"an alternative in a standardised world"

p: +44 (0) 121 288 0832/0839
m: +44 (0) 7818 000834


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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] Plugin time out

2007-02-15 Thread Andy Shellam (Mailing Lists)

Hi Sean,

If it's a standard plugin (from nagios-plugins), you can normally use 
the "-t" option in your check command definition to set the timeout to 
300 seconds (i.e. 5 minutes.)
E.g. "/usr/local/nagios/libexec/check_ping -H [IP address] -w 1000,20% 
-c 2000,50% -t 300"


Andy.

Sean Thomas wrote:

Hi guys
 
Im fairly new to Nagios and in need of some assistence with the following:
 
How would I go about extending the plugin time for this to 5 min.
There is a lot of traffic on our clients lines which makes the 10 
second interval to short for them to respond.
 
Following is the mail output from Nagios
 
 
* Nagios  *


Notification Type: PROBLEM
Host: xxx.xxx.co.za
State: DOWN
Address: x.x.x.x
Info: CRITICAL - Plugin timed out after 10 seconds
 
Any help will be much appreciated


 
!DSPAM:37,45d4376718511044721252!



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

!DSPAM:37,45d4376718511044721252!
  



___
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


!DSPAM:37,45d4376718511044721252!
  



--
Andy Shellam
NetServe Support Team

the Mail Network
"an alternative in a standardised world"

p: +44 (0) 121 288 0832/0839
m: +44 (0) 7818 000834

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
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] Bug in check_disk when using mount points?

2007-02-14 Thread Andy Shellam (Mailing Lists)

Hari,

Works fine here (this is on Fedora 4) - check_disk (nagios-plugins 
1.4.5) 1.79:


[EMAIL PROTECTED] ~]$ df -h
FilesystemSize  Used Avail Use% Mounted on
/dev/hda1  12G  1.4G   10G  13% /
/dev/hda5 4.6G   33M  4.4G   1% /tmp
/dev/hda6  56G  912M   52G   2% /endeavour
none  247M 0  247M   0% /dev/shm
[EMAIL PROTECTED] ~]$ sudo -u nagios /usr/local/nagios/libexec/check_disk 
-w 20% -c 10% -p /
DISK OK - free space: / 10180 MB (87% inode=96%);| 
/=1406MB;9764;10985;0;12206
[EMAIL PROTECTED] ~]$ sudo -u nagios /usr/local/nagios/libexec/check_disk 
-w 90% -c 10% -p /
DISK WARNING - free space: / 10180 MB (87% inode=96%);| 
/=1406MB;1220;10985;0;12206
[EMAIL PROTECTED] ~]$ sudo -u nagios /usr/local/nagios/libexec/check_disk 
-w 95% -c 90% -p /
DISK CRITICAL - free space: / 10180 MB (87% inode=96%);| 
/=1406MB;610;1220;0;12206


Even with the megabytes switch (-m):

[EMAIL PROTECTED] ~]$ sudo -u nagios /usr/local/nagios/libexec/check_disk 
-w 10100 -c 1 -m -p /
DISK OK - free space: / 10180 MB (87% inode=96%);| 
/=1406MB;2106;2206;0;12206
[EMAIL PROTECTED] ~]$ sudo -u nagios /usr/local/nagios/libexec/check_disk 
-w 10190 -c 1 -m -p /
DISK WARNING - free space: / 10180 MB (87% inode=96%);| 
/=1406MB;2016;2206;0;12206
[EMAIL PROTECTED] ~]$ sudo -u nagios /usr/local/nagios/libexec/check_disk 
-w 12000 -c 11000 -m -p /
DISK CRITICAL - free space: / 10180 MB (87% inode=96%);| 
/=1406MB;206;1206;0;12206


Have you tried the latest version of the plugins?

Andy.


Hari Sekhon wrote:
OK it's not just a bug with the -m switch but with the whole plugin. 
Observe:



/usr/nagios/libexec/check_disk -l -w 2 -c 1 -u TB -vvv
DISK OK - free space: / 0 TB (77% inode=98%); /dev 0 TB (100% 
inode=98%); /home/match/ramdisk 0 TB (17% inode=100%); /dev/shm 0 TB 
(100% inode=100%); /boot 0 TB (93% inode=100%);
0 of 0 TB (77% inode=98%) free on /dev/sda2 (type ext3 mounted on /) 
warn:2 crit:1 warn%:-1% crit%:-1%
0 of 0 TB (100% inode=98%) free on udev (type tmpfs mounted on /dev) 
warn:2 crit:1 warn%:-1% crit%:-1%
0 of 0 TB (17% inode=100%) free on tmpfs (type tmpfs mounted on 
/home/match/ramdisk) warn:2 crit:1 warn%:-1% crit%:-1%
0 of 0 TB (100% inode=100%) free on shm (type tmpfs mounted on /dev/shm) 
warn:2 crit:1 warn%:-1% crit%:-1%
0 of 0 TB (93% inode=100%) free on /dev/sda1 (type ext3 mounted on 
/boot) warn:2 crit:1 warn%:-1% crit%:-1%| /=0TB;0;0;98;0 
/dev=0TB;0;0;97;0 /home/match/ramdisk=0TB;0;0;99;0 /dev/shm=0TB;0;0;99;0 
/boot=0TB;0;0;99;0


Hari Sekhon



Hari Sekhon wrote:
  
I'm using check disk and want to have it test the filesystem of a 
mount point rather than a partition.


# df /
Filesystem   1K-blocks  Used Available Use% Mounted on
/dev/sda2153337060  28240084 117307864  20% /

DF shows the filesystem is 20% used so I want this to force an error 
using the following test line so see that it actually works:


check_disk -m / -w 90%

the above check_disk should show Warning at this point as there is 
less than 90% free space left. Whether I do 10% or 90% it still 
returns successful even when it's not in the threshold range.


# /usr/nagios/libexec/check_disk -m /home -w 100%
DISK OK - free space: / 114558 MB (77% inode=98%);| 
/=35185MB;149743;149743;98;149743

# /usr/nagios/libexec/check_disk -m /home -w 10%
DISK OK - free space: / 114558 MB (77% inode=98%);| 
/=35185MB;149743;149743;98;149743

# /usr/nagios/libexec/check_disk -m /home -w 90%
DISK OK - free space: / 114558 MB (77% inode=98%);| 
/=35185MB;149743;149743;98;149743



The same is true when I was testing the /boot partition (which is a 
separate partition). So it looks like the -m switch is broken.



Can anyone verify this? Is it a known bug, is it fixed?

I am running "check_disk (nagios-plugins 1.4.3) 1.64" (taken from the 
top line of check_disk --help)





-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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


!DSPAM:37,45d347e218511427819843!


  



--
Andy Shellam
NetServe Support Team

the Mail Network
"an alternative in a standardised world"

p: +44 (0) 121 288 0832/0839
m: +44 (0) 7818 000834

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business to

Re: [Nagios-users] Why Mysql on plugin installation

2007-02-12 Thread Andy Shellam (Mailing Lists)

Mestdagh Tommy wrote:


Found !

./configure --without-mysql



Strange.  On my system it builds without mysql by default, and you 
supply "--with-mysql" if you want MySQL included.


Andy.

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
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] Why Mysql on plugin installation

2007-02-12 Thread Andy Shellam (Mailing Lists)
The plugins need MySQL to build the check_mysql plugin.  You don't need 
a MySQL server running, just the client libraries installed.


If you don't need this plugin, don't supply any "--with-mysql" command, 
and when you run ./configure, you'll get "mysql: not found" in the 
result - this is OK, the plugins should compile without it, you just 
won't have the check_mysql plugin available to use.


Regards,

Andy.


Mestdagh Tommy wrote:


Hi

 

Once again I 'm new to nagios.  

When installing from scratch the plugin installations try's to find 
Mysql stuff & setting.  


Why does it need mysql  ?  All  configurations is  in config files not ?

The servers we are running have already a postgresql installed and we 
want to avoid two databases consuming memory...  

 


Regards Tommy

 



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
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] Help with Nagios Looking Glass 1.0.2

2007-02-09 Thread Andy Shellam (Mailing Lists)

Hello Gary,

In your "client/s3_config_stub.inc.php" file, set the 
$Stub_ClientEnableDebugging option to 1, then append "?debug=yes" to the 
end of your looking-glass URL:


e.g. http://looking-glass.andyshellam.eu/?debug=yes

That should give you a further clue as to where things are going wrong.

The main causes of this error are:

- HTTP authentication required to access s3_download.php, but not 
specified in the config

- URL to s3_download.php is incorrect
- No write permission to client/sync-files
- No data received from s3_download.php (server-side configuration for 
sync'd files is incorrect)


If you're still having problems, please post the output from running in 
debug mode.


Thanks,

Andy.


Cook, Garry wrote:

I'm seeing this same error "Could not sync all required files with the
server."
I've verified that all files in /usr/local/nagios/share/client and
../server are owned by www-data, the user apache is running as. I've
also made sure that /usr/local/nagios/share/server/index is writable by
www-data.
Still seeing the problem. 


Hmmm... Maybe the write permission solution was for the failure code
error. Reading through the thread again it looks like Stuart fixed the
original issue that I'm now seeing, but never mentioned how he did so.

Little help, Stu? 


Thanks,
Garry

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Andy
Shellam (Mailing Lists)
Sent: Thursday, February 08, 2007 1:52 PM
To: Stuart Thornton
Cc: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Help with Nagios Looking Glass 1.0.2

Stuart Thornton wrote:
  

Thanks Andy

That sorted it out.  However either im going blind or thats not in the



  
PDF documentation.  The only permissions operations i see are 
performed in the client area.
  



No, you're right.  That change was introduced into 1.0.2, however the
manual applies for 1.0.0.  I'm still waiting on my manual author to
update it for me.
I did put a note in the release announcement on nagios-users, but it can
easily go missed.  I will put a note on the website when I get a spare
second.

Thanks

Andy.




-
Using Tomcat but need to do more? Need to support web services,
security?
Get stuff done quickly with pre-integrated technology to make your job
easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
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


!DSPAM:37,45cb9d6718518298091890!


  



--
Andy Shellam
NetServe Support Team

the Mail Network
"an alternative in a standardised world"

p: +44 (0) 121 288 0832/0839
m: +44 (0) 7818 000834

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
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] interval_length=1 configuration directive

2007-02-08 Thread Andy Shellam (Mailing Lists)
Marcel Mitsuto Fucatu Sugano wrote:
> Good afternoon,
>
> Has anyone bein able to successfully configure a Nagios instance with
> interval_length=1? Any experience to share about it?
>   

Originally I was a bit dubious of changing this from all the warnings 
that were in the config file, but (thanks to someone else who took the 
plunge) I set this to 1 when I configured my new Nagios 2.7 server and 
have not had any negative effects.

It can get a bit confusing sometimes as I haven't found a definitive 
list of which settings use the interval_length, but that could be just 
me skipping over bits in the manual :) .)

Regards,

Andy.

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
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] Help with Nagios Looking Glass 1.0.2

2007-02-08 Thread Andy Shellam (Mailing Lists)
Stuart Thornton wrote:
> Thanks Andy
>
> That sorted it out.  However either im going blind or thats not in the
> PDF documentation.  The only permissions operations i see are performed
> in the client area.
>   

No, you're right.  That change was introduced into 1.0.2, however the 
manual applies for 1.0.0.  I'm still waiting on my manual author to 
update it for me.
I did put a note in the release announcement on nagios-users, but it can 
easily go missed.  I will put a note on the website when I get a spare 
second.

Thanks

Andy.



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
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] Help with Nagios Looking Glass 1.0.2

2007-02-08 Thread Andy Shellam (Mailing Lists)
Stuart Thornton wrote:
> Update
>
> I managed to sort out the sync issue however was stumped by the next
> error.
>
> "The polling server feed returned a 'failure' code; the polling server
> said: The poller could not re-build the indexes"
>   

The webserver user needs write permissions to NLG's "server/index" folder.

Regards,

Andy.

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
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] Sending as specific email address

2007-02-07 Thread Andy Shellam (Mailing Lists)
Peter L. Berghold wrote:
> Unless totally misunderstand the issue this is more of a MTA
> configuration issue than a Nagios issue.
>
>   

FYI

If you are using Exim as your MTA like me, you need to set your Nagios 
user as a "trusted user" - then as long as you have a "From:" header in 
your e-mail, Exim will send the e-mail out as if it came from that address.

If Nagios isn't a trusted user, the e-mail will look to have come from 
"nagios@."


Regards,

Andy.



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
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 not polling httpd

2007-02-07 Thread Andy Shellam (Mailing Lists)

Robin Ericsson wrote:

On 2/7/07, edalB <[EMAIL PROTECTED]> wrote:
  

Well this is what I get

nagios-0 ~ # telnet 10.0.4.37 80
Trying 10.0.4.37...
Connected to 10.0.4.37.
Escape character is '^]'.



Then nagios shouldn't have any problems either.
  


Try running the "check_http" manually with the "-v" option, see if you 
get any useful info back.


Andy.
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
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] Loosing status info after restart

2007-02-07 Thread Andy Shellam (Mailing Lists)
Is it set in Nagios generally, i.e. in your nagios.cfg?

# cat /usr/local/nagios/etc/nagios.cfg|grep retain
retain_state_information=1
use_retained_program_state=1
use_retained_scheduling_info=0

Andy

Sjaak Nabuurs wrote:
> Hello Nagios users
>
> Nagios -v 2.5
>
> I've hanging around for a long time with a small problem
> When i restart nagios i'm loosing the state information and every status 
> returns to pending.
> Also if I use
> /bin/printf "[%lu] SAVE_STATE_INFORMATION\n" $now > $commandfile
> /bin/printf "[%lu] RESTART_PROGRAM\n" $now > $commandfile
>
> define  host {^
> host_nameserver_domain
> alias  domain
> address domain.com
> check_command   check-host-alive
> max_check_attempts  5
> check_interval5
> active_checks_enabled   1
> passive_checks_enabled 1
> check_period 24x7
> obsess_over_host  1
> check_freshness 0
> event_handler_enabled0
> flap_detection_enabled   1
> process_perf_data  0
> retain_status_information1  <-
> retain_nonstatus_information1   <--
> contact_groups  administrator
> notification_interval5
> notification_period 24x7
> notification_options   d,u,r,f
> notifications_enabled 1
> register 1
> }  
>
> Thanks for reading
>
> -
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ___
> 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
>
> !DSPAM:37,45c9732b18511055269334!
>
>
>   


-- 
Andy Shellam
NetServe Support Team

the Mail Network
"an alternative in a standardised world"

p: +44 (0) 121 288 0832/0839
m: +44 (0) 7818 000834


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
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] Service Dependencies - refer to self

2007-02-07 Thread Andy Shellam (Mailing Lists)

Matthew Joyce wrote:
I like to see this issue come up time and time again, if only to 
hopefully get address in v2.8 or v3
It would be so much simpler if there was a parent_service directive in 
the service definition.
 
Andy, will you share you php script ?
 
Thanks


Hi Matt,

Yep no problem, unfortunately I'm short of time at the moment, but as 
and when I've done it I'll let you have it.


Thanks,

Andy.

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



*From:* [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] *On Behalf Of
*Andy Shellam (Mailing Lists)
*Sent:* Monday, 5 February 2007 7:24 PM
*To:* moshe sharon
*Cc:* Nagios Users Mailing List
*Subject:* Re: [Nagios-users] Service Dependencies - refer to self

moshe sharon wrote:

Hi
 
its pretty simple solution without perl script. create a

service called NRPE
and enter the following check_command
command_name nrpe_version
command_line ./check_nrpe -H 212.150.36.20 <http://212.150.36.20>
 
when running this command against NRPE daemon you should get

response "NRPE v2.0"
 
now create your dependencies that this NRPE is the master

server and the other dependent on it.


Yes, that's what I've done, but how do you do it by simply
defining one dependency to do the same thing across multiple servers?
If I use wildcards in the dependency, it makes every NRPE client
service depend on every other NRPE server in the network, not just
the server that service instance runs on.


Andy.

!DSPAM:37,45c9284218511209245668! 



--
Andy Shellam
NetServe Support Team

the Mail Network
"an alternative in a standardised world"

p: +44 (0) 121 288 0832/0839
m: +44 (0) 7818 000834

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
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] ANNOUNCE: Nagios Looking Glass 1.0.2 released!

2007-02-06 Thread Andy Shellam (Mailing Lists)
Nagios Looking Glass v1.0.2 is available for download!

This is the best release of Nagios Looking Glass, and it's recommended 
to upgrade from all previous versions.

NLG is now on Update Scout at the URL below:

http://www.update-scout.com/softwareInfo.html?SoftwareId=957460bdb0e7e98bdc36406019287b51

There are a number of ways to retrieve the upgrade:

   - Directly from the project website
   - Wait for the alert from Update Scout
   - Append ?checkupdate=yes to your NLG URL to get the notification and 
download link

The Important Bits
=== = 

The official project site is: http://www.nagioslookingglass.co.uk
Get the latest release at: http://www.nagioslookingglass.co.uk/download.phpx

Available in Windows Zip, and Unix .tar.gz and .tar.bz2 formats.

To upgrade from a previous version, please see UPGRADING.TXT in the
distribution.

The documentation needs some updating, which I'll be working on, as well 
as a "how-to" template guide.  The 1.0.0#PRE administrator manual does 
still apply in it's majority for 1.0.2.

More Detail
 ==

NLG is a Web-2.0 browser-based application that works in Firefox, IE,
Safari and Konqueror.  It shows visitors the status of your network
without giving them access to the Nagios CGIs, and starts at a "network
summary" view with the options to drill down into servers (hosts) and
their metrics (services).

NLG can easily be customised to match your company's look and feel, and
is ideal for hosting companies who run Nagios.

For the full changelog for this version, please see the CHANGELOG.TXT
file in the distribution, or visit:

http://arctic.andyshellam.eu/index.php?cmd=changelog&project=2&version=13

Please see the 'Support' section on the NLG project website to see the
best way to report bugs / request new features etc.

To see where NLG is headed in the future, visit:

http://arctic.andyshellam.eu/index.php?cmd=roadmap&project=2

Regards,

Andy Shellam


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
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 not polling httpd

2007-02-06 Thread Andy Shellam (Mailing Lists)
edalB wrote:
> Nope it would not be the reason. All the servers I try to monitor is
> inside my firewall.

What does "telnet 10.0.4.37 80" yield?  How long do you have to wait 
before issuing the telnet command and it coming back with a failure?
If you cannot even telnet to the server, then something is stopping 
packets getting there, or the web server on that machine is not 
listening on that IP.

If you can connect to it with telnet, type "GET /" and you should get 
some form of HTML code back.

Andy.

>
> Thanks tho
>
> On 2/6/07, Andy Shellam (Mailing Lists)
> <[EMAIL PROTECTED]> wrote:
>>
>>  Sounds like a firewall issue between your Nagios server and 10.0.4.37.
>>
>>  Andy.
>>
>>  edalB wrote:
>>  Done the same.
>>
>> I just dont get any connection
>>
>> On 2/5/07, Robin Ericsson <[EMAIL PROTECTED]> wrote:
>>
>>
>>  On 2/5/07, edalB <[EMAIL PROTECTED]> wrote:
>>
>>
>>  Hi there
>>
>> I have a weird problem. I have a server that has a httpd service 
>> running off
>> it.
>> When I go to the website on the server I can access it and it works
>> 100% but when I ask nagios to check_http it gives me the following.
>>
>>
>> nagios-0 libexec # ./check_http 10.0.4.37
>> CRITICAL - Socket timeout after 10 seconds
>>
>>  What about "telnet 10.0.4.37 80" ?
>>
>> -- 
>>  regards,
>>  Robin
>>
>> - 
>>
>> Using Tomcat but need to do more? Need to support web services, 
>> security?
>> Get stuff done quickly with pre-integrated technology to make your job
>> easier.
>> Download IBM WebSphere Application Server v.1.0.1 based on Apache 
>> Geronimo
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>> ___
>> 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
>>
>>
>>
>>
>> - 
>>
>> Using Tomcat but need to do more? Need to support web services, 
>> security?
>> Get stuff done quickly with pre-integrated technology to make your job
>> easier.
>> Download IBM WebSphere Application Server v.1.0.1 based on Apache 
>> Geronimo
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>> ___
>> 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
>>
>>
>>
>>
>>
>>
>>
>>  --
>> Andy Shellam
>> NetServe Support Team
>>
>> the Mail Network
>> "an alternative in a standardised world"
>>
>> p: +44 (0) 121 288 0832/0839
>> m: +44 (0) 7818 000834
>>
>
> !DSPAM:37,45c8728918512128552232!
>
>


-- 
Andy Shellam
NetServe Support Team

the Mail Network
"an alternative in a standardised world"

p: +44 (0) 121 288 0832/0839
m: +44 (0) 7818 000834


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
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 not polling httpd

2007-02-06 Thread Andy Shellam (Mailing Lists)

Sounds like a firewall issue between your Nagios server and 10.0.4.37.

Andy.

edalB wrote:

Done the same.

I just dont get any connection

On 2/5/07, Robin Ericsson <[EMAIL PROTECTED]> wrote:
  

On 2/5/07, edalB <[EMAIL PROTECTED]> wrote:


Hi there

I have a weird problem. I have a server that has a httpd service running off it.
When I go to the website on the server I can access it and it works
100% but when I ask nagios to check_http it gives me the following.


nagios-0 libexec # ./check_http 10.0.4.37
CRITICAL - Socket timeout after 10 seconds
  

What about "telnet 10.0.4.37 80" ?

--
regards,
Robin

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
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




-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
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


!DSPAM:37,45c86ad118513151514555!


  



--
Andy Shellam
NetServe Support Team

the Mail Network
"an alternative in a standardised world"

p: +44 (0) 121 288 0832/0839
m: +44 (0) 7818 000834

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
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 Looking Glass 1.0.2 in Beta-testing

2007-02-05 Thread Andy Shellam (Mailing Lists)
Nagios Looking Glass v1.0.2 Beta is available for download!

This is a call for testers to try out 1.0.2 before it is released.  The
reason being there have been massive performance improvements in the way
NLG gathers the data from Nagios, and I'm hoping people who couldn't get
1.0.1 or below working in large environments can test 1.0.2#Beta
successfully.

1.0.1 and below didn't display when there were more than 200 servers in
Nagios.
1.0.2#Beta takes 6-8 seconds to render 600 servers and 6000 services for
the first visit, and 1-2 seconds per subsequent visit (when status data 
is cached.)

It is available to download at
www.nagioslookingglass.co.uk/download.phpx#nlg_dev

The Important Bits
=== = 

The official project site is: http://www.nagioslookingglass.co.uk
Get the latest release at: http://www.nagioslookingglass.co.uk/download.phpx

Available in Windows Zip, and Unix .tar.gz and .tar.bz2 formats.
(Beta versions available in Windows Zip only.)

To upgrade from a previous version, please see UPGRADING.TXT in the
distribution.

The Administrator Manual for 1.0.0#PRE still applies on the whole,
however the the "server/index" folder also needs write permissions by
the web server user on the Nagios server.

If you enforce PHP memory limits on the polling server (PHP compiled
with --enable-memory-limit), you may need to increase the default 8MB
memory limit in php.ini.  For 600 servers/6000 metrics, NLG needs 48MB
allocating.

More Detail
 ==

NLG is a Web-2.0 browser-based application that works in Firefox, IE,
Safari and Konqueror.  It shows visitors the status of your network
without giving them access to the Nagios CGIs, and starts at a "network
summary" view with the options to drill down into servers (hosts) and
their metrics (services).

NLG can easily be customised to match your company's look and feel, and
is ideal for hosting companies who run Nagios.

For the full changelog for this version, please see the CHANGELOG.TXT
file in the distribution, or visit:

http://arctic.andyshellam.eu/index.php?cmd=changelog&project=2&version=12

Please see the 'Support' section on the NLG project website to see the
best way to report bugs / request new features etc.

To see where NLG is headed in the future, visit:

http://arctic.andyshellam.eu/index.php?cmd=roadmap&project=2

Regards,

Andy Shellam

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
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] Service Dependencies - refer to self

2007-02-05 Thread Andy Shellam (Mailing Lists)

moshe sharon wrote:

Hi
 
its pretty simple solution without perl script. create a service 
called NRPE

and enter the following check_command
command_name nrpe_version
command_line ./check_nrpe -H 212.150.36.20 
 
when running this command against NRPE daemon you should get response 
"NRPE v2.0"
 
now create your dependencies that this NRPE is the master server and 
the other dependent on it.


Yes, that's what I've done, but how do you do it by simply defining one 
dependency to do the same thing across multiple servers?
If I use wildcards in the dependency, it makes every NRPE client service 
depend on every other NRPE server in the network, not just the server 
that service instance runs on.



Andy.
-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
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] Service Dependencies - refer to self

2007-02-04 Thread Andy Shellam (Mailing Lists)

Hugo van der Kooij wrote:

On Sun, 4 Feb 2007, Andy Shellam (Mailing Lists) wrote:

  

Is there any way to make a service dependency refer to the service's own
host?



In your case I would write a tiny script and generate the service 
dependencies. I guess some 20 lines of perl might do the trick if you are 
fluent in perl.


Hugo.

  


Thanks Hugo, I'll probably do it in PHP as I haven't touched Perl other 
than the very basics.

Was just hoping there may have been an easier way I'd missed in the docs ;)

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___
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] Service Dependencies - refer to self

2007-02-04 Thread Andy Shellam (Mailing Lists)
Is there any way to make a service dependency refer to the service's own 
host?

For example:

I have a list of services that perform basic health checking 
(disk-space, swap-space, load, uptime etc) across all servers defined in 
Nagios.
There is also a service on every server that checks that NRPE is running.

What I'd like to do is create a service dependency so that all the basic 
health checks only get checked/notified if NRPE is running.
However, I cannot seem to create a dependency that refers to it's own host.

E.g.

define servicedependency {
hostgroup_nameall_servers
service_descriptionRemote Monitoring Agent
dependent_hostgroup_nameall_servers
dependent_service_descriptionDisk Space (OS)
inherits_parent0
execution_failure_criteriac
notification_failure_criteriaw,u,c,p
}

What this does, and I understand why, is that one server's "Disk Space 
(OS)" service depends on every other server's "Remote Monitoring Agent", 
instead of just it's own.

I'd need something like:

define servicedependency {
host_name_self
service_descriptionRemote Monitoring Agent
dependent_host_name_self
dependent_service_descriptionDisk Space (OS)
inherits_parent0
execution_failure_criteriac
notification_failure_criteriaw,u,c,p
}

So the service "Disk Space (OS)" is dependent on the "Remote Monitoring 
Agent" on that same server.

The only way forward I can see for now is creating a service dependency 
for every host, for every health check service (which for me means 
upwards of 40 dependencies.)

I hope this is a good enough explanation of what I'm trying to do - can 
this be done?

Thanks

Andy.

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
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] servicegroup_name in dependencies

2007-02-04 Thread Andy Shellam (Mailing Lists)
Can anyone see a problem with this service dependency setup?  Nagios 
complains with a "NULL service description/host name in service 
dependency definition" message with this configuration, but I cannot see 
anything wrong myself.

According to the manual:

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

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

I cannot get this to work under Nagios 2.7.

In my setup, I have a group called "aseu_web_servers."  Every host in 
that group (currently only one) has a service called "Web Service" 
which, using NRPE, checks that the local web server is running.
I then have a list of 13 websites assigned to a service group called 
"web_sites".

What I'm trying to do is setup a dependency on every website, with the 
"Web Service" on the host being the master service, so if the web server 
dies, I don't get a notification for every website that fails.

With the above manual excerpt, I figured the following would work:

define servicedependency {
hostgroup_nameaseu_web_servers
service_descriptionWeb Service
dependent_hostgroup_nameaseu_web_servers
dependent_servicegroup_nameweb_sites
inherits_parent0
execution_failure_criteriac
notification_failure_criteriaw,u,c,p
}

Config check fails with: "NULL service description/host name in service 
dependency definition"

If I change "dependent_servicegroup_name" to 
"dependent_service_description" and put a single website in, instead of 
the "web_sites" group, it works, as follows:

define servicedependency {
hostgroup_nameaseu_web_servers
service_descriptionWeb Service
dependent_hostgroup_nameaseu_web_servers
dependent_service_description Website: www.andyshellam.eu
inherits_parent0
execution_failure_criteriac
notification_failure_criteriaw,u,c,p
}

Config check results in "Total Warnings: 0; Total Errors:   0"

Even if I set a specific host name instead of a host group, it still 
complains whenever the "dependent_servicegroup_name" option is used.

This means I'll have to add in a service dependency for every website.  
I cannot use a wildcard in the "dependent_service_description" because 
there are other services on those servers that don't have a dependency 
on the web server.  If I add a new website, all I want to have to do is 
add it into the "web_sites" group and have everything else taken care 
of, which the manual says you can by using the 
"dependent_servicegroup_name" directive.

Is this a bug in Nagios, or can anyone tell me I'm missing something silly?

Thanks

Andy.

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
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] Grant view access but no change access

2007-01-31 Thread Andy Shellam (Mailing Lists)
JS wrote:
> Hi list,
>
> Is there a way to grant a user of group the right to view the status of 
> services and hosts but not giving them the right to start/stop services 
> or to change anything else.
>   

Nagios Looking Glass was designed for this situation: 
www.nagioslookingglass.co.uk

>
> Thanks,
>
> Jelle
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> 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
>
> !DSPAM:37,45c09de6118211414816096!
>
>
>   


-- 
Andy Shellam
NetServe Support Team

the Mail Network
"an alternative in a standardised world"

p: +44 (0) 121 288 0832/0839
m: +44 (0) 7818 000834


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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 and exception monitoring

2007-01-30 Thread Andy Shellam (Mailing Lists)

[EMAIL PROTECTED] wrote:
You can do this in Nagios Looking Glass (a portal viewer for Nagios), 
you can set a filter so it only shows you hosts that have problems (and 
is refreshed at regular intervals so you can leave it on screen.)


It might not be exactly what you're after, but worth a look?

www.nagioslookingglass.co.uk



I have been watching the looking glass project for a while now, and find 
that feature interesting.


Can you increase the number of hosts displayed on the main page? I am 
looking at the idea of using a large LCD display ( 40 inch or larger ) on 
the wall in our IT department to display the current network status. Could 
looking glass display the status of 80+ hosts on one page if the 
resolution was set high enough?
  


Yep, it's in the configuration file how many hosts per page you want to 
show - if you want to show all hosts on a single page, set it to a high 
number like 999.
Since 1.0.0, the template expands to fit the height of the data in the 
page (rather than having a fixed height with a scrollbar as it was in 
1.0.0#PRE.)


NLG does have trouble with more than 200 hosts, I'm working on that for 
the next release.


If you do get it up and running on an LCD display that big it'd be great 
to have a photo! :-)


Andy.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
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 and exception monitoring

2007-01-30 Thread Andy Shellam (Mailing Lists)
You can do this in Nagios Looking Glass (a portal viewer for Nagios), 
you can set a filter so it only shows you hosts that have problems (and 
is refreshed at regular intervals so you can leave it on screen.)

It might not be exactly what you're after, but worth a look?

www.nagioslookingglass.co.uk


Scott Micciche wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Is there any way to configure Nagios to only show the exceptions on the
> service detail and associated pages?
>
> I only ask as we have many machines and although we can sort by status,
> it isn't the default sort so if you change pages, you must re-sort and
> it would be nice to configure Nagios to only show exceptions, like
> Critial and Warnings at the top and all the machines that are in good
> status at the bottom.
>
> Thanks in advance for any help.
>
> - --
> Scott Micciche
> Unix Systems Administrator
> Sierra Pacific Mortgage
> (916) 932-0634
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.6 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFFv8EXla/LXXqKLxIRAkDgAKCABgIVoCztVQUMuk27YfHpAFNI4gCfYSeb
> rZn9ZnzIPAdpiBa1EjOWtRw=
> =TgeN
> -END PGP SIGNATURE-
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> 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
>
> !DSPAM:37,45bfc143118218947617192!
>
>
>   


-- 
Andy Shellam
NetServe Support Team

the Mail Network
"an alternative in a standardised world"

p: +44 (0) 121 288 0832/0839
m: +44 (0) 7818 000834


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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 in FreeBSD jail

2007-01-27 Thread Andy Shellam (Mailing Lists)
Dan Langille wrote:
> On 27 Jan 2007 at 22:07, Andy Shellam (Mailing Lists) wrote:
>
>   
>> I've been struggling with this for the last 2 hours and I cannot work 
>> out where it's going wrong.
>> I have a Nagios 2.7 server talking to an NRPE 2.6 client.
>>
>> The Nagios 2.7 server is running FreeBSD as does the NRPE client - 
>> however the NRPE client is being run in a FreeBSD jail (this is a hosted 
>> system which I have no control of outside of the jail.)
>> I'm hoping I've simply missed something simple.
>>
>> When I run from the console of the NRPE client, as the Nagios user:
>>
>> $ /usr/local/bin/sudo /usr/local/nagios/libexec/check_swap -w 25% -c 10%
>> SWAP OK - 91% free (7442 MB out of 8192 MB) |swap=7442MB;2048;819;0;8192
>> $
>> 
>
> You are you issuing
>   

...?

>   
>> When I run the check from the Nagios server:
>>
>> sudo -u nagios /usr/local/nagios/libexec/check_nrpe -H 
>> mackay.mailnetwork.co.uk -c check_swap
>> NRPE: Unable to read output
>>
>> If I try an invalid command:
>>
>> sudo -u nagios /usr/local/nagios/libexec/check_nrpe -H 
>> mackay.mailnetwork.co.uk -c check_swapNOTEXIST
>> NRPE: Command 'check_swapNOTEXIST' not defined
>>
>> So, as you can see, it is reaching NRPE fine (and I presume the SSL is 
>> working correctly.)
>> I've tried starting up NRPE without SSL (-n), and ditto on the Nagios 
>> server - still the same error.
>> I've also tried setting allow_weak_random_seed=1, same error.
>>
>> I'm guessing it has something to do with NRPE not sending the output 
>> data from the plugin to the correct stream, and as I don't know much 
>> about FreeBSD jails, I don't know whether stdin/out works as normal.
>>
>> As you can see, I've also set debug=1, but don't get anything in my log 
>> files other than "daemon starting up."
>>
>> Is anyone else running NRPE inside a jail?  Or can point out something 
>> obvious I'm missing!?  Or how to get more debug info?
>>
>> Thanks
>>
>> Andy.
>>
>> ---
>>
>> My nrpe.cfg file:
>>
>> pid_file=/var/run/nrpe.pid
>> server_port=5666
>> #server_address=192.168.1.1
>> nrpe_user=nagios
>> nrpe_group=localservice
>> #allowed_hosts=127.0.0.1,10.100.9.201
>> 
>
> Why commented out?
>   

The server_address is commented out so NRPE binds to all addresses - 
this config file template came from another server where I only wanted 
it to listen on one of it's two addresses.
The allowed_hosts is commented out as a further debugging attempt.

>   
>> dont_blame_nrpe=0
>> command_prefix=/usr/local/bin/sudo
>> debug=1
>> command_timeout=60
>> connection_timeout=300
>> #allow_weak_random_seed=1
>>
>> command[check_swap]=/usr/local/nagios/libexec/check_swap -w 25% -c 10%
>> 
>
> You issued an sudo above, yet the command here does not use sudo.
>   

The command_prefix puts /usr/local/bin/sudo before all commands, as some 
core plugins require root access.

> I've seen this error before, and recently.  Usually it was a 
> permissions issue.  For some readon nrpe is unable to execute the 
> command.  Perhaps it is this sudo issue.
>   

Perhaps, but this same config works fine on a Fedora Core 4 system, by 
changing /usr/local/bin/sudo to /usr/bin/sudo.  Before I changed this I 
got the same error on the Fedora system, so I am leaning towards it 
being a permissions issue, but I can't figure out what.

> A side note: sometimes it helps to add wrapper function.  All the 
> wrapper function does it a cd /usr/local/nagios/libexec and then runs 
> the command you would normally specify in nrpe.cfg
>   

The plugins I'm trying to execute are all core plugins (check_swap, 
check_dns etc.)  I haven't had to add a wrapper on any other system 
(including an identical FreeBSD machine, just not running in a jail.)

Thanks,

Andy.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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 in FreeBSD jail

2007-01-27 Thread Andy Shellam (Mailing Lists)
I've been struggling with this for the last 2 hours and I cannot work 
out where it's going wrong.
I have a Nagios 2.7 server talking to an NRPE 2.6 client.

The Nagios 2.7 server is running FreeBSD as does the NRPE client - 
however the NRPE client is being run in a FreeBSD jail (this is a hosted 
system which I have no control of outside of the jail.)
I'm hoping I've simply missed something simple.

When I run from the console of the NRPE client, as the Nagios user:

$ /usr/local/bin/sudo /usr/local/nagios/libexec/check_swap -w 25% -c 10%
SWAP OK - 91% free (7442 MB out of 8192 MB) |swap=7442MB;2048;819;0;8192
$

When I run the check from the Nagios server:

sudo -u nagios /usr/local/nagios/libexec/check_nrpe -H 
mackay.mailnetwork.co.uk -c check_swap
NRPE: Unable to read output

If I try an invalid command:

sudo -u nagios /usr/local/nagios/libexec/check_nrpe -H 
mackay.mailnetwork.co.uk -c check_swapNOTEXIST
NRPE: Command 'check_swapNOTEXIST' not defined

So, as you can see, it is reaching NRPE fine (and I presume the SSL is 
working correctly.)
I've tried starting up NRPE without SSL (-n), and ditto on the Nagios 
server - still the same error.
I've also tried setting allow_weak_random_seed=1, same error.

I'm guessing it has something to do with NRPE not sending the output 
data from the plugin to the correct stream, and as I don't know much 
about FreeBSD jails, I don't know whether stdin/out works as normal.

As you can see, I've also set debug=1, but don't get anything in my log 
files other than "daemon starting up."

Is anyone else running NRPE inside a jail?  Or can point out something 
obvious I'm missing!?  Or how to get more debug info?

Thanks

Andy.

---

My nrpe.cfg file:

pid_file=/var/run/nrpe.pid
server_port=5666
#server_address=192.168.1.1
nrpe_user=nagios
nrpe_group=localservice
#allowed_hosts=127.0.0.1,10.100.9.201
dont_blame_nrpe=0
command_prefix=/usr/local/bin/sudo
debug=1
command_timeout=60
connection_timeout=300
#allow_weak_random_seed=1

command[check_swap]=/usr/local/nagios/libexec/check_swap -w 25% -c 10%

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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] ANNOUNCE: Nagios Looking Glass 1.0.1 released!

2007-01-26 Thread Andy Shellam (Mailing Lists)
Hi Randall,

You can put NLG's folders wherever you want, as long as it has a URL 
that can be accessed via HTTP (e.g. Apache.)
This can be setup as a separate virtual host, a so-called virtual 
directory under Apache, or simply as a subdirectory of Apache's default 
htdocs.

The main files NLG needs from Nagios are those in 'nagios/var' and these 
must be accessible via the local file-system to NLG's server scripts.  
The client can be placed on a separate machine if required.
Currently the server-side of NLG requires a HTTP URL, even if the client 
is on the same machine.  This will be changed in future versions, but 
that's how it is now.

The 'share' folder is where all the templates/HTML files etc are for 
Nagios' front-end, and this was used for sake of simplicity.  This may 
be different on OSX, I'm not sure, someone more familiar with the OSX 
builds of Nagios may be able to help you further.

Andy.



Randall R. Saeks wrote:
> I am looking to get this installed on OS X, and can't seem to find a 
> share folder inside of any of my Nagios folders.  Is this something 
> that I should be creating if it is not there?  Is the directory where 
> this should be installed the same one that has all the image, local 
> folders and index.html, config.js?
>
> Once I get some of that down, I can put the steps for the install on 
> OS X together, but I just need some guidance on where to put these.
>
> Thanks,
>
> 
> Randall R. Saeks, ACSA
> Network Administrator/Computer Support Specialist
> Northbrook / Glenview School District 30
>
>
>
> On Jan 23, 2007, at 4:51 AM, Andy Shellam (Mailing Lists) wrote:
>
>> Nagios Looking Glass v1.0.1 is available for download!
>>
>> *** Please upgrade from 1.0.0#PRE and 1.0.0 as soon as possible as a 
>> possible vulnerability has been patched ***
>>
>> The Important Bits
>> === = 
>>
>> The official project site is: http://www.nagioslookingglass..co.uk 
>> <http://www.nagioslookingglass.co.uk>
>> Get the latest release at: 
>> http://www.nagioslookingglass.co.uk/download.phpx
>>
>> Available in Windows Zip, and Unix .tar.gz and .tar.bz2 formats.
>>
>> The files on Nagios Exchange will be upgraded once the documentation has
>> been released, so please download from the project site (above.)
>>
>> To upgrade from a previous version, please see UPGRADING.TXT in the
>> distribution.
>>
>> The documentation is not currently in the distribution but will be added
>> in the next few days.  The 1.0.0#PRE administrator manual is still
>> available on the NLG project website under "Documentation" and the
>> majority of it still applies for 1.0.0.
>>
>> More Detail
>>  ==
>>
>> NLG is a Web-2.0 browser-based application that works in Firefox, IE,
>> Safari and Konqueror.  It shows visitors the status of your network
>> without giving them access to the Nagios CGIs, and starts at a "network
>> summary" view with the options to drill down into servers (hosts) and
>> their metrics (services).
>>
>> NLG can easily be customised to match your company's look and feel, and
>> is ideal for hosting companies who run Nagios.
>>
>> For the full changelog for this version, please see the CHANGELOG.TXT
>> file in the distribution, or visit:
>>
>> http://arctic.andyshellam.eu/index.php?cmd=changelog&project=2&version=8 
>> <http://arctic.andyshellam.eu/index.php?cmd=changelog&project=2&version=8>
>>
>> Please see the 'Support' section on the NLG project website to see the
>> best way to report bugs / request new features etc.
>>
>> To see where NLG is headed in the future, visit:
>>
>> http://arctic.andyshellam.eu/index.php?cmd=roadmap&project=2 
>> <http://arctic.andyshellam.eu/index.php?cmd=roadmap&project=2>
>>
>> Regards,
>>
>> Andy Shellam
>>
>> -
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to 
>> share your
>> opinions on IT & business topics through brief surveys - and earn cash
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV 
>> <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV>
>> ___
>> Nagios-users mailing list
>> Nagios-users@lists.sourceforge.net 
>> <mailto:Nagios-users@lists.sourceforge.net>
&

Re: [Nagios-users] Error when starting nagios in debug mode.

2007-01-25 Thread Andy Shellam (Mailing Lists)
Gopinath wrote:
> Hi and happy new year everyone,
>  
> I am very new to this list & nagios. So please bare with me. I have 
> successfully installed and compiled nagios in my machine running 
> Fedora core 3. When i try to start the nagios service I encounter 
> with the following error.
>  
> Error: Unexpected token or statement in file 
> '/usr/local/nagios/etc/hosts.cfg' on line 1.
>  
> My hosts.cfg file has the default value:

Erm, the last time I looked that's not a default Nagios host file :S

>  
> 0 CFGDIR cfg
> 0 DEFHOST pc1 192.168.10.1.cfg serial0
> 0 DEFHOST pc2 192.168.10.1.cfg serial2
> 0 DEFHOST pc3 192.168.10.1.cfg serial3
>  
> I don't find any document in nagios doc page defining how to edit the 
> host.cfg file. So please help me out.

http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#host


-- 
Andy Shellam
NetServe Support Team

the Mail Network
"an alternative in a standardised world"



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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] Howto not check a service each day from 03-06

2007-01-24 Thread Andy Shellam (Mailing Lists)
Marcel Mitsuto Fucatu Sugano wrote:
> On Wed, 2007-01-24 at 10:07 +, Andy Shellam (Mailing Lists) wrote:
>   
>> define timeperiod{
>> timeperiod_name oracle-downtime
>> alias   Oracle Downtime
>> sunday  00:00-03:00,06:00-24:00
>> <- repeat for monday - saturday ->
>> }
>>
>> Then in your Oracle service check, use "oracle-downtime" as the value
>> for "check_period" 
>> 
>
> just being itchy, the name leads to misunderstanding, it should be
> called oracle-uptime, as this timeperiod is defined to check the running
> oracle instance, not the downtimed period.
>   

Hehe yep good point, I was just making it obvious that it's a time 
period for a specific-use, but yep I agree!



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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] Howto not check a service each day from 03-06

2007-01-24 Thread Andy Shellam (Mailing Lists)
Martin Møller Pedersen wrote:
> Hi,
>   Every night some oracle databases are stopped. Is it possible to specifiy 
> that
> the a specific service (eg. check_oracle) shouldn't be tested beetween
> eg. 03-06 each day.
>   

Certainly - define yourself a time period which doesn't include these 
times :)
http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#timeperiod

e.g.

define timeperiod{
timeperiod_name oracle-downtime
alias   Oracle Downtime
sunday  00:00-03:00,06:00-24:00
<- repeat for monday - saturday ->
}

Then in your Oracle service check, use "oracle-downtime" as the value for 
"check_period"


Andy.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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: checking actual health of a disk.

2007-01-23 Thread Andy Shellam (Mailing Lists)
I have SMART enabled on my hard disks, and have a plugin downloaded from 
Nagios Exchange (it requires Python) that parses the SMART output and 
reports an OK or Bad status.  (I think it's called check_smartmon.py).

Andy.

David Rivera wrote:
> Hi all,
>
> I was wondering is anyone has done this, I am wondering if there are 
> plugins already out there I can use to check the health of Sun boxes 
> and linux boxes.
>
> I know 'checking the health' is very vague, since there are a number 
> of things to check. For Sun, checking metadevices or disks not under 
> any any voluem manager.
>
> linux, not sure how to check on them?
>
>
> thanks much
> David
>
>
>
> Money can't buy happiness, but neither can poverty.
> -Leo Rosten
> !DSPAM:37,45b69bfc118211922293640!
> 
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> !DSPAM:37,45b69bfc118211922293640!
>   
> 
>
> ___
> 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
>
> !DSPAM:37,45b69bfc118211922293640!
>   


-- 
Andy Shellam
NetServe Support Team

the Mail Network
"an alternative in a standardised world"

p: +44 (0) 121 288 0832/0839
m: +44 (0) 7818 000834


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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] problems with Nagios Looking Glass

2007-01-23 Thread Andy Shellam (Mailing Lists)
Frost, Mark {PBG} wrote:
> As a followup, it looks like (perhaps among other issues) the
> s3_poller.php script is timing out.
>
> I've turned on the displaying of PHP error messages and when I put the
> s3_poller.php URL in and wait, I eventually get:
>
> Fatal error:  Maximum execution time of 30 seconds exceeded in
> /usr/local/nlg_101/server/sync-files/s3_functions.inc.php on line 248
>   

Yep what that's doing is parsing your var/status.dat file to get the 
current services and their statuses.

How big is your Nagios installation?  (i.e. how many hosts/services?)


> Looking at that file, this seems to be looking at one of my nagios "var"
> files... 
>
> preg_match_all("/(?:\n|\r\n)\w*service
> {(?:\n|\r\n)\s*host_name=" . $ServerObject->HostName . "(?:\n|\r\n)/",
> stream_get_contents($StatusFileHandle), $ServiceMatches,
> PREG_OFFSET_CAPTURE, 0);
>
> Mark
>   

Andy.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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] problems with Nagios Looking Glass

2007-01-23 Thread Andy Shellam (Mailing Lists)
Hi Mark,

If you enable the debugging option in the client/s3_config_stub.inc.php 
file ($Stub_ClientEnableDebugging) to 1, then visit 
"http://nagioshost/nlg/client/?debug=yes";, that will generate your 
debugging output, but I'm guessing it will go as far as the error it's 
already generated in the front-end.

1.0.0#PRE didn't give any error messages apart from "feed download 
failed" - that was fixed in 1.0.0.
1.0.1 literally only changed one line of code, so it's strange if it's 
giving you a different error to 1.0.0. :S

As a private e-mail, can you send me your config files and the debug 
output?  (Obviously strip any usernames/passwords out of your config 
before-hand!)

Just glancing over your e-mail, is this just an oversight, or is this 
actually in your config?  - You say you're using the same server as both 
client and server, and your client address starts http://nagioshost, but 
your server address starts http://nagios - this would cause the delay 
you're seeing, but I think I'm being a bit hopeful that this is all it is ;)

As per your question about authentication, the sync'd files are 
requested from the normal file-system (when configured), but the poller 
still uses a HTTP request - this is something I'm hoping to change in 1.0.2.

FYI you don't have to put NLG in the share directory of Nagios - I've 
done exactly the same trick as you did with my server feed, and my 
client UI is sitting on a completely different server to Nagios.

Thanks

Andy.

Frost, Mark {PBG} wrote:
> Hello.  I've been trying to use Nagios Looking Glass and have so far
> been unable to.  I've tried 1.0Pre, 1.0 and now 1.0.1.
>
> When I go to the client URL (http://nagioshost/nlg/client) it sits there
> working on it for 30 seconds and gives me back an error page which
> includes:
>
>   The checksum I received with the feed is invalid compared to my
> local check. Network problems may be causing packet loss 
>
> The long wait before the error was consistent with behavior in 1.0Pre
> and 1.0, but each version has given me different errors (or none at all
> I think with 1.0Pre).
>
> I'm running Nagios 2.6 with authentication to the Nagios "share"
> directory.  I've got both the NLG client and server on the same box
> which is the same as the Nagios server itself.
>
> One thing I'm doing differently here (and maybe I can't do this) is that
> I put the NLG stuff *outside* of the nagios share directory.  I tweaked
> my Apache config so that it would find 'nlg' as a separate URL with no
> authentication.  So the NLG URLs would be something like
>
> http://nagioshost/nlg/client  or http://nagios/nlg/server/s3_poller.php
>
> I modified the php include files per the 1.0PRE documentation (that's
> still current for 1.0 and 1.0.1, right?) to use these URLs.  I'm a
> little unclear about authentication here because I wasn't sure that NLG
> would need it as it's accessing files directly.  That is, since the
> entire /nlg URL tree is unauthenticated and I thought NLG would access
> Nagios' files directly (i.e. not using the Nagios URLs) no
> authentication was necessary.
>
> I can't find any error logs and I'm having some difficulty figuring out
> how I might turn debugging on in the code to tell me what I might have
> done wrong.
>
> Any help would be greatly appreciated.
>
> thanks
>
> Mark
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> 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
>
> !DSPAM:37,45b632b0118219947612590!
>
>
>   


-- 
Andy Shellam
NetServe Support Team

the Mail Network
"an alternative in a standardised world"

p: +44 (0) 121 288 0832/0839
m: +44 (0) 7818 000834


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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] ANNOUNCE: Nagios Looking Glass 1.0.1 released!

2007-01-23 Thread Andy Shellam (Mailing Lists)
Nagios Looking Glass v1.0.1 is available for download!

*** Please upgrade from 1.0.0#PRE and 1.0.0 as soon as possible as a 
possible vulnerability has been patched ***

The Important Bits
=== = 

The official project site is: http://www.nagioslookingglass.co.uk
Get the latest release at: http://www.nagioslookingglass.co.uk/download.phpx

Available in Windows Zip, and Unix .tar.gz and .tar.bz2 formats.

The files on Nagios Exchange will be upgraded once the documentation has
been released, so please download from the project site (above.)

To upgrade from a previous version, please see UPGRADING.TXT in the
distribution.

The documentation is not currently in the distribution but will be added
in the next few days.  The 1.0.0#PRE administrator manual is still
available on the NLG project website under "Documentation" and the
majority of it still applies for 1.0.0.

More Detail
 ==

NLG is a Web-2.0 browser-based application that works in Firefox, IE,
Safari and Konqueror.  It shows visitors the status of your network
without giving them access to the Nagios CGIs, and starts at a "network
summary" view with the options to drill down into servers (hosts) and
their metrics (services).

NLG can easily be customised to match your company's look and feel, and
is ideal for hosting companies who run Nagios.

For the full changelog for this version, please see the CHANGELOG.TXT
file in the distribution, or visit:

http://arctic.andyshellam.eu/index.php?cmd=changelog&project=2&version=8

Please see the 'Support' section on the NLG project website to see the
best way to report bugs / request new features etc.

To see where NLG is headed in the future, visit:

http://arctic.andyshellam.eu/index.php?cmd=roadmap&project=2

Regards,

Andy Shellam

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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.cmd external

2007-01-22 Thread Andy Shellam (Mailing Lists)
You may be connecting to Nagios using nagiosadmin, but that is a user 
under your webserver, not an OS user.
If your Apache runs under the user "nobody", that is the user you need 
to add to the nagioscmd group.


Nedim Bicic wrote:
> yeah i think thats the problem i am loging in as nagiosadmin but from 
> what i copied and pasted from documentation in nagios created user 
> nobody and nagios '
>  
> But when i log into nagios i am logging in as nagiosadmin not nobody 
> or nagios i tried adding nagiosadmin with this command:
>  
> */usr/sbin/usermod -G nagiocmd nagiosadmin*
> usermod: user nagiosadmin does not exist
>  
> keeps giving me this error
> but i think difinitly this might be casuing the error can you show me 
> what i can do to add the user to this group or check weather it has 
> been added??
>  
> thanks
>  

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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] ANNOUNCE: Nagios Looking Glass 1.0.0 released!

2007-01-22 Thread Andy Shellam (Mailing Lists)
With immediate effect, Nagios Looking Glass v1.0.0 is available for 
download!

The Important Bits
=== = 

The official project site is: http://www.nagioslookingglass.co.uk
Get the latest release at: http://www.nagioslookingglass.co.uk/download.phpx

Available in Windows Zip, and Unix .tar.gz and .tar.bz2 formats.

The files on Nagios Exchange will be upgraded once the documentation has 
been released, so please download from the project site (above.)

To upgrade from a previous version, please see upgrading.txt in the 
distribution.

The documentation is not currently in the distribution but will be added 
in the next few days.  The 1.0.0#PRE administrator manual is still 
available on the NLG project website under "Documentation" and the 
majority of it still applies for 1.0.0.

More Detail
 ==

NLG is a Web-2.0 browser-based application that works in Firefox, IE, 
Safari and Konqueror.  It shows visitors the status of your network 
without giving them access to the Nagios CGIs, and starts at a "network 
summary" view with the options to drill down into servers (hosts) and 
their metrics (services).

NLG can easily be customised to match your company's look and feel, and 
is ideal for hosting companies who run Nagios.

For the full changelog for this version, please see the CHANGELOG.TXT 
file in the distribution, or visit:

http://arctic.andyshellam.eu/index.php?cmd=changelog&project=2&version=5

Please see the 'Support' section on the NLG project website to see the
best way to report bugs / request new features etc.

Thanks to everyone who's beta-tested over the last few months, to Dave 
Green for the Safari testing, and thanks to Mark Novak for the 
documentation.

To see where NLG is headed in the future, visit:

http://arctic.andyshellam.eu/index.php?cmd=roadmap

Enjoy!!


-- 
Andy Shellam
NetServe Support Team

the Mail Network
"an alternative in a standardised world"


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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] Accessing /dev/ttyUSB0 to send SMS

2007-01-22 Thread Andy Shellam (Mailing Lists)
Herman (ISTD) wrote:
> Dear all,
>
> I use gnokii to send Nagios notification. Gnokii need to access
> /dev/ttyUSB0 in order to deliver message to Handphone. At present, I
> need to set nagios user to root group in order to accomplish this task.
> If the nagios user is not in root group, it could not access
> /dev/ttyUSB0.
>
> Previously when nagios user is not in root group, I tried to do some
> workarounds such as : chown nagios /dev/ttyUSB0 but it didn't work. Is
> there's any way to access /dev/ttyUSB0 without setting nagios user as
> root group ?
> Thank you.
>   

Will "sudo" not accomplish this?


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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.cmd external

2007-01-22 Thread Andy Shellam (Mailing Lists)
Nedim Bicic wrote:
> Hi all, i have nagios 2.4
>  
> I need want to change and input settings via the web interface like 
> scheduale downtime etc, which i read that the external command does 
> this i enabled it in nagiod.cfg =1
> but i aslo found out that you need to create a nagios.cmd file and 
> give it directory permission , located in one of the folders that 
> keeps this log
>  
> my question is how do i create this file and make it point to external 
> command so when i do isue an extenal command on web interface
>  
> does anyone know how this is set ...manual doesnt tell me much from 
> what i already did

You shouldn't create it yourself - Nagios creates it as required.
Just make sure the "rw" directory has read/write permission to the 
Nagios user and start Nagios.  You should get a nagios.cmd file in there.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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

2007-01-19 Thread Andy Shellam (Mailing Lists)
Andreas Ericsson wrote:
> No, that's the TTL in the response packet, which will be "defult TTL of
> host sending ICMP_ECHOREPLY" minus "hops between pinged host and self".
> The TTL on the outgoing packets are, by default, 64 on *BSD and Linux,
> 128 on Windows and HP switches/routers, 255 on Cisco and 3Com stuff...
>
> 64 is usually as high a TTL as one can stomach for most practical
> reasons (I reach Australia with 36 hops from Sweden).
>
> On Linux, the default TTL can be accessed through
> /proc/sys/net/ipv4/ip_default_ttl
>   
Ah great, thanks for the info :)


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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

2007-01-19 Thread Andy Shellam (Mailing Lists)

> Most systems have 64 as default TTL, otherwise you're right. There are two
> "variants" of "Time to live exceeded". One is where the there are more hops
> to the target than the TTL set in the packet. This is known as "Time to live
> exceeded in transit".
>   

Hmmm something rang a bell when you've said 64, however I've just got a 
completely different answer to both of our theories!
On Windows, the TTL is set to 127, on my FreeBSD 6.1 box it's set to 
246, and on Fedora 5 it's 243.

The TTL displayed in the ping output, is this the same TTL as what we're 
both referring to?


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Event Handlers

2007-01-19 Thread Andy Shellam (Mailing Lists)
Please please please don't forgot to copy your responses to the list!

Yep Nagios is executing your service handler (or at least trying to.)
Try executing your command from an SSH console as the Nagios user.

Andy.


edalB wrote:
> This is what I see in the log file
>
> Jan 19 15:21:18 nagios-0 nagios: SERVICE ALERT:
> imap-1.rba.ispafrica.net;HTTP;CRITICAL;SOFT;1;Connection refused
> Jan 19 15:21:18 nagios-0 nagios: SERVICE EVENT HANDLER:
> imap-1.rba.ispafrica.net;HTTP;CRITICAL;SOFT;1;restart-httpd
>
> And I do have it enabled in my nagios.cfg config file
>
> Regards
>
> On 1/19/07, Andy Shellam (Mailing Lists)
> <[EMAIL PROTECTED]> wrote:
>> Are event handlers enabled for this service?
>> Do they show up as executed in the log file when your HTTP service goes
>> down?
>>
>>
>> edalB wrote:
>> > Hi all.
>> >
>> > I have created a event handler as a test to see how it works. The hard
>> > part I have done.
>> >
>> > I created a ssh key on on the nagios server. I tested that I am able
>> > to connect via ssh over to the other server working 100% fine.
>> >
>> > I then next tested my ssh connection using my ssh key to execute the
>> > sudo apache2 restart on the other server all worked 100%.
>> >
>> > So in thury all is working nicely from command line.
>> >
>> > The command line command I am using is.
>> >
>> > /usr/bin/ssh -p 222 -i /home/nagios/.ssh/id_dsa [EMAIL PROTECTED] sudo
>> > /etc/init.d/apache2 restart
>> >
>> > So what I did was I then added a extra line in my host
>> >
>> > define service{
>> >use local-service
>> >
>> >host_name   imap-1.rba.ispafrica.net
>> >service_description   HTTP
>> >event_handler   restart-httpd
>> >check_command  check_http
>> >}
>> >
>> > And the command
>> >
>> >
>> > define command{
>> > command_namerestart-httpd
>> > command_line/usr/bin/ssh -p 222 -i
>> > /home/nagios/.ssh/id_dsa [EMAIL PROTECTED] sudo
>> > /etc/init.d/apache2 res
>> > tart
>> > }
>> >
>> > So now nagios still does not want to execute my command
>> >
>> > Any advice would be appriciated.
>> >
>> > Thanks
>> >
>> > 
>> - 
>>
>> > Take Surveys. Earn Cash. Influence the Future of IT
>> > Join SourceForge.net's Techsay panel and you'll get the chance to 
>> share your
>> > opinions on IT & business topics through brief surveys - and earn cash
>> > 
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV 
>>
>> > ___
>> > 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
>> >
>> > >
>> >
>> >
>>
>>
>> -- 
>> Andy Shellam
>> NetServe Support Team
>>
>> the Mail Network
>> "an alternative in a standardised world"
>>
>> p: +44 (0) 121 288 0832/0839
>> m: +44 (0) 7818 000834
>>
>>
>
> !DSPAM:37,45b0d09e137101451594761!
>
>

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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

2007-01-19 Thread Andy Shellam (Mailing Lists)
"Time to live exceeded" is an error response from a router/intermediate 
host during a Ping/traceroute - I think it usually means that a packet 
has exceeded its "max hops" count, so if you're getting this error, 
chances are it's encountered a loop somewhere as I'm sure the default 
TTL is 128 hops (I could be wrong though.)

"Plugin timed out after 10 seconds" means the plugin didn't get a 
response back from any router within 10 seconds.

Andy.

Riahi Taieb wrote:
> HI ,
>
> I'd like to know the difference between : "Time to live exceeded" and 
> "Plugin timed out after 10 seconds" in the check_host_alive command
>
> Thx
>
> -- 
> Riahi Taieb
>
> !DSPAM:37,45b0cf3b137101178362045!
> 
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> !DSPAM:37,45b0cf3b137101178362045!
>   
> 
>
> ___
> 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
>
> !DSPAM:37,45b0cf3b137101178362045!
>   


-- 
Andy Shellam
NetServe Support Team

the Mail Network
"an alternative in a standardised world"

p: +44 (0) 121 288 0832/0839
m: +44 (0) 7818 000834


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Event Handlers

2007-01-19 Thread Andy Shellam (Mailing Lists)
Are event handlers enabled for this service?
Do they show up as executed in the log file when your HTTP service goes 
down?


edalB wrote:
> Hi all.
>
> I have created a event handler as a test to see how it works. The hard
> part I have done.
>
> I created a ssh key on on the nagios server. I tested that I am able
> to connect via ssh over to the other server working 100% fine.
>
> I then next tested my ssh connection using my ssh key to execute the
> sudo apache2 restart on the other server all worked 100%.
>
> So in thury all is working nicely from command line.
>
> The command line command I am using is.
>
> /usr/bin/ssh -p 222 -i /home/nagios/.ssh/id_dsa [EMAIL PROTECTED] sudo
> /etc/init.d/apache2 restart
>
> So what I did was I then added a extra line in my host
>
> define service{
>use local-service
>
>host_name   imap-1.rba.ispafrica.net
>service_description   HTTP
>event_handler   restart-httpd
>check_command  check_http
>}
>
> And the command
>
>
> define command{
> command_namerestart-httpd
> command_line/usr/bin/ssh -p 222 -i
> /home/nagios/.ssh/id_dsa [EMAIL PROTECTED] sudo
> /etc/init.d/apache2 res
> tart
> }
>
> So now nagios still does not want to execute my command
>
> Any advice would be appriciated.
>
> Thanks
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> 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
>
> !DSPAM:37,45b0cbd1137101304915882!
>
>
>   


-- 
Andy Shellam
NetServe Support Team

the Mail Network
"an alternative in a standardised world"

p: +44 (0) 121 288 0832/0839
m: +44 (0) 7818 000834


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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] Monitoring question

2007-01-17 Thread Andy Shellam (Mailing Lists)
Formoso, Travis wrote:
>>> I shut down the httpd - however the service did not restart auto -
>>>   
> so
>   
>> the handler is not working. Any thing I can try or did wrong?
>> 
>> Have you tried running the "restart-httpd" command as the Nagios user
>> from the console?
>> 
>
> Always a good suggestion.
>
> I never was able to run anything as the Nagios user. I tried to su nagios and 
> got: The account is currently not available.
>   
If your Nagios user's shell is set to /sbin/nologin (good practice) 
that's why.  So use "sudo" not "su."  You need to be reading your 
Operating System's "sudo" and "sudoers" man page to learn how to grant 
passwordless access to a user to run commands - the default 
"/etc/sudoers" file has an example of how to do this. 

You will need to add "sudo" at the beginning of your command in Nagios - 
e.g. "sudo /usr/local/nagios/libexec/eventhandler.."
> I ran ./check-httpd as root and when I typed that in - nothing happened.
>   
The command is usually "check_http" and requires the relevant parameters 
(website address to check, status code to cause an error on etc.)
It's basically checking to see that a visitor to a website would get a 
"valid" http response from your server - if httpd is not running, this 
won't happen and the Nagios check will fail.

Run "/usr/local/nagios/libexec/check_http -h" for more info (substitute 
Nagios plugins path as appropriate.)

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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] Monitoring question

2007-01-17 Thread Andy Shellam (Mailing Lists)
Marc Powell wrote:
>> the handler is not working. Any thing I can try or did wrong?
>> 
>> Have you tried running the "restart-httpd" command as the Nagios user
>> from the console?
>> 
>
> Always a good suggestion.
>
>   
>> Also, on my server Apache (2.2) takes roughly 3-4 seconds to start up,
>> and it looks like Nagios doesn't provide any delay between running the
>> event handler, and the subsequent check if httpd's running.
>> 
>
> Yes, there is a delay between the event_handler running and the next
> check for services at least. Whatever retry_check_interval is set to is
> the time nagios will wait to check again after executing the
> event_handler. Travis's retry_check_interval appears to be 1 minute (60
> seconds).
>   

Ah, yes, sorry I was reading the Nagios log from bottom-to-top instead 
of top-to-bottom (don't ask why!  It's been a long day!)
Noting that, you can see the delay clearly - good to know! :)

Andy.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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] Monitoring question

2007-01-17 Thread Andy Shellam (Mailing Lists)
Formoso, Travis wrote:
>> OK I will try to give it the check_http check and see if it works when I > > 
>> bring down the httpd.
>> 
>
> Here is what I have now: (I added the event handler to http)
>
> # http
> define service{
>  usegeneric-service
>
>  host_name  
> www.blueslate.net,prpc,mars.blueslate.net,localhost
>  service_descriptionHTTP
>  is_volatile0
>  check_period   24x7
>  max_check_attempts 3
>  event_handler  restart-httpd
>  normal_check_interval  3
>  retry_check_interval   1
>  contact_groups bssadmins
>  notification_interval  60
>  notification_period24x7
>  notification_options   w,u,c,r
>  check_command  check_http!guest:guest
> }
>
> Here is the output of the log file:
>
> [1169048695] SERVICE ALERT: localhost;HTTP;CRITICAL;SOFT;1;Connection refused
> [1169048695] SERVICE EVENT HANDLER: 
> localhost;HTTP;CRITICAL;SOFT;1;restart-httpd
> [1169048755] SERVICE ALERT: localhost;HTTP;CRITICAL;SOFT;2;Connection refused
> [1169048755] SERVICE EVENT HANDLER: 
> localhost;HTTP;CRITICAL;SOFT;2;restart-httpd
> [1169048815] SERVICE ALERT: localhost;HTTP;CRITICAL;HARD;3;Connection refused
> [1169048815] SERVICE NOTIFICATION: 
> tformoso;localhost;HTTP;CRITICAL;notify-by-email;Connection refused
> [1169048815] SERVICE EVENT HANDLER: 
> localhost;HTTP;CRITICAL;HARD;3;restart-httpd
>
> I shut down the httpd - however the service did not restart auto - so the 
> handler is not working. Any thing I can try or did wrong?
>   

Have you tried running the "restart-httpd" command as the Nagios user 
from the console?
Also, on my server Apache (2.2) takes roughly 3-4 seconds to start up, 
and it looks like Nagios doesn't provide any delay between running the 
event handler, and the subsequent check if httpd's running.

If the command works OK, try adding a "sleep for 5 seconds" command 
(e.g. "sleep 5" for bash) to your event handler script after Apache has 
started.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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] Defining different notification behavior for the same service on different hosts

2007-01-17 Thread Andy Shellam (Mailing Lists)
As part of the "hackery" I would have the first (live) service have all 
options set, and the second (test-bed) service simply "use" the first 
service as a template, and override the "notifications_enabled" setting 
(and obviously the host too.)  That way you really only have one service 
to change should you need to.


Andreas Ericsson wrote:
> Scott Greenman wrote:
>   
>> I can't any way to have the same service on two hosts have different
>> notification rules.  Am I missing anything?
>>  
>> Say you have two hosts, 'A' and 'B'.  The service 'S' is defined as existing 
>> on
>> both hosts. 
>>  
>> If 'S' goes down on 'A', I want notifications sent.  If 'S' goes down on 
>> 'B', I
>> don't want any notifications sent.  
>>  
>> If I set the 'notifications_enabled' directive on the service to either on or
>> off, it's wrong for one host or the other.
>>  
>> If I set the 'notifications_enabled' directive on the two hosts, this only
>> affects host notifications, it seems to have no effect on service 
>> notifications
>> on those hosts.
>>  
>> To get what I want, It seems I'd have to create two services, one with
>> 'notifications_enabled' set to 1 and one with it set to 0 (zero).  
>>  
>> That would be a real pain because most of my services would have to be
>> duplicated this way.  We run one group of machines as our 'production'
>> environment where notifications are turned on and another group of machines 
>> as a
>> 'test' environment where notifications are turned off.  Both of these are
>> monitored by the same nagios server and both run the same set of services.
>>  
>> Unless someone can suggest an alternative, I am planning on having
>> notifications turned on for both environments, and add filtering in the 
>> script
>> defined as the 'service_notification_commands' for the contacts. This has the
>> down side that Nagios will show I sent notifications to both hosts, when 
>> some of
>> those notifications will have been filtered out by my script.
>>  
>> Any help or ideas would be greatly appreciated.
>>  
>> 
>
> Sounds sensible. Since the two services really have different options 
> defined, you can't keep them as one service without hackery. If the 
> hackery lets you maintain configuration in a very simple manner I'd say 
> it's worth it. Otherwise I'd go with creating two services.
>
>   


-- 
Andy Shellam
NetServe Support Team

the Mail Network
"an alternative in a standardised world"

p: +44 (0) 121 288 0832/0839
m: +44 (0) 7818 000834


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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] Monitoring question

2007-01-16 Thread Andy Shellam (Mailing Lists)
Formoso, Travis wrote:
> Hi guys,
>
> When monitoring services - I wanted to know if and when a service goes 
> down - is their a script to run that would try to bring the service 
> back up automatically? I wanted to know if nagios went this far. 
> Thanks a lot.
There are event handlers which, according to the docs, will run a 
command to try and recover the service before sending a notification, 
but I haven't (yet) implemented them, so you'd have to have a look at 
the manual.  You'd need to write the script yourself, it's impossible 
for Nagios to know how to bring a service up, or even if it was the 
service that had failed and not an underlying problem, such as networking.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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] Sending Notifications on Soft (from Passive Checks)

2007-01-16 Thread Andy Shellam (Mailing Lists)
Hugo van der Kooij wrote:
> On Tue, 16 Jan 2007, Brian A. Seklecki wrote:
>
>   
>> Nevermind -- just Submit 3 passive service checks and the state
>> transitions from Soft -> Hard;
>>
>> What a PITA from the web interface.  A macro would be great; a checkbox.
>> 
>
> Wouldn't this be related to the default retry counter? If you set the 
> retry counter to 1 will it change the amount of passive check results one 
> has to submit?
>
> Haven't tried anything but just thinking out loud.
>
> Hugo.
>   

Ah, hadn't seen your reply Hugo before I replied - yep that's basically 
what I've suggested.
My system currently has a retry of 1 for each service, and when you 
submit a passive check through the web interface, it does result in a 
HARD state as opposed to SOFT - as expected.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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] Sending Notifications on Soft (from Passive Checks)

2007-01-16 Thread Andy Shellam (Mailing Lists)
Set a maximum attempts to 1 in your service definitions, then any change 
in state results in a HARD state.



Brian A. Seklecki wrote:
> Whenver the CGI submits passive check results; the state transition is 
> always "SOFT".
>
> If you submit a "Critical" down passive result, you then get "SERVICE 
> ALERT" as state "SOFT", which does not result in actually exec'ing the 
> CONTACT commands.
>
> Is there any way to make these external command result result in "HARD"?
>
>
> [1168966519] EXTERNAL COMMAND: 
> PROCESS_SERVICE_CHECK_RESULT;NCCluster04;Foo Web Cluster Health 
> Check;2;TestPagers|TestPagers
>
> [1168966525] SERVICE ALERT: NCCluster04;Foo Web Cluster Health 
> Check;CRITICAL;SOFT;1;TestPagers
>
> TIA,
>
> l8*
>   -lava (Brian A. Seklecki - Pittsburgh, PA, USA)
>  http://www.spiritual-machines.org/
>
> "...from back in the heady days when "helpdesk" meant nothing, "diskquota"
> meant everything, and lives could be bought and sold for a couple of pages
> of laser printout - and frequently were."
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> 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
>
> !DSPAM:37,45ad1505137103131262399!
>
>
>   


-- 
Andy Shellam
NetServe Support Team

the Mail Network
"an alternative in a standardised world"

p: +44 (0) 121 288 0832/0839
m: +44 (0) 7818 000834


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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_smb

2007-01-16 Thread Andy Shellam (Mailing Lists)
Create one service definition per share.
You could do, for each extra share:

define service {
use SMB
service_description SMB2
check_command check_disk_smb!backups!guest
}

You could then set up a dependency of the extra shares on the main share 
so if the SMB service fails you won't get a notification for each 
additional share.
Only one check_command per service/host is processed and it's the last 
one in the list - hence why you're only seeing the backup share being 
checked.

Andy.

Formoso, Travis wrote:
>
> I am trying to set up monitoring on more than one share on our file 
> server – here is my script
>
>  
>
> # smb
>
> define service{
>
>  usegeneric-service
>
>  
>
>  host_name  linuxdev1
>
>  service_descriptionSMB
>
>  is_volatile0
>
>  check_period   24x7
>
>  max_check_attempts 3
>
>  normal_check_interval  1
>
>  retry_check_interval   1
>
>  contact_groups bssadmins
>
>  notification_interval  120
>
>  notification_period24x7
>
>  notification_options   w,u,c,r
>
>  check_command  check_disk_smb!public!guest
>
>  check_command  check_disk_smb!backups!guest
>
> }
>
>  
>
> However it only is monitoring the backups – is their a way to set it 
> up so it can monitor all shares on this server?
>
>
> This e-mail and any files transmitted with it are for the sole use of 
> Blue Slate Solutions and the intended recipient(s) and may contain 
> confidential and privileged information. If you are not the intended 
> recipient, please contact the sender by reply e-mail and destroy all 
> copies of the original message. Any unauthorized review, use, 
> disclosure, dissemination, forwarding, printing or copying of this 
> email or any action taken in reliance on this e-mail is strictly 
> prohibited and may be unlawful.
>
> !DSPAM:37,45ad148e137101336215360!
> 
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> !DSPAM:37,45ad148e137101336215360!
>   
> 
>
> ___
> 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
>
> !DSPAM:37,45ad148e137101336215360!
>   


-- 
Andy Shellam
NetServe Support Team

the Mail Network
"an alternative in a standardised world"

p: +44 (0) 121 288 0832/0839
m: +44 (0) 7818 000834


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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-users Digest, Vol 8, Issue 23

2007-01-16 Thread Andy Shellam (Mailing Lists)

> Thanks alot andy and everyone else who chipped in.Now how do i enable it
> so that i can receive sms notifications?
>   

http://nagios.sourceforge.net/docs/2_0/notifications.html
http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#host
http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#contact
http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#contactgroup
http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#service

To send a regular e-mail:

1. You need to create a command that will send an e-mail (with the 
relevant host/service information and states.)
2. You need to create a contact to receive the e-mail, and assign that 
contact to a contact group.
3. You need to configure the contact to use your command created in (1) 
for host and service notifications.
4. You need to set the notification group of your host/service to the 
contact group you created in (2).
5. You need to set any additional options for the notification.

To send an SMS:

You need an e-mail-to-SMS provider (www.aql.com, www.textanywhere.net 
etc) who will give you an e-mail such as 
@smsprovider.com.
You need to use that e-mail address in your contact definition.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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] Plugin issue

2007-01-16 Thread Andy Shellam (Mailing Lists)
Dmitriy Kirhlarov wrote:
> On Mon, Jan 15, 2007 at 07:56:47AM +0300, [EMAIL PROTECTED] wrote:
>
>   
>> Hallo thanks so much for your time.However the command is still timing out
>> and giving me the same error.Here is my command definition in the hosts
>> 
>
> 1. Try to run command manualy. 
> 2. Check your host with "ping" command. Host alive?
> 3. What your operation system? AFAIR, FreeBSD port have special patch
> for check_ping.
>   
FYI, the standard plugins distribution (built from source) works fine 
for me on FreeBSD 6.1.




-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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] Plugin issue

2007-01-15 Thread Andy Shellam (Mailing Lists)
[EMAIL PROTECTED] wrote:
>> Don't forget to copy the mailing list in so others can chip in and help.
>> 
Read the above line again!!
> HI Andy am kinda confused here: when you say i insert the values
> "2000,25%" to the $ARG1$ and $ARG2$ respectively do you mean that i should
> insert them in the check_ping command defination or what??
> Kindly explain!
> Thanks
>   
OK there are a few ways of doing it - in your current definition, you 
need something like this "2000,25%" in anything that uses your 
check_ping command - i.e. host, service, whatever.
I'll show you an example using a host definition.

Firstly, the way you're doing it:

define command {
 command_namecheck_ping
 command_line$USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c 
$ARG2$ -p 5
}

You need to be passing, for example, 2000,25% as $ARG1$ and, for 
example, 4000,50% as $ARG2$.
So, your object definition (in this example, host) will need to be as 
follows:

define host {
...
check_commandcmd-Ping!2000,25%!4000,50%
...
}

Your check_ping command will then turn out to be something like: 
"/usr/local/nagios/libexec/check_ping -H 127.0.0.1 -w 2000,25% -c 
4000,50% -p 5"

The second way is the way I'm doing it at the moment.
The check_ping command:

define command {
command_namecmd-Ping
command_line$USER1$/check_ping -p 3 -t 10 -4 -H $ARG1$ 
-w $ARG2$,$ARG3$% -c $ARG4$,$ARG5$%
}

The object definition:

define host {
...
check_commandcmd-Ping!$HOSTADDRESS$!1000!20!2000!50
...
}

As you can see, a few more arguments need to be passed from the object, 
but you can override any of the thresholds for one particular object.

Another way is simply to "hard-code" the values in your command, and 
have no arguments passed in from the object.

The command:

define command {
command_namecmd-Ping
command_line$USER1$/check_ping -p 3 -t 10 -4 -H 
$HOSTADDRESS$ -w 2000,25% -c 4000,50%
}

The object:

define host {
...
check_commandcmd-Ping
...
}

Hopefully this clears things up - but *don't forget to copy the mailing 
list in* to your replies - hit "Reply to all" in your mailer and it'll 
sort it out for you.

-- 
Andy Shellam
NetServe Support Team

the Mail Network
"an alternative in a standardised world"



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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] Interval setup

2007-01-13 Thread Andy Shellam (Mailing Lists)
Along with the usual "read the manual" comment ;) ...

-
Timing Interval Length

This is the number of seconds per "unit interval" used for timing in the 
scheduling queue, re-notifications,
etc. "Units intervals" are used in the object configuration file to 
determine how often to run a
service check, how often of re-notify a contact, etc.

Format: interval_length=
-

Your directive should therefore be "interval_length=60"

This is from the Nagios 2.x manual btw.

Andy.


Daniel wrote:
> Guten Tag Daniel,
>
> am Samstag, 13. Januar 2007 um 19:25 schrieben Sie:
>
>   
>> Guten Tag Rob Blake,
>> 
>
>   
>> am Samstag, 13. Januar 2007 um 13:30 schrieben Sie:
>> 
>
>
>   
>>> In your nagios.cfg, what is the timing_interval set to? Taken from the main
>>> Nagios docs:
>>>   
>
>   
>>> **"This is the number of seconds per "unit interval" used for timing in the
>>> scheduling queue, re-notifications, etc. "Units intervals" are used in the
>>> object configuration file to determine how often to run a service check, how
>>> often of re-notify a contact, etc."
>>>   
>
>   
>> i cant find anythink about that:
>> 
>
>   
>> [ »timing_interval« not found ] in nagios.cfg
>> 
>
>   
>> I will try it with that command ;)
>> 
>
>
>
> Error in configuration file '/usr/local/nagios/etc/nagios.cfg' - Line 132 
> (UNKNOWN VARIABLE)
>
> ***> One or more problems was encountered while processing the config 
> files
>
> Was set to: timeing_interval=60 bzw timing_interval=60
>
> both entries wont work...
>
>   


-- 
Andy Shellam
NetServe Support Team

the Mail Network
"an alternative in a standardised world"

p: +44 (0) 121 288 0832/0839
m: +44 (0) 7818 000834


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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] Plugin issue

2007-01-13 Thread Andy Shellam (Mailing Lists)
[EMAIL PROTECTED] wrote:
> you mean the one in the command.cfg file?its like this:
> define command{
> command_namecheck_ping
> command_line$USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c
> $ARG2$ -p 5
> }
> well the vales are being passed to the variables declared so am wondering
> where the issue might be.
> thanks
>
>   
Don't forget to copy the mailing list in so others can chip in and help.

What are the values of $ARG1$ and $ARG2$ being passed in from your 
host/service definition?
For that to work your host/service definition must include something 
like "2000,25%" for those two arguments.

Andy

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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] Plugin issue

2007-01-13 Thread Andy Shellam (Mailing Lists)
What's the command line of your check_ping command (as defined in Nagios?)

The correct syntax is:
/path/to/nagios/plugins/check_ping -H  -w 2000,25% -c 4000,50%

whereby  is the IP of the machine to ping, 2000 is the 
round-trip time (in ms) to generate a warning, 25% is the packet-loss 
amount to generate a warning, and ditto for the critical.

Also note there's a bug in the check_ping whereby if the "critical" 
parameters are incorrect, it says the error is with the "warning" 
parameters - so check that's not the case as well.  And you do need the 
percent signs ;)

Andy.

[EMAIL PROTECTED] wrote:
> Hi guys am still running nagios and now there,s this error am getting with
> the check_ping command. It is giving me an error that:
> check_ping: %s: Warning threshold must be integer or percentage!
> Am wondering why that is the case and yet am able to ping th machine.
> am running red hat 9 AS and nagios version 2.6.
> Your assistance will highly be appreciated.
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> 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
>
> !DSPAM:37,45a892bd137106816226190!
>
>
>   


-- 
Andy Shellam
NetServe Support Team

the Mail Network
"an alternative in a standardised world"

p: +44 (0) 121 288 0832/0839
m: +44 (0) 7818 000834


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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] no libexec after intalling plugins!

2007-01-10 Thread Andy Shellam (Mailing Lists)
Sam Fraser wrote:
> Hello All, could someone please advise me where I've gone wrong
> installing my plugins?
>
> The problem is with this installation step
>
> Install the compiled plugins and plugin scripts with the following
> command:
>
> make install
>
> The installation procedure will attempt to place the plugins in a
> 'libexec/' subdirectory in the base directory you specified with
> the --prefix argument to the configure script.
>
> The problem is that this folder never turns up in
The problem is you've got a lot of MySQL errors - have you specified the
correct path to MySQL in the ./configure statement?
(--with-mysql=/usr/local/mysql).

> make[1]: *** [check_mysql-check_mysql.o] Error 1
> make[1]: Leaving directory `/root/nagios-plugins-1.4.5/plugins'
> make: *** [install-recursive] Error 1
This indicates the "make" operation failed - which is why you don't have
a libexec directory yet. Sort your MySQL errors out and you should be OK
then.

Regards

Andy

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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] email help

2007-01-10 Thread Andy Shellam (Mailing Lists)
Jim Perrin wrote:
> On 1/10/07, Nedim Bicic <[EMAIL PROTECTED]> wrote:
>   
>> Hey how do you get the notifications to work and send emails it doesnt work
>> i put in my email address in the conacts.cfg file i restart the server where
>> nagios is installed but i dont get any emails
>> 
>
> Read The Fine Manual. Check your MTA for proper configuration and
> email handling. Ensure nagios is configured correctly.
>
>
>
>   
AFAIK Nagios doesn't include a send e-mail command - you need to 
configure your own Nagios command to pipe the required details to your MTA.
And yes - read the manual ;)


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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] FreeBSD could not get group entry for Nagios

2007-01-10 Thread Andy Shellam (Mailing Lists)
Personally I prefer to compile from source as I know exactly what it 
does and where things go.

I sorted it anyway, it was basically a config item that still read 
"nagios_group=nagios" - I changed that to "nagios_group=localservice" 
and the warning went away.

Thanks

Andy

Dan Langille wrote:
> On 9 Jan 2007 at 22:36, Andy Shellam (Mailing Lists) wrote:
>
>   
>> Hi Dan,
>>
>> Thanks for the reply (answers inline below)
>>
>> Dan Langille wrote:
>> 
>>> Did you install via ports?
>>>   
>>>   
>> No - downloaded 2.6 and compiled from source.
>> 
>>> Are you missing this?
>>>
>>> $ grep nagios /etc/group
>>> nagios:*:1005:
>>>   
>>>   
>> I don't think so - I configured Nagios with:
>>
>> ./configure --prefix=/usr/local/nagios --with-cgiurl=/nagios/cgi-bin 
>> --with-htmurl=/nagios --with-nagios-user=nagios 
>> --with-nagios-group=localservice --with-command-group=webservice
>>
>> so this should say the Nagios group is "localservice" - right?
>> The Nagios user has "localservice" set as it's default group, and it's 
>> also a member of "webservice" - the command group.
>> 
>
> Sorry, I don' t know.  I always use the port, and let it do what it 
> does.  :(  By using the port, it trivializes upgrades and removals,  
> and makes security notices easier (e.g. security/portaudit).
>
> cd /usr/port/net-mgtm/nagios
> make install
>
> pretty easy... and if you need/want special config items, you can 
> still do them, plus you get the benefits of packaging.
>
> My recommendation: remove what you installed, and use the port.
>
>   


-- 
Andy Shellam
NetServe Support Team

the Mail Network
"an alternative in a standardised world"

p: +44 (0) 121 288 0832/0839
m: +44 (0) 7818 000834


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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] Plugin error text confusion

2007-01-09 Thread Andy Shellam (Mailing Lists)
After playing around with Nagios 2.6 and the latest plugins (1.4.5) I 
found a little inaccuracy in the text displayed in the check_ping plugin.

For the plugin, consider the command:

/usr/local/nagios/libexec/check_ping -p 3 -t 10 -4 -H 10.100.9.201 -w 
1000,20% -c 2000,50%

This works.

Take the percentage sign off the "critical" indicator so it reads "-c 
2000,50" - and you get:

check_ping: %s: Warning threshold must be integer or percentage!

... displayed in the plugin status for Nagios.

However the error is on the "critical" threshold not the warning threshold.

Got my head scratching for a tad!

-- 
Andy Shellam
NetServe Support Team

the Mail Network
"an alternative in a standardised world"


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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] FreeBSD could not get group entry for Nagios

2007-01-09 Thread Andy Shellam (Mailing Lists)
Robert Hajime Lanning wrote:
> 
>   
>> For info - this warning does not prevent Nagios from starting up -
>> however if you add a group called "nagios" it goes away.
>> Perhaps there's a bug in this/other versions where it checks for the
>> specific group called "nagios" and not the one used in the configure
>> script - or is this a "feature?" ;)
>> 
>
> in nagios.cfg:
>
> # NAGIOS GROUP
> # This determines the effective group that Nagios should run as.
> # You can either supply a group name or a GID.
>
> nagios_group=nagios
>
>   
Ah brill! Thanks for that Robert :)
I hadn't thought about checking the config - I thought that's what the 
configure option was for :S

-- 
Andy Shellam
NetServe Support Team

the Mail Network
"an alternative in a standardised world"



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
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


  1   2   >