Re: [Nagios-users] empty hostgroups only for service defs?

2012-04-12 Thread Michael Friedrich
On 12.04.2012 11:21, Andreas Ericsson wrote:
 On 04/11/2012 10:57 PM, Daniel Wittenberg wrote:
 I would imagine that's the case, since I had to patch our version to deal 
 with the depenencies too.


 If possible, I'd like to get that patch so we can make things
 consistent (without me having to work for it; Yay!).

afaik this was already committed to svn.

[--SNIP--]

Revision: 1858
   http://nagios.svn.sourceforge.net/nagios/?rev=1858view=rev
Author:   estanley375
Date: 2012-01-06 18:39:54 + (Fri, 06 Jan 2012)
Log Message:
---
Patched to allow empty host groups in service and host dependencies if 
allow_empty_hostgroup_assignment flag is set (Daniel Wittenberg)

Modified Paths:
--
 nagioscore/trunk/Changelog
 nagioscore/trunk/xdata/xodtemplate.c


[--SNIP--]





-- 
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email: michael.friedr...@univie.ac.at
phone: +43 1 4277 14359
mobile:+43 664 60277 14359
fax:   +43 1 4277 14338
web:   http://www.univie.ac.at/zid
http://www.aco.net

Lead Icinga Core Developer
http://www.icinga.org


--
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Using display_name in a Host Definition

2012-01-13 Thread Michael Friedrich
Ben Short wrote:
 Hi,

 I'm trying to use the display_name param in my host definitions. But
 it's not being used as the host name in the Nagios website.

$ grep display_name cgi/*


 I know that the document website [1] says 'Note: The current CGIs do
 not use this option, although future versions of the web interface
 will.' but I have found a bug [2] that has been marked as fixed. Did
 this bug make it into Nagios Core?

this feature was reported to nagios as display_name for statusmap.cgi, 
somewhere on nagios-devel lists.

i took the liberty to implement full display_name support in icinga 
classic ui at that time but never reported nor backported a patch to nagios.

given the recent statement by nagios developers on not enhancing the 
nagios classic ui anymore, i don't see the need to invest some spare 
time to backport feature patches from icinga to nagios anymore. i for 
myself only use icinga with classic ui, so call me happy.

for the time being, i'd suggest migrating to OMD where you'll get the 
best of all worlds (nagios, icinga, shinken as well as guis supporting 
display_name).

jm2c,
michael


 I'm running Nagios® Core™ Version 3.3.1.

 Regards

 Ben

 [1] http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#host
 [2] https://dev.icinga.org/issues/307

 --
 RSA(R) Conference 2012
 Mar 27 - Feb 2
 Save $400 by Jan. 27
 Register now!
 http://p.sf.net/sfu/rsa-sfdev2dev2
 ___
 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


-- 
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email:  michael.friedr...@univie.ac.at
phone:  +43 1 4277 14359
mobile: +43 664 60277 14359
fax:+43 1 4277 14338
web:http://www.univie.ac.at/zid
 http://www.aco.net

Lead Icinga Core Developer
http://www.icinga.org


--
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
___
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 reschedule multiple/all services at once

2012-01-10 Thread Michael Friedrich
.

As for adding that capability to the default ui; That's not
going to happen
unless someone provides a patch for it. None of the maintainers
have any
interest in adding features to the cgi, so they're there simply as
a fallback
and will most likely be removed some time in the future in favour
of a ui
written in some more easily hackable language.

--
Andreas Ericsson andreas.erics...@op5.se
mailto:andreas.erics...@op5.se
OP5 AB www.op5.se http://www.op5.se/
Tel: +46 8-230225 tel:%2B46%208-230225  Fax: +46
8-230231 tel:%2B46%208-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.



On Mon, Jan 9, 2012 at 1:17 PM, andrew.f...@wellsfargo.com 
mailto:andrew.f...@wellsfargo.com wrote:


I usually combine the classic external command scripts with a
smidge of perl to grab the members of the hostgroup that I want to
trigger something for.

If you give the following script a hostgroup name, it will grab
the members from objects.cache:

#!/usr/local/nagios/bin/perl

use warnings;

use strict;

my $hostgroup = $ARGV[0];

# here’s the spot where I should be checking that $hostgroup is
defined…

open my $objects,'','/usr/local/nagios/var/objects.cache' or die
Failure opening objects file: $!\n;

$/ = '}';

while ($objects) {

if (/hostgroup_name\s+($hostgroup)/gs) {

/members\s+(\S+)/gs;

my $members = $1;

my @members = split /,/,$members;

for my $member (@members) {

print $member\n;

}

}

}

close $objects;

When you run that you get a list that you can feed to your
external command script.

Here’s the idea in shell on the command line:

bash# for x in `get_hostgroup_members big_switches`;do
trigger_service_script $x;done


Andy Ford

Network Security Engineer | Solutions Design  Automation|
Information Security Technology

314-348-4937 tel:314-348-4937

andrew.f...@wellsfargo.com mailto:andrew.f...@wellsfargo.com

*From:*Michael Friedrich [mailto:michael.friedr...@univie.ac.at
mailto:michael.friedr...@univie.ac.at]

*Sent:* Monday, January 09, 2012 2:54 PM
*To:* nagios-users@lists.sourceforge.net
mailto:nagios-users@lists.sourceforge.net
*Subject:* Re: [Nagios-users] How to reschedule multiple/all
services at once

On 09.01.2012 20:53, Jake Xu wrote:

Hi everyone,

From time to time, I need to restart or reschedule all services to
verify that some new checks or new hosts are working properly. Is
there any easy way to do that? I have a large number of hosts and
services, so it would be tedious to click through a bunch of links
via the web interface. Using external command is not very feasible
as well because I would have to have all host names and service
names for the command line commands.

I have seen a pretty good idea on Icinga, a Nagios fork, for this
purpose. It has a checkbox associated with each service check and
a select-all checkbox to select all checkboxes.


hehe. you just made ricardo and rune proud :-))


It would be useful to have that on the Nagios Core, but AFAIK
there isn't any.



for the problem itsself - try OMD. nagios, icinga, shinken as core
available whilst the gui decision is up to you.

http://omdistro.org


Thanks in advance,

Jake

  

  



--

Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex

infrastructure or vast IT resources to deliver seamless, secure access to

virtual desktops. With this all-in-one solution, easily deploy virtual

desktops for less than the cost of PCs and save 60% on VDI infrastructure

costs. Try it free!http://p.sf.net/sfu/Citrix-VDIinabox

  

  


___

Nagios-users mailing list

Nagios-users@lists.sourceforge.net  
mailto:Nagios-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/nagios-users

::: Please include Nagios version, plugin version (-v) and OS when 
reporting any issue.

::: Messages without supporting info will risk being sent to /dev/null




-- 


DI (FH) Michael Friedrich

  


Vienna University Computer Center

Universitaetsstrasse 7 A-1010 Vienna, Austria

  


email:michael.friedr...@univie.ac.at  
mailto:michael.friedr...@univie.ac.at

phone:+43 1 4277 14359  tel:%2B43%201%204277%2014359

mobile:+43 664 60277 14359  tel:%2B43%20664%2060277%2014359

fax:+43 1 4277 14338  tel:%2B43%201%204277%2014338

web:http://www.univie.ac.at/zid

http://www.aco.net

  


Lead

Re: [Nagios-users] Dualstack monitoring best practice

2012-01-10 Thread Michael Friedrich
On 10.01.2012 10:51, Andreas Ericsson wrote:

 sure, the patch needs some rework, but when done, it fits, even it won't
 make it upstream due to the change of the objects abi. but for safety
 reasons in upgrading, your solution is better.


 We might turn address into an array variable later. I'm not sure it's
 worth it though.
It's being demanded as multiple addresses for one host which comes to 
mind when seeing a host as

- management ip, and a bunch of service ip addresses (for naming 
purposes custom vars will be better)
- vmware / xen cluster with more than one unique address
- dualstacked ip addresses

as well as other examples.
 Until someone finds a best practice that is flexible
 enough to allow all setups while making the most common one really, really
 simple we probably won't try to do anything that will lock people in to a
 particular kind of reasoning.
it's pretty hard to determine what might be best. especially when more 
addresses would mean more macros to be processed, and performance gain 
would suffer more than such enhancements will bring to those actually 
having demanded that. making things opt-in is not always an option either.
 That ofcourse requires someone to actually
 figure out first what the most common case is, and then to figure out a
 best practice for how to monitor it that enough people agree on to make
 it at least a majority vote that we dictators implement.

ideas.nagios.org might be a good place to vote.

http://ideas.nagios.org/a/dtd/Better-support-for-multihomed-hosts---more-than-one-address-entry/8006-3955

and it doesn't need to be you dictators, maybe others got time, ideas, 
patches. like the guy asking for the additional icon defintion for 
action|notes_url patch - that's rather huge and might address such 
attribute questions by good example. even better is the address6 patch 
adding new macros too. but maybe there are too many changes in recent 
svn commits and 3.2.3 = 3.3.1 which makes people fear that their patch 
work could not be used. (maybe git solves it ;)


 Until such a time, custom variables, plugin hackery and check command
 voodoo seems to do the trick for most people.

Yep that's true. Adding the address6 patch was solely for the reason of 
integrating our management databases better into the network and server 
monitoring. But i truly understand your demand to keep the object abi 
clean and compatible. Btw - seen a patch on svn for changing the 
scheduling logic and adding a hash attribute to objects.h - hopefully 
targetted head against 3.4 then?

kind regards,
michael


-- 
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email: michael.friedr...@univie.ac.at
phone: +43 1 4277 14359
mobile:+43 664 60277 14359
fax:   +43 1 4277 14338
web:   http://www.univie.ac.at/zid
http://www.aco.net

Lead Icinga Core Developer
http://www.icinga.org


--
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
___
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] Dualstack monitoring best practice

2012-01-09 Thread Michael Friedrich
Florian Lohoff wrote:
 Hi,

 i am thinking about the monitoring with dualstack targets/hosts. I'd expect
 all our hosts and services to be dual stacked or at least single stacked 
 services
 to be the exception.

 So adding a v6 host for all v4 hosts seems so odd. I was thinking about adding
 some _v6address variable to all host definitions and defining v6 services 
 using
 host HOSTADDRESS but _HOSTV6ADDRESS.

there's a patch for nagios around, adding address6 as host attribute. 
even if there are custom variables, it's more intentional for keeping 
the systems dualstacked in the future by adding that.

 In the end it would even be more natural to check_ping to check both address 
 families
 if available and go to CRITICAL if one of them fails. In the end v6 should be 
 a equivalent
 member of the family.

 Whats the preferred way people have chosen and what where the pitfalls?

i prefer check_multi, adding 2 checks, one ipv6, one ipv6 and combining 
the check result based on the expected output and state. some might have 
ipv6 testing only, but some are depending on a real dualstacked 
environment, so it's decision based then what overall status can be 
returned to the host. check_multi is rather easy to configure and extend 
and works well with pnp4nagios for some nice graphs too.


 Flo


 --
 Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
 infrastructure or vast IT resources to deliver seamless, secure access to
 virtual desktops. With this all-in-one solution, easily deploy virtual
 desktops for less than the cost of PCs and save 60% on VDI infrastructure
 costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox


 ___
 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


-- 
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email:  michael.friedr...@univie.ac.at
phone:  +43 1 4277 14359
mobile: +43 664 60277 14359
fax:+43 1 4277 14338
web:http://www.univie.ac.at/zid
 http://www.aco.net

Lead Icinga Core Developer
http://www.icinga.org


--
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
___
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] Dualstack monitoring best practice

2012-01-09 Thread Michael Friedrich
Michael Friedrich wrote:
 Florian Lohoff wrote:
 Hi,

 i am thinking about the monitoring with dualstack targets/hosts. I'd expect
 all our hosts and services to be dual stacked or at least single stacked 
 services
 to be the exception.

 So adding a v6 host for all v4 hosts seems so odd. I was thinking about 
 adding
 some _v6address variable to all host definitions and defining v6 services 
 using
 host HOSTADDRESS but _HOSTV6ADDRESS.
 there's a patch for nagios around, adding address6 as host attribute.
 even if there are custom variables, it's more intentional for keeping
 the systems dualstacked in the future by adding that.
 In the end it would even be more natural to check_ping to check both address 
 families
 if available and go to CRITICAL if one of them fails. In the end v6 should 
 be a equivalent
 member of the family.

 Whats the preferred way people have chosen and what where the pitfalls?
 i prefer check_multi, adding 2 checks, one ipv6, one ipv6 and combining

should get more coffee - i meant one for ipv4 and one for ipv6 ... we 
would be lucky if we could just drop ipv4.

 the check result based on the expected output and state. some might have
 ipv6 testing only, but some are depending on a real dualstacked
 environment, so it's decision based then what overall status can be
 returned to the host. check_multi is rather easy to configure and extend
 and works well with pnp4nagios for some nice graphs too.

 Flo


 --
 Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
 infrastructure or vast IT resources to deliver seamless, secure access to
 virtual desktops. With this all-in-one solution, easily deploy virtual
 desktops for less than the cost of PCs and save 60% on VDI infrastructure
 costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox


 ___
 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



-- 
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email:  michael.friedr...@univie.ac.at
phone:  +43 1 4277 14359
mobile: +43 664 60277 14359
fax:+43 1 4277 14338
web:http://www.univie.ac.at/zid
 http://www.aco.net

Lead Icinga Core Developer
http://www.icinga.org


--
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
___
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] Dualstack monitoring best practice

2012-01-09 Thread Michael Friedrich
Robert V. Bolton wrote:
 On Mon, Jan 9, 2012 at 11:25 AM, Michael Friedrich 
 michael.friedr...@univie.ac.at 
 mailto:michael.friedr...@univie.ac.at wrote:

 there's a patch for nagios around, adding address6 as host attribute.
 even if there are custom variables, it's more intentional for keeping
 the systems dualstacked in the future by adding that.


 You don't need to add the patch to add an address6 variable, just use 
 a Custom Object Variable 
 http://nagios.sourceforge.net/docs/3_0/customobjectvars.html. I use 
 to run Nagios with  patch that added the address6 variable, but it 
 ended up screwing me up in the long run.

sure, the patch needs some rework, but when done, it fits, even it won't 
make it upstream due to the change of the objects abi. but for safety 
reasons in upgrading, your solution is better.



 -- 
 *Robert V. Bolton*
 Email: rob...@robertvbolton.com mailto:rob...@robertvbolton.com
 Web: http://robertvbolton.com



 --
 Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
 infrastructure or vast IT resources to deliver seamless, secure access to
 virtual desktops. With this all-in-one solution, easily deploy virtual
 desktops for less than the cost of PCs and save 60% on VDI infrastructure
 costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox


 ___
 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


-- 
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email:  michael.friedr...@univie.ac.at
phone:  +43 1 4277 14359
mobile: +43 664 60277 14359
fax:+43 1 4277 14338
web:http://www.univie.ac.at/zid
 http://www.aco.net

Lead Icinga Core Developer
http://www.icinga.org


--
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
___
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 reschedule multiple/all services at once

2012-01-09 Thread Michael Friedrich

On 09.01.2012 20:53, Jake Xu wrote:

Hi everyone,

From time to time, I need to restart or reschedule all services to 
verify that some new checks or new hosts are working properly. Is 
there any easy way to do that? I have a large number of hosts and 
services, so it would be tedious to click through a bunch of links via 
the web interface. Using external command is not very feasible as well 
because I would have to have all host names and service names for the 
command line commands.


I have seen a pretty good idea on Icinga, a Nagios fork, for this 
purpose. It has a checkbox associated with each service check and a 
select-all checkbox to select all checkboxes.


hehe. you just made ricardo and rune proud :-))

It would be useful to have that on the Nagios Core, but AFAIK there 
isn't any.



for the problem itsself - try OMD. nagios, icinga, shinken as core 
available whilst the gui decision is up to you.


http://omdistro.org



Thanks in advance,
Jake


--
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual
desktops for less than the cost of PCs and save 60% on VDI infrastructure
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox


___
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



--
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email: michael.friedr...@univie.ac.at
phone: +43 1 4277 14359
mobile:+43 664 60277 14359
fax:   +43 1 4277 14338
web:   http://www.univie.ac.at/zid
   http://www.aco.net

Lead Icinga Core Developer
http://www.icinga.org

--
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox___
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_esx3 and ESX5i...

2011-12-07 Thread Michael Friedrich
Mies, Christian wrote:

 Hi List,

 the check_esx3 Plugin send some interesting Output:


your mail sends some interesting output too - embedded images.

 /CHECK_ESX3.PL CRITICAL - cpu usage=-0.01 % /

 This Service Output is shown if the ESXi Server has nothing to do. Any 
 Ideas for that?


nothing to do is a very vague description. can i borrow your crystal 
ball? forgot mine at home.


 Regards

 Christian


 it-novum GmbH*

 i.A. Christian Mies***
 Senior Consultant

 Tel: +49 (661) 103-874
 Fax: +49 (661) 103-17874
 christian.m...@it-novum.com


 ITNLogo

 it-novum GmbH • Edelzeller Straße 44 • 36043 Fulda• 
 http://www.it-novum.com
 Handelsregister Amtsgericht Fulda, HRB 1934 • Geschäftsführer: Michael 
 Kienle • Sitz der Gesellschaft: Fulda

 Der Inhalt dieser E-Mail ist vertraulich. Wenn Sie nicht der 
 eigentliche Empfänger sein sollten, informieren Sie bitte sofort den 
 Absender oder vernichten umgehend diese Mail. Jegliche unerlaubte 
 Vervielfältigung oder Weiterleitung dieser Mail ist strengstens verboten.
 This e-mail may contain confidential and/or priviledged information. 
 If you are not the intended recepient (or have received this e-mail in 
 error) please notify the sender immediately and destroy this e-mail. 
 Any unauthorised copying, disclosure or distribution of material in 
 this e-mail is strictly forbidden.






 --
 Cloud Services Checklist: Pricing and Packaging Optimization
 This white paper is intended to serve as a reference, checklist and point of
 discussion for anyone considering optimizing the pricing and packaging model
 of a cloud services business. Read Now!
 http://www.accelacomm.com/jaw/sfnl/114/51491232/


 ___
 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


-- 
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email:  michael.friedr...@univie.ac.at
phone:  +43 1 4277 14359
mobile: +43 664 60277 14359
fax:+43 1 4277 14338
web:http://www.univie.ac.at/zid
 http://www.aco.net

Lead Icinga Core Developer
http://www.icinga.org


--
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of 
discussion for anyone considering optimizing the pricing and packaging model 
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/
___
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] notification emails

2011-12-02 Thread Michael Friedrich

On 02.12.2011 09:14, Nick Price wrote:


Yes  printf works

I had the same version of Nagios with the same config files working OK 
with fedora 14


It is only when I installed it on fedora 16 the notifications don't work

I think it's a bug within Nagios



nagios just calls the command forking into a shell, so i'd rather guess 
this will be affected by turned on selinux. provide the output of


# getenforce



Did you also do

printf 'this is a test' | /bin/mail  --s  test_email 
em...@mydomain.com mailto:em...@mydomain.com


?

On Wed, Nov 30, 2011 at 9:09 PM, Nick Price np...@hotmail.com 
mailto:np...@hotmail.com wrote:


The defaults are there.

I didecho 'this is a test' | /bin/mail  --s  test_email 
em...@mydomain.com mailto:em...@mydomain.com


That went out Ok

What to look at next

*From:*Claudio Kuenzler [mailto:c...@claudiokuenzler.com 
mailto:c...@claudiokuenzler.com]

*Sent:* Wednesday, November 30, 2011 12:37
*To:* Nagios Users List
*Subject:* Re: [Nagios-users] notification emails

Did you check the command which is used to send notifications in 
command.cfg or checkcommand.cfg ?

Maybe you don't have the binary or you need to rename the command.

By default it uses /usr/bin/printf and /usr/bin/mail if I'm not mistaken.

On Wed, Nov 30, 2011 at 9:23 AM, Nick Price np...@hotmail.com 
mailto:np...@hotmail.com wrote:


Hello

I am not sure if this is a bug or config issue.

I have a clean install of fedora 16 32 bit  with a manual install of 
nagios

3.3.1  and nagios plugins 1.4.15.

I see in the debug log

Notification viability test failed. No notification will be sent out.

I can send test emails from this server using sendmail and that bit works


Is there a solution for this.

Regards

Nick


--
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net 
mailto:Nagios-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when 
reporting any issue.

::: Messages without supporting info will risk being sent to /dev/null


--
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net 
mailto:Nagios-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when 
reporting any issue.

::: Messages without supporting info will risk being sent to /dev/null



--
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d


___
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



--
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email: michael.friedr...@univie.ac.at
phone: +43 1 4277 14359
mobile:+43 664 60277 14359
fax:   +43 1 4277 14338
web:   http://www.univie.ac.at/zid
   http://www.aco.net

Lead Icinga Core Developer
http://www.icinga.org

--
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d___
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] notification emails

2011-12-02 Thread Michael Friedrich



--
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
mailto:Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when
reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null



--
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
mailto:Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when
reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null


--
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net 
mailto:Nagios-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when 
reporting any issue.

::: Messages without supporting info will risk being sent to /dev/null



--
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d


___
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



--
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email: michael.friedr...@univie.ac.at
phone: +43 1 4277 14359
mobile:+43 664 60277 14359
fax:   +43 1 4277 14338
web:   http://www.univie.ac.at/zid
   http://www.aco.net

Lead Icinga Core Developer
http://www.icinga.org

--
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Problem on compiling ndoutils ver. 1.4b9

2011-12-01 Thread Michael Friedrich
On 01.12.2011 16:42, Mirko Stefanelli wrote:
 Hi to all,

 I have some problem on compiling ndoutils on server ubuntu 11.04
 (X84_64), on this server are installe both nagios 3.3.1 and mysql
 server/client ver.5.1.54. I perform a search in order to find
 libmysqlclient and this library is available on the sistem:

 /usr/lib/libmysqlclient.so.16

 When I run ./configure under dir of ndoutis source I got this messages:

 checking for mysql_config... no


 *** MySQL library could not be located... **

 You chose to compile NDOutils with MySQL support, but I was unable to
 locate the MySQL library on your system.  If the library is
 installed,  use the --with-mysql-lib argument to specify the
 location of the MySQL library.
 installed, use the --with-mysql=DIR argument to specify the
 location of the MySQL library, We assume mysql_config is in DIR/dir
 NOTE: After you install the necessary libraries on your system:
 1. Make sure /etc/ld.so.conf has an entry for the directory in
which the MySQL libraries are installed.
 2. Run 'ldconfig' to update the run-time linker options.
 3. Run 'make devclean' in the NDBXT distribution to clean out
any old references to your previous compile.
 4. Rerun the configure script.

 TIP: Try the following
 ./configure --with-mysql=/usr/lib/mysql

 I have also create a soft link in order to have this library
 /usr/lib/libmysqlclient.so.

 has anyone had experience with this problem?

try to add the mysql header locations to configure as well. and i would 
the default for the libs expecting to be --with-mysql-lib instead.


 Any idea?

 Regards,
 Mirko Stefanelli.

 --
 All the data continuously generated in your IT infrastructure
 contains a definitive record of customers, application performance,
 security threats, fraudulent activity, and more. Splunk takes this
 data and makes sense of it. IT sense. And common sense.
 http://p.sf.net/sfu/splunk-novd2d
 ___
 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


-- 
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email: michael.friedr...@univie.ac.at
phone: +43 1 4277 14359
mobile:+43 664 60277 14359
fax:   +43 1 4277 14338
web:   http://www.univie.ac.at/zid
http://www.aco.net

Lead Icinga Core Developer
http://www.icinga.org


--
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
___
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] External command-id CHANGE_SVC_CHECK_COMMAND not working

2011-11-21 Thread Michael Friedrich

Michael Sverdlik wrote:


Hi,

System Info:

Nagios Core 3.2.3 (also checked on 3.3.1)

Ubuntu 10.4 LTS

It looks like Nagios ignores CHANGE_SVC_CHECK_COMMAND that I'm sending 
to command file.


Here a  test script I did which _/worked/_ as should (comment for the 
service added):


#!/bin/sh

now=`date +%s`

commandfile='/usr/local/nagios/var/rw/nagios.cmd'

/bin/echo [$now] 
ADD_SVC_COMMENT;server.com;service;0;nagiosadmin;this is a test  
$commandfile


However when I try to do almost exactly the same with 
CHANGE_SVC_CHECK_COMMAND, nothing happens:


#!/bin/sh

now=`date +%s`

commandfile='/usr/local/nagios/var/rw/nagios.cmd'

/bin/echo [$now] 
CHANGE_SVC_CHECK_COMMAND;server.com;service;check_service  $commandfile


I can see command received both in nagios log and debug log:

Nagios log

[1321800018] EXTERNAL COMMAND: 
CHANGE_SVC_CHECK_COMMAND;server.com;service;check_service


Nagios debug log

[1321800018.303659] [128.1] [pid=31683] External Command Type: 128

[1321800018.303671] [128.1] [pid=31683] Command Entry Time: 1321800018

[1321800018.303681] [128.1] [pid=31683] Command Arguments: 
server.com;service;check_service


Note: server,service and command names were changed.

I also checked same scenario on Nagios 3.3.1 with same results.

Any advice/ideas?



http://www.nagios.org/projects/nagioscore/history/core-3x

3.0.6 adaptive check commands


Thanks,

Michael.



--
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d


___
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



--
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email:  michael.friedr...@univie.ac.at
phone:  +43 1 4277 14359
mobile: +43 664 60277 14359
fax:+43 1 4277 14338
web:http://www.univie.ac.at/zid
http://www.aco.net

Lead Icinga Core Developer
http://www.icinga.org

--
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] nagios timeout checks

2011-11-11 Thread Michael Friedrich
))
  +service_check_timeout_state=STATE_CRITICAL;
  +else if(!strcmp(value,u))
  +service_check_timeout_state=STATE_UNKNOWN;
  +else{
  +asprintf(error_message,Illegal value for
  service_check_timeout_state);
  +error=TRUE;
  +break;
  +}
  +}

   else if(!strcmp(variable,host_check_timeout)){

  diff -ur nagios-3.2.0/base/nagios.c nagios-3.2.0-bfc/base/nagios.c
  --- nagios-3.2.0/base/nagios.c2009-08-12 14:28:10.0 -0400
  +++ nagios-3.2.0-bfc/base/nagios.c2010-02-08 18:36:34.0 -0500
  @@ -100,6 +100,7 @@
   unsigned long   syslog_options=0;

   int service_check_timeout=DEFAULT_SERVICE_CHECK_TIMEOUT;
  +int service_check_timeout_state=STATE_CRITICAL;
   int host_check_timeout=DEFAULT_HOST_CHECK_TIMEOUT;
   int event_handler_timeout=DEFAULT_EVENT_HANDLER_TIMEOUT;
   int notification_timeout=DEFAULT_NOTIFICATION_TIMEOUT;
  diff -ur nagios-3.2.0/base/utils.c nagios-3.2.0-bfc/base/utils.c
  --- nagios-3.2.0/base/utils.c2009-08-11 12:53:04.0 -0400
  +++ nagios-3.2.0-bfc/base/utils.c2010-02-08 18:48:31.0 -0500
  @@ -115,6 +115,7 @@
   extern unsigned long  syslog_options;

   extern int  service_check_timeout;
  +extern int  service_check_timeout_state;
   extern int  host_check_timeout;
   extern int  event_handler_timeout;
   extern int  notification_timeout;
  @@ -1905,11 +1906,7 @@
   /* get the current time */
   gettimeofday(end_time,NULL);

  -#ifdef SERVICE_CHECK_TIMEOUTS_RETURN_UNKNOWN
  -check_result_info.return_code=STATE_UNKNOWN;
  -#else
  -check_result_info.return_code=STATE_CRITICAL;
  -#endif
  +check_result_info.return_code=service_check_timeout_state;
   check_result_info.finish_time=end_time;
   check_result_info.early_timeout=TRUE;

  ---8---8---8

  



-- 
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email: michael.friedr...@univie.ac.at
phone: +43 1 4277 14359
mobile:+43 664 60277 14359
fax:   +43 1 4277 14338
web:   http://www.univie.ac.at/zid
http://www.aco.net

Lead Icinga Core  IDOUtils Developer
http://www.icinga.org


--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
___
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 route data from multiple nagios core nodes to a nagiosxi node?

2011-11-09 Thread Michael Friedrich

Benjamin wrote:
I have about ten nagios core machines that I currently monitor 
collectively using MNTOS.  Is there a way to feed the data from my 
nagios core machines to a nagiosXI machine that makes it possible to 
use the nagiosXI features like the visualization/dashboards/reporting 
for the services/hosts being monitored by the nagios core nodes?  I 
basically want to replace MNTOS w/ a nagiosXI machine --- so that I 
can utilize its features as a dashboard and reporting node for all the 
data I receive at each nagios core server.


Basically, I want to set up a hub and spoke w/ a nagiosXI machine at 
the hub and all my nagios core boxes as spokes.
I looked into DNX but this looks like it distributes the checks in a 
different way.  Any ideas?


better to be asked at nagios.com/support



Thanks,

Ben


--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1


___
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



--
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email:  michael.friedr...@univie.ac.at
phone:  +43 1 4277 14359
mobile: +43 664 60277 14359
fax:+43 1 4277 14338
web:http://www.univie.ac.at/zid
http://www.aco.net

Icinga Core  IDOUtils Developer
http://www.icinga.org

--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1___
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] Following Object Inheritance

2011-11-04 Thread Michael Friedrich
Ian Petts wrote:
 I've inherited a Nagios installation that's not well documented and
 has quite a confusing setup.

 I'm trying to work out what contacts/contactgroups are notified for a
 set of given services,
 but the inheritance is driving me crazy.

 Is there a utility that can parse the config files and show me what
 each object looks like
 after it's been expanded?

nagios.cfg:objects.cache


 --
 RSA(R) Conference 2012
 Save $700 by Nov 18
 Register now
 http://p.sf.net/sfu/rsa-sfdev2dev1
 ___
 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


-- 
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email:  michael.friedr...@univie.ac.at
phone:  +43 1 4277 14359
mobile: +43 664 60277 14359
fax:+43 1 4277 14338
web:http://www.univie.ac.at/zid
http://www.aco.net

Icinga Core  IDOUtils Developer
http://www.icinga.org


--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
___
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] [PATCH] reduce notification load; fix $NOTIFICATIONRECIPIENTS$ macro #98

2011-11-01 Thread Michael Friedrich

hi,

recently we've been debugging on team icinga in the middle of 
notifications and macros, and while investigating on a users problem, 
we've digged a bit deeper into the notification viability checks, 
resulting in deeper analysis of an Opsview patch to reduce the 
notification load significantly by moving the viability checks from the 
actual notification into the creation of the contacts notified, passing 
only a list of 'qualified' contacts to the actual notification logic. 
the only thing to remark over here is that the checks against the valid 
notification_period now happen sooner, and not actually when the 
notification is sent to each contact.


while implementing that patch into current code (needs some macro 
passing with current code), we did remember nagios bug #98 where the 
$NOTIFICATIONRECEIPIENTS$ macro is demanded to be only populated with 
the actual contacts to be notified, but not all of those assigned to the 
host/service. while this is considered to be a real bug, further 
investigation showed that thanks to the viability checks before calling 
add_notification(), contacts won't be added to that macro as the macro 
logic happens within that function too.


so by applying the attached git patch, you will a. reduce notification 
load and b. fix the $NOTIFICATIONRECEIPIENTS$ macro holding all 
contacts, but not the viable contacts.


since the code remains actually the same on icinga and nagios in this 
stage, the tests can be found at the icinga dev tracker as usual.

https://dev.icinga.org/issues/1744
https://dev.icinga.org/issues/2023

kudos to Opsview Team for their initial patch as well as Icinga 
Development Team for the further analysis on the macro bug.


feel free to apply, matches against latest HEAD.

kind regards,
Michael

--
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email: michael.friedr...@univie.ac.at
phone: +43 1 4277 14359
mobile:+43 664 60277 14359
fax:   +43 1 4277 14338
web:   http://www.univie.ac.at/zid
   http://www.aco.net

Lead Icinga Core  IDOUtils Developer
http://www.icinga.org

From 34d71eb4a947051cc0a1251745b8829245cd2e7d Mon Sep 17 00:00:00 2001
From: Michael Friedrich michael.friedr...@univie.ac.at
Date: Tue, 1 Nov 2011 13:35:20 +0100
Subject: [PATCH] reduce notification load; fix $NOTIFICATIONRECIPIENTS$ macro
 #98

1) currently, the list of contacts to be notified is created
and finally on the notification actually happening, the
viability checks happen. this will cause heavy load on systems
with many contacts configured, looping even for the contacts
who won't pass the notification viability tests.
in order to solve that, a patch by Opsview Team was taken into
account, moving the viability checks directly into the notification
list creation before adding a contact to the list.

note: the check against the timeperiod will happen on list creation,
not an actual notification being sent. but that's a minor flaw.

2) while moving the viability checks on list creation, this will
cause that not *all* contacts of the host/service will be added to
the list, but just those actually receiving the notification. the
macro $NOTIFICATIONSRECEIPIENTS$ gets populated in add_notification()
and will therefore hold only those contacts being viable for a
notification.

note: this fixes #98 on the bug tracker.

for further analysis and tests, please refer over here
https://dev.icinga.org/issues/1744
https://dev.icinga.org/issues/2023

kudos to Opsview Team for their initial patch, this has been
reworked into current macro threadsafety logic with some proper
inline comments.
---
 Changelog|   11 +
 base/notifications.c |  106 +-
 include/nagios.h |4 +-
 3 files changed, 92 insertions(+), 29 deletions(-)

diff --git a/Changelog b/Changelog
index 0a5e9e6..8742ca8 100644
--- a/Changelog
+++ b/Changelog
@@ -2,6 +2,17 @@
 Nagios 3.x Change Log
 #
 
+3.x.x - ??/??/
+
+ENHANCEMENTS
+* reduce notification load by moving notification viability check into notification list creation (Opsview Team)
+
+FIXES
+* fix $NOTIFICATIONRECIPIENTS$ macro contains all contacts assigned to host|service, not only notified contacts (Icinga Development Team) #98
+
+WARNINGS
+
+
 3.3.1 - 07/25/2011
 --
 ENHANCEMENTS
diff --git a/base/notifications.c b/base/notifications.c
index 6f5a5ab..1dbd849 100644
--- a/base/notifications.c
+++ b/base/notifications.c
@@ -108,9 +108,26 @@ int service_notification(service *svc, int type, char *not_author, char *not_dat
 
 	log_debug_info(DEBUGL_NOTIFICATIONS, 2, Creating list of contacts to be notified.\n);
 
-	/* create the contact notification list for this service */
+	/* allocate memory for macros */
 	memset(mac, 0, sizeof(mac));
-	create_notification_list_from_service(mac, svc, options, escalated);
+
+	/* create the contact notification list

Re: [Nagios-users] Question about Nagios Features

2011-10-28 Thread Michael Friedrich
 - Be able to display reports using out of
 the box reporting templates
 27. Advance Application Alerting - Be able to create alerts on complex
 combinations of events
 28. Top-to-bottom Analysis - Be able to provide analysis on traffic
 flow as based on NetFlow, SFlow and/or JFlow
 29. Netflow, SFlow, JFlow Support - Be able to support
 devices/elements running IP Flows and display statistics as based on
 information
 30. Netflow Reporting - Be able to provide Flow reports
 31. Application Traffic Information - Be able to provide statistics as
 based on application traffic information
 32. Demographics - Be able to provide information on top users and top
 applications
 33. VoIP QoS Measurement - Be able to provide statistics as based on
 VoIP QoS measured values
 34. Alerts, Grahps and Reporting - Be able to provide alerts, graphs
 and reports as based on statistics gathered
 35. VoIP Infrastructure Monitoring - Be able to monitor VoIP network
 infrastructure and provide information on network health for support
 of VoIP service




-- 
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email: michael.friedr...@univie.ac.at
phone: +43 1 4277 14359
mobile:+43 664 60277 14359
fax:   +43 1 4277 14338
web:   http://www.univie.ac.at/zid
http://www.aco.net

Lead Icinga Core  IDOUtils Developer
http://www.icinga.org


--
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
___
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] postgresql monitoring

2011-10-21 Thread Michael Friedrich
On 21.10.2011 14:55, James Osbourn wrote:
 I have to start monitoring a postgresql server and looking for some pointers 
 on the which plugin to use and check command syntax.

http://bucardo.org/wiki/Check_postgres

 Basically want to check that the database is up and responding, but any other 
 recommended checks welcome.

 Thanks

 James

 --
 The demand for IT networking professionals continues to grow, and the
 demand for specialized networking skills is growing even more rapidly.
 Take a complimentary Learning@Cisco Self-Assessment and learn
 about Cisco certifications, training, and career opportunities.
 http://p.sf.net/sfu/cisco-dev2dev
 ___
 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


-- 
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email: michael.friedr...@univie.ac.at
phone: +43 1 4277 14359
mobile:+43 664 60277 14359
fax:   +43 1 4277 14338
web:   http://www.univie.ac.at/zid
http://www.aco.net

Icinga Core  IDOUtils Developer
http://www.icinga.org


--
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
___
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] About new release for Nagios

2011-10-17 Thread Michael Friedrich
Yu Watanabe wrote:
 Thank you for the reply.

 I see.

 Then I will think of using v 3.3.1.

wait for 3.4.x
 Which one is better to  use? The Latest snapshot or
 the Latest stable release? It would be a great help if you 
 could give us your opinion.

3.2.3 is considered stable, 3.3.x is a developer release tree and
contains various things to be fixed or already fixed in svn. still,
empty perfdata is not re-enabled and breaks various graphing addons.
anyhow, that's up the nagios core devs to decide what to fix and when to
release.

the developer guidelines on wiki.nagios.org are lost, but iirc it's
mentioned over there which versions indicate which release tree.


 Thanks,
 Yu Watanabe

 Andreas Ericsson さんは書きました:
 On 10/14/2011 02:01 AM, Yu Watanabe wrote:
 Hello Andreas.

 Thank you for the reply.

 I understood the situation. So, is v3.2.3 more stable version
 for now?

 No. 3.2.3 has the same leaks but more other bugs. I'm still not entirely
 convinced that one of the reported leaks is actually a leak though as I
 can't see it in valgrind myself. The other leaks are primarily onetimers,
 and the downtime and comment removal patches only matter if you're using
 the new custom commands from altinity (or is it opsera?) that delete
 downtime and comments on remote hosts when using nsca as a distribution
 mechanism, and noone in their right mind should be doing that nowadays
 anyway.

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


 --
 All the data continuously generated in your IT infrastructure contains a
 definitive record of customers, application performance, security
 threats, fraudulent activity and more. Splunk takes this data and makes
 sense of it. Business sense. IT sense. Common sense.
 http://p.sf.net/sfu/splunk-d2d-oct
 ___
 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


-- 
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email:  michael.friedr...@univie.ac.at
phone:  +43 1 4277 14359 
mobile: +43 664 60277 14359 
fax:+43 1 4277 14338
web:http://www.univie.ac.at/zid
http://www.aco.net

Icinga Core  IDOUtils Developer
http://www.icinga.org


--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
___
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] About new release for Nagios

2011-10-17 Thread Michael Friedrich
Fournier, Wim wrote:
 On 10/17/11 9:31 AM, Michael Friedrichmichael.friedr...@univie.ac.at
 wrote:


 3.2.3 is considered stable, 3.3.x is a developer release tree and
 Are you sure? 3.3.1 is marked as the latest stable on
 http://nagios.org/download/core/thanks/?registered=1 and 3.2.3 as the
 previous stable.

oh. i wasn't aware of that change, thanks for the pointer. well if they 
say so. i've encountered and fixed various bugs on my 3.3.1 github tree, 
so i don't consider it stable as it should be.
anyhow, as stated before, that's nagios devs' decision not mine ;-)


 -- Wim Fournier


 --
 All the data continuously generated in your IT infrastructure contains a
 definitive record of customers, application performance, security
 threats, fraudulent activity and more. Splunk takes this data and makes
 sense of it. Business sense. IT sense. Common sense.
 http://p.sf.net/sfu/splunk-d2d-oct
 ___
 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


-- 
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email:  michael.friedr...@univie.ac.at
phone:  +43 1 4277 14359
mobile: +43 664 60277 14359
fax:+43 1 4277 14338
web:http://www.univie.ac.at/zid
http://www.aco.net

Icinga Core  IDOUtils Developer
http://www.icinga.org


--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
___
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] About new release for Nagios

2011-10-17 Thread Michael Friedrich
Andreas Ericsson wrote:
 On 10/17/2011 11:10 AM, Michael Friedrich wrote:
 Fournier, Wim wrote:
 On 10/17/11 9:31 AM, Michael Friedrichmichael.friedr...@univie.ac.at
 wrote:


 3.2.3 is considered stable, 3.3.x is a developer release tree and
 Are you sure? 3.3.1 is marked as the latest stable on
 http://nagios.org/download/core/thanks/?registered=1 and 3.2.3 as the
 previous stable.
 oh. i wasn't aware of that change, thanks for the pointer. well if they
 say so. i've encountered and fixed various bugs on my 3.3.1 github tree,
 so i don't consider it stable as it should be.
 anyhow, as stated before, that's nagios devs' decision not mine ;-)

 All non-trivial programs have bugs. How many have you fixed in Icinga
 that were shipped in stable releases? The ones reported for Nagios have
 all been fairly safe in that they're small or one-time leaks, exist in
 code not normally exercised (recently added features without ui support),
 changes in behaviour that might as well have been misdocumented in the
 first place or only triggered by certain combinations of eventbroker
 modules.

i've added my input on the empty perfdata behaviorial change on the 
nagios-devel lists and i do think that this is a bug because it actually 
breaks compatibility. even if not intended, if the behaviour stayed thre 
for a long time, i don't see the reason to fix that this way. but 
solely, that's just my opinion even if i break the abi myself from time 
to time. just a hint to reduce support questions.


 And yes, 3.3.1 is the latest stable. I'm not aware of any bugs in it,
 apart from the potential one that Dorian sent me a patch for a few weeks
 ago that I still haven't had time to review and test properly, so it's a
 bug in potentia, but not actually verified.

i've looked over them and i am still waiting for further input on what 
exactly leaks. i'm with you, free'ing the macros themselves rather than 
cleaning up the whole mess.


-- 
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email:  michael.friedr...@univie.ac.at
phone:  +43 1 4277 14359
mobile: +43 664 60277 14359
fax:+43 1 4277 14338
web:http://www.univie.ac.at/zid
http://www.aco.net

Icinga Core  IDOUtils Developer
http://www.icinga.org


--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Monitoring clustered services

2011-10-12 Thread Michael Friedrich

On 2011-10-12 15:04, Kumar, Ashish wrote:

Hello fellow Nagios users,

I have configured a couple of hosts in Nagios, since they are the 
nodes of a HA cluster the services are running on the active host 
only.  As obvious Nagios is showing the services down on the passive 
host.  I tried using check_cluster and check_cluster2 but due to the 
lack of information around the web and mailing list archives I 
couldn't figure out how it can be configured.


Would anyone actually using check_cluster like to lend me a hand? :)


i'd suggest using check_multi instead for checking real clustered services.



We are using Nagios Core 3.2.0 on Centos.

Thanks,
Ashish Kumar



--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct


___
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



--
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email: michael.friedr...@univie.ac.at
phone: +43 1 4277 14359
mobile:+43 664 60277 14359
fax:   +43 1 4277 14338
web:   http://www.univie.ac.at/zid
   http://www.aco.net

Icinga Core  IDOUtils Developer
http://www.icinga.org


--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Nagios - Check for Updates

2011-10-04 Thread Michael Friedrich


  
  
On 02.10.2011 02:14, Jon Adcock wrote:

  
  
  This feature (check for updates) does not appear to be
  working for me.  When 3.3.1 came out, I waited for a week, and
  never saw the update available banner displayed on the Nagios
  main landing page (main.php).  I've been playing with the
  main.php page to get it to display the date/time of the last
  update check, and it returns blank (no value), so I'm assuming
  that too mean it's not actually checking.
   
    I am currently running Nagios 3.3.1 on the Novell SLES
  v10 server (Nagios compiled from source).  Can anyone give me
  some troubleshooting steps to get me started?  For example, is
  there a way to enable logging of the check for updates
  feature, and is there a way to manually start the update check
  (the API, not the web page URL link)?


  the core is scheduling call home events and saves the version
  information and various other attributes in both status.dat and
  retention.dat. the cgis (or the php part of it) parse that
  information into a readable version onto the web.
  
  http://nagios.svn.sourceforge.net/viewvc/nagios/nagioscore/trunk/include/nagios.h?revision=1786view=markup
  line 129ff
  http://nagios.svn.sourceforge.net/viewvc/nagios/nagioscore/trunk/base/utils.c?revision=1797view=markup
  line 3724ff
  http://nagios.svn.sourceforge.net/viewvc/nagios/nagioscore/trunk/xdata/xsddefault.c?revision=1793view=markup
  405ff
  http://nagios.svn.sourceforge.net/viewvc/nagios/nagioscore/trunk/xdata/xrddefault.c?revision=1787view=markup
  317ff
http://nagios.svn.sourceforge.net/viewvc/nagios/nagioscore/trunk/html/includes/utils.inc.php?revision=1242
  
  so i would guess if you don't allow the nagios core to phone home,
  it won't show an updated version. scheduling cycle is somewhere
  around 22 hours, changing is only possible if you recompile.
  
  
  


   
   
  


Jon Adcock
Network Systems Administrator
Leon County MIS
  301 S. Monroe St.
  Tallahassee, FL  32301
  Office:  (850) 606-5518
adco...@leoncountyfl.gov
 
  
  

--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
  

___
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


  

-- 
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email: michael.friedr...@univie.ac.at
phone: +43 1 4277 14359
mobile:+43 664 60277 14359 
fax:	   +43 1 4277 14338
web:   http://www.univie.ac.at/zid
   http://www.aco.net

Icinga Core  IDOUtils Developer
http://www.icinga.org

  

--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Nagios - Check for Updates

2011-10-04 Thread Michael Friedrich


  
  
On 04.10.2011 19:33, Jon Adcock wrote:

  
  
  Michael,
   
    Very helpful.  The last link gave me something the
  latch onto.  Here is the top of my status.dat file:
  
  info {
      created=1317748445
      version=3.3.1
      last_update_check=1317680163
      update_available=0
      last_version=3.3.1
      new_version=3.3.1
      }
   
    So it appears that Nagios is checking just fine.  So my
  problem appears to be the in main.php, which never did display
  the "update available" banner when I was running version 3.2.3
  (and 3.3.1 had been out for a week).  Any ideas?



  that'll be a bug report for nagios developers then. the only
  support from my side on that functionality - you can have a
  patchset which completely removes the home calling functionality
  from both, core and gui and re-adds the default look on the
  tac.cgi - but i don't think that you want that ;-))
  
  


  

   
  

  
  
  Jon Adcock
  Network Systems Administrator
  Leon County MIS
301 S. Monroe St.
Tallahassee, FL  32301
Office:  (850) 606-5518
  adco...@leoncountyfl.gov
   

 On 10/4/2011 at 11:32 AM, Michael Friedrich
  michael.friedr...@univie.ac.at wrote:

  

  

  On 02.10.2011 02:14, Jon Adcock
  wrote:

  
  This feature (check for updates) does not
  appear to be working for me.  When 3.3.1 came out,
  I waited for a week, and never saw the update
  available banner displayed on the Nagios main
  landing page (main.php).  I've been playing with
  the main.php page to get it to display the
  date/time of the last update check, and it returns
  blank (no value), so I'm assuming that too mean
  it's not actually checking.
   
    I am currently running Nagios 3.3.1 on the
  Novell SLES v10 server (Nagios compiled from
  source).  Can anyone give me some troubleshooting
  steps to get me started?  For example, is there a
  way to enable logging of the check for updates
  feature, and is there a way to manually start the
  update check (the API, not the web page URL link)?


  the core is scheduling call home events and saves the
  version information and various other attributes in
  both status.dat and retention.dat. the cgis (or the
  php part of it) parse that information into a readable
  version onto the web.
  
  http://nagios.svn.sourceforge.net/viewvc/nagios/nagioscore/trunk/include/nagios.h?revision=1786view=markup
  line 129ff
  http://nagios.svn.sourceforge.net/viewvc/nagios/nagioscore/trunk/base/utils.c?revision=1797view=markup
  line 3724ff
  http://nagios.svn.sourceforge.net/viewvc/nagios/nagioscore/trunk/xdata/xsddefault.c?revision=1793view=markup
  405ff
  http://nagios.svn.sourceforge.net/viewvc/nagios/nagioscore/trunk/xdata/xrddefault.c?revision=1787view=markup
  317ff
  http://nagios.svn.sourceforge.net/viewvc/nagios/nagioscore/trunk/html/includes/utils.inc.php?revision=1242
  
  so i would guess if you don't allow the nagios core to
  phone home, it won't show an updated version.
  scheduling cycle is somewhere around 22 hours,
  changing is only possible if you recompile.
  
  
  


   
   
  


Jon Adcock
Network Systems
  Administrator
Leon County MIS
  301 S. Monroe St.
  Tallahassee, FL  32301
  Office:  (850) 606-5518
adco...@leoncountyfl.gov
 
  
  

--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of a

Re: [Nagios-users] wiki.nagios.org

2011-09-27 Thread Michael Friedrich
 Original Message  
Subject: Re: [Nagios-users] wiki.nagios.org
From: Andreas Ericsson a...@op5.se
To: Nagios Users List nagios-users@lists.sourceforge.net
Date: 2011-09-26 23:28
 On 09/26/2011 03:36 PM, Michael Friedrich wrote:
 ... redirects to the nagios xi and fusion wikis, the commercial part of
 nagios. did the oss part finally disappear?

 *confused*

 I think it's just a matter of documentation being merged for both
 paid and free versions, and the paid version had better docs than
 the free one.

 Not sure though. Is anything missing?

well had been looking for selinux, wanted to check developer guidelines 
for nagios - all are forwarders. google search indicates the old urls in 
its cache.

http://wiki.nagios.org/index.php/Developer_Guidelines - try it out.

i just wanted to ask if that is intended - it's not fun, clicking 
through the pages to find valuable information, as a user reported.
if the merge happens soon enough, someone might tell that somewhere not 
to confuse anyone out there (if not happened already).

jm2c,
michael

-- 
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email:  michael.friedr...@univie.ac.at
phone:  +43 1 4277 14359
mobile: +43 664 60277 14359
fax:+43 1 4277 14338
web:http://www.univie.ac.at/zid
http://www.aco.net

Icinga Core  IDOUtils Developer
http://www.icinga.org


--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
___
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] wiki.nagios.org

2011-09-26 Thread Michael Friedrich
... redirects to the nagios xi and fusion wikis, the commercial part of 
nagios. did the oss part finally disappear?

*confused*

michael

-- 
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email:  michael.friedr...@univie.ac.at
phone:  +43 1 4277 14359
mobile: +43 664 60277 14359
fax:+43 1 4277 14338
web:http://www.univie.ac.at/zid
http://www.aco.net

Icinga Core  IDOUtils Developer
http://www.icinga.org


--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
___
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] perfdata-file not working the same since upgrade from 3.0.2 to 3.3.1

2011-09-17 Thread Michael Friedrich
On 07.09.2011 11:26, Ton Voon wrote:

 On 7 Sep 2011, at 10:08, Michael Friedrich wrote:

 On 2011-09-06 21:35, Joe Hoot wrote:
 Yep.  I had seen your post earlier and was hoping that there was an 
 additional variable that I could add to tell nagios to include non-perfdata 
 information in that file.  This is a shame.  In the past, my Nagios 
 upgrades have went very smoothly.

 Thanks for the reply.   I am now happily up and running again on 3.2.3

 I've been tracking down this problem already in Icinga 1.3.x and
 provided a proper fix for our users. Unless there's a properly tested
 3.3.x release you might wanna check my github branches for nagios 3.3.1
 fixes. it's nothing official, but just a little help from the other
 evil side named Icinga me being a core dev there too.

 https://github.com/dnsmichi/nagios-fixed/commits/3.3.1-fixes

 feel free to test and/or use that and provide feedback on the nagios
 lists if any.

 Thanks for finding this Michael.

 I was going to change this so that enable_performance_processing=0 would not 
 write anything, enable_performance_processing=1 does the old way (everything) 
 and a new enable_performance_processing=2 would do this new behaviour.

 If you could amend your change to work in this way, I'll commit to core. If 
 not, let me know and I'll look at it later.

sorry, been busy at work. i've now had a closer look into the code, the 
option you are actually referring to would be process_performance_data. 
changing this to a non boolean behaviour will require a lot of changes 
to the actual code (lots of conditions depending on either 0 or 1). So 
i'd vote either for a new config option (like i did in Icinga) or remove 
the code (as shown in my nagios-fixed tree).

kind regards,
michael

-- 
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email: michael.friedr...@univie.ac.at
phone: +43 1 4277 14359
mobile:+43 664 60277 14359
fax:   +43 1 4277 14338
web:   http://www.univie.ac.at/zid
http://www.aco.net

Icinga Core  IDOUtils Developer
http://www.icinga.org


--
BlackBerryreg; DevCon Americas, Oct. 18-20, San Francisco, CA
http://p.sf.net/sfu/rim-devcon-copy2
___
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] perfdata-file not working the same since upgrade from 3.0.2 to 3.3.1

2011-09-07 Thread Michael Friedrich
On 2011-09-06 21:35, Joe Hoot wrote:
 Yep.  I had seen your post earlier and was hoping that there was an 
 additional variable that I could add to tell nagios to include non-perfdata 
 information in that file.  This is a shame.  In the past, my Nagios upgrades 
 have went very smoothly.

 Thanks for the reply.   I am now happily up and running again on 3.2.3

I've been tracking down this problem already in Icinga 1.3.x and 
provided a proper fix for our users. Unless there's a properly tested 
3.3.x release you might wanna check my github branches for nagios 3.3.1 
fixes. it's nothing official, but just a little help from the other 
evil side named Icinga me being a core dev there too.

https://github.com/dnsmichi/nagios-fixed/commits/3.3.1-fixes

feel free to test and/or use that and provide feedback on the nagios 
lists if any.

kind regards,
michael


 On Sep 6, 2011, at 1:01 PM, Michael Friedrich wrote:


 On 06.09.2011 18:36, Joe Hoot wrote:
 Hi all,

 I recently upgraded from Nagios Core 3.0.2 to 3.3.1.  Once upgraded, I 
 noticed that my nagiosgraph wasn't graphing data from some custom checks 
 that I wrote.  After further investigation, it turns out that nagiosgraph 
 isn't seeing of the output from my check commands.  This information used 
 to go to my service_perfdata_file.

 I have the following template setup:

 service_perfdata_file_template=$LASTSERVICECHECK$||$HOSTNAME$||$SERVICEDESC$||$SERVICEOUTPUT$||$SERVICEPERFDATA$


 And that has worked just fine for nagiosgraph to pull that information and 
 parse it in order to fill rrd data.  But now that I've upgraded to 3.3.1, I 
 don't appear to be seeing any of my custom commands (ones that don't have 
 perfdata) in that file.  And upon investigating more, if I include perfdata 
 in my custom commands, it sends to that perfdata_file just fine.  but if 
 the performance data isn't there, it doesn't show up in that file.
 nagios 3.3.1 does not process empty perfdata macros anymore which causes
 those results not to be put onto the perfdata channel. so all your
 plugins not returning perfdata won't even be put over there where
 nagiosgraph and other addons might calculate their perfdata from the
 output themselves.

 Is this a bug?
 i consider it a bug as it breaks compatibility. previous discussions on
 nagios-* mailinglists can be found in the archive. dunno when this will
 get fixed.

 http://www.mail-archive.com/nagios-users@lists.sourceforge.net/msg36537.html
 http://comments.gmane.org/gmane.network.nagios.devel/8128

 i'd suggest downgrading onto 3.2.3 and wait for a properly tested 3.3.x
 release.

 kind regards,
 Michael

 -- 
 DI (FH) Michael Friedrich

 Vienna University Computer Center
 Universitaetsstrasse 7 A-1010 Vienna, Austria

 email: michael.friedr...@univie.ac.at
 phone: +43 1 4277 14359
 mobile:+43 664 60277 14359
 fax:+43 1 4277 14338
 web:   http://www.univie.ac.at/zid
 http://www.aco.net

 Icinga Core   IDOUtils Developer
 http://www.icinga.org


 --
 Special Offer -- Download ArcSight Logger for FREE!
 Finally, a world-class log management solution at an even better
 price-free! And you'll get a free Love Thy Logs t-shirt when you
 download Logger. Secure your free ArcSight Logger TODAY!
 http://p.sf.net/sfu/arcsisghtdev2dev
 ___
 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

 --
 Malware Security Report: Protecting Your Business, Customers, and the
 Bottom Line. Protect your business and customers by understanding the
 threat from malware and how it can impact your online business.
 http://www.accelacomm.com/jaw/sfnl/114/51427462/
 ___
 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



-- 
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email: michael.friedr...@univie.ac.at
phone: +43 1 4277 14359
mobile:+43 664 60277 14359
fax:   +43 1 4277 14338
web:   http://www.univie.ac.at/zid
http://www.aco.net

Icinga Core  IDOUtils Developer
http://www.icinga.org



--
Using storage to extend the benefits of virtualization and iSCSI
Virtualization increases hardware utilization and delivers a new level of
agility. Learn what

Re: [Nagios-users] perfdata-file not working the same since upgrade from 3.0.2 to 3.3.1

2011-09-07 Thread Michael Friedrich
On 2011-09-07 11:26, Ton Voon wrote:
 On 7 Sep 2011, at 10:08, Michael Friedrich wrote:

 On 2011-09-06 21:35, Joe Hoot wrote:
 Yep.  I had seen your post earlier and was hoping that there was an 
 additional variable that I could add to tell nagios to include non-perfdata 
 information in that file.  This is a shame.  In the past, my Nagios 
 upgrades have went very smoothly.

 Thanks for the reply.   I am now happily up and running again on 3.2.3
 I've been tracking down this problem already in Icinga 1.3.x and
 provided a proper fix for our users. Unless there's a properly tested
 3.3.x release you might wanna check my github branches for nagios 3.3.1
 fixes. it's nothing official, but just a little help from the other
 evil side named Icinga me being a core dev there too.

 https://github.com/dnsmichi/nagios-fixed/commits/3.3.1-fixes

 feel free to test and/or use that and provide feedback on the nagios
 lists if any.
 Thanks for finding this Michael.

 I was going to change this so that enable_performance_processing=0 would not 
 write anything, enable_performance_processing=1 does the old way (everything) 
 and a new enable_performance_processing=2 would do this new behaviour.

 If you could amend your change to work in this way, I'll commit to core. If 
 not, let me know and I'll look at it later.

sounds good. tommorrow will be an icinga hack session here in nuremberg, 
so i think i'll check that out too. i like the proposal of reusing the 
enable_perfdata_processing better than my initial config variable attempt.

thanks for the hint and stay tuned ;-)

kind regards,
michael

 Ton


 --
 Using storage to extend the benefits of virtualization and iSCSI
 Virtualization increases hardware utilization and delivers a new level of
 agility. Learn what those decisions are and how to modernize your storage
 and backup environments for virtualization.
 http://www.accelacomm.com/jaw/sfnl/114/51434361/
 ___
 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



-- 
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email: michael.friedr...@univie.ac.at
phone: +43 1 4277 14359
mobile:+43 664 60277 14359
fax:   +43 1 4277 14338
web:   http://www.univie.ac.at/zid
http://www.aco.net

Icinga Core  IDOUtils Developer
http://www.icinga.org



--
Using storage to extend the benefits of virtualization and iSCSI
Virtualization increases hardware utilization and delivers a new level of
agility. Learn what those decisions are and how to modernize your storage 
and backup environments for virtualization.
http://www.accelacomm.com/jaw/sfnl/114/51434361/
___
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] perfdata-file not working the same since upgrade from 3.0.2 to 3.3.1

2011-09-06 Thread Michael Friedrich


On 06.09.2011 18:36, Joe Hoot wrote:
 Hi all,

 I recently upgraded from Nagios Core 3.0.2 to 3.3.1.  Once upgraded, I 
 noticed that my nagiosgraph wasn't graphing data from some custom checks that 
 I wrote.  After further investigation, it turns out that nagiosgraph isn't 
 seeing of the output from my check commands.  This information used to go to 
 my service_perfdata_file.

 I have the following template setup:

 service_perfdata_file_template=$LASTSERVICECHECK$||$HOSTNAME$||$SERVICEDESC$||$SERVICEOUTPUT$||$SERVICEPERFDATA$


 And that has worked just fine for nagiosgraph to pull that information and 
 parse it in order to fill rrd data.  But now that I've upgraded to 3.3.1, I 
 don't appear to be seeing any of my custom commands (ones that don't have 
 perfdata) in that file.  And upon investigating more, if I include perfdata 
 in my custom commands, it sends to that perfdata_file just fine.  but if the 
 performance data isn't there, it doesn't show up in that file.

nagios 3.3.1 does not process empty perfdata macros anymore which causes 
those results not to be put onto the perfdata channel. so all your 
plugins not returning perfdata won't even be put over there where 
nagiosgraph and other addons might calculate their perfdata from the 
output themselves.


 Is this a bug?

i consider it a bug as it breaks compatibility. previous discussions on 
nagios-* mailinglists can be found in the archive. dunno when this will 
get fixed.

http://www.mail-archive.com/nagios-users@lists.sourceforge.net/msg36537.html
http://comments.gmane.org/gmane.network.nagios.devel/8128

i'd suggest downgrading onto 3.2.3 and wait for a properly tested 3.3.x 
release.

kind regards,
Michael

-- 
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email: michael.friedr...@univie.ac.at
phone: +43 1 4277 14359
mobile:+43 664 60277 14359
fax:   +43 1 4277 14338
web:   http://www.univie.ac.at/zid
http://www.aco.net

Icinga Core  IDOUtils Developer
http://www.icinga.org


--
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free Love Thy Logs t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Email notifications not getting Out

2011-09-05 Thread Michael Friedrich

nag ios wrote:
The error which i'm getting has been attached please take a look and 
let me know

any thing to be changed

I have attached both my error and mail settings screenshots please 
check them out


1.) do not attach images on this mailinglist
2.) since this is nagiosxi related, refer to their support at 
support.nagios.com








--
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better
price-free! And you'll get a free Love Thy Logs t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev


___
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



--
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email:  michael.friedr...@univie.ac.at
phone:  +43 1 4277 14359
mobile: +43 664 60277 14359
fax:+43 1 4277 14338
web:http://www.univie.ac.at/zid
http://www.aco.net

Icinga Core  IDOUtils Developer
http://www.icinga.org

--
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free Love Thy Logs t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Passive host count

2011-08-31 Thread Michael Friedrich

trm asn wrote:



On Wed, Aug 24, 2011 at 11:01 AM, trm asn trm.nag...@gmail.com 
mailto:trm.nag...@gmail.com wrote:


Hi List,

I have one Active+Passive checks nagios server . Under tac.cgi ,
the passive host checks count is 0.

# Active Host / Service Checks:584 / 44
# Passive Host / Service Checks:0 / 2544


Is there any workaround to make this fix.


/\
dE

Hi List,

What is the way to get the passive host check count in tac.cgi .


rewrite the c code.



/\
dE


--
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better
price-free! And you'll get a free Love Thy Logs t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev


___
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



--
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email:  michael.friedr...@univie.ac.at
phone:  +43 1 4277 14359
mobile: +43 664 60277 14359
fax:+43 1 4277 14338
web:http://www.univie.ac.at/zid
http://www.aco.net

Icinga Core  IDOUtils Developer
http://www.icinga.org

--
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free Love Thy Logs t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] email notification error

2011-08-25 Thread Michael Friedrich
/ (nagiostst.example.com 
http://nagiostst.example.com/ [127.0.0.1])
by nagiostst.example.com http://nagiostst.example.com/ 
(8.13.8/8.13.8) with ESMTP id p727qVbP014105;

   Tue, 2 Aug 2011 13:25:11 +0530
Date: Tue, 2 Aug 2011 13:22:31 +0530
From: krishna.nuk...@infotech-enterprises.com 
mailto:krishna.nuk...@infotech-enterprises.com
Message-Id: 201108020755.p727qvbp014...@nagiostst.example.com 
mailto:201108020755.p727qvbp014...@nagiostst.example.com

Status: RO

test mail
check it out

From r...@nagiostst.example.com mailto:r...@nagiostst.example.com 
 Tue Aug  2 07:00:12 2011
Return-Path: r...@nagiostst.example.com 
mailto:r...@nagiostst.example.com
Received: from nagiostst.example.com http://nagiostst.example.com/ 
(nagiostst.example.com http://nagiostst.example.com/ [127.0.0.1])
   by nagiostst.example.com http://nagiostst.example.com/ 
(8.13.8/8.13.8) with ESMTP id p721U4LC022775
   for r...@nagiostst.example.com 
mailto:r...@nagiostst.example.com; Tue, 2 Aug 2011 07:00:12 +0530

Received: (from root@localhost)
   by nagiostst.example.com http://nagiostst.example.com/ 
(8.13.8/8.13.8/Submit) id p721U4Tq022773;

   Tue, 2 Aug 2011 07:00:04 +0530
Date: Tue, 2 Aug 2011 07:00:04 +0530
Message-Id: 201108020130.p721u4tq022...@nagiostst.example.com 
mailto:201108020130.p721u4tq022...@nagiostst.example.com
From: r...@nagiostst.example.com mailto:r...@nagiostst.example.com 
(Cron Daemon)

To: r...@nagiostst.example.com mailto:r...@nagiostst.example.com
Subject: Cron root@nagiostst /root/scripts/automysqlbackup
Content-Type: text/plain; charset=UTF-8
Auto-Submitted: auto-generated
X-Cron-Env: SHELL=/bin/sh
X-Cron-Env: HOME=/root
X-Cron-Env: PATH=/usr/bin:/bin
X-Cron-Env: LOGNAME=root
X-Cron-Env: USER=root
Status: RO



--
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management
Up to 160% more powerful than alternatives and 25% more efficient.
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev


___
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


--
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email: michael.friedr...@univie.ac.at
phone: +43 1 4277 14359
mobile:+43 664 60277 14359
fax:   +43 1 4277 14338
web:   http://www.univie.ac.at/zid
   http://www.aco.net

Icinga Core  IDOUtils Developer
http://www.icinga.org

--
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] problem with checks being rescheduled outside their timeperiod

2011-08-23 Thread Michael Friedrich
Brian Murphy wrote:
 Hmmm well I have found my problem but have not got a solution.

 NTP is changing the time on the system, and then

 [1313911134.718762] [001.0] [pid=14714] compensate_for_system_time_change() 
 start
 [1313911134.718767] [008.0] [pid=14714] Detected a backwards time change of 
 0d 0h 0m 1s.
 [1313911134.718833] [001.0] [pid=14714] adjust_timestamp_for_time_change()
 [1313911134.718841] [001.0] [pid=14714] adjust_timestamp_for_time_change()

 the adjust_timestamp_for_time_change() (in events.c) does not check the 
 timeperiod for the check, it just applies the time change to it, therefore 
 often moving it out of its timeperiod and causing it not to run, and to be 
 rescheduled for the next day.

 [1313504998.099400] [016.0] [pid=2285] Attempting to run scheduled check of 
 service 'DAILY JOB' on host 'host': check options=0, latency=0.099000
 [1313504998.099408] [001.0] [pid=2285] run_async_service_check()
 [1313504998.099412] [001.0] [pid=2285] check_service_check_viability()
 [1313504998.099417] [001.0] [pid=2285] check_time_against_period()
 [1313504998.099439] [016.2] [pid=2285] This is not a valid time for this 
 service to be actively checked.
 [1313504998.099445] [001.0] [pid=2285] check_service_dependencies()
 [1313504998.099451] [016.1] [pid=2285] Unable to run scheduled service check 
 at this time
 [1313504998.099455] [001.0] [pid=2285] get_next_valid_time()
 [1313504998.099459] [001.0] [pid=2285] check_time_against_period()
 [1313504998.099471] [001.0] [pid=2285] check_time_against_period()
 [1313504998.099484] [016.1] [pid=2285] Rescheduled next service check for Thu 
 Aug 18 02:30:00 2011

 that is the next day, that 02:30:00 time is going outside the timeperiod if 
 there is a second lost in the next 24 hours too.

 There seems to be something unrequired here, the checks have been scheduled 
 for a time time x, the real time, time y, has been adjusted but we still want 
 the check to run at time x! Or to catch up as much as required running checks 
 scheduled in the new past!

 Anyway, apart from not having the Virtual time move around on me, has anyone 
 got any suggestions to stop the time rescheduling going outside the 
 timeperiods?

just don't use it. make a cron scheduling a downtime instead to suppress 
notifications.

the code with timeperiods is not covering 100% of the cases where it 
could be triggered and calculating a valid next check time. 
tracker.nagios.org holds an old issue on that while you can also read 
about that on the nagios-devel mailinglist archives.

 Brian


-- 
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email:  michael.friedr...@univie.ac.at
phone:  +43 1 4277 14359
mobile: +43 664 60277 14359
fax:+43 1 4277 14338
web:http://www.univie.ac.at/zid
http://www.aco.net

Icinga Core  IDOUtils Developer
http://www.icinga.org


--
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Nagios Core Log file

2011-08-08 Thread Michael Friedrich

On 2011-08-08 18:01, Robert J Molerio wrote:

Hello,

I was told the NAGIOS CORE  logfile  would log any changes made to 
host command  execution ie:  External commands:who turned off what 
and  when.

Upon examination of my logfile it sems that this is not the case.
The log file indicates only that a particular service was enabled or 
disable but it does not indiacte the user id that performed the change.

Can anyone point me in the right direction to make this happen?


this isn't possible with nagios core. you'd better catch up on your 
application sending the external commands, logging that to somewhere. 
e.g. if you are using the nagios classic ui with the cmd.cgi, you might 
hack that to log the user into a seperate file.
we did hack that in icinga classic and cmd.cgi so that each user and ip 
address are logged into a seperated file (see 
https://dev.icinga.org/issues/1161 for more information). but vanilla 
nagios cgis don't support that - supposingly you'll open a feature 
request (if not already there) on tracker.nagios.org to get that feature 
into nagios too.


kind regards,
michael


Snippet of log file :
[root@its019-lap-v:var]# pwd
/usr/local/nagios/var
[root@its019-lap-v:var]# ls -lat
total 188
drwxrwxr-x 5 nagios nagios  4096 Aug  8 11:15 .
-rw-rw-r-- 1 nagios nagios 51204 Aug  8 11:15 status.dat
-rw-r--r-- 1 nagios nagios  4561 Aug  8 11:09 nagios.log
-rw--- 1 nagios nagios 50697 Aug  8 11:09 retention.dat
drwxrwxr-x 2 nagios nagios  4096 Aug  8 00:00 archives
-rw-r--r-- 1 nagios nagios 41229 Aug  5 15:09 objects.cache
-rw-r--r-- 1 nagios nagios 6 Aug  1 13:24 nagios.lock
drwxrwsr-x 2 nagios nagcmd  4096 Aug  1 13:24 rw
drwxrwxr-x 9 nagios nagios  4096 Jul  1 15:06 ..
drwxrwxr-x 3 nagios nagios  4096 Jun 27 15:54 spool
[root@its019-lap-v:var]# cat nagios.log
[1312776000] LOG ROTATION: DAILY
[1312776000] LOG VERSION: 2.0
[1312776541] Auto-save of retention data completed successfully.
[1312780141] Auto-save of retention data completed successfully.
[1312783741] Auto-save of retention data completed successfully.
[1312787341] Auto-save of retention data completed successfully.
[1312790941] Auto-save of retention data completed successfully.
[1312794541] Auto-save of retention data completed successfully.
[1312798141] Auto-save of retention data completed successfully.
[1312801741] Auto-save of retention data completed successfully.
[1312805172] EXTERNAL COMMAND: DEL_ALL_SVC_COMMENTS;TPC Server;root space
[1312805341] Auto-save of retention data completed successfully.
[1312808941] Auto-save of retention data completed successfully.
[1312812541] Auto-save of retention data completed successfully.
[1312816017] EXTERNAL COMMAND: ENABLE_SVC_NOTIFICATIONS;Nagios Server;HTTP
[1312816033] EXTERNAL COMMAND: ENABLE_SVC_NOTIFICATIONS;Nagios Server;SSH
[1312816141] Auto-save of retention data completed successfully.


--
Thank you,

Bob Molerio
Systems Administrator
New York University
ITS Computer Facilities Services/Infrastructure
Level C-2
75 Third Avenue
New York NY 10003-5527
email:robert.mole...@nyu.edu mailto:robert.mole...@nyu.edu


--
BlackBerryreg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts.
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos  much more. Register early  save!
http://p.sf.net/sfu/rim-blackberry-1


___
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



--
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email: michael.friedr...@univie.ac.at
phone: +43 1 4277 14359
mobile:+43 664 60277 14359
fax:   +43 1 4277 14338
web:   http://www.univie.ac.at/zid
   http://www.aco.net

Icinga Core  IDOUtils Developer
http://www.icinga.org


--
BlackBerryreg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos  much more. Register early  save!
http://p.sf.net/sfu/rim-blackberry-1___
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] wiki spam problem is MUCH worse, actually

2011-08-04 Thread Michael Friedrich
Keith Erekson wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 In typical Mediawiki fashion... looks like user registration has been
 left on, resulting in 1000+ users:

 http://wiki.nagios.org/index.php?title=Special:ListUserslimit=500

 Which leads to the wiki being used to host all *sorts* of interesting
 spam:

 http://wiki.nagios.org/index.php?title=Special:UncategorizedPageslimit=500offset=0

 ;-)

probably the admins are busy changing wikipedia articles instead, 
removing the bad forks shinken and icinga from the content.

http://en.wikipedia.org/w/index.php?title=Nagiosaction=history
http://de.wikipedia.org/w/index.php?title=Nagiosaction=history

 - -- 

 Keith Erekson
 Systems Engineer
 Digirati Consulting
 erek...@digiraticonsulting.com
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iEYEARECAAYFAk46uBMACgkQNYHf3mzWKbH8wQCdEuYk3k+rc8+ghpGDCOWMpVgf
 NGUAnA3l9mhXqhzYkgA/B/9/jcz9x91C
 =pDHc
 -END PGP SIGNATURE-


 --
 BlackBerryreg; DevCon Americas, Oct. 18-20, San Francisco, CA
 The must-attend event for mobile developers. Connect with experts.
 Get tools for creating Super Apps. See the latest technologies.
 Sessions, hands-on labs, demos  much more. Register early  save!
 http://p.sf.net/sfu/rim-blackberry-1
 ___
 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



-- 
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email:  michael.friedr...@univie.ac.at
phone:  +43 1 4277 14359
mobile: +43 664 60277 14359
fax:+43 1 4277 14338
web:http://www.univie.ac.at/zid
http://www.aco.net

Icinga Core  IDOUtils Developer
http://www.icinga.org


--
BlackBerryreg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos  much more. Register early  save!
http://p.sf.net/sfu/rim-blackberry-1
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] nagios Make Install error on 3.3.1

2011-08-03 Thread Michael Friedrich

Lees, Stewart wrote:

Hello First time user of Nagios.
  
Im having the same problem as described below how do I utilise this patch ?


download the patched file from here and replace it

http://www.nagios-portal.org/wbb/index.php?page=ThreadpostID=154526#post154526

that's easier than hacking the makefile yourself.


  
Regards

Stewart.
  
We're seeing an error during make install of 3.3.1.
  
I have checked the install  upgrade docs for 3.3.1, all prerequisites
  
are already installed. 3.2.3 still installs with no errors.
  
  
  
For others with this issue, please see patch below which comes courtesy

of Craig Genner. It provides a work-around for the bug in the html
directory Makefile.
  
  
  
Hi Andy,
  
Happy for you to post it as a work around.  Glad I could help you get

it working.
  
Thanks
  
  
  
diff -u nagios/html/Makefile.in nagios-3.3.1/html/Makefile
  
--- nagios/html/Makefile.in 2011-07-24 18:53:52.0 +0100
  
+++ nagios-3.3.1/html/Makefile  2011-07-26 22:23:35.0 +0100
  
@@ -75,8 +75,7 @@
  
  do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file

$(DESTDIR)$(HTMLDIR)/images/logos; done
  
  for file in includes/*.*; \
  
  do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file

$(DESTDIR)$(HTMLDIR)/includes; done
  
-   for file in includes/rss/*; \
  
-   do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file

$(DESTDIR)$(HTMLDIR)/includes/rss; done
  
+   find includes/rss/ -maxdepth 1 -type f -exec $(INSTALL) -m 664

$(INSTALL_OPTS) {} $(DESTDIR)$(HTMLDIR)/includes/rss \;
  
  for file in includes/rss/extlib/*; \
  
  do $(INSTALL) -m 664 $(INSTALL_OPTS) $$file

$(DESTDIR)$(HTMLDIR)/includes/rss/extlib; done
  
  
  
  
  
Regards
  
  
  
Andy.
  



--
BlackBerryreg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts.
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos  much more. Register early  save!
http://p.sf.net/sfu/rim-blackberry-1


___
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



--
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email:  michael.friedr...@univie.ac.at
phone:  +43 1 4277 14359
mobile: +43 664 60277 14359
fax:+43 1 4277 14338
web:http://www.univie.ac.at/zid
http://www.aco.net

Icinga Core  IDOUtils Developer
http://www.icinga.org

--
BlackBerryreg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos  much more. Register early  save!
http://p.sf.net/sfu/rim-blackberry-1___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Nagios 3.3.1 compile error

2011-08-01 Thread Michael Friedrich

Jeremy Gibbs wrote:
I am running FreeBSD version 8.1.  I have Nagios core 3.2.3 compiled 
and installed.  I ran


./configure --sysconfdir=/etc/nagios --localstatedir=/var/nagios 
--with-command-group=nagcmd


and

make all

then

make install.

Make install is where I get this error.

for file in includes/rss/*;  do /usr/bin/install -c -m 664 -o nagios 
-g nagios $file /usr/local/nagios/share/includes/rss; done

install: includes/rss/extlib: Inappropriate file type or format
*** Error code 71

Stop in /usr/src/nagios/3.3.1/html.
*** Error code 1

Stop in /usr/src/nagios/3.3.1. http://3.3.1.

Any ideas?


search for [Nagios-users] nagios Make Install error on 3.3.1 in the 
mailing lists archives ...





--
Jeremy L. Gibbs
Systems Administrator
Utica College
Integrated Information Technology Services
(315) 223-2383


--
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey


___
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



--
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email:  michael.friedr...@univie.ac.at
phone:  +43 1 4277 14359
mobile: +43 664 60277 14359
fax:+43 1 4277 14338
web:http://www.univie.ac.at/zid
http://www.aco.net

Icinga Core  IDOUtils Developer
http://www.icinga.org

--
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] nagios 3.3.1 ./configure error

2011-07-28 Thread Michael Friedrich
Mark Elsen wrote:
 I was installing nagios3.3.1 and got this message
 i have shown the lines ending in 'no'

 please help
 root@ubuntu11:~/software/open_source/nagios/nagios# ./configure 
 --enable-embedded-perl --with-perlcache --with-command-group=nagcmd

offtopic: disable embedded perl by compile time. it can cause memory 
leaks and unknown behaviour on the embedded execution of perl based plugins.

 checking whether we are cross compiling... no
 checking for gcc option to accept ANSI C... none needed
 ...
   Please post the full configure output.

   M.

 --
 Got Input?   Slashdot Needs You.
 Take our quick survey online.  Come on, we don't ask for help often.
 Plus, you'll get a chance to win $100 to spend on ThinkGeek.
 http://p.sf.net/sfu/slashdot-survey
 ___
 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



-- 
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email:  michael.friedr...@univie.ac.at
phone:  +43 1 4277 14359
mobile: +43 664 60277 14359
fax:+43 1 4277 14338
web:http://www.univie.ac.at/zid
http://www.aco.net

Icinga Core  IDOUtils Developer
http://www.icinga.org


--
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
___
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] empty perfdata not put on perfdata channels anymore in 3.3.1

2011-07-26 Thread Michael Friedrich
::check_ping!100.0,20%!500.0,60%  
HOSTSTATE::UP   HOSTSTATETYPE::HARD SERVICESTATE::OK
SERVICESTATETYPE::HARD
DATATYPE::SERVICEPERFDATA   TIMET::1311690495   
HOSTNAME::localhost SERVICEDESC::Root Partition 
SERVICEPERFDATA::/=636MB;3172;3569;0;3966   
SERVICECHECKCOMMAND::check_local_disk!20%!10%!/  HOSTSTATE::UP   
HOSTSTATETYPE::HARD SERVICESTATE::OKSERVICESTATETYPE::HARD
DATATYPE::SERVICEPERFDATA   TIMET::1311690535   
HOSTNAME::localhost SERVICEDESC::SSH *SERVICEPERFDATA:: 
*SERVICECHECKCOMMAND::check_ssh  HOSTSTATE::UP   HOSTSTATETYPE::HARD  
SERVICESTATE::OKSERVICESTATETYPE::HARD
DATATYPE::SERVICEPERFDATA   TIMET::1311690575   
HOSTNAME::localhost SERVICEDESC::Swap Usage 
SERVICEPERFDATA::swap=975MB;0;0;0;1027  
SERVICECHECKCOMMAND::check_local_swap!20!10  HOSTSTATE::UP   
HOSTSTATETYPE::HARD SERVICESTATE::OKSERVICESTATETYPE::HARD
DATATYPE::SERVICEPERFDATA   TIMET::1311690615   
HOSTNAME::localhost SERVICEDESC::Total Processes *SERVICEPERFDATA:: 
*SERVICECHECKCOMMAND::check_local_procs!250!400!RSZDT HOSTSTATE::UP   
HOSTSTATETYPE::HARD SERVICESTATE::OKSERVICESTATETYPE::HARD
DATATYPE::SERVICEPERFDATA   TIMET::1311690645   
HOSTNAME::localhost SERVICEDESC::Current Load   
SERVICEPERFDATA::load1=0.000;5.000;10.000;0; load5=0.020;4.000;6.000;0; 
load15=0.000;3.000;4.000;0;  
SERVICECHECKCOMMAND::check_local_load!5.0,4.0,3.0!10.0,6.0,4.0  
HOSTSTATE::UP   HOSTSTATETYPE::HARD SERVICESTATE::OK
SERVICESTATETYPE::HARD


--
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email:  michael.friedr...@univie.ac.at
phone:  +43 1 4277 14359
mobile: +43 664 60277 14359
fax:+43 1 4277 14338
web:http://www.univie.ac.at/zid
http://www.aco.net

Icinga Core  IDOUtils Developer
http://www.icinga.org

--
Magic Quadrant for Content-Aware Data Loss Prevention
Research study explores the data loss prevention market. Includes in-depth
analysis on the changes within the DLP market, and the criteria used to
evaluate the strengths and weaknesses of these DLP solutions.
http://www.accelacomm.com/jaw/sfnl/114/51385063/___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Defining command and service manually in Nagios XI

2011-07-25 Thread Michael Friedrich

Kumar, Ashish wrote:


  I amthinking to define a new command and new service in
Nagios XI , I have manually edited the configuration file in
/usr/local/etc/nagios.cfg  but *its not showing any that command
and service in the run Monitoring Wizard*



The commands are usually defined in /usr/local/nagios/etc/commands.cfg 
and not nagios.cfg


does not matter where you define it, just make sure to include those 
files. since this is a nagiosix question, you might refer to 
support.nagios.com instead ...




--
Storage Efficiency Calculator
This modeling tool is based on patent-pending intellectual property that
has been used successfully in hundreds of IBM storage optimization engage-
ments, worldwide.  Store less, Store more with what you own, Move data to
the right place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/


___
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



--
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email:  michael.friedr...@univie.ac.at
phone:  +43 1 4277 14359
mobile: +43 664 60277 14359
fax:+43 1 4277 14338
web:http://www.univie.ac.at/zid
http://www.aco.net

Icinga Core  IDOUtils Developer
http://www.icinga.org

--
Storage Efficiency Calculator
This modeling tool is based on patent-pending intellectual property that
has been used successfully in hundreds of IBM storage optimization engage-
ments, worldwide.  Store less, Store more with what you own, Move data to 
the right place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Fwd: parameter starting with dollar sign

2011-07-18 Thread Michael Friedrich
Frank Van Damme wrote:
 (Sorry for possible reposts. I'll stop reposting the day Gmane actually
 works).

 Does anybody know how to use a parameter to a check command that starts
 with a dollar sign? Nagios interprets the dollar as if I want to
 substitute the variable with a macro. I tried escaping, but then I get a
 literal \ backslash.

try $$ for an escaped dollar char, like described in the docs.


-- 
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email:  michael.friedr...@univie.ac.at
phone:  +43 1 4277 14359
mobile: +43 664 60277 14359
fax:+43 1 4277 14338
web:http://www.univie.ac.at/zid
http://www.aco.net

Icinga Core  IDOUtils Developer
http://www.icinga.org


--
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on Lean Startup 
Secrets Revealed. This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Fwd: parameter starting with dollar sign

2011-07-18 Thread Michael Friedrich
Frank Van Damme wrote:
 Op 18-07-11 10:16, Michael Friedrich schreef:
 Frank Van Damme wrote:
 (Sorry for possible reposts. I'll stop reposting the day Gmane actually
 works).

 Does anybody know how to use a parameter to a check command that starts
 with a dollar sign? Nagios interprets the dollar as if I want to
 substitute the variable with a macro. I tried escaping, but then I get a
 literal \ backslash.
 try $$ for an escaped dollar char, like described in the docs.
 It gets difficult when your value is from a macro and starts with a
 couple dollar signs though.

you didn't mention that in the first place. w/o any examples it will be 
hard to guess.

-- 
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email:  michael.friedr...@univie.ac.at
phone:  +43 1 4277 14359
mobile: +43 664 60277 14359
fax:+43 1 4277 14338
web:http://www.univie.ac.at/zid
http://www.aco.net

Icinga Core  IDOUtils Developer
http://www.icinga.org


--
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on Lean Startup 
Secrets Revealed. This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
___
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] added host not appearing in web interface

2011-06-11 Thread Michael Friedrich

On 2011-06-10 22:18, Kaplan, Andrew H. wrote:


Hi there --

We are running Nagios 3.1.2 with the NRPE 2.12 client on our systems. 
We recently installed the VirtualBox application
on one of our monitored systems, and have Ubuntu 10.04 LTS 64-bit as 
the guest operating system. We want to monitor
the disk usage, processes, mysql server, and rsyslogd daemon on the 
virtual machine, so the NRPE client was installed
and configured to start on system boot. After that was done, the 
appropriate changes were made to the various config files


on the Nagios server. The virtual machine and Nagios server were 
rebooted, in that order, after the changes were made.


When going through the web interface on the Nagios server, the virtual 
host does not appear listed in any of the pages.


I confirmed the nrpe daemon was operational on the client, and also 
verified that port 5666 was open, and the firewall on the


client was deactivated. The nrpe daemon is run via the /etc/rc.local 
file using the following command syntax:


/usr/local/nrpe/bin/nrpe -n -c /usr/local/nrpe/etc/nrpe.cfg -d

I checked the Nagios server, and confirmed the virtual host was listed 
in the /etc/hosts as well as the nagios configuration


files. The nslookup command, run on server and client, confirmed the 
presence of the virtual host in the DNS database.


What would cause the client not to appear in the Nagios web interface, 
and how can I correct it?




check if the host has been registered into the core itsself - 
objects.cache and/or status.dat


probably a faulty configuration is causing the configuration not being 
accepted.

to be sure, please post any accurate configs on that host.


Thanks.




The information in this e-mail is intended only for the person to whom 
it is
addressed. If you believe this e-mail was sent to you in error and the 
e-mail
contains patient information, please contact the Partners Compliance 
HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you 
in error
but does not contain patient information, please contact the sender 
and properly

dispose of the e-mail.


--
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev


___
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



--
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email: michael.friedr...@univie.ac.at
phone: +43 1 4277 14359
mobile:+43 664 60277 14359
fax:   +43 1 4277 14338
web:   http://www.univie.ac.at/zid
   http://www.aco.net

Icinga Core  IDOUtils Developer
http://www.icinga.org


--
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev___
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] IPv6 support

2011-06-10 Thread Michael Friedrich
Andreas Ericsson wrote:
 Not really. You can still achieve the exact same functionality with
 custom variables. What Michael has done is to make one such custom
 variable official, which breaks the ABI. He still has to use special
 plugins to check both ip4 and ip6 addresses at the same time, which is
 why I think it's quite stupid.

the dual check affinity only takes place in the host checking currently 
(where it does make sense to combine it with check_multi or any other 
conditional check wrapper). for other purposes you can still define your 
own checks and services, especially tagged as PING4 and PING6 e.g. - 
but no need to play around with get the 4 or 6 address from somewhere 
for the commandline, but just take the §HOSTADRESS(6)$ macros and be 
happy as it was demanded.

don't get me wrong, i know that abi changes and such make developer's 
going mad. but from a users perspective this was one of the things 
demanded the most. at least within the range of those sysadmins already 
running ipv4 and ipv6 in their productive environments. even more, those 
virtual appliances and clustered setups would need an even more in deep 
rewrite, but that's another story (service sets might be a good attempt 
for that).

 You can, but with custom variables. How many official addresses should
 Nagios support? 3? 5? Soon we'll run into someone who wants more than
 that, and then we're left with breaking the ABI again. And again. And
 again. Breaking the ABI causes major headaches for module developers and
 users. Custom variables don't break the ABI and causes minor headaches
 for people with complex environments, who hopefully get paid quite a
 lot to handle such complexities in an elegant way. Nagios makes that
 possible, while making the normal case (ip4 *or* ip6) possible.

using custom variables within the default nagios gui remains impossible 
to be shown and used without hacking c code. making it available would 
either cost to allow custom variables to be shown (what regex might be 
good to show only those? is it really custom then? etc) rather than just 
supporting the address6 host attribute - which remains implemented by a 
community members, tested by various and demanded by lots of.

-- 
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email:  michael.friedr...@univie.ac.at
phone:  +43 1 4277 14359
mobile: +43 664 60277 14359
fax:+43 1 4277 14338
web:http://www.univie.ac.at/zid
http://www.aco.net

Icinga Core  IDOUtils Developer
http://www.icinga.org


--
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
___
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] IPv6 support

2011-06-10 Thread Michael Friedrich
 Original Message  
Subject: Re: [Nagios-users] IPv6 support
From: Andreas Ericsson a...@op5.se
To: Nagios Users List nagios-users@lists.sourceforge.net
Date: 2011-06-10 14:09

 So give _address6 official status *in the ui*. Or make a config item
 that lets users specify which custom variables to show in the UI. Or
 show all of them by default. That's a change that actually makes sense,
 would have been far less intrusive and would have made very nearly
 everyone happy (especially the configure which you want to see, with
 a general switch to show all and then include/exclude parameters to
 filter passwords and whatnot out of the UI). Wasn't that the real
 reason behind the patches in the first place? That's at least the only
 real unique benefit from this over using custom vars.

 The problem here is actually laziness and possibly poor maintenance.
 When presented with the patch, you need to ask the submitter; What
 purpose does this patch serve and why is it so generally important
 that we have to break the ABI? Given some prodding, you would have
 found out that the user really just wants to see a special custom
 variable in the web-interface. Achieving that is basically peanuts,
 given half a day and a junior coder fresh out of kindergarten, so
 it's quite likely the submitter could have been persuaded to rewrite
 the patch like that so it would have been easy to maintain it. It
 would also have made it acceptable in the Nagios core and would have
 made life easier for those broker module authors that actually care
 about supporting Icinga and for the users that use modules with it.

 That turned a bit harsh there. Sorry about that.

conclusion - you won't accept such patches, i can live with the extra 
work they will cause. even with addons staying compatible with icinga 
but not supprting the address6 field. everything else still remains 
compatible and tested. but that's not the point within nagios related stuff.
there are other nagios patches pending, still breaking the abi (see some 
of opsviews patches and those from nagios-devel) which will make a 
change happen somewhere in the future. so maybe after a while users 
demand (even those from your customers), and it will hit nagios too. 
until then, let's just ask people out there what they really want and 
how *they* would achieve that. either live with it, patch it or even pay 
for it.



-- 
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email:  michael.friedr...@univie.ac.at
phone:  +43 1 4277 14359
mobile: +43 664 60277 14359
fax:+43 1 4277 14338
web:http://www.univie.ac.at/zid
http://www.aco.net

Icinga Core  IDOUtils Developer
http://www.icinga.org


--
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
___
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] IPv6 support

2011-06-10 Thread Michael Friedrich
 Original Message  
Subject: Re: [Nagios-users] IPv6 support
From: Patrik Båt p...@osix.eu
To: Nagios Users List nagios-users@lists.sourceforge.net
Date: 2011-06-10 15:03
 Why not just have a /usr/local/nagios/etc/ipv6.txt

 and a ping.sh that look in this file for the ipv4 address and get a ipv6
 andress and ping6 that address?

sure that's one of those workarounds. i wouldn't mind dropping it when 
it comes to performance issues (e.g. having a long list in it being 
parsed) resulting in check latencies.
but that#s truly another story.


 On Fri, 2011-06-10 at 13:05 +0200, Andreas Ericsson wrote:
 On 06/09/2011 08:07 PM, Michael Friedrich wrote:
  Original Message 

 If this patch had been accompanied by something to make conditional
 macros and command_line arguments work, I'd have cheered all the way
 though.
 I don't really get it what you mean - can you explain that a bit more?

 Sure. If there was some way to configure Nagios so that certain command
 arguments were only expanded if the number of arguments to the check
 matches a certain criteria, one could write checks that don't pass half
 baked argument strings to the plugins, and the complexity would be
 handled in one place. That would actually gain something, rather than
 making address6 an official variable, which gains nothing compared
 to using a custom variable, but breaks the abi even so.



-- 
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email:  michael.friedr...@univie.ac.at
phone:  +43 1 4277 14359
mobile: +43 664 60277 14359
fax:+43 1 4277 14338
web:http://www.univie.ac.at/zid
http://www.aco.net

Icinga Core  IDOUtils Developer
http://www.icinga.org


--
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
___
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] IPv6 support

2011-06-10 Thread Michael Friedrich
 Original Message  
Subject: Re: [Nagios-users] IPv6 support
From: Andreas Ericsson a...@op5.se
To: Michael Friedrich michael.friedr...@univie.ac.at
Date: 2011-06-10 14:48
 conclusion - you won't accept such patches,
 I won't accept patches that break things when there are easier ways
 to achieve what the user desires that doesn't break things.

ok, point taken. good to have the counterpart in such a discussion :)

 Yup. That's what major releases are for. I guess I'm just a bit whiny
 because I'd hoped Icinga would stay compatible with Nagios in all
 possible ways as was promised from the beginning.

i wasn't there in the very beginning, but from my perspective it's still 
backward compatible while reaching out for new things. try compiling 
livestatus against the nagios header files it uses, but against icinga. 
it will work in productive environments (otherwise community feedback 
would have been provided - which we already had, remember those 
contactgroup functions you've removed upstream, and i did too). so maybe 
you'd just give it a git pull, configure, make all, make fullinstall and 
use merlin against it. i'm pretty sure it will work out.

 Ah well. We live and we learn. Now it's time for me to learn how much
 wine I can drink on a friday night without passing out. I'm looking
 forward to that particular experiment. Cheerios :)

uh. wine. have fun then :-)

-- 
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email:  michael.friedr...@univie.ac.at
phone:  +43 1 4277 14359
mobile: +43 664 60277 14359
fax:+43 1 4277 14338
web:http://www.univie.ac.at/zid
http://www.aco.net

Icinga Core  IDOUtils Developer
http://www.icinga.org


--
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
___
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] IPv6 support

2011-06-09 Thread Michael Friedrich

nap wrote:



On Thu, Jun 9, 2011 at 12:57 PM, Mark Elsen mark.el...@gmail.com 
mailto:mark.el...@gmail.com wrote:


On Thu, Jun 9, 2011 at 11:47 AM, Andreas Ericsson a...@op5.se
mailto:a...@op5.se wrote:

That's probably not completely true, because the config files
allow you to
specify IP addresses, if so desired. If IPv6 aware, these should,
at least,be
parsed correctly ?

Hi,

In fact no. Like Andreas said, Nagios do not even understand what an 
IP is. It's just a string for it to be pass to plugins as a macro 
(still a string). It will not parse it.


But it's good to have another address6 attribute in the host object in 
order to assign 2 addresses, use them via macros and not to depend on 
custom variables.


the patch on nagios exchange applies rather clean to nagios upstream. 
i've tried that myself whilst patching it into icinga, whereas the ipv6 
support is happening thanks to that patch, with some slight enhancements 
to classicui and idoutils, but breaking the abi for other modules using 
host objects. but i can live with that, having the possibility of easy 
to use dualstacked monitoring like described here in the common ipv6 
approach: 
https://wiki.icinga.org/display/howtos/Dualstack+%28IPv4%2C+IPv6%29+monitoring+with+Icinga


kind regards,
michael




Jean

M.


--
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev


___
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



--
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email:  michael.friedr...@univie.ac.at
phone:  +43 1 4277 14359
mobile: +43 664 60277 14359
fax:+43 1 4277 14338
web:http://www.univie.ac.at/zid
http://www.aco.net

Icinga Core  IDOUtils Developer
http://www.icinga.org

--
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev___
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 use SEND_NSCA

2011-06-09 Thread Michael Friedrich

Marco Borsani wrote:


Hi all.

I use a simple script to test NSCA/send_nsca and send manually passive 
checks from nagios C to nagios S, using four Nagios macros and it 
works ;-)


Ex.:

# ./mysend.sh  $HOSTNAME$  $SERVICEDESC$   $SERVICESTATUSID$ 
 $SERVICEOUTPUT$


How can I automate the sending of all passive service checks?



assign all service definitions with passive checks a checkcommand for 
calling that commandline, either manually or with heavy templating.



Regards

Marco


--
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev


___
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



--
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email:  michael.friedr...@univie.ac.at
phone:  +43 1 4277 14359
mobile: +43 664 60277 14359
fax:+43 1 4277 14338
web:http://www.univie.ac.at/zid
http://www.aco.net

Icinga Core  IDOUtils Developer
http://www.icinga.org

--
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev___
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] IPv6 support

2011-06-09 Thread Michael Friedrich
 Original Message  
Subject: Re: [Nagios-users] IPv6 support
From: Andreas Ericsson a...@op5.se
To: Nagios Users List nagios-users@lists.sourceforge.net
Date: 2011-06-09 18:19
 Why? If the host is reachable via ip6, it's reachable via ip6 and
 that's what you configure. If it's not, you configure ip4 instead.

if you happen to have dualstacked setups in various places, not 
specifically host monitoring, but dependant on the host itsself to 
support the dual stacked way. In my environment, I need a lot of 
diversification between v4 and v6 so it's one of those possible things 
to make the core being aware of the both attributes as well as both 
macros as well as the gui to show and reflect that.

either single checks on each route, or combined and conditional.

 Besides; the kernel automagically translates ip4 addresses to ip6
 ones on ip6 only interfaces, and does the same for ip6 addresses
 on ip4-only ones. It's mentioned in the spec that the protected
 segments for internal use will remain protected in ip6 as well.
 If they weren't, migrating from one to the other would be complete
 hell and damn near impossible without superhuman effort.

it's nice that the kernel does that on the monitoring box (or respective 
where the worker executing the check resides), but as said, when it 
comes to dual stacking, you'll need both addresses. or you'll let your 
nameservers do the trick (or a local resolver), then you wouldn't need 
any forward/reverse translations fixed static by some host attributes. 
but that adds another dependency not always possible/needed/wanted.

 I remain unimpressed. A far cleverer solution would be to have a
 single check run against all non-protected addresses and let that
 plugin look up the ip6 address for the host somewhere else (or
 through a custom variable fetched via livestatus or something, which
 doesn't break the ABI), and then simply report back if any of them
 stop working.

It's not the point what's clever and what might be non-clever. it's all 
about timing constraints and accepting work already done, not having the 
issues to resolve the problem with the well-known workaround trick. sure 
nagios/icinga remains playing lego with the various addons and plugins, 
but as a matter of fact i prefer having it all upstream and available 
throughout the core, and not injected with or by anything else. 
livestatus isn't an option either way, but that's offtopic.

 If this patch had been accompanied by something to make conditional
 macros and command_line arguments work, I'd have cheered all the way
 though.

I don't really get it what you mean - can you explain that a bit more?

kind regards,
Michael

-- 
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email:  michael.friedr...@univie.ac.at
phone:  +43 1 4277 14359
mobile: +43 664 60277 14359
fax:+43 1 4277 14338
web:http://www.univie.ac.at/zid
http://www.aco.net

Icinga Core  IDOUtils Developer
http://www.icinga.org


--
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
___
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] pnp4nagios - Hostname not set

2011-06-09 Thread Michael Friedrich

On 09.06.2011 18:30, Tristan Drinkwater wrote:


Hi guys,

I've followed the install instruction from here 
(http://docs.pnp4nagios.org/pnp-0.4/install) to install pnp4nagios v4 
on my nagios 3.x running on a fedora 14 box but I'm stuck when 
verifying the install.




any specific reason not to use 0.6.x ?

When I do http://servername/Nagios/pnp my first error is 'Hostname is 
not set' followed by 'perfdata folder is empty' and 'no rrd files'


I've looked and sure enough there are no rrd files in the folder, plus 
there is no entry in the log file.


To me this suggests that Nagios isn't firing the command 
'process-service-perfdata' after completing a check.


My commands.cfg file looks correct;

# Added by Tristan for PNP 4 Nagios

define command {

 command_nameprocess-service-perfdata

 command_line/usr/local/nagios/libexec/process_perfdata.pl

}

define command {

 command_nameprocess-host-perfdata

 command_line/usr/local/nagios/libexec/process_perfdata.pl 
-d HOSTPERFDATA


}

And so is my Nagios.cfg file;

process_performance_data=1

host_perfdata_command=process-host-perfdata

service_perfdata_command=process-service-perfdata

these tow are the only things I've changed from the default install.

Any ideas what I've missed??

Any tips on how I can drill down further to see what's not happing and 
why?


Thanks in advance J

Regards,

 Tristan Drinkwater




Micro Peripherals Limited.
Registered Office: Shorten Brook Way, Altham Business Park, Altham,
Accrington, Lancs. BB5 5YJ. Tel: (01282) 776776 Fax: (01282) 858790
Micro Peripherals Limited. Registered in England No. 1511931. VAT No. 
GB 864 4387 91


DISCLAIMER:
This e-mail and attachments are confidential and are intended solely 
for the use of the individual to
whom it is addressed. Any views or opinions presented are solely those 
of the author and do not

necessarily represent those of Micro Peripherals Limited.
If you are not the intended recipient, be advised that you have 
received this Email in error and that
any use, dissemination, forwarding, printing, or copying of this Email 
is strictly prohibited. If this
transmission is received in error please notify the sender immediately 
and delete this message from

your E-mail system.
All electronic transmissions to and from Micro Peripherals Ltd are 
recorded and may be monitored.



--
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev


___
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


--
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Fwd: Question about NDOUtils DB population

2011-06-07 Thread Michael Friedrich
On 07.06.2011 18:28, Gene Horodecki wrote:
 Ok yes my retain_state_information=1, and use_retained_program_state=1 
 so I am ok there.

retention.dat should be written accordingly to this information.

 I will set config_output_options=3 and restart the environment.

 How long can I expect to run before all the configuration data gets 
 populated?

that depends on your config size and the interferring housekeeping on 
the overall startup procedure. but most likely when the core starts 
checking hosts and services, the population should be completed either way.
make sure ndo2db is running while restarting/reloading nagios core and 
maybe tail the debug log to see the queries on the tables ...



 On 06/07/2011 3:20 AM, Michael Friedrich wrote:
 Gene Horodecki wrote:
 Ok great information, thank you.  data_processing_options is -1 
 (process all) which looks correct.  Also the data broker is correct 
 for Nagios 2.

 My config_output_options are set to 2 however.  From what I have 
 read, this would explain why the rest of my database is not getting 
 populated.  I will assume I have too much load to run at 1 or 3 for 
 long.  What is the correct and lowest impact process for updating 
 the table now?  Set the option to 3, reload ndo2db, then set back to 
 2 and reload again?

 retention data must be enabled in nagios.cfg whilst doing a core 
 restart will dump that data into ndomod. just reloading ndo2db won't 
 affect that, it's the core which is required. if you happen to need 
 original configs, you can use the combined '3' for 
 config_output_options in order to dump both (only difference will be 
 the config_type column then, and those being used will be marked as 
 is_active in the objects table.

 read up here for further information on the table structure ... 
 http://docs.icinga.org/latest/en/ch12.html


 Will this work, or any other better ways of doing it?  Thanks.

 On 6/6/2011 11:03 AM, Michael Friedrich wrote:
 Gene Horodecki wrote:
 Sorry if this is a repost. I jumped the gun and posted before I was a

 member of the list and didn't see my emali go through.


 Hi there,

 I have a production environment that runs Nagios + NDOUtils and I got
 called in because the environment got neglected for a year.  When 
 I look
 at the NDOUtils database, it looks like someone tried to rebuild it
 because it is populating with statehistory but the hosts, hostgroups,
 and services tables are blank.
 make sure config_output_options are set in ndomod.cfg

 furthermore, check data_process_options for config data to be dumped
 (and respective nagios.cfg event broker options too)

 I'd like to try to fill these tables in but I don't really understand
 when NDOUtils populates these tables.  I found the original dbconfig
 script but it just creates the schema with no data.  Somehow NDOUtils
 still knows what the ids are for the services because the keys are 
 there
 and I might be able to work backwards and populate everything but
 obviously it would be easier to just understand how ndoutils 
 builds the
 data and reproduce it.
 the objects table keeps active objects alive, even if the config is 
 not
 yet dumped.

 Thanks for the help!


 -
 No virus found in this message.
 Checked by AVG - www.avg.com
 Version: 10.0.1382 / Virus Database: 1511/3684 - Release Date: 
 06/06/11


 --
  

 Simplify data backup and recovery for your virtual environment 
 with vRanger.
 Installation's a snap, and flexible recovery options mean your 
 data is safe,
 secure and there when you need it. Discover what all the 
 cheering's about.
 Get your free trial download today.
 http://p.sf.net/sfu/quest-dev2dev2
 ___
 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










--
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
___
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] Best way to alert once for multiple sensors

2011-06-07 Thread Michael Friedrich
On 07.06.2011 22:42, Daniel Tuecks wrote:
 Hi Chris,

 have a look at 'check_multi'. With this plugin you can combine
 multiple checks to one single service.
 Here's an example (and documentation)

 http://my-plugin.de/wiki/projects/check_multi/examples/network_interface

+1 :-)

 Daniel

 2011/6/7 Chris Adamscmad...@hiwaay.net:
 I have a room with multiple temperature sensors that I am monitoring via
 SNMP.  I would like to set Nagios up such that we only get one alert
 about any of the sensors going out-of-range (since usually the others
 will follow over time).

 I have set a servicedependency chain from sensor 1 to 2 to ..., but that
 only helps if #1 is the first to alert.  If #2 gets hot before #1, I'll
 get an alert for #2 and then #1.  Right now, I've tried to rank them
 in order of most-likely to overheat to least-likely, but that won't
 really work.

 Is there a good solution to this?

 --
 Chris Adamscmad...@hiwaay.net
 Systems and Network Administrator - HiWAAY Internet Services
 I don't speak for anybody but myself - that's enough trouble.

 --
 EditLive Enterprise is the world's most technically advanced content
 authoring tool. Experience the power of Track Changes, Inline Image
 Editing and ensure content is compliant with Accessibility Checking.
 http://p.sf.net/sfu/ephox-dev2dev
 ___
 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


 --
 EditLive Enterprise is the world's most technically advanced content
 authoring tool. Experience the power of Track Changes, Inline Image
 Editing and ensure content is compliant with Accessibility Checking.
 http://p.sf.net/sfu/ephox-dev2dev
 ___
 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



--
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Fwd: Question about NDOUtils DB population

2011-06-06 Thread Michael Friedrich
Gene Horodecki wrote:
 Sorry if this is a repost. I jumped the gun and posted before I was a

 member of the list and didn't see my emali go through.


 Hi there,

 I have a production environment that runs Nagios + NDOUtils and I got
 called in because the environment got neglected for a year.  When I look
 at the NDOUtils database, it looks like someone tried to rebuild it
 because it is populating with statehistory but the hosts, hostgroups,
 and services tables are blank.

make sure config_output_options are set in ndomod.cfg

furthermore, check data_process_options for config data to be dumped 
(and respective nagios.cfg event broker options too)

 I'd like to try to fill these tables in but I don't really understand
 when NDOUtils populates these tables.  I found the original dbconfig
 script but it just creates the schema with no data.  Somehow NDOUtils
 still knows what the ids are for the services because the keys are there
 and I might be able to work backwards and populate everything but
 obviously it would be easier to just understand how ndoutils builds the
 data and reproduce it.

the objects table keeps active objects alive, even if the config is not 
yet dumped.

 Thanks for the help!


 -
 No virus found in this message.
 Checked by AVG - www.avg.com
 Version: 10.0.1382 / Virus Database: 1511/3684 - Release Date: 06/06/11


 --
 Simplify data backup and recovery for your virtual environment with vRanger.
 Installation's a snap, and flexible recovery options mean your data is safe,
 secure and there when you need it. Discover what all the cheering's about.
 Get your free trial download today.
 http://p.sf.net/sfu/quest-dev2dev2
 ___
 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



-- 
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email:  michael.friedr...@univie.ac.at
phone:  +43 1 4277 14359
mobile: +43 664 60277 14359
fax:+43 1 4277 14338
web:http://www.univie.ac.at/zid
http://www.aco.net

Icinga Core  IDOUtils Developer
http://www.icinga.org


--
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Discover what all the cheering's about.
Get your free trial download today. 
http://p.sf.net/sfu/quest-dev2dev2 
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] [Nagios-devel] nagios patches 3 old, 1 new (fix flexible downtime on service hard state change doesn't get triggered/activated)

2011-05-30 Thread Michael Friedrich
 Original Message  
Subject: Re: [Nagios-users] [Nagios-devel] nagios patches 3 old, 1 new 
(fix flexible downtime on service hard state change doesn'tget 
triggered/activated)
From: Andreas Ericsson a...@op5.se
To: Nagios Users List nagios-users@lists.sourceforge.net
Date: 2011-05-30 14:27

 Taken, with the exception of the cgi parts. Since the cgi's aren't
 multi-threaded, they don't really need reentrant macro functions
 and the change to them is just churn with no benefit.

Ok - no problem at all. It was just to keep compatibility throughout the 
complete source but in fact you are right.

 I'll take this on good faith, having tested it manually my self. It's
 possible someone else can add a test-case for this in the future,
 which would be a welcome change.

 Expect the patches to show up in svn in a couple of hours when I'm
 on a sane link and can sync properly again.

Thanks - I'll check later on. Now it's time for sun  beer ;-)

-- 
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email:  michael.friedr...@univie.ac.at
phone:  +43 1 4277 14359
mobile: +43 664 60277 14359
fax:+43 1 4277 14338
web:http://www.univie.ac.at/zid
http://www.aco.net

Icinga Core  IDOUtils Developer
http://www.icinga.org


--
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
___
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] Mass Acknowledge a Service

2011-05-19 Thread Michael Friedrich

steve f wrote:
I have a check that checks the size of multiple partitions and we 
recently added some data that surpassed the threshold value and I have 
over 100 clients alerting.  There is nothing I can do about the space 
issue, it will go back to normal in a few weeks.


Is it possible to acknowledge all 100 at once? 


one of those reasons why we hacked the original cgis for Icinga Classic 
UI allowing multiple commands to be sent. ofc depending on the apache 
get restrictions this can be used for various commands, not only mass 
acknowlegdgements.


consider checking out the demo system: 
http://classic.demo.icinga.org/icinga/



I do have a service group associated with this check but dont see that 
it can be ack'ed all at once.  Is it possible to edit the status.dat 
file with a reference to a host group instead of a host name to 
accomplish this? :


servicecomment {
host_name=str

*host_group = GROUPNAME HERE*

service_description=Legacy Partition Size
entry_type=4
comment_id=129
source=0
persistent=0
entry_time=1305654252
expires=0
expire_time=0
author=Nagios Admin
comment_data=known issue
}


--
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay


___
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



--
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email:  michael.friedr...@univie.ac.at
phone:  +43 1 4277 14359
mobile: +43 664 60277 14359
fax:+43 1 4277 14338
web:http://www.univie.ac.at/zid
http://www.aco.net

Icinga Core  IDOUtils Developer
http://www.icinga.org

--
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay___
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] pnp4nagios Nagios

2011-05-13 Thread Michael Friedrich

khurram aziz wrote:


* Did you add the pnp4nagios commands to your commands file?
  o NO i did not add any pnp4nagios commands to my
commands file, not for the server that is showing grpahs
in pnp4nagios and not for the servers which i have added
using SNMP
* Are your hosts using the host-pnp template?
  o NO, my hosts are using the default templates
* Is your service definition using the srv-pnp template?
  o No, my service definitions are using the default definitions.

Khurram Aziz Khalid


check

- service defitions - enable perfdata
- check plugin itsself - does it return perfdata
- read the pluginapi.html for further information how perfdata will look 
like






*From:* Martin Hugo martin_h...@hboe.org
*To:* Nagios Users List nagios-users@lists.sourceforge.net
*Sent:* Fri, May 13, 2011 8:23:20 PM
*Subject:* Re: [Nagios-users] pnp4nagios  Nagios

Did you add the pnp4nagios commands to your commands file?  Are your 
hosts using the host-pnp template? Is your service definition using 
the srv-pnp template?


Marty

*From:*khurram aziz [mailto:khurramazizkha...@yahoo.com]
*Sent:* Friday, May 13, 2011 10:58 AM
*To:* nagios mailinglist
*Subject:* [Nagios-users] pnp4nagios  Nagios

Hi All,

I have configured *Nagios 3.2.3* with default settings and for 
generating graphs i have configured *pnp4nagios-0.6.11*. I have 
added a server in Nagios by installing the host file on that server 
and its working fine. i am also able to generate graphs for that 
server in pnp4nagios. b
Now i have added 4 of my web servers using SNMP and they are all added 
in Nagios but they dont appear in pnp4nagiogs. can some1 tell me how i 
can make these web servers appear in pnp4nagios so that i can generate 
graph.


Khurram Aziz Khalid


--
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay


___
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



--
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email:  michael.friedr...@univie.ac.at
phone:  +43 1 4277 14359
mobile: +43 664 60277 14359
fax:+43 1 4277 14338
web:http://www.univie.ac.at/zid
http://www.aco.net

Icinga Core  IDOUtils Developer
http://www.icinga.org

--
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] [Nagios-devel] nagios patches 3 old, 1 new (fix flexible downtime on service hard state change doesn't get triggered/activated)

2011-05-12 Thread Michael Friedrich
Hi Ton,

Ton Voon wrote:
 0001-fix-race-condition-on-flexible-downtime-commands-whe.patch
 I'm going to push this one back to you to create a suitable test case. Use 
 t-tap/test_commands.c and check return code is ERROR.

 I'd vary the inputs too to include 0 or blank or nothing

Ok. Will do when I get more time for writing more tests. Putting 
nagios-users on CC in order to allow users experiencing the same 
problems to test this patch.

 [PATCH] move thread safe macro function prototypes with suffix _r and 
 restore old compatible prototypes again

 =   verified against latest t-tap tests, updated .gitignore
 0003-move-thread-safe-macro-function-prototypes-with-suff.patch
 I don't know enough around this area, but I know Andreas is keen on 
 re-entrant functions, so I'll defer to him.

Possibly, maybe it also needs some further adaptions. It's not business 
critical, just compatibility critical for addon developers.

 =

 NEW

 fix flexible downtime on service hard state change doesn't get 
 triggered/activated

 recently, there was a change on flexible downtime triggering,
 allowing soft state changes to active a flexible downtime.

 this change removed the condition on hard_state_change check,
 so it only triggered those from soft state changes but not
 the well known older behavior.

 the tricky part is, that those 2 vars are not the same on each
 state change, so the replacement fix needs a sanitized near-by
 addin, which this patch introduces.

 this bug has been evaluated and debugged in deep, the fix
 now runs2 months on productive systems, allowing us to
 trigger flexible downtimes on hard state changes too, next
 to the soft state changes being detected.

 please check https://dev.icinga.org/issues/1228 for a deeper
 analysis on this.


 0004-fix-flexible-downtime-on-service-hard-state-change-d.patch
 This one requires a test case too, due to its complexity. See 
 t-tap/test_checks.c which has tests in the handle_async_check_results routine.

Ok, thanks for the hint. In case there are any users in the Nagios world 
happen to have the same problem, I'd love to see some reports after 
having that patch applied against 3.2.3 or similarities.


 please consider them for future releases as it will ease the 
 porting-patches-from-icinga-core procedure.
 To be honest, that's not my problem. You can make an argument that it is 
 better for Nagios users, but an argument to make your life easier for future 
 patches is not going to sway me. If you choose to fork, then you're accepting 
 a certain cost of maintenance.

Of course not your problem, not even Nagios devs ones, just Nagios users 
maybe.

I was only taking the advantage to give something back from Icinga. 
Take it or leave it. Just saying that if you're interested in further 
contributions, I'd expect some feedback (just like you did, so thanks 
for the reaction).
If you're insisting on further automated test cases, it's fine, but will 
cause those patches to last longer on that list until resolving more 
important issues. Like I mentioned recently, there are some bugs 
affecting both, Icinga and Nagios I am currently working on.

Talking of forks - I really appreciate the Centreon engine fork. Must 
have happened for a reason, remember the execvp patch on this list? I'm 
keen on seeing what they have been doing, and watching out for further 
ideas on their interesting ideas. the initial released code has various 
things already applied 
(http://www.centreon.com/Centreon/centreon-engine-download.html). 
Shinken is already proofing what's possible, let's welcome another 
competitor in the game :)


Kind regards,
Michael

-- 
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email:  michael.friedr...@univie.ac.at
phone:  +43 1 4277 14359
mobile: +43 664 60277 14359
fax:+43 1 4277 14338
web:http://www.univie.ac.at/zid
http://www.aco.net

Icinga Core  IDOUtils Developer
http://www.icinga.org


--
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] [Nagios-devel] nagios patches 3 old, 1 new (fix flexible downtime on service hard state change doesn't get triggered/activated)

2011-05-12 Thread Michael Friedrich
Hi,

Andreas Ericsson wrote:
 Good idea. Involving the community to help test things is something
 I've been wanting and trying to do for a long time.

the mailinglists are not optimal. try a dev blog, ask on fb/twitter, and 
maybe cleanup the bug tracker a bit. using new social media in a good 
way can make life easier. but i think i already mentioned that a while 
ago to tony on irc.

 I'm fairly sure I applied that one, but perhaps I was lacking the
 proper amount of alcohol in my bloodstream and forgot to do the
 git -  cvs export step. The patch is good and will be applied though,
 since it would otherwise force us to bump the major version of Nagios
 for the next release. Thanks :)

thought so, and the recent change to svn would have made the diff 
changed, idea - grab some beers (i'm sure you will on the nagios 
conference in italy) and do it together with ton and ethan, showing some 
git ;-))


 Well, some patches are obviously correct and can be applied without
 adding tests for them. Where current behaviour changes, or new features
 are added in already complex areas is a different matter though, but
 getting the code queued somewhere might make it easier to accept from
 users testing them.

Point is, in that special change on previous release, no test was 
provided either. So by just reverting the diff, it could have resolved 
the issue either way. But I also understand Ton's demanding though I 
don't have time writing those tests myself. For me, it's working, and 
the other part of the cake can be done by someone else amongst fellow 
nagios users/contributors.

 The sad part is that centreon forked three days after Nagios Enterprises
 cancelled the partnership contract with Merethis (the company behind
 centreon). To me, that smells a bit political.

Even if it is, I like their recent patches and overall contributed work 
to Nagios. If there are politics those guys should do that on closed 
doors, and not disturb the way development flows. i did not like that on 
the netways stuff, on the shinken trademark thingies, and if that now 
pops up - well, as said, putting it into the right channels, but not 
nagios-devel imho.

 Thanks for the link though. I've been looking for it but was unable to
 find the download before you posted it. It should be interesting to see
 if they can solve the I/O load problems like someone here at the
 Bolzano conference mentioned they're working on. That's one of my goals
 too, but so far I haven't had time to sit down and think it through
 properly. If they have, we should be able to profit from their work
 quite easily.

Most possible. I'm keen on sharing some of my not-currently-available 
ressources thinking with them about future changes and/or improvements.

 Yes. And no. Shinken is incompatible with all of Nagios' current
 broker modules. Icinga have broken the ABI compatibility, but not to
 the same extent. Shinken has some very neat ideas (and some not so
 neat ones too). Like all good engineers, I'll happily borrow the
 good ones and let the bad ones go hang.

There comes the day in history where an ABI must be broken in order to 
allow the implementation of things you need. Although remaining 
compatible, this is not a good solution, I totally agree on that. Either 
way, Shinken did it right, introducing new things, independent of the 
down below code. Let's see what future might bring on that. 
Communication seems to rather broken in various ways, so let the code 
and releases talk instead, sharing ideas and man power.

Kind regards,
Michael

-- 
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email:  michael.friedr...@univie.ac.at
phone:  +43 1 4277 14359
mobile: +43 664 60277 14359
fax:+43 1 4277 14338
web:http://www.univie.ac.at/zid
http://www.aco.net

Icinga Core  IDOUtils Developer
http://www.icinga.org


--
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
___
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] Web UI support description for service and host dependencies?

2011-05-05 Thread Michael Friedrich
quanta wrote:
 Hi,

 As some people submit to Nagios ideas, I want to know which
 services/hosts depends on a service/host:
 http://ideas.nagios.org/a/dtd/2289-3955
 http://ideas.nagios.org/a/dtd/9078-3955

 It let me know when a service/host down, which services/hosts will be
 effect?
 Is there any Web UI support this?

I've implemented a basic linkage for extinfo.cgi ~1 week ago for Icinga 
Classic UI 1.4 - will be out next week.


 --
 WhatsUp Gold - Download Free Network Management Software
 The most intuitive, comprehensive, and cost-effective network
 management toolset available today.  Delivers lowest initial
 acquisition cost and overall TCO of any competing solution.
 http://p.sf.net/sfu/whatsupgold-sd
 ___
 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



-- 
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email:  michael.friedr...@univie.ac.at
phone:  +43 1 4277 14359
mobile: +43 664 60277 14359
fax:+43 1 4277 14338
web:http://www.univie.ac.at/zid
http://www.aco.net

Icinga Core  IDOUtils Developer
http://www.icinga.org


--
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
___
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] cisco traffic monitoring

2011-05-04 Thread Michael Friedrich

On 04.05.2011 15:54, Nibin VM wrote:

Hi guys,

I would like to monitor the traffic of my cisco routers and need to 
get alarmed when the traffic threshold is crossed( need to avoid 
bandwidth over usage ) . I have snmp enabled on my routers.


try checkmk.



Can anybody help me?

--
Regards,
Nibin.





--
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today.  Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd


___
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


--
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd___
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] alias host configuration not interpreted since 3.2.2

2011-04-13 Thread Michael Friedrich

On 13.04.2011 18:58, Mark D. Nagel wrote:

On 3/14/2011 7:50 AM, Dennis Kuhlmeier wrote:

just noticed that I couldn't change the alias value in an existing
host definition.

$HOSTALIAS$ just remained on the old value although the web
interface showed the current setting.

I built myself a little test setup and just returned $HOSTALIAS$ as
a check-result and could confirm that in Nagios Core 3.2.1
$HOSTALIAS$ changed without error when changing the alias
definition, since version 3.2.2 change is impossible.

Thanks for a fix in an upcoming version.


We have just diagnosed this problem as well.  It seems to be due to this
fix released with 3.2.2:

* Fix for retaining host display name and alias, as well as service
display name (Folkert van Heusden)

Sadly, the additional retained attributes have no corresponding mask
bits to use in the retained_host_attribute_mask setting, and there is no
justification provided for incorporating this change, just that one
line.  No UI I've seen lets you change these values (though one could
exist I'm sure). The result is, whatever value those fields had are kept
forever in the retention file regardless of what you change them to in
the actual configuration.  The only solution I can see is to stop
Nagios, edit the retention file and start Nagios.  There may be a string
you can send to the command pipe to change those (one would hope that is
the case), but I agree with you -- this fix needs to be pulled from
the code.


I recently removed that feature from icinga core, and then also built 
an on demand patch against current 3.2.3 git tree for an omd user. since 
it's unclear to me if the nagios devs would keep that as feature or not, 
feel free to use the attached git patch yourself.


kind regards,
michael

--
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email:  michael.friedr...@univie.ac.at
phone:  +43 1 4277 14359
fax:+43 1 4277 14338
web:http://www.univie.ac.at/zid
http://www.aco.net

Icinga Core   IDOUtils Developer
http://www.icinga.org






From 1e5261ada7d2732b11a59e672f9f9afa6e9aee0b Mon Sep 17 00:00:00 2001
From: Michael Friedrich michael.friedr...@univie.ac.at
Date: Thu, 24 Mar 2011 13:37:53 +0100
Subject: [PATCH] do not retain display_name and host alias

---
 xdata/xrddefault.c |   15 ---
 1 files changed, 0 insertions(+), 15 deletions(-)

diff --git a/xdata/xrddefault.c b/xdata/xrddefault.c
index 3484cdc..20566eb 100644
--- a/xdata/xrddefault.c
+++ b/xdata/xrddefault.c
@@ -361,8 +361,6 @@ int xrddefault_save_state_information(void){
 
 		fprintf(fp,host {\n);
 		fprintf(fp,host_name=%s\n,temp_host-name);
-		fprintf(fp,alias=%s\n,temp_host-alias);
-		fprintf(fp,display_name=%s\n,temp_host-display_name);
 		fprintf(fp,modified_attributes=%lu\n,(temp_host-modified_attributes  ~host_attribute_mask));
 		fprintf(fp,check_command=%s\n,(temp_host-host_check_command==NULL)?:temp_host-host_check_command);
 		fprintf(fp,check_period=%s\n,(temp_host-check_period==NULL)?:temp_host-check_period);
@@ -433,7 +431,6 @@ int xrddefault_save_state_information(void){
 
 		fprintf(fp,service {\n);
 		fprintf(fp,host_name=%s\n,temp_service-host_name);
-		fprintf(fp,display_name=%s\n,temp_service-display_name);
 		fprintf(fp,service_description=%s\n,temp_service-description);
 		fprintf(fp,modified_attributes=%lu\n,(temp_service-modified_attributes  ~service_attribute_mask));
 		fprintf(fp,check_command=%s\n,(temp_service-service_check_command==NULL)?:temp_service-service_check_command);
@@ -1201,14 +1198,6 @@ int xrddefault_read_state_information(void){
 			temp_host-last_state=atoi(val);
 		else if(!strcmp(var,last_hard_state))
 			temp_host-last_hard_state=atoi(val);
-		else if(!strcmp(var,alias)){
-			my_free(temp_host-alias);
-			temp_host-alias=(char *)strdup(val);
-			}
-		else if(!strcmp(var,display_name)){
-			my_free(temp_host-display_name);
-			temp_host-display_name=(char *)strdup(val);
-			}
 		else if(!strcmp(var,plugin_output)){
 			my_free(temp_host-plugin_output);
 			temp_host-plugin_output=(char *)strdup(val);
@@ -1480,10 +1469,6 @@ int xrddefault_read_state_information(void){
 			temp_service-last_state=atoi(val);
 		else if(!strcmp(var,last_hard_state))
 			temp_service-last_hard_state=atoi(val);
-		else if(!strcmp(var,display_name)){
-			my_free(temp_service-display_name);
-			temp_service-display_name=(char *)strdup(val);
-			}
 		else if(!strcmp(var,current_attempt))
 			temp_service-current_attempt=atoi(val);
 		else if(!strcmp(var,current_event_id))
-- 
1.7.1.1

--
Forrester Wave Report - Recovery time is now measured in hours and minutes
not days. Key insights are discussed in the 2010 Forrester Wave Report as
part of an in-depth evaluation of disaster recovery service providers.
Forrester found

Re: [Nagios-users] statusmap.cgi will not install

2011-03-31 Thread Michael Friedrich
Boblitz John wrote:

 it's never that clear, what users do. especially, when it comes to 
 installing pre-requisites :p

 Quote of the Day!

 hmmm are you using the defaults repos, or the debian backports? and is it 
 lenny or squeeze?

 Squeeze - patched daily...

 The lib* packages were loaded via package installer (downloaded from the 
 debian mirror ...)

 Nagios, the plugins and the GD Utilities from the tarballs from Nagios  
 Boutelles.  (I'm following the instructions
 from here:  http://www.debianhelp.co.uk/nagiosinstall.htm, obviously with 
 some adaptation of the versions )

 To be clear - Nagios itself, and the plugins install and run.  The 
 statusmap.cgi however is listed as
 not found when I request that interface in the browser.

 Maybe I should just look for the ne-key 

http://backports.debian.org/Instructions/

but as far as i have seen there are no recent 3.2.3 packages. i'm only 
checking regularly those from icinga ;-)

so taking custom packages would be preferred either way.



 -Ursprüngliche Nachricht-
 Von: Michael Friedrich [mailto:michael.friedr...@univie.ac.at]
 Gesendet: Mittwoch, 30. März 2011 18:37
 An: nagios-users@lists.sourceforge.net
 Betreff: Re: [Nagios-users] statusmap.cgi will not install

 Boblitz John wrote:
 are these installed or did you just *find* them ?
 LOL!  Yes, they are installed - found them on a list of prerequites.
 it's never that clear, what users do. especially, when it comes to installing 
 pre-requisites :p

 was not working is a rather huge phrase. i'm pretty sure the debian 
 packages deliever the statusmap.cgi for free providing compiled cgis.
 Agree.  Unfortunately, it wasn't working there either (likely because
 I'm missing something stupid).  In other words - since I was missing the 
 Prerequisites, the debian packages weren't installing the statusmap either.  
 Thats when I started looking for better info ...

 Apparently, I'm still missing something trivial for the statusmap to get 
 compiled ...

 Only thing I see is the fail of ld to find -lttf ...
 hmmm are you using the defaults repos, or the debian backports? and is it 
 lenny or squeeze?

 Thanks again!

 -Ursprüngliche Nachricht-
 Von: Michael Friedrich [mailto:michael.friedr...@univie.ac.at]
 Gesendet: Mittwoch, 30. März 2011 17:12
 An: nagios-users@lists.sourceforge.net
 Betreff: Re: [Nagios-users] statusmap.cgi will not install

 Boblitz John wrote:
 Thanks for the repsonse.

 the dev(el) packages are also needed in order to let configure finding 
 the header includes.
 ?? Which packages?  I thought I had found all of them!
 libgd2-xpm
 libgd2-xpm-dev
 libgd2  (was listed, but was not installed as it is virtual package in 
 libgd2-xpm)
 libpng12-dev
 libjpeg62-dev
 libgd-tools
 libpng3-dev (was listed, but was not installed as libpng12-dev 
 superceeded it)
 are these installed or did you just *find* them ?

 did you run make distclean before running configure another time?

 but i'd rather suggest installing nagios from packages too.
 I tried that in the beginning, but that was not working properly either 
 was not working is a rather huge phrase. i'm pretty sure the debian 
 packages deliever the statusmap.cgi for free providing compiled cgis.

 Cheers,

 

 John

 

 Who is General Failure, and why is he reading my hard disk?



 -
 -
  Create and publish websites with WebMatrix Use the most
 popular FREE web apps or write code yourself; WebMatrix provides all
 the features you need to develop and publish your website.
 http://p.sf.net/sfu/ms-webmatrix-sf
 ___
 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

 --
 DI (FH) Michael Friedrich

 Vienna University Computer Center
 Universitaetsstrasse 7 A-1010 Vienna, Austria

 email:   michael.friedr...@univie.ac.at
 phone:   +43 1 4277 14359
 fax: +43 1 4277 14338
 web: http://www.univie.ac.at/zid
  http://www.aco.net

 Icinga CoreIDOUtils Developer
 http://www.icinga.org


 --
  Create and publish websites with WebMatrix Use the most
 popular FREE web apps or write code yourself; WebMatrix provides all
 the features you need to develop and publish your website.
 http://p.sf.net/sfu/ms-webmatrix-sf
 ___
 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

Re: [Nagios-users] statusmap.cgi will not install

2011-03-30 Thread Michael Friedrich
Boblitz John wrote:
 Good Day,

 I have installed nagios on my debian server and, except for the status
 map - all seems to work as planned.

 I searched on the forums and saw a similar problem indicating to check
 the config logs and I found I didn't have
 everything.  So I downlaoded the Boutelles GD tarball and installed as
 per http://www.debianhelp.co.uk/nagiosinstall.htm

 but I still ahve no  luck - statusmap.cgi refuses to be compiled.

 I hope someone here can help.

 What I have:

  debian squeeze for amd64 - patched to current
  gd-2.0.33.

the dev(el) packages are also needed in order to let configure finding 
the header includes.
but i'd rather suggest installing nagios from packages too.


  nagios-3.2.3.
  nagios-plugins-1.4.15

 I've run ./configure with and without --enable-statusmap - doesn't seem
 to make a difference.

 the config.log however indicates (often!) that confdefs.h fails.

 Significantly, it fails on:

 configure:6502: checking for gdImagePng in -lgd (order 1)
 configure:6535: gcc -o conftest -g -O2 conftest.c -lgd -lttf -lpng
 -ljpeg -lz -lm5
 /usr/bin/ld: cannot find -lttf
 collect2: ld returned 1 exit status
 configure:6541: $? = 1
 configure: failed program was:
 | /* confdefs.h. */

 [removed a bunch of declarations!]

 | /* end confdefs.h. */
 | /* Override any gcc2 internal prototype to avoid an error. */
 | /* We use char because int might match the return type of a gcc2
 | builtin and then its argument prototype would still apply. */
 | char gdImagePng();
 |
 | int
 | main ()
 | {
 | gdImagePng()
 | ;
 | return 0;
 | }
 configure:6568: result: no

 Thanks in advance  ...


 John

 

 Who is General Failure, and why is he reading my hard disk?










 --
 Enable your software for Intel(R) Active Management Technology to meet the
 growing manageability and security demands of your customers. Businesses
 are taking advantage of Intel(R) vPro (TM) technology - will your software
 be a part of the solution? Download the Intel(R) Manageability Checker
 today! http://p.sf.net/sfu/intel-dev2devmar
 ___
 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



-- 
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email:  michael.friedr...@univie.ac.at
phone:  +43 1 4277 14359
fax:+43 1 4277 14338
web:http://www.univie.ac.at/zid
http://www.aco.net

Icinga Core  IDOUtils Developer
http://www.icinga.org


--
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
___
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] statusmap.cgi will not install

2011-03-30 Thread Michael Friedrich
Boblitz John wrote:
 Thanks for the repsonse.

 the dev(el) packages are also needed in order to let configure finding the 
 header includes.
 ?? Which packages?  I thought I had found all of them!
   libgd2-xpm
   libgd2-xpm-dev
   libgd2  (was listed, but was not installed as it is virtual package in 
 libgd2-xpm)
   libpng12-dev
   libjpeg62-dev
   libgd-tools
   libpng3-dev (was listed, but was not installed as libpng12-dev 
 superceeded it)

are these installed or did you just *find* them ?

did you run make distclean before running configure another time?

 but i'd rather suggest installing nagios from packages too.
 I tried that in the beginning, but that was not working properly either 

was not working is a rather huge phrase. i'm pretty sure the debian 
packages deliever the statusmap.cgi for free providing compiled cgis.

 Cheers,

 

 John

 

 Who is General Failure, and why is he reading my hard disk?



 --
 Create and publish websites with WebMatrix
 Use the most popular FREE web apps or write code yourself;
 WebMatrix provides all the features you need to develop and
 publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
 ___
 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



-- 
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email:  michael.friedr...@univie.ac.at
phone:  +43 1 4277 14359
fax:+43 1 4277 14338
web:http://www.univie.ac.at/zid
http://www.aco.net

Icinga Core  IDOUtils Developer
http://www.icinga.org


--
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
___
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] statusmap.cgi will not install

2011-03-30 Thread Michael Friedrich
Boblitz John wrote:

 are these installed or did you just *find* them ?
 LOL!  Yes, they are installed - found them on a list of prerequites.

it's never that clear, what users do. especially, when it comes to 
installing pre-requisites :p

 was not working is a rather huge phrase. i'm pretty sure the debian 
 packages deliever the statusmap.cgi for free providing compiled cgis.
 Agree.  Unfortunately, it wasn't working there either (likely because I'm 
 missing something stupid).  In other words - since I was missing the
 Prerequisites, the debian packages weren't installing the statusmap either.  
 Thats when I started looking for better info ...

 Apparently, I'm still missing something trivial for the statusmap to get 
 compiled ...

 Only thing I see is the fail of ld to find -lttf ...

hmmm are you using the defaults repos, or the debian backports? and is 
it lenny or squeeze?

 Thanks again!

 -Ursprüngliche Nachricht-
 Von: Michael Friedrich [mailto:michael.friedr...@univie.ac.at]
 Gesendet: Mittwoch, 30. März 2011 17:12
 An: nagios-users@lists.sourceforge.net
 Betreff: Re: [Nagios-users] statusmap.cgi will not install

 Boblitz John wrote:
 Thanks for the repsonse.

 the dev(el) packages are also needed in order to let configure finding the 
 header includes.
 ?? Which packages?  I thought I had found all of them!
  libgd2-xpm
  libgd2-xpm-dev
  libgd2  (was listed, but was not installed as it is virtual package in 
 libgd2-xpm)
  libpng12-dev
  libjpeg62-dev
  libgd-tools
  libpng3-dev (was listed, but was not installed as libpng12-dev 
 superceeded it)
 are these installed or did you just *find* them ?

 did you run make distclean before running configure another time?

 but i'd rather suggest installing nagios from packages too.
 I tried that in the beginning, but that was not working properly either 
 was not working is a rather huge phrase. i'm pretty sure the debian 
 packages deliever the statusmap.cgi for free providing compiled cgis.

 Cheers,

 

 John

 

 Who is General Failure, and why is he reading my hard disk?



 --
  Create and publish websites with WebMatrix Use the most
 popular FREE web apps or write code yourself; WebMatrix provides all
 the features you need to develop and publish your website.
 http://p.sf.net/sfu/ms-webmatrix-sf
 ___
 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


 --
 DI (FH) Michael Friedrich

 Vienna University Computer Center
 Universitaetsstrasse 7 A-1010 Vienna, Austria

 email:michael.friedr...@univie.ac.at
 phone:+43 1 4277 14359
 fax:  +43 1 4277 14338
 web:  http://www.univie.ac.at/zid
   http://www.aco.net

 Icinga Core   IDOUtils Developer
 http://www.icinga.org


 --
 Create and publish websites with WebMatrix Use the most popular FREE web apps 
 or write code yourself; WebMatrix provides all the features you need to 
 develop and publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
 ___
 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

 --
 Create and publish websites with WebMatrix
 Use the most popular FREE web apps or write code yourself;
 WebMatrix provides all the features you need to develop and
 publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
 ___
 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



-- 
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email:  michael.friedr...@univie.ac.at
phone:  +43 1 4277 14359
fax:+43 1 4277 14338
web:http://www.univie.ac.at/zid
http://www.aco.net

Icinga Core  IDOUtils Developer
http://www.icinga.org


--
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms

Re: [Nagios-users] How to find downtime_id

2011-02-15 Thread Michael Friedrich

On 15.02.2011 18:55, Rick Garland wrote:


Hi all:

Running Nagios 3.2.3 on a RHEL 5.5 system.

I am wanting to be able to run a script to DEL_HOST_DOWNTIME but I see 
one of the parameters in the downtime_id.

Where do I find that number?

I noticed in an earlier version (3.0.x) there was the file 
downtime.dat residing in the nagios/var subdir, but at 3.2.3 I do not 
see that file anymore.




retention.dat - check the what's new section
http://nagios.cvs.sourceforge.net/viewvc/nagios/nagios/html/docs/whatsnew.html


Is it somewhere else? I cannot find. Should there be a downtime.dat file?

Thanks.



The information contained in this transmission may be confidential. 
Any disclosure, copying, or further distribution of confidential 
information is not permitted unless such privilege is explicitly 
granted in writing by Quantum. Quantum reserves the right to have 
electronic communications, including email and attachments, sent 
across its networks filtered through anti virus and spam software 
programs and retain such messages in order to comply with applicable 
data security and retention requirements. Quantum is not responsible 
for the proper and complete transmission of the substance of this 
communication or for any delay in its receipt.



--
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb


___
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


--
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] Nagios storing data into PostgreSQL?

2011-02-08 Thread Michael Friedrich

On 07.02.2011 22:49, larry johnson wrote:

Hello, i am newbie to linux/Nagios and need help to clear some doubts.
I wander whether is possible to make Nagios writing notification (host 
up/host down, for example) into PostgreSQL database?


if you write your own NEB broker module, and put that onto libpq or 
similar, the core will be able to, sure. Or you'll have a look at Icinga 
IDOUtils which support Postgresql quite a while now.


I found NDOUtils, but this addon does not suit me because i don't use 
MySQL.


Well there aren't that much alternatives to that. Merlin supports MySQL 
and Oracle (in development on git). I'm not sure if the Centreon Broker 
is already released which *should* support more RDBMS.


But for notifications only, why not using event handlers? then you could 
call scripts putting data into your rdbms the preferred way.

http://nagios.sourceforge.net/docs/3_0/eventhandlers.html

kind regards,
Michael

Also found that this kind of storage is suported under Nagios 1.x, but 
what about 3.x?

I run Nagios 3.2.3 (with 1.4.15 plugins) on openSUSE 11.3.

Regards.//


--
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb


___
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


--
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb___
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] hostgroup with no members - Enhancement

2010-12-17 Thread Michael Friedrich
 Original Message  
Subject: Re: [Nagios-users] hostgroup with no members - Enhancement
From: Max Schubert m...@webwizarddesign.com
To: Andreas Ericsson a...@op5.se, Nagios Users List 
nagios-users@lists.sourceforge.net
Date: 2010-11-29 15:07
 Thank you, Andreas - I actually really enjoy writing tests and
 understand their value - will see if I can put a few in place using
 tap over the next week or so and update the patch with them.

considering the tests in t-tap - adding such a new config option breaks 
them.

at least in test_timeperiods.c and test_nagios_config.c the variable 
needs to be added.

int allow_empty_hostgroup_assignment;

(sorry, I'm too lazy for git now)

kind regards,
Michael


 On 11/29/10, Andreas Ericssona...@op5.se  wrote:
 On 11/29/2010 09:20 AM, Andreas Ericsson wrote:
 This looks nice. It's in my compile and test queue right now, so
 assuming it works out ok it'll be committed before the week is out.

 And now it's out there. More testing would be much appreciated though,
 but considering the patch is fairly well written I have few qualms
 about it.

 Cheers, and thanks again.

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

 --
 Increase Visibility of Your 3D Game App  Earn a Chance To Win $500!
 Tap into the largest installed PC base  get more eyes on your game by
 optimizing for Intel(R) Graphics Technology. Get started today with the
 Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
 http://p.sf.net/sfu/intelisp-dev2dev
 ___
 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



-- 
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email:  michael.friedr...@univie.ac.at
phone:  +43 1 4277 14359
fax:+43 1 4277 14338
web:http://www.univie.ac.at/zid
http://www.aco.net

Icinga Core  IDOUtils Developer
http://www.icinga.org


--
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-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] hostgroup with no members - Enhancement

2010-11-02 Thread Michael Friedrich
On 02.11.2010 16:50, Max Schubert wrote:
 We have a local patch to turn the error into a warning, patched
 against 3.2.0 - we needed this because we have customers who can use
 host -  hostgroup -  N related services mappings but we do not control
 their configs, we only define the global service sets - so we could
 not have this be fatal and fail everyone's changes just because one
 customer stopped using the mapping.

 We have been using this patch in production for a year without issues.

Nice thanks :)

Kind regards,
Michael

--
Nokia and ATT present the 2010 Calling All Innovators-North America contest
Create new apps  games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
___
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] External commands documentation

2010-10-26 Thread Michael Friedrich
On 25.10.2010 22:25, Mathieu Gagné wrote:
 Anyone else getting a 404 on the documentation?

 http://www.nagios.org/developerinfo/externalcommands/

you can use Icinga's too

http://docs.icinga.org/latest/en/extcommands2.html

--
Nokia and ATT present the 2010 Calling All Innovators-North America contest
Create new apps  games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
___
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] Installing Nagios XI

2010-10-10 Thread Michael Friedrich

On 2010-10-10 16:20, Himanshu Arora wrote:
Can someone please help me installing Nagios XI. Trying to install the 
trial version on my test enviroment.


If someone can send me the download link and proper steps to install 
and configure the XI version would be really helpful to me.


go ask nagios enterprises support.

support.nagios.com





Thanks,


--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2  L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb


___
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


--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2  L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] [Nagios-devel] significant bug in 3.2.2 - nagios.cfg -- execute_service_checks=0 completely ignored

2010-10-01 Thread Michael Friedrich
Stephen Gran wrote:
 On Thu, Sep 30, 2010 at 02:31:55PM -0700, Mark Christian said:

 I updated nagios from 3.2.0 to 3.2.2 - my distributed collector node
 went from  ~7000 services passively checked and near zero actively
 checked to ~1800 actively checked and counting.
  
 The fix for this has already been checked into cvs.


Sure thing. But how to support the community (e.g. in IRC) by telling 
them delete sth in the code and then recompile. This remains a major 
bug and should be fixed in a release soon. Also within already created 
packages and so on.

In the Opsview repository, a patch for this is accessible, but I think 
the community wouldn't mind getting the host checks skipped bug fixed 
too within Nagios 3.2.3 - would create a nice release blog post and a 
bit more focused on development than keeping other issues with more 
priority as it seems.

If you require more test reports (as Tony stated on IRC that Ethan wants 
that): The fix has been tested and debugged on Icinga Core, same 
behavior, same bugfix, same successful tests. If needed, I'll clone 
Andreas' GIT and run several tests against Nagios Core too, but since 
the code in this regard is merely the same, putting that up to a release 
should be no problem. But if you do think different, no offense taken.

Kind regards,
Michael

-- 
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email:  michael.friedr...@univie.ac.at
phone:  +43 1 4277 14359
fax:+43 1 4277 14279
web:http://www.univie.ac.at/zid

Icinga Core  IDOUtils Developer
http://www.icinga.org


--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
___
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] significant bug in 3.2.2 - nagios.cfg -- execute_service_checks=0 completely ignored

2010-10-01 Thread Michael Friedrich
Robert Wolfe wrote:
 Hi all.  My first post here. So please bear with me.

 Installed the HEAD release from the Nagios website last night and while 
 everything is working, I am not able to reschedule commands as I get a 
 message saying that the permissions on the nagios.cmd file are not correct.  
 What should the permissions on this file be?


create a command grp like in the quickstart guides iirc. e.g. nagiocmd

$ chmod 775 nagios/var/rw
$ chown nagios:nagiocmd nagios/var/rw
$ chmod g+s nagios/var/rw

sticky bit for inheriting the permissions to files created below. if 
somebody tells you to change permissions only on nagios.cmd in var/rw/ 
this is only true as long as the core is running. nagios.cmd will be 
deleted/unlinked during core shutdown.

also make sure you have put apache user into nagiocmd group. then it 
will have the permissions to write the nagios.cmd command file and it 
should work properly.

Kind regards,
Michael

 -Original Message-
 From: Tony Yarusso [mailto:tyaru...@nagios.com]
 Sent: Thursday, September 30, 2010 6:23 PM
 To: Nagios Users List
 Subject: Re: [Nagios-users] significant bug in 3.2.2 - nagios.cfg -- 
 execute_service_checks=0 completely ignored

 On Thu, 2010-09-30 at 14:23 -0700, Mark Christian wrote:

 dnsmichi and keith4 on IRC #nagios graciously pointed out that I need
 merely remove line 1088 from nagios 3.2.2 source base/events.c and
 recompile.  I removed run_event=TRUE; on line 1088 of base/events.c,
 recompiled and now nagios correctly recognizes
 “execute_service_checks=0”.

 I believe this to be a significant bug.
  
 I believe this fix has already been applied to CVS head, and is awaiting 
 feedback from testers of that copy before a new release is approved.  If you 
 have a chance to try a build from CVS HEAD and report your experience the the 
 -devel mailing list that would be very helpful.

 --
 Tony Yarusso
 Technical Team
 ___
 Nagios Enterprises, LLC
 Email:  tyaru...@nagios.com
 Web:www.nagios.com


 --
 Start uncovering the many advantages of virtual appliances
 and start using them to simplify application deployment and
 accelerate your shift to cloud computing.
 http://p.sf.net/sfu/novell-sfdev2dev
 ___
 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
 --
 Start uncovering the many advantages of virtual appliances
 and start using them to simplify application deployment and
 accelerate your shift to cloud computing.
 http://p.sf.net/sfu/novell-sfdev2dev
 ___
 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


-- 
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email:  michael.friedr...@univie.ac.at
phone:  +43 1 4277 14359
fax:+43 1 4277 14279
web:http://www.univie.ac.at/zid

Icinga Core  IDOUtils Developer
http://www.icinga.org


--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] [Nagios-devel] significant bug in 3.2.2 - nagios.cfg -- execute_service_checks=0 completely ignored

2010-10-01 Thread Michael Friedrich
Andreas Ericsson wrote:

 How about download the proposed fix from CVS and give that a go?


True for testing environments and source upgrades (if people can do that 
theirselves).
Untrue for package upgrades and similar upgrade paths.

Main problem targets the fact that the error reports differ in various 
ways. Only a developer might get the idea what did change, but if I were 
just an user with daily business I would spend a lot of time checking on 
possible errors. Better having a new release telling this is fixed.

 Since the fix awaits input from testers we can't very well release it
 immediately. You've tested it, so that makes one person. If a few more
 report that it's now working as intended without any downsides we'll
 probably go ahead and cut a release in the next few days, but releasing
 untested code that might break something else just to fix a bug isn't
 really good practice.


Well good to hear that, not rushing into releases. Maybe instrumented by 
asking on different channels for testing help (like Twitter and Facebook 
getting very popular right now). Just an idea to make life more easy.


Kind regards,
Michael

-- 
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email:  michael.friedr...@univie.ac.at
phone:  +43 1 4277 14359
fax:+43 1 4277 14279
web:http://www.univie.ac.at/zid

Icinga Core  IDOUtils Developer
http://www.icinga.org


--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
___
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] Large NDO Table

2010-09-16 Thread Michael Friedrich
Breandan Dezendorf wrote:
 The NDO tables nagios_host_contactgroups and
 nagios_service_contactgroups have grown to an incredible size on my
 nagios servers:

 SELECT count(*) FROM nagios_host_contactgroups;
 1230862

 SELECT count(*) FROM nagios_service_contactgroups;
 3310190

 The indexes are in place - when I run a SHOW CREATE TABLE
 nagios_host_contactgroups, I get the following:

 CREATE TABLE `nagios_host_contactgroups` (
`host_contactgroup_id` int(11) NOT NULL auto_increment,
`instance_id` smallint(6) NOT NULL default '0',
`host_id` int(11) NOT NULL default '0',
`contactgroup_object_id` int(11) NOT NULL default '0',
PRIMARY KEY  (`host_contactgroup_id`),
UNIQUE KEY `instance_id` (`host_id`,`contactgroup_object_id`)
 ) ENGINE=InnoDB AUTO_INCREMENT=2905453 DEFAULT CHARSET=latin1
 COMMENT='Host contact groups';

 There are similar UNIQUE KEYs on nagios_service_contactgroups.


this is not the current 1.4b9 schema. either it's modified for your 
usage or you still have the old 1.4b7 schema or something else. 1.b8 
changed the db engine from innodb to myisam (which is not good, but 
that's the main difference).


 Should I be worried about the size of the table?  I'm trying to do
 anything I can to speed up the database operations and limit database
 size.  I'm running Nagios 3.0.6 and NDO 1.4b9.  We have 109 contacts
 defined in the system, 1900+ hosts and 5000+ services.  I've already
 tuned the trim option for nagios_externalcommands and
 nagios_logentries down to 30 minutes, for what it's worth, as we
 mostly use the NDO data for a front end package we developed in-house.


i don't remember any logentries trimming options for ndoutils. can you 
post egrep -v ^$|^# ndo2db.cfg

the numbers are a bit odd though. can you check if the unique key 
columns match any id in objects or hosts?

kind regards,
michael


-- 
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email:  michael.friedr...@univie.ac.at
phone:  +43 1 4277 14359
fax:+43 1 4277 14279
web:http://www.univie.ac.at/zid

Icinga Core  IDOUtils Developer
http://www.icinga.org


--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Nagios plain files vs database storage

2010-09-15 Thread Michael Friedrich
yuris wrote:
 Could someone please give me an idea what drawbacks I may face if switch
 from plain nagios3 to ndoutils-nagios3-mysql with 350 - 400 hosts ? Can
 I store in mysql db only hosts and hostgroups and manipulate them
 (add/remove) via web interface while keep everything else in old way
 (plain test configs) to reduce load on mysql?


ndoutils is only one way putting config, status and historical data 
into a mysql database. the current cgis or even the core do not take 
those values into account for doing their work. you might use other 
addons to present the data from mysql then.

if you are considering an install of ndoutils, make sure it's either a 
cvs + patched version of 1.4b9 or the old 1.4b7 which runs smooth. 
current 1.4b9 contains some severe bugs which haven't been fixed for a 
while now.

kind regards,
Michael

-- 
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email:  michael.friedr...@univie.ac.at
phone:  +43 1 4277 14359
fax:+43 1 4277 14279
web:http://www.univie.ac.at/zid

Icinga Core  IDOUtils Developer
http://www.icinga.org


--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Nagios plain files vs database storage

2010-09-15 Thread Michael Friedrich
C. Bensend wrote:
 Hm...  I've been running b9 for a year now, and I haven't
 noticed any issues.  What is the nature of these issues that
 you mention?  Just because I haven't noticed doesn't mean
 something bad isn't happening to my data...


depends on your data being processed. duplicate rows bug in 
servicechecks table e.g. affects historical data processing afterwards.
try a

mysql show create table nagios_servicechecks;

and check if the unique keys are set correctly. the other way around, 
try selecting several rows from that table, and check for 
start_time/end_time being zero. 2 rows having the unique keys

(`instance_id`,`service_object_id`,`start_time`,`start_time_usec`)

or only one row?


another patch regarding customvariables config is in cvs but never got 
released. basically ndo2db segfaults because of a too small defined array for 
inserting/updating custom variables configuration (this only happens if you 
dump config and use custom vars).

some other changes which affect performance like binary casting for case 
sensitive compares are also there. so if you don't need ssl over tcp, reports 
for 1.4b7 are just more fine then.

read further on that thread: 
http://www.mail-archive.com/nagios-users@lists.sourceforge.net/msg32793.html

Kind regards,
Michael

PS: The proposed patch for the duplicated rows is rather small. but it can't be 
applied on existing installations as mysql will complain about unique 
constraint violation of existing data then. but at least patching that for 
fresh installs would generate more benefit.



-- 
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email:  michael.friedr...@univie.ac.at
phone:  +43 1 4277 14359
fax:+43 1 4277 14279
web:http://www.univie.ac.at/zid

Icinga Core  IDOUtils Developer
http://www.icinga.org


--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
___
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] cmd.cgi arguments info?

2010-08-19 Thread Michael Friedrich
Danilo Godec wrote:
   Hi,

 where can I find information about cmd.cgi arguments available on my
 version of Nagios (3.0.6)?

 I want to acknowledge detected problems from a remote machine using
 'curl' and need to turn the acknowledgment notification off...


Have a look into cgi/cmd.c

void request_command_data(int cmd){

and then translate the cmd type e.g. CMD_DISABLE_HOST_NOTIFICATIONS into 
appropriate integer in include/common.h

but afaik disabling only the ack notification won't be possible in that 
particular case, you'll need to disable host/service notifications then.

kind regards,
Michael


Danilo


 --
 This SF.net email is sponsored by

 Make an app they can't live without
 Enter the BlackBerry Developer Challenge
 http://p.sf.net/sfu/RIM-dev2dev
 ___
 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




-- 
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email:  michael.friedr...@univie.ac.at
phone:  +43 1 4277 14359
fax:+43 1 4277 14279
web:http://www.univie.ac.at/zid

Icinga Core  IDOUtils Developer
http://www.icinga.org


--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
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] Recommended network map software

2010-07-29 Thread Michael Friedrich
On 2010-07-29 22:28, Tony Yarusso wrote:
 http://library.nagios.com/library/products/nagiosxi/documentation/269-integrating-nagvis-with-nagios-xi
  (this hasn't been updated for NagVis 1.5 yet though).


Just to mention, that the parent-child relations needs to be done within 
the configs (or an appropriate config tool, as nagiosxi uses the free 
oss tool named nagiosql, but other can do the trick too, even vi(m)).
The overall rest how to install and configure can be found straight into 
the nagvis docs. So it's all about Nagios Core and not dependent on the 
Nagios XI environment.

http://docs.nagvis.org/1.5/en_US/index.html

you can also ask over here: 
http://www.nagios-portal.org/wbb/index.php?page=BoardboardID=42

Kind regards,
Michael

-- 
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email:  michael.friedr...@univie.ac.at
phone:  +43 1 4277 14359
fax:+43 1 4277 14279
web:http://www.univie.ac.at/zid

Icinga Core  IDOUtils Developer
http://www.icinga.org


--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Nagios Community Down?

2010-07-27 Thread Michael Friedrich
On 2010-07-27 17:35, Matt Simmons wrote:
 I'm getting a 302 whenever I try to connect to the Nagios community
 site (http://community.nagios.org/) as linked to by the main site.


This has been redirecting to the main page for a while now. Probably 
because the Nagios community site has been hacked if this blog post 
tells the truth.

http://blog.sucuri.net/2010/07/nagios-community-site-hacked.html

It looks like a .htaccess redirection, but it might be something else. 
They are using an old version of WordPress, which may explain the 
compromise. We recommend people stay way from the site until it gets fixed.


 Is this related to the wiki issue or something else? (Or did I not get
 the memo?)


The wiki could have suffered from that too, but if no-one affiliated to 
those servers tells anything, we can just guess.

Kind regards,
Michael

-- 
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email:  michael.friedr...@univie.ac.at
phone:  +43 1 4277 14359
fax:+43 1 4277 14279
web:http://www.univie.ac.at/zid

Icinga Core  IDOUtils Developer
http://www.icinga.org


--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share 
of $1 Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] Looking for beta-users

2010-07-20 Thread Michael Friedrich
You could consider sending it to those mailinglists too:

icinga-us...@lists.sourceforge.net
op5-us...@lists.op5.com


On 2010-07-20 18:53, Dario B. Bestetti (OpServices) wrote:
 I know, this is not the best way or place to send this message, but 
 since it might interest all Nagios users, we would like to select a 
 few beta-users for a product the we are about to launch in the next 
 weeks. If you are interested in being a bet user of OpViews Connector, 
 please answer this email in private. Below a short description of what 
 is OpViews Connector:

 *OpViews Connector is an application developed to add advanced 
 visualization functionalities for Nagios-based management 
 applications, the opensource most popular network and systems 
 management platform.** OpViews allows Nagios, Nagios XI, OpMon, 
 GroundWork, Op5 and Icinga's users easily build business and 
 infra-structures dashboards through an user friendly GUI. OpViews 
 Editor (included) allow users from the above platforms get monitoring 
 indicators and informations direct from their databases and show them 
 in an graphic and animated dashboard, which make it perfect to show IT 
 status on large screens, without having to write a single line of code. *

 Using the Advanced Nagios Adapter (ANA) you don't have to make any 
 modifications in your opensource monitoring application and the 
 results are presented fully integrated in your monitoring environment. 
 ANA allows you to connect and extract data direct from your monitoring 
 databases, no matter what Nagios-based database broker you are using 
 and without having to write any code.

 As a requirement to use OpViews Connector you must use one of the 
 following Nagios-based database broker on your server:
 *- ndoutils*
 *- IDOUtils*
 *- Opdb*
 - Merlin
 - Mk Livestatus

 On the browser/client side the only requirement is Adobe Flash Player 
 10.1 or superior installed in your desktop.

 _
 Dario B. BestettiOpServices
   R. Félix da Cunha, 1009 - Sala 501
   Porto Alegre, RS - CEP 90570-001
 Fone 55(51)32753588 Mobile  55(51)81518218
 Fax 55(51)32753588  Emaildario.beste...@opservices.com.br

Taking control has never been so easy
 _


 --
 This SF.net email is sponsored by Sprint
 What will you do first with EVO, the first 4G phone?
 Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first


 ___
 Nagios-users mailing list
 Nagios-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nagios-users
 ::: Please include Nagios version, plugin version (-v) and OS when reporting 
 any issue.
 ::: Messages without supporting info will risk being sent to /dev/null


--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
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] Adding a line to GUI

2010-07-16 Thread Michael Friedrich

Honia A wrote:

Thanks for your reply Bret.

I would like the second idea (keep that message on all the pages in 
that same gray box). So I looked into that directory you mentioned 
(/usr/local/nagios/sbin) but they are all the compiled cgi files. When 
I opened them with UltraEdit and Notepad, they were not editable, the 
lines look something like this (below).


Is there any way I could edit them or may be there are pre-compiled 
versions of the files which I could edit?


you have to edit the appropriate .c files and then recompile the cgis 
out of them. since this a generic box, it's only defined once.


$ grep -r display_info_table *

points to cgi/cgiutils.c

Within this function you will see a bunch of html code within printf 
calls. There you can edit/add your preferred line.


e.g. adding below

if(current_authdata!=NULL)
printf(Logged in as 
i%s/iBR\n,(!strcmp(current_authdata-username,))??:current_authdata-username);


this

printf(ifont color=redbeware of the nagios root, don't 
change anything!/font/iBR\n);


After that, run make clean  make cgis  sudo make install-cgis

Should do the trick ;-)

Kind regards,
Michael


--
DI (FH) Michael Friedrich
michael.friedr...@univie.ac.at
Tel: +43 1 4277 14359

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] ndoutils 1.4b7 vs 1.4b9

2010-07-15 Thread Michael Friedrich
 code. Sadly to say for the 
community, but well.


Anyways, if you consider patching those things yourself, consider Icinga 
with IDOUtils as an alternative too.

Kind regards,
Michael

PS: Sorry for mentioning Icinga and fork and so on. Since it catches up 
with the topic, I think it's worth to talk about that a bit with the 
Nagios community too.

-- 
DI (FH) Michael Friedrich
michael.friedr...@univie.ac.at
Tel: +43 1 4277 14359

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria


--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
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] NDO only processing some hosts

2010-07-15 Thread Michael Friedrich
Greg Pangrazio wrote:
 Is there a way to limit which hosts get put into the NDO database?  My
 install is getting a bit big and NDO is taking up too much of the CPU
 and making the system sluggish.  If i turn of NDO it works fine.

 I use ndo for some custom pages for groups that do not have access to
 nagios and only need to check like 80 services and 40 hosts for those
 pages and the other 800 hosts and 3000 services don't need to be in
 the database.

 Maybe I am missing some NDO optimizations too?

egrep -v ^#|^% ndo2db.cfg
egrep -v ^#|^% ndomod.cfg

version?

and consider like mentioned setting data processing options, and the 
data trimming options.

 The hardware is a dual quad core Xeon 2.5Ghz with 56GB ram so I should
 not be having any problems.


normally I/O problems if the RDBMS is on the same host.

Kind regards,
Michael



-- 
DI (FH) Michael Friedrich
michael.friedr...@univie.ac.at
Tel: +43 1 4277 14359

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria


--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
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] NDO only processing some hosts

2010-07-15 Thread Michael Friedrich
Hi,

Greg Pangrazio wrote:
 max_timedevents_age=60

If you remove that from data_processing_options, it won't be used in the 
future.

 max_systemcommands_age=90
 max_servicechecks_age=90
 max_hostchecks_age=90
 max_eventhandlers_age=1440


Quite low values, could be that the cleanup interferes with the inserts 
(it's cyclic every 60 seconds), but that's just a minor thought.

Can you show me a

SQL SELECT COUNT(*) AS CNT FROM nagios_objects;

and the summary count of your host and services for futher recommendations.

 data_processing_options=-1


Check on that. Do you really need all data or is it just for pulling 
status data?
You might wanna check this nifty calculator too 
http://labs.consol.de/lang/en/nagios/ndo-data-processing-options/

The first thing you won't ever need are the timed events. Icinga 
IDOUtils sample configs have been patched in order to prevent timed 
event data inserts by default.

  182 # The default setting will remove the TIMED_EVENT_DATA (67108863 - 2)
  183
  184 data_processing_options=67108861

If you consider far less than that, you might want to check the proposed 
settings for NagVis (found somewhere at nagios-portal.org)

  186 # If you are planning to use NagVis you may want to use the 
following setting:
  187 #
  188 #data_processing_options=4061953

But, this is the most common recommandation ;-)

  189 #
  190 # You may have to experiment in your environment and find the best 
value yourself!


 NDO2DB 1.4b7


good. read the other thread about newer versions if interested.

Kind regards,
Michael


 Thanks,
 Greg Pangrazio
 pangr...@gmail.com




 On Thu, Jul 15, 2010 at 6:42 AM, Michael Friedrich
 michael.friedr...@univie.ac.at  wrote:

 Greg Pangrazio wrote:
  
 Is there a way to limit which hosts get put into the NDO database?  My
 install is getting a bit big and NDO is taking up too much of the CPU
 and making the system sluggish.  If i turn of NDO it works fine.

 I use ndo for some custom pages for groups that do not have access to
 nagios and only need to check like 80 services and 40 hosts for those
 pages and the other 800 hosts and 3000 services don't need to be in
 the database.

 Maybe I am missing some NDO optimizations too?


 egrep -v ^#|^% ndo2db.cfg
 egrep -v ^#|^% ndomod.cfg

 version?

 and consider like mentioned setting data processing options, and the
 data trimming options.

  
 The hardware is a dual quad core Xeon 2.5Ghz with 56GB ram so I should
 not be having any problems.


 normally I/O problems if the RDBMS is on the same host.

 Kind regards,
 Michael



 --
 DI (FH) Michael Friedrich
 michael.friedr...@univie.ac.at
 Tel: +43 1 4277 14359

 Vienna University Computer Center
 Universitaetsstrasse 7 A-1010 Vienna, Austria


 --
 This SF.net email is sponsored by Sprint
 What will you do first with EVO, the first 4G phone?
 Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
 ___
 Nagios-users mailing list
 Nagios-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nagios-users
 ::: Please include Nagios version, plugin version (-v) and OS when reporting 
 any issue.
 ::: Messages without supporting info will risk being sent to /dev/null

  
 --
 This SF.net email is sponsored by Sprint
 What will you do first with EVO, the first 4G phone?
 Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
 ___
 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




-- 
DI (FH) Michael Friedrich
michael.friedr...@univie.ac.at
Tel: +43 1 4277 14359

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria


--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
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] NDO only processing some hosts

2010-07-15 Thread Michael Friedrich
Greg Pangrazio wrote:
 I don't really care about historical data so i was reducing those
 times to get data out of the DB faster and improve startup times.


Check on indexes for the MySQL schema. there is a -mod sql script next 
to the normal db schema definition.

 Should I go back to the defaults there?


No it's just fine. The defaults are set to high imho, I patched that in 
IDOUtils too.

 Here is the SQL
 +--+
 | CNT  |
 +--+
 | 3232 |
 +--+

 Really I only need service and host status nothing else is of use to me.


Ok, so basically you need to sum up all needed values e.g. containing 
'status'.


 Does that mean i want the service status data and/or the service check
 data.  I assume that the host should match.


checks are considered historical.

kind regards,
Michael

 Greg Pangrazio
 pangr...@gmail.com


 On Thu, Jul 15, 2010 at 9:37 AM, Michael Friedrich
 michael.friedr...@univie.ac.at  wrote:

 Hi,

 Greg Pangrazio wrote:
  
 max_timedevents_age=60


 If you remove that from data_processing_options, it won't be used in the
 future.

  
 max_systemcommands_age=90
 max_servicechecks_age=90
 max_hostchecks_age=90
 max_eventhandlers_age=1440


 Quite low values, could be that the cleanup interferes with the inserts
 (it's cyclic every 60 seconds), but that's just a minor thought.

 Can you show me a

 SQL  SELECT COUNT(*) AS CNT FROM nagios_objects;

 and the summary count of your host and services for futher recommendations.

  
 data_processing_options=-1


 Check on that. Do you really need all data or is it just for pulling
 status data?
 You might wanna check this nifty calculator too
 http://labs.consol.de/lang/en/nagios/ndo-data-processing-options/

 The first thing you won't ever need are the timed events. Icinga
 IDOUtils sample configs have been patched in order to prevent timed
 event data inserts by default.

   182 # The default setting will remove the TIMED_EVENT_DATA (67108863 - 2)
   183
   184 data_processing_options=67108861

 If you consider far less than that, you might want to check the proposed
 settings for NagVis (found somewhere at nagios-portal.org)

   186 # If you are planning to use NagVis you may want to use the
 following setting:
   187 #
   188 #data_processing_options=4061953

 But, this is the most common recommandation ;-)

   189 #
   190 # You may have to experiment in your environment and find the best
 value yourself!


  
 NDO2DB 1.4b7


 good. read the other thread about newer versions if interested.

 Kind regards,
 Michael

  
 Thanks,
 Greg Pangrazio
 pangr...@gmail.com




 On Thu, Jul 15, 2010 at 6:42 AM, Michael Friedrich
 michael.friedr...@univie.ac.atwrote:


 Greg Pangrazio wrote:

  
 Is there a way to limit which hosts get put into the NDO database?  My
 install is getting a bit big and NDO is taking up too much of the CPU
 and making the system sluggish.  If i turn of NDO it works fine.

 I use ndo for some custom pages for groups that do not have access to
 nagios and only need to check like 80 services and 40 hosts for those
 pages and the other 800 hosts and 3000 services don't need to be in
 the database.

 Maybe I am missing some NDO optimizations too?



 egrep -v ^#|^% ndo2db.cfg
 egrep -v ^#|^% ndomod.cfg

 version?

 and consider like mentioned setting data processing options, and the
 data trimming options.


  
 The hardware is a dual quad core Xeon 2.5Ghz with 56GB ram so I should
 not be having any problems.



 normally I/O problems if the RDBMS is on the same host.

 Kind regards,
 Michael



 --
 DI (FH) Michael Friedrich
 michael.friedr...@univie.ac.at
 Tel: +43 1 4277 14359

 Vienna University Computer Center
 Universitaetsstrasse 7 A-1010 Vienna, Austria


 --
 This SF.net email is sponsored by Sprint
 What will you do first with EVO, the first 4G phone?
 Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
 ___
 Nagios-users mailing list
 Nagios-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nagios-users
 ::: Please include Nagios version, plugin version (-v) and OS when 
 reporting any issue.
 ::: Messages without supporting info will risk being sent to /dev/null


  
 --
 This SF.net email is sponsored by Sprint
 What will you do first with EVO, the first 4G phone?
 Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
 ___
 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

Re: [Nagios-users] ndoutils 1.4b7 vs 1.4b9

2010-07-13 Thread Michael Friedrich
Hi,

Carl Friend wrote:
 I tried updating my (perfectly working, mind you) ndoutils from
 1.4b7 to 1.4b9 over the weekend and was primarily rewarded with
 segfaults and other grief which has resisted investigation and
 fixes.  The errors were introduced in 1.4b8 and persist into 1.4b9.
 I'm running on Solaris-10 SPARC.  The last SQL query I seem to see
 in the debug log is when the ndo2db daemon tries inserting a row
 into the Nagios_customvariables table.


Well I've sent a patch a few months ago to nagios-devel but iirc it's 
only in CVS, not within a new beta release. An Icinga user pointed me to 
that problem.

http://markmail.org/message/jsolx6j6jl74aqpj
https://dev.icinga.org/issues/219

 I'm tired of banging my head on it.  Does anybody know when the
 next version is due out that'll fix the segfaults?


Currently NDOUtils stands without a maintainer...
http://www.mail-archive.com/nagios-users@lists.sourceforge.net/msg32080.html

I'd recommend staying at 1.4b7 since 1.4b9 SQL schema is a bit screwed 
regarding unique constraints next to the binary selects instead of case 
sensitive collation.

Search the mailing list archives for further information on that.

Kind regards,
Michael

-- 
DI (FH) Michael Friedrich
michael.friedr...@univie.ac.at
Tel: +43 1 4277 14359

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria


--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
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] wiki down?

2010-07-01 Thread Michael Friedrich
Tony Yarusso wrote:
 Thanks for the note - Ethan's looking into it now.  (He just got back
 from another trip.)


Maybe no service escalation condition was set ...

-- 
DI (FH) Michael Friedrich
michael.friedr...@univie.ac.at
Tel: +43 1 4277 14359

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria


--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
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] Escalate after X warnings or criticals

2010-06-18 Thread Michael Friedrich
Andrew Li wrote:
 Thanks for the patch, it applies cleanly to 3.0.6 stable. I've read
 through it but have not yet tried using it.


Hiren has been in contact with Mark on it the last months, in Icinga it 
works just fine now.

 I think it's a good enhancement because it makes the escalation path
 more logical.


Yep we too - that is why it has been slightly adapted and will be in 
Icinga 1.0.2

Kind regards,
Michael

-- 
DI (FH) Michael Friedrich
michael.friedr...@univie.ac.at
Tel: +43 1 4277 14359

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria


--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
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] R: Ndoutils block nagios

2010-06-03 Thread Michael Friedrich
On 2010-06-03 08:38, Abdessamad BARAKAT wrote:
 Before this crash , all works like a charm. Do you think I really need
 to upgrade ?


I would just recommend it on performance purpose but if it worked for 
you, stay at 1.4b7 - 1.4b8 is shipping with several bugs which are not 
all resolved in 1.4b9 (from what I can tell looking at the code and 
comparing to Icinga IDOUtils).

Regarding your problem I would run a sanity check on the database, 
checking if there's anything broken and ndo2db just fails on inserting 
data (long lasting connections to the rdbms slow down the overall 
sequential inserts).

You might also use a little trick to remove the 5k items from buffer - 
you can set that in your ndomod.cfg - set it to 1, restart the core, 
change back and restart again. Never tried that, but at least those 
buffered items should be dropped out of the way.

But I think the electrical incident harmed sth else, like the rdbms.

Kind regards,
Michael


 Michael Friedrich a écrit :

 Abdessamad BARAKAT wrote:
  
 buffer_file=/var/cache/nagios3/ndoutils_mod.tmp

 Try to remove this from disk in order to drop the waiting 5k items being
 put on the socket.

 Having a fresh startup of nagios and ndoutils, the config waits to be
 written, before some more realtime/config cleanups and after that, the
 historical cleanups leading from ndo2db.cfg might also interfere the
 normal insert/update procedure. this is when the socket gets blocking
 and ndomod is buffed with data it can't even send to the socket.

 Regarding 1.4b7 - consider getting the latest cvs head and patch the
 unique constraint bugfix on nagios-devel yourself onto mysql.sql

 It's not the latest and greatest ndoutils, just the latest though.

 Kind regards,
 Michael

  
 file_rotation_interval=14400
 file_rotation_timeout=60
 reconnect_interval=15
 reconnect_warning_interval=15
 data_processing_options=-1
 config_output_options=3


 Thanks again for your help

 Bertinelli Massimo a écrit :

 I risolve the same problem using this method:
 stop ndo and nagios
 deleting the file ndo.sock on nagios/var directory
 Start ndo and nagios
Bye
 Max

 - Messaggio originale -
 Da: Abdessamad BARAKATabdessa...@barakat.fr
 A: nagios-users@lists.sourceforge.netnagios-users@lists.sourceforge.net
 Inviato: Wed Jun 02 13:42:12 2010
 Oggetto: [Nagios-users] Ndoutils block nagios

 Hi,

 After a electrical crash, I have a problem with ndoutils, nagios start
 and works correctly when ndo2db isn't started .

 When I start ndo2db, nagios blocks.

 When ndo2db is started , nagios connect to ndo2db:

 [1275478646] ndomod: Successfully reconnected to data sink!  113098
 items lost, 5000 queued items to flush.

 I see this activity on the process nagios with strace:

 [pid 18603] write(7, \n400:\n4=1275477698.622212\n174=MAW..., 588
 unfinished ...
 [pid 18604]... poll resumed   )= 0 (Timeout)
 [pid 18604] poll([{fd=4, events=POLLIN}], 1, 500) = 0 (Timeout)
 [pid 18604] poll([{fd=4, events=POLLIN}], 1, 500) = 0 (Timeout)
 [pid 18604] poll([{fd=4, events=POLLIN}], 1, 500) = 0 (Timeout)
 [pid 18604] poll([{fd=4, events=POLLIN}], 1, 500) = 0 (Timeout)

 Before the electrical crash , all is ok.

 I use :

 - nagios 3.0.6
 - NDOMOD 1.4b7 (10-31-2007)

 Many thanks for any help / information




 --

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


  

 --
 ThinkGeek and WIRED's GeekDad team up for the Ultimate
 GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
 lucky parental unit.  See the prize list

Re: [Nagios-users] R: Ndoutils block nagios

2010-06-02 Thread Michael Friedrich
Abdessamad BARAKAT wrote:
 buffer_file=/var/cache/nagios3/ndoutils_mod.tmp

Try to remove this from disk in order to drop the waiting 5k items being 
put on the socket.

Having a fresh startup of nagios and ndoutils, the config waits to be 
written, before some more realtime/config cleanups and after that, the 
historical cleanups leading from ndo2db.cfg might also interfere the 
normal insert/update procedure. this is when the socket gets blocking 
and ndomod is buffed with data it can't even send to the socket.

Regarding 1.4b7 - consider getting the latest cvs head and patch the 
unique constraint bugfix on nagios-devel yourself onto mysql.sql

It's not the latest and greatest ndoutils, just the latest though.

Kind regards,
Michael

 file_rotation_interval=14400
 file_rotation_timeout=60
 reconnect_interval=15
 reconnect_warning_interval=15
 data_processing_options=-1
 config_output_options=3


 Thanks again for your help

 Bertinelli Massimo a écrit :
 I risolve the same problem using this method:
 stop ndo and nagios
 deleting the file ndo.sock on nagios/var directory
 Start ndo and nagios
   Bye
 Max

 - Messaggio originale -
 Da: Abdessamad BARAKATabdessa...@barakat.fr
 A: nagios-users@lists.sourceforge.netnagios-users@lists.sourceforge.net
 Inviato: Wed Jun 02 13:42:12 2010
 Oggetto: [Nagios-users] Ndoutils block nagios

 Hi,

 After a electrical crash, I have a problem with ndoutils, nagios start
 and works correctly when ndo2db isn't started .

 When I start ndo2db, nagios blocks.

 When ndo2db is started , nagios connect to ndo2db:

 [1275478646] ndomod: Successfully reconnected to data sink!  113098
 items lost, 5000 queued items to flush.

 I see this activity on the process nagios with strace:

 [pid 18603] write(7, \n400:\n4=1275477698.622212\n174=MAW..., 588
 unfinished ...
 [pid 18604]... poll resumed  )= 0 (Timeout)
 [pid 18604] poll([{fd=4, events=POLLIN}], 1, 500) = 0 (Timeout)
 [pid 18604] poll([{fd=4, events=POLLIN}], 1, 500) = 0 (Timeout)
 [pid 18604] poll([{fd=4, events=POLLIN}], 1, 500) = 0 (Timeout)
 [pid 18604] poll([{fd=4, events=POLLIN}], 1, 500) = 0 (Timeout)

 Before the electrical crash , all is ok.

 I use :

 - nagios 3.0.6
 - NDOMOD 1.4b7 (10-31-2007)

 Many thanks for any help / information




 --

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


-- 
DI (FH) Michael Friedrich
michael.friedr...@univie.ac.at
Tel: +43 1 4277 14359

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] [Nagios-devel] Nagios development moving forward

2010-05-27 Thread Michael Friedrich
Hi,

just some feedback from my side on your patches.

 Original Message  
Subject: [Nagios-devel] Nagios development moving forward
From: Andreas Ericsson a...@op5.se
To: nagios-devel nagios-de...@lists.sourceforge.net, 
Nagios-users@lists.sourceforge.net Nagios-users@lists.sourceforge.net
Date: 2010-04-29 20:46

 So for those of you who wish to try out a revamped Nagios with a
 bunch of bugfixes and code improvements, clone your repo from me
 or Ton today and build Nagios from source.

I've taken all your commits and applied them manually onto the current 
Icinga Core (we changed things, Nagios did not, and next to that, I'd 
like to understand what you and Toon hacked there ;-)

Your hackings are very very nice, and it's a real good start in fixing 
things and getting rid of old grown code and workarounds.

This commit is just WOW :-)

http://git.op5.org/git/?p=nagios.git;a=commit;h=555b4b72aae54e65ba923093ef469c3aa5a0edb9

Regarding taking over commits, kudos have been kept both within commit 
subjects and changelog for our next release including your patches next 
to ours.

 From the testing arena, everything runs fine. Although the sync 
retention feature is only one half of the good, the other would be 
opsview or some nifty hacking on distributed monitoring :) Everything 
else resolves as it should be.


By chance, get these changes into a revamped tar.gz and hand that to 
packagers, if it does not get into current CVS head. Or at least the 
patch set :)

Kind regards,
Michael


 To clone a repository with git, use
git cloneurl

 This will get you all latest sources. For further info about git,
 see http://www.git-scm.org

 My repo:
clone url:
  git://git.op5.org/nagios.git
gitweb url's:
  http://git.op5.org/git/?p=nagios.git
  http://git.op5.org/git/?p=nagios.git;a=shortlog;h=refs/heads/dev
branches:
  masterSame as the still-official Nagios CVS repo
  dev   My changes on top of CVS import
  ae-tonThe merged state between me and Ton

 Ton's repo:
clone url:
  git://github.com/tonvoon/opsview-nagios.git
gitweb url:
  http://github.com/tonvoon/opsview-nagios.git
branches:
  masterTon's and my changes on top of CVS import


 Those of you who have reported bugs to tracker.nagios.org should
 log into the tracker again and see if your bug has been closed or
 resolved, and if so try out my dev branch, which should contain
 the proper fix.

 Those of you who are git-savvy since before can try

git log -p --grep=fix.*#$bug_id_without_leading_zeroes dev

 in a repo cloned from mine and it'll show you the commits that
 are responsible for fixing your problem.



-- 
DI (FH) Michael Friedrich
michael.friedr...@univie.ac.at
Tel: +43 1 4277 14359

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

--

___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] [Nagios-devel] Nagios development moving forward

2010-04-30 Thread Michael Friedrich
Hi,

 Original Message  
Subject: Re: [Nagios-devel] Nagios development moving forward
From: Andreas Ericsson a...@op5.se
To: Nagios Developers List nagios-de...@lists.sourceforge.net
Date: 2010-04-30 10:04

 The problem is that Ethan is too swamped to learn a new SCM at the
 moment. Since that most likely means he's also too swamped to do any
 development work on the Nagios core and CVS is quite unusable by me
 and Ton, we decided to move forward with development anyway. 

Well I understand what he is doing right know, and I also understand 
that Ton and you would like to get things going with GIT.
I basically did the same for some NDOUtils patches recently, I don't 
like to work on CVS when I get my hands on GIT :)

 We're using one git repository each, and expect to be able to send pull
 requests to Ethan (or whoever takes the part of integrator) when
 Ethan takes the time to learn enough of git to join in.

Hmmm I was coming from CVS/SVN about a year ago, and it was hard at the 
first time, but after a while, it was rather easy. I wrote several 
notes, and summarized this into our wiki lately.

Maybe it will help Ethan since its focus is on the core within GIT.

https://dev.icinga.org/wiki/icinga-development

 It's meant to be an announcement that there are repositories where
 core developers are stashing bugfixes and enhancements. What people
 choose to do with that information is quite up to themselves.

Ok, will start testing and applying then.

 
 Personally, I'd love it if people used my 'dev' branch for testing
 and, if it solves a real problem they're having, for production use
 too. All the changes I've done so far are bugfixes and performance
 and maintainability improvements that shouldn't change any previously
 working behaviour.

Maybe several patches and fixes will get into rpm/deb packages then if 
they are resolving major issues and no new official release happens in time.
Thanks for pointing this out, this will ease applying and testing.

 Yes and no. Hendrik Baecker wrote an email to me, Ton and Ethan a
 few weeks ago stating he no longer has the time to maintain NDOutils.
 That means that NDOUtils currently stands without a maintainer.

Ah ok. Thanks for the official info, thought about that a while ago.
Well, difficult situation then. Maybe time for Merlin to become an 
official Core addon? :)

 I won't be picking up that flag, since I'm also the Merlin maintainer
 and wouldn't want to sit in a position where I'm maintaining two
 similar modules. Especially since op5 won't be paying me to maintain
 a more or less competing product. Maybe Ton or Ethan will take care
 of it, or we'll announce that we're looking for a new maintainer
 sometime soon. If anyone's interested in wearing the NDOUtils hat,
 let us know.

A while ago, I would have said yes (I also told Hendrik that he should 
send Ethan my application, but I got on hold never having sent any 
patches or sth like that).

Right know my company will step over to Icinga and I will be maintaining 
this direction into the future, mainly regarding Postgres/Oracle support 
  in combination with the new API/Web.

So basically there's no time left for NDOUtils - it's basically 
competing with IDOUtils as a matter of fact, but only IDOUtils has 
Postgres/Oracle support and extended housekeeping etc. Overall NDOUtils 
needs to be kind of rewritten/improved as we did in Icinga - by someone 
who'll take the hat.

Furthermore there are signifcant issues on the code of NDOUtils which 
need to be fixed asap (imho) - just for the community who uses it right now.

Some of them are mentioned on the lists, some on the tracker and some 
are also within the patch collection of Opsera (talked to Ton on IRC 
about taking some of them into IDOUtils).

Regarding NagVis, mk-livestatus (nice approach getting to know on the 
couches next to OSMC 2009) get's more and more important and people are 
moving over. At least the german speaking community is really into that, 
maybe others will catch up too.

http://mathias-kettner.de/checkmk_livestatus.html

So the basic need of NDOUtils is not there anymore regarding NagVis - 
also if using Merlin/Ninja.
For other addons e.g. reporting tools development must not stop though.

There are 2 other guys on the NDOUtils team - how about them to get 
things going?
Or maybe a decision by Ethan, because currently the Nagios XI Enterprise 
version also ships with a buggy, not patched version of NDOUtils. And I 
suspect, for business needs, that's not really a good choice offering that.

Anyways, I am happy to see that something's going on on the Nagios dev 
side of life :-)

Kind regards,
Michael

-- 
DI (FH) Michael Friedrich
michael.friedr...@univie.ac.at
Tel: +43 1 4277 14359

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

--
___
Nagios-users mailing

Re: [Nagios-users] event_broker_options and multiple broker modules

2010-04-29 Thread Michael Friedrich
 Original Message  
Subject: [Nagios-users] event_broker_options and multiple broker modules
From: Wolfgang Powisch powo+lists.nagios-us...@powo.priv.at
To: Nagios List nagios-users@lists.sourceforge.net
Date: 2010-04-28 23:14

 Hi,
 
 I'm currently using NDOutils+MySQL to access both, live- and hitorical 
 data from Nagios-systems in a custom network management system.

Which Version of NDOUtils? If  1.4b7 I would not recommend it for 
historical data, or in case, if you don't need correct data in 
servicechecks, systemcommands and timedevents, you can keep it ;-)

 
 Recently I noticed mk-livestatus and since the NDO-DB solution has 
 significant performance/scalability issues I'm planning to use 
 mk-livestatus for live-data-retrieval but keeping NDO for historical
 data.

AFAIK mk-livestatus can also ask the core for historical data, but I 
don't think parsing logs from the core would scale then. Also the 
overall memory consumption of the core loading the mk-livestatus module 
will will be more when having everything cached.

 
 Basically it doesn't seem to be a problem to use both broker-modules
 at the same time but I'd like to specify different 
 event_broker_options per broker_module. is that possible ?

On NDOUtils you can set the data processing options in ndomod.cfg - this 
is just for the module itsself. Which event broker options are needed 
for mk-livestatus - well that's the thing to ask the devs. Also there's 
no option to set that directly onto the module as for it only gets the 
live socket as param (and debug mode).

I would recommend that you ask on nagios-portal.org where the devs are 
around.

Kind regards,
Michael


-- 
DI (FH) Michael Friedrich
michael.friedr...@univie.ac.at
Tel: +43 1 4277 14359

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

--
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] [Nagios-devel] Nagios development moving forward

2010-04-29 Thread Michael Friedrich
Hi,

 Original Message  
Subject: [Nagios-devel] Nagios development moving forward
From: Andreas Ericsson a...@op5.se
To: nagios-devel nagios-de...@lists.sourceforge.net, 
Nagios-users@lists.sourceforge.net Nagios-users@lists.sourceforge.net
Date: 2010-04-29 20:46

 Hey all. Sorry for cross-posting, but I suppose this announce
 interests quite a lot of the users too, and not just developers.
 
 I'm just writing to inform you all that Nagios (core and cgi's)
 development is once again moving forward. We've previously been
 stalled by technical issues on how we should work with the code
 now that we're a distributed team.
 
 As most of you know, talk has been going on for quite some time
 to move the official Nagios repository to git. While this hasn't
 happened yet, everything that has so far been coded for Nagios
 has been done that way, in my own and Ton's public repositories
 which are cross-pollinated with changes from both of us.
 
 So for those of you who wish to try out a revamped Nagios with a
 bunch of bugfixes and code improvements, clone your repo from me
 or Ton today and build Nagios from source.

Thanks for the update. Although it would be nice to get the official 
repositories onto GIT - where exactly is the problem?

And regarding the revamped Nagios - is this meant to be an invitation 
for testing, or for using those versions? When will all those fixes be 
merged back in to the CVS HEAD

   branches:
 masterSame as the still-official Nagios CVS repo
 dev   My changes on top of CVS import
 ae-tonThe merged state between me and Ton

Sounds good, will give it a try. A bunch of nice improvements, and 
bugfixes next to those where I've already applied the patches and tested 
them over here :)

   gitweb url:
 http://github.com/tonvoon/opsview-nagios.git

Minor note - remove the .git then it works
http://github.com/tonvoon/opsview-nagios


 Those of you who have reported bugs to tracker.nagios.org should
 log into the tracker again and see if your bug has been closed or
 resolved, and if so try out my dev branch, which should contain
 the proper fix.

Any news on NDOUtils and other Core addons? Next to the Core it would be 
nice to know what's going on with them.

Kind regards,
Michael

-- 
DI (FH) Michael Friedrich
michael.friedr...@univie.ac.at
Tel: +43 1 4277 14359

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

--
___
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] ndomod: Could not open data sink

2010-02-17 Thread Michael Friedrich
NIgel Leach wrote:
 Nothing unfortunately,what ever debug options I set, this file is always empty

good. then ndo2db does not fork itsself meaning ndomod cannot connect 
over the socket. so the current problem is ndomod and/or the socket from 
which ndo2db should read then.

 and ndomod.cfg?
 
 here it is, cheers
 
 instance_name=default
 output_type=tcpsocket
 output=127.0.0.1
 tcp_port=5668
 use_ssl=0
 output_buffer_items=5000
 buffer_file=/usr/local/nagios/var/ndomod.tmp
 file_rotation_interval=14400
 file_rotation_timeout=60
 reconnect_interval=15
 reconnect_warning_interval=15
 data_processing_options=-1
 config_output_options=2

How does that match with this?

[ndo2db.cfg]
lock_file=/usr/local/nagios/var/ndo2db.lock
ndo2db_user=nagios
ndo2db_group=nagios
socket_type=unix
socket_name=/usr/local/nagios/var/ndo.sock

Kind regards,
Michael

-- 
DI (FH) Michael Friedrich
michael.friedr...@univie.ac.at
Tel: +43 1 4277 14359

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

--
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
___
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] ndomod: Could not open data sink

2010-02-16 Thread Michael Friedrich

nigel.le...@uk.bnpparibas.com wrote:


Nagios Core 3.2.0
NDO2DB 1.4b9
MySQL 5.0.17
Redhat AS4 U6

I have the dreaded ndomod: Could not open data sink! problem. Nagios 
itself is running happily, and I am trying to integrate Nagvis.


These are my Nagios processes, and socket file

nagios   29946 1  0 10:50 ?00:00:00 
/usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg
nagios   29990 1  0 10:50 ?00:00:08 
/usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg


srwxrwx---  1 nagios nagios 0 Feb 16 12:36 /usr/local/nagios/var/ndo.sock

No Nagios data is going through to the mysql Nagios tables though. 
They are all created, but none have been populated. I've gone through 
all the numerous other posts on this topic, but nothing has worked.


I can write to my mysql d/b using the db_user/db_pass in ndo2db.cfg.

This is from my Nagios log (coincidently, I can never get anything 
written to the ndo2db.debug file).


[1266317457] ndomod: Could not open data sink!  I'll keep trying, but 
some output may get lost...
[1266317457] Event broker module '/usr/local/nagios/bin/ndomod.o' 
initialized successfully.
[1266321105] ndomod: Still unable to connect to data sink.  32292 
items lost, 5000 queued items to flush.

debug level in ndo2db.cfg to highest, what says ndo2db.debug?


The ndo2db.cfg and nagios.cfg are below.

and ndomod.cfg?

Regards,
Michael


Any help much appreciated.

Regards
Nigel 


--
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

  1   2   >