Re: [Nagios-users] check_http -s

2009-05-08 Thread Proskurin Kirill
Holger Weiss пишет:
> * Proskurin Kirill  [2009-05-08 19:52]:
>> ./check_http -v -H example.com -u /some.jsp -s=OKAY
> 
> Try "-s OKAY" or "--string=OKAY".

Thank you - it is works.
But last strange thing - check returns OK if I expect ANY letter of 
"OKAY" word.

./check_http -v -H example.com -u /some.jsp -s K  -- returns OK and so 
on. Bug?

-- 
Best regards,
Proskurin Kirill

--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] check_http -s

2009-05-08 Thread Proskurin Kirill
Holger Weiss wrote:
> * Proskurin Kirill  [2009-05-08 18:44]:
>> I try to add a check_http with expecting some word in a body.
>> But:
>>
>> ./check_http -v -H example.com -u /some.jsp -P -s=ERROR
> 
> In this command line, "-s=ERROR" will be interpreted as an argument to
> the "-P" option, see the "--help" output:

Ops! I missed what I post wrong command to list. Sorry.
I fix it but:

./check_http -v -H example.com -u /some.jsp -s=OKAY
GET /some.jsp HTTP/1.0
User-Agent: check_http/v2053 (nagios-plugins 1.4.13)
Connection: close
Host: example.com


http://example.com:80/some.jsp is 386 characters
STATUS: HTTP/1.1 200 OK
 HEADER 
Server: Apache-Coyote/1.1
Set-Cookie: JSESSIONID=C75D8239CF3F0C0D4FEF29DCD9316EBD; Path=/
Content-Type: text/html;charset=ISO-8859-1
Content-Length: 154
Date: Fri, 08 May 2009 15:51:01 GMT
Connection: close
 CONTENT 



Check



OKAY




HTTP CRITICAL - string not found|time=0.447721s;;;0.00 size=386B;;;0

-- 
Best regards,
Proskurin Kirill

--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] check_http -s

2009-05-08 Thread Proskurin Kirill
Sean McAfee wrote:
> Proskurin Kirill wrote:
>> Hello all.
>>
>> I try to add a check_http with expecting some word in a body.
>> But:
>>
>>
>> ./check_http -v -H example.com -u /some.jsp -P -s=ERROR
>>
>> BUT it must be ERROR - not ok.
>> What I do wrong?
> 
> The "-s=ERROR" is being POSTed because you're missing an argument for 
> -P, making Nagios interpret the rest as the required string for -P.

I do not understand you right...
I try to explain more detail.

On some site works some jsp what check inner logic of site and return in 
body OKEY or ERROR.

I what to make a check_http and IF i got in page body word "ERROR" - 
then make check critical IF in page body i got "OKEY" - return OK.

As I understand -s= - it is what I expect in page body.

Or I not understand it right? :-)

-- 
Best regards,
Proskurin Kirill

--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] check_http -s

2009-05-08 Thread Proskurin Kirill
Hello all.

I try to add a check_http with expecting some word in a body.
But:


./check_http -v -H example.com -u /some.jsp -P -s=ERROR

POST /some.jsp HTTP/1.0
User-Agent: check_http/v2053 (nagios-plugins 1.4.13)
Connection: close
Host: example.com
Content-Type: application/x-www-form-urlencoded
Content-Length: 8

-s=ERROR

http://example.com:80/some.jsp is 386 characters
STATUS: HTTP/1.1 200 OK
 HEADER 
Server: Apache-Coyote/1.1
Set-Cookie: JSESSIONID=72439B901515114D613218FF9FD8084D; Path=/
Content-Type: text/html;charset=ISO-8859-1
Content-Length: 154
Date: Fri, 08 May 2009 14:07:29 GMT
Connection: close
 CONTENT 



SomeTitle



OKAY




HTTP OK HTTP/1.1 200 OK - 386 bytes in 0.450 seconds 
|time=0.449973s;;;0.00 size=386B;;;0


BUT it must be ERROR - not ok.
What I do wrong?

-- 
Best regards,
Proskurin Kirill



--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-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] How-to DO NOT check_alive host?

2008-09-17 Thread Proskurin Kirill
Hello.

Im have some servers what don`t accept any icmp packets.
Im check http port on it. But nagios by default does check_alive - and 
say what host is down.

How can im evade this?


-- 
Best regards,
Proskurin Kirill

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: 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] Anyone tried Nagios 3.0.3 on FreeBSD yet?

2008-09-08 Thread Proskurin Kirill
Jonathan Call wrote:
> I noticed the port change a few days ago. Anyone tried it?
> 
> Does it behave better than Nagios 2 on FreeBSD 7?

Using it from 3beta till 3.03 now.
No problem at all.

-- 
Best regards,
Proskurin Kirill

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: 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 dependence

2008-06-16 Thread Proskurin Kirill
Hugo van der Kooij wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> Proskurin Kirill wrote:
> |
> | define servicedependency{
> | host_name   host1
> | service_description Check RBL
> | dependent_host_name host1
> | dependent_service_description   PING
> | execution_failure_criteria  w,u,c
> | notification_failure_criteria   w,u,c
> | }
> |
> |
> | As im understand IF service Check RBL on host1 will be critical -
> | service PING will be critical too? But nofing happend.
> 
> No. It will mean that any depeding service will go to unreachable
> instead of critical.
> 
> So if you do not notify on unreachable services you will not be swarmed
> with critical alerts.
> 
> And the usage of whitespaces should be avoided to prevent mismatches.
> 

Thank you for respond.
1) It is will be seen on nagios what service is unreachable? Colors, 
messages? Then im do it on my test nagios - nothing is happend.

2) In my top post im ask this:

Im want to make this thing:

If check_alive service is critical(host is down) - do not check any
service on that host and *mark* it as critical.

And the same thing - if one service on remote host is critical - *mark*
as critical other service.

And, if it is possible, log to "Status Information" field what service1
critical because service2 is critical.

For example:
If check_mysql on host1 - critical
Mark as critical check_http on host2.
Status Information: "check_mysql on host1 - critical"

It is possible?

-- 
Best regards,
Proskurin Kirill

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: 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 dependence

2008-06-16 Thread Proskurin Kirill
Sander Klein wrote:

> You should have a look at 
> http://nagios.sourceforge.net/docs/3_0/dependencies.html
> 

Im look on it and then im write my post.
Im ask some questions what is not highlighted on this doc... or im read 
it bad?...

Let me give a example on real config:


define host{
 use unix-server
 host_name   host1
 alias   Alias
 address 1.1.1.1
 hostgroups  Filials
 }

define service{
 usegeneric-service
 host_name  host1
 service_descriptionPING
 check_command  check_ping!200.0,20%!600.0,60%
 }

define service{
 use generic-service
 host_name   host1
 service_description Check RBL
 check_command   check_rbl
 }

define servicedependency{
host_name   host1
service_description Check RBL
dependent_host_name host1
dependent_service_description   PING
execution_failure_criteria  w,u,c
notification_failure_criteria   w,u,c
}


As im understand IF service Check RBL on host1 will be critical - 
service PING will be critical too? But nofing happend.

-- 
Best regards,
Proskurin Kirill

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: 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 dependence

2008-06-16 Thread Proskurin Kirill

Anyone?..

> Hello all.
> 
> Im using Nagios 3.0.2 on FreeBSD 6.x system.
> All work fine.
> 
> Im want to make this thing:
> If check_alive service is critical(host is down) - do not check any 
> service on that host and *mark* it as critical.
> 
> And the same thing - if one service on remote host is critical - *mark* 
> as critical other service.
> 
> And, if it is possible, log to "Status Information" field what service1 
> critical because service2 is critical.
> 
> For example:
> If check_mysql on host1 - critical
> Mark as critical check_http on host2.
> Status Information: "check_mysql on host1 - critical"
> 
> It is possible?
> 

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: 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 dependence

2008-06-10 Thread Proskurin Kirill
Hello all.

Im using Nagios 3.0.2 on FreeBSD 6.x system.
All work fine.

Im want to make this thing:
If check_alive service is critical(host is down) - do not check any 
service on that host and *mark* it as critical.

And the same thing - if one service on remote host is critical - *mark* 
as critical other service.

And, if it is possible, log to "Status Information" field what service1 
critical because service2 is critical.

For example:
If check_mysql on host1 - critical
Mark as critical check_http on host2.
Status Information: "check_mysql on host1 - critical"

It is possible?

-- 
Best Regards,
Proskurin Kirill
www.forexclub.ru

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: 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] End User Interface for nagios 3.x

2008-06-10 Thread Proskurin Kirill
Giovanni Mancuso wrote:
> Hi to all,
> i download the nagios version 3.0.2 but i don't find a End User 
> Intarface to configure it.
> I find most software but only for nagios 2.x
> Is there a version for nagios 3.0.2??
> 
> Thanks

It is no one right now as im know.
Im think you want to look at Centerion Beta www.centreon.com and 
NagiosQL beta.


-- 
Best regards,
Proskurin Kirill

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null