Re: [Nagios-users] Apache2 permission denied error

2006-08-17 Thread Marc Powell


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of frank
> Sent: Thursday, August 17, 2006 5:44 PM
> To: Rusch, Daniel
> Cc: nagios-users@lists.sourceforge.net
> Subject: Re: [Nagios-users] Apache2 permission denied error
> 
> 
> SELinux. I don't have a specific resolution for you, but that should
point
> you in the right direction.
> 
> Curiously, a search for "selinux" or "forbidden" comes up blank in the
> Nagios FAQ. This is a VERY common configuration error that I see on
the
> list at least 3 times a month. Perhaps a relevant FAQ can be crafted?


I agree. I had asked if anyone that was familiar with SELinux was
interested in submitting a FAQ entry but I don't see any bites.

There are some posts in the archive with various policies but I haven't
used SELinux enough to know what's a good policy.

--
Marc

-
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] BUG? Segfault & coredump with scheduled downtime, downtime scheduled horked

2006-08-17 Thread karl . kornel

Dear fellow Nagios users,

        Ever
since downloading my first Nagios tarball (2.0rc2), and continuing to version
2.5, I have been noticing a big problem with downtimes.  It appears
that if there are more than a couple of downtimes scheduled, Nagios will
crash partway through the list.  This is a really big problem, for
several reasons:  I've written a tool that automatically schedules
recurring downtime.  It integrated into the Nagios web site, and anyone
with access to schedule downtime for a host/service can schedule recurring
downtime, and see the other recurring downtimes that have been scheduled
by their fellow contacts.  I want to release it publicly, but I can't
finish testing because of Nagios crashing (several downtimes a day == one
crash per day).  On a different note, this (Nagios) was the first
open-source tool to become widespread in our IT department.  I'd like
Nagios to continue to gain acceptance in our group (most of whom are SAP/Oracle/Windows/etc.),
and this problem doesn't help.

        I
don't want to look like I'm barging in and saying "Fix this!",
so I brought some stuff along with me, and I did what I could to diagnose
the problem.  First of all, I have two core files.  When I installed
Nagios, I used the 'install-unstripped' target, so these core files, and
my copy of Nagios, include debugging symbols.  Here's what the backtrace
looks like from the most recent coredump:

(gdb) bt
#0  0x2b20dd20 in strlen () from /lib/libc.so.6
#1  0x0042866f in hashfunc2 (
    name1=0x44e4f697 ,
    name2=0x4e202c69 ,
    hashslots=1024) at utils.c:4285
#2  0x00437d15 in find_service (
    host_name=0x44e4f697 ,
    svc_desc=0x4e202c69 )
    at ../common/objects.c:5016
#3  0x004518cf in handle_scheduled_downtime
(temp_downtime=0xfe6500)
    at ../common/downtime.c:311
#4  0x0042130e in handle_timed_event
(event=0x722320) at events.c:1289
#5  0x00421893 in event_execution_loop
() at events.c:964
#6  0x0040eeb2 in main (argc=Variable
"argc" is not available.
) at nagios.c:710
(gdb) 

        I tried to look through the code, and
the coredump, and the most I could determine is this:  It looks like
the scheduled downtime event struct was corrupted at some point during
its life in the high-priority event queue (for one thing, between the time
Nagios was started and the time it crashed, no more than 10 downtimes had
ever been scheduled, yet the downtime ID is 81, and no downtime had ever
been scheduled that was 2072 hours long):

(gdb) frame 3
#3  0x004518cf in handle_scheduled_downtime
(temp_downtime=0xfe6500)
    at ../common/downtime.c:311
311              
      svc=find_service(temp_downtime->host_name,temp_downtime->service_description);
(gdb) print *temp_downtime
$1 = {type = 0, host_name = 0x44e4f697 ,
  service_description = 0x4e202c69 , entry_time = 0, start_time = 2334111869775642625,
end_time = 0,
  fixed = 6488400, triggered_by = 0, duration
= 7459712, downtime_id = 81,
  author = 0x2aaa ,
  comment = 0x44e4f6bf , comment_id = 0,
  is_in_effect = 0, start_flex_downtime = 0,
incremented_pending_downtime = 1,
  next = 0x0}
(gdb) 

        So,
I've got two coredumps.  When the second coredump took place, and
before restarting Nagios, I tarballed the entire Nagios directory, including
all log files, cache files, etc..  I don't know if the object cache
or downtimes data files would be of any help, but I've got them in storage.

        So,
what else?  Well, I've looked at the event log for today, and I did
notice something weird:  My recurring downtime scheduler schedules
the day's downtimes every day at midnight, writing commands out to the
Nagios command socket.  The event logs record receiving 6 SCHEDULE_SVC_DOWNTIME
commands, which is correct.  The first downtime started correctly,
and ended correctly.  However (here's the weird part), the other downtimes
started at the exact same moment the first downtime ended.  Even more
weird, the second, third, and fourth downtimes ended when they should have
started.  Here's all of the downtime-related entries from the event
log, with the time values converted into readable dates/times:

[2006-08-15 00:11:29] EXTERNAL COMMAND: SCHEDULE_SVC_DOWNTIME;szlnmail1.shenzhen;CPU;[Tue
Aug 15 17:55:00 2006];[Tue Aug 15 19:30:00 2006];1;0;0;kornelak;Weekday
backup.
[2006-08-15 00:11:29] EXTERNAL COMMAND: SCHEDULE_SVC_DOWNTIME;shenzhendc1.shenzhen;CPU;[Tue
Aug 15 14:55:00 2006];[Tue Aug 15 16:00:00 2006];1;0;0;kornelak;Daily backup
[2006-08-15 00:11:29] EXTERNAL COMMAND: SCHEDULE_SVC_DOWNTIME;westborod2.westboro;CPU;[Tue
Aug 15 14:55:00 2006];[Tue Aug 15 16:00:00 2006];1;0;0;kornelak;Daily Backup
[2006-08-15 00:11:29] EXTERNAL COMMAND: SCHEDULE_SVC_DOWNTIME;westborom2.westboro;CPU;[Tue
Aug 15 15:55:00 2006];[Tue Aug 15 18:30:00 2006];1;0;0;kornelak;Daily backup
[2006-08-15 00:11:29] EXTERNAL COMMAND: SCHEDULE_SVC_DOWNTIME;hillsborom1.hillsboro;CPU;[Tue
Aug 15 22:5

Re: [Nagios-users] Apache2 permission denied error

2006-08-17 Thread frank

SELinux. I don't have a specific resolution for you, but that should point 
you in the right direction.

Curiously, a search for "selinux" or "forbidden" comes up blank in the 
Nagios FAQ. This is a VERY common configuration error that I see on the 
list at least 3 times a month. Perhaps a relevant FAQ can be crafted?

-f


On Thu, 17 Aug 2006, Rusch, Daniel wrote:

> Date: Thu, 17 Aug 2006 16:24:00 -0600
> From: "Rusch, Daniel" <[EMAIL PROTECTED]>
> To: nagios-users@lists.sourceforge.net
> Subject: [Nagios-users] Apache2 permission denied error
> 
> All,
>
>
>
> I read the manual, the archives, googled etc.
>
>
>
> System:
>
>
>
> Apache2 standard Suse 9 enterprise sp3 install
>
>
>
> We installed nagios 2.5 as per install instructions (BTW I've been using
> nagios since netsaint days and have installed nagios dozens of times)
>
>
>
> Apache runs as wwwrun
>
>
>
> When we try to access the web interface we get the following error:
>
>
>
>
> Access forbidden!
>
>
> You don't have permission to access the requested object. It is either
> read-protected or not readable by the server.
>
> If you think this is a server error, please contact the webmaster
>  .
>
>
> Error 403
>
>
> Checking the apache log file I see:
>
>
>
> [Thu Aug 17 16:08:14 2006] [error] [client 10.30.150.117] (13)Permission
> denied: file permissions deny server access:
> /usr/local/nagios/share/index.html
>
>
>
>
>
> The permissions on the share directory are (and all parent directories
> too, ownership of parent directories change of course):
>
>
>
> drwxrwxr-x   9 nagios nagios  360 2006-08-17 09:27 share
>
>
>
> permissions on the index.html file:
>
>
>
> -rw-rw-r--  1 nagios nagios   658 2006-08-17 09:15 index.html
>
>
>
>
>
>
>
> relevant groups:
>
>
>
> nagios:!:1001:nagios,wwwrun
>
>
>
> The Alias in apache for the share directory is:
>
>
>
> Alias /nagios /usr/local/nagios/share/
>
> 
>
>Options None
>
>AllowOverride AuthConfig
>
>#AllowOverride None
>
>Order allow,deny
>
>Allow from all
>
> 
>
>
>
> As can be seen I have tried changing the AllowOverirde directive to no
> avail
>
>
>
>
>
> Thoughts?
>
>
>
> Dan
>
>
>
>
>
>

-
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] Apache2 permission denied error

2006-08-17 Thread Rusch, Daniel








All,

 

I read the manual, the archives, googled etc.

 

System:  

 

Apache2 standard Suse 9 enterprise sp3 install

 

We installed nagios 2.5 as per install instructions (BTW I’ve
been using nagios since netsaint days and have installed nagios dozens of
times)



Apache runs as wwwrun

 

When we try to access the web interface we get the following
error:

 

Access forbidden!

You don't have permission to access the requested
object. It is either read-protected or not readable by the server. 

If you think this is a server error, please contact
the webmaster. 

Error 403

Checking the apache log file I see:

 

[Thu Aug 17 16:08:14 2006] [error]
[client 10.30.150.117] (13)Permission denied: file permissions deny server
access: /usr/local/nagios/share/index.html

 

 

The permissions on the share directory are (and all parent directories
too, ownership of parent directories change of course):

 

drwxrwxr-x   9 nagios nagios  360
2006-08-17 09:27 share  

 

permissions on the index.html file:

 

-rw-rw-r--  1 nagios nagios   658
2006-08-17 09:15 index.html

 

 

 

relevant groups:

 

nagios:!:1001:nagios,wwwrun

 

The Alias in apache for the share directory is:

 

Alias /nagios
/usr/local/nagios/share/



    Options None

    AllowOverride AuthConfig

    #AllowOverride None

    Order allow,deny

    Allow from all



 

As can be seen I have tried changing
the AllowOverirde directive to no avail

 

 

Thoughts?

 

Dan

 

 






-
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] check_http can't follow redirect properly, no cookies!

2006-08-17 Thread Steve Shipway
> > Check out the WebInject Nagios plugin.  I have it setup to check 
> > several pages in a secure website and it handles cookies.   
> It could 
> > save you the hassle of creating your our script.

We use webinject here for precisely this reason, and it works well.  It
also supports MRTG format output if you need that.

I had also written a homegrown plugin that parses the web page to pull
out session IDs from URLs and do a bit more magic, but the latest
webinject seems to do everything itself now.

Steve

-
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] Good Linux and Mac Client

2006-08-17 Thread Maxwell,Brady
SNMP will work on both and NRPE works well for Linux boxes. Not sure
about Macs but since OSX is sitting on a free bsd Kernel (I think). NRPE
might work well on OSX as well. Not sure.
There is also NSCA which I have not had a lot of luck with except when
configuring remote nagios systems to report into a central Nagios Box,
or distributed nagios implementations.

Links to NRPE and NSCA are provided at the Nagios site

http://www.nagios.org/download/

>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:nagios-users-
>>[EMAIL PROTECTED] On Behalf Of Vasiliy Boulytchev
>>Sent: Thursday, August 17, 2006 2:22 PM
>>To: Nagios Users Mailinglist
>>Subject: Re: [Nagios-users] Good Linux and Mac Client
>>
>>
>>OH lol!  No NO NO.  I meant for the clients running on the hosts being
>>monitored :)
>>
>>I need a client for our Linux environment and our Mac environment, to
>>report CPU, mem, disk, swap...  and possibly authenticate with the
>>monitoring server...
>>
>>Thanks
>>
>>hehe
>>
>>Vasiliy Boulytchev
>>[EMAIL PROTECTED]
>>
>>
>>
>>Hugo van der Kooij wrote:
>>> On Thu, 17 Aug 2006, Vasiliy Boulytchev wrote:
>>>
>>>
 Ladies and Gents,
 Can someone please suggest a good Linux, and a good Mac client
for
 Nagios?  I have been using nagios-statd (python), however, it does
not
 support any authentication mechanism :(

>>>
>>> I would recommend firefox. Perhaps thunderbird for the alert
messages.
>>>
>>> But perhaps you think of something completely different as 'client'
of
>>> Nagios. But it would be wise to explain how you define a 'client'.
>>>
>>> Hugo.
>>>
>>>
>>
>>--
---
>>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=1216
42
>>___
>>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


Re: [Nagios-users] detect 2 DHCP Servers on network?

2006-08-17 Thread Harkisoon, Sharan W.
I don't mean to be off topic, but rogue DHCP servers can be easily
avoided using switches that support layer-3 ACL's to block dhcp server
replies from user ports on switches that support it (all new cisco
switches including the 2950's/3550's/37xx's and even smc,dlink,allied
telesyn support this).  A cisco feature called "dhcp snooping" also
prevents rogue dhcp servers.  Food for thought.  

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Carl
Friend
Sent: Thursday, August 17, 2006 1:17 PM
To: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] detect 2 DHCP Servers on network?


   Hari Sekhon wrote:

> [...] raise the warning code if more than 1 offer was received [...]

   The pitfall here is that if you're running redundant DHCP servers
it's possible to receive two offers.  ISC DHCPD can function in this
way.  A regular client would see the first offer, accept it, and ignore
the second one; the monitoring script would have to be aware of the
network architecture to account for that.

   One thing you could do is record the IP address(es) of your real DHCP
server(s) and if you see anything come in from *anywhere else* raise the
alarm.

+--+---+
| Carl Richard Friend (UNIX Sysadmin)  | Natick, Massachusetts |
| Minicomputer Collector / Enthusiast  |01760-2098 |
| mailto:[EMAIL PROTECTED] +---+
| http://users.rcn.com/crfriend/museum |  ICBM: 42:18N 71:21W  |
+--+---+


-
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


Re: [Nagios-users] Good Linux and Mac Client

2006-08-17 Thread Mark Hennessy
GIYF
http://nrpe.darwinports.com/

--
 Mark Hennessy


> -Original Message-
> From: Vasiliy Boulytchev [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, August 17, 2006 2:54 PM
> To: Mark Hennessy
> Cc: nagios-users@lists.sourceforge.net
> Subject: Re: [Nagios-users] Good Linux and Mac Client
> 
> 
> Thanks Mark,
> How about the Macintosh agents? :)
> 
> THANKS
> 
> Vasiliy Boulytchev
> [EMAIL PROTECTED]
> 
> 
> 
> Mark Hennessy wrote:
> > Why not just use NRPE?
> >
> > --
> >  Mark Hennessy
> >
> >   
> >> -Original Message-
> >> From: [EMAIL PROTECTED] 
> >> [mailto:[EMAIL PROTECTED] On Behalf 
> >> Of Vasiliy Boulytchev
> >> Sent: Thursday, August 17, 2006 1:58 PM
> >> To: nagios-users@lists.sourceforge.net
> >> Subject: [Nagios-users] Good Linux and Mac Client
> >>
> >>
> >> Ladies and Gents,
> >> Can someone please suggest a good Linux, and a good Mac 
> >> client for 
> >> Nagios?  I have been using nagios-statd (python), however, it 
> >> does not 
> >> support any authentication mechanism :(
> >>
> >> THANK YOU VERY MUCH! :)  
> >>
> >> Vasiliy Boulytchev
> >> [EMAIL PROTECTED]
> >>
> >>
> >>
> >> --
> >> ---
> >> 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


Re: [Nagios-users] Good Linux and Mac Client

2006-08-17 Thread Marc Powell


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of Hugo van der Kooij
> Sent: Thursday, August 17, 2006 1:49 PM
> To: Nagios Users Mailinglist
> Subject: Re: [Nagios-users] Good Linux and Mac Client
> 
> On Thu, 17 Aug 2006, Vasiliy Boulytchev wrote:
> 
> > OH lol!  No NO NO.  I meant for the clients running on the hosts
being
> > monitored :)
> 
> They are (sometimes) refered to as agents. Which make it much clearer
what
> way you want to go.
> 
> However these agents are as diverse as the things you want to monitor.

After all that and still a net NULL answer? Some kind of pointer would
have been useful to justify the chatter.

--
Marc 

-
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] Good Linux and Mac Client

2006-08-17 Thread Vasiliy Boulytchev

Thanks Mark,
How about the Macintosh agents? :)

THANKS

Vasiliy Boulytchev
[EMAIL PROTECTED]



Mark Hennessy wrote:
> Why not just use NRPE?
>
> --
>  Mark Hennessy
>
>   
>> -Original Message-
>> From: [EMAIL PROTECTED] 
>> [mailto:[EMAIL PROTECTED] On Behalf 
>> Of Vasiliy Boulytchev
>> Sent: Thursday, August 17, 2006 1:58 PM
>> To: nagios-users@lists.sourceforge.net
>> Subject: [Nagios-users] Good Linux and Mac Client
>>
>>
>> Ladies and Gents,
>> Can someone please suggest a good Linux, and a good Mac 
>> client for 
>> Nagios?  I have been using nagios-statd (python), however, it 
>> does not 
>> support any authentication mechanism :(
>>
>> THANK YOU VERY MUCH! :)  
>>
>> Vasiliy Boulytchev
>> [EMAIL PROTECTED]
>>
>>
>>
>> --
>> ---
>> 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


Re: [Nagios-users] Good Linux and Mac Client

2006-08-17 Thread Hugo van der Kooij
On Thu, 17 Aug 2006, Vasiliy Boulytchev wrote:

> OH lol!  No NO NO.  I meant for the clients running on the hosts being
> monitored :)

They are (sometimes) refered to as agents. Which make it much clearer what
way you want to go.

However these agents are as diverse as the things you want to monitor.

Hugo.

-- 
I hate duplicates. Just reply to the relevant mailinglist.
[EMAIL PROTECTED]   http://hvdkooij.xs4all.nl/
Don't meddle in the affairs of magicians,
for they are subtle and quick to anger.

-
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] Good Linux and Mac Client

2006-08-17 Thread Marc Powell


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of Vasiliy Boulytchev
> Sent: Thursday, August 17, 2006 1:22 PM
> To: Nagios Users Mailinglist
> Subject: Re: [Nagios-users] Good Linux and Mac Client
> 
> 
> OH lol!  No NO NO.  I meant for the clients running on the hosts being
> monitored :)
> 
> I need a client for our Linux environment and our Mac environment, to
> report CPU, mem, disk, swap...  and possibly authenticate with the
> monitoring server...

No client exists that I know of nor is there really a need for one.
check_nrpe or check_by_ssh + whatever interesting plugins you want to
run on the remote machine (check_disk, check_proc, check_swap, etc, etc,
etc) is the way to go. I definitely know the plugins compile under linux
and almost certainly compile under OSX.

--
Marc

-
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] Good Linux and Mac Client

2006-08-17 Thread Mark Hennessy
Why not just use NRPE?

--
 Mark Hennessy

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Vasiliy Boulytchev
> Sent: Thursday, August 17, 2006 1:58 PM
> To: nagios-users@lists.sourceforge.net
> Subject: [Nagios-users] Good Linux and Mac Client
> 
> 
> Ladies and Gents,
> Can someone please suggest a good Linux, and a good Mac 
> client for 
> Nagios?  I have been using nagios-statd (python), however, it 
> does not 
> support any authentication mechanism :(
> 
> THANK YOU VERY MUCH! :)  
> 
> Vasiliy Boulytchev
> [EMAIL PROTECTED]
> 
> 
> 
> --
> ---
> 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


Re: [Nagios-users] host check anly after critical service check

2006-08-17 Thread Tory M Blue
On 8/17/06, Marc Powell <[EMAIL PROTECTED]> wrote:
> -Original Message-> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED]] On Behalf Of Danil Kutepkin> Sent: Thursday, August 17, 2006 3:50 AM> To: 
nagios-users@lists.sourceforge.net> Subject: [Nagios-users] host check anly after critical service check>> Hello nagios-users,>>   How to make a host active check (ping) only after a failed service
>   check (ping)?I don't follow either. Some hosts you may only want to set up a service "PING", but you want the host to also be checked so that you get a single HOST failure, vs a service failure if the host is down.
So setup the host with a check_command   check-host-alive line, and then add a service for the same hostdefine service{     use generic-service    host_name  hostname
    service_description Ping    check_command   check-host-aliveIf the service check fails, it will force the hose to do a host check, and since well it's probably down, you should only receive a host critical/unreachable alert.
Sorry if your not really talking this basic, then your going to have to provide a bit more information.You could also force the host to actually be checked like a service by enabling active checks every x minutes (create a new host template)

-
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] Good Linux and Mac Client

2006-08-17 Thread Jim Perrin
> OH lol!  No NO NO.  I meant for the clients running on the hosts being
> monitored :)

Still not overly clear, but I assume you mean like nrpe

> I need a client for our Linux environment and our Mac environment, to
> report CPU, mem, disk, swap...  and possibly authenticate with the
> monitoring server...

snmp works fine.

-- 
During times of universal deceit, telling the truth becomes a revolutionary act.
George Orwell

-
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] How to get stdout from event handlers into Nagiosemail messages?

2006-08-17 Thread Kelly Alexander

I was hoping that the event handler ran first, and then the
notice was sent out.  Guess that's not the way it works.

Since it's not possible I won't worry about it anymore and will
just write something that notifies me from the handler itself. 


---
Kelly Alexander
Skyrider Corporation 
-Original Message-
From: Steve Shipway [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 15, 2006 9:01 PM
To: Kelly Alexander; nagios-users@lists.sourceforge.net
Subject: RE: [Nagios-users] How to get stdout from event handlers into
Nagiosemail messages?

>   Hi, I'm running Nagios 2.5 and my question is: is there any way
to 
> capture the stdout of an event handler and get it into the email 
> Nagios sends out?

If you think about it, this must be impossible.

Since the event handler is called at the same time as the notifications,
the output (if any) is not avaiable when the notifications are queued as
the event handler has not yet run.

The only way I can see to do this is to code an email sender into your
event handler script.

You could fudge it by creating a dummy service for the same host that
uses freshness to immediately reset to OK and has a count of 1, and then
have your event handler send a passive alert (containing the output
text) to this service.  The dummy service (which has the same contacts
as the main service) then sends out a separate alert to the contacts
with this information.  You could probably even create a generic
eventhandler wrapper script to do this.

Steve

-
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] Good Linux and Mac Client

2006-08-17 Thread Vasiliy Boulytchev

OH lol!  No NO NO.  I meant for the clients running on the hosts being 
monitored :)

I need a client for our Linux environment and our Mac environment, to 
report CPU, mem, disk, swap...  and possibly authenticate with the 
monitoring server...

Thanks

hehe

Vasiliy Boulytchev
[EMAIL PROTECTED]



Hugo van der Kooij wrote:
> On Thu, 17 Aug 2006, Vasiliy Boulytchev wrote:
>
>   
>> Ladies and Gents,
>> Can someone please suggest a good Linux, and a good Mac client for
>> Nagios?  I have been using nagios-statd (python), however, it does not
>> support any authentication mechanism :(
>> 
>
> I would recommend firefox. Perhaps thunderbird for the alert messages.
>
> But perhaps you think of something completely different as 'client' of
> Nagios. But it would be wise to explain how you define a 'client'.
>
> Hugo.
>
>   

-
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] out of office

2006-08-17 Thread Martin Schwarz

I will be out of the office starting  15.08.2006 and will not return until
28.08.2006.

I am traveling and will have no access to my mail. In urgent cases call me
on my mobile ( +491728491717 ) or contact Matthias in munich ( -116 )


-
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] Good Linux and Mac Client

2006-08-17 Thread Hugo van der Kooij
On Thu, 17 Aug 2006, Vasiliy Boulytchev wrote:

> Ladies and Gents,
> Can someone please suggest a good Linux, and a good Mac client for
> Nagios?  I have been using nagios-statd (python), however, it does not
> support any authentication mechanism :(

I would recommend firefox. Perhaps thunderbird for the alert messages.

But perhaps you think of something completely different as 'client' of
Nagios. But it would be wise to explain how you define a 'client'.

Hugo.

-- 
I hate duplicates. Just reply to the relevant mailinglist.
[EMAIL PROTECTED]   http://hvdkooij.xs4all.nl/
Don't meddle in the affairs of magicians,
for they are subtle and quick to anger.

-
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] Good Linux and Mac Client

2006-08-17 Thread Vasiliy Boulytchev

Ladies and Gents,
Can someone please suggest a good Linux, and a good Mac client for 
Nagios?  I have been using nagios-statd (python), however, it does not 
support any authentication mechanism :(

THANK YOU VERY MUCH! :)  

Vasiliy Boulytchev
[EMAIL PROTECTED]



-
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] nmap

2006-08-17 Thread Hari Sekhon




Marc Powell wrote:

  
  
  
-Original Message-
From: [EMAIL PROTECTED] [mailto:nagios-users-
[EMAIL PROTECTED]] On Behalf Of Brian Loe
Sent: Thursday, August 17, 2006 11:01 AM
Cc: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] nmap

Couldn't you write a script that diffs nmap results and report "0" if
diff doesn't come back with anything and "1" otherwise? nmap could be
cronned to run hourly - or so - and the results diffed with a baseline
file resulting in the code which nagios can cat... or something.

Sorry, not a developer but this seems easy enough for someone who is,
and I'd like to have it myself. :)

On 8/17/06, Hari Sekhon <[EMAIL PROTECTED]> wrote:


  Robin-David Hammond%KB3IEN wrote:
  
  
Has anyone used nagios to track changes in the open ports on

  

  
  remote
  
  
hosts?

  
  

/nagios-plugins-1.4.3/contrib. --

[contrib]$ ./check_nmap.py --help

check_nmap plugin for Nagios
Copyright (c) 2000 Jacob Lundqvist ([EMAIL PROTECTED])
License: GPL
Version: 1.21

Usage: check_ports [-v|--debug] [-H|--host host] [-V|--version]
[-h|--help]
   [-o|--optional port1,port2,port3 ...] [-r|--range
range]
   [-p|--port port1,port2,port3 ...] [-t|--timeout
timeout]

Options:
 -h = help (this screen ;-)
 -v = debug mode, show some extra output
 -H host= host to check (name or IP#)
 -o ports   = optional ports that can be open (one or more),
  no warning is given if optional port is closed
 -p ports   = ports that should be open (one or more)
 -r range   = port range to feed to nmap.  Example: :1024,2049,3000:7000
 -t timeout = timeout in seconds, default 10
 -V = Version info

This plugin attempts to verify open ports on the specified host.

If all specified ports are open, OK is returned.
If any of them are closed, WARNING is returned (except for optional
ports)
If other ports are open, CRITICAL is returned

If possible, supply an IP address for the host address,
as this will bypass the DNS lookup.
--
Marc

-
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

  

good idea to have this python wrapper to nmap plugin. 

I was actually thinking more of one pass for the whole network alerting
you to what has changed. I think I will write this in bash to start off
with since that's the fastest language to do this kind of stuff in.

I can see how this does fit in very well with the nagios way of doing
things since the macros can be used to automate part of it, but you
still need to specify all the ports that should be open.

I think I may give this a python plugin try when I have some spare
time...


Hari



-
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] detect 2 DHCP Servers on network?

2006-08-17 Thread Hari Sekhon




Carl Friend wrote:

 Hari Sekhon wrote:

  
  
[...] raise the warning code if more than 1 offer was received [...]

  
  
   The pitfall here is that if you're running redundant DHCP servers
it's possible to receive two offers.  ISC DHCPD can function in this
way.  A regular client would see the first offer, accept it, and
ignore the second one; the monitoring script would have to be aware
of the network architecture to account for that.

   One thing you could do is record the IP address(es) of your real
DHCP server(s) and if you see anything come in from *anywhere else*
raise the alarm.
  

that it what I previously mentioned as a good idea to implement, making
sure that the from address matches. This could easily be supplied as a
command line flag.

The other idea regarding the number of offers is also taken into
account, in the same way you should be able to specify how many offers
you should receive with another command line flag. Wish I knew C (a
lot) better, I'd add the code and send it back... If nobody has done it
by next year then I will re-learn C properly and write it.

-h


-
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] check_http can't follow redirect properly, no cookies!

2006-08-17 Thread Hari Sekhon
David Price wrote:
> Hari Sekhon wrote:
>> Ton Voon wrote:
>>> No cookies in check_http, I'm afraid. It would be a nightmare 
>>> enhance it to hold sessions.
>>>
>>> If you are good with perl, look at WWW::Mechanize. This allows you 
>>> to store cookies and interact with a website as if you were a 
>>> browser. We use this to login to monitor a betting site and retrieve 
>>> funds information.
>>>
>>> On 17 Aug 2006, at 12:18, Hari Sekhon wrote:
>>>
 Hi,
I've got check_http doing a login which works fine and I'm using 
 the --onredirect=follow to make sure I can fetch the secured page 
 it's redirected to.

 The problem is that when the page is fetched it is fetched without 
 the previously supplied credentials and therefore I get a login 
 page instead of the page within the secure area.

 I really really need to get the page in the secure area. Does 
 anybody know how to make it store and use the credentials for the 
 redirect. It's obviously not using it's cookie and I've looked 
 through the --help but it makes not mention of cookies...

>>>
>>> http://www.altinity.com
>>> T: +44 (0)870 787 9243
>>> F: +44 (0)845 280 1725
>>> Skype: tonvoon
>>>
>>>
>>
>> that's a real pain, but I understand. Curl can actually deal with 
>> cookies so I may end up rustling up a quick script in bash with that, 
>> I've already done some cli tests with it and it works nicely, but 
>> longer term I think I'll have to brush up my perl (I know the very 
>> basics) and do something with Mechanize. I think that this will be a 
>> good opportunity for me to do something useful in Perl.
>>
>> Thanks for the pointer.
>>
>> Hari
>>
>>   
>
> Check out the WebInject Nagios plugin.  I have it setup to check 
> several pages in a secure website and it handles cookies.   It could 
> save you the hassle of creating your our script.
>
> http://www.webinject.org/plugin.html
>
> David Price
>
>
thanks, looks like I'm back to the drawing board, I guess I'll just fix 
the broken dependency (it's a bug) and then give webinject a try


-h



-
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] detect 2 DHCP Servers on network?

2006-08-17 Thread Carl Friend
   Hari Sekhon wrote:

> [...] raise the warning code if more than 1 offer was received [...]

   The pitfall here is that if you're running redundant DHCP servers
it's possible to receive two offers.  ISC DHCPD can function in this
way.  A regular client would see the first offer, accept it, and
ignore the second one; the monitoring script would have to be aware
of the network architecture to account for that.

   One thing you could do is record the IP address(es) of your real
DHCP server(s) and if you see anything come in from *anywhere else*
raise the alarm.

+--+---+
| Carl Richard Friend (UNIX Sysadmin)  | Natick, Massachusetts |
| Minicomputer Collector / Enthusiast  |01760-2098 |
| mailto:[EMAIL PROTECTED] +---+
| http://users.rcn.com/crfriend/museum |  ICBM: 42:18N 71:21W  |
+--+---+

-
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] nmap

2006-08-17 Thread Brian Loe
On 8/17/06, Marc Powell <[EMAIL PROTECTED]> wrote:

> You sure can, $HOSTADDRESS$. The recommendation was from the plugin
> author but what he means is use an ip in your host{} definition's
> host_address field instead of it's DNS name.
>
> --
> Marc

Again, I need to look at my configs. I'm thinking that in my host{}
definitions I have the dns name for "name" (perhaps thats the entry)
and IP for hostaddress... Definately going to have to check this out.

-
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] nmap

2006-08-17 Thread Maxwell,Brady

On 8/17/06, Marc Powell <[EMAIL PROTECTED]> wrote:

> /nagios-plugins-1.4.3/contrib. --

>Well, there you go. :) I'm new to Nagios so perhaps this too is a
>stupid question, but when you configure a check, can't you use a
>variable for the host in the check command line? I guess I need to go
>look at my config files again


Brian you are correct it is best practice to use the $HOSTADDRESS$ in
your check commands. Not doing so would require that you would need to
write a check command specific to each host and service. I am no expert
on this and have not used the plugin in the mentioned in this thread.

But I think maybe Marc is trying to say put the IP address in the
hosts.cfg when you define a host so you do not run into an issue with
DNS. So a host should be defined like this:
define host{
host_name   linux1.companyname.com
hostgroups  lin-servers
alias   Linux Server 1
address 192.168.125.15
check_command   check-host-alive
max_check_attempts  3
check_period24x7
contact_groups  localadmins
notification_interval 120
notification_period 24x7
notification_optionsd,u,r,f
}

Assuming linux1 is a http server I would write the check command for
this machine... well its straight out of the sample config.

# 'check_http' command definition
define command{
command_namecheck_http
command_line$USER1$/check_http -H $HOSTADDRESS$
}



-
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] nmap

2006-08-17 Thread Marc Powell


> -Original Message-
> From: Brian Loe [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 17, 2006 11:22 AM
> To: Marc Powell
> Cc: nagios-users@lists.sourceforge.net
> Subject: Re: [Nagios-users] nmap
> 
> On 8/17/06, Marc Powell <[EMAIL PROTECTED]> wrote:
> 
> > /nagios-plugins-1.4.3/contrib. --
> >
> > [contrib]$ ./check_nmap.py --help
> >
> > check_nmap plugin for Nagios
> > Copyright (c) 2000 Jacob Lundqvist ([EMAIL PROTECTED])
> > License: GPL
> > Version: 1.21
> 
> > If possible, supply an IP address for the host address,
> > as this will bypass the DNS lookup.
> > --
> > Marc
> >
> 
> Well, there you go. :) I'm new to Nagios so perhaps this too is a
> stupid question, but when you configure a check, can't you use a
> variable for the host in the check command line? I guess I need to go
> look at my config files again

You sure can, $HOSTADDRESS$. The recommendation was from the plugin
author but what he means is use an ip in your host{} definition's
host_address field instead of it's DNS name.

--
Marc

-
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] nmap

2006-08-17 Thread Brian Loe
On 8/17/06, Marc Powell <[EMAIL PROTECTED]> wrote:

> /nagios-plugins-1.4.3/contrib. --
>
> [contrib]$ ./check_nmap.py --help
>
> check_nmap plugin for Nagios
> Copyright (c) 2000 Jacob Lundqvist ([EMAIL PROTECTED])
> License: GPL
> Version: 1.21

> If possible, supply an IP address for the host address,
> as this will bypass the DNS lookup.
> --
> Marc
>

Well, there you go. :) I'm new to Nagios so perhaps this too is a
stupid question, but when you configure a check, can't you use a
variable for the host in the check command line? I guess I need to go
look at my config files again

-
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] nmap

2006-08-17 Thread Marc Powell


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of Brian Loe
> Sent: Thursday, August 17, 2006 11:01 AM
> Cc: nagios-users@lists.sourceforge.net
> Subject: Re: [Nagios-users] nmap
> 
> Couldn't you write a script that diffs nmap results and report "0" if
> diff doesn't come back with anything and "1" otherwise? nmap could be
> cronned to run hourly - or so - and the results diffed with a baseline
> file resulting in the code which nagios can cat... or something.
> 
> Sorry, not a developer but this seems easy enough for someone who is,
> and I'd like to have it myself. :)
> 
> On 8/17/06, Hari Sekhon <[EMAIL PROTECTED]> wrote:
> > Robin-David Hammond%KB3IEN wrote:
> > > Has anyone used nagios to track changes in the open ports on
remote
> hosts?


/nagios-plugins-1.4.3/contrib. --

[contrib]$ ./check_nmap.py --help

check_nmap plugin for Nagios
Copyright (c) 2000 Jacob Lundqvist ([EMAIL PROTECTED])
License: GPL
Version: 1.21

Usage: check_ports [-v|--debug] [-H|--host host] [-V|--version]
[-h|--help]
   [-o|--optional port1,port2,port3 ...] [-r|--range
range]
   [-p|--port port1,port2,port3 ...] [-t|--timeout
timeout]

Options:
 -h = help (this screen ;-)
 -v = debug mode, show some extra output
 -H host= host to check (name or IP#)
 -o ports   = optional ports that can be open (one or more),
  no warning is given if optional port is closed
 -p ports   = ports that should be open (one or more)
 -r range   = port range to feed to nmap.  Example: :1024,2049,3000:7000
 -t timeout = timeout in seconds, default 10
 -V = Version info

This plugin attempts to verify open ports on the specified host.

If all specified ports are open, OK is returned.
If any of them are closed, WARNING is returned (except for optional
ports)
If other ports are open, CRITICAL is returned

If possible, supply an IP address for the host address,
as this will bypass the DNS lookup.
--
Marc

-
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] check_http can't follow redirect properly, no cookies!

2006-08-17 Thread David Price
Hari Sekhon wrote:
> Ton Voon wrote:
>> No cookies in check_http, I'm afraid. It would be a nightmare enhance 
>> it to hold sessions.
>>
>> If you are good with perl, look at WWW::Mechanize. This allows you to 
>> store cookies and interact with a website as if you were a browser. 
>> We use this to login to monitor a betting site and retrieve funds 
>> information.
>>
>> On 17 Aug 2006, at 12:18, Hari Sekhon wrote:
>>
>>> Hi,
>>>I've got check_http doing a login which works fine and I'm using the 
>>> --onredirect=follow to make sure I can fetch the secured page it's 
>>> redirected to.
>>>
>>> The problem is that when the page is fetched it is fetched without the 
>>> previously supplied credentials and therefore I get a login page 
>>> instead 
>>> of the page within the secure area.
>>>
>>> I really really need to get the page in the secure area. Does anybody 
>>> know how to make it store and use the credentials for the redirect. 
>>> It's 
>>> obviously not using it's cookie and I've looked through the --help but 
>>> it makes not mention of cookies...
>>>
>>
>> http://www.altinity.com
>> T: +44 (0)870 787 9243
>> F: +44 (0)845 280 1725
>> Skype: tonvoon
>>
>>
>
> that's a real pain, but I understand. Curl can actually deal with 
> cookies so I may end up rustling up a quick script in bash with that, 
> I've already done some cli tests with it and it works nicely, but 
> longer term I think I'll have to brush up my perl (I know the very 
> basics) and do something with Mechanize. I think that this will be a 
> good opportunity for me to do something useful in Perl.
>
> Thanks for the pointer.
>
> Hari
>
>   

Check out the WebInject Nagios plugin.  I have it setup to check several 
pages in a secure website and it handles cookies.   It could save you 
the hassle of creating your our script.

http://www.webinject.org/plugin.html

David Price


-
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] nmap

2006-08-17 Thread Brian Loe
Couldn't you write a script that diffs nmap results and report "0" if
diff doesn't come back with anything and "1" otherwise? nmap could be
cronned to run hourly - or so - and the results diffed with a baseline
file resulting in the code which nagios can cat... or something.

Sorry, not a developer but this seems easy enough for someone who is,
and I'd like to have it myself. :)

On 8/17/06, Hari Sekhon <[EMAIL PROTECTED]> wrote:
> Robin-David Hammond%KB3IEN wrote:
> > Has anyone used nagios to track changes in the open ports on remote hosts?

-
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] nmap

2006-08-17 Thread Hari Sekhon
Robin-David Hammond%KB3IEN wrote:
> Has anyone used nagios to track changes in the open ports on remote hosts?
>
> I'm thinking that if the output of nmap changes one hour to the next that 
> something ought to be investigated.
>
> Sure it might be nothing, but might be a "OOh a root-kit! How Nice!" 
> moment.
>
>
> Robin-David Hammond KB3IEN
> +1 347 350 34 00
>
>
> -
> 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
>
>   

I have been thinking about this too. You could write a quick shell 
script to do this I guess, just take hourly reading and then diff them 
and warn if the port status has changed. Problem with this is that you 
can't really get the output cos nagios plugins are constrained to one 
line. Is there a good way to still get the output other than squashing 
it into one line? Would "stuff\nmorestuff" get around this if it's not 
immediately evaluated, but evaluated on the notify command? Or perhaps 
you could just output the whole thing normally and the web interface 
will take only the first line but the mail will show all lines?

Let me know what you come up with on this as I would also be very 
interested in doing this. Perhaps if we have an ongoing rolling 
discussion we could make this pretty good. I invite everyone to throw in 
their opinions and ideas on this


Hari

-
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] ARP

2006-08-17 Thread Robin-David Hammond%KB3IEN

I have a dumb-as-nails Motorola SIP adapter from  certain VoIP provider.

The think act closed on all tcp/udp ports and ignores ICMP echo request.

Mercifully the thing is hardwired to the nagios machine.

Anyone how a check_arp_tables script that will raise some kinda hell if 
the arp entry vanishes?


Robin-David Hammond KB3IEN
+1 347 350 34 00


-
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] nmap

2006-08-17 Thread Robin-David Hammond%KB3IEN

Has anyone used nagios to track changes in the open ports on remote hosts?

I'm thinking that if the output of nmap changes one hour to the next that 
something ought to be investigated.

Sure it might be nothing, but might be a "OOh a root-kit! How Nice!" 
moment.


Robin-David Hammond KB3IEN
+1 347 350 34 00


-
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] plugin timeout setting?

2006-08-17 Thread Dan Joseph
Guillaume wrote:
>> Is there a setting somewhere in the config for the plugin timeouts? 
>> We're getting some heavy traffic on a server and its timing out the 
>> plugins.  "CRITICAL - Plugin timed out after 10 seconds ".  I'd like to 
>> change that to 20 seconds if possible?
> 
> You have to change the timeout of the plugins in the check command.
> If the plugin is standard, the option is "-t"
> 
> And you have also to check the plugin execution timeout in the 
> nagios.cfg file. But by default the value is 60 secs for services and 30 
> for hosts.
> So it should be enough.

Thanks, that worked like a charm!

-- 

-Dan Joseph
System Administrator

-
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] plugin timeout setting?

2006-08-17 Thread Guillaume
Dan Joseph a écrit :
> Hi,
> 
> Is there a setting somewhere in the config for the plugin timeouts? 
> We're getting some heavy traffic on a server and its timing out the 
> plugins.  "CRITICAL - Plugin timed out after 10 seconds ".  I'd like to 
> change that to 20 seconds if possible?
> 

Hi,

You have to change the timeout of the plugins in the check command.
If the plugin is standard, the option is "-t"

And you have also to check the plugin execution timeout in the 
nagios.cfg file. But by default the value is 60 secs for services and 30 
for hosts.
So it should be enough.

Guillaume


-- 
Guillaume
E-mail: silencer__free-4ever__net
Blog: http://guillaume.free-4ever.net

Site: http://www.free-4ever.net

-
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] plugin timeout setting?

2006-08-17 Thread Dan Joseph
Hi,

Is there a setting somewhere in the config for the plugin timeouts? 
We're getting some heavy traffic on a server and its timing out the 
plugins.  "CRITICAL - Plugin timed out after 10 seconds ".  I'd like to 
change that to 20 seconds if possible?

-- 

-Dan Joseph
System Administrator

-
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] Check ping error code 139

2006-08-17 Thread Marc Powell


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of Ilia Anokhin
> Sent: Thursday, August 17, 2006 8:00 AM
> To: nagios-users@lists.sourceforge.net
> Subject: [Nagios-users] Check ping error code 139
> 
> Hi everyone.
> 
> I've faced a strange thing using nagios - not long after primary DNS
has
> gone down, check_ping began to return error code 139 (Return code 139
is
> out of bounds). Does any one know what was going on with it?

139 is a segfault I believe. Is the output of /bin/ping changing when
your primary DNS is down? Is it segfaulting. Have you tried running the
plugin manually when this is happing to see what's going on?

You might consider using check_icmp as it doesn't rely on /bin/ping for
processing.

--
Marc

-
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] check_http can't follow redirect properly, no cookies!

2006-08-17 Thread Hari Sekhon




Ton Voon wrote:
No cookies in check_http, I'm afraid. It would be a
nightmare enhance it to hold sessions.
  
  
  If you are good with perl, look at WWW::Mechanize. This allows
you to store cookies and interact with a website as if you were a
browser. We use this to login to monitor a betting site and retrieve
funds information.
  
  
  On 17 Aug 2006, at 12:18, Hari Sekhon wrote:
  
  
Hi,
   I've
got check_http doing a login which works fine and I'm using the 
-- to make sure I can
fetch the secured page it's 
redirected to.


The problem is that when the page is
fetched it is fetched without the 
previously supplied credentials and
therefore I get a login page instead 
of the page within the secure area.


I really really need to get the page in
the secure area. Does anybody 
know how to make it store and use the
credentials for the redirect. It's 
obviously not using it's cookie and I've
looked through the --help but 
it makes not mention of cookies...


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


that's a real pain, but I understand. Curl can actually deal with
cookies so I may end up rustling up a quick script in bash with that,
I've already done some cli tests with it and it works nicely, but
longer term I think I'll have to brush up my perl (I know the very
basics) and do something with Mechanize. I think that this will be a
good opportunity for me to do something useful in Perl. 

Thanks for the pointer.

Hari


-
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] host check anly after critical service check

2006-08-17 Thread Marc Powell


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of Danil Kutepkin
> Sent: Thursday, August 17, 2006 3:50 AM
> To: nagios-users@lists.sourceforge.net
> Subject: [Nagios-users] host check anly after critical service check
> 
> Hello nagios-users,
> 
>   How to make a host active check (ping) only after a failed service
>   check (ping)?

Nagios will only run a host check if a service on that host (any
defined) fails. This is a good thing. You can't make the host check
dependent on the failure of a specific check on that host (unless it's
the only service on that host). If that doesn't suit your purposes try
explaining what you want to accomplish better.

--
Marc 

-
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] check_http can't follow redirect properly, no cookies!

2006-08-17 Thread Ton Voon
No cookies in check_http, I'm afraid. It would be a nightmare enhance it to hold sessions.If you are good with perl, look at WWW::Mechanize. This allows you to store cookies and interact with a website as if you were a browser. We use this to login to monitor a betting site and retrieve funds information.On 17 Aug 2006, at 12:18, Hari Sekhon wrote:Hi,   I've got check_http doing a login which works fine and I'm using the -- to make sure I can fetch the secured page it's redirected to.The problem is that when the page is fetched it is fetched without the previously supplied credentials and therefore I get a login page instead of the page within the secure area.I really really need to get the page in the secure area. Does anybody know how to make it store and use the credentials for the redirect. It's obviously not using it's cookie and I've looked through the --help but it makes not mention of cookies...http://www.altinity.comT: +44 (0)870 787 9243F: +44 (0)845 280 1725Skype: tonvoon -
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] Check ping error code 139

2006-08-17 Thread Ilia Anokhin
Hi everyone.

I've faced a strange thing using nagios - not long after primary DNS has
gone down, check_ping began to return error code 139 (Return code 139 is
out of bounds). Does any one know what was going on with it?


-
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] check_http can't follow redirect properly, no cookies!

2006-08-17 Thread Hari Sekhon
Hi,
   I've got check_http doing a login which works fine and I'm using the 
--onredirect=follow to make sure I can fetch the secured page it's 
redirected to.

The problem is that when the page is fetched it is fetched without the 
previously supplied credentials and therefore I get a login page instead 
of the page within the secure area.

I really really need to get the page in the secure area. Does anybody 
know how to make it store and use the credentials for the redirect. It's 
obviously not using it's cookie and I've looked through the --help but 
it makes not mention of cookies...


Thanks for any help in advance.


Hari

-
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] Trouble creating dependencies

2006-08-17 Thread Nick Wales
Hi,

I'm having trouble creating dependencies on my fairly small scale  
nagios installation

I am monitoring our remote office, which has a DSL link and VPN  
between here and there. As its DSL and on occasion goes down I'm  
trying to get nagios to stop monitoring the fileservers over there too.

I have created my dependencies.cfg file in etc/ edited nagios.cfg so  
the dependencies file is being looked at.

As a start I'm just trying to get nagios to not look at the 'Check  
host down' service on one of the fileservers over there, so here is  
my initial dependency within dependencies.cfg

define servicedependency {
dependent_host_name fileserver
dependent_service_description   Check Host Alive
host_name   curtainroadgateway
service_description Check Host Alive
execution_failure_criteria  c
notification_failure_criteria   c
}


Everything is critical at the moment because the office is empty and  
the fileservers are off, also the dsl is disconnected, yet nagios  
continues to show critical for the fileserver.

When starting up nagios there are no errors.

Any ideas what the problem is?

Thanks

Nick

-
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] check_http --url and --string don't work together?

2006-08-17 Thread Hari Sekhon
Hari Sekhon wrote:
> I can't seem to use --url and --string together. Url seems to make it 
> not bother checking the string.
>
> First I test the --string works as follows:
>
> check_http -S -H www.somedomain.com --string=' 
> The Wrong Nonexistent Web Page...'
>
> which returns as expected. This is what I want to make sure it will 
> warn me if it isn't finding exactly what I expect.
>
> CRITICAL - string not found|time=0.210894s;;;0.00 size=6403B;;;0
>
>
> But if I do
>
> check_http -S -H www.somedomain.com --url="/some/path/" 
> --string=' The Wrong Nonexistent Web 
> Page...'
>
> I get
>
> OK - HTTP/1.1 302 Found - 0.110 second response time 
> |time=0.110347s;;;0.00 size=690B;;;0
>
>
> It doesn't check the string! Instead it just says that because some 
> page was directed to that everything must be ok... ie False Positive.
>
>
> The bigger picture:
>
> I am trying to do testing of an https login page and get into a 
> website. This requires that I log in via ssl and supply a username and 
> password. The problem is that the login page will redirect to 
> somewhere regardless of the result. If the login is successful you can 
> get the internal pages and if unsuccessful it redirects to another 
> login page. So I really need to get --url and --string working 
> together to check the actual html.
>
> I know there is webinject but I'd rather stick to check_http, it's 
> much more straight forward and webinject's dependencies failed to 
> install yesterday so I'd rather do this than bother fixing that just 
> to try it.
>
>
> Any ideas on getting this url and string business to work together?
>
>
> Hari
>

I thought this was because of the redirect so I went back to --help and 
found --onredirect so now when I do --onredirect=follow it works fine 
and complains about the string.

Sorted.


Hari

-
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] check_http --url and --string don't work together?

2006-08-17 Thread Hari Sekhon
I can't seem to use --url and --string together. Url seems to make it 
not bother checking the string.

First I test the --string works as follows:

check_http -S -H www.somedomain.com --string=' 
The Wrong Nonexistent Web Page...'

which returns as expected. This is what I want to make sure it will warn 
me if it isn't finding exactly what I expect.

CRITICAL - string not found|time=0.210894s;;;0.00 size=6403B;;;0


But if I do

check_http -S -H www.somedomain.com --url="/some/path/" --string=' The Wrong Nonexistent Web Page...'

I get

OK - HTTP/1.1 302 Found - 0.110 second response time 
|time=0.110347s;;;0.00 size=690B;;;0


It doesn't check the string! Instead it just says that because some page 
was directed to that everything must be ok... ie False Positive.


The bigger picture:

I am trying to do testing of an https login page and get into a website. 
This requires that I log in via ssl and supply a username and password. 
The problem is that the login page will redirect to somewhere regardless 
of the result. If the login is successful you can get the internal pages 
and if unsuccessful it redirects to another login page. So I really need 
to get --url and --string working together to check the actual html.

I know there is webinject but I'd rather stick to check_http, it's much 
more straight forward and webinject's dependencies failed to install 
yesterday so I'd rather do this than bother fixing that just to try it.


Any ideas on getting this url and string business to work together?


Hari

-
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] host check anly after critical service check

2006-08-17 Thread Danil Kutepkin
Hello nagios-users,

  How to make a host active check (ping) only after a failed service
  check (ping)?

-- 
Best regards,
 Danil  mailto:[EMAIL PROTECTED]


-
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] Daily status report?

2006-08-17 Thread rob . moss
What exactly is segfaulting?

You haven't provided much info to work with..

The script uses some basic Perl modules (libwwwperl) , so if there's
anything sefaulting it's related to your local box.

Make sure that you can run the reporting CGI's and Perl works, if not, you
need to fix them.




Internet
[EMAIL PROTECTED]@lists.sourceforge.net - 17/08/2006 08:55


Sent by:[EMAIL PROTECTED]



To:Nagios-users

cc:


Subject:Re: [Nagios-users] Daily status report?

Hi,

I cant get it work with nagios running on https, i get a segmentation
fault...
Any suggestions?


[EMAIL PROTECTED] wrote:
> Heh, i was about to suggest my Nagios Email reporter :-) but it seems
some
> kind soul did the work for me!
>
> Yeah.. use version 1.3.1
>
>
>
>
> Internet
> [EMAIL PROTECTED]@lists.sourceforge.net - 15/08/2006 17:50
>
>
> Sent by:[EMAIL PROTECTED]
>
>
>
> To:sun.jedi
>
> cc:Nagios-users
>
>
> Subject:Re: [Nagios-users] Daily status report?
>
> Marc,
>
> Have you looked on Nagios Exchange?  There is a project called Nagios
> Email Report that may be what you are looking for.  I haven't used it,
> so I can't make any claims on how well it works.  The link is
>
http://www.nagiosexchange.org/AddOn_Projects.22.0.html?&tx_netnagext_pi1[p_view]=640

>
>
> Hope that helps,

-
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



This message and any attachments (the "message") is 
intended solely for the addressees and is confidential. 
If you receive this message in error, please delete it and
immediately notify the sender. Any use not in accord with
its purpose, any dissemination or disclosure, either whole
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message.
BNP PARIBAS (and its subsidiaries) shall (will) not
therefore be liable for the message if modified. 

**

BNP Paribas Private Bank London Branch is authorised
by CECEI & AMF and is regulated by the Financial Services
Authority for the conduct of its investment business in
the United Kingdom.

BNP Paribas Securities Services London Branch is authorised 
by CECEI & AMF and is regulated by the Financial Services 
Authority for the conduct of its investment business in 
the United Kingdom.
  
BNP Paribas Fund Services UK Limited is authorised and 
regulated by the Financial Services Authority


-
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] Daily status report?

2006-08-17 Thread ThomasC.
Hi,

I cant get it work with nagios running on https, i get a segmentation 
fault...
Any suggestions?


[EMAIL PROTECTED] wrote:
> Heh, i was about to suggest my Nagios Email reporter :-) but it seems some
> kind soul did the work for me!
> 
> Yeah.. use version 1.3.1
> 
> 
> 
> 
> Internet
> [EMAIL PROTECTED]@lists.sourceforge.net - 15/08/2006 17:50
> 
> 
> Sent by:[EMAIL PROTECTED]
> 
> 
> 
> To:sun.jedi
> 
> cc:Nagios-users
> 
> 
> Subject:Re: [Nagios-users] Daily status report?
> 
> Marc,
> 
> Have you looked on Nagios Exchange?  There is a project called Nagios
> Email Report that may be what you are looking for.  I haven't used it,
> so I can't make any claims on how well it works.  The link is
> http://www.nagiosexchange.org/AddOn_Projects.22.0.html?&tx_netnagext_pi1[p_view]=640
> 
> 
> Hope that helps,

-
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