Re: [Nagios-users] Return code of 142 is out of bounds

2009-06-19 Thread victory
I am using the snmp commands. The following are a coupld of examples:

check_snmp_ntpstat -H $HOSTNAME$ -C COMMUNITY_NAME
check_snmp_disk -H $HOSTNAME$ -C COMMUNITY_NAME

I have seen the faqs mentioned by you and it says the same thing as
mentioned by you. But interestingly, error "Return code of 142" started to
show up from version 3.x. I did not find that in any previous versions.

Regards,

On Thu, Jun 18, 2009 at 8:24 PM, Mat W  wrote:

>  there's the FAQ... http://www.nagios.org/faqs/viewfaq.php?faq_id=17
>
> I think this can also happen when some checks returns -no- value, or return
> a string when expecting an integer, etc.  essentially encountering something
> the plugin isn't expecting which could be leading to "bad exit" from the
> script.
>
> Can you recreate this from the command line?
>
> --
> Mat W. - http://www.techadre.com
>
>
>
> --
> Date: Thu, 18 Jun 2009 10:38:18 +0530
> From: victor...@gmail.com
> To: nagios-users@lists.sourceforge.net
> Subject: [Nagios-users] Return code of 142 is out of bounds
>
>
> Hi All,
>
> I am running Nagios 3.0.2 on FC5 server.
>
> I have been encountering this strange error intermittently on a few checks.
>
> (Return code of 142 is out of bounds)
>
> I am using the nagios with snmp (net-snmp-5.2 & net-snmp-5.3) on a few
> servers.
>
> This normally happens with snmp-load checks or snmp-disk checks.
>
> I could not find anything related to this problem over the internet. Hoping
> to get a solution to this problem here.
>
> Regards,
>
>
> --
> Windows Live(tm): Keep your life in sync. Check it 
> out.
>



-- 
Regards,
Gagan Brahmi
(SKY)
+919860091019

(¨`ˇ.ˇ´¨) Always
`ˇ.¸(¨`ˇ.ˇ´¨) Keep
(¨`ˇ.ˇ´¨)¸.ˇ´ Smiling!
 `ˇ.¸.ˇ´
--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: 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 Catch Windows Reboots in Nagios with NSClient++

2009-06-19 Thread Anthony Montibello
The threshold testing of Uptime should be can be done by modifying check_nt
check_nc_net has this already included in it, and is compatible as a
replacement for check_nt.c
it is availible at: https://sourceforge.net/projects/nc-net/

TOny  (Author of NC_Net)

Change the Case Uptime to something like the following then recompile:

case CHECK_UPTIME:

asprintf(&send_buffer, "%s&3", req_password);

fetch_data (server_address, server_port, send_buffer);

uptime=strtoul(recv_buffer,NULL,10);

updays = uptime / 86400;

uphours = (uptime % 86400) / 3600;

upminutes = ((uptime % 86400) % 3600) / 60;

asprintf(&output_message,_("System Uptime - %u day(s) %u hour(s) %u
minute(s)"),updays,uphours, upminutes);

return_code=STATE_OK;

if( check_critical_value==TRUE && critical_value > updays )

return_code=STATE_CRITICAL;

else if ( check_warning_value==TRUE && warning_value > updays )

return_code=STATE_WARNING;

break;



On Fri, Jun 19, 2009 at 11:30 AM, Mat W  wrote:

> Are you opposed to adding NagEventLog with an NCSA service for the passive
> checks?  You can write an event check filter in NagEventLog to look for the
> specific events in the Event logs.
>
> I don't believe the bult-in UPTIME check supports thresholds but you could
> "wrap" it in some code to do it.
>
> --
> Mat W. - http://www.techadre.com
>
>
>
> > Date: Fri, 19 Jun 2009 09:40:43 -0400
> > From: dmor...@digitalmorris.com
> > To: nagios-users@lists.sourceforge.net
> > Subject: [Nagios-users] Best Way to Catch Windows Reboots in Nagios with
> NSClient++
>
> >
> > Anybody have a good way to Catch Windows Reboots in Nagios with
> NSClient++.
> > Some times nagios misses the reboot due to timing i think.
> >
> > -Derek
> >
> >
> --
> > Crystal Reports - New Free Runtime and 30 Day Trial
> > Check out the new simplified licensing option that enables unlimited
> > royalty-free distribution of the report engine for externally facing
> > server and web deployment.
> > http://p.sf.net/sfu/businessobjects
> > ___
> > Nagios-users mailing list
> > Nagios-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/nagios-users
> > ::: Please include Nagios version, plugin version (-v) and OS when
> reporting any issue.
> > ::: Messages without supporting info will risk being sent to /dev/null
>
> --
> Microsoft brings you a new way to search the web. Try Bing™ 
> now
>
>
> --
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables unlimited
> royalty-free distribution of the report engine for externally facing
> server and web deployment.
> http://p.sf.net/sfu/businessobjects
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when
> reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>
--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: 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 often does Nagios need restarting? (Quis custodiet ipsos custodes?)

2009-06-19 Thread Marc Powell

On Jun 19, 2009, at 4:35 PM, Kustner, Tom wrote:

> I am a Nagios user, not the administrator.  We are running Nagios  
> 2.9 on
> RHEL 4 or 5.  Overall, 200+ hosts with 3000 services being  
> monitored. I
> have access for monitoring a smaller number of hosts.
>
> In another posting, I alluded to an issue where a host had gone down  
> but
> no alert was sent out.   The issue surfaced again today and as was  
> done
> the other time, Nagios was restarted to "fix" the problem.   I am
> naturally concerned about the unreliability.
>
> Any thoughts on this problem?Specifically:

I am not aware of any problems such as you describe that a restart  
would 'fix'.

> * What are best practices for making sure Nagios does not fall down on
> the job?   Is there something not set right?

See my previous e-mail.

> * Are other Nagios administrators restarting Nagios on a weekly or
> nightly basis to keep it on the job?

I reload hourly to pick up new config changes but rarely restart.

> * Is this an issue specific to Nagios 2.9?  Was 2.9 a spotty version?

I'm not sure you even have an issue outside of a possible  
configuration problem. No, 2.9 was not spotty or bad.

> * For a given host, why would "active checks" be enabled, yet "N/A"
> appears in the "Next Active Check" field?

This is normal. See my previous e-mail.

--
Marc


--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: 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] "Last check" info seems stale (Nagios 2.9)

2009-06-19 Thread Marc Powell

On Jun 19, 2009, at 4:33 PM, Kustner, Tom wrote:

> I am a Nagios user, not the administrator.  We are running Nagios  
> 2.9 on RHEL 4 or 5.  Overall, 200+ hosts with 3000 services being  
> monitored, but I have access for monitoring a smaller number of hosts.
>
> In looking last week into an issue where a host had gone down but no  
> alert was sent, I noticed that on the "Host Status Details For All  
> Host Groups" screen, where it lists Hosts, Status, Last Check, etc.,  
> the Last Check date for some of the hosts went back almost two  
> months.   I pointed this out to the administrator who didn't  
> disagree with my statement but said the logs showed otherwise.   
> Nagios was restarted but even now, there is a host where the Last  
> Check date still shows as 05-19-2009.  There are other hosts showing  
> a last check date of June 5, June 9, June 10, and so on.  These  
> hosts are definitely up.
>
> Either Nagios is being tardy at checking things, is *not* being  
> tardy but is displaying inaccurate information, or I am  
> misunderstanding this field or what Nagios means by "Last check".   
> Can anyone shed some light?

This is normal. Hosts aren't checked unless a service on the host  
returns a non-OK result. If all services are up, the host must be up  
so there is no reason to check it. If a service returns a non-OK  
result, only then do you need to know if the host is down or not and a  
host check is run. As for the host being down and no notification  
being sent, you should verify that it has services defined for it,  
they return non-OK results when the host is down and that the host  
check returns a non-OK result when the host is down.

Of course, your admin is the best person to check these things.

--
Marc


--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: 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 often does Nagios need restarting? (Quiscustodiet ipsos custodes?)

2009-06-19 Thread James Pratt
Hi Tom, I've tried to answer your questions to the best of my own
personal knowledge -I have replaced any  of your original "*" symbols
with my own on all my comments/thoughts below, since my MS outlook
client apparently just sucks, so this appears more readable.

Regards,
jamie

-Original Message-
From: Kustner, Tom [mailto:tom.kust...@retirementpartner.com] 
Sent: Friday, June 19, 2009 5:35 PM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] How often does Nagios need restarting?
(Quiscustodiet ipsos custodes?)

I am a Nagios user, not the administrator.  We are running Nagios 2.9 on
RHEL 4 or 5.  Overall, 200+ hosts with 3000 services being monitored. I
have access for monitoring a smaller number of hosts.

* ok, understood...

In another posting, I alluded to an issue where a host had gone down but
no alert was sent out.   The issue surfaced again today and as was done
the other time, Nagios was restarted to "fix" the problem.   I am
naturally concerned about the unreliability.  

* did you get any on-list or off-list replies at all? You have not
mentioned if you had it resolved or not, but it sound like the answer is
no to possibly both(?)

Any thoughts on this problem?Specifically:

What are best practices for making sure Nagios does not fall down on
the job?   Is there something not set right?

* Understanding your setup and the way nagios works is how you ensure it
stands up... a mis-config sounds likely, but who knows...

Are other Nagios administrators restarting Nagios on a weekly or
nightly basis to keep it on the job?

* Heck no! That's why we run it on Linux or Solaris! :)

Is this an issue specific to Nagios 2.9?  Was 2.9 a spotty version?

*Not to my knowledge - all stable releases have worked very reliably
here, especially 2.9 now that I look back...

For a given host, why would "active checks" be enabled, yet "N/A"
appears in the "Next Active Check" field?

* RTM - host checks are not always performed unless service checks fail,
and since I've been a manual-slacker myself, that may not even be the
true correct answer (Marc? :)

Thanks for any help.

-Tom Kustner-

* Not to sound negative/condescending or anything like that, but your
install will truly only work as well as you have maintained
it/understand it. You should really look at your current config files
and read the manual on 2.9, or upgrade to 3.x and again rtm...  Also,
you have not sent anything specific related to your problematic
config(s) for anyone on this list to even guess either way whether or
not something is mis-configured. If you are concerned about posting your
configs/setup, change stuff properly to hide what you need to on-list.
(I apologize if I have missed your earlier posting. Many here try our
best to help people here when possible, but sometimes we are all busy at
the same time, who knows!?).

Cheers,
Jamie

--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] How often does Nagios need restarting? (Quis custodiet ipsos custodes?)

2009-06-19 Thread Kustner, Tom
I am a Nagios user, not the administrator.  We are running Nagios 2.9 on
RHEL 4 or 5.  Overall, 200+ hosts with 3000 services being monitored. I
have access for monitoring a smaller number of hosts.

In another posting, I alluded to an issue where a host had gone down but
no alert was sent out.   The issue surfaced again today and as was done
the other time, Nagios was restarted to "fix" the problem.   I am
naturally concerned about the unreliability.  

Any thoughts on this problem?Specifically:

* What are best practices for making sure Nagios does not fall down on
the job?   Is there something not set right?

* Are other Nagios administrators restarting Nagios on a weekly or
nightly basis to keep it on the job?

* Is this an issue specific to Nagios 2.9?  Was 2.9 a spotty version?

* For a given host, why would "active checks" be enabled, yet "N/A"
appears in the "Next Active Check" field?

Thanks for any help.

-Tom Kustner-


The information contained in this message and any accompanying attachments may 
contain privileged, private and/or confidential information protected by state 
and federal law.  Penalties may be assessed for unauthorized use and/or 
disclosure.  This message and any attachments are intended for the designated 
recipient only.  If you have received this information in error, please notify 
the sender immediately and return or destroy the information.

This e-mail transmission and any attachments are believed to have been sent 
free of any virus or other defect that might affect any computer system into 
which it is received and opened. It is, however, the recipient's responsibility 
to ensure that the e-mail transmission and any attachments are virus free, and 
the sender accepts no responsibility for any damage that may in any way arise 
from their use.

--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: 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] "Last check" info seems stale (Nagios 2.9)

2009-06-19 Thread Kustner, Tom
I am a Nagios user, not the administrator.  We are running Nagios 2.9 on RHEL 4 
or 5.  Overall, 200+ hosts with 3000 services being monitored, but I have 
access for monitoring a smaller number of hosts.

In looking last week into an issue where a host had gone down but no alert was 
sent, I noticed that on the "Host Status Details For All Host Groups" screen, 
where it lists Hosts, Status, Last Check, etc., the Last Check date for some of 
the hosts went back almost two months.   I pointed this out to the 
administrator who didn't disagree with my statement but said the logs showed 
otherwise.  Nagios was restarted but even now, there is a host where the Last 
Check date still shows as 05-19-2009.  There are other hosts showing a last 
check date of June 5, June 9, June 10, and so on.  These hosts are definitely 
up.

Either Nagios is being tardy at checking things, is *not* being tardy but is 
displaying inaccurate information, or I am misunderstanding this field or what 
Nagios means by "Last check".  Can anyone shed some light?

Tom Kustner MCSE, CNE



The information contained in this message and any accompanying attachments may 
contain privileged, private and/or confidential information protected by state 
and federal law.  Penalties may be assessed for unauthorized use and/or 
disclosure.  This message and any attachments are intended for the designated 
recipient only.  If you have received this information in error, please notify 
the sender immediately and return or destroy the information.

This e-mail transmission and any attachments are believed to have been sent 
free of any virus or other defect that might affect any computer system into 
which it is received and opened. It is, however, the recipient's responsibility 
to ensure that the e-mail transmission and any attachments are virus free, and 
the sender accepts no responsibility for any damage that may in any way arise 
from their use.

--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: 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] Access Control for disable notification?

2009-06-19 Thread Sean Carley
You could always use an apache rewrite rule to discourage those
commands:

 

   RewriteEngine On

   RewriteCond %{QUERY_STRING} ^(cmd_typ=25)(.*)

   RewriteRule ^cmd\.cgi$ /nagios/nodisable.html

 

   RewriteCond %{QUERY_STRING} ^(cmd_typ=23)(.*)

   RewriteRule ^cmd\.cgi$ /nagios/nodisable.html

 

   RewriteCond %{QUERY_STRING} ^(cmd_typ=29)(.*)

   RewriteRule ^cmd\.cgi$ /nagios/nodisable.html

 

 

 

From: Mat W [mailto:lmw94...@hotmail.com] 
Sent: Friday, June 19, 2009 12:32 PM
To: mlit...@stubhub.com; nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Access Control for disable notification?

 

cgi.cfg has the options for security access to the webUI.  
 
authorized_for_all_service_commands
 
You can't get that much more granular out of the box I don't think.
Might be some addons out there, but I haven't dug into it.

-- 
Mat W. - http://www.techadre.com  


 



Date: Fri, 19 Jun 2009 11:48:39 -0700
From: mlit...@stubhub.com
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Access Control for disable notification?

Is there a way to control user access for just the controls to
disable/enable notification alerts for a monitor in nagios.cfg or
elsewhere?

 



Bing(tm) brings you maps, menus, and reviews organized in one place. Try
it now.
 

--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: 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] Problem in Preflight Check with commands.cfg

2009-06-19 Thread Kaplan, Andrew H.
Hi there --
 
I have completed the installation of Nagios 3.0.6 onto an Ubuntu 9.04 server
using the apt-get utility. 
We currently have a Nagios 2.6 server running, and I wanted to import the
configuration files into the
newer server. To that end, I have placed the appropriate configuration files in
the /etc/nagios3/conf.d
directory, and modified the nagios.cfg file to reflect the location of the
configuration files.
 
I ran the preflight check and the following error message appeared on-screen:
 
/usr/sbin/nagios3 -v /etc/nagios3/nagios.cfg 
Nagios 3.0.6
Copyright (c) 1999-2008 Ethan Galstad (http://www.nagios.org)
Last Modified: 12-01-2008
License: GPL
Reading configuration data...
Warning: Duplicate definition found for command 'check_dns' (config file
'/etc/nagios3/conf.d/commands.cfg', starting on line 90)
Error: Could not add object property in file '/etc/nagios3/conf.d/commands.cfg'
on line 91.
***> One or more problems was encountered while processing the config files...
 Check your configuration file(s) to ensure that they contain valid
 directives and data defintions.  If you are upgrading from a previous
 version of Nagios, you should be aware that some variables/definitions
 may have been removed or modified in this version.  Make sure to read
 the HTML documentation regarding the config files, as well as the
 'Whats New' section to find out what has changed.
 
I checked the commands.cfg, and several other files, and I do not see where the
duplicate definition is occurring. 
Can someone lend a hand on this? 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.


--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: 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] Access Control for disable notification?

2009-06-19 Thread Mat W

cgi.cfg has the options for security access to the webUI.  

 

authorized_for_all_service_commands

 

You can't get that much more granular out of the box I don't think.  Might be 
some addons out there, but I haven't dug into it.

-- 
Mat W. - http://www.techadre.com


 


Date: Fri, 19 Jun 2009 11:48:39 -0700
From: mlit...@stubhub.com
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Access Control for disable notification?





Is there a way to control user access for just the controls to disable/enable 
notification alerts for a monitor in nagios.cfg or elsewhere?
_
Bing™  brings you maps, menus, and reviews organized in one place.   Try it now.
http://www.bing.com/search?q=restaurants&form=MLOGEN&publ=WLHMTAG&crea=TEXT_MLOGEN_Core_tagline_local_1x1--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: 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] Access Control for disable notification?

2009-06-19 Thread Litwin, Matthew
Is there a way to control user access for just the controls to
disable/enable notification alerts for a monitor in nagios.cfg or
elsewhere?

--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: 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] trimming nagvis database via cron

2009-06-19 Thread Syd Alsobrook
On Friday 19 June 2009, Kevin Keane wrote:
> I had a similar problem with my ndoutils and mysql. If you are using
> MySQL and aren't using replication, don't forget to first clear and then
> turn off binary logs - those files get huge very quickly.

Yea, binary logs can be a pain to, I am working on a global event handler for 
purging.

Syd


-- 
Syd Alsobrook
IT Tag Team, Inc.
518-362-1291
http://www.ittagteam.com

--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: 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] trimming nagvis database via cron

2009-06-19 Thread Kevin Keane
I had a similar problem with my ndoutils and mysql. If you are using 
MySQL and aren't using replication, don't forget to first clear and then 
turn off binary logs - those files get huge very quickly.

Michael W. Lucas wrote:
> Hi,
>
> After a few months of use, our NagVis database grew to 23GB and
> overwhelmed my (tiny) server.  Shutting down the system, dropping the
> database, and recreating it solved my issues.
>
> Surely someone has already written a script to purge the NagVis
> database on a regular basis, trimming old data to keep the database at
> a reasonable size.  If so, could you share it?
>
> I'm sure I can figure this out, but I can't believe that nobody else
> has had this issue.
>
> Thanks,
> ==ml
>
>
>   


-- 
Kevin Keane
Owner
The NetTech
Find the Uncommon: Expert Solutions for a Network You Never Have to Think About

Office: 866-642-7116
http://www.4nettech.com

This e-mail and attachments, if any, may contain confidential and/or 
proprietary information. Please be advised that the unauthorized use or 
disclosure of the information is strictly prohibited. The information herein is 
intended only for use by the intended recipient(s) named above. If you have 
received this transmission in error, please notify the sender immediately and 
permanently delete the e-mail and any copies, printouts or attachments thereof.


--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: 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] trimming nagvis database via cron

2009-06-19 Thread Syd Alsobrook
On Friday 19 June 2009, Michael W. Lucas wrote:
> After a few months of use, our NagVis database grew to 23GB and
> overwhelmed my (tiny) server.  Shutting down the system, dropping the
> database, and recreating it solved my issues.

This isn't a NagVis issues, this is a ndoutils issue. You need to look in your 
ndo2db.cfg file for the entries:

max_timedevents_age
max_systemcommands_age
max_servicechecks_age
max_hostchecks_age
max_eventhandlers_age

It is recommended that you set these to a very low value. If they are too high 
you will have other issues with nagios appearing to hang while the DB is 
cleaned.

Syd


-- 
Syd Alsobrook
IT Tag Team, Inc.
518-362-1291
http://www.ittagteam.com

--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: 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] trimming nagvis database via cron

2009-06-19 Thread Michael W. Lucas
Hi,

After a few months of use, our NagVis database grew to 23GB and
overwhelmed my (tiny) server.  Shutting down the system, dropping the
database, and recreating it solved my issues.

Surely someone has already written a script to purge the NagVis
database on a regular basis, trimming old data to keep the database at
a reasonable size.  If so, could you share it?

I'm sure I can figure this out, but I can't believe that nobody else
has had this issue.

Thanks,
==ml


-- 
Michael W. Lucasmwlu...@blackhelicopters.org, mwlu...@freebsd.org
http://www.BlackHelicopters.org/~mwlucas/
Latest book:  Cisco Routers for the Desperate, 2nd Edition
http://www.CiscoRoutersForTheDesperate.com/

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: 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

2009-06-19 Thread Param Srinivas
Yes , there is a lot of checks going on.  There are like 750 hosts with a
minimum of about 6 to 7 services checks.
Could this be because  SERVICE INTER-CHECK DELAY METHOD  & HOST INTER-CHECK
DELAY METHOD are set to smart calculation  ?

On Fri, Jun 19, 2009 at 11:23 AM, Mat W  wrote:

> are there ALOT of checks going on?  eg, when it went down, was there a
> backlog of checks that were firing off?
>
> for example if I have a network issue to a site, suddenly i have 100s of
> checks firing off in Xmin intervals.
>
> Check the logs?  up the debug level?
>
> --
> Mat W. - http://www.techadre.com
>
>
>
> --
> Date: Fri, 19 Jun 2009 10:31:24 -0400
> From: prmsr...@gmail.com
> To: nagios-users@lists.sourceforge.net
> Subject: [Nagios-users] notification
>
>
>   Host Status:   UP
>  (for 0d 19h 19m 15s) Status Information: FPING OK - 65.106.232.209
> (loss=0%, rta=41.00 ms) Performance Data: loss=0%;80;100;0;100
> rta=0.041000s;2.00;5.00;0.00 Current Attempt: 1/3  (HARD
> state) Last Check Time: 06-19-2009 10:13:39 Check Type: ACTIVE Check
> Latency / Duration: 56.436 / 2.537 seconds Next Scheduled Active Check:   
> 06-19-2009
> 10:14:47 Last State Change: 06-18-2009 14:58:37 Last Notification: N/A 
> (notification
> 0) Is This Host Flapping? N/A In Scheduled Downtime?   NO
>  Last Update: 06-19-2009 10:17:38  ( 0d 0h 0m 14s ago)
>
> As per above the host is scheduled to check every 1 min. The parameter in
> use is "check_interval =1 "  also "retry_interval=1"
> Then when the host went down the " View alert history for this host"  at
> the left corner says :
>
>
> [image: Host Down][06-18-2009 14:38:40] HOST ALERT:
> benroutermr;DOWN;HARD;3;FPING CRITICAL - 65.106.232.209 (loss=100% )
> [image: Host Down][06-18-2009 14:32:56] HOST ALERT:
> benroutermr;DOWN;SOFT;2;FPING CRITICAL - 65.106.232.209 (loss=100% )
> [image: Host Down][06-18-2009 14:32:40] HOST ALERT:
> benroutermr;DOWN;SOFT;1;FPING CRITICAL - 65.106.232.209 (loss=100% )
> Why is it not checking every minutes when "retry_interval=1"? ?
>
>
> Because of this notification is getting delayed , i want the notification
> to be sent 3 min after the host is down.
>
> --
> Best Regards
> Param S
>
> --
> Microsoft brings you a new way to search the web. Try Bing™ 
> now
>



-- 
Best Regards
Param S
--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: 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

2009-06-19 Thread Mat W

you could try changing the host_inter_check_delay_method=n variable in 
nagios.cfg and see how it affects the checks.  i'd keep an eye on performance 
and local system resources too.  last thing you want is nagios crashing too.  
:-)

-- 
Mat W. - http://www.techadre.com


 


Date: Fri, 19 Jun 2009 12:26:19 -0400
Subject: Re: [Nagios-users] notification
From: prmsr...@gmail.com
To: lmw94...@hotmail.com
CC: nagios-users@lists.sourceforge.net


Yes , there is a lot of checks going on.  There are like 750 hosts with a 
minimum of about 6 to 7 services checks.
Could this be because  SERVICE INTER-CHECK DELAY METHOD  & HOST INTER-CHECK 
DELAY METHOD are set to smart calculation  ?


On Fri, Jun 19, 2009 at 11:23 AM, Mat W  wrote:


are there ALOT of checks going on?  eg, when it went down, was there a backlog 
of checks that were firing off?  
 
for example if I have a network issue to a site, suddenly i have 100s of checks 
firing off in Xmin intervals.  
 
Check the logs?  up the debug level?

-- 
Mat W. - http://www.techadre.com


 


Date: Fri, 19 Jun 2009 10:31:24 -0400
From: prmsr...@gmail.com
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] notification 








Host Status:

  UP   (for 0d 19h 19m 15s)

Status Information:
FPING OK - 65.106.232.209 (loss=0%, rta=41.00 ms)

Performance Data:
loss=0%;80;100;0;100 rta=0.041000s;2.00;5.00;0.00

Current Attempt:
1/3  (HARD state)

Last Check Time:
06-19-2009 10:13:39

Check Type:
ACTIVE

Check Latency / Duration:
56.436 / 2.537 seconds

Next Scheduled Active Check:  
06-19-2009 10:14:47

Last State Change:
06-18-2009 14:58:37

Last Notification:
N/A (notification 0)

Is This Host Flapping?
N/A

In Scheduled Downtime?

  NO  

Last Update:
06-19-2009 10:17:38  ( 0d 0h 0m 14s ago)

 
As per above the host is scheduled to check every 1 min. The parameter in use 
is "check_interval =1 "  also "retry_interval=1"
Then when the host went down the " View alert history for this host"  at the 
left corner says :
 
[06-18-2009 14:38:40] HOST ALERT: benroutermr;DOWN;HARD;3;FPING CRITICAL - 
65.106.232.209 (loss=100% )[06-18-2009 14:32:56] HOST ALERT: 
benroutermr;DOWN;SOFT;2;FPING CRITICAL - 65.106.232.209 (loss=100% )[06-18-2009 
14:32:40] HOST ALERT: benroutermr;DOWN;SOFT;1;FPING CRITICAL - 65.106.232.209 
(loss=100% )
Why is it not checking every minutes when "retry_interval=1"? ?
 
 
Because of this notification is getting delayed , i want the notification to be 
sent 3 min after the host is down.

-- 
Best Regards
Param S



Microsoft brings you a new way to search the web. Try Bing™ now


-- 
Best Regards
Param S

_
Lauren found her dream laptop. Find the PC that’s right for you.
http://www.microsoft.com/windows/choosepc/?ocid=ftp_val_wl_290--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: 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 Catch Windows Reboots in Nagios with NSClient++

2009-06-19 Thread Mat W

Are you opposed to adding NagEventLog with an NCSA service for the passive 
checks?  You can write an event check filter in NagEventLog to look for the 
specific events in the Event logs.

 

I don't believe the bult-in UPTIME check supports thresholds but you could 
"wrap" it in some code to do it.


-- 
Mat W. - http://www.techadre.com


 
> Date: Fri, 19 Jun 2009 09:40:43 -0400
> From: dmor...@digitalmorris.com
> To: nagios-users@lists.sourceforge.net
> Subject: [Nagios-users] Best Way to Catch Windows Reboots in Nagios with 
> NSClient++
> 
> Anybody have a good way to Catch Windows Reboots in Nagios with NSClient++.
> Some times nagios misses the reboot due to timing i think.
> 
> -Derek
> 
> --
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables unlimited
> royalty-free distribution of the report engine for externally facing 
> server and web deployment.
> http://p.sf.net/sfu/businessobjects
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting 
> any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null

_
Microsoft brings you a new way to search the web.  Try  Bing™ now
http://www.bing.com?form=MFEHPG&publ=WLHMTAG&crea=TEXT_MFEHPG_Core_tagline_try 
bing_1x1--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: 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

2009-06-19 Thread Mat W

are there ALOT of checks going on?  eg, when it went down, was there a backlog 
of checks that were firing off?  

 

for example if I have a network issue to a site, suddenly i have 100s of checks 
firing off in Xmin intervals.  

 

Check the logs?  up the debug level?

-- 
Mat W. - http://www.techadre.com


 


Date: Fri, 19 Jun 2009 10:31:24 -0400
From: prmsr...@gmail.com
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] notification





Host Status:

  UP   (for 0d 19h 19m 15s)

Status Information:
FPING OK - 65.106.232.209 (loss=0%, rta=41.00 ms)

Performance Data:
loss=0%;80;100;0;100 rta=0.041000s;2.00;5.00;0.00

Current Attempt:
1/3  (HARD state)

Last Check Time:
06-19-2009 10:13:39

Check Type:
ACTIVE

Check Latency / Duration:
56.436 / 2.537 seconds

Next Scheduled Active Check:  
06-19-2009 10:14:47

Last State Change:
06-18-2009 14:58:37

Last Notification:
N/A (notification 0)

Is This Host Flapping?
N/A

In Scheduled Downtime?

  NO  

Last Update:
06-19-2009 10:17:38  ( 0d 0h 0m 14s ago)

 
As per above the host is scheduled to check every 1 min. The parameter in use 
is "check_interval =1 "  also "retry_interval=1"
Then when the host went down the " View alert history for this host"  at the 
left corner says :
 
[06-18-2009 14:38:40] HOST ALERT: benroutermr;DOWN;HARD;3;FPING CRITICAL - 
65.106.232.209 (loss=100% )[06-18-2009 14:32:56] HOST ALERT: 
benroutermr;DOWN;SOFT;2;FPING CRITICAL - 65.106.232.209 (loss=100% )[06-18-2009 
14:32:40] HOST ALERT: benroutermr;DOWN;SOFT;1;FPING CRITICAL - 65.106.232.209 
(loss=100% )
Why is it not checking every minutes when "retry_interval=1"? ?
 
 
Because of this notification is getting delayed , i want the notification to be 
sent 3 min after the host is down.

-- 
Best Regards
Param S

_
Microsoft brings you a new way to search the web.  Try  Bing™ now
http://www.bing.com?form=MFEHPG&publ=WLHMTAG&crea=TEXT_MFEHPG_Core_tagline_try 
bing_1x1--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: 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] Best Way to Catch Windows Reboots in Nagios with NSClient++

2009-06-19 Thread Derek J. Morris
Anybody have a good way  to Catch Windows Reboots in Nagios with NSClient++.
Some times nagios misses the reboot due to timing i think.

-Derek

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: 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] notification

2009-06-19 Thread Param Srinivas
  Host Status:   UP
 (for 0d 19h 19m 15s) Status Information: FPING OK - 65.106.232.209
(loss=0%, rta=41.00 ms) Performance Data: loss=0%;80;100;0;100
rta=0.041000s;2.00;5.00;0.00 Current Attempt: 1/3  (HARD
state) Last
Check Time: 06-19-2009 10:13:39 Check Type: ACTIVE Check Latency /
Duration: 56.436 / 2.537
seconds Next Scheduled Active Check:   06-19-2009 10:14:47 Last State
Change: 06-18-2009 14:58:37 Last Notification: N/A (notification 0) Is This
Host Flapping? N/A In Scheduled Downtime?   NO
 Last Update: 06-19-2009 10:17:38  ( 0d 0h 0m 14s ago)

As per above the host is scheduled to check every 1 min. The parameter in
use is "check_interval =1 "  also "retry_interval=1"
Then when the host went down the " View alert history for this host"  at the
left corner says :


[image: Host Down][06-18-2009 14:38:40] HOST ALERT:
benroutermr;DOWN;HARD;3;FPING CRITICAL - 65.106.232.209 (loss=100% )
[image: Host Down][06-18-2009 14:32:56] HOST ALERT:
benroutermr;DOWN;SOFT;2;FPING CRITICAL - 65.106.232.209 (loss=100% )
[image: Host Down][06-18-2009 14:32:40] HOST ALERT:
benroutermr;DOWN;SOFT;1;FPING CRITICAL - 65.106.232.209 (loss=100% )
Why is it not checking every minutes when "retry_interval=1"? ?


Because of this notification is getting delayed , i want the notification to
be sent 3 min after the host is down.

-- 
Best Regards
Param S
--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: 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 Utilities install NDO database error for NDO Util 1.3.1

2009-06-19 Thread Natalie Aloi
hmmm ok maybe I am a little confused because the first part of the "how to" 
creates a database using these same commands you listed...Is the NDO database 
name nagios? I also did the GRANT ALL on nagios.*

see snipet below:
mysql> show databases;
++
| Database |
++
| information_schema |
| cactidb |
| mysql |
| nagios |
| test |
++
5 rows in set (0.00 sec)

-Original Message-
From: Michael Friedrich [mailto:michael.friedr...@univie.ac.at]
Sent: Friday, June 19, 2009 09:13 AM
To: 'Natalie Aloi'
Cc: 'Nagios Users Mail-list'
Subject: Re: [Nagios-users] NDO Utilities install NDO database error for NDO 
Util 1.3.1

That's just what I told you with these commands.

For what I've seen from your dirlisting, you have afile called "mysql.sql"

So after these steps you should have your datebase created and waiting for 
input.

Kind regards,
Michael

Natalie Aloi wrote the following on 19.06.2009 15:02: Thanks, I did that 
without a problem, but when I got to the section about creating the NDO 
database I am supposed to run a script called installdb which doesn't 
exist...Do you know how to create the NDO Database and the tables?

Natalie
-Original Message-
From: Michael Friedrich [mailto:michael.friedr...@univie.ac.at]
Sent: Friday, June 19, 2009 05:47 AM
To: 'Natalie Aloi'
Cc: 'Nagios Users Mail-list'
Subject: Re: [Nagios-users] NDO Utilities install NDO database error for NDO 
Util 1.3.1

Hi,

if it helps do the following:

# mysql -u root -p
CREATE USER 'nagios'@'localhost' IDENTIFIED BY 'nagios';GRANT USAGE ON * . * TO 
'nagios'@'localhost' IDENTIFIED BY '' WITH MAX_QUERIES_PER_HOUR 0 
MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0 
;CREATE DATABASE IF NOT EXISTS `nagios` ;GRANT ALL PRIVILEGES ON `nagios` . * 
TO ''@'localhost';quit

# mysql -u root -p nagios < mysql.sql

Kind regards,
Michael



Natalie Aloi wrote the following on 18.06.2009 22:50:Thanks for the reply 
Marc...

I am using ver 2.11 Nagios the most recent version of ndo utils said I had to 
have a higher version of nagios to use (2.5?) which is why I selected 1.3.1

Natalie
On Jun 17, 2009, at 11:09 AM, Natalie Aloi wrote:

> Hello I am attempting to install NDO Utils - I am at the Create NDO
> Database section...except I don't have this installdb file in my db
> directory I have what is below:
> as you can see I am installing ndoutils 1.3.1 since I am using
> nagios 2.11
>

1.3.1 is almost 2.5 years out-of-date. You're following instructions
for 1.4b7; is there a reason you're not installing that more recent
version?

Network Operations Center Manager
Experis Data Center LLC
8209 Valley Pike
PO Box 535
Middletown,VA 22645
phone:540-869-8702
cell:240-988-3267
fax:540-869-8710
e-mail:na...@experisdatacenters.com

--Crystal
 Reports - New Free Runtime and 30 Day TrialCheck out the new simplified 
licensing option that enables unlimitedroyalty-free distribution of the report 
engine for externally facing server and web 
deployment.http://p.sf.net/sfu/businessobjects

___Nagios-users mailing 
listnagios-us...@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/nagios-users:::
 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 friedrichmichael.friedr...@univie.ac.attel: +43 1 4277 
14359Vienna University Computer CenterUniversitaetsstrasse 7 A-1010 Vienna, 
Austria
-- DI (FH) Michael friedrichmichael.friedr...@univie.ac.attel: +43 1 4277 
14359Vienna University Computer CenterUniversitaetsstrasse 7 A-1010 Vienna, 
Austria
--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: 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 Utilities install NDO database error for NDO Util 1.3.1

2009-06-19 Thread Michael Friedrich

# mysql -u root -p

>> open database shell

CREATE USER 'nagios'@'localhost' IDENTIFIED BY 'nagios';


creates the user nagios with localhost (where it will coem from) and is 
identified by password 'nagios'



GRANT USAGE ON * . * TO 'nagios'@'localhost' IDENTIFIED BY 
'nagios' WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 
MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0 ;



there was a typo by myself, identified by has to be the passwword with '<' and 
'>'

this grants usage on the database

CREATE DATABASE IF NOT EXISTS `nagios` ;


creates the database called nagios needed for ndo (you have to set those params 
in ndo2db.cfg)


GRANT ALL PRIVILEGES ON `nagios` . * TO 'nagios'@'localhost';


grants insert, create, delete, select, update, etc sql privileges for user 
nagios (forgot to replace that too), onto the database nagios



quit

>> leave mysql shell


# mysql -u root -p nagios < mysql.sql

>> -u root -p <-- login with user root
>> nagios <-- import to which database
>> < mysql.sql <-- file where the database definitions, table 
definitions are within create statements, those will be imported into 
the database



And cocnernign your db layout - yep, it's the nagios db.

Kind regards,
Michael



Natalie Aloi wrote the following on 19.06.2009 15:40:
hmmm ok maybe I am a little confused because the first part of the 
"how to" creates a database using these same commands you listed...Is 
the NDO database name nagios? I also did the GRANT ALL on nagios.*
 
see snipet below:

mysql> show databases;
++
| Database   |
++
| information_schema |
| cactidb|
| mysql  |
| nagios |
| test   |
++
5 rows in set (0.00 sec)
 


-Original Message-
*From:* Michael Friedrich [mailto:michael.friedr...@univie.ac.at]
*Sent:* Friday, June 19, 2009 09:13 AM
*To:* 'Natalie Aloi'
*Cc:* 'Nagios Users Mail-list'
*Subject:* Re: [Nagios-users] NDO Utilities install NDO database
error for NDO Util 1.3.1

That's just what I told you with these commands.

For what I've seen from your dirlisting, you have afile called
"mysql.sql"

So after these steps you should have your datebase created and
waiting for input.

Kind regards,
Michael

Natalie Aloi wrote the following on 19.06.2009 15:02:

Thanks, I did that without a problem, but when I got to the
section about creating the NDO database I am supposed to run a
script called installdb which doesn't exist...Do you know how to
create the NDO Database and the tables?
 
Natalie


-Original Message-
*From:* Michael Friedrich [mailto:michael.friedr...@univie.ac.at]
*Sent:* Friday, June 19, 2009 05:47 AM
*To:* 'Natalie Aloi'
*Cc:* 'Nagios Users Mail-list'
*Subject:* Re: [Nagios-users] NDO Utilities install NDO
database error for NDO Util 1.3.1

Hi,

if it helps do the following:

# mysql -u root -p

CREATE USER 'nagios'@'localhost' IDENTIFIED BY 'nagios';

GRANT USAGE ON * . * TO 'nagios'@'localhost' IDENTIFIED BY 
'' WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 
MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0 ;


CREATE DATABASE IF NOT EXISTS `nagios` ;

GRANT ALL PRIVILEGES ON `nagios` . * TO ''@'localhost';

quit

# mysql -u root -p nagios < mysql.sql

Kind regards,
Michael



Natalie Aloi wrote the following on 18.06.2009 22:50:

Thanks for the reply Marc...
 
I am using ver 2.11 Nagios the most recent version of ndo

utils said I had to have a higher version of nagios to use
(2.5?) which is why I selected 1.3.1
 
Natalie 
On Jun 17, 2009, at 11:09 AM, Natalie Aloi wrote:


> Hello I am attempting to install NDO Utils - I am at the
Create NDO
> Database section...except I don't have this installdb file
in my db
> directory I have what is below:
> as you can see I am installing ndoutils 1.3.1 since I am
using
> nagios 2.11
>

1.3.1 is almost 2.5 years out-of-date. You're following
instructions
for 1.4b7; is there a reason you're not installing that more
recent
version?
Network Operations Center Manager
Experis Data Center LLC
8209 Valley Pike
PO Box 535
Middletown,VA 22645
phone:540-869-8702
cell:240-988-3267
fax:540-869-8710
e-mail:na...@experisdatacenters.com





--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enab

Re: [Nagios-users] NDO Utilities install NDO database error for NDO Util 1.3.1

2009-06-19 Thread Michael Friedrich

That's just what I told you with these commands.

For what I've seen from your dirlisting, you have afile called "mysql.sql"

So after these steps you should have your datebase created and waiting 
for input.


Kind regards,
Michael

Natalie Aloi wrote the following on 19.06.2009 15:02:
Thanks, I did that without a problem, but when I got to the section 
about creating the NDO database I am supposed to run a script called 
installdb which doesn't exist...Do you know how to create the NDO 
Database and the tables?
 
Natalie


-Original Message-
*From:* Michael Friedrich [mailto:michael.friedr...@univie.ac.at]
*Sent:* Friday, June 19, 2009 05:47 AM
*To:* 'Natalie Aloi'
*Cc:* 'Nagios Users Mail-list'
*Subject:* Re: [Nagios-users] NDO Utilities install NDO database
error for NDO Util 1.3.1

Hi,

if it helps do the following:

# mysql -u root -p

CREATE USER 'nagios'@'localhost' IDENTIFIED BY 'nagios';

GRANT USAGE ON * . * TO 'nagios'@'localhost' IDENTIFIED BY 
'' WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 
MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0 ;


CREATE DATABASE IF NOT EXISTS `nagios` ;

GRANT ALL PRIVILEGES ON `nagios` . * TO ''@'localhost';

quit

# mysql -u root -p nagios < mysql.sql

Kind regards,
Michael



Natalie Aloi wrote the following on 18.06.2009 22:50:

Thanks for the reply Marc...
 
I am using ver 2.11 Nagios the most recent version of ndo utils

said I had to have a higher version of nagios to use (2.5?) which
is why I selected 1.3.1
 
Natalie 
On Jun 17, 2009, at 11:09 AM, Natalie Aloi wrote:


> Hello I am attempting to install NDO Utils - I am at the Create
NDO
> Database section...except I don't have this installdb file in
my db
> directory I have what is below:
> as you can see I am installing ndoutils 1.3.1 since I am using
> nagios 2.11
>

1.3.1 is almost 2.5 years out-of-date. You're following instructions
for 1.4b7; is there a reason you're not installing that more recent
version?
Network Operations Center Manager
Experis Data Center LLC
8209 Valley Pike
PO Box 535
Middletown,VA 22645
phone:540-869-8702
cell:240-988-3267
fax:540-869-8710
e-mail:na...@experisdatacenters.com





--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.

http://p.sf.net/sfu/businessobjects



___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: 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  



--
DI (FH) Michael Friedrich
michael.friedr...@univie.ac.at
Tel: +43 1 4277 14359

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

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: 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] alarms not showing data

2009-06-19 Thread Marc Powell

On Jun 19, 2009, at 12:35 AM, Thomas S. Larsen wrote:

> My problem is the following.
>
> -
> * Nagios 2.9 *
>
> Notification Type: RECOVERY
>
> Service: $
> Host: [censored]
> Address: [censored]
> State: $
>
> Date/Time: Thu Jun 18 13:06:35 CEST 2009
>
> Additional Info:
>
> $
>
> ---
> It send email when it’s supposed too. But it doesn’t show the  
> service nor the state.
> But if I log in to nagios and force send a notification, it shows  
> the correct data, I suspect this to be because I send the  
> notification from the servce. So im thinking it’s something with the  
> host reporting.
> Any ideas anyone ?

If this is a host notification, it makes perfect sense. Any $SERVICE*  
macro used in the notification isn't valid because there's no specific  
service for the notification. I suspect that your  
host_notification_commands and service_notification_commands are the  
same when they should be different. The host notification command  
should use $HOST*$ macros.

http://nagios.sourceforge.net/docs/2_0/macros.html

A typical host notification command might look like --

define command {
 command_name   host-notify-by-email
 command_line   /bin/echo -e "Subject:  
$NOTIFICATIONTYPE$ alert - Host $HOSTNAME$ is $HOSTSTATE$\n\n*  
Nagios *\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$ 
\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n 
\nDate/Time: $LONGDATETIME$\n\nAcknowledged By: $HOSTACKAUTHOR$ 
\nAcknowledgement: $HOSTACKCOMMENT$" | /bin/mail $CONTACTEMAIL$
 }




--
Marc


--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: 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 Utilities install NDO database error for NDO Util 1.3.1

2009-06-19 Thread Natalie Aloi
Thanks, I did that without a problem, but when I got to the section about 
creating the NDO database I am supposed to run a script called installdb which 
doesn't exist...Do you know how to create the NDO Database and the tables?

Natalie
-Original Message-
From: Michael Friedrich [mailto:michael.friedr...@univie.ac.at]
Sent: Friday, June 19, 2009 05:47 AM
To: 'Natalie Aloi'
Cc: 'Nagios Users Mail-list'
Subject: Re: [Nagios-users] NDO Utilities install NDO database error for NDO 
Util 1.3.1

Hi,

if it helps do the following:

# mysql -u root -p
CREATE USER 'nagios'@'localhost' IDENTIFIED BY 'nagios';GRANT USAGE ON * . * TO 
'nagios'@'localhost' IDENTIFIED BY '' WITH MAX_QUERIES_PER_HOUR 0 
MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0 
;CREATE DATABASE IF NOT EXISTS `nagios` ;GRANT ALL PRIVILEGES ON `nagios` . * 
TO ''@'localhost';quit

# mysql -u root -p nagios < mysql.sql

Kind regards,
Michael



Natalie Aloi wrote the following on 18.06.2009 22:50:Thanks for the reply 
Marc...

I am using ver 2.11 Nagios the most recent version of ndo utils said I had to 
have a higher version of nagios to use (2.5?) which is why I selected 1.3.1

Natalie
On Jun 17, 2009, at 11:09 AM, Natalie Aloi wrote:

> Hello I am attempting to install NDO Utils - I am at the Create NDO
> Database section...except I don't have this installdb file in my db
> directory I have what is below:
> as you can see I am installing ndoutils 1.3.1 since I am using
> nagios 2.11
>

1.3.1 is almost 2.5 years out-of-date. You're following instructions
for 1.4b7; is there a reason you're not installing that more recent
version?

Network Operations Center Manager
Experis Data Center LLC
8209 Valley Pike
PO Box 535
Middletown,VA 22645
phone:540-869-8702
cell:240-988-3267
fax:540-869-8710
e-mail:na...@experisdatacenters.com

--Crystal
 Reports - New Free Runtime and 30 Day TrialCheck out the new simplified 
licensing option that enables unlimitedroyalty-free distribution of the report 
engine for externally facing server and web 
deployment.http://p.sf.net/sfu/businessobjects

___Nagios-users mailing 
listnagios-us...@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/nagios-users:::
 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 friedrichmichael.friedr...@univie.ac.attel: +43 1 4277 
14359Vienna University Computer CenterUniversitaetsstrasse 7 A-1010 Vienna, 
Austria
--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: 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 Utilities install NDO database error for NDO Util 1.3.1

2009-06-19 Thread Michael Friedrich

Hi,

if it helps do the following:

# mysql -u root -p

CREATE USER 'nagios'@'localhost' IDENTIFIED BY 'nagios';

GRANT USAGE ON * . * TO 'nagios'@'localhost' IDENTIFIED BY 
'' WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 
MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0 ;


CREATE DATABASE IF NOT EXISTS `nagios` ;

GRANT ALL PRIVILEGES ON `nagios` . * TO ''@'localhost';

quit

# mysql -u root -p nagios < mysql.sql

Kind regards,
Michael



Natalie Aloi wrote the following on 18.06.2009 22:50:

Thanks for the reply Marc...
 
I am using ver 2.11 Nagios the most recent version of ndo utils said I 
had to have a higher version of nagios to use (2.5?) which is why I 
selected 1.3.1
 
Natalie 
On Jun 17, 2009, at 11:09 AM, Natalie Aloi wrote:


> Hello I am attempting to install NDO Utils - I am at the Create NDO
> Database section...except I don't have this installdb file in my db
> directory I have what is below:
> as you can see I am installing ndoutils 1.3.1 since I am using
> nagios 2.11
>

1.3.1 is almost 2.5 years out-of-date. You're following instructions
for 1.4b7; is there a reason you're not installing that more recent
version?
Network Operations Center Manager
Experis Data Center LLC
8209 Valley Pike
PO Box 535
Middletown,VA 22645
phone:540-869-8702
cell:240-988-3267
fax:540-869-8710
e-mail:na...@experisdatacenters.com




--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.

http://p.sf.net/sfu/businessobjects



___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: 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  

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null