[Nagios-users] Nagios HTTP check

2012-01-26 Thread Jason Clint
Hi I am currently trying to do a check with the check_http or
check_http.plplugins.  Both are very similar but for some reason I
cant get either to
work.  I am running the checks like this:

check_http -H -S www.example.com -u /somestring - gives result: HTTP OK
HTTP/1.1 200 OK - 1752 bytes in 0.175 seconds |time=0.175032s;;;0.00
size=1752B;;;0
check_http.pl -H www.example.com -s -u /somestring - gives result: Status:
CRITICAL HTTP/1.1 400 On Server  MESSAGE:

if I add -p 443 to the first check it gives this result: HTTP WARNING:
HTTP/1.1 400 Bad Request

also if I remove the -s option from the second check it works fine.  I know
the page works fine because it comes up however it still does not work with
the check?  Here is a port check:

nc -zv www.example.com 443
Connection to tags.mediaforge.com 443 port [tcp/https] succeeded!

I removed the domain due to company security sorry, anyway it comes back
just fine.  Also in case you are wondering if I am checking against the -u
/somestring I tried the ssl on just the standard site and it gives
forbidden which is what I would expect since the top sits is blocked:



check_http.pl -H www.example.com -s
Status: CRITICAL HTTP/1.1 400 On Server  MESSAGE:
check_http -H -S www.example.com
HTTP WARNING: HTTP/1.1 403 Forbidden

And the page shows this:
403 Forbidden
--
nginx/1.0.8

which is normal!  Any ideas on what I may be doing wrong would be of great
help thanks guys.


Jason Clint
--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d___
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 dependency help

2012-01-26 Thread Jeffrey Watts
Hello, I'm having some trouble getting a service dependency working and I
was hoping for some help.  I've read the section in Wolfgang Barth's book
"Nagios 2nd Edition" and googled around a bit, but something's still not
working right.  I'm using Nagios 3.0.6.

Specifically, I want to set it up so that my OpenManage (thanks Trond!) and
OMSA version checks both are dependent upon SNMP.  However, my setup is
still sending notifications for OMSA version and OpenManage when I stop the
SNMP daemon.  Here are the relevant snippets:

define service {
  use   generic_service_t
  service_description   SNMP
  max_check_attempts3
  normal_check_interval 60
  retry_check_interval  5
  notification_interval 60
  check_command check_snmp_custom!-H $HOSTADDRESS$ -C tomgeco -P 2c
-o sysDescr.0
  event_handler eventhandler_snmpd
  servicegroups snmp
  hostgroup_namedellhardware
  contact_groupstechops
}

define servicedependency{
  hostgroup_namedellhardware
  service_description   SNMP
  dependent_service_description OMSA version,OpenManage
  inherits_parent   1
  execution_failure_criterian
  notification_failure_criteria u,c
}

Any help as to what I'm doing wrong?
Jeffrey.
--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d___
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] osx nrpe: No output returned from plugin

2012-01-26 Thread John Stile
Recently I tried to setup nrpe monitoring of an osx system by installing
nagios-plugins-1.4.15.tar.gz and nrpe-2.12.tar.gz on osx 10.5, and
locally everything works fine.  This works:
/usr/local/nagios/libexec/check_nrpe -H localhost -c check_users

  USERS OK - 3 users currently logged in |users=3;5;10;0

Next I tried to configure my nagios server (debian sarge with packaged
nagios  1.3-cvs), and from the server command line, this works:
/usr/lib/nagios/plugins/check_nrpe -H mac.my.domain -c check_users

  USERS OK - 3 users currently logged in |users=0;5;10;0

The problem is adding the monitor to /etc/nagios/services.cfg

define service{
   use generic-service
   host_name   mac.my.domain
   service_description Users
   is_volatile 0
   check_period24x7
   max_check_attempts  3
   normal_check_interval   5
   retry_check_interval1
   contact_groups  linux-admins
   notification_interval   120
   notification_period 24x7
   notification_optionsw,u,c,r
   check_command   check_nrpe!check_users
   }

Results in web interface shows:
Status: UNKNOWN
Status Information: (No output returned from plugin)

All other nrpe hosts are monitoring well.
I have no other osx nrpe monitored machines as a reference.

Can anyone offer some ideas (other than upgrade)?


--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
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] Weekley Report for System uptime

2012-01-26 Thread FTL Nagios
Hi Claudio

This is exactly what id like to achieve

The uptime data pulled from the Nagios web UI at 9am each week and then
email me with all server uptimes.

I will check out your link now.

If anybody has any more ideas/ "simpler" ways please share them

Thanks in advance

On Thu, Jan 26, 2012 at 4:20 PM, Claudio Kuenzler 
wrote:

> I don't know if an addon or something similar exists, but you can also
> create a script, which pulls the reports directly from the web-interface.
> You can then parse the downloaded data, create pdf's (if wanted) and send
> it by e-mail on a monthly schedule.
> I did exactly this with a weekly schedule and wrote a how-to here:
>
> http://www.claudiokuenzler.com/blog/117/create-automatic-nagios-availabiltiy-report-pdf
>
> I would be surprised though, if there wasn't a simpler solution to achieve
> this.
>
> On Thu, Jan 26, 2012 at 5:10 PM, FTL Nagios  wrote:
>
>> Hello,
>>
>> I monitor alot of remote servers and 1 of the service checks i do is
>> check_nt UPTIME
>>
>> Is it possible to have Nagios email me a report of all the system uptimes
>> say every Monday morning at 9am?
>>
>> I pass on my thanks in advance for any help on the matter.
>>
>>
>>
>>
>> --
>> Keep Your Developer Skills Current with LearnDevNow!
>> The most comprehensive online learning library for Microsoft developers
>> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
>> Metro Style Apps, more. Free future releases when you subscribe now!
>> http://p.sf.net/sfu/learndevnow-d2d
>> ___
>> 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
>>
>
>
>
> --
> Keep Your Developer Skills Current with LearnDevNow!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-d2d
> ___
> 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
>
--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d___
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] Weekley Report for System uptime

2012-01-26 Thread Claudio Kuenzler
I don't know if an addon or something similar exists, but you can also
create a script, which pulls the reports directly from the web-interface.
You can then parse the downloaded data, create pdf's (if wanted) and send
it by e-mail on a monthly schedule.
I did exactly this with a weekly schedule and wrote a how-to here:
http://www.claudiokuenzler.com/blog/117/create-automatic-nagios-availabiltiy-report-pdf

I would be surprised though, if there wasn't a simpler solution to achieve
this.

On Thu, Jan 26, 2012 at 5:10 PM, FTL Nagios  wrote:

> Hello,
>
> I monitor alot of remote servers and 1 of the service checks i do is
> check_nt UPTIME
>
> Is it possible to have Nagios email me a report of all the system uptimes
> say every Monday morning at 9am?
>
> I pass on my thanks in advance for any help on the matter.
>
>
>
>
> --
> Keep Your Developer Skills Current with LearnDevNow!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-d2d
> ___
> 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
>
--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d___
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] Weekley Report for System uptime

2012-01-26 Thread FTL Nagios
Hello,

I monitor alot of remote servers and 1 of the service checks i do is
check_nt UPTIME

Is it possible to have Nagios email me a report of all the system uptimes
say every Monday morning at 9am?

I pass on my thanks in advance for any help on the matter.
--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d___
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] Opinions on load balancing and failover mechanisms

2012-01-26 Thread Andreas Ericsson
On 01/25/2012 11:44 PM, Mike Lindsey wrote:
> There are a lot of options..  DNX, Merlin, mod_gearman to name a few...
> I could read the docs (and have read a good portion of some of them) and
> could implement test environments (and will eventually need to) but
> first I want opinions from people who've done this at large scale.
> 
> I need to improve on our load distribution and failover mechanisms.
> Right now worker node outages are handled through freshness checking,
> and master node outages are handled through a load balanced vip and some
> fancy cron jobs that kick up a cold spare.
> 
> What are the better options for local load distribution and geographic
> master failover?  Which options will better handle thousands of servers
> across a dozen colos, in half a dozen countries, when the goal is that
> no single host (or colo!) going offline can be allowed to have an effect
> on any other subset of the infrastructure?  Which options should I avoid?
> 
> Currently running Nagios Core 3.2.1 with NSCA 2.9 on mostly FreeBSD
> systems.  Soon that should be Core 3.3, with XI on top, plus whatever
> load distribution mechanism wins the dog fight.
> 

For failover, merlin is the only solution. If a poller at some colo or
in some country goes down, the master will try to take the checks over,
unless you tell it not to.

mod_gearman is probably more efficient at running checks with minimal
cpu usage on multiple nodes until the new check engine in vanilla
Nagios is completed. After that, the in-core one will be superior to
all other options for simply distributing load, although it still won't
do failover.

To forestall your question "When can I expect to see that new check
stuff", the answer is "in 9 weeks time, tops". That's when my deadline
for it expires. Mid april, if you hate weekcounts as much as I do.

-- 
Andreas Ericsson   andreas.erics...@op5.se
OP5 AB www.op5.se
Tel: +46 8-230225  Fax: +46 8-230231

Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.

--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
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] Hiding hostgroups, but still referencing them

2012-01-26 Thread Boyer, Timothy A.
Correct, and I understand that.  So is there a way to hide the hostgroup and 
still reference it?

-Original Message-
From: Assaf Flatto [mailto:nag...@flatto.net] 
Sent: Thursday, January 26, 2012 8:22 AM
To: Nagios Users List
Subject: Re: [Nagios-users] Hiding hostgroups, but still referencing them

Boyer, Timothy A. wrote:
> I've got some scripts that do a wget in order to receive data from a 
> hostgroup. The hostgroup I'm using is an artificial, really big group 
> that is of no use to anyone except to get said report.
> Is there any way to hide this hostgroup on the display, yet still 
> access it for data? The usual advice for hiding a hostgroup is just to 
> use a 'register 0', but then the wget doesn't return anything when 
> referencing it.
> Thanks for any pointers...
Of course the wget will not work .
register 0 tells nagios not to display the group in the WebUI ( it does 
more , but currently that is the relevant part) and as you are trying to 
access the data via a HTTP request , the item in question is not passed 
to the web provider (apache) and there for not coming up for a wget request.



--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
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

--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
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] Hiding hostgroups, but still referencing them

2012-01-26 Thread Assaf Flatto
Boyer, Timothy A. wrote:
> I’ve got some scripts that do a wget in order to receive data from a 
> hostgroup. The hostgroup I’m using is an artificial, really big group 
> that is of no use to anyone except to get said report.
> Is there any way to hide this hostgroup on the display, yet still 
> access it for data? The usual advice for hiding a hostgroup is just to 
> use a ‘register 0’, but then the wget doesn’t return anything when 
> referencing it.
> Thanks for any pointers…
Of course the wget will not work .
register 0 tells nagios not to display the group in the WebUI ( it does 
more , but currently that is the relevant part) and as you are trying to 
access the data via a HTTP request , the item in question is not passed 
to the web provider (apache) and there for not coming up for a wget request.



--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
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] Hiding hostgroups, but still referencing them

2012-01-26 Thread Boyer, Timothy A.
I've got some scripts that do a wget in order to receive data from a hostgroup. 
 The hostgroup I'm using is an artificial, really big group that is of no use 
to anyone except to get said report.

Is there any way to hide this hostgroup on the display, yet still access it for 
data?  The usual advice for hiding a hostgroup is just to use a 'register 0', 
but then the wget doesn't return anything when referencing it.

Thanks for any pointers...



--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d___
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] FW: I cant get notifications for service alerts

2012-01-26 Thread Andrew Thompson
So this morning I have added a check_ping command to the host and left the 
check_nt on the service.

Disabled host alerts and left service alerts activated for the disk check 
service group

Nailed a drive space and got my service alerts in both email and sms format.

Thanks for the explanation and pointing out to me where I was going wrong 
Patrick.


Kind Regards
Andrew

From: Andrew Thompson
Sent: 25 January 2012 21:32
To: nagios-users@lists.sourceforge.net
Subject: Fwd: I cant get notifications for service alerts


Hi Patrick,

so what check do I suggest I add in fir the host?

For example my servers cfg uses check-server-alive for the host and check_ping 
for the service.
But the hosts are ok in that scenario as I only want to know when the host is 
up or down, I don't want to know when the service is critical.

But in the disk space scenario I only want to know when the service us critical 
because the disk usage as hit the threshold, I don't need a host up our down 
check notification.

hope this makes sense?

Regards

Sent from My Samsung Galaxy



 Original message 
Subject: I cant get notifications for service alerts
From: Andrew Thompson mailto:and...@fulgent.co.uk>>
To: 
"nagios-users@lists.sourceforge.net" 
mailto:nagios-users@lists.sourceforge.net>>
CC:

Hi all,

I have just setup Nagios to monitor the diskspace on my servers.

Nagios works fine monitoring and reporting diskspace but I cant get the 
notifications to work properly.

I also ping all my servers and the PING checks I have send me host alerts to 
say UP or DOWN but I have disabled service alerts as I don't want them for the 
PING check.

So I thought I would so the reverse and setup the disk check commands and 
disable host alerts and just have service alerts for when said server goes over 
the critical disk space limit I have sent.

Problem is no service alerts get sent out no matter how long the host is in 
critical state!

If I enable host and service alerts for the disk check command I get host 
alerts to say that the host is DOWN (which it isn't its CRITICAL)

My test disk_check config file is located at the below link, thought it be best 
to provide the whole lot rather than snippets.

http://dl.dropbox.com/u/895609/disk_space_test.cfg

Can anybody explain why I don't get any service alerts when the host goes 
CRITICAL and how I can get them please without having host alerts enabled as I 
don't want them for my disk check commands

Thankyou in advance

--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d___
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