Re: [Nagios-users] Slightly-OT - Notification management
Jay R. Ashworth a écrit : > On Thu, May 08, 2008 at 08:11:11AM -0400, Ugo Bellavance wrote: >> The goal of all this is that , outside work hours, our staff would read >> their regular e-mail if they'd like to, but wouldn't be bothered by the >> BB device for regular e-mail. However, if it is a nagios alert, they >> would be alerted. > > I think the way you should set this up is to send the Nagios alerts as > Level 1 messages, and then your users can set up their notification > alerts anyway that suits them. That makes sense. I have seen this option in the BES manager, but I didn't know this was the solution. In fact I didn't know what meant "Level 1 message". Ugo - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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] Slightly-OT - Notification management
Ugo, What you are looking for here are the blackberry-specific concepts of both "profiles" and "exceptions." First, setup the email address from your nagios alerting system inside your blackberry contacts. Second, setup two custom profiles on the blackberry - call one "nagios_on-call" and one "nagios_vacation." Third, setup the alerting methods you would like for each profile (on-call loudly alerts you, nagios_vacation quietly alerts or does not alert at all). Fourth, inside your current blackberry alert profile, setup a custom exception. Tie the exception to the nagios addressbook entry, and then set the blackberry alert profile to use either your "on_call" or your "vacation" profile - depending on how you wish to be nagged currently. Steven > To: nagios-users@lists.sourceforge.net > From: [EMAIL PROTECTED] > Date: Thu, 8 May 2008 08:11:11 -0400 > Subject: [Nagios-users] Slightly-OT - Notification management > > Hi, > > This is only indirectly related to nagios, as it is more related to > notifications management. > > We are currently using nagios and receive alerts by email and by text > messages (e-mails) sent to our cell phones. I am looking for using > Blackberry devices instead, but I have one concern: > > Assuming that we have a BlackBerry Enterprise Server, is it possible to, > for example: > > -> Configure something so that it is possible to be notified (vibration, > sound) by our BB device only if the e-mail received is a nagios alert. > > The goal of all this is that , outside work hours, our staff would read > their regular e-mail if they'd like to, but wouldn't be bothered by the > BB device for regular e-mail. However, if it is a nagios alert, they > would be alerted. > > Thanks, > > Ugo > > > - > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > ___ > Nagios-users mailing list > Nagios-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null _ Stay in touch when you're away with Windows Live Messenger. http://www.windowslive.com/messenger/overview.html?ocid=TXT_TAGLM_WL_Refresh_messenger_052008- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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] Notifications config help
> -Original Message- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of Trey Bachner > Sent: Wednesday, May 07, 2008 9:05 PM > To: nagios-users@lists.sourceforge.net > Subject: [Nagios-users] Notifications config help > > I have notifications setup and working for the most part. I am now > trying to address an issue with how the emails are structured. When > they are received they not only get sent to the correct address but > also have a long list of root directories as recipients. I am running > Version 3.0rc2 on Ubuntu Server 7.10. > > Here is a a list of the additional email addresses being included. > > [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], > [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], > [EMAIL PROTECTED], > [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], > [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], > [EMAIL PROTECTED], > [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], > [EMAIL PROTECTED], > [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], > [EMAIL PROTECTED] > > I will admit that I am pretty new to using Ubuntu server and the > configuration of it's mail services but I cannot find anywhere in the It's not an Ubuntu thing. I'm going to guess that your service/host notification command has a * or something similar at the end. Can you post the relevant command definition? -- Marc - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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_load --- divide by number of cpus?
On Thu, May 8, 2008 at 10:49 AM, Terry <[EMAIL PROTECTED]> wrote: > This is the logic I was looking for. This makes sense. Apache with > prefork is not multithreaded and this type of logic is great. But do > you shoot yourself in the foot for multithreaded processes? > What we do in our setup is monitor CPU utilization (average across all cores) in conjunction with load (and of course graph both). You could even have a separate check to monitor the CPU utilization of the busiest CPU. You could adjust your load thresholds in accordance with the number of processors. Then when/if your load hits a threshold, you can check the CPU utilization graph to see how it compares. I would think that the load average would be easier to interpret if the applications running on the server are multithreaded (and load is distributed evenly across the cores). - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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] Slightly-OT - Notification management
On Thu, May 08, 2008 at 08:11:11AM -0400, Ugo Bellavance wrote: > The goal of all this is that , outside work hours, our staff would read > their regular e-mail if they'd like to, but wouldn't be bothered by the > BB device for regular e-mail. However, if it is a nagios alert, they > would be alerted. I think the way you should set this up is to send the Nagios alerts as Level 1 messages, and then your users can set up their notification alerts anyway that suits them. Cheers, -- jra -- Jay R. Ashworth Baylink [EMAIL PROTECTED] Designer The Things I Think RFC 2100 Ashworth & Associates http://baylink.pitas.com '87 e24 St Petersburg FL USA http://photo.imageinc.us +1 727 647 1274 Those who cast the vote decide nothing. Those who count the vote decide everything. -- (Joseph Stalin) - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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_load --- divide by number of cpus?
This is the logic I was looking for. This makes sense. Apache with prefork is not multithreaded and this type of logic is great. But do you shoot yourself in the foot for multithreaded processes? On Thu, May 8, 2008 at 9:31 AM, Mike Emigh <[EMAIL PROTECTED]> wrote: > > On Thu, May 8, 2008 at 9:49 AM, Terry <[EMAIL PROTECTED]> wrote: > > I am sitting here racking my brain on this one. Is dividing the load > > average by the number of CPUs a smart thing to do? the 'uptime' > > command on a box does not do this. So, if I have an 8 core box > > sitting with a load average of 8, its the same as a single core box > > sitting with a load average of 1? I'll see the same type of server > > response? Thoughts? > > > > It's not necessarily the same. If you have a single-threaded process > pegging one of the cores, your load average can hit 8 even if the 7 > other cores are sitting idle. > > > > - > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > ___ > Nagios-users mailing list > Nagios-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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_load --- divide by number of cpus?
On May 8, 2008, at 6:49 AM, Terry wrote: > I am sitting here racking my brain on this one. Is dividing the load > average by the number of CPUs a smart thing to do? the 'uptime' > command on a box does not do this. So, if I have an 8 core box > sitting with a load average of 8, its the same as a single core box > sitting with a load average of 1? I'll see the same type of server > response? Thoughts? This is what we do on our Sun boxes, in a custom "check_system" script: # Set 1,5,15 minute load average thresholds based on CPU count CPU=`psrinfo | wc -l` LOAD1=$((CPU*20)); test $LOAD1 -lt 50 && LOAD1=50 LOAD5=$((CPU*15)); test $LOAD5 -lt 30 && LOAD5=30 LOAD15=$((CPU*10)); test $LOAD15 -lt 15 && LOAD15=15 LOAD_W=$LOAD1,$LOAD5,$LOAD15 LOAD_C=$((LOAD1*5)),$((LOAD5*5)),$((LOAD15*5)) ... and on our linux systems ... CPU=`grep "^processor" /proc/cpuinfo | wc -l` LOAD1=$((CPU*20)); test $LOAD1 -lt 50 && LOAD1=50 LOAD5=$((CPU*15)); test $LOAD5 -lt 30 && LOAD5=30 LOAD15=$((CPU*10)); test $LOAD15 -lt 15 && LOAD15=15 LOAD_W=$LOAD1,$LOAD5,$LOAD15 LOAD_C=$((LOAD1*5)),$((LOAD5*5)),$((LOAD15*5)) ... and we then parse the output of "uptime". It would really cool if the "check_load" plugin would take args like: check_load -w 20x,15x,10x -c 100x,75x,50x ... but what I've got above has been doing what we want just fine. -s- - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 reboot XP
>Palle L Jensen wrote: >> >> I guess I should have been more specific, sorry about that. >> >> I am running Nagios 3.0.1 on openSUSE 10.3, and I am only monitoring >> windows hosts. On the windows hosts I am running NSClient++. That >> seems to work good and I would prefer not to change to any other client. >> >> I have read about the event handlers in the Nagios documentation, but >> the samples there only refers to nrpe and scripts on the server. I >> understand how to define the service in Nagios, but I am not sure how >> to create the script that executes the batch file on the windows host? >> Maybe I am not getting the point and understanding on the documentation. >> >> Lets say I created a batch file that will start or restart a service, >> this batch file is located in c:\NSclient++\scripts folder. And then >> defined the service and command in Nagios: >> >> define service{ >> host_name somehost >> service_descriptionsql-service >> max_check_attempts 4 >> event_handler restart-sqlagent >> } >> >> define command{ >> command_name restart-sqlagent >> command_line what do I add here?? It has to be something that can be sent to the Nsclient++/windows host and execute the batch script in c:\NSclient++\scripts folder >> } >> >> The command line on the eventhandler documentation shows a path to a >> local script and local command ?/etc/rc.d/init.d/httpd restart? >> >> So creating and event handler for services or others on the box where >> Nagios is running, I understand. But not how to do it remotely to a >> windows host. >> >> If you could shed some more light over this I would very much >> appreciate it. >> >> Thanks, >> >> PJ >> >You need a Unix-side script to execute and handle the condition >appropriately, for example to only call the restart when the service is >in hard failure. A sample Bash script is given in the docs to get you >started. >If using Bash (which I recommend) the Bash script should check the state >and perform the logic control, calling the batch or script on the >windows side though an NRPE call to nsclient++ to execute the script on >the windows host. The NSClient++ data collector's primary mechanism for actions (getting it to do stuff) is via NRPE. It will respond to the old nsclient command as well but the majority of it's functions are utilized through NRPE. This is the case with your situation as well. On the Nagios side you would define a check like you have above and in the NSC.ini file you define a handler for the command. Below is an example of one we use to check the CPU utilization of any process on the server. On the Nagios server define your service as above and use something like this for the command_line line. Command_line$USER1$/check_nrpe -H $HOSTADDRESS$ -t 60 -c wmi_process_perf -a $ARG1$ On the Windows server in the NSC.ini file under the NRPE Handlers section put something like this: wmi_process_perf=c:\windows\system32\cscript.exe //nologo "c:\program files\nsclient++\scripts\wmi_cpu_perf.vbs" /process:$ARG1$ In this example the $ARG1$ value is the name of a running process on the server. The check returns the CPU and memory utilization of the process. HTH, -greg - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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_load --- divide by number of cpus?
On Thu, May 8, 2008 at 9:49 AM, Terry <[EMAIL PROTECTED]> wrote: > I am sitting here racking my brain on this one. Is dividing the load > average by the number of CPUs a smart thing to do? the 'uptime' > command on a box does not do this. So, if I have an 8 core box > sitting with a load average of 8, its the same as a single core box > sitting with a load average of 1? I'll see the same type of server > response? Thoughts? > It's not necessarily the same. If you have a single-threaded process pegging one of the cores, your load average can hit 8 even if the 7 other cores are sitting idle. - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 2.5 > 3.x Any issues
Tom Brown wrote: >>> Nagios 3.0.1 >>> Copyright (c) 1999-2008 Ethan Galstad (http://www.nagios.org) >>> Last Modified: 04-01-2008 >>> License: GPL >>> >>> Reading configuration data... >>> >>> Warning: Duplicate definition found for host 'x' (config file >>> '/etc/nagios/objects/hosts.cfg', starting on line 7) >>> >>> >> duplicate host? >> > > nope - this file is copied as is from a working 2.5 install > > > my bad - i had cfg_file=/etc/nagios/objects/hosts.cfg twice in my nagios.cfg so i guess the configs were being read in twice. - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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_load --- divide by number of cpus?
On Thu, May 08, 2008 at 08:49:52AM -0500, Terry wrote: > I am sitting here racking my brain on this one. Is dividing the load > average by the number of CPUs a smart thing to do? the 'uptime' > command on a box does not do this. So, if I have an 8 core box > sitting with a load average of 8, its the same as a single core box > sitting with a load average of 1? I'll see the same type of server > response? Thoughts? This is pretty much the same question as "should I modify my rm command, somehow, so that it forces -i, so I don't accidentally remove things", and, for me, where the *real* problem lies is here: If you train yourself to expect the modified behavior, then you won't be expecting the traditional behaviour when you find yourself out in The World... and other people coming in won't expect the answers they get either. I understand your goal, but I think a better way to do it might be to *rename the check command* on those machines, so that you still see 8 as the answer, but the question is check_load_8cpu. That way, you get a close-in reminder that the baseline is to be expected to be different. It's a really good question, though, and opinions will likely differ. Cheers, -- jra -- Jay R. Ashworth Baylink [EMAIL PROTECTED] Designer The Things I Think RFC 2100 Ashworth & Associates http://baylink.pitas.com '87 e24 St Petersburg FL USA http://photo.imageinc.us +1 727 647 1274 Those who cast the vote decide nothing. Those who count the vote decide everything. -- (Joseph Stalin) - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 2.5 > 3.x Any issues
Tom Brown wrote: >> http://nagios.sourceforge.net/docs/3_0/upgrading.html#nagios2x >> >> That should answer any questions you have about the upgrade. (you may >> need to copy and paste the link depending on your mail client) >> >> >> > > i read through that upgrade doco and did not notice anything unusual > about host definitions etc however when i use my hosts.cfg from a 2.5 > version of nagios i get this > > Nagios 3.0.1 > Copyright (c) 1999-2008 Ethan Galstad (http://www.nagios.org) > Last Modified: 04-01-2008 > License: GPL > > Reading configuration data... > > Warning: Duplicate definition found for host 'x' (config file > '/etc/nagios/objects/hosts.cfg', starting on line 7) > Error: Could not add object property in file > '/etc/nagios/objects/hosts.cfg' on line 8. > > and this is the start of the hosts file > > ### > # > # HOSTS > # > ### > define host{ > use generic-host; Name of host > template to use > host_name x > alias > address 192.168.9.31 > check_command check-host-alive > max_check_attempts 10 > notification_interval 120 > notification_period 24x7 > notification_optionsd,r > contact_groups our_contact _group > } > > has anything changed or am i doing something wrong > > thanks > > > > i should also say that i built the rpm from the tarball so i did not get any example config files to look at for this version so i wonder if there are some syntax differences there - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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] Total cpu usage
On Thu, 2008-05-08 at 15:20 +0200, Machiel Richards wrote: > HI All > > > > I hope that someone can please assist me with either a > script or a plugin. > > > > I am looking to monitor the total percentage of CPU usage > on a linux server using Nagios. Did you try looking on nagiosexchange.org? - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] check_load --- divide by number of cpus?
I am sitting here racking my brain on this one. Is dividing the load average by the number of CPUs a smart thing to do? the 'uptime' command on a box does not do this. So, if I have an 8 core box sitting with a load average of 8, its the same as a single core box sitting with a load average of 1? I'll see the same type of server response? Thoughts? - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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] Total cpu usage
HI All I hope that someone can please assist me with either a script or a plugin. I am looking to monitor the total percentage of CPU usage on a linux server using Nagios. I was hoping to write my own script but as this is quite urgent being a production system I need to get this in a.s.a.p We are currently monitoring the load averages but they have the requirement to be notified once the cpu's are used at more than 80% capacity as this suggests a problem on the relevant servers. Does anybody know about a plugin or script that I can use in order to get this put in place? We are running SLES 9 Service pack 3 if this makes a difference to the commands etc... Regards Machiel *** Disclaimer *** The information contained in this e-mail is confidential and legally privileged and is intended solely for the addressee and to others who have the authority to receive it. Access to this e-mail by anyone else is unauthorized and as such, any disclosure, copying, distribution or any action taken or omitted in reliance on it is unlawful. If you have received this e-mail in error, please notify the sender immediately. The views expressed in this e-mail are the views of the individual sender and should in no way be construed as the views of the Company. The Company is not liable to ensure that outgoing e-mails are virus-free. The Company is not liable, should information or data, for whatever reason, be corrupted or fail to reach its intended addressee. The Company is not liable for any loss or damage of whatsoever nature and howsoever arising resulting from the opening or the use of the information in this e-mail, including its attachments and links. The sender of this e-mail is subject to and bound by the terms and conditions of Company’s Electronic Communications Usage Policy. - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 2.5 > 3.x Any issues
>> >> >> Nagios 3.0.1 >> Copyright (c) 1999-2008 Ethan Galstad (http://www.nagios.org) >> Last Modified: 04-01-2008 >> License: GPL >> >> Reading configuration data... >> >> Warning: Duplicate definition found for host 'x' (config file >> '/etc/nagios/objects/hosts.cfg', starting on line 7) >> > duplicate host? nope - this file is copied as is from a working 2.5 install - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 2.5 > 3.x Any issues
Tom Brown schrieb: http://nagios.sourceforge.net/docs/3_0/upgrading.html#nagios2x That should answer any questions you have about the upgrade. (you may need to copy and paste the link depending on your mail client) i read through that upgrade doco and did not notice anything unusual about host definitions etc however when i use my hosts.cfg from a 2.5 version of nagios i get this Nagios 3.0.1 Copyright (c) 1999-2008 Ethan Galstad (http://www.nagios.org) Last Modified: 04-01-2008 License: GPL Reading configuration data... Warning: Duplicate definition found for host 'x' (config file '/etc/nagios/objects/hosts.cfg', starting on line 7) duplicate host? smime.p7s Description: S/MIME Cryptographic Signature - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 2.5 > 3.x Any issues
> http://nagios.sourceforge.net/docs/3_0/upgrading.html#nagios2x > > That should answer any questions you have about the upgrade. (you may > need to copy and paste the link depending on your mail client) > > i read through that upgrade doco and did not notice anything unusual about host definitions etc however when i use my hosts.cfg from a 2.5 version of nagios i get this Nagios 3.0.1 Copyright (c) 1999-2008 Ethan Galstad (http://www.nagios.org) Last Modified: 04-01-2008 License: GPL Reading configuration data... Warning: Duplicate definition found for host 'x' (config file '/etc/nagios/objects/hosts.cfg', starting on line 7) Error: Could not add object property in file '/etc/nagios/objects/hosts.cfg' on line 8. and this is the start of the hosts file ### # # HOSTS # ### define host{ use generic-host; Name of host template to use host_name x alias address 192.168.9.31 check_command check-host-alive max_check_attempts 10 notification_interval 120 notification_period 24x7 notification_optionsd,r contact_groups our_contact _group } has anything changed or am i doing something wrong thanks - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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] NLG Errors
Hi All, We think NLG is for us (thanks Andy!) but we can't get it to work. Here's some details: OS: SLES10 32 bits NLG: 1.0.6 and 1.1.0b1 HTTPD: Apache2-2.2.3 PHP: PHP5-5.1.2 Browser: Firefox 1.5.0.6 Afaik all dependencies are solved. Server directory is copied to the Nagios server in /usr/local/nagios/share, and client dir is copied to the Webserver in /srv/www/htdocs. both are named 'nlg' which is reflected in the configfiles. We followed the PDF document to configure everything, but we get garbled output on the web GUI, and some errors in the apache logs: [Thu May 08 14:43:33 2008] [error] [client 10.10.10.10] PHP Notice: Undefined variable: NLG_Language in /srv/www/htdocs/nlg/s3_client.php on line 86 [Thu May 08 14:43:33 2008] [error] [client 10.10.10.10] PHP Warning: require(sync-files/s3_lang_.inc.php) [function.require]: failed to open stream: No such file or directory in /srv/www/htdocs/nlg/s3_client.php on line 86 [Thu May 08 14:43:33 2008] [error] [client 10.10.10.10] PHP Fatal error: require() [function.require]: Failed opening required 'sync-files/s3_lang_.inc.php' (include_path='.:/usr/share/php5:/usr/share/php5/PEAR') in /srv/www/htdocs/nlg/s3_client.php on line 86 Curious if anyone has any clues; googling didn't help much :( Rgds and thanks in advance, Richard - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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] Slightly-OT - Notification management
Hi, This is only indirectly related to nagios, as it is more related to notifications management. We are currently using nagios and receive alerts by email and by text messages (e-mails) sent to our cell phones. I am looking for using Blackberry devices instead, but I have one concern: Assuming that we have a BlackBerry Enterprise Server, is it possible to, for example: -> Configure something so that it is possible to be notified (vibration, sound) by our BB device only if the e-mail received is a nagios alert. The goal of all this is that , outside work hours, our staff would read their regular e-mail if they'd like to, but wouldn't be bothered by the BB device for regular e-mail. However, if it is a nagios alert, they would be alerted. Thanks, Ugo - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 it was possible to ask from shell to remote
Uwe Großkinsky wrote: > Hy list > > > how it was possible to check on my shell konsole? i have try this > ./check_nrpe -H 10.23.3.29 check_disk -w 10% -c 20% -p / > but i must made something wrong > on my remotemaschine it was possible to become my informations > > nrpe was installed on my nagios server > > thanks for tipp 1. You need "-c " before check_disk 2. You should not be passing args through NRPE according to the nrpe.cfg docs. Instead you may want to hardcode the arguments in nrpe.cfg as command[check_disk_root] and then just call ./check_nrpe -H 10.23.3.29 -c check_disk_root. -h -- Hari Sekhon - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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] Remote external commands
Mark Clarkson wrote: > > Hi, > I need to write a command to the nagios.cmd pipe but from > a remote server. I thought I saw a daemon that was used for > this but now I can't find it! Any ideas? > > Cheers > Mark. > Were you thinking of NSCA that uses the nagios.cmd pipe? This only takes a specific format for service checks only to my knowledge (or at least that's all I use it for). Otherwise I'd look on NagiosExchange.org, pretty much everything 3rd party to Nagios core is listed there... -h -- Hari Sekhon - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 reboot XP
Palle L Jensen wrote: > > I guess I should have been more specific, sorry about that. > > I am running Nagios 3.0.1 on openSUSE 10.3, and I am only monitoring > windows hosts. On the windows hosts I am running NSClient++. That > seems to work good and I would prefer not to change to any other client. > > I have read about the event handlers in the Nagios documentation, but > the samples there only refers to nrpe and scripts on the server. I > understand how to define the service in Nagios, but I am not sure how > to create the script that executes the batch file on the windows host? > Maybe I am not getting the point and understanding on the documentation. > > Lets say I created a batch file that will start or restart a service, > this batch file is located in c:\NSclient++\scripts folder. And then > defined the service and command in Nagios: > > define service{ > host_name somehost > service_descriptionsql-service > max_check_attempts 4 > event_handler restart-sqlagent > } > > define command{ > command_name restart-sqlagent > command_line what do I add here?? It has to be something that can > be sent to the Nsclient++/windows host and execute the batch script in > c:\NSclient++\scripts folder > } > > The command line on the eventhandler documentation shows a path to a > local script and local command “/etc/rc.d/init.d/httpd restart” > > So creating and event handler for services or others on the box where > Nagios is running, I understand. But not how to do it remotely to a > windows host. > > If you could shed some more light over this I would very much > appreciate it. > > Thanks, > > PJ > You need a Unix-side script to execute and handle the condition appropriately, for example to only call the restart when the service is in hard failure. A sample Bash script is given in the docs to get you started. If using Bash (which I recommend) the Bash script should check the state and perform the logic control, calling the batch or script on the windows side though an NRPE call to nsclient++ to execute the script on the windows host. -h -- Hari Sekhon - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 it was possible to ask from shell to remote
Hi > how it was possible to check on my shell konsole? i have try this > ./check_nrpe -H 10.23.3.29 check_disk -w 10% -c 20% -p / > but i must made something wrong > on my remotemaschine it was possible to become my informations try ./check_nrpe --help ./check_nrpe -H -c -a Regards Sebastian Ries -- DT Netsolution GmbH - Talaeckerstr. 30 - D-70437 Stuttgart Tel: +49-711-849910-36 Fax: +49-711-849910-936 WEB: http://www.dtnet.de/ email: [EMAIL PROTECTED] - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 utils version 1.3.1
[EMAIL PROTECTED] schrieb: Hi 05-08-2008 13:09:02] Error: Could not load module '/usr/local/nagios/bin/ndomod.o' -> /usr/local/nagios/var/spool/checkresults/nebmodaLM3P1: undefined symbol: serviceextinfo_list [05-08-2008 13:09:02] LOG VERSION: 2.0 this error i get after i have installed ndo utils and i restart my nagios 3.0. NDOUtils 1.3.1 is not compatible against nagios 3.x - please update your ndoutils to the latest beta 1.4.7b i think. Regards Hendrik smime.p7s Description: S/MIME Cryptographic Signature - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 it was possible to ask from shell to remote
Hy list how it was possible to check on my shell konsole? i have try this ./check_nrpe -H 10.23.3.29 check_disk -w 10% -c 20% -p / but i must made something wrong on my remotemaschine it was possible to become my informations nrpe was installed on my nagios server thanks for tipps - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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] Remote external commands
Hi, I need to write a command to the nagios.cmd pipe but from a remote server. I thought I saw a daemon that was used for this but now I can't find it! Any ideas? Cheers Mark. - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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_nt -v counter value question (when using counters with colon)
Hello, Counternames with : are "broken" this is bug that will hopefully be fixed in the next version. A workaround is to use an "alias" which IIRC might work is to add an "alias" (which is what causes the problem) like so: "dummyalias:\\SQLServer:Databases(_Total)\\Data File(s) Size (KB)","SQL Server Databases Datafile size total is %.f" (not so much) more details here: http://nsclient.org/nscp/ticket/165 // Michael Medihn > I am using, on my windows 2003 server, nsclient++. For the check_nt > reference where it refers to the 'COUNTER' parameters it refers to > 'float parameters'. This does seem to be working for me. I have added to > output from my Nagios server. I got the command line reference from > http://nagioswiki.com/wiki/index.php/Checking_NT_Services_with_Nagios. > It refers to using NSclient so maybe nsclient++ does not have the same > functionality. > > > > Any help would be appreciated. > > > > [EMAIL PROTECTED] plugins]# ./check_nt -H srv-qs-sqlprd -p 12489 -v > COUNTER -l "\\SQLServer:Databases(_Total)\\Data File(s) Size (KB)","SQL > Server Databases Datafile size total is %.f" -w 5 -c 30 > > SQL Server Databases Datafile size total is 191552 | 'SQL Server > Databases Datafile size total is %.f'=191552.00%;5.00;30.00; > > > > COUNTER = > > Check any performance counter of Windows NT/2000. > > Request a -l parameters with the following syntax: > > -l "counter"," > > The parameter is optional and is given to a printf > > output command which requires a float parameter. > > If does not include "%%", it is used as a label. > > > > Some examples: > > "Paging file usage is %%.2f " > > "%%.f paging file used." > > > > > > > *** > This message is intended for the addressee named and may contain > confidential information. If you are not the intended recipient, please > delete it and notify the sender. > > Views expressed in this message are those of the individual sender, and > are not necessarily the views of the Department of Lands. > > This email message has been swept by MIMEsweeper for the presence of > computer viruses. > *** > - > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___ > Nagios-users mailing list > Nagios-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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 the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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] NDO utils version 1.3.1
Hi 05-08-2008 13:09:02] Error: Could not load module '/usr/local/nagios/bin/ndomod.o' -> /usr/local/nagios/var/spool/checkresults/nebmodaLM3P1: undefined symbol: serviceextinfo_list [05-08-2008 13:09:02] LOG VERSION: 2.0 this error i get after i have installed ndo utils and i restart my nagios 3.0. can anyone help me pls!!! The information contained in this e-mail message is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you should return it to the sender immediately. Please note that while we scan all e-mails for viruses we cannot guarantee that any e-mail is virus-free and accept no liability for any damage caused by any virus transmitted by this email.<>- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null