From dcorbin at machturtle.com Sat Feb 1 01:01:31 2003 From: dcorbin at machturtle.com (David Corbin) Date: Fri, 31 Jan 2003 19:01:31 -0500 Subject: Alternative notifications References: <74D428BDBFD5D04CB54E84499ECA29DB014E13D8@PKDWB03C.ad.sprint.com> Message-ID: <3E3B0E5B.3070105@machturtle.com> Carroll, Jim P [Contractor] wrote: >I just realized something. > >If you have no Internet connection, how do you plan to make any sort of >Yahoo Messenger solution work? > > I'm talking about notification under two different conditions.... >jc > > > >>-----Original Message----- >>From: David Corbin [mailto:dcorbin at machturtle.com] >>Sent: Friday, January 31, 2003 6:30 AM >>To: Nagios Users >>Subject: [Nagios-users] Alternative notifications >> >> >>Is there a free package out there that I can use to send a Yahoo IM >>message from the command line? >> >>How about some way to send an SMS to a Cingular phone, without an >>internet connection? >> >>David >> >> >> >>------------------------------------------------------- >>This SF.NET email is sponsored by: >>SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >>http://www.vasoftware.com >>_______________________________________________ >>Nagios-users mailing list >>Nagios-users at lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/nagios-users >> >> >> > > > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From marek.dohojda at linksys.com Sat Feb 1 01:22:10 2003 From: marek.dohojda at linksys.com (Marek Dohojda) Date: Fri, 31 Jan 2003 16:22:10 -0800 Subject: Notifications question Message-ID: Hello everyone First of all, I am terribly sorry if this has been asked before. I looked through the archive and couldn't find the answer I was looking for. I of course read the TFM and read the FAQ. Which is not to say I am not just deaf/blind/stupid (hey it's Friday). That said. Nagios works great for me for everything except for one detail. It seems to only want to notified based on the hostgroup and not services or even escelations. That is to say if a server is a member of a hostgroup, but I am calling a service to another contactgroup. The only people who get the notifications are the people who belong to the hostgroup definition.... I can't seem to make service contact get anything. Hope I am clear. Thank you all! ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From karl at debisschop.net Sat Feb 1 01:38:40 2003 From: karl at debisschop.net (Karl DeBisschop) Date: 31 Jan 2003 19:38:40 -0500 Subject: Stange problem checking https In-Reply-To: <001b01c2c95a$db52ee00$bb20a8c0@corp.wrhambrecht.com> References: <001b01c2c95a$db52ee00$bb20a8c0@corp.wrhambrecht.com> Message-ID: <1044059919.7130.360.camel@localhost.localdomain> On Fri, 2003-01-31 at 13:59, DM wrote: > > Following Subhendu's suggestion, I've installed the latest check_http > plugin, > but unfortunately, Nagios is still issuing a "warning" status for a > seemingly fine > reponse from the web server. > > check_http (nagios-plugins 1.3.0-beta2) 1.12 CVS is at 1.19. One recent change to https section could be relevent - we used to send an extra CRLF. Any way you could send me an unscrubbed hostname etc so I could try and help pinpoint the problem, -- Karl ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From vabiro at yahoo.com Sat Feb 1 06:47:05 2003 From: vabiro at yahoo.com (Victor Biro) Date: Fri, 31 Jan 2003 21:47:05 -0800 (PST) Subject: Empty Directories after "make install" Message-ID: <20030201054705.91394.qmail@web11508.mail.yahoo.com> Hi, I have just attempted to compile and install Nagios on my recent installation of RH 8.0, and I'm having a rather odd outcome, that I don't see in the FAQs or list archives. To configure I run the command: ./configure --prefix= /usr/local/nagios --with-cgiurl=/nagios/cgi-bin --with-htmurl=/nagios/ --with-nagios-user=nagios --with-nagios-grp=nagios The first line is a warning configure: warning: /usr/local/nagios: invalid host type everything else 'seems' to go ok. However after the various make install* commands nothing seems to have been coppied to the /usr/local/nagios directory. I have done a chmod 777 for the /usr/local/nagios directory, just to see if it would make any difference. No good either. Any thoughts on what could be happening? Thanks in advance, Victor ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From adam at consulteaze.com Sat Feb 1 08:24:06 2003 From: adam at consulteaze.com (Adam Krause) Date: Fri, 31 Jan 2003 23:24:06 -0800 Subject: check_command parameters defined Message-ID: <000001c2c9c2$e87c3dd0$6401a8c0@b4i1> Can someone point me to a resource that defines Service and Host check_command parameters? I must be missing this in the documentation somewhere. Thanks, Adam -------------- next part -------------- An HTML attachment was scrubbed... URL: From dcorbin at machturtle.com Sat Feb 1 13:31:07 2003 From: dcorbin at machturtle.com (David Corbin) Date: Sat, 01 Feb 2003 07:31:07 -0500 Subject: Alternative notifications References: <74D428BDBFD5D04CB54E84499ECA29DB014E13D6@PKDWB03C.ad.sprint.com> Message-ID: <3E3BBE0B.3080709@machturtle.com> Carroll, Jim P [Contractor] wrote: >Check out Jabber and/or do a search for Yahoo on sourceforge.net. > > I have done as you suggested, but as near as I can tell, none of the existing clients are command line based. I guess I'll have to roll my own. >jc > > > >>-----Original Message----- >>From: David Corbin [mailto:dcorbin at machturtle.com] >>Sent: Friday, January 31, 2003 6:30 AM >>To: Nagios Users >>Subject: [Nagios-users] Alternative notifications >> >> >>Is there a free package out there that I can use to send a Yahoo IM >>message from the command line? >> >>How about some way to send an SMS to a Cingular phone, without an >>internet connection? >> >>David >> >> >> >>------------------------------------------------------- >>This SF.NET email is sponsored by: >>SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >>http://www.vasoftware.com >>_______________________________________________ >>Nagios-users mailing list >>Nagios-users at lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/nagios-users >> >> >> > > >------------------------------------------------------- >This SF.NET email is sponsored by: >SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >http://www.vasoftware.com >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users > > > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From RTorres at fie.uclv.edu.cu Sat Feb 1 23:07:33 2003 From: RTorres at fie.uclv.edu.cu (Ramon Torres Rojas) Date: Sat, 1 Feb 2003 17:07:33 -0500 Subject: Object no found! nagios Message-ID: <60C9615896E6674C97B982847785E39B08C677@volt.fie.uclv.edu.cu> Tengo problemas con nagios ya lo instale y lo configure... tambien el servicio esta arrancado y corriendo... abre la pagina de inicio y la de documentaci?n pero no abre ningun .cgi, es decir no abre ninguna otra pagina ... me parece que tiene que ver con el apache pero no estoy seguro... y he intentado varias cosas pero nada Cuando intento abrir una p?gina de configuraci?n u otra cualquiera el internet explorer me dice que esa pagina no esta en el servidor Que puede ser esto Saludos Ramon Torres PD: Me pueden escribir en ingles sin problemas -------------- next part -------------- An HTML attachment was scrubbed... URL: From nagios.dm at wrhambrecht.com Sun Feb 2 02:09:16 2003 From: nagios.dm at wrhambrecht.com (DM) Date: Sat, 1 Feb 2003 17:09:16 -0800 Subject: Stange problem checking https Message-ID: <000801c2ca57$b5098260$bb20a8c0@corp.wrhambrecht.com> Hi Karl, Unfortunately the app in question is on an intranet and not publicly available. With your direction, I'll be happy to perform additional diagnostics and send you the output. Also, please note that we are running check_http using the SSL option against many other servers and there are no problems. Could it be the fact that the "problem" server is responding to Nagios with HTTP v.1.0 as opposed to 1.1 like all the other servers? David -----Original Message----- From: Karl DeBisschop [mailto:karl at debisschop.net] Sent: Friday, January 31, 2003 4:39 PM To: DM Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Stange problem checking https On Fri, 2003-01-31 at 13:59, DM wrote: > > Following Subhendu's suggestion, I've installed the latest check_http > plugin, > but unfortunately, Nagios is still issuing a "warning" status for a > seemingly fine > reponse from the web server. > > check_http (nagios-plugins 1.3.0-beta2) 1.12 CVS is at 1.19. One recent change to https section could be relevent - we used to send an extra CRLF. Any way you could send me an unscrubbed hostname etc so I could try and help pinpoint the problem, -- Karl -------------- next part -------------- An HTML attachment was scrubbed... URL: From karl at debisschop.net Sun Feb 2 19:22:43 2003 From: karl at debisschop.net (Karl DeBisschop) Date: 02 Feb 2003 13:22:43 -0500 Subject: Stange problem checking https In-Reply-To: <000801c2ca57$b5098260$bb20a8c0@corp.wrhambrecht.com> References: <000801c2ca57$b5098260$bb20a8c0@corp.wrhambrecht.com> Message-ID: <1044210163.9808.9.camel@localhost.localdomain> On Sat, 2003-02-01 at 20:09, DM wrote: > Hi Karl, > > Unfortunately the app in question is on an intranet and not publicly > available. > > With your direction, I'll be happy to perform additional diagnostics > and send you the output. I was hoping to save you the compile etc. But, alas, I cannot. My first step would be to download the current CVS tree, build the plugins, and try that. As I had noted, the http plugin has been revised several times, and some possibly relevent code was fixed. > Also, please note that we are running check_http using the SSL option > against many other > servers and there are no problems. > > Could it be the fact that the "problem" server is responding to Nagios > with HTTP v.1.0 as > opposed to 1.1 like all the other servers? I don't like to rule things out. And I won't. But I cannot see how that would impact the plugin. I will look, however. Meanwhile, I await your report against CVS. -- Karl ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Jarett_DeAngelis at fujifilm.com Sun Feb 2 22:15:04 2003 From: Jarett_DeAngelis at fujifilm.com (Jarett DeAngelis) Date: Sun, 02 Feb 2003 16:15:04 -0500 Subject: "No lock file found" and SIGSEGV Message-ID: Nagios 1.0 starting... (PID=1467) Finished daemonizing... (New PID=1468) Caught SIGSEGV, shutting down... That's all I get from the log. On the console it just says "no lock file found in /usr/local/nagios/var/nagios.lock" and then quits. Any ideas? This is a VERY simple configuration I've got going here, just three hosts and one check_ping on each. Just about everything is commented out. Help? ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From ahead at wacoisd.org Mon Feb 3 03:57:49 2003 From: ahead at wacoisd.org (Andrew Head) Date: Sun, 02 Feb 2003 20:57:49 -0600 Subject: 3D WRL Message-ID: In the screenshots on the Nagios website, there is a picture where none of the 3D icons on the 3D Status Map are green. How does one make the green glow disappear from the map? Andrew Head Network Engineer Waco ISD ahead at wacoisd.org (254)755-9434 ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Marian.ZUREK at cern.ch Mon Feb 3 09:29:22 2003 From: Marian.ZUREK at cern.ch (Marian Zurek) Date: Mon, 03 Feb 2003 09:29:22 +0100 Subject: NRPE vs. check_by_ssh vs. nagios_statd References: <74D428BDBFD5D04CB54E84499ECA29DB2F24F9@PKDWB03C.ad.sprint.com> Message-ID: <3E3E2862.7050007@cern.ch> An HTML attachment was scrubbed... URL: From Marian.ZUREK at cern.ch Mon Feb 3 10:04:21 2003 From: Marian.ZUREK at cern.ch (Marian Zurek) Date: Mon, 03 Feb 2003 10:04:21 +0100 Subject: Semi static information presentation/logging References: Message-ID: <3E3E3095.2050602@cern.ch> An HTML attachment was scrubbed... URL: From wojnicki at asw.waw.pl Mon Feb 3 11:22:28 2003 From: wojnicki at asw.waw.pl (Pawel Wojnicki) Date: Mon, 03 Feb 2003 11:22:28 +0100 Subject: check_nt plugin Message-ID: <5.1.1.2.0.20030203111252.02572ec0@192.168.0.2> Here's my problem: I downloaded and installed nsclient for NT Copied the "check_nt" plugin to the libexec directory Added the necessary lines to "commands.cfg" and "services.cfg" to monitor the cpu load on my 2k server - nagios starts with no errors But when I lok at "service problems" in Nagios it shows: CRITICAL (Return code of 127 is out of bounds - plugin may be missing) It's probably something about downloading some kind of libraries and recompiling the plugins again - right? Pawel. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From brendon at iwg.info Mon Feb 3 12:57:08 2003 From: brendon at iwg.info (Brendon Caligari) Date: Mon, 3 Feb 2003 12:57:08 +0100 Subject: Hosts that have no services listed as pending Message-ID: Is it the 'expected behaviour', that hosts for which no services have been defined are never 'checked'? Within the 'Host Detail' option, service-less hosts show up as PENDING. As far as possible, I've tried to compare my settings to square-box.com's demo. They seem adding another service check to 'routers' besides the check-host-alive. B. -------------- next part -------------- An HTML attachment was scrubbed... URL: From francesco.albrizio at init.it Mon Feb 3 13:16:48 2003 From: francesco.albrizio at init.it (Francesco Albrizio) Date: Mon, 3 Feb 2003 13:16:48 +0100 Subject: Hosts that have no services listed as pending References: Message-ID: <008c01c2cb7e$2018a8c0$3302a8c0@init.it> Hosts that have no services listed as pendingI have the same problem but I cannot fix it without using services. There seems no way out :-( F. ----- Original Message ----- From: Brendon Caligari To: nagios-users at lists.sourceforge.net Sent: Monday, February 03, 2003 12:57 PM Subject: [Nagios-users] Hosts that have no services listed as pending Is it the 'expected behaviour', that hosts for which no services have been defined are never 'checked'? Within the 'Host Detail' option, service-less hosts show up as PENDING. As far as possible, I've tried to compare my settings to square-box.com's demo. They seem adding another service check to 'routers' besides the check-host-alive. B. -------------- next part -------------- An HTML attachment was scrubbed... URL: From lou at ece.cmu.edu Mon Feb 3 13:46:31 2003 From: lou at ece.cmu.edu (Lou Anschuetz) Date: Mon, 03 Feb 2003 07:46:31 -0500 Subject: maximum site size Message-ID: <229170019.1044258391@beeblebrox.ece.cmu.edu> A general word of appreciation first. I'm running this from a Sun and testing many different functions and all work well. Nice job! Two quick questions: 1) My site will eventually be up to about 1100 hosts using various plugin tests. Is anyone else running anything near to that size? If so, what is the cycle run time? Some of my system administrators believe it will fall over and/or take days. I'm not convinced that this is the case :) 2) On several of the services I have full notification enabled on both mail and epager. The contacts get paged on outages and e-mail on recoveries (not both on both as configured). I'm open to theories as to what my error is. Lou Anschuetz, lou at ece.cmu.edu Network Manager, ECE Department, CMU 412-512-6052 ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From rplewe at hpce.nec.com Mon Feb 3 13:48:48 2003 From: rplewe at hpce.nec.com (Rasmus Plewe) Date: Mon, 3 Feb 2003 13:48:48 +0100 Subject: Hosts that have no services listed as pending In-Reply-To: ; from brendon@iwg.info on Mon, Feb 03, 2003 at 12:57:08PM +0100 References: Message-ID: <20030203134848.B3235@hpce.nec.com> On Mon, Feb 03, 2003 at 12:57:08PM +0100, Brendon Caligari wrote: > > Is it the 'expected behaviour', that hosts for which no services have > been defined are never 'checked'? Yes. Rasmus ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From bas.vanderveen at kahuna.nl Mon Feb 3 14:46:45 2003 From: bas.vanderveen at kahuna.nl (Bas van der Veen) Date: Mon, 3 Feb 2003 14:46:45 +0100 Subject: Host dependency puzzle Message-ID: Hi, I've been experimenting with Nagios all weekend and I must say I really like it. It most likely will lighten the load on our primary monitoring system (if not replacing it). However, I have a small qustion regarding host dependencies: Suppose I have two hosts, a router and a firewall behind this router. If the router is down, nagios should be aware of the fact that it can't reach the firewall (this is being monitored over the internet, not from inside the network). I made a host dependency like this: define hostdependency{ host_name Host1 dependent_host_name Host2 notification_failure_criteria d } When using this dependency, Nagios doesn't see host2 as a dependent host on host1. The status map also shows host2 directly connected to the Nagios process instead of host1. I'm quite clueless here, any help wouldy (ofcourse) be appreciated. Bas van der Veen Sysadmin Kahuna Group ****************************************************************** This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. ****************************************************************** http://www.kahuna.nl ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From brendon at iwg.info Mon Feb 3 14:36:32 2003 From: brendon at iwg.info (Brendon Caligari) Date: Mon, 3 Feb 2003 14:36:32 +0100 Subject: Images - cgi.cfg - nothing shows up Message-ID: In /usr/local/nagios/etc/cgi.cfg I added lines like: hostextinfo[uranus]=;redhat.jpg;redhat.jpg;;RedHat 7.3;;; .in the hope that the status map would show my images instead of the ? The files have been placed in /usr/local/nagios/share/images/logos The access rights are correct, and if I http to: http://......./nagios/images/logos/redhat.jpg I can see the image The defaul t'?' shows up in the status map, and no errors crop up anywhere (stopped/started nagios, checked all log files, etc). Tks to all Brendon -------------- next part -------------- An HTML attachment was scrubbed... URL: From benny at bennyvision.com Mon Feb 3 15:31:39 2003 From: benny at bennyvision.com (C. Bensend) Date: Mon, 3 Feb 2003 08:31:39 -0600 Subject: Host dependency puzzle In-Reply-To: ; from bas.vanderveen@kahuna.nl on Mon, Feb 03, 2003 at 02:46:45PM +0100 References: Message-ID: <20030203083139.A4044@bennyvision.com> On Mon, Feb 03, 2003 at 02:46:45PM +0100, Bas van der Veen wrote: > > Suppose I have two hosts, a router and a firewall behind this router. If the router is down, nagios should be aware of the fact that it can't reach the firewall (this is being monitored over the internet, not from inside the network). I made a host dependency like this: I think what you're looking for is the 'parents' directive in the hosts config file. http://nagios.sourceforge.net/docs/1_0/xodtemplate.html#host Benny ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "Discharge of a nuclear weapon shall be deemed a warlike act, even if accidental." -- My homeowners insurance policy ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Raj.Mudhar at nottingham.ac.uk Mon Feb 3 15:31:52 2003 From: Raj.Mudhar at nottingham.ac.uk (Raj Mudhar) Date: Mon, 03 Feb 2003 14:31:52 +0000 Subject: Five Subdirectories problem..only Four? Message-ID: Hi, I been reading the manual and everything so far has gone fine.. i used Redhat 8 and Nagios1.0 The configuration script ran fine..and i did make all, make install, make install-init and i then verified the directory structure.. and found four folders bin sbin share var but no /etc??? i followed the book by the letter.. so far and i havnt got the /etc directory in the nagios folder under usr/local/nagios why? can anyone help ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From tdeblend at gcc.dhl.com Mon Feb 3 15:50:03 2003 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Mon, 03 Feb 2003 15:50:03 +0100 Subject: Five Subdirectories problem..only Four? References: Message-ID: <3E3E819B.F0DA01D2@gcc.dhl.com> rtfm... http://www.nagios.org/faqs/viewfaq.php?faq_id=49&expand=false&showdesc=true Raj Mudhar wrote: > > Hi, > > I been reading the manual and everything so far has gone fine.. i used Redhat 8 and Nagios1.0 > > The configuration script ran fine..and i did make all, make install, make install-init > > and i then verified the directory structure.. and found four folders bin sbin share var but no /etc??? > > i followed the book by the letter.. so far and i havnt got the /etc directory in the nagios folder under usr/local/nagios > > why? can anyone help > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From brendon at iwg.info Mon Feb 3 15:51:21 2003 From: brendon at iwg.info (Brendon Caligari) Date: Mon, 3 Feb 2003 15:51:21 +0100 Subject: Five Subdirectories problem..only Four? Message-ID: Same happened to me until I noticed the notice given at the end of the configure script :( make all - Build the application make install - This installs the main program, CGIs, and HTML files make install-init - This installs the init script in /etc/rc.d/init.d make install-commandmode - This installs and configures permissions on the directory for holding the external command file make install-config - This installs *SAMPLE* config files in /usr/local/nagios/etc You'll have to modify these sample files before you can use Nagios. Read the HTML documentation for more info on doing this. Pay particular attention to the docs on object configuration files, as they determine what/how things get monitored! B -----Original Message----- From: Raj Mudhar [mailto:Raj.Mudhar at nottingham.ac.uk] Sent: 03 February 2003 15:32 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Five Subdirectories problem..only Four? Hi, I been reading the manual and everything so far has gone fine.. i used Redhat 8 and Nagios1.0 The configuration script ran fine..and i did make all, make install, make install-init and i then verified the directory structure.. and found four folders bin sbin share var but no /etc??? i followed the book by the letter.. so far and i havnt got the /etc directory in the nagios folder under usr/local/nagios why? can anyone help ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld =omething 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From chrisd at better-investing.org Mon Feb 3 15:43:25 2003 From: chrisd at better-investing.org (Chris Ditri) Date: Mon, 3 Feb 2003 09:43:25 -0500 Subject: Passive Service Checks and 127 Message-ID: <200302030943.25612.chrisd@better-investing.org> Hello everyone. This one is weird. I am monitoring a cluster of co-located servers from our place of work. We have to go through two firewalls to do this, so I decided to use passive service checks. Most of the time, Nagios is working great -- but every once in a while, (about once or twice a day) we get an error stating this: (Return code of 127 is out of bounds - plugin may be missing). I have seven machines I am monitoring with passive service checks, with an average of about eight processes. The problem does not appear to be plugin-related, as this error does not seem to favor any one machine or service in the cluster. I have each machine send out results on these checks every 5 minutes or so (each one staggered, to help ensure they don't all come in at once). I have freshness_check_interval set to 665 -- a litte over 11 minutes. Now, if checks come in every 5 minutes, and checks do not go stale for 11 minutes, theoretically I should never get this error (unless there is actually a problem). At first, I thought it might be because I was using a beta version of nagios, but when 1.0 came out, I updated it and the problem still occurs. Then I thought it might be the hub the nagios server was attached to, so we bought a new switch. This, of course, did not help either. I decided to log the output from nsca and it says that each check was sent successfully. This makes no sense to me. Prior to switching to Nagios, I used Netsaint with npre and nsca to acheive the same results and never had these problems -- and I had set my freshness checking interval to an even tighter window -- 7 minutes. Can anyone tell me what is going on here? Thank you! Chris ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From tdeblend at gcc.dhl.com Mon Feb 3 15:52:17 2003 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Mon, 03 Feb 2003 15:52:17 +0100 Subject: Host dependency puzzle References: Message-ID: <3E3E8221.512C6F93@gcc.dhl.com> Dear, What you are looking for is parent/child host relationships in your host definitions, not host dependencies. "parents: This directive is used to define a comma-delimited list of short names of the "parent" hosts for this particular host. Parent hosts are typically routers, switches, firewalls, etc. that lie between the monitoring host and a remote hosts. A router, switch, etc. which is closest to the remote host is considered to be that host's "parent". Read the "Determining Status and Reachability of Network Hosts" document located here for more information. If this host is on the same network segment as the host doing the monitoring (without any intermediate routers, etc.) the host is considered to be on the local network and will not have a parent host. Leave this value blank if the host does not have a parent host (i.e. it is on the same segment as the Nagios host). The order in which you specify parent hosts has no effect on how things are monitored." Bas van der Veen wrote: > > Hi, > > I've been experimenting with Nagios all weekend and I must say I really like it. It most likely will lighten the load on our primary monitoring system (if not replacing it). > However, I have a small qustion regarding host dependencies: > > Suppose I have two hosts, a router and a firewall behind this router. If the router is down, nagios should be aware of the fact that it can't reach the firewall (this is being monitored over the internet, not from inside the network). I made a host dependency like this: > > define hostdependency{ > host_name Host1 > dependent_host_name Host2 > notification_failure_criteria d } > When using this dependency, Nagios doesn't see host2 as a dependent host on host1. The status map also shows host2 directly connected to the Nagios process instead of host1. > I'm quite clueless here, any help wouldy (ofcourse) be appreciated. > Bas van der Veen > Sysadmin Kahuna Group > > ****************************************************************** > This footnote also confirms that this email message has > been swept by MIMEsweeper for the presence of > computer viruses. > ****************************************************************** > http://www.kahuna.nl > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Aleksey at loehmanns.com Mon Feb 3 15:52:57 2003 From: Aleksey at loehmanns.com (Aleksey Domorad) Date: Mon, 3 Feb 2003 09:52:57 -0500 Subject: Images - cgi.cfg - nothing shows up Message-ID: <87273DB23407D511B8900008C7FA923301405D6B@EXCHANGE> Hi All I'm experiencing same problems I have nagios Version 1.0b6 installed from RPMs ON RH7.3 Thank You -----Original Message----- From: Brendon Caligari [mailto:brendon at iwg.info] Sent: Monday, February 03, 2003 8:37 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Images - cgi.cfg - nothing shows up In /usr/local/nagios/etc/cgi.cfg I added lines like: hostextinfo[uranus]=;redhat.jpg;redhat.jpg;;RedHat 7.3;;; ..in the hope that the status map would show my images instead of the ? The files have been placed in /usr/local/nagios/share/images/logos The access rights are correct, and if I http to: http://......./nagios/images/logos/redhat.jpg I can see the image The defaul t'?' shows up in the status map, and no errors crop up anywhere (stopped/started nagios, checked all log files, etc). Tks to all Brendon -------------- next part -------------- An HTML attachment was scrubbed... URL: From Thomas.Nilsen at roxar.com Mon Feb 3 15:58:23 2003 From: Thomas.Nilsen at roxar.com (Thomas Nilsen) Date: Mon, 3 Feb 2003 15:58:23 +0100 Subject: 3D Map - fails Message-ID: Are there any special requirements for the 3D Status map to work? Trying to get it to work has so far only lead to a download window, which reports that the file cannot be downloaded. (Using IE). The demo site of Nagios works fine, so the browser plug-in works as expected. I haven't defined any 2d/3d coordinates in the extended host file, as I understood from the documentation that Nagios would be able to generate these on the fly. Any help appreciated... Regards, Thomas Nilsen DISCLAIMER: This message contains information that may be privileged or confidential and is the property of the Roxar Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorised to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Aleksey at loehmanns.com Mon Feb 3 15:48:29 2003 From: Aleksey at loehmanns.com (Aleksey Domorad) Date: Mon, 3 Feb 2003 09:48:29 -0500 Subject: check_nt plugin Message-ID: <87273DB23407D511B8900008C7FA923301405D6A@EXCHANGE> I would start with permissions. Had same problem when rebuild/moved nagios to more powerful server Regards -----Original Message----- From: Pawel Wojnicki [mailto:wojnicki at asw.waw.pl] Sent: Monday, February 03, 2003 5:22 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] check_nt plugin Here's my problem: I downloaded and installed nsclient for NT Copied the "check_nt" plugin to the libexec directory Added the necessary lines to "commands.cfg" and "services.cfg" to monitor the cpu load on my 2k server - nagios starts with no errors But when I lok at "service problems" in Nagios it shows: CRITICAL (Return code of 127 is out of bounds - plugin may be missing) It's probably something about downloading some kind of libraries and recompiling the plugins again - right? Pawel. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Donal.Hunt+nagios-users at dcu.ie Mon Feb 3 16:13:09 2003 From: Donal.Hunt+nagios-users at dcu.ie (Donal Hunt) Date: Mon, 03 Feb 2003 15:13:09 +0000 Subject: Host dependency puzzle References: Message-ID: <3E3E8705.A67C86E4@dcu.ie> Bas, You need to define a "parents" in hosts.cfg for the specific host. See the host info webpage for more information. Regards Donal DCU Bas van der Veen wrote: > > Hi, > > I've been experimenting with Nagios all weekend and I must say I really like it. It most likely will lighten the load on our primary monitoring system (if not replacing it). > However, I have a small qustion regarding host dependencies: > > Suppose I have two hosts, a router and a firewall behind this router. If the router is down, nagios should be aware of the fact that it can't reach the firewall (this is being monitored over the internet, not from inside the network). I made a host dependency like this: > > define hostdependency{ > host_name Host1 > dependent_host_name Host2 > notification_failure_criteria d } > When using this dependency, Nagios doesn't see host2 as a dependent host on host1. The status map also shows host2 directly connected to the Nagios process instead of host1. > I'm quite clueless here, any help wouldy (ofcourse) be appreciated. > Bas van der Veen > Sysadmin Kahuna Group > > ****************************************************************** > This footnote also confirms that this email message has > been swept by MIMEsweeper for the presence of > computer viruses. > ****************************************************************** > http://www.kahuna.nl > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From tdeblend at gcc.dhl.com Mon Feb 3 16:14:15 2003 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Mon, 03 Feb 2003 16:14:15 +0100 Subject: [Fwd: Five Subdirectories problem..only Four?] Message-ID: <3E3E8747.2462B157@gcc.dhl.com> This is indeed a valid remark. It is not mentioned at http://nagios.sourceforge.net/docs/1_0/installing.html, but at http://nagios.sourceforge.net/docs/1_0/config.html. Ethan, could you add it there, as it is confusing. Following the steps described at http://nagios.sourceforge.net/docs/1_0/installing.html does not give you five subdirs as mentioned on that page: "You should see five different subdirectories". -------------- next part -------------- An embedded message was scrubbed... From: "Raj Mudhar" Subject: Re: [Nagios-users] Five Subdirectories problem..only Four? Date: Mon, 03 Feb 2003 15:08:49 +0000 Size: 2923 URL: From stevelml1 at scee.sony.co.uk Mon Feb 3 16:12:45 2003 From: stevelml1 at scee.sony.co.uk (Steve Loughran) Date: Mon, 3 Feb 2003 15:12:45 -0000 Subject: Five Subdirectories problem..only Four? References: Message-ID: <021101c2cb96$b4692dc0$f5c8dfc2@niltxp> *cough* make install-config Steve ----- Original Message ----- From: "Raj Mudhar" To: Sent: Monday, February 03, 2003 2:31 PM Subject: [Nagios-users] Five Subdirectories problem..only Four? > Hi, > > I been reading the manual and everything so far has gone fine.. i used Redhat 8 and Nagios1.0 > > The configuration script ran fine..and i did make all, make install, make install-init > > and i then verified the directory structure.. and found four folders bin sbin share var but no /etc??? > > i followed the book by the letter.. so far and i havnt got the /etc directory in the nagios folder under usr/local/nagios > > why? can anyone help > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From bas.vanderveen at kahuna.nl Mon Feb 3 16:25:48 2003 From: bas.vanderveen at kahuna.nl (Bas van der Veen) Date: Mon, 3 Feb 2003 16:25:48 +0100 Subject: Host dependency puzzle Message-ID: Thank you all! 'parents' directive works like a charme, just a matter of RTFM. Thought that was just what I did ;), apparently not. Bas -----Original Message----- From: Tom DE BLENDE [mailto:tdeblend at gcc.dhl.com] Sent: maandag 3 februari 2003 15:52 To: Bas van der Veen Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Host dependency puzzle Dear, What you are looking for is parent/child host relationships in your host definitions, not host dependencies. "parents: This directive is used to define a comma-delimited list of short names of the "parent" hosts for this particular host. Parent hosts are typically routers, switches, firewalls, etc. that lie between the monitoring host and a remote hosts. A router, switch, etc. which is closest to the remote host is considered to be that host's "parent". Read the "Determining Status and Reachability of Network Hosts" document located here for more information. If this host is on the same network segment as the host doing the monitoring (without any intermediate routers, etc.) the host is considered to be on the local network and will not have a parent host. Leave this value blank if the host does not have a parent host (i.e. it is on the same segment as the Nagios host). The order in which you specify parent hosts has no effect on how things are monitored." Bas van der Veen wrote: > > Hi, > > I've been experimenting with Nagios all weekend and I must say I really like it. It most likely will lighten the load on our primary monitoring system (if not replacing it). > However, I have a small qustion regarding host dependencies: > > Suppose I have two hosts, a router and a firewall behind this router. If the router is down, nagios should be aware of the fact that it can't reach the firewall (this is being monitored over the internet, not from inside the network). I made a host dependency like this: > > define hostdependency{ > host_name Host1 > dependent_host_name Host2 > notification_failure_criteria d } > When using this dependency, Nagios doesn't see host2 as a dependent host on host1. The status map also shows host2 directly connected to the Nagios process instead of host1. > I'm quite clueless here, any help wouldy (ofcourse) be appreciated. > Bas van der Veen > Sysadmin Kahuna Group > > ****************************************************************** > This footnote also confirms that this email message has > been swept by MIMEsweeper for the presence of > computer viruses. > ****************************************************************** > http://www.kahuna.nl > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ****************************************************************** This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. ****************************************************************** http://www.kahuna.nl ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From GPotter at MarathonOil.com Mon Feb 3 16:38:58 2003 From: GPotter at MarathonOil.com (Potter, G M (Greg)) Date: Mon, 3 Feb 2003 09:38:58 -0600 Subject: Cingular + TAP Message-ID: The phone number I use in the Oklahoma City area is: (800) 909-4602. Greg > -----Original Message----- > From: David Corbin [mailto:dcorbin at machturtle.com] > Sent: Friday, January 31, 2003 6:04 PM > To: Potter, G M (Greg) > Subject: Re: [Nagios-users] Alternative notifications > > > Potter, G M (Greg) wrote: > > >I send text pages to my Cingular telephone using qpage > >http://www.qpage.org/and a modem attached to the Nagios > >box. Works great on Cingular, can't send to AT&T > >wireless though. > > > > > > Do you have a phone number for Cingular + TAP? > > >Greg > > > > > > > >>-----Original Message----- > >>From: David Corbin [mailto:dcorbin at machturtle.com] > >>Sent: Friday, January 31, 2003 6:30 AM > >>To: Nagios Users > >>Subject: [Nagios-users] Alternative notifications > >> > >> > >>Is there a free package out there that I can use to send a Yahoo IM > >>message from the command line? > >> > >>How about some way to send an SMS to a Cingular phone, without an > >>internet connection? > >> > >>David > >> > >> > >> > >>------------------------------------------------------- > >>This SF.NET email is sponsored by: > >>SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > >>http://www.vasoftware.com > >>_______________________________________________ > >>Nagios-users mailing list > >>Nagios-users at lists.sourceforge.net > >>https://lists.sourceforge.net/lists/listinfo/nagios-users > >> > >> > > > > > > > > > > > > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From bas.vanderveen at kahuna.nl Mon Feb 3 16:51:55 2003 From: bas.vanderveen at kahuna.nl (Bas van der Veen) Date: Mon, 3 Feb 2003 16:51:55 +0100 Subject: Images - cgi.cfg - nothing shows up Message-ID: Hi, See http://nagios.sourceforge.net/docs/1_0/xeddefault.html The name of a GD2 format image that should be associated with this host. This image will be used in the image created by the statusmap CGI. GD2 images can be created from PNG images by using the pngtogd2 utility supplied with Thomas Boutell's gd library. The GD2 images should be created in uncompressed format in order to minimize CPU load when the statusmap CGI is generating the network map image. The image will look best if it is 40x40 pixels in size. You can leave these option blank if you are not using the statusmap CGI. Images for hosts are assumed to be in the logos/ subdirectory in your HTML images directory (i.e. /usr/local/nagios/share/images/logos). Looks like the image *has* to be converted to gd2 format... Bas -----Original Message----- From: Brendon Caligari [mailto:brendon at iwg.info] Sent: maandag 3 februari 2003 14:37 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Images - cgi.cfg - nothing shows up In /usr/local/nagios/etc/cgi.cfg I added lines like: hostextinfo[uranus]=;redhat.jpg;redhat.jpg;;RedHat 7.3;;; ..in the hope that the status map would show my images instead of the ? The files have been placed in /usr/local/nagios/share/images/logos The access rights are correct, and if I http to: http://......./nagios/images/logos/redhat.jpg I can see the image The defaul t'?' shows up in the status map, and no errors crop up anywhere (stopped/started nagios, checked all log files, etc). Tks to all Brendon ****************************************************************** This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. ****************************************************************** http://www.kahuna.nl -------------- next part -------------- An HTML attachment was scrubbed... URL: From Aleksey at loehmanns.com Mon Feb 3 17:32:48 2003 From: Aleksey at loehmanns.com (Aleksey Domorad) Date: Mon, 3 Feb 2003 11:32:48 -0500 Subject: Images - cgi.cfg - nothing shows up Message-ID: <87273DB23407D511B8900008C7FA923301405D6D@EXCHANGE> Bas, I have following entry in cgi.cfg hostextinfo[STS]=;aix.png;aix.png;aix.gd2;AIX STS Server;;; images are viewable via http using direct URL still no show in nagios status pages. Regards -----Original Message----- From: Bas van der Veen [mailto:bas.vanderveen at kahuna.nl] Sent: Monday, February 03, 2003 10:52 AM To: Brendon Caligari; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Images - cgi.cfg - nothing shows up Hi, See http://nagios.sourceforge.net/docs/1_0/xeddefault.html The name of a GD2 format image that should be associated with this host. This image will be used in the image created by the statusmap CGI. GD2 images can be created from PNG images by using the pngtogd2 utility supplied with Thomas Boutell's gd library. The GD2 images should be created in uncompressed format in order to minimize CPU load when the statusmap CGI is generating the network map image. The image will look best if it is 40x40 pixels in size. You can leave these option blank if you are not using the statusmap CGI. Images for hosts are assumed to be in the logos/ subdirectory in your HTML images directory (i.e. /usr/local/nagios/share/images/logos). Looks like the image *has* to be converted to gd2 format... Bas -----Original Message----- From: Brendon Caligari [mailto:brendon at iwg.info] Sent: maandag 3 februari 2003 14:37 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Images - cgi.cfg - nothing shows up In /usr/local/nagios/etc/cgi.cfg I added lines like: hostextinfo[uranus]=;redhat.jpg;redhat.jpg;;RedHat 7.3;;; ..in the hope that the status map would show my images instead of the ? The files have been placed in /usr/local/nagios/share/images/logos The access rights are correct, and if I http to: http://......./nagios/images/logos/redhat.jpg I can see the image The defaul t'?' shows up in the status map, and no errors crop up anywhere (stopped/started nagios, checked all log files, etc). Tks to all Brendon ****************************************************************** This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. ****************************************************************** http://www.kahuna.nl -------------- next part -------------- An HTML attachment was scrubbed... URL: From sghosh at sghosh.org Mon Feb 3 17:39:04 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Mon, 03 Feb 2003 11:39:04 -0500 (EST) Subject: Empty Directories after "make install" In-Reply-To: <20030201054705.91394.qmail@web11508.mail.yahoo.com> References: <20030201054705.91394.qmail@web11508.mail.yahoo.com> Message-ID: On Fri, 31 Jan 2003, Victor Biro wrote: > Hi, > > I have just attempted to compile and install Nagios on my recent installation > of RH 8.0, and I'm having a rather odd outcome, that I don't see in the FAQs or > list archives. > > To configure I run the command: > ./configure --prefix= /usr/local/nagios --with-cgiurl=/nagios/cgi-bin > --with-htmurl=/nagios/ --with-nagios-user=nagios --with-nagios-grp=nagios > > The first line is a warning > configure: warning: /usr/local/nagios: invalid host type > > everything else 'seems' to go ok. > > However after the various make install* commands nothing seems to have been > coppied to the /usr/local/nagios directory. > > I have done a chmod 777 for the /usr/local/nagios directory, just to see if it > would make any difference. No good either. > > Any thoughts on what could be happening? > > Thanks in advance, > Victor you cannot put a space between "prefic=" and the path. -- -sg ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jcarro10 at sprintspectrum.com Mon Feb 3 17:22:08 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Mon, 3 Feb 2003 10:22:08 -0600 Subject: Alternative notifications Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E13EA@PKDWB03C.ad.sprint.com> Hmm. I was looking for Yahoo clients for Linux a few months back, and seem to recall one which was Perl-based. *shrug* jc > -----Original Message----- > From: David Corbin [mailto:dcorbin at machturtle.com] > Sent: Saturday, February 01, 2003 6:31 AM > To: Carroll, Jim P [Contractor] > Cc: Nagios Users > Subject: Re: [Nagios-users] Alternative notifications > > > Carroll, Jim P [Contractor] wrote: > > >Check out Jabber and/or do a search for Yahoo on sourceforge.net. > > > > > I have done as you suggested, but as near as I can tell, none of the > existing clients are command line based. I guess I'll have > to roll my > own. > > >jc > > > > > > > >>-----Original Message----- > >>From: David Corbin [mailto:dcorbin at machturtle.com] > >>Sent: Friday, January 31, 2003 6:30 AM > >>To: Nagios Users > >>Subject: [Nagios-users] Alternative notifications > >> > >> > >>Is there a free package out there that I can use to send a Yahoo IM > >>message from the command line? > >> > >>How about some way to send an SMS to a Cingular phone, without an > >>internet connection? > >> > >>David > >> > >> > >> > >>------------------------------------------------------- > >>This SF.NET email is sponsored by: > >>SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > >>http://www.vasoftware.com > >>_______________________________________________ > >>Nagios-users mailing list > >>Nagios-users at lists.sourceforge.net > >>https://lists.sourceforge.net/lists/listinfo/nagios-users > >> > >> > >> > > > > > >------------------------------------------------------- > >This SF.NET email is sponsored by: > >SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > >http://www.vasoftware.com > >_______________________________________________ > >Nagios-users mailing list > >Nagios-users at lists.sourceforge.net > >https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From AHKAPLAN at PARTNERS.ORG Mon Feb 3 17:48:04 2003 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Mon, 3 Feb 2003 11:48:04 -0500 Subject: FW: Correct Syntax for check_flexlm (fwd) Message-ID: <5593DA408212D511B0910002A513501F01D288D5@phsexch20.mgh.harvard.edu> Cliff, Subhendu I installed and configured the check_flexlm script that you had sent. Thanks by the way. The error message I am encountering is Return Code of 99 is out of bounds. Any ideas? -----Original Message----- From: Subhendu Ghosh [mailto:sghosh at sghosh.org] Sent: Monday, February 03, 2003 10:26 AM To: Rice, Clifford E. Cc: Kaplan, Andrew H. Subject: RE: FW: [Nagios-users] Correct Syntax for check_flexlm (fwd) Cliff The logic is the same from the script that you submitted. I moved a couple of vars around, updated for ePN, and got the setting for lmstat from the initial configure process. Also the oputput now prints the list of servers up and down. Going over the script reminded me that it doesn't check for vendor daemon status, just flexlm. Perhaps we can tackle this after 1.3 is released. -sg On Mon, 3 Feb 2003, Rice, Clifford E. wrote: > Subhendu,Andrew, > It appears something strange happened to the check_flexlm.pl script in that this does not > match the one I submitted. I've attached the one I have in this email. Andrew, have a look at > the attached perl script in vi and make sure it has none of those ^M's since I have to use > M$ LookOut at work. Next you'll have to modify the line (most likely line 75) and set the > path to point to where your lmstat executable is. The original check_flexlm didn't have the > lmstat path as an argument so hand editing is needed to get that path right. The script uses the > output of lmstat as per the comments in the script. > > HTH > > ---Cliff > > > Linux -- The Choice of the GNU Generation > http://www.debian.org > > > -----Original Message----- > From: Subhendu Ghosh [mailto:sghosh at sghosh.org] > Sent: Sunday, February 02, 2003 10:22 PM > To: Kaplan, Andrew H. > Cc: cptmellow at users.sourceforge.net > Subject: Re: FW: [Nagios-users] Correct Syntax for check_flexlm (fwd) > > > > In the nrpe.cfg you are missing the "-F /path/to/license.dat" for > check_flexlm. > > Remember nrpe cannot pass arguments (unless you are using the latest CVS). > > Attached is a new version of check_flexlm.pl > (replace existing and run make) > > If possible can you test it against a redundant flexlm setup and one > where a license server is down? > > I only have non-admin access to a single server setup at the moment. > > If this is working, I'll add it to CVS. > > -sg > > > On Wed, 29 Jan 2003, Kaplan, Andrew H. wrote: > > > Sg, > > > > I am including the utils.pm, check_flexlm, and nrpe.cfg files for your perusal. > > > > I am not having any luck, getting the check_flexlm plug-in to work. > > > > Thanks in advance for the help... > > > > > > > > -----Original Message----- > > From: Kaplan, Andrew H. > > Sent: Wednesday, January 29, 2003 8:48 AM > > To: '' > > Cc: 'nagios-users at lists.sourceforge.net' > > Subject: RE: [Nagios-users] Correct Syntax for check_flexlm (fwd) > > > > > > Hi Sg, > > > > I ran the command ./check_flexlm -F=/exports/apps/matlab/etc/lmstat and got the > > following results: > > > > 1. A series of lines that read USE OF UNINITIALIZED VALUE IN CONCATENATION (.) > > OR STRING AT ./CHECK_FLEXLM LINE 87, LINE 12. > > 2. These were followed by the line LICENSE SERVER NOT RUNNING > > > > I ran the lmstat command itself and it confirmed the license was up an running. > > > > -----Original Message----- > > From: Subhendu Ghosh [mailto:sghosh at sghosh.org] > > Sent: Tuesday, January 28, 2003 11:42 PM > > To: 'nagios-users at lists.sourceforge.net' > > Subject: RE: [Nagios-users] Correct Syntax for check_flexlm (fwd) > > > > > > Can you run it on the cmdline on the nrpe server? > > > > Is the error from the plugin or via check_nrpe? > > > > -sg > > > > > > On Tue, 28 Jan 2003, Kaplan, Andrew H. wrote: > > > > > Hi Sg, > > > > > > I configured the utils.pm file to reflect the correct path to lmstat. The > > > use lib > > > statement in the check_flexlm plugin included the libexec directory where > > > utils.pm > > > is located. I stopped and restarted the nrpe client on the server. > > > > > > The error message I am getting is RETURN CODE OF 112 IS OUT OF BOUNDS. > > > > > > Your thoughts? > > > > > > -----Original Message----- > > > From: Subhendu Ghosh [mailto:sghosh at sghosh.org] > > > Sent: Saturday, January 25, 2003 12:15 AM > > > To: nagios-users at lists.sourceforge.net > > > Subject: RE: [Nagios-users] Correct Syntax for check_flexlm (fwd) > > > > > > > > > > > > > > > ---------- Forwarded message ---------- > > > Date: Sat, 25 Jan 2003 00:12:16 -0500 (EST) > > > From: Subhendu Ghosh > > > To: "Kaplan, Andrew H." > > > Cc: nagios-user at lists.sf.net > > > Subject: RE: [Nagios-users] Correct Syntax for check_flexlm > > > > > > the server and the license.dat need to exist on the server that the plugin > > > is running on. If you are using nrpe - install the plugin on the flexlm > > > server and make sure the path to lmstat is correct. - note the path is set > > > in "utils.pm" and not the plugin itself. so utils.pm needs to present and > > > the "use lib" statement in the plugin must include the directory where > > > "utils.pm" is copied. > > > > > > -sg > > > > > > On Fri, 24 Jan 2003, Kaplan, Andrew H. wrote: > > > > > > > If I understand you correctly, I have to install the flexlm license server > > > and > > > > its > > > > associated license.dat file on the nagios server even though the "real" > > > server > > > > is > > > > on the client running the nrpe program? > > > > > > > > -----Original Message----- > > > > From: Subhendu Ghosh [mailto:sghosh at sghosh.org] > > > > Sent: Friday, January 24, 2003 4:43 PM > > > > To: Kaplan, Andrew H. > > > > Cc: Nagios-Users (E-mail) > > > > Subject: Re: [Nagios-users] Correct Syntax for check_flexlm > > > > > > > > > > > > > > > > When you run "configure", it searches for the "lmstat" program from > > > > GlobeTrotter and configures the path to the exec. > > > > > > > > So even if flexlm is not running on the nagios server, you need to intall > > > > the flexlm utilities like lmstat and the appropriate flexlm config file. > > > > > > > > -sg > > > > > > > > On Fri, 24 Jan 2003, Kaplan, Andrew H. wrote: > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > From: Kaplan, Andrew H. > > > > > > Sent: Friday, January 24, 2003 9:35 AM > > > > > > To: Nagios-Users (E-mail) > > > > > > Subject: Correct Syntax for check_flexlm > > > > > > > > > > > > Hi there, > > > > > > > > > > > > > > > > > > I want to monitor the flexlm server on a Linux box. I am currently > > > receiving > > > > > > the error message: > > > > > > > > > > > > cannot find "lmstat" > > > > > > > > > > > > Here is what I have so far: > > > > > > > > > > > > Nagios server: > > > > > > > > > > > > check_commands.cfg: > > > > > > > > > > > > # 'check_flexlm' command definition > > > > > > define command{ > > > > > > command_name check_flexlm > > > > > > command_line $USER1$/check_flexlm -F > > $FILENAME$ > > > > > > } > > > > > > > > > > > > services.cfg: > > > > > > > > > > > > check_command check_nrpe!check_flexlm > > > > > > > > > > > > Nagios client machine: > > > > > > > > > > > > nrpe.cfg: > > > > > > > > > > > > command[check_flexlm]=/usr/local/nagios/libexec/check_flexlm -F > > > > > > /exports/apps/matlab/etc/lmstat > > > > > > > > > > > > > > > > > > Any ideas? > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From AHKAPLAN at PARTNERS.ORG Mon Feb 3 17:58:14 2003 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Mon, 3 Feb 2003 11:58:14 -0500 Subject: FW: Correct Syntax for check_flexlm (fwd) Message-ID: <5593DA408212D511B0910002A513501F01D288D6@phsexch20.mgh.harvard.edu> Subhendu, What version of Flexlm is this script written for? The version that is currently being used on the license server is 8.0. -----Original Message----- From: Subhendu Ghosh [mailto:sghosh at sghosh.org] Sent: Monday, February 03, 2003 10:26 AM To: Rice, Clifford E. Cc: Kaplan, Andrew H. Subject: RE: FW: [Nagios-users] Correct Syntax for check_flexlm (fwd) Cliff The logic is the same from the script that you submitted. I moved a couple of vars around, updated for ePN, and got the setting for lmstat from the initial configure process. Also the oputput now prints the list of servers up and down. Going over the script reminded me that it doesn't check for vendor daemon status, just flexlm. Perhaps we can tackle this after 1.3 is released. -sg On Mon, 3 Feb 2003, Rice, Clifford E. wrote: > Subhendu,Andrew, > It appears something strange happened to the check_flexlm.pl script in that this does not > match the one I submitted. I've attached the one I have in this email. Andrew, have a look at > the attached perl script in vi and make sure it has none of those ^M's since I have to use > M$ LookOut at work. Next you'll have to modify the line (most likely line 75) and set the > path to point to where your lmstat executable is. The original check_flexlm didn't have the > lmstat path as an argument so hand editing is needed to get that path right. The script uses the > output of lmstat as per the comments in the script. > > HTH > > ---Cliff > > > Linux -- The Choice of the GNU Generation > http://www.debian.org > > > -----Original Message----- > From: Subhendu Ghosh [mailto:sghosh at sghosh.org] > Sent: Sunday, February 02, 2003 10:22 PM > To: Kaplan, Andrew H. > Cc: cptmellow at users.sourceforge.net > Subject: Re: FW: [Nagios-users] Correct Syntax for check_flexlm (fwd) > > > > In the nrpe.cfg you are missing the "-F /path/to/license.dat" for > check_flexlm. > > Remember nrpe cannot pass arguments (unless you are using the latest CVS). > > Attached is a new version of check_flexlm.pl > (replace existing and run make) > > If possible can you test it against a redundant flexlm setup and one > where a license server is down? > > I only have non-admin access to a single server setup at the moment. > > If this is working, I'll add it to CVS. > > -sg > > > On Wed, 29 Jan 2003, Kaplan, Andrew H. wrote: > > > Sg, > > > > I am including the utils.pm, check_flexlm, and nrpe.cfg files for your perusal. > > > > I am not having any luck, getting the check_flexlm plug-in to work. > > > > Thanks in advance for the help... > > > > > > > > -----Original Message----- > > From: Kaplan, Andrew H. > > Sent: Wednesday, January 29, 2003 8:48 AM > > To: '' > > Cc: 'nagios-users at lists.sourceforge.net' > > Subject: RE: [Nagios-users] Correct Syntax for check_flexlm (fwd) > > > > > > Hi Sg, > > > > I ran the command ./check_flexlm -F=/exports/apps/matlab/etc/lmstat and got the > > following results: > > > > 1. A series of lines that read USE OF UNINITIALIZED VALUE IN CONCATENATION (.) > > OR STRING AT ./CHECK_FLEXLM LINE 87, LINE 12. > > 2. These were followed by the line LICENSE SERVER NOT RUNNING > > > > I ran the lmstat command itself and it confirmed the license was up an running. > > > > -----Original Message----- > > From: Subhendu Ghosh [mailto:sghosh at sghosh.org] > > Sent: Tuesday, January 28, 2003 11:42 PM > > To: 'nagios-users at lists.sourceforge.net' > > Subject: RE: [Nagios-users] Correct Syntax for check_flexlm (fwd) > > > > > > Can you run it on the cmdline on the nrpe server? > > > > Is the error from the plugin or via check_nrpe? > > > > -sg > > > > > > On Tue, 28 Jan 2003, Kaplan, Andrew H. wrote: > > > > > Hi Sg, > > > > > > I configured the utils.pm file to reflect the correct path to lmstat. The > > > use lib > > > statement in the check_flexlm plugin included the libexec directory where > > > utils.pm > > > is located. I stopped and restarted the nrpe client on the server. > > > > > > The error message I am getting is RETURN CODE OF 112 IS OUT OF BOUNDS. > > > > > > Your thoughts? > > > > > > -----Original Message----- > > > From: Subhendu Ghosh [mailto:sghosh at sghosh.org] > > > Sent: Saturday, January 25, 2003 12:15 AM > > > To: nagios-users at lists.sourceforge.net > > > Subject: RE: [Nagios-users] Correct Syntax for check_flexlm (fwd) > > > > > > > > > > > > > > > ---------- Forwarded message ---------- > > > Date: Sat, 25 Jan 2003 00:12:16 -0500 (EST) > > > From: Subhendu Ghosh > > > To: "Kaplan, Andrew H." > > > Cc: nagios-user at lists.sf.net > > > Subject: RE: [Nagios-users] Correct Syntax for check_flexlm > > > > > > the server and the license.dat need to exist on the server that the plugin > > > is running on. If you are using nrpe - install the plugin on the flexlm > > > server and make sure the path to lmstat is correct. - note the path is set > > > in "utils.pm" and not the plugin itself. so utils.pm needs to present and > > > the "use lib" statement in the plugin must include the directory where > > > "utils.pm" is copied. > > > > > > -sg > > > > > > On Fri, 24 Jan 2003, Kaplan, Andrew H. wrote: > > > > > > > If I understand you correctly, I have to install the flexlm license server > > > and > > > > its > > > > associated license.dat file on the nagios server even though the "real" > > > server > > > > is > > > > on the client running the nrpe program? > > > > > > > > -----Original Message----- > > > > From: Subhendu Ghosh [mailto:sghosh at sghosh.org] > > > > Sent: Friday, January 24, 2003 4:43 PM > > > > To: Kaplan, Andrew H. > > > > Cc: Nagios-Users (E-mail) > > > > Subject: Re: [Nagios-users] Correct Syntax for check_flexlm > > > > > > > > > > > > > > > > When you run "configure", it searches for the "lmstat" program from > > > > GlobeTrotter and configures the path to the exec. > > > > > > > > So even if flexlm is not running on the nagios server, you need to intall > > > > the flexlm utilities like lmstat and the appropriate flexlm config file. > > > > > > > > -sg > > > > > > > > On Fri, 24 Jan 2003, Kaplan, Andrew H. wrote: > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > From: Kaplan, Andrew H. > > > > > > Sent: Friday, January 24, 2003 9:35 AM > > > > > > To: Nagios-Users (E-mail) > > > > > > Subject: Correct Syntax for check_flexlm > > > > > > > > > > > > Hi there, > > > > > > > > > > > > > > > > > > I want to monitor the flexlm server on a Linux box. I am currently > > > receiving > > > > > > the error message: > > > > > > > > > > > > cannot find "lmstat" > > > > > > > > > > > > Here is what I have so far: > > > > > > > > > > > > Nagios server: > > > > > > > > > > > > check_commands.cfg: > > > > > > > > > > > > # 'check_flexlm' command definition > > > > > > define command{ > > > > > > command_name check_flexlm > > > > > > command_line $USER1$/check_flexlm -F > > $FILENAME$ > > > > > > } > > > > > > > > > > > > services.cfg: > > > > > > > > > > > > check_command check_nrpe!check_flexlm > > > > > > > > > > > > Nagios client machine: > > > > > > > > > > > > nrpe.cfg: > > > > > > > > > > > > command[check_flexlm]=/usr/local/nagios/libexec/check_flexlm -F > > > > > > /exports/apps/matlab/etc/lmstat > > > > > > > > > > > > > > > > > > Any ideas? > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From xmatous1 at atlas.cz Mon Feb 3 18:17:02 2003 From: xmatous1 at atlas.cz (Zbynek Matousek) Date: Mon, 03 Feb 2003 18:17:02 +0100 Subject: passive checks Message-ID: <4e99d5d1bcff4ee9b30309b290a7ed13@atlas.cz> can someone help me with config passive checks? I have to use the Nagios Java System (no ssh and c compiler on monitored systems but java yes) and I don't understand where i have to place the config file. Can someone send me an example of all necessary config files and say where place them. If it is on mashine with Nagios or on mashine where the passive chechs are made. The second question is how are the passive checks invoked - the java client invokes all tests by some scheduler or I must place tests to the crontab and redirect the output of the job to the java client? ------ Zbynek Matousek ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sandromergvaz at uol.com.br Mon Feb 3 19:26:34 2003 From: sandromergvaz at uol.com.br (Sandro Vaz (UOL)) Date: Mon, 3 Feb 2003 15:26:34 -0300 Subject: RES: 3D Map - fails In-Reply-To: References: Message-ID: Have to download a VRML client. I use Cortona, from Parallel Graphics. http://www.parallelgraphics.com/products/cortona/download/ HTH, Sandro Vaz -----Mensagem original----- De: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] Em nome de Thomas Nilsen Enviada em: segunda-feira, 3 de fevereiro de 2003 11:58 Para: nagios-users at lists.sourceforge.net Assunto: [Nagios-users] 3D Map - fails Are there any special requirements for the 3D Status map to work? Trying to get it to work has so far only lead to a download window, which reports that the file cannot be downloaded. (Using IE). The demo site of Nagios works fine, so the browser plug-in works as expected. I haven't defined any 2d/3d coordinates in the extended host file, as I understood from the documentation that Nagios would be able to generate these on the fly. Any help appreciated... Regards, Thomas Nilsen DISCLAIMER: This message contains information that may be privileged or confidential and is the property of the Roxar Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorised to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld =omething 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.449 / Virus Database: 251 - Release Date: 27/1/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.449 / Virus Database: 251 - Release Date: 27/1/2003 ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From vabiro at yahoo.com Mon Feb 3 18:30:10 2003 From: vabiro at yahoo.com (Victor Biro) Date: Mon, 3 Feb 2003 09:30:10 -0800 (PST) Subject: Alternative notifications In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB014E13EA@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB014E13EA@PKDWB03C.ad.sprint.com> Message-ID: <20030203173010.41535.qmail@web11502.mail.yahoo.com> David, You might want to check out IMCom which seems to be a commandline Jabber client. The URL is http://www.jabberstudio.org/projects/IMCom/project/view.php Victor --- "Carroll, Jim P [Contractor]" wrote: > Hmm. I was looking for Yahoo clients for Linux a few months back, and seem > to recall one which was Perl-based. *shrug* > > jc > > > -----Original Message----- > > From: David Corbin [mailto:dcorbin at machturtle.com] > > Sent: Saturday, February 01, 2003 6:31 AM > > To: Carroll, Jim P [Contractor] > > Cc: Nagios Users > > Subject: Re: [Nagios-users] Alternative notifications > > > > > > Carroll, Jim P [Contractor] wrote: > > > > >Check out Jabber and/or do a search for Yahoo on sourceforge.net. > > > > > > > > I have done as you suggested, but as near as I can tell, none of the > > existing clients are command line based. I guess I'll have > > to roll my > > own. > > > > >jc > > > > > > > > > > > >>-----Original Message----- > > >>From: David Corbin [mailto:dcorbin at machturtle.com] > > >>Sent: Friday, January 31, 2003 6:30 AM > > >>To: Nagios Users > > >>Subject: [Nagios-users] Alternative notifications > > >> > > >> > > >>Is there a free package out there that I can use to send a Yahoo IM > > >>message from the command line? > > >> > > >>How about some way to send an SMS to a Cingular phone, without an > > >>internet connection? > > >> > > >>David > > >> > > >> > > >> > > >>------------------------------------------------------- > > >>This SF.NET email is sponsored by: > > >>SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > > >>http://www.vasoftware.com > > >>_______________________________________________ > > >>Nagios-users mailing list > > >>Nagios-users at lists.sourceforge.net > > >>https://lists.sourceforge.net/lists/listinfo/nagios-users > > >> > > >> > > >> > > > > > > > > >------------------------------------------------------- > > >This SF.NET email is sponsored by: > > >SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > > >http://www.vasoftware.com > > >_______________________________________________ > > >Nagios-users mailing list > > >Nagios-users at lists.sourceforge.net > > >https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From nagios.dm at wrhambrecht.com Mon Feb 3 18:43:43 2003 From: nagios.dm at wrhambrecht.com (DM) Date: Mon, 3 Feb 2003 09:43:43 -0800 Subject: Stange problem checking https Message-ID: <000801c2cbab$cb898a30$bb20a8c0@corp.wrhambrecht.com> > -----Original Message----- > From: Karl DeBisschop [mailto:karl at debisschop.net] > Sent: Sunday, February 02, 2003 10:23 AM > To: DM > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Stange problem checking https > > > On Sat, 2003-02-01 at 20:09, DM wrote: > > Hi Karl, > > > > Unfortunately the app in question is on an intranet and not publicly > > available. > > > > With your direction, I'll be happy to perform additional diagnostics > > and send you the output. > > I was hoping to save you the compile etc. But, alas, I cannot. > > My first step would be to download the current CVS tree, build the > plugins, and try that. As I had noted, the http plugin has > been revised > several times, and some possibly relevent code was fixed. OK, I downloaded the current CVS tree and built the plugins. Unfortunately, I think the new check_http module ((nagios-plugins 1.3.0-beta2) 1.19 )has a bug in it which prevents the SSL option from working at all: $ ./check_http -w 5 -c 10 www.verisign.com HTTP ok: HTTP/1.1 200 OK - 0.354 second response time |time= 0.354 $ ./check_http -w 5 -c 10 --ssl www.verisign.com Segmentation Fault gdb ./check_http (gdb) run -w 5 -c 10 --ssl www.verisign.com Starting program: /temp/nagios/libexec/./check_http -w 5 -c 10 --ssl www.verisign.com Program received signal SIGSEGV, Segmentation fault. asprintf (ptr=0x0, format=0x17290 "%s") at snprintf.c:836 836 *ptr = NULL; (gdb) backtrace #0 asprintf (ptr=0x0, format=0x17290 "%s") at snprintf.c:836 #1 0x13d80 in connect_SSL () at check_http.c:923 #2 0x13aa0 in check_http () at check_http.c:552 #3 0x1218c in main (argc=168960, argv=0x0) at check_http.c:271 (gdb) Looks like the connect_SSL function is sending a null pointer to asprintf, making it segfault. Since I've verified earlier on that check_http is indeed returning the correct value to Nagios, I don't think the issue here is specifically with the check_http plugin, but rather something with how Nagios deals with this particular host/service. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sghosh at sghosh.org Mon Feb 3 18:03:37 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Mon, 03 Feb 2003 12:03:37 -0500 (EST) Subject: FW: Correct Syntax for check_flexlm (fwd) In-Reply-To: <5593DA408212D511B0910002A513501F01D288D6@phsexch20.mgh.harvard.edu> References: <5593DA408212D511B0910002A513501F01D288D6@phsexch20.mgh.harvard.edu> Message-ID: Tested against a v8.1 and a v6.1 Which script did you use, Chris's version or mine? Can you send a lmstat -c lic.dat output? -sg On Mon, 3 Feb 2003, Kaplan, Andrew H. wrote: > Subhendu, > > What version of Flexlm is this script written for? The version that is currently > being used on the license server is 8.0. > > -----Original Message----- > From: Subhendu Ghosh [mailto:sghosh at sghosh.org] > Sent: Monday, February 03, 2003 10:26 AM > To: Rice, Clifford E. > Cc: Kaplan, Andrew H. > Subject: RE: FW: [Nagios-users] Correct Syntax for check_flexlm (fwd) > > > Cliff > > The logic is the same from the script that you submitted. I moved a > couple of vars around, updated for ePN, and got the setting for lmstat > from the initial configure process. Also the oputput now prints the list > of servers up and down. > > Going over the script reminded me that it doesn't check for vendor daemon > status, just flexlm. Perhaps we can tackle this after 1.3 is released. > > -sg > > > On Mon, 3 Feb 2003, Rice, Clifford E. wrote: > > > Subhendu,Andrew, > > It appears something strange happened to the check_flexlm.pl script in > that this does not > > match the one I submitted. I've attached the one I have in this email. > Andrew, have a look at > > the attached perl script in vi and make sure it has none of those ^M's since I > have to use > > M$ LookOut at work. Next you'll have to modify the line (most likely line > 75) and set the > > path to point to where your lmstat executable is. The original check_flexlm > didn't have the > > lmstat path as an argument so hand editing is needed to get that path right. > The script uses the > > output of lmstat as per the comments in the script. > > > > HTH > > > > ---Cliff > > > > > > Linux -- The Choice of the GNU Generation > > http://www.debian.org > > > > > > -----Original Message----- > > From: Subhendu Ghosh [mailto:sghosh at sghosh.org] > > Sent: Sunday, February 02, 2003 10:22 PM > > To: Kaplan, Andrew H. > > Cc: cptmellow at users.sourceforge.net > > Subject: Re: FW: [Nagios-users] Correct Syntax for check_flexlm (fwd) > > > > > > > > In the nrpe.cfg you are missing the "-F /path/to/license.dat" for > > check_flexlm. > > > > Remember nrpe cannot pass arguments (unless you are using the latest CVS). > > > > Attached is a new version of check_flexlm.pl > > (replace existing and run make) > > > > If possible can you test it against a redundant flexlm setup and one > > where a license server is down? > > > > I only have non-admin access to a single server setup at the moment. > > > > If this is working, I'll add it to CVS. > > > > -sg > > > > > > On Wed, 29 Jan 2003, Kaplan, Andrew H. wrote: > > > > > Sg, > > > > > > I am including the utils.pm, check_flexlm, and nrpe.cfg files for your > perusal. > > > > > > I am not having any luck, getting the check_flexlm plug-in to work. > > > > > > Thanks in advance for the help... > > > > > > > > > > > > -----Original Message----- > > > From: Kaplan, Andrew H. > > > Sent: Wednesday, January 29, 2003 8:48 AM > > > To: '' > > > Cc: 'nagios-users at lists.sourceforge.net' > > > Subject: RE: [Nagios-users] Correct Syntax for check_flexlm (fwd) > > > > > > > > > Hi Sg, > > > > > > I ran the command ./check_flexlm -F=/exports/apps/matlab/etc/lmstat and got > the > > > following results: > > > > > > 1. A series of lines that read USE OF UNINITIALIZED VALUE IN CONCATENATION > (.) > > > OR STRING AT ./CHECK_FLEXLM LINE 87, LINE 12. > > > 2. These were followed by the line LICENSE SERVER NOT RUNNING > > > > > > I ran the lmstat command itself and it confirmed the license was up an > running. > > > > > > -----Original Message----- > > > From: Subhendu Ghosh [mailto:sghosh at sghosh.org] > > > Sent: Tuesday, January 28, 2003 11:42 PM > > > To: 'nagios-users at lists.sourceforge.net' > > > Subject: RE: [Nagios-users] Correct Syntax for check_flexlm (fwd) > > > > > > > > > Can you run it on the cmdline on the nrpe server? > > > > > > Is the error from the plugin or via check_nrpe? > > > > > > -sg > > > > > > > > > On Tue, 28 Jan 2003, Kaplan, Andrew H. wrote: > > > > > > > Hi Sg, > > > > > > > > I configured the utils.pm file to reflect the correct path to lmstat. The > > > > use lib > > > > statement in the check_flexlm plugin included the libexec directory where > > > > utils.pm > > > > is located. I stopped and restarted the nrpe client on the server. > > > > > > > > The error message I am getting is RETURN CODE OF 112 IS OUT OF BOUNDS. > > > > > > > > Your thoughts? > > > > > > > > -----Original Message----- > > > > From: Subhendu Ghosh [mailto:sghosh at sghosh.org] > > > > Sent: Saturday, January 25, 2003 12:15 AM > > > > To: nagios-users at lists.sourceforge.net > > > > Subject: RE: [Nagios-users] Correct Syntax for check_flexlm (fwd) > > > > > > > > > > > > > > > > > > > > ---------- Forwarded message ---------- > > > > Date: Sat, 25 Jan 2003 00:12:16 -0500 (EST) > > > > From: Subhendu Ghosh > > > > To: "Kaplan, Andrew H." > > > > Cc: nagios-user at lists.sf.net > > > > Subject: RE: [Nagios-users] Correct Syntax for check_flexlm > > > > > > > > the server and the license.dat need to exist on the server that the plugin > > > > is running on. If you are using nrpe - install the plugin on the flexlm > > > > server and make sure the path to lmstat is correct. - note the path is set > > > > in "utils.pm" and not the plugin itself. so utils.pm needs to present and > > > > the "use lib" statement in the plugin must include the directory where > > > > "utils.pm" is copied. > > > > > > > > -sg > > > > > > > > On Fri, 24 Jan 2003, Kaplan, Andrew H. wrote: > > > > > > > > > If I understand you correctly, I have to install the flexlm license > server > > > > and > > > > > its > > > > > associated license.dat file on the nagios server even though the "real" > > > > server > > > > > is > > > > > on the client running the nrpe program? > > > > > > > > > > -----Original Message----- > > > > > From: Subhendu Ghosh [mailto:sghosh at sghosh.org] > > > > > Sent: Friday, January 24, 2003 4:43 PM > > > > > To: Kaplan, Andrew H. > > > > > Cc: Nagios-Users (E-mail) > > > > > Subject: Re: [Nagios-users] Correct Syntax for check_flexlm > > > > > > > > > > > > > > > > > > > > When you run "configure", it searches for the "lmstat" program from > > > > > GlobeTrotter and configures the path to the exec. > > > > > > > > > > So even if flexlm is not running on the nagios server, you need to > intall > > > > > the flexlm utilities like lmstat and the appropriate flexlm config file. > > > > > > > > > > -sg > > > > > > > > > > On Fri, 24 Jan 2003, Kaplan, Andrew H. wrote: > > > > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > From: Kaplan, Andrew H. > > > > > > > Sent: Friday, January 24, 2003 9:35 AM > > > > > > > To: Nagios-Users (E-mail) > > > > > > > Subject: Correct Syntax for check_flexlm > > > > > > > > > > > > > > Hi there, > > > > > > > > > > > > > > > > > > > > > I want to monitor the flexlm server on a Linux box. I am currently > > > > receiving > > > > > > > the error message: > > > > > > > > > > > > > > cannot find "lmstat" > > > > > > > > > > > > > > Here is what I have so far: > > > > > > > > > > > > > > Nagios server: > > > > > > > > > > > > > > check_commands.cfg: > > > > > > > > > > > > > > # 'check_flexlm' command definition > > > > > > > define command{ > > > > > > > command_name check_flexlm > > > > > > > command_line $USER1$/check_flexlm -F > > > $FILENAME$ > > > > > > > } > > > > > > > > > > > > > > services.cfg: > > > > > > > > > > > > > > check_command check_nrpe!check_flexlm > > > > > > > > > > > > > > Nagios client machine: > > > > > > > > > > > > > > nrpe.cfg: > > > > > > > > > > > > > > command[check_flexlm]=/usr/local/nagios/libexec/check_flexlm -F > > > > > > > /exports/apps/matlab/etc/lmstat > > > > > > > > > > > > > > > > > > > > > Any ideas? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sripley at chiaro.com Mon Feb 3 18:29:41 2003 From: sripley at chiaro.com (Scott Ripley) Date: Mon, 3 Feb 2003 11:29:41 -0600 Subject: Empty Directories after "make install" Message-ID: <668C5EBD23862F459CF63DAFFCA6268C3225EE@rchst006.chiaro.com> Total Guess: It looks like there is a space in your --prefix= directive. Perhaps this is causing your prefix to be picked up as a hostname? Good luck, Scott. -----Original Message----- From: Victor Biro [mailto:vabiro at yahoo.com] Sent: Friday, January 31, 2003 11:47 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Empty Directories after "make install" Hi, I have just attempted to compile and install Nagios on my recent installation of RH 8.0, and I'm having a rather odd outcome, that I don't see in the FAQs or list archives. To configure I run the command: ./configure --prefix= /usr/local/nagios --with-cgiurl=/nagios/cgi-bin --with-htmurl=/nagios/ --with-nagios-user=nagios --with-nagios-grp=nagios The first line is a warning configure: warning: /usr/local/nagios: invalid host type everything else 'seems' to go ok. However after the various make install* commands nothing seems to have been coppied to the /usr/local/nagios directory. I have done a chmod 777 for the /usr/local/nagios directory, just to see if it would make any difference. No good either. Any thoughts on what could be happening? Thanks in advance, Victor ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users -------------- next part -------------- ----------------------------------------- (on rchss001) This e-mail and any files transmitted with it are the property of Chiaro Networks, Ltd., and may contain confidential and privileged material for the sole use of the intended recipient(s) to whom this e-mail is addressed. If you are not one of the named recipient(s), or otherwise have reason to believe that you have received this message in error, please notify the sender and delete all copies from your system. Any other use, retention, dissemination, forwarding, printing or copying of this e-mail is strictly prohibited. --------------------------------------------------------- From johnmc at johnmc.org Mon Feb 3 19:22:05 2003 From: johnmc at johnmc.org (John McDonnell) Date: Mon, 3 Feb 2003 10:22:05 -0800 (PST) Subject: Images - cgi.cfg - nothing shows up In-Reply-To: <87273DB23407D511B8900008C7FA923301405D6D@EXCHANGE> References: <87273DB23407D511B8900008C7FA923301405D6D@EXCHANGE> Message-ID: On the 3rd day of February, Aleksey Domorad said to me: > I have following entry in cgi.cfg > > hostextinfo[STS]=;aix.png;aix.png;aix.gd2;AIX STS Server;;; >From the FAQ[1] specifically about using cgi.cfg for extended info: Note that although this is call the "default" method for historical reasons, the CGIs default to using the template-based method (described below) unless you specifically compile them with this method. Look here instead: http://nagios.sourceforge.net/docs/1_0/xedtemplate.html I've done this and it works well, apart from the fact that I can't get any of my transparent .gd2 images to show up :( The ones supplied on the Nagios site show up just fine, my custom ones won't. I've tried generating them with several versions of the GD lib but to no avail. [1] http://nagios.sourceforge.net/docs/1_0/configextinfo.html johnmc. -- . johnmc@ | bucketchild.net - +1-408-985-7992 (home) . . http:// | johnmc.org - +1-408-386-3549 (cell) . -- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jcarro10 at sprintspectrum.com Mon Feb 3 19:03:48 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Mon, 3 Feb 2003 12:03:48 -0600 Subject: passive checks Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E13F5@PKDWB03C.ad.sprint.com> I don't have a direct answer to your question. However, would it not be possible to do the following: - make a list of the operating systems on the client hosts (eg, Red Hat 7.3, Solaris8) - on another host which has the same architecture, compile NRPE - create tarball - copy tarball to remote host of same o/s - extract tarball - finish installation - create definition(s) in services.cfg on Nagios host - restart Nagios Is this a possibility? jc > -----Original Message----- > From: Zbynek Matousek [mailto:xmatous1 at atlas.cz] > Sent: Monday, February 03, 2003 11:17 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] passive checks > > > can someone help me with config passive checks? > > I have to use the Nagios Java System (no ssh and c compiler > on monitored systems but java yes) and I don't understand > where i have to place the config file. > > Can someone send me an example of all necessary config files > and say where place them. If it is on mashine with Nagios or > on mashine where the passive chechs are made. > > The second question is how are the passive checks invoked - > the java client invokes all tests by some scheduler or I > must place tests to the crontab and redirect the output of > the job to the java client? > > ------ > Zbynek Matousek > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From vabiro at yahoo.com Mon Feb 3 19:46:44 2003 From: vabiro at yahoo.com (Victor Biro) Date: Mon, 3 Feb 2003 10:46:44 -0800 (PST) Subject: Empty Directories after "make install" In-Reply-To: <668C5EBD23862F459CF63DAFFCA6268C3225EE@rchst006.chiaro.com> References: <668C5EBD23862F459CF63DAFFCA6268C3225EE@rchst006.chiaro.com> Message-ID: <20030203184644.81789.qmail@web11506.mail.yahoo.com> Scott et al, Thanks for the sharp eyes. That was the problem. (Boy do I feel silly) Thanks Victor --- Scott Ripley wrote: > > Total Guess: It looks like there is a space in your --prefix= directive. > Perhaps this is causing your prefix to be picked up as a hostname? > > Good luck, > > Scott. > > -----Original Message----- > From: Victor Biro [mailto:vabiro at yahoo.com] > Sent: Friday, January 31, 2003 11:47 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Empty Directories after "make install" > > > Hi, > > I have just attempted to compile and install Nagios on my recent > installation > of RH 8.0, and I'm having a rather odd outcome, that I don't see in the FAQs > or > list archives. > > To configure I run the command: > ./configure --prefix= /usr/local/nagios --with-cgiurl=/nagios/cgi-bin > --with-htmurl=/nagios/ --with-nagios-user=nagios --with-nagios-grp=nagios > > The first line is a warning > configure: warning: /usr/local/nagios: invalid host type > > everything else 'seems' to go ok. > > However after the various make install* commands nothing seems to have been > coppied to the /usr/local/nagios directory. > > I have done a chmod 777 for the /usr/local/nagios directory, just to see if > it > would make any difference. No good either. > > Any thoughts on what could be happening? > > Thanks in advance, > Victor > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users> ----------------------------------------- (on rchss001) > > This e-mail and any files transmitted with it are the property > of Chiaro Networks, Ltd., and may contain confidential and > privileged material for the sole use of the intended recipient(s) > to whom this e-mail is addressed. If you are not one of the named > recipient(s), or otherwise have reason to believe that you have > received this message in error, please notify the sender and > delete all copies from your system. Any other use, retention, > dissemination, forwarding, printing or copying of this e-mail is > strictly prohibited. > > > --------------------------------------------------------- > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jcarro10 at sprintspectrum.com Mon Feb 3 19:24:52 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Mon, 3 Feb 2003 12:24:52 -0600 Subject: Notifications question Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E13FA@PKDWB03C.ad.sprint.com> Try posting relevant snippets of your config files to illustrate your problem. jc > -----Original Message----- > From: Marek Dohojda [mailto:marek.dohojda at linksys.com] > Sent: Friday, January 31, 2003 6:22 PM > To: 'nagios-users at lists.sourceforge.net' > Subject: [Nagios-users] Notifications question > > > Hello everyone > > First of all, I am terribly sorry if this has been asked > before. I looked > through the archive and couldn't find the answer I was > looking for. I of > course read the TFM and read the FAQ. Which is not to say I > am not just > deaf/blind/stupid (hey it's Friday). > > That said. > > Nagios works great for me for everything except for one > detail. It seems to > only want to notified based on the hostgroup and not services or even > escelations. > > That is to say if a server is a member of a hostgroup, but I > am calling a > service to another contactgroup. The only people who get the > notifications > are the people who belong to the hostgroup definition.... I > can't seem to > make service contact get anything. > > Hope I am clear. > > Thank you all! > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From GPotter at MarathonOil.com Mon Feb 3 18:38:16 2003 From: GPotter at MarathonOil.com (Potter, G M (Greg)) Date: Mon, 3 Feb 2003 11:38:16 -0600 Subject: Images - cgi.cfg - nothing shows up Message-ID: I don't think the image *has* to be gd2. I am using png images and they work fine. I think the issue is how often will you be using the status map and can you afford the cpu cycles to generate the image on the fly. If the images appear in correct in your other places where they are called directly from the html there is probably an issue with Nagios generating the status map image and incorporating your images into it. Look in your http error log and see if you get a message about statusmap.cgi exiting pre-maturely. If this is the case you probably have some configuration issues about the order/location of libpng, libjpeg and gd. Greg -----Original Message----- From: Bas van der Veen [mailto:bas.vanderveen at kahuna.nl] Sent: Monday, February 03, 2003 9:52 AM To: Brendon Caligari; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Images - cgi.cfg - nothing shows up Hi, See http://nagios.sourceforge.net/docs/1_0/xeddefault.html The name of a GD2 format image that should be associated with this host. This image will be used in the image created by the statusmap CGI. GD2 images can be created from PNG images by using the pngtogd2 utility supplied with Thomas Boutell's gd library. The GD2 images should be created in uncompressed format in order to minimize CPU load when the statusmap CGI is generating the network map image. The image will look best if it is 40x40 pixels in size. You can leave these option blank if you are not using the statusmap CGI. Images for hosts are assumed to be in the logos/ subdirectory in your HTML images directory (i.e. /usr/local/nagios/share/images/logos). Looks like the image *has* to be converted to gd2 format... Bas -----Original Message----- From: Brendon Caligari [mailto:brendon at iwg.info] Sent: maandag 3 februari 2003 14:37 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Images - cgi.cfg - nothing shows up In /usr/local/nagios/etc/cgi.cfg I added lines like: hostextinfo[uranus]=;redhat.jpg;redhat.jpg;;RedHat 7.3;;; ..in the hope that the status map would show my images instead of the ? The files have been placed in /usr/local/nagios/share/images/logos The access rights are correct, and if I http to: http://......./nagios/images/logos/redhat.jpg I can see the image The defaul t'?' shows up in the status map, and no errors crop up anywhere (stopped/started nagios, checked all log files, etc). Tks to all Brendon ****************************************************************** This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. ****************************************************************** http://www.kahuna.nl ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jcarro10 at sprintspectrum.com Mon Feb 3 19:52:41 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Mon, 3 Feb 2003 12:52:41 -0600 Subject: maximum site size Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E13FF@PKDWB03C.ad.sprint.com> We're currently at 126 hosts, 1194 services. Plans to add another ~50 hosts and about 5-10 services/host. Other than that, you may have to try adding hosts/services in chunks and charting the impact to performance. Typical o/s tuning stuff. jc > -----Original Message----- > From: Lou Anschuetz [mailto:lou at ece.cmu.edu] > Sent: Monday, February 03, 2003 6:47 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] maximum site size > > > A general word of appreciation first. I'm running this from > a Sun and testing many different functions and all work well. > Nice job! > > Two quick questions: > > 1) My site will eventually be up to about 1100 hosts using various > plugin tests. Is anyone else running anything near to that size? > If so, what is the cycle run time? Some of my system administrators > believe it will fall over and/or take days. I'm not convinced > that this is the case :) > > 2) On several of the services I have full notification enabled > on both mail and epager. The contacts get paged on outages and > e-mail on recoveries (not both on both as configured). I'm > open to theories as to what my error is. > > Lou Anschuetz, lou at ece.cmu.edu > Network Manager, ECE Department, CMU > 412-512-6052 > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From CERice at MarathonOil.com Mon Feb 3 20:34:22 2003 From: CERice at MarathonOil.com (Rice, Clifford E.) Date: Mon, 3 Feb 2003 13:34:22 -0600 Subject: FW: Correct Syntax for check_flexlm (fwd) Message-ID: > -----Original Message----- > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > Sent: Monday, February 03, 2003 10:48 AM > To: Rice, Clifford E. > Cc: 'Subhendu Ghosh'; 'nagios-users at lists.sourceforge.net' > Subject: RE: FW: [Nagios-users] Correct Syntax for check_flexlm (fwd) >Cliff, Subhendu > I installed and configured the check_flexlm script that you had sent. Thanks by > the way. > The error message I am encountering is Return Code of 99 is out of bounds. > Any ideas? Gives these things a try. 1. run the lmstat as defined in your utils.pm file or check_flexlm and see what the output is. 2. It should match the output which I had in some of the comments in the code I submitted. 3. Feel free to send a copy of the license file to me, you can delete everything except the SERVER, DAEMON, and 1 or 2 features. I don't need to know everything you are running if that is a problem. 4. The platform and perl version may be of some help as well. I have perl -version : 5.005_03 built for Sun Solaris. Solaris OS version is 2.8 > Cliff > The logic is the same from the script that you submitted. I moved a > couple of vars around, updated for ePN, and got the setting for lmstat > from the initial configure process. Also the oputput now prints the list > of servers up and down. You are correct. I just didn't look far enough past the comments. It appears I'm also out of sync wrt the version. I had to hack my utils.pm to get the version you have to work. So which version should I use to get with the program? (I can convert the backup Nagios server to the new release and test from there. ) After hacking my utils.pm, I get the output of License Servers running: houuam,houual,houuan" |flexlm:up:3down:0 when I run the script by hand. I assume this is valid. The hack was to add a line: $PATH_TO_LMSTAT = "/usr/local/flexlm/daemons/lmstat" ; after the line $TIMEOUT = 15; > Going over the script reminded me that it doesn't check for vendor daemon > status, just flexlm. Perhaps we can tackle this after 1.3 is released. I agree, flexlm can be running , while the vendor daemons are dead. This has happened. At least at Marathon, we could be more proactive in keeping our software going. ---Cliff ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jcarro10 at sprintspectrum.com Mon Feb 3 19:57:06 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Mon, 3 Feb 2003 12:57:06 -0600 Subject: NRPE vs. check_by_ssh vs. nagios_statd Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1400@PKDWB03C.ad.sprint.com> Unfortunately, I don't have the info you're looking for. In the event that noone else gives you a reply, you might want to pick one solution and roll with it. If you find you're having performance problems, you'll either have to live with it, or change your design. This falls under "Performance Tuning 101", I'm afraid to say. jc -----Original Message----- From: Marian Zurek [mailto:Marian.ZUREK at cern.ch] Sent: Monday, February 03, 2003 2:29 AM To: Carroll, Jim P [Contractor] Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] NRPE vs. check_by_ssh vs. nagios_statd Hi, Thanks for you reply. As the first approach I applied the 'check_by_ssh' solution for couple of machines. I have here around 100 PC and plan to perform two remote checks on each of them. Could you tell me at which point I might hit the wall/scalability problem ? My future plans will be most probably SNMP based, but I am a bit hesitant if it is really needed with this number of host/services ?? Thnaks in advance for your comments. Regards, Marian Carroll, Jim P [Contractor] wrote: A common question, one which burned in my mind when I came to that crossroads, and perhaps one which should be added to the FAQ. I'll throw my $0.02 in, but YMMV, and I'm sure you'll get some variance in opinions. - check_by_ssh -- great for punching through firewalls where port 22 is already open (saves you having to punch more holes); doesn't scale well, because of the crypto computations - NRPE -- it's what I'm using; many aren't thrilled with having to manage multiple nrpe.cfg files across every client; I've managed to make do - nrpep -- not terribly familiar with it; basically a variation on the NRPE theme, I believe, except in Perl - nagios_statd -- for starters, you'd have to install Python on ever client you wish to install this on; I also seem to recall reading a post to the list where someone was having problems expanding on the functionality - check_snmp -- this is something I've been pondering for a while, and would like to try; someone posted very recently that it's quite lightweight; you'll need the SNMP binaries installed on the Nagios host as well as every client; not sure, but I'm guessing that the lion's share of the SNMP effort is peeling back the layers to find exactly what things you can monitor - NSCA -- this is the passive approach, meaning the client will need to contact the server; I pondered this as an option, but nobody could tell me how well it scales, or whether it would suffice as a replacement for the active checks that NRPE gives me In summary, I'm using NRPE, and am considering adding/switching to check_snmp. HTH. jc -----Original Message----- From: Marian Zurek [ mailto:Marian.ZUREK at cern.ch ] Sent: Tuesday, January 14, 2003 10:35 AM To: nagios-users at lists.sourceforge.net Cc: Marian.ZUREK at cern.ch Subject: [Nagios-users] NRPE vs. check_by_ssh vs. nagios_statd Hi all, I started to use the NAGIOS and came to the question which facility out of : - check_by_ssh - NRPE - nrpep - nagios_statd - ??? should choose the for the remote checks (disk space, free memory, etc.). I plan also to perform the SNMP based queries in the future also. As I am quite new in the "business" I will be grateful for sharing your experience. Regards, Marian ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From nickbernstein at sbcglobal.net Mon Feb 3 21:29:59 2003 From: nickbernstein at sbcglobal.net (Nicholas P. Bernstein) Date: Mon, 3 Feb 2003 12:29:59 -0800 Subject: HTML Message-ID: <3F1AB17F38AFD31190840060975EC2DB01A79EB2@officesrv.docmagic.com> I hate to be a bother, and I don't want to direct this at anyone specifically, but I've noticed a lot of emails in HTML. If I am the only one who is bothered by this, then I will retract this objection and we can go on happily. However - and I know many may think this dated - I personally find html emails bothersome. To me, they are large, unnecessary, and do not work on all mail-clients. Also, it is tradition not to use html on internet mailing lists & usenet and is considered bad form by many. Thanks for listening to me gripe, Nick -- +---------------------------------------------------------------+ | Nicholas Bernstein | nick at docmagic.com | | UNIX Systems Administrator | nickbernstein at sbcglobal.net | | Document Systems Inc. | nickbernstein at inbox.lv | +---------------------------------------------------------------+ ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Daniel_Casey at jbhunt.com Mon Feb 3 22:46:22 2003 From: Daniel_Casey at jbhunt.com (Daniel_Casey at jbhunt.com) Date: Mon, 3 Feb 2003 15:46:22 -0600 Subject: HTML Message-ID: Does this e-mail look like HTML? Just wondering, it might be your e-mail client (this e-mail should be plain text). I don't recall too many messages on the list that looked like it was formatted HTML, but I've been lurking more lately, so I could have missed some. |---------+----------------------------------------> | | "Nicholas P. Bernstein" | | | | | | Sent by: | | | nagios-users-admin at lists.sour| | | ceforge.net | | | | | | | | | 02/03/2003 14:29 | | | | |---------+----------------------------------------> >----------------------------------------------------------------------------------------------------------------------------------------------| | | | To: | | cc: | | Subject: [Nagios-users] HTML | >----------------------------------------------------------------------------------------------------------------------------------------------| I hate to be a bother, and I don't want to direct this at anyone specifically, but I've noticed a lot of emails in HTML. If I am the only one who is bothered by this, then I will retract this objection and we can go on happily. However - and I know many may think this dated - I personally find html emails bothersome. To me, they are large, unnecessary, and do not work on all mail-clients. Also, it is tradition not to use html on internet mailing lists & usenet and is considered bad form by many. Thanks for listening to me gripe, Nick -- +---------------------------------------------------------------+ | Nicholas Bernstein | nick at docmagic.com | | UNIX Systems Administrator | nickbernstein at sbcglobal.net | | Document Systems Inc. | nickbernstein at inbox.lv | +---------------------------------------------------------------+ ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sghosh at sghosh.org Mon Feb 3 21:48:09 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Mon, 03 Feb 2003 15:48:09 -0500 (EST) Subject: FW: Correct Syntax for check_flexlm (fwd) In-Reply-To: References: Message-ID: On Mon, 3 Feb 2003, Rice, Clifford E. wrote: > > > You are correct. I just didn't look far enough past the comments. It appears I'm > also out of sync wrt the version. I had to hack my utils.pm to get the version you > have to work. So which version should I use to get with the program? > (I can convert the backup Nagios server to the new release and test from there. ) > > After hacking my utils.pm, I get the output of License Servers running: houuam,houual,houuan" > |flexlm:up:3down:0 Correct output - everything on the second line is for perfdata. > > when I run the script by hand. I assume this is valid. > > The hack was to add a line: $PATH_TO_LMSTAT = "/usr/local/flexlm/daemons/lmstat" ; > after the line $TIMEOUT = 15; thats's all that's needed. A CVS sync will get you the lated utils.pm > > > > > Going over the script reminded me that it doesn't check for vendor daemon > > status, just flexlm. Perhaps we can tackle this after 1.3 is released. > > > I agree, flexlm can be running , while the vendor daemons are dead. This has happened. > At least at Marathon, we could be more proactive in keeping our software going. > Same here - had one of servers was missing a couple of vendor daemons... -- -sg ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From justin at pvamu.edu Mon Feb 3 23:04:43 2003 From: justin at pvamu.edu (Justin) Date: Mon, 3 Feb 2003 16:04:43 -0600 Subject: NSClient Message-ID: <004e01c2cbd0$62dad5a0$0e38cf81@Buttafuoco> My NT admins are saying they are getting this in their application log The description for Event ID ( 2 ) in Source ( NSClient ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. The following information is part of the event: NSClient Error: PDH.dll Add \Processor(_Total)\%Processor Time - ERROR: 0xC0000BB9. There is about 100 or so of these alerts. Has anyone else experienced these problems? Justin Wedeking Info Tech -------------- next part -------------- An HTML attachment was scrubbed... URL: From skertzman at servervault.com Mon Feb 3 23:35:49 2003 From: skertzman at servervault.com (Kertzman, Sam) Date: Mon, 3 Feb 2003 17:35:49 -0500 Subject: HTML Message-ID: <841A2A811DB61840BA6423C08B5735D3802CD7@dulles1.ops.servervault.com> > I hate to be a bother, and I don't want to direct this at anyone > specifically, but I've noticed a lot of emails in HTML. If I am the only one > who is bothered by this, then I will retract this objection and we can go on > happily. However - and I know many may think this dated - I personally find > html emails bothersome. To me, they are large, unnecessary, and do not work > on all mail-clients. Also, it is tradition not to use html on internet > mailing lists & usenet and is considered bad form by many. > > Thanks for listening to me gripe, > Nick You are not the only objection. Sam Kertzman, Engineer ServerVault, Corp. Phone: 703-652-5984 kertzman at servervault.com ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From rplewe at hpce.nec.com Mon Feb 3 23:44:08 2003 From: rplewe at hpce.nec.com (Rasmus Plewe) Date: Mon, 3 Feb 2003 23:44:08 +0100 Subject: HTML In-Reply-To: ; from Daniel_Casey@jbhunt.com on Mon, Feb 03, 2003 at 03:46:22PM -0600 References: Message-ID: <20030203234408.D1586@hpce.nec.com> On Mon, Feb 03, 2003 at 03:46:22PM -0600, Daniel_Casey at jbhunt.com wrote: > > Does this e-mail look like HTML? Just wondering, it might be your e-mail > client (this e-mail should be plain text). It is. > I don't recall too many > messages on the list that looked like it was formatted HTML, but I've been > lurking more lately, so I could have missed some. I do recall. I could add my year-long obwervation about the correlation of HTML mail/news posting and the... competence of the poster. But that would be starting a flame war, and there are a lot of exceptions to both sides. Now to something completely different: > |---------+----------------------------------------> > | | "Nicholas P. Bernstein" | > | | | > | | Sent by: | [...] I'm the first to acknowledge good ASCII art. Yours is not. Now back to Nagios. Please? Preferably in plain text... Rasmus -- In the beginning was The Word and The Word was Content-type: text/plain ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From r1p6os402 at sneakemail.com Mon Feb 3 23:48:48 2003 From: r1p6os402 at sneakemail.com (Steve Bonds) Date: Mon, 3 Feb 2003 14:48:48 -0800 (PST) Subject: HTML In-Reply-To: <3F1AB17F38AFD31190840060975EC2DB01A79EB2@officesrv.docmagic.com> References: <3F1AB17F38AFD31190840060975EC2DB01A79EB2@officesrv.docmagic.com> Message-ID: <18117-06057@sneakemail.com> On Mon, 3 Feb 2003, Nicholas P. Bernstein nickbernstein-at-sbcglobal.net |Nagios| wrote: > Also, it is tradition not to use html on internet mailing lists & > usenet and is considered bad form by many. I've found that SpamAssassin with the scoring on CTYPE_JUST_HTML set properly goes a long way towards rendering these mails invisible to me. I agree that plain-text mail is the de facto standard for mailing lists, but the folks most likely to use HTML mail are those least likely to read FAQs before posting, anyhow. ;-) -- Steve ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Daniel_Casey at jbhunt.com Mon Feb 3 23:54:16 2003 From: Daniel_Casey at jbhunt.com (Daniel_Casey at jbhunt.com) Date: Mon, 3 Feb 2003 16:54:16 -0600 Subject: HTML Message-ID: My apologies. It may be that my client is stripping all the HTML goop out? Heh, I like your theory on the possible correlation to the HTML'ized postings and content of e-mail messages. ....back to lurk mode.... ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Jarett_DeAngelis at fujifilm.com Mon Feb 3 23:59:49 2003 From: Jarett_DeAngelis at fujifilm.com (Jarett DeAngelis) Date: Mon, 03 Feb 2003 17:59:49 -0500 Subject: "No lock file found" and SIGSEGV Message-ID: chown and chgrped it, then chmod 770ed it. None of this helped. Any other hints? :-/ >>> "Olivier F. Beauchemin (Budget-Tech IT Consulting)" 02/02/03 06:35PM >>> Can Nagios write to the VAR directory? This lock file is a file that Nagios creates... so it needs to be able to write to that dir, and there should be no manually created file called nagios.lock (which is something that folks seem to think they need to do). Olivier ----- Original Message ----- From: "Jarett DeAngelis" To: Sent: Sunday, February 02, 2003 5:21 PM Subject: RE: [Nagios-users] "No lock file found" and SIGSEGV Yes I do. And which privs? >>> "Olivier Beauchemin" 02/02/03 05:20PM >>> Just thought of this... do you have that path? and are the privs correct? Olivier ---------- Original Message ---------------------------------- From: "Jarett DeAngelis" Date: Sun, 02 Feb 2003 16:15:04 -0500 >Nagios 1.0 starting... (PID=1467) >Finished daemonizing... (New PID=1468) >Caught SIGSEGV, shutting down... > >That's all I get from the log. On the console it just says "no lock file found in /usr/local/nagios/var/nagios.lock" and then quits. > >Any ideas? This is a VERY simple configuration I've got going here, just three hosts and one check_ping on each. Just about everything is commented out. > >Help? > > > > >------------------------------------------------------- >This SF.NET email is sponsored by: >SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >http://www.vasoftware.com >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Stanley.Hopcroft at IPAustralia.Gov.AU Tue Feb 4 00:23:27 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Tue, 4 Feb 2003 10:23:27 +1100 Subject: HTML In-Reply-To: <3F1AB17F38AFD31190840060975EC2DB01A79EB2@officesrv.docmagic.com>; from nickbernstein@sbcglobal.net on Mon, Feb 03, 2003 at 12:29:59PM -0800 References: <3F1AB17F38AFD31190840060975EC2DB01A79EB2@officesrv.docmagic.com> Message-ID: <20030204102320.A74247@IPAustralia.Gov.AU> Dear Sir, I am writing to say that a long established Usenet tradition is that mail that is hard to read (in the mind of the reader, not the writer) is far less likely to get a helpful reply. On Mon, Feb 03, 2003 at 12:29:59PM -0800, Nicholas P. Bernstein wrote: > I hate to be a bother, and I don't want to direct this at anyone > specifically, but I've noticed a lot of emails in HTML. If I am the only one > who is bothered by this, then I will retract this objection and we can go on > happily. However - and I know many may think this dated - I personally find > html emails bothersome. To me, they are large, unnecessary, and do not work > on all mail-clients. Also, it is tradition not to use html on internet > mailing lists & usenet and is considered bad form by many. > > Thanks for listening to me gripe, HTML mail gets deleted instantly. Mail that is hard to read because the . lines are too long . paragraphs are too long is unlikely to get replied to. > Nick > Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jcarro10 at sprintspectrum.com Mon Feb 3 23:52:32 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Mon, 3 Feb 2003 16:52:32 -0600 Subject: NSClient Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1414@PKDWB03C.ad.sprint.com> What version of NSClient are you running? If you're not running 1.0.7.1, please upgrade: http://nsclient.ready2run.nl/download/Distrib-1.07.1.zip jc -----Original Message----- From: Justin [mailto:justin at pvamu.edu] Sent: Monday, February 03, 2003 4:05 PM To: Nagios Users Subject: [Nagios-users] NSClient My NT admins are saying they are getting this in their application log The description for Event ID ( 2 ) in Source ( NSClient ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. The following information is part of the event: NSClient Error: PDH.dll Add \Processor(_Total)\%Processor Time - ERROR: 0xC0000BB9. There is about 100 or so of these alerts. Has anyone else experienced these problems? Justin Wedeking Info Tech -------------- next part -------------- An HTML attachment was scrubbed... URL: From nickbernstein at sbcglobal.net Tue Feb 4 01:14:34 2003 From: nickbernstein at sbcglobal.net (Nicholas P. Bernstein) Date: Mon, 3 Feb 2003 16:14:34 -0800 Subject: NSClient In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB014E1414@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB014E1414@PKDWB03C.ad.sprint.com> Message-ID: <3F1AB17F38AFD31190840060975EC2DB01A79EB4@officesrv.docmagic.com> LOL -----Original Message----- From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] Sent: Monday, February 03, 2003 2:53 PM To: 'Justin'; Nagios Users Subject: RE: [Nagios-users] NSClient What version of NSClient are you running? If you're not running 1.0.7.1, please upgrade: http://nsclient.ready2run.nl/download/Distrib-1.07.1.zip jc -----Original Message----- From: Justin [mailto:justin at pvamu.edu] Sent: Monday, February 03, 2003 4:05 PM To: Nagios Users Subject: [Nagios-users] NSClient My NT admins are saying they are getting this in their application log The description for Event ID ( 2 ) in Source ( NSClient ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. The following information is part of the event: NSClient Error: PDH.dll Add \Processor(_Total)\%Processor Time - ERROR: 0xC0000BB9. There is about 100 or so of these alerts. Has anyone else experienced these problems? Justin Wedeking Info Tech -------------- next part -------------- An HTML attachment was scrubbed... URL: From koreth-nagios at midwinter.com Tue Feb 4 01:28:18 2003 From: koreth-nagios at midwinter.com (Steven Grimm) Date: Mon, 3 Feb 2003 16:28:18 -0800 Subject: NRPE vs. check_by_ssh vs. nagios_statd In-Reply-To: <3E3E2862.7050007@cern.ch>; from Marian.ZUREK@cern.ch on Mon, Feb 03, 2003 at 09:29:22AM +0100 References: <74D428BDBFD5D04CB54E84499ECA29DB2F24F9@PKDWB03C.ad.sprint.com> <3E3E2862.7050007@cern.ch> Message-ID: <20030203162818.C17473@cadge.midwinter.com> If you want to check multiple services on remote hosts using ssh, you might want to look at my batch_by_ssh script, which will check all of a remote host's services with one ssh command (rather than one ssh per remote service) which should reduce your scaling woes. It's still not as cheap as NRPE, but especially if you have several services per host on a ton of remote hosts, it'll cut way down on ssh overhead. It also lets you centrally manage the commands that are run on remote hosts, rather than doing it on config files on those hosts as with NRPE; whether that's a plus or a drawback is a matter of taste. http://www.midwinter.com/~koreth/nagios/batch_by_ssh There's extensive documentation (by Nagios plugin standards, anyway) at the top of the script. If you use it you'll want to make sure you've applied the following check_by_ssh buffer overflow patch: https://sourceforge.net/tracker/index.php?func=detail&aid=673863&group_id=29880&atid=397599 -Steve On Mon, Feb 03, 2003 at 09:29:22AM +0100, Marian Zurek wrote: > Hi, > > Thanks for you reply. As the first approach I applied the 'check_by_ssh' > solution for couple of machines. > I have here around 100 PC and plan to perform two remote checks on each of > them. Could you tell me at which point I might > hit the wall/scalability problem ? > My future plans will be most probably SNMP based, but I am a bit hesitant > if it is really needed with this number of host/services ?? > > Thnaks in advance for your comments. > > Regards, > Marian ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jcarro10 at sprintspectrum.com Tue Feb 4 01:35:51 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Mon, 3 Feb 2003 18:35:51 -0600 Subject: "No lock file found" and SIGSEGV Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1417@PKDWB03C.ad.sprint.com> I can't help but wonder if you have the Perl support (ePN) compiled into Nagios. If you did, then go back and recompile *without* Perl support. There's currently a known issue with ePN/Perl 5.8.0. jc > -----Original Message----- > From: Jarett DeAngelis [mailto:Jarett_DeAngelis at fujifilm.com] > Sent: Monday, February 03, 2003 5:00 PM > To: ofb at budget-tech.com > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] "No lock file found" and SIGSEGV > > > chown and chgrped it, then chmod 770ed it. None of this helped. > > Any other hints? :-/ > > >>> "Olivier F. Beauchemin (Budget-Tech IT Consulting)" > 02/02/03 06:35PM >>> > Can Nagios write to the VAR directory? This lock file is a > file that Nagios > creates... so it needs to be able to write to that dir, and > there should be > no manually created file called nagios.lock (which is > something that folks > seem to think they need to do). > > Olivier > > ----- Original Message ----- > From: "Jarett DeAngelis" > To: > Sent: Sunday, February 02, 2003 5:21 PM > Subject: RE: [Nagios-users] "No lock file found" and SIGSEGV > > > Yes I do. And which privs? > > >>> "Olivier Beauchemin" 02/02/03 > 05:20PM >>> > > Just thought of this... do you have that path? and are the > privs correct? > > Olivier > > ---------- Original Message ---------------------------------- > From: "Jarett DeAngelis" > Date: Sun, 02 Feb 2003 16:15:04 -0500 > > >Nagios 1.0 starting... (PID=1467) > >Finished daemonizing... (New PID=1468) > >Caught SIGSEGV, shutting down... > > > >That's all I get from the log. On the console it just says > "no lock file > found in /usr/local/nagios/var/nagios.lock" and then quits. > > > >Any ideas? This is a VERY simple configuration I've got > going here, just > three hosts and one check_ping on each. Just about > everything is commented > out. > > > >Help? > > > > > > > > > >------------------------------------------------------- > >This SF.NET email is sponsored by: > >SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > >http://www.vasoftware.com > >_______________________________________________ > >Nagios-users mailing list > >Nagios-users at lists.sourceforge.net > >https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > > > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jcarro10 at sprintspectrum.com Tue Feb 4 01:53:36 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Mon, 3 Feb 2003 18:53:36 -0600 Subject: HTML Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F2541@PKDWB03C.ad.sprint.com> I think I may have been one of the HTML offenders. I'd set my Outlook default to RichText when I first started here; that has now been remedied. Stanley Hopcroft wrote: > I am writing to say that a long established Usenet tradition is that > mail that is hard to read (in the mind of the reader, not the > writer) is > far less likely to get a helpful reply. [snip] > Mail that is hard to read because the > > . lines are too long > > . paragraphs are too long > > is unlikely to get replied to. Please add to my list: - poor/missing punctuation - gross neglect of appropriate capitalization - CAPS LOCK - syntactic/semantic misconduct - use of silly abbreviations, e.g., "u r gr8" to replace "you are great" - anything that can be described as "this hurts my eyes" Insert other ObRant items here. jc ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From twelsh at square-box.com Tue Feb 4 02:21:52 2003 From: twelsh at square-box.com (Tom Welsh) Date: Tue, 4 Feb 2003 01:21:52 -0000 Subject: maximum site size In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB014E13FF@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB014E13FF@PKDWB03C.ad.sprint.com> Message-ID: <002001c2cbeb$cc2dc560$0400a8c0@squarebox.com> Alternatively you could look at http://www.nagios.org/userprofiles/browse.php?current_page=1 on the nagios website at peoples profiles and size of organisations. This may help as well -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Carroll, Jim P [Contractor] Sent: 03 February 2003 18:53 To: 'Lou Anschuetz'; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] maximum site size We're currently at 126 hosts, 1194 services. Plans to add another ~50 hosts and about 5-10 services/host. Other than that, you may have to try adding hosts/services in chunks and charting the impact to performance. Typical o/s tuning stuff. jc > -----Original Message----- > From: Lou Anschuetz [mailto:lou at ece.cmu.edu] > Sent: Monday, February 03, 2003 6:47 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] maximum site size > > > A general word of appreciation first. I'm running this from > a Sun and testing many different functions and all work well. > Nice job! > > Two quick questions: > > 1) My site will eventually be up to about 1100 hosts using various > plugin tests. Is anyone else running anything near to that size? > If so, what is the cycle run time? Some of my system administrators > believe it will fall over and/or take days. I'm not convinced > that this is the case :) > > 2) On several of the services I have full notification enabled > on both mail and epager. The contacts get paged on outages and > e-mail on recoveries (not both on both as configured). I'm > open to theories as to what my error is. > > Lou Anschuetz, lou at ece.cmu.edu > Network Manager, ECE Department, CMU > 412-512-6052 > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jamie at bclnz.net Tue Feb 4 03:22:38 2003 From: jamie at bclnz.net (Jamie) Date: Tue, 4 Feb 2003 15:22:38 +1300 Subject: Status Map "memory" References: <002001c2cbeb$cc2dc560$0400a8c0@squarebox.com> Message-ID: <002201c2cbf4$4a6643f0$b58031ca@bcl977307> Hi, I've been making changes to my network configuration (removing hosts, adding hosts, changing parent hosts etc), and it seems that the Status Map image has a memory of what used to go where. Now I'm left with a yawning gap between what it still in place. This gap used to be filled by the hosts I've removed. Any ideas on how to clear the "memory" of the image generator? Jamie ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jason at cannonfodder.org Tue Feb 4 04:51:41 2003 From: jason at cannonfodder.org (Jason Burnett) Date: Mon, 3 Feb 2003 21:51:41 -0600 Subject: host - a service Message-ID: <20030204035141.GA31963@cannonfodder.org> is there any way to tell a host to ignore one of the tests assigned to it's hostgroup? example: define hostgroup{ hostgroup_name neospire-virtuals-apache alias Neospire Apache & Zeus webservers contact_groups admins members one,two,linux1 } define service{ hostgroup_name neo-vs-web-apache service_description SSH } define host{ #server only runs telnet host_name linux1 .... check_command **IGNORE SSH** } What I am looking for is an easy way to standardize tests across groups, but as always there are exceptions and I need to be able to tell a certain host to ignore certain tests inherited from it's group. oh and before anyone starts chastising me, I dont actually run telnet on any of my servers. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From christian at dnet.net.id Tue Feb 4 05:12:41 2003 From: christian at dnet.net.id (Chris) Date: Tue, 4 Feb 2003 11:12:41 +0700 Subject: NRPE on remote host Message-ID: <200302041112.41754.christian@dnet.net.id> Hi, i use nrpe to check services in my servers, and in one them returns : CHECK_NRPE: Received 0 bytes. Are we allowed to connect to the host? i run nrpe under xinetd on the remote host, the configurations look fine, and when i check /var/log/messages, it looks like this : xinetd[18126]: service nrpe, accept: Too many open files (errno = 24) anyone know how i fix this? thanks, Chris ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From xmatous1 at atlas.cz Tue Feb 4 08:28:04 2003 From: xmatous1 at atlas.cz (Zbynek Matousek) Date: Tue, 04 Feb 2003 08:28:04 +0100 Subject: passive checks Message-ID: >-----Original Message----- >From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] >Sent: Monday, February 03, 2003 7:04 PM >- make a list of the operating systems on the client hosts (eg, Red Hat >7.3, >Solaris8) I have HP unix (HP server 7400) >- on another host which has the same architecture, compile NRPE A have not another host - I have only one server - if someone is posible to compile the NRPE I'll be happy, I'm not have root on the server that why I cant install there gcc. >Is this a possibility? That not possible, but I can use NJS (java is on the server) but I dont understand how to configure NJS. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From tdeblend at gcc.dhl.com Tue Feb 4 09:03:38 2003 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Tue, 04 Feb 2003 09:03:38 +0100 Subject: vICQ command line notifications Message-ID: <3E3F73DA.7F22F894@gcc.dhl.com> Hi, In the light of the alternative notifications thread, I had a look at vICQ (the old @pager.icq.com doesn't seem to work anymore). While I can send ICQ messages without problems when I'm in a shell, using that same syntax through Nagios doesn't work. It's not such a big deal, but maybe I'm overlooking something. Here's my config: # 'notify-by-icq' command definition define command{ command_name notify-by-icq command_line /bin/echo -e "msg $CONTACTPAGER$\n ***** Nagios 1.0 *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nServic e: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $DATETIME$\n\nAdditional Info:\n\n$ OUTPUT$ \n." | /usr/local/bin/vicq -o -b } When I redirect the output to a text file instead of vicq, it looks fine: [root at netsaint etc]# cat /tmp/vicq.log msg 123456 ***** Nagios 1.0 ***** Notification Type: PROBLEM Service: NetShield Host: SMS Server Address: 172.20.x.x State: CRITICAL Date/Time: Tue Feb 4 04:57:05 CET 2003 Additional Info: mcshield.exe: not running ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From lars at rockar.nu Tue Feb 4 10:03:44 2003 From: lars at rockar.nu (Lars Andersson) Date: Tue, 4 Feb 2003 10:03:44 +0100 (CET) Subject: sms_client notification problems. In-Reply-To: <3E3F73DA.7F22F894@gcc.dhl.com> References: <3E3F73DA.7F22F894@gcc.dhl.com> Message-ID: Hi, I'm running Nagios 1.0 and sms_client-2.0.8z on a machine running Debian. I'm having trouble getting Nagios to send sms messages with sms_client. I've tried to search the archives, the search function does not work My notification command: define command{ command_name notify-by-sms command_line /usr/bin/sms_client -l4 telia:0701111111 '$NOTIFICATIONTYPE$: $HOSTNAME$ IS $HOSTSTATE$' } This command works from the command line as the Nagios user. It invokes sms_client with debugging level four and sends me an sms. /usr/bin/sms_client -4 telia:07011111111 'test message' When Nagios executes the command notify-by-sms it just gives this lines in the smslog =================================================================== Feb 04 09:05:09 [32451] : Parsing Resource File '/etc/smsclient/sms_config' Feb 04 09:05:09 [32451] : Parsing '/etc/smsclient/sms_config' Found 'SMS_default_service', setting value to 'telia' Feb 04 09:05:09 [32451] : /etc/smsclient/sms_config SMS_default_service = telia Feb 04 09:05:09 [32451] : Parsing '/etc/smsclient/sms_config' Found 'SMS_lock_action', setting value to 'BLOCK' Feb 04 09:05:09 [32451] : /etc/smsclient/sms_config SMS_lock_action = BLOCK Feb 04 09:05:09 [32451] : /etc/smsclient/sms_config SMS_lock_retry_delay = 5000000 Feb 04 09:05:09 [32451] : Parsing '/etc/smsclient/sms_config' Found 'SMS_lockfile', setting value to '/var/lock/smslock' Feb 04 09:05:09 [32451] : /etc/smsclient/sms_config SMS_lockfile = /var/lock/smslock Feb 04 09:05:09 [32451] : Parsing '/etc/smsclient/sms_config' Could not find 'SMS_service_timeout', using default '300' Feb 04 09:05:09 [32451] : /etc/smsclient/sms_config SMS_service_timeout = 300 Have anyone else experienced this problem? Is there a problem in my command_line definition? It does not work even if I invoke a shell script that should send me a "test message" by sms. Any pointers is much appreciated. /Lars ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From tdeblend at gcc.dhl.com Tue Feb 4 10:40:20 2003 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Tue, 04 Feb 2003 10:40:20 +0100 Subject: sms_client notification problems. References: Message-ID: <3E3F8A84.526E2139@gcc.dhl.com> Been there, done that :-) Add the -q switch to run sms_client in quiet mode. Here is my config: # 'notify-by-epager' command definition define command{ command_name notify-by-epager command_line /usr/bin/sms_client -q $CONTACTPAGER$ "$NOTIFICATIONTYPE$: $HOSTADDRESS$ $HOSTALIAS$: $SERVICEDESC$ is $SERVICESTATE$" } Lars Andersson wrote: > > Hi, > > I'm running Nagios 1.0 and sms_client-2.0.8z on a machine running > Debian. I'm having trouble getting Nagios to send sms messages with > sms_client. > > I've tried to search the archives, the search function does not work > > My notification command: > > define command{ > command_name notify-by-sms > command_line /usr/bin/sms_client -l4 telia:0701111111 > '$NOTIFICATIONTYPE$: $HOSTNAME$ IS $HOSTSTATE$' > } > > This command works from the command line as the Nagios user. > It invokes sms_client with debugging level four and sends me an sms. > > /usr/bin/sms_client -4 telia:07011111111 'test message' > > When Nagios executes the command notify-by-sms it just gives this lines > in the smslog > > =================================================================== > Feb 04 09:05:09 [32451] : Parsing Resource File > '/etc/smsclient/sms_config' > Feb 04 09:05:09 [32451] : Parsing '/etc/smsclient/sms_config' Found > 'SMS_default_service', setting value to 'telia' > Feb 04 09:05:09 [32451] : /etc/smsclient/sms_config > SMS_default_service = telia > Feb 04 09:05:09 [32451] : Parsing '/etc/smsclient/sms_config' Found > 'SMS_lock_action', setting value to 'BLOCK' > Feb 04 09:05:09 [32451] : /etc/smsclient/sms_config SMS_lock_action > = BLOCK > Feb 04 09:05:09 [32451] : /etc/smsclient/sms_config > SMS_lock_retry_delay = 5000000 > Feb 04 09:05:09 [32451] : Parsing '/etc/smsclient/sms_config' Found > 'SMS_lockfile', setting value to '/var/lock/smslock' > Feb 04 09:05:09 [32451] : /etc/smsclient/sms_config SMS_lockfile = > /var/lock/smslock > Feb 04 09:05:09 [32451] : Parsing '/etc/smsclient/sms_config' Could > not find 'SMS_service_timeout', using default '300' > Feb 04 09:05:09 [32451] : /etc/smsclient/sms_config > SMS_service_timeout = 300 > > Have anyone else experienced this problem? Is there a problem in my > command_line definition? It does not work even if I invoke a shell > script that should send me a "test message" by sms. > > Any pointers is much appreciated. > > /Lars > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From floyd at atc.no Tue Feb 4 11:23:22 2003 From: floyd at atc.no (Andreas Lund) Date: Tue, 4 Feb 2003 11:23:22 +0100 Subject: check_ping nowhere to be found, what Plugin is this? Message-ID: <200302041023.h14ANMW08443@hercules.atc.no> An embedded and charset-unspecified text was scrubbed... Name: not available URL: From rplewe at hpce.nec.com Tue Feb 4 11:59:00 2003 From: rplewe at hpce.nec.com (Rasmus Plewe) Date: Tue, 4 Feb 2003 11:59:00 +0100 Subject: check_ping nowhere to be found, what Plugin is this? In-Reply-To: <200302041023.h14ANMW08443@hercules.atc.no>; from floyd@atc.no on Tue, Feb 04, 2003 at 11:23:22AM +0100 References: <200302041023.h14ANMW08443@hercules.atc.no> Message-ID: <20030204115900.E1426@hpce.nec.com> On Tue, Feb 04, 2003 at 11:23:22AM +0100, Andreas Lund wrote: > > Just downloaded, compiled, installed and configured Nagios, but none of the > check scripts mentioned in the template config files exist anywhere on my > system. Not even check_ping. > > Where can I find those scripts? http://sourceforge.net/projects/nagiosplug/ > Do I need a plugin to ping a host..? Yes. Rasmus ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From tdeblend at gcc.dhl.com Tue Feb 4 12:02:52 2003 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Tue, 04 Feb 2003 12:02:52 +0100 Subject: check_ping nowhere to be found, what Plugin is this? References: <200302041023.h14ANMW08443@hercules.atc.no> Message-ID: <3E3F9DDC.642F3FB2@gcc.dhl.com> four letters come to mind... http://nagios.sourceforge.net/docs/1_0/installing.html http://www.nagios.org/faqs/viewfaq.php?faq_id=37&expand=false&showdesc=true Andreas Lund wrote: > > Just downloaded, compiled, installed and configured Nagios, but none of the > check scripts mentioned in the template config files exist anywhere on my > system. Not even check_ping. > > Where can I find those scripts? Do I need a plugin to ping a host..? > > -- > Andreas Lund (floyd at atc.no) > Tel: +47 90.07.71.62 / +47 63.88.33.56 > Ano-Tech Computers (http://www.atc.no/) > ** You can get ANYWHERE in 10 minutes if you drive fast enough ** > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From floyd at atc.no Tue Feb 4 12:10:54 2003 From: floyd at atc.no (Andreas Lund) Date: Tue, 4 Feb 2003 12:10:54 +0100 Subject: check_ping nowhere to be found, what Plugin is this? Message-ID: <200302041110.h14BAsS11830@hercules.atc.no> An embedded and charset-unspecified text was scrubbed... Name: not available URL: From brendon at iwg.info Tue Feb 4 12:33:10 2003 From: brendon at iwg.info (Brendon Caligari) Date: Tue, 4 Feb 2003 12:33:10 +0100 Subject: Check_ping Message-ID: RH73 + 256mb ram + everything functional I installed nagios from source and nagios-plugins from rpm The plugins were placed as /usr/lib/nagios/plugins as owner root.root Nagios is running as sysadmin.sysadmin. How can check_ping (ICMP ECHO_REQUEST???) be working if it's neither ~SUID'ed nor running as root??? B. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From dcorbin at machturtle.com Tue Feb 4 12:56:19 2003 From: dcorbin at machturtle.com (David Corbin) Date: Tue, 04 Feb 2003 06:56:19 -0500 Subject: Web-command to reload config Message-ID: <3E3FAA63.6000703@machturtle.com> Is there a web-command to reload the configuration? I see one for restarting the Nagios process and shutting it down, but not reloading.... Thanks David ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From karl at debisschop.net Tue Feb 4 13:00:03 2003 From: karl at debisschop.net (Karl DeBisschop) Date: 04 Feb 2003 07:00:03 -0500 Subject: FW: Correct Syntax for check_flexlm (fwd) In-Reply-To: <5593DA408212D511B0910002A513501F01D288D6@phsexch20.mgh.harvard.edu> References: <5593DA408212D511B0910002A513501F01D288D6@phsexch20.mgh.harvard.edu> Message-ID: <1044360001.19831.1.camel@localhost.localdomain> On Mon, 2003-02-03 at 11:58, Kaplan, Andrew H. wrote: > Subhendu, > > What version of Flexlm is this script written for? The version that is currently > being used on the license server is 8.0. IIRC, only the version of lmstat really matters. I've used if with lmstat ranging from about 4 years ago to 4 months ago. I don't use it heavily, so things sould have slipped by. But I can testify that there is some level of functionality. -- Karl ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Craig.Emsley at document.co.uk Tue Feb 4 13:20:10 2003 From: Craig.Emsley at document.co.uk (Craig Emsley) Date: Tue, 4 Feb 2003 12:20:10 -0000 Subject: 3D WRL Message-ID: By using the OpenGLRenderer it appears to sort out the problem of green glow around the Icons. Craig -----Original Message----- From: Andrew Head [mailto:ahead at wacoisd.org] Sent: Monday, February 03, 2003 2:58 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] 3D WRL In the screenshots on the Nagios website, there is a picture where none of the 3D icons on the 3D Status Map are green. How does one make the green glow disappear from the map? Andrew Head Network Engineer Waco ISD ahead at wacoisd.org (254)755-9434 ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Fredrik.Wanglund at datavis.se Tue Feb 4 13:34:53 2003 From: Fredrik.Wanglund at datavis.se (=?iso-8859-1?Q?Fredrik_W=E4nglund?=) Date: Tue, 4 Feb 2003 13:34:53 +0100 Subject: Web-command to reload config Message-ID: <9EA0F1554816EB499A4B1136B80E8DE27804A8@storevis.datavis.se> It's necessary to restart nagios if you want to reload the config. /FredrikW -----Original Message----- From: David Corbin [mailto:dcorbin at machturtle.com] Sent: Tue 04-Feb-03 12:56 To: nagios-users at lists.sourceforge.net Cc: Subject: [Nagios-users] Web-command to reload config Is there a web-command to reload the configuration? I see one for restarting the Nagios process and shutting it down, but not reloading.... Thanks David ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From wojnicki at asw.waw.pl Tue Feb 4 13:48:06 2003 From: wojnicki at asw.waw.pl (Pawel Wojnicki) Date: Tue, 04 Feb 2003 13:48:06 +0100 Subject: permissions Message-ID: <5.1.1.2.0.20030204134412.027ba1e0@192.168.0.2> How can I gain access to the commands in the cgi's? Every time I try to issue a command i get this: Error: Could not open command file '/usr/local/nagios/var/rw/nagios.cmd' for update! The permissions on the external command file and/or directory may be incorrect. Read the FAQs on how to setup proper permissions. An error occurred while attempting to commit your command for processing. Don't these lines in the cgi.cfg take care of this (for all authenticated users)? authorized_for_all_service_commands=* authorized_for_all_host_commands=* Pawel ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From rplewe at hpce.nec.com Tue Feb 4 13:49:58 2003 From: rplewe at hpce.nec.com (Rasmus Plewe) Date: Tue, 4 Feb 2003 13:49:58 +0100 Subject: check_ping nowhere to be found, what Plugin is this? In-Reply-To: <200302041110.h14BAsS11830@hercules.atc.no>; from floyd@atc.no on Tue, Feb 04, 2003 at 12:10:54PM +0100 References: <200302041110.h14BAsS11830@hercules.atc.no> Message-ID: <20030204134958.F1426@hpce.nec.com> On Tue, Feb 04, 2003 at 12:10:54PM +0100, Andreas Lund wrote: > > Uhm? So this means check_ping is indeed part of a plugin or what? I have read > the fine manual several times over the past few hours if that's what you're > hinting at but I can't see that the docs mention that you need a plugin to > ping a host... :-/ > > If so, what plugin do I need? By default: check_ping, but you can of course use whichever one you like, by defining it accordingly in checkcommands.cfg. Rasmus ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From rplewe at hpce.nec.com Tue Feb 4 13:57:05 2003 From: rplewe at hpce.nec.com (Rasmus Plewe) Date: Tue, 4 Feb 2003 13:57:05 +0100 Subject: Check_ping In-Reply-To: ; from brendon@iwg.info on Tue, Feb 04, 2003 at 12:33:10PM +0100 References: Message-ID: <20030204135705.G1426@hpce.nec.com> On Tue, Feb 04, 2003 at 12:33:10PM +0100, Brendon Caligari wrote: > > The plugins were placed as /usr/lib/nagios/plugins as owner root.root > > Nagios is running as sysadmin.sysadmin. > > How can check_ping (ICMP ECHO_REQUEST???) be working if it's neither > ~SUID'ed nor running as root??? By sending ICMP packages. What exactly is your problem? Rasmus ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From tschiffer at avantgar.de Tue Feb 4 14:29:44 2003 From: tschiffer at avantgar.de (Torsten Schiffer) Date: Tue, 4 Feb 2003 14:29:44 +0100 Subject: Another notification problem? Message-ID: Hi there, my Nagios Servers is sending notifcation mails only for one (!!) host although the other hosts are configured completly the same: here some information from my hosts.cfg the server that works: # 'ava-nas-ne01' host definition define host{ host_name ava-nas-ne01 alias NAS 4400 MAX ATTACH Storage Device address 10.200.0.9 parents Back-Bone check_command check-host-alive max_check_attempts 5 notification_interval 10 notification_period 24x7 notification_options d,u,r } and here one of the servers that don't work: # 'ava-tm1-ne-01' host definition define host{ host_name ava-tm1-ne-01 alias TM1-Server address 10.200.0.19 parents Back-Bone check_command check-host-alive max_check_attempts 5 notification_interval 10 notification_period 24x7 notification_options d,u,r } the only message that i get is this: ***** Nagios Notification ***** Host NAS 4400 MAX ATTACH Storage Device is UP! Date/Time: Tue Feb 4 14:06:04 CET 2003 greetings Torsten -------------- next part -------------- An HTML attachment was scrubbed... URL: From Aleksey at loehmanns.com Tue Feb 4 14:57:16 2003 From: Aleksey at loehmanns.com (Aleksey Domorad) Date: Tue, 4 Feb 2003 08:57:16 -0500 Subject: Images - cgi.cfg - nothing shows up Message-ID: <87273DB23407D511B8900008C7FA923301405D6F@EXCHANGE> Thank to all Everything is fine now Apparently cgi.cfg file included in rpm package is misleading. Regards -----Original Message----- From: John McDonnell [mailto:johnmc at johnmc.org] Sent: Monday, February 03, 2003 1:22 PM To: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Images - cgi.cfg - nothing shows up On the 3rd day of February, Aleksey Domorad said to me: > I have following entry in cgi.cfg > > hostextinfo[STS]=;aix.png;aix.png;aix.gd2;AIX STS Server;;; >From the FAQ[1] specifically about using cgi.cfg for extended info: Note that although this is call the "default" method for historical reasons, the CGIs default to using the template-based method (described below) unless you specifically compile them with this method. Look here instead: http://nagios.sourceforge.net/docs/1_0/xedtemplate.html I've done this and it works well, apart from the fact that I can't get any of my transparent .gd2 images to show up :( The ones supplied on the Nagios site show up just fine, my custom ones won't. I've tried generating them with several versions of the GD lib but to no avail. [1] http://nagios.sourceforge.net/docs/1_0/configextinfo.html johnmc. -- . johnmc@ | bucketchild.net - +1-408-985-7992 (home) . . http:// | johnmc.org - +1-408-386-3549 (cell) . -- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Aleksey at loehmanns.com Tue Feb 4 14:59:11 2003 From: Aleksey at loehmanns.com (Aleksey Domorad) Date: Tue, 4 Feb 2003 08:59:11 -0500 Subject: Web-command to reload config Message-ID: <87273DB23407D511B8900008C7FA923301405D70@EXCHANGE> Reload Config == stop + start IMHO -----Original Message----- From: David Corbin [mailto:dcorbin at machturtle.com] Sent: Tuesday, February 04, 2003 6:56 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Web-command to reload config Is there a web-command to reload the configuration? I see one for restarting the Nagios process and shutting it down, but not reloading.... Thanks David ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jarett_DeAngelis at fujifilm.com Tue Feb 4 15:15:04 2003 From: Jarett_DeAngelis at fujifilm.com (Jarett DeAngelis) Date: Tue, 04 Feb 2003 09:15:04 -0500 Subject: "No lock file found" and SIGSEGV Message-ID: Yep, you're right. I put in ePN becasue I figured there would be a lot of Perl plugins out there and I was going to need them. Okay. If I recompile now, it's not going to overwrite my config files unless I do make-config, right? Is there anything I should know about recompilation as far as what gets replaced, what permissions need to be set, etc. goes? >>> "Carroll, Jim P [Contractor]" 02/03/03 07:35PM >>> I can't help but wonder if you have the Perl support (ePN) compiled into Nagios. If you did, then go back and recompile *without* Perl support. There's currently a known issue with ePN/Perl 5.8.0. jc > -----Original Message----- > From: Jarett DeAngelis [mailto:Jarett_DeAngelis at fujifilm.com] > Sent: Monday, February 03, 2003 5:00 PM > To: ofb at budget-tech.com > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] "No lock file found" and SIGSEGV > > > chown and chgrped it, then chmod 770ed it. None of this helped. > > Any other hints? :-/ > > >>> "Olivier F. Beauchemin (Budget-Tech IT Consulting)" > 02/02/03 06:35PM >>> > Can Nagios write to the VAR directory? This lock file is a > file that Nagios > creates... so it needs to be able to write to that dir, and > there should be > no manually created file called nagios.lock (which is > something that folks > seem to think they need to do). > > Olivier > > ----- Original Message ----- > From: "Jarett DeAngelis" > To: > Sent: Sunday, February 02, 2003 5:21 PM > Subject: RE: [Nagios-users] "No lock file found" and SIGSEGV > > > Yes I do. And which privs? > > >>> "Olivier Beauchemin" 02/02/03 > 05:20PM >>> > > Just thought of this... do you have that path? and are the > privs correct? > > Olivier > > ---------- Original Message ---------------------------------- > From: "Jarett DeAngelis" > Date: Sun, 02 Feb 2003 16:15:04 -0500 > > >Nagios 1.0 starting... (PID=1467) > >Finished daemonizing... (New PID=1468) > >Caught SIGSEGV, shutting down... > > > >That's all I get from the log. On the console it just says > "no lock file > found in /usr/local/nagios/var/nagios.lock" and then quits. > > > >Any ideas? This is a VERY simple configuration I've got > going here, just > three hosts and one check_ping on each. Just about > everything is commented > out. > > > >Help? > > > > > > > > > >------------------------------------------------------- > >This SF.NET email is sponsored by: > >SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > >http://www.vasoftware.com > >_______________________________________________ > >Nagios-users mailing list > >Nagios-users at lists.sourceforge.net > >https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > > > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From magnus.pettersson at eds.com Tue Feb 4 15:56:00 2003 From: magnus.pettersson at eds.com (Pettersson, Magnus) Date: Tue, 4 Feb 2003 14:56:00 -0000 Subject: Check_ping Message-ID: <5917FD47436E784D8B08F132F0AC506151E606@sessm201> By the plugin utilizing the system ping command, which must be suid root. /magnus -----Original Message----- From: Rasmus Plewe [mailto:rplewe at hpce.nec.com] Sent: 04 February 2003 13:57 To: Nagios users list Subject: Re: [Nagios-users] Check_ping On Tue, Feb 04, 2003 at 12:33:10PM +0100, Brendon Caligari wrote: > > The plugins were placed as /usr/lib/nagios/plugins as owner root.root > > Nagios is running as sysadmin.sysadmin. > > How can check_ping (ICMP ECHO_REQUEST???) be working if it's neither > ~SUID'ed nor running as root??? By sending ICMP packages. What exactly is your problem? Rasmus ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From andrew at anvil.org Tue Feb 4 16:12:31 2003 From: andrew at anvil.org (Andrew Meredith) Date: 04 Feb 2003 15:12:31 +0000 Subject: Distributed checks Message-ID: <1044371550.30680.30.camel@coliseum.ch.anvil.org> Hi Folks, Before I start I should say that I have searched the mail archives for questions similar to the following, but didn't come up with anything. I then unpacked the source code and went through the logic for accepting checks and for initiating checks, with particular reference to the control variables. I therefore hope you will forgive if these are FAQs. Platform & version ------------------ Platform: Red Hat 7.3 on Athlon Nagios: 1.0 enable_active_checks -------------------- I tried following the documented procedure in html/docs/distributed.html where it recommends using a variable of this name. I did so and it seemed to have absolutely no effect. It turns out that the source code does not include this variable. There are a number of different variables of the type "stop the thing doing active checks for the purpose of distributed testing" mentioned variously in the source code and/or the documentation, but none of them quite go all the way to the following setup. The distributed architecture I am after --------------------------------------- Server The server should be configured to know about a remote host and optionally be able to check that the host itself is actually up, and to externally check some/all of the network services. It should however be possible to prevent it from trying to check a remote machine where the network topology does not permit this. This would give a false negative. If the remote machine stops submitting results to the server, the server should follow the usual timeouts as if it was performing the checks itself. Client The client has its own configuration .. hopefully differing from the server version of its config by a very few parameters. It can stack up results in the event of a network outage between the client and the server .. sending them through when things come back. This way the stats for the box aren't affected by network outages that don't necessarily affect its actually uptime and would be recorded separately anyway. How have I done --------------- I am quite close, but for two points .. one cosmetic and one show-stopper. Cosmetic: The only way I have found of shutting off active checks from the server is to set the checks_enabled flag in the host description. This is taken as meaning that the services are to be tested by a remote host by some parts of the UI. However other parts see this as the service being disabled and display it as such. Show-stopper: With the above configuration the server quite happily receives and displays service checks from the distributed remote and will show state changes and everything in the case of a service failure. If however something stops the delivery of service checks, the server simply keeps displaying the last state. If the checks had been done from the server and the network dropped, the failure would be flagged. Is there any way of making the active checks stop without stopping the server from changing state to at least "Unknown" if not "Critical". If you got this far .. thanks for reading :) Andrew Meredith BEng CEng MBCS MIEE _______________________________________________________________ The Anvil Organisation Ltd. Director Tel: +44 (0) 1249 444240 | Email: andrew at anvil.org Fax: +44 (0) 1249 460560 | Web: http://www.anvil.org/ Mob: +44 (0) 7802 389007 | WAPMail: andrew.meredith at orange.net _______________________________________________________________ The box says Win95 or better .. Must run under Linux then! ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From AHKAPLAN at PARTNERS.ORG Tue Feb 4 16:20:03 2003 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Tue, 4 Feb 2003 10:20:03 -0500 Subject: Running into problems with check_snmp Message-ID: <5593DA408212D511B0910002A513501F01D288D9@phsexch20.mgh.harvard.edu> I am trying to monitor a remote printer with the check_snmp command. I have installed the net-snmp package on the Nagios server. The printer in question has the default community name of public. When I run the snmpget command manually I do get information about the remote host. Here is the command syntax and its output: snmpget -v 1 -c public 132.183.220.26 sysDescr.0 SNMPv2-MIB::sysDescr.0 = STRING: Tektronix, Inc., Phaser 750N, PhaserShare Series B Network Interface, (5.62/11.100/10/2.28) The problem I am running into is getting the check_snmp script to work. When I run it either automatically or manually I get the message SNMP Problem - No Data Received from the host Here is the syntax that I used to run check_snmp: ./check_snmp -H 132.183.220.26 ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From garet at realtime.net Tue Feb 4 16:05:52 2003 From: garet at realtime.net (Russ Barnard) Date: Tue, 4 Feb 2003 09:05:52 -600 Subject: Curious what I am doing wrong here Message-ID: <3e3fd6d0.3f54.0@realtime.net> Guys, hope I am not bothering anyone. I was asked to evaluate this software. Sure I don't have a doctrine in coding.. but heh.. I need some help here.. I typed the following line as per the instructions: /configure --prefix=/usr/local/nagios I took defaults on all of the rest. The end of the compilation even SAYS it is installed into that dir.. but the directories (bin, etc, sbin, share, var) do not exist below it. If I do a make install.. then I get the correct result, but perhaps I am missing something here that you can shed light on. Thanks Russ ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From brendon at iwg.info Tue Feb 4 16:25:18 2003 From: brendon at iwg.info (Brendon Caligari) Date: Tue, 4 Feb 2003 16:25:18 +0100 Subject: Check_ping Message-ID: Thanks :-) Actually figured that out looking at 'ps' :-) B -----Original Message----- From: Pettersson, Magnus [mailto:magnus.pettersson at eds.com] Sent: 04 February 2003 15:56 To: Nagios users list Subject: RE: [Nagios-users] Check_ping By the plugin utilizing the system ping command, which must be suid root. /magnus -----Original Message----- From: Rasmus Plewe [mailto:rplewe at hpce.nec.com] Sent: 04 February 2003 13:57 To: Nagios users list Subject: Re: [Nagios-users] Check_ping On Tue, Feb 04, 2003 at 12:33:10PM +0100, Brendon Caligari wrote: > > The plugins were placed as /usr/lib/nagios/plugins as owner root.root > > Nagios is running as sysadmin.sysadmin. > > How can check_ping (ICMP ECHO_REQUEST???) be working if it's neither > ~SUID'ed nor running as root??? By sending ICMP packages. What exactly is your problem? Rasmus ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From russell at quadrix.com Tue Feb 4 16:53:45 2003 From: russell at quadrix.com (Russell Scibetti) Date: Tue, 04 Feb 2003 10:53:45 -0500 Subject: Web-command to reload config References: <87273DB23407D511B8900008C7FA923301405D70@EXCHANGE> Message-ID: <3E3FE209.4020709@quadrix.com> You don't need to stop and start Nagios to reload the configs. You can HUP the nagios process (which is what the init script does when you tell nagios to "reload"). There is no option to do this from the UI, but the restart would also cause a reload of the configs, if they have no errors in them. Russell Aleksey Domorad wrote: > Reload Config == stop + start > IMHO > > -----Original Message----- > From: David Corbin [ mailto:dcorbin at machturtle.com ] > Sent: Tuesday, February 04, 2003 6:56 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Web-command to reload config > > > Is there a web-command to reload the configuration? I see one for > restarting the Nagios process and shutting it down, but not reloading.... > > Thanks > David > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com _______________________________________________ > > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > -- Russell Scibetti Quadrix Solutions, Inc. http://www.quadrix.com (732) 235-2335, ext. 7038 -------------- next part -------------- An HTML attachment was scrubbed... URL: From sghosh at sghosh.org Tue Feb 4 18:05:52 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 04 Feb 2003 12:05:52 -0500 (EST) Subject: Check_ping In-Reply-To: References: Message-ID: On Tue, 4 Feb 2003, Brendon Caligari wrote: > > RH73 + 256mb ram + everything functional > > I installed nagios from source and nagios-plugins from rpm > > The plugins were placed as /usr/lib/nagios/plugins as owner root.root > > Nagios is running as sysadmin.sysadmin. > > > How can check_ping (ICMP ECHO_REQUEST???) be working if it's neither > ~SUID'ed nor running as root??? > > The plugin calls your system's ping command which is suid. -- -sg ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From i.stokes-rees1 at physics.ox.ac.uk Tue Feb 4 18:25:16 2003 From: i.stokes-rees1 at physics.ox.ac.uk (Ian Stokes-Rees) Date: Tue, 4 Feb 2003 17:25:16 -0000 Subject: Network traffic plugin? Message-ID: <35666012DF4CD411BE940090279FA24003CAE043@ppnt41.physics.ox.ac.uk> Which plugin is generally used to monitor network traffic? Or do I just have to "write my own", and if so, what is the most common command to get the relevant stats? Cheers, Ian. -- Ian Stokes-Rees i.stokes-rees at physics.ox.ac.uk Particle Physics, Oxford http://www-pnp.physics.ox.ac.uk/~stokes/ ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sghosh at sghosh.org Tue Feb 4 18:52:52 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 04 Feb 2003 12:52:52 -0500 (EST) Subject: Network traffic plugin? In-Reply-To: <35666012DF4CD411BE940090279FA24003CAE043@ppnt41.physics.ox.ac.uk> References: <35666012DF4CD411BE940090279FA24003CAE043@ppnt41.physics.ox.ac.uk> Message-ID: On Tue, 4 Feb 2003, Ian Stokes-Rees wrote: > Which plugin is generally used to monitor network traffic? Or do I just > have to "write my own", and if so, what is the most common command to get > the relevant stats? > > Cheers, > > Ian. > > Usualy MRTG or other RRDTool based packages are used to monitor traffic. You can then use check_mrtgtraf/check_rrd_data plugins for alerts. -- -sg ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Steve.Rossen at Parago.Com Tue Feb 4 18:50:06 2003 From: Steve.Rossen at Parago.Com (Steve Rossen) Date: Tue, 4 Feb 2003 11:50:06 -0600 Subject: NRPE 2.0? Message-ID: <2D2B13BD2D3ED41195E1009027FCA06E026398F9@copexc51.parago.com> According to the FAQ at http://www.nagios.org/faqs/viewfaq.php?faq_id=139 there is a NRPE 2.0, anyone know where it can be downloaded? -------------- next part -------------- An HTML attachment was scrubbed... URL: From mpowell at ena.com Tue Feb 4 18:57:22 2003 From: mpowell at ena.com (Marc Powell) Date: Tue, 4 Feb 2003 11:57:22 -0600 Subject: Network traffic plugin? Message-ID: <5DB017510818EC468B05BD7BD9EACF83030ED35B@mismail.ena.com> What kind of monitoring are you talking about? Alerting to adverse conditions or trending? You might want to look at APAN (http://apan.sourceforge.net/) or Cricket (http://cricket.sourceforge.net). Cricket is a separate package from Nagios. If you're wanting to alert to adverse utilization and are using MRTG to grab that data already check_mrtg or check_mrtgtraf might be useful to you. If neither of those suit your needs then you'll likely need to write your own to fit the bill. You'll need to familiarize yourself with SNMP to get the statistics you need. -- Marc > -----Original Message----- > From: Ian Stokes-Rees [mailto:i.stokes-rees1 at physics.ox.ac.uk] > Sent: Tuesday, February 04, 2003 11:25 AM > To: 'Nagios List' > Subject: [Nagios-users] Network traffic plugin? > > Which plugin is generally used to monitor network traffic? Or do I just > have to "write my own", and if so, what is the most common command to get > the relevant stats? > > Cheers, > > Ian. > > -- > Ian Stokes-Rees i.stokes-rees at physics.ox.ac.uk > Particle Physics, Oxford http://www- > pnp.physics.ox.ac.uk/~stokes/ > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From lfcrob at nicusa.com Tue Feb 4 19:01:43 2003 From: lfcrob at nicusa.com (Rob Lindenbusch) Date: Tue, 4 Feb 2003 13:01:43 -0500 Subject: Recurring Downtime Message-ID: <006401c2cc77$7a8fe3a0$1c64a8c0@glock> Does anyone have a good method for scheduling recurring downtime in Nagios? I have some services that are down for maintenance during a scheduled window every week. Is there a way to handle this other than scripting an insertion into the downtime file that would be run every week? Thanks in advance Rob Lindenbusch Systems and Network Administrator NIC E-mail: lfcrob at nicusa.com Phone: (317)290-1020 ext. 42 Mobile: (317)506-5379 ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jcarro10 at sprintspectrum.com Tue Feb 4 18:58:39 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Tue, 4 Feb 2003 11:58:39 -0600 Subject: Network traffic plugin? Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1422@PKDWB03C.ad.sprint.com> check_ifstatus or check_ifoperstatus, which use SNMP. jc > -----Original Message----- > From: Ian Stokes-Rees [mailto:i.stokes-rees1 at physics.ox.ac.uk] > Sent: Tuesday, February 04, 2003 11:25 AM > To: 'Nagios List' > Subject: [Nagios-users] Network traffic plugin? > > > Which plugin is generally used to monitor network traffic? > Or do I just > have to "write my own", and if so, what is the most common > command to get > the relevant stats? > > Cheers, > > Ian. > > -- > Ian Stokes-Rees i.stokes-rees at physics.ox.ac.uk > Particle Physics, Oxford > http://www-pnp.physics.ox.ac.uk/~stokes/ > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From mpowell at ena.com Tue Feb 4 19:48:53 2003 From: mpowell at ena.com (Marc Powell) Date: Tue, 4 Feb 2003 12:48:53 -0600 Subject: Recurring Downtime Message-ID: <5DB017510818EC468B05BD7BD9EACF83030ED35E@mismail.ena.com> That's one way to do it. Another would be to create a custom time period that does not include your regular maintenance window and then apply that to either the notification_period or check_period for the host/service (or both). -- Marc > -----Original Message----- > From: Rob Lindenbusch [mailto:lfcrob at nicusa.com] > Sent: Tuesday, February 04, 2003 12:02 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Recurring Downtime > > Does anyone have a good method for scheduling recurring downtime in > Nagios? > I have some services that are down for maintenance during a scheduled > window > every week. Is there a way to handle this other than scripting an > insertion > into the downtime file that would be run every week? > > Thanks in advance > > Rob Lindenbusch > Systems and Network Administrator > NIC > E-mail: lfcrob at nicusa.com > Phone: (317)290-1020 ext. 42 > Mobile: (317)506-5379 > > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld =omething 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Stanley.G.Martin at mail.sprint.com Tue Feb 4 19:55:05 2003 From: Stanley.G.Martin at mail.sprint.com (Stanley.G.Martin at mail.sprint.com) Date: Tue, 4 Feb 2003 12:55:05 -0600 Subject: Recurring Downtime Message-ID: Why not just create a timeperiod to match their maintenance window?I do the same thing with databases that are down during a certain period every weekend for backups. Stanley G. Martin Sprint - ISS Enterprise App/Decision Support Services Stanley.G.Martin at mail.sprint.com -----Original Message----- From: lfcrob [mailto:lfcrob at nicusa.com] Sent: Tuesday, February 04, 2003 12:02 PM To: nagios-users Subject: [Nagios-users] Recurring Downtime Does anyone have a good method for scheduling recurring downtime in Nagios? I have some services that are down for maintenance during a scheduled window every week. Is there a way to handle this other than scripting an insertion into the downtime file that would be run every week? Thanks in advance Rob Lindenbusch Systems and Network Administrator NIC E-mail: lfcrob at nicusa.com Phone: (317)290-1020 ext. 42 Mobile: (317)506-5379 ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld - Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jcarro10 at sprintspectrum.com Tue Feb 4 19:46:57 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Tue, 4 Feb 2003 12:46:57 -0600 Subject: Recurring Downtime Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F2543@PKDWB03C.ad.sprint.com> Simple approach: You define a new timeperiod, and use that in your host definition, e.g., # '24x7 except for backups' timeperiod definition define timeperiod{ timeperiod_name backup-window alias 24x7 except for backups sunday 00:00-04:00,05:00-24:00 monday 00:00-24:00 tuesday 00:00-24:00 wednesday 00:00-24:00 thursday 00:00-24:00 friday 00:00-24:00 saturday 00:00-24:00 } This would avoid notifications from 4am to 5am, Sunday mornings. HTH. jc > -----Original Message----- > From: Rob Lindenbusch [mailto:lfcrob at nicusa.com] > Sent: Tuesday, February 04, 2003 12:02 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Recurring Downtime > > > Does anyone have a good method for scheduling recurring > downtime in Nagios? > I have some services that are down for maintenance during a > scheduled window > every week. Is there a way to handle this other than > scripting an insertion > into the downtime file that would be run every week? > > Thanks in advance > > Rob Lindenbusch > Systems and Network Administrator > NIC > E-mail: lfcrob at nicusa.com > Phone: (317)290-1020 ext. 42 > Mobile: (317)506-5379 > > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From russell at quadrix.com Tue Feb 4 21:21:33 2003 From: russell at quadrix.com (Russell Scibetti) Date: Tue, 04 Feb 2003 15:21:33 -0500 Subject: Different args for different times Message-ID: <3E4020CD.9080808@quadrix.com> I want to have a service defined that runs a different command depending on the timeperiod. Example: define service{ use GenericService host_name backup_host service_description Load check_command check_load!6,6,6!8,8,8 check_period backup_times } define service{ use GenericService host_name backup_host service_description Load check_command check_load!2,2,2!4,4,4 check_period nonbackup_times } However, Nagios yells about there being 2 services with the same name. I tried renaming the first one to backupLoad, which works except that if the service is critical at the end of the timeperiod, it continues to display a critical after the backup_times timeperiod is over. Is there anyway around this? Ideally I would like them to have the same name, so that during one timeperiod, one set of args is used and during the other timeperiod, the different set is used. Any help would be appreciated. Russell Scibetti -- Russell Scibetti Quadrix Solutions, Inc. http://www.quadrix.com (732) 235-2335, ext. 7038 ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sghosh at sghosh.org Tue Feb 4 21:19:59 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 04 Feb 2003 15:19:59 -0500 (EST) Subject: UPS Monitoring In-Reply-To: <20030117231915.M78563@4wx.net> References: <20030117231915.M78563@4wx.net> Message-ID: First you need a daemon to monitor the status on the serail port - Take a look at Network UPS Tools on exploits.org. Once you have NUT runnig, you can use check_ups in the standard plugin dist to monitor the state of the UPS via NUT. -sg On Fri, 17 Jan 2003, donavan nelson wrote: > That would require having an APC network card in the UPS. I have several > SMART UPS's (2200's and 1400's) and they don't have USB or networks. Just > serial ports. > > There has to be someway to monitor the UPS via the serial port. > > -- > Donavan Nelson > 4wx Networks > www.4wx.net > > ---------- Original Message ----------- > From: Pivert > To: Nagios List > Sent: 18 Jan 2003 00:06:30 +0100 > Subject: Re: [Nagios-users] UPS Monitoring > > > Your direction should be snmp. > > > > You probably have a linux application with your ups that can give > > some information via snmp. I have an ellipse UPS serial(not usb) low > > end for home use an they give that on the CD. > > > > Bye > > > > Le ven 17/01/2003 ? 20:22, Jeff McKeon a ?crit : > > > Is there any kind of plugin out there that can monitor an APC-SMART > > > UPS? I have six of these rack mount puppies in my datacenter and would > > > like to be able to hook them up to a linux box via com ports and have > > > nagios send an alert if one loses it's power feed. > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.NET email is sponsored by: Thawte.com - A 128-bit supercerts will > > > allow you to extend the highest allowed 128 bit encryption to all your > > > clients even if they use browsers that are limited to 40 bit encryption. > > > Get a guide here:http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0030en > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > ___________________________________________________________ > > Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran?ais ! > > Yahoo! Mail : http://fr.mail.yahoo.com > > > > ------------------------------------------------------- > > This SF.NET email is sponsored by: Thawte.com - A 128-bit supercerts > > will allow you to extend the highest allowed 128 bit encryption to > > all your clients even if they use browsers that are limited to 40 > > bit encryption. Get a guide > here:http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0030en > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------- End of Original Message ------- > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: Thawte.com - A 128-bit supercerts will > allow you to extend the highest allowed 128 bit encryption to all your > clients even if they use browsers that are limited to 40 bit encryption. > Get a guide here:http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0030en > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > -- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sghosh at sghosh.org Tue Feb 4 21:26:13 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 04 Feb 2003 15:26:13 -0500 (EST) Subject: snmp_check In-Reply-To: <3E28065A.10206@eln.gov.br> References: <3E28065A.10206@eln.gov.br> Message-ID: On Fri, 17 Jan 2003, Uriel de Almeida Papa wrote: > Hello, > > Could someone please help me to use snmp_check command to test up/down > interface OID value? > > Tnks! > Uriel > To monitor interface - try the check_ifoperstatus or check_ifstatus plugins -- -sg ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Stanley.Hopcroft at IPAustralia.Gov.AU Tue Feb 4 21:48:16 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Wed, 5 Feb 2003 07:48:16 +1100 Subject: Network traffic plugin? In-Reply-To: <35666012DF4CD411BE940090279FA24003CAE043@ppnt41.physics.ox.ac.uk>; from i.stokes-rees1@physics.ox.ac.uk on Tue, Feb 04, 2003 at 05:25:16PM -0000 References: <35666012DF4CD411BE940090279FA24003CAE043@ppnt41.physics.ox.ac.uk> Message-ID: <20030205074808.A214@IPAustralia.Gov.AU> Dear Sir, The development versions of RRDtool contain Jake Brutlags Holt-Winters based time series forcasting/anomaly detection code. There is a very good paper by Mr Brutlag that illustrates the utility of this approach in the triage of _large numbers_ of interface graphs (ISP or ASP or carrier siituation). It's quiet easy to integrate RRD tool with H-W prediction into a plugin (the H-W time series is another RRA). My experience is that it is not as sensitive as heuristics like 'flows should be within this range' but because it is adaptive, it is not deceived by fluctations. (In my case, I have a time series - the output of a process - that doesnot exhibit periodic fluctation, yet it still works Ok). Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sghosh at sghosh.org Tue Feb 4 21:49:57 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 04 Feb 2003 15:49:57 -0500 (EST) Subject: SMB server and Citrix server service check? In-Reply-To: References: Message-ID: On Wed, 29 Jan 2003, Jarett DeAngelis wrote: > Hi all, > > I'm looking for a service check I can use to verify that SMB servers > and/or Citrix Winframe servers are functioning. Does anyone know which > I should use and how? > > Thanks, Jarett DeAngelis > > (Olivier: I'm almost done, just need some way to verify that these three > hosts I added are functioning properly) > plugins-scripts/check_disk_smb contrib/check_smb.sh contrib/tarballs/check_cit.tgz -- -sg ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sghosh at sghosh.org Tue Feb 4 22:01:33 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 04 Feb 2003 16:01:33 -0500 (EST) Subject: NRPE 2.0? In-Reply-To: <2D2B13BD2D3ED41195E1009027FCA06E026398F9@copexc51.parago.com> References: <2D2B13BD2D3ED41195E1009027FCA06E026398F9@copexc51.parago.com> Message-ID: On Tue, 4 Feb 2003, Steve Rossen wrote: > According to the FAQ at http://www.nagios.org/faqs/viewfaq.php?faq_id=139 > there is a NRPE 2.0, > anyone know where it can be downloaded? > CVS - no official release -- -sg ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sghosh at sghosh.org Tue Feb 4 21:58:17 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 04 Feb 2003 15:58:17 -0500 (EST) Subject: Different args for different times In-Reply-To: <3E4020CD.9080808@quadrix.com> References: <3E4020CD.9080808@quadrix.com> Message-ID: not easy in the current setup. easiest would be to write a wrapper which checks localtime and calls check_load with the approriate args... -sg On Tue, 4 Feb 2003, Russell Scibetti wrote: > I want to have a service defined that runs a different command depending > on the timeperiod. Example: > > define service{ > use GenericService > host_name backup_host > service_description Load > check_command check_load!6,6,6!8,8,8 > check_period backup_times > } > > define service{ > use GenericService > host_name backup_host > service_description Load > check_command check_load!2,2,2!4,4,4 > check_period nonbackup_times > } > > However, Nagios yells about there being 2 services with the same name. > I tried renaming the first one to backupLoad, which works except that > if the service is critical at the end of the timeperiod, it continues to > display a critical after the backup_times timeperiod is over. Is there > anyway around this? Ideally I would like them to have the same name, so > that during one timeperiod, one set of args is used and during the other > timeperiod, the different set is used. Any help would be appreciated. > > Russell Scibetti > > -- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sghosh at sghosh.org Tue Feb 4 22:17:40 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 04 Feb 2003 16:17:40 -0500 (EST) Subject: Stange problem checking https In-Reply-To: <001b01c2c95a$db52ee00$bb20a8c0@corp.wrhambrecht.com> References: <001b01c2c95a$db52ee00$bb20a8c0@corp.wrhambrecht.com> Message-ID: Can you post the command (add the verbose option) and the output... -sg On Fri, 31 Jan 2003, DM wrote: > > Following Subhendu's suggestion, I've installed the latest check_http plugin, > but unfortunately, Nagios is still issuing a "warning" status for a seemingly fine > reponse from the web server. > > check_http (nagios-plugins 1.3.0-beta2) 1.12 > > Current Status: WARNING (Has been acknowledged) > Status Information: HTTP ok: HTTP/1.0 200 OK - 0.240 second response time > Current Attempt: 3/3 > State Type: HARD > Last Check Type: ACTIVE > Last Check Time: 01-31-2003 10:55:22 > Status Data Age: 0d 0h 2m 6s > Next Scheduled Active Check: 01-31-2003 11:00:22 > Latency: < 1 second > Check Duration: < 1 second > Last State Change: 01-27-2003 10:27:32 > Current State Duration: 4d 0h 29m 56s > Last Service Notification: 01-27-2003 12:27:32 > Current Notification Number: 3 > Is This Service Flapping? N/A > Percent State Change: N/A > In Scheduled Downtime? NO > Last Update: 01-31-2003 10:57:20 > > > All details from below are still the same, with the exception that I now have the latest version of the > check_http plugin. > > Any ideas? > > -David > > > > -----Original Message----- > > From: Subhendu Ghosh [mailto:sghosh at sghosh.org] > > Sent: Monday, January 27, 2003 2:01 PM > > To: nagios-users at lists.sourceforge.net > > Subject: Re: [Nagios-users] Stange problem checking https > > > > > > On Mon, 27 Jan 2003, DM wrote: > > > > > Hi All, > > > > > > I've got a problem with Nagios returning a "warning status" when > > > checking https on a Resin http server. Resin is a servlet/JSP engine > > > which can also serve up static pages as well as dynamic. > > (details can be > > > had at http://www.caucho.com/resin/) > > > > > > The problem is that Nagios keeps generating a "warning" > > status for the > > > http service, even though the service is up. Nagios doesn't > > even seem to > > > indicate a problem, other than indicating a warning status. (i.e. > > > response time is good, etc.) > > > > > > The Resin server is serving up the https pages just fine. Hitting it > > > with different browsers (IE6, Konqueror) works fine. Also Nagios is > > > working fine with other web servers (Zeus, IIS). I've > > checked the syntax > > > and run the check_http manually with the command line and > > it works fine > > > too. The response from the plugin is always "HTTP ok: > > HTTP/1.0 200 OK - > > > 0 second response time" > > > > > > The only difference I can come up with is that the http > > response from > > > the Resin server comes back as "HTTP/1.0" as opposed to all > > the other > > > web servers which return a "HTTP/1.1" Could this be causing > > a problem > > > for Nagios? > > > > > > Below are full details about platforms, versions, relevant > > lines from > > > config files, etc. As mentioned above, this Nagios config works just > > > fine with my other servers. > > > > > > Any ideas are appreciated. > > > > > > -David > > > > > > > > > Nagios version: > > > > > > Nagios 1.0 > > > Copyright (c) 1999-2002 Ethan Galstad (nagios at nagios.org) > > > Last Modified: 11-24-2002 > > > License: GPL > > > > > > Nagios server is running on Solaris 8.0 with latest > > Maintenance Updates/ patch > > > clusters. > > > > > > check_http plugin version: > > > > > > admin at nagios:>check_http -V > > > check_http (netsaint-plugins 1.2.9-4) 1.32.2.6 > > > > > > services.cfg: > > > > > > check_command > > > check_https!hosta.mydomain.com!/test/test?act=login&id=123ABC123 > > > > > > commands.cfg: > > > > > > # 'check_https' command definition > > > define command{ > > > command_name check_https > > > command_line /apps/nagios/libexec/check_http -S > > -I $HOSTADDRESS$ -H $ > > > ARG1$ -u $ARG2$ -t 40 -e 200 > > > } > > > > > > hosts.cfg: > > > > > > # 'hosta' host definition > > > define host{ > > > use generic-host ; > > Name of host template > > > to use > > > > > > host_name hosta > > > alias AliasA > > > address 2.3.4.5 > > > parents parenta > > > check_command check-host-alive > > > max_check_attempts 10 > > > notification_interval 120 > > > notification_period normal > > > notification_options d,u,r > > > } > > > > > > > > > Running the check_http command manually using the > > > same parameters that Nagios uses, works fine: > > > > > > check_http \ > > > -S -I hosta.mydomain.com \ > > > -H web.mydomain.com \ > > > -u '/test/test?act=login&id=123ABC123' -t 40 -e 200 > > > > > > It returns a normal status: > > > > > > "HTTP ok: HTTP/1.0 200 OK - 0 second response time" > > > > > > >From the "Service State Information" page on Nagios: > > > > > > Current Status: WARNING > > > Status Information: HTTP ok: HTTP/1.0 200 OK - 0 second > > response time > > > Current Attempt: 3/3 > > > State Type: HARD > > > Last Check Type: ACTIVE > > > Last Check Time: 01-27-2003 12:07:23 > > > Status Data Age: 0d 0h 2m 11s > > > Next Scheduled Active Check: 01-27-2003 12:12:23 > > > Latency: 1 second > > > Check Duration: < 1 second > > > Last State Change: 01-27-2003 10:27:32 > > > Current State Duration: 0d 1h 42m 2s > > > Last Service Notification: 01-27-2003 11:27:32 > > > Current Notification Number: 2 > > > Is This Service Flapping? N/A > > > Percent State Change: N/A > > > In Scheduled Downtime? NO > > > Last Update: 01-27-2003 12:09:22 > > > > > > >From the "Alert History" on Nagios: > > > > > > [01-27-2003 10:27:32] SERVICE ALERT: > > hosta;HTTPS;WARNING;HARD;3;HTTP ok: HTTP/1.0 200 OK - 0 > > second response time > > > [01-27-2003 10:26:32] SERVICE ALERT: > > hosta;HTTPS;WARNING;SOFT;2;HTTP ok: HTTP/1.0 200 OK - 0 > > second response time > > > [01-27-2003 10:25:33] SERVICE ALERT: > > hosta;HTTPS;WARNING;SOFT;1;HTTP ok: HTTP/1.0 200 OK - 1 > > second response time > > > > > > > > > > > > > > On the command line - do n "echo $?" after the plugin to see what the > > return code is. > > > > Also may want to try a newer check_http - lots of changes > > since 1.2.9-4 > > release. > > > > -- > > -sg -- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sghosh at sghosh.org Tue Feb 4 22:43:06 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 04 Feb 2003 16:43:06 -0500 (EST) Subject: Shorting paging messing In-Reply-To: References: Message-ID: rewrite the commands used to deliver the pages to be a bit more terse. -sg On Thu, 30 Jan 2003, Dan Spray wrote: > Hello all, > > > > My carrier just shorted the number of characters that you can send at once. > Now I am getting 2 pages for every event. How do I specify what text gets > paged? > > > > Thanks in advance, > > > -- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From russell at quadrix.com Tue Feb 4 22:52:14 2003 From: russell at quadrix.com (Russell Scibetti) Date: Tue, 04 Feb 2003 16:52:14 -0500 Subject: Different args for different times References: Message-ID: <3E40360E.5040704@quadrix.com> I just gave in and did it that way. Maybe something to keep in mind for future Nagios features - Time based command/arguments. Russell Subhendu Ghosh wrote: >not easy in the current setup. > >easiest would be to write a wrapper which checks localtime and calls >check_load with the approriate args... > >-sg > >On Tue, 4 Feb 2003, Russell Scibetti wrote: > >>I want to have a service defined that runs a different command depending >>on the timeperiod. Example: >> >>define service{ >> use GenericService >> host_name backup_host >> service_description Load >> check_command check_load!6,6,6!8,8,8 >> check_period backup_times >> } >> >>define service{ >> use GenericService >> host_name backup_host >> service_description Load >> check_command check_load!2,2,2!4,4,4 >> check_period nonbackup_times >> } >> >>However, Nagios yells about there being 2 services with the same name. >> I tried renaming the first one to backupLoad, which works except that >>if the service is critical at the end of the timeperiod, it continues to >>display a critical after the backup_times timeperiod is over. Is there >>anyway around this? Ideally I would like them to have the same name, so >>that during one timeperiod, one set of args is used and during the other >>timeperiod, the different set is used. Any help would be appreciated. >> >>Russell Scibetti >> >> > -- Russell Scibetti Quadrix Solutions, Inc. http://www.quadrix.com (732) 235-2335, ext. 7038 -------------- next part -------------- An HTML attachment was scrubbed... URL: From nagios.dm at wrhambrecht.com Tue Feb 4 23:33:59 2003 From: nagios.dm at wrhambrecht.com (DM) Date: Tue, 4 Feb 2003 14:33:59 -0800 Subject: Stange problem checking https Message-ID: <000801c2cc9d$82e67bb0$bb20a8c0@corp.wrhambrecht.com> Subhendu, Here's the output you requested: $/apps/nagios/libexec> ./check_http -V check_http (nagios-plugins 1.3.0-beta2) 1.12 $/apps/nagios/libexec> /apps/nagios/libexec/check_http -v -S -I hosta.mydomain.com -H intranet.mydomain.com -u '/eqo/auction?act=login&cusip=45673456' -t 40 -e 200 Page is 5882 characters STATUS: HTTP/1.0 200 OK **** HEADER **** Server: Resin/2.1.s021217 Pragma: no-cache Expires: -1 Cache-Control: no-cache P3P: CP="NON DSP COR CURa ADMa IVAa IVDa CONa OUR NOR UNI PUR COM NAV STA" Set-Cookie: JSESSIONID=aKepta_IHR-4; Path=/ Content-Type: text/html Date: Tue, 04 Feb 2003 21:58:21 GMT **** CONTENT **** OpenFollowOn 45673456: Login
 
Login to the OpenFollowOn Auction for:
4,000,000 shares of Acme Inc. (NASDAQ:ACME)
Current Time: 02/04/03, 04:58PM EST
Auction open time: 02/04/03 at 05:00PM EST
  The auction is Not Open
User ID
Password
 
Click here to view Auction Terms

Very Important: After submitting or changing a bid in the auction, you will always be asked for confirmation. If you do not indicate confirmation by clicking a confirmation button, your bidding action will not be recorded by the system.

Reminder: Your browser must have "cookies" enabled in order to access the auction. If you have trouble accessing the system, please contact your local technical support personnel or contact us.
HTTP OK: Status line output matched "200" HTTP ok: HTTP/1.0 200 OK - 0.293 second response time |time= 0.293 $/apps/nagios/libexec> echo $? 0 > -----Original Message----- > From: Subhendu Ghosh [mailto:sghosh at sghosh.org] > Sent: Tuesday, February 04, 2003 1:18 PM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Stange problem checking https > > > > Can you post the command (add the verbose option) and the output... > > -sg > > On Fri, 31 Jan 2003, DM wrote: > > > > > Following Subhendu's suggestion, I've installed the latest > check_http plugin, > > but unfortunately, Nagios is still issuing a "warning" > status for a seemingly fine > > reponse from the web server. > > > > check_http (nagios-plugins 1.3.0-beta2) 1.12 > > > > Current Status: WARNING (Has been acknowledged) > > Status Information: HTTP ok: HTTP/1.0 200 OK - 0.240 second > response time > > Current Attempt: 3/3 > > State Type: HARD > > Last Check Type: ACTIVE > > Last Check Time: 01-31-2003 10:55:22 > > Status Data Age: 0d 0h 2m 6s > > Next Scheduled Active Check: 01-31-2003 11:00:22 > > Latency: < 1 second > > Check Duration: < 1 second > > Last State Change: 01-27-2003 10:27:32 > > Current State Duration: 4d 0h 29m 56s > > Last Service Notification: 01-27-2003 12:27:32 > > Current Notification Number: 3 > > Is This Service Flapping? N/A > > Percent State Change: N/A > > In Scheduled Downtime? NO > > Last Update: 01-31-2003 10:57:20 > > > > > > All details from below are still the same, with the > exception that I now have the latest version of the > > check_http plugin. > > > > Any ideas? > > > > -David > > > > > > > -----Original Message----- > > > From: Subhendu Ghosh [mailto:sghosh at sghosh.org] > > > Sent: Monday, January 27, 2003 2:01 PM > > > To: nagios-users at lists.sourceforge.net > > > Subject: Re: [Nagios-users] Stange problem checking https > > > > > > > > > On Mon, 27 Jan 2003, DM wrote: > > > > > > > Hi All, > > > > > > > > I've got a problem with Nagios returning a "warning status" when > > > > checking https on a Resin http server. Resin is a > servlet/JSP engine > > > > which can also serve up static pages as well as dynamic. > > > (details can be > > > > had at http://www.caucho.com/resin/) > > > > > > > > The problem is that Nagios keeps generating a "warning" > > > status for the > > > > http service, even though the service is up. Nagios doesn't > > > even seem to > > > > indicate a problem, other than indicating a warning > status. (i.e. > > > > response time is good, etc.) > > > > > > > > The Resin server is serving up the https pages just > fine. Hitting it > > > > with different browsers (IE6, Konqueror) works fine. > Also Nagios is > > > > working fine with other web servers (Zeus, IIS). I've > > > checked the syntax > > > > and run the check_http manually with the command line and > > > it works fine > > > > too. The response from the plugin is always "HTTP ok: > > > HTTP/1.0 200 OK - > > > > 0 second response time" > > > > > > > > The only difference I can come up with is that the http > > > response from > > > > the Resin server comes back as "HTTP/1.0" as opposed to all > > > the other > > > > web servers which return a "HTTP/1.1" Could this be causing > > > a problem > > > > for Nagios? > > > > > > > > Below are full details about platforms, versions, relevant > > > lines from > > > > config files, etc. As mentioned above, this Nagios > config works just > > > > fine with my other servers. > > > > > > > > Any ideas are appreciated. > > > > > > > > -David > > > > > > > > > > > > Nagios version: > > > > > > > > Nagios 1.0 > > > > Copyright (c) 1999-2002 Ethan Galstad (nagios at nagios.org) > > > > Last Modified: 11-24-2002 > > > > License: GPL > > > > > > > > Nagios server is running on Solaris 8.0 with latest > > > Maintenance Updates/ patch > > > > clusters. > > > > > > > > check_http plugin version: > > > > > > > > admin at nagios:>check_http -V > > > > check_http (netsaint-plugins 1.2.9-4) 1.32.2.6 > > > > > > > > services.cfg: > > > > > > > > check_command > > > > > check_https!hosta.mydomain.com!/test/test?act=login&id=45673456 > > > > > > > > commands.cfg: > > > > > > > > # 'check_https' command definition > > > > define command{ > > > > command_name check_https > > > > command_line /apps/nagios/libexec/check_http -S > > > -I $HOSTADDRESS$ -H $ > > > > ARG1$ -u $ARG2$ -t 40 -e 200 > > > > } > > > > > > > > hosts.cfg: > > > > > > > > # 'hosta' host definition > > > > define host{ > > > > use generic-host ; > > > Name of host template > > > > to use > > > > > > > > host_name hosta > > > > alias AliasA > > > > address 2.3.4.5 > > > > parents parenta > > > > check_command check-host-alive > > > > max_check_attempts 10 > > > > notification_interval 120 > > > > notification_period normal > > > > notification_options d,u,r > > > > } > > > > > > > > > > > > Running the check_http command manually using the > > > > same parameters that Nagios uses, works fine: > > > > > > > > check_http \ > > > > -S -I hosta.mydomain.com \ > > > > -H web.mydomain.com \ > > > > -u '/test/test?act=login&id=45673456' -t 40 -e 200 > > > > > > > > It returns a normal status: > > > > > > > > "HTTP ok: HTTP/1.0 200 OK - 0 second response time" > > > > > > > > >From the "Service State Information" page on Nagios: > > > > > > > > Current Status: WARNING > > > > Status Information: HTTP ok: HTTP/1.0 200 OK - 0 second > > > response time > > > > Current Attempt: 3/3 > > > > State Type: HARD > > > > Last Check Type: ACTIVE > > > > Last Check Time: 01-27-2003 12:07:23 > > > > Status Data Age: 0d 0h 2m 11s > > > > Next Scheduled Active Check: 01-27-2003 12:12:23 > > > > Latency: 1 second > > > > Check Duration: < 1 second > > > > Last State Change: 01-27-2003 10:27:32 > > > > Current State Duration: 0d 1h 42m 2s > > > > Last Service Notification: 01-27-2003 11:27:32 > > > > Current Notification Number: 2 > > > > Is This Service Flapping? N/A > > > > Percent State Change: N/A > > > > In Scheduled Downtime? NO > > > > Last Update: 01-27-2003 12:09:22 > > > > > > > > >From the "Alert History" on Nagios: > > > > > > > > [01-27-2003 10:27:32] SERVICE ALERT: > > > hosta;HTTPS;WARNING;HARD;3;HTTP ok: HTTP/1.0 200 OK - 0 > > > second response time > > > > [01-27-2003 10:26:32] SERVICE ALERT: > > > hosta;HTTPS;WARNING;SOFT;2;HTTP ok: HTTP/1.0 200 OK - 0 > > > second response time > > > > [01-27-2003 10:25:33] SERVICE ALERT: > > > hosta;HTTPS;WARNING;SOFT;1;HTTP ok: HTTP/1.0 200 OK - 1 > > > second response time > > > > > > > > > > > > > > > > > > > > On the command line - do n "echo $?" after the plugin to > see what the > > > return code is. > > > > > > Also may want to try a newer check_http - lots of changes > > > since 1.2.9-4 > > > release. > > > > > > -- > > > -sg -------------- next part -------------- An HTML attachment was scrubbed... URL: From sghosh at sghosh.org Tue Feb 4 23:41:45 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 04 Feb 2003 17:41:45 -0500 (EST) Subject: Stange problem checking https In-Reply-To: <000801c2cc9d$82e67bb0$bb20a8c0@corp.wrhambrecht.com> References: <000801c2cc9d$82e67bb0$bb20a8c0@corp.wrhambrecht.com> Message-ID: Everything looks ok from the plugin - are you sure you don't have multiple nagios proceses running? a stop/start may clear it up. -sg On Tue, 4 Feb 2003, DM wrote: > Subhendu, > > Here's the output you requested: > > > $/apps/nagios/libexec> ./check_http -V > check_http (nagios-plugins 1.3.0-beta2) 1.12 > > $/apps/nagios/libexec> /apps/nagios/libexec/check_http -v -S -I hosta.mydomain.com -H intranet.mydomain.com -u '/eqo/auction?act=login&cusip=45673456' -t 40 -e 200 > > Page is 5882 characters > STATUS: HTTP/1.0 200 OK > **** HEADER **** > Server: Resin/2.1.s021217 > Pragma: no-cache > Expires: -1 > Cache-Control: no-cache > P3P: CP="NON DSP COR CURa ADMa IVAa IVDa CONa OUR NOR UNI PUR COM NAV STA" > Set-Cookie: JSESSIONID=aKepta_IHR-4; Path=/ > Content-Type: text/html > Date: Tue, 04 Feb 2003 21:58:21 GMT > **** CONTENT **** > > > > > OpenFollowOn 45673456: Login > > marginwidth="0" marginheight="0" topmargin="0" leftmargin="0" > onLoad="javascript:assertTopFrame();"> > > href="javascript:SpawnWindow('/eqo/terms?cusip=45673456','termsWin','102014252910118172714');"> > > > href="javascript:SpawnWindow('/eqo/static?class=perDeal&cusip=45673456&content=rules','contentWin','1020142529 > > 10118172714');"> > > > href="javascript:SpawnWindow('/eqo/static?class=perProduct&cusip=45673456&content=hiw/overview','contentWin',' > > 102014252910118172714');"> > > > href="javascript:SpawnWindow('/eqo/static?class=perProduct&cusip=45673456&content=hiw/faq','contentWin','10201 > > 4252910118172714');"> > > > href="javascript:SpawnWindow('/eqo/static?class=perDeal&cusip=45673456&content=contacts','contentWin','1020142 > > 52910118172714')"> > > background="/eqo/web-content/images/horiz_bg_pat.gif"> > > > > > >
 
> > > > >
> usemap="#Map" border="0">
> > > > > > > > > >
> Login to the OpenFollowOn > Auction for:
> 4,000,000 shares of Acme Inc. > (NASDAQ:ACME)
> Current Time: > 02/04/03, 04:58PM EST
> Auction open time: > 02/04/03 at 05:00PM EST
> >   > > The auction is > Not Open >
>
> > > > > > > > > > > > > >
> User ID > > >
> Password > > >
  > > > > >
>
> > > > > > > > > >
> href="javascript:SpawnWindow('/eqo/terms?cusip=45673456','termsWin','102014252910118172714');"> > Click here to view Auction Terms >

>
> Very Important: > > After > submitting or changing a bid in the auction, you will always be asked for > confirmation. If you do not indicate confirmation by clicking a confirmation button, > > your > bidding action will not be recorded by the system.

>
> Reminder: Your > > browser must > have "cookies" enabled in order to access the auction. If you have trouble accessing the system, > > please contact > your local technical support personnel or > > href="javascript:SpawnWindow('/eqo/static?class=perDeal&cusip=45673456&content=contacts','contentWin','1020142 > > 52910118172714');">contact > us. >
> > > > > HTTP OK: Status line output matched "200" > > HTTP ok: HTTP/1.0 200 OK - 0.293 second response time |time= 0.293 > $/apps/nagios/libexec> echo $? > 0 > > > > > > -----Original Message----- > > From: Subhendu Ghosh [mailto:sghosh at sghosh.org] > > Sent: Tuesday, February 04, 2003 1:18 PM > > To: nagios-users at lists.sourceforge.net > > Subject: Re: [Nagios-users] Stange problem checking https > > > > > > > > Can you post the command (add the verbose option) and the output... > > > > -sg > > > > On Fri, 31 Jan 2003, DM wrote: > > > > > > > > Following Subhendu's suggestion, I've installed the latest > > check_http plugin, > > > but unfortunately, Nagios is still issuing a "warning" > > status for a seemingly fine > > > reponse from the web server. > > > > > > check_http (nagios-plugins 1.3.0-beta2) 1.12 > > > > > > Current Status: WARNING (Has been acknowledged) > > > Status Information: HTTP ok: HTTP/1.0 200 OK - 0.240 second > > response time > > > Current Attempt: 3/3 > > > State Type: HARD > > > Last Check Type: ACTIVE > > > Last Check Time: 01-31-2003 10:55:22 > > > Status Data Age: 0d 0h 2m 6s > > > Next Scheduled Active Check: 01-31-2003 11:00:22 > > > Latency: < 1 second > > > Check Duration: < 1 second > > > Last State Change: 01-27-2003 10:27:32 > > > Current State Duration: 4d 0h 29m 56s > > > Last Service Notification: 01-27-2003 12:27:32 > > > Current Notification Number: 3 > > > Is This Service Flapping? N/A > > > Percent State Change: N/A > > > In Scheduled Downtime? NO > > > Last Update: 01-31-2003 10:57:20 > > > > > > > > > All details from below are still the same, with the > > exception that I now have the latest version of the > > > check_http plugin. > > > > > > Any ideas? > > > > > > -David > > > > > > > > > > -----Original Message----- > > > > From: Subhendu Ghosh [mailto:sghosh at sghosh.org] > > > > Sent: Monday, January 27, 2003 2:01 PM > > > > To: nagios-users at lists.sourceforge.net > > > > Subject: Re: [Nagios-users] Stange problem checking https > > > > > > > > > > > > On Mon, 27 Jan 2003, DM wrote: > > > > > > > > > Hi All, > > > > > > > > > > I've got a problem with Nagios returning a "warning status" when > > > > > checking https on a Resin http server. Resin is a > > servlet/JSP engine > > > > > which can also serve up static pages as well as dynamic. > > > > (details can be > > > > > had at http://www.caucho.com/resin/) > > > > > > > > > > The problem is that Nagios keeps generating a "warning" > > > > status for the > > > > > http service, even though the service is up. Nagios doesn't > > > > even seem to > > > > > indicate a problem, other than indicating a warning > > status. (i.e. > > > > > response time is good, etc.) > > > > > > > > > > The Resin server is serving up the https pages just > > fine. Hitting it > > > > > with different browsers (IE6, Konqueror) works fine. > > Also Nagios is > > > > > working fine with other web servers (Zeus, IIS). I've > > > > checked the syntax > > > > > and run the check_http manually with the command line and > > > > it works fine > > > > > too. The response from the plugin is always "HTTP ok: > > > > HTTP/1.0 200 OK - > > > > > 0 second response time" > > > > > > > > > > The only difference I can come up with is that the http > > > > response from > > > > > the Resin server comes back as "HTTP/1.0" as opposed to all > > > > the other > > > > > web servers which return a "HTTP/1.1" Could this be causing > > > > a problem > > > > > for Nagios? > > > > > > > > > > Below are full details about platforms, versions, relevant > > > > lines from > > > > > config files, etc. As mentioned above, this Nagios > > config works just > > > > > fine with my other servers. > > > > > > > > > > Any ideas are appreciated. > > > > > > > > > > -David > > > > > > > > > > > > > > > Nagios version: > > > > > > > > > > Nagios 1.0 > > > > > Copyright (c) 1999-2002 Ethan Galstad (nagios at nagios.org) > > > > > Last Modified: 11-24-2002 > > > > > License: GPL > > > > > > > > > > Nagios server is running on Solaris 8.0 with latest > > > > Maintenance Updates/ patch > > > > > clusters. > > > > > > > > > > check_http plugin version: > > > > > > > > > > admin at nagios:>check_http -V > > > > > check_http (netsaint-plugins 1.2.9-4) 1.32.2.6 > > > > > > > > > > services.cfg: > > > > > > > > > > check_command > > > > > > > check_https!hosta.mydomain.com!/test/test?act=login&id=45673456 > > > > > > > > > > commands.cfg: > > > > > > > > > > # 'check_https' command definition > > > > > define command{ > > > > > command_name check_https > > > > > command_line /apps/nagios/libexec/check_http -S > > > > -I $HOSTADDRESS$ -H $ > > > > > ARG1$ -u $ARG2$ -t 40 -e 200 > > > > > } > > > > > > > > > > hosts.cfg: > > > > > > > > > > # 'hosta' host definition > > > > > define host{ > > > > > use generic-host ; > > > > Name of host template > > > > > to use > > > > > > > > > > host_name hosta > > > > > alias AliasA > > > > > address 2.3.4.5 > > > > > parents parenta > > > > > check_command check-host-alive > > > > > max_check_attempts 10 > > > > > notification_interval 120 > > > > > notification_period normal > > > > > notification_options d,u,r > > > > > } > > > > > > > > > > > > > > > Running the check_http command manually using the > > > > > same parameters that Nagios uses, works fine: > > > > > > > > > > check_http \ > > > > > -S -I hosta.mydomain.com \ > > > > > -H web.mydomain.com \ > > > > > -u '/test/test?act=login&id=45673456' -t 40 -e 200 > > > > > > > > > > It returns a normal status: > > > > > > > > > > "HTTP ok: HTTP/1.0 200 OK - 0 second response time" > > > > > > > > > > >From the "Service State Information" page on Nagios: > > > > > > > > > > Current Status: WARNING > > > > > Status Information: HTTP ok: HTTP/1.0 200 OK - 0 second > > > > response time > > > > > Current Attempt: 3/3 > > > > > State Type: HARD > > > > > Last Check Type: ACTIVE > > > > > Last Check Time: 01-27-2003 12:07:23 > > > > > Status Data Age: 0d 0h 2m 11s > > > > > Next Scheduled Active Check: 01-27-2003 12:12:23 > > > > > Latency: 1 second > > > > > Check Duration: < 1 second > > > > > Last State Change: 01-27-2003 10:27:32 > > > > > Current State Duration: 0d 1h 42m 2s > > > > > Last Service Notification: 01-27-2003 11:27:32 > > > > > Current Notification Number: 2 > > > > > Is This Service Flapping? N/A > > > > > Percent State Change: N/A > > > > > In Scheduled Downtime? NO > > > > > Last Update: 01-27-2003 12:09:22 > > > > > > > > > > >From the "Alert History" on Nagios: > > > > > > > > > > [01-27-2003 10:27:32] SERVICE ALERT: > > > > hosta;HTTPS;WARNING;HARD;3;HTTP ok: HTTP/1.0 200 OK - 0 > > > > second response time > > > > > [01-27-2003 10:26:32] SERVICE ALERT: > > > > hosta;HTTPS;WARNING;SOFT;2;HTTP ok: HTTP/1.0 200 OK - 0 > > > > second response time > > > > > [01-27-2003 10:25:33] SERVICE ALERT: > > > > hosta;HTTPS;WARNING;SOFT;1;HTTP ok: HTTP/1.0 200 OK - 1 > > > > second response time > > > > > > > > > > > > > > > > > > > > > > > > > > On the command line - do n "echo $?" after the plugin to > > see what the > > > > return code is. > > > > > > > > Also may want to try a newer check_http - lots of changes > > > > since 1.2.9-4 > > > > release. > > > > > > > > -- > > > > -sg -- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From dcorbin at machturtle.com Wed Feb 5 00:15:03 2003 From: dcorbin at machturtle.com (David Corbin) Date: Tue, 04 Feb 2003 18:15:03 -0500 Subject: Web-command to reload config In-Reply-To: <3E3FE209.4020709@quadrix.com> References: <87273DB23407D511B8900008C7FA923301405D70@EXCHANGE> <3E3FE209.4020709@quadrix.com> Message-ID: <3E404977.5080902@machturtle.com> I'm just thinking that there OUGHT to be an option from the UI. Russell Scibetti wrote: > You don't need to stop and start Nagios to reload the configs. You > can HUP the nagios process (which is what the init script does when > you tell nagios to "reload"). There is no option to do this from the > UI, but the restart would also cause a reload of the configs, if they > have no errors in them. > > Russell > > Aleksey Domorad wrote: > >> Reload Config == stop + start >> IMHO >> >> -----Original Message----- >> From: David Corbin [ mailto:dcorbin at machturtle.com ] >> Sent: Tuesday, February 04, 2003 6:56 AM >> To: nagios-users at lists.sourceforge.net >> Subject: [Nagios-users] Web-command to reload config >> >> >> Is there a web-command to reload the configuration? I see one for >> restarting the Nagios process and shutting it down, but not reloading.... >> >> Thanks >> David >> >> >> >> ------------------------------------------------------- >> This SF.NET email is sponsored by: >> SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >> http://www.vasoftware.com _______________________________________________ >> >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> > >-- >Russell Scibetti >Quadrix Solutions, Inc. >http://www.quadrix.com >(732) 235-2335, ext. 7038 > > > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Jarett_DeAngelis at fujifilm.com Wed Feb 5 00:14:19 2003 From: Jarett_DeAngelis at fujifilm.com (Jarett DeAngelis) Date: Tue, 04 Feb 2003 18:14:19 -0500 Subject: SMB server and Citrix server service check? Message-ID: Where are those contrib plugins, and how do I use them? Just stick them in libexec and set up a check for them? The plugins project seems to be kind of short on documentation... Thanks >>> Subhendu Ghosh 02/04/03 03:49PM >>> On Wed, 29 Jan 2003, Jarett DeAngelis wrote: > Hi all, > > I'm looking for a service check I can use to verify that SMB servers > and/or Citrix Winframe servers are functioning. Does anyone know which > I should use and how? > > Thanks, Jarett DeAngelis > > (Olivier: I'm almost done, just need some way to verify that these three > hosts I added are functioning properly) > plugins-scripts/check_disk_smb contrib/check_smb.sh contrib/tarballs/check_cit.tgz -- -sg ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jcarro10 at sprintspectrum.com Tue Feb 4 23:36:13 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Tue, 4 Feb 2003 16:36:13 -0600 Subject: Different args for different times Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F2545@PKDWB03C.ad.sprint.com> Why not use NRPE/nrpe.cfg? It looks to me like you could be using NRPE. You would then call check_load on the remote host (backup_host) using check_nrpe. On the remote host (backup_host) you would have 2 versions of nrpe.cfg. One version would define check_load with args 6,6,6 8,8,8, the other with args 2,2,2 4,4,4. A cronjob would copy nrpe.cfg.low overtop nrpe.cfg at one time of day, and another cronjob would copy nrpe.cfg.high overtop nrpe.cfg. If you're running the nrpe daemon from (x)inetd, you're done, otherwise you'll also need to restart the standalone daemon. Food for thought. jc > -----Original Message----- > From: Subhendu Ghosh [mailto:sghosh at sghosh.org] > Sent: Tuesday, February 04, 2003 2:58 PM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Different args for different times > > > not easy in the current setup. > > easiest would be to write a wrapper which checks localtime and calls > check_load with the approriate args... > > -sg > > On Tue, 4 Feb 2003, Russell Scibetti wrote: > > > I want to have a service defined that runs a different > command depending > > on the timeperiod. Example: > > > > define service{ > > use GenericService > > host_name backup_host > > service_description Load > > check_command check_load!6,6,6!8,8,8 > > check_period backup_times > > } > > > > define service{ > > use GenericService > > host_name backup_host > > service_description Load > > check_command check_load!2,2,2!4,4,4 > > check_period nonbackup_times > > } > > > > However, Nagios yells about there being 2 services with the > same name. > > I tried renaming the first one to backupLoad, which works > except that > > if the service is critical at the end of the timeperiod, it > continues to > > display a critical after the backup_times timeperiod is > over. Is there > > anyway around this? Ideally I would like them to have the > same name, so > > that during one timeperiod, one set of args is used and > during the other > > timeperiod, the different set is used. Any help would be > appreciated. > > > > Russell Scibetti > > > > > > -- > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From nagios.dm at wrhambrecht.com Wed Feb 5 00:07:42 2003 From: nagios.dm at wrhambrecht.com (DM) Date: Tue, 4 Feb 2003 15:07:42 -0800 Subject: Stange problem checking https Message-ID: <000801c2cca2$38c46b00$bb20a8c0@corp.wrhambrecht.com> Subhendu, Exactly! So the question is, why does Nagios indicate a "warning" status for this particular service? As mentioned in the original post, I am monitoring several other hosts with similar services and Nagios has no problem with them. Only the one Nagios process is running. David Current Status: WARNING (Has been acknowledged) Status Information: HTTP ok: HTTP/1.0 200 OK - 0.404 second response time Current Attempt: 3/3 State Type: HARD Last Check Type: ACTIVE Last Check Time: 02-04-2003 15:02:39 Status Data Age: 0d 0h 4m 27s Next Scheduled Active Check: 02-04-2003 15:07:31 Latency: < 1 second Check Duration: < 1 second Last State Change: 01-27-2003 10:27:32 Current State Duration: 8d 4h 39m 34s Last Service Notification: 01-27-2003 12:27:32 Current Notification Number: 3 Is This Service Flapping? N/A Percent State Change: N/A In Scheduled Downtime? NO Last Update: 02-04-2003 15:07:01 > -----Original Message----- > From: Subhendu Ghosh [mailto:sghosh at sghosh.org] > Sent: Tuesday, February 04, 2003 2:42 PM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Stange problem checking https > > > > Everything looks ok from the plugin > > - are you sure you don't have multiple nagios proceses running? > a stop/start may clear it up. > > -sg > > > On Tue, 4 Feb 2003, DM wrote: > > > Subhendu, > > > > Here's the output you requested: > > > > > > $/apps/nagios/libexec> ./check_http -V > > check_http (nagios-plugins 1.3.0-beta2) 1.12 > > > > $/apps/nagios/libexec> /apps/nagios/libexec/check_http -v > -S -I hosta.mydomain.com -H intranet.mydomain.com -u > '/eqo/auction?act=login&cusip=45673456' -t 40 -e 200 > > > > Page is 5882 characters -------------- next part -------------- An HTML attachment was scrubbed... URL: From dcorbin at machturtle.com Wed Feb 5 00:18:28 2003 From: dcorbin at machturtle.com (David Corbin) Date: Tue, 04 Feb 2003 18:18:28 -0500 Subject: Different args for different times In-Reply-To: <3E40360E.5040704@quadrix.com> References: <3E40360E.5040704@quadrix.com> Message-ID: <3E404A44.4060400@machturtle.com> Or, what I want, which is time-based notification....or maybe even time-based + severity. Russell Scibetti wrote: > I just gave in and did it that way. > > Maybe something to keep in mind for future Nagios features - Time > based command/arguments. > > Russell > > Subhendu Ghosh wrote: > >>not easy in the current setup. >> >>easiest would be to write a wrapper which checks localtime and calls >>check_load with the approriate args... >> >>-sg >> >>On Tue, 4 Feb 2003, Russell Scibetti wrote: >> >> >> >>>I want to have a service defined that runs a different command depending >>>on the timeperiod. Example: >>> >>>define service{ >>> use GenericService >>> host_name backup_host >>> service_description Load >>> check_command check_load!6,6,6!8,8,8 >>> check_period backup_times >>> } >>> >>>define service{ >>> use GenericService >>> host_name backup_host >>> service_description Load >>> check_command check_load!2,2,2!4,4,4 >>> check_period nonbackup_times >>> } >>> >>>However, Nagios yells about there being 2 services with the same name. >>> I tried renaming the first one to backupLoad, which works except that >>>if the service is critical at the end of the timeperiod, it continues >>> to >>>display a critical after the backup_times timeperiod is over. Is there >>>anyway around this? Ideally I would like them to have the same name, so >>>that during one timeperiod, one set of args is used and during the other >>>timeperiod, the different set is used. Any help would be appreciated. >>> >>>Russell Scibetti >>> >>> >>> >>> >> >> >> > >-- >Russell Scibetti >Quadrix Solutions, Inc. >http://www.quadrix.com >(732) 235-2335, ext. 7038 > > > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From williamw at xeye.com Wed Feb 5 00:30:40 2003 From: williamw at xeye.com (William Wang) Date: Tue, 4 Feb 2003 18:30:40 -0500 Subject: How to add nsclient on a Solaris box Message-ID: <80D04B82394BC54BAEEA0869E80E02D942127F@mail.xeye.com> Hi all, Who can shed me a light about how to install nsclient on a Solaris8 box. I have nagios1.0 running on it. I don't know how to add this plugin so as to monitor Windows NT servers. I downloaded NSclient at http://nsclient.ready2run.nl/ Please send me a e-mail at: williamw at xeye.com Thank you very much for your help! ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From ericblumenau at techtvcorp.com Wed Feb 5 01:01:03 2003 From: ericblumenau at techtvcorp.com (ericblumenau at techtvcorp.com) Date: Tue, 4 Feb 2003 16:01:03 -0800 Subject: Nagios and Web Interface Message-ID: <88256CC3.00821CCC.00@zdtvmta.techtvcorp.com> Greetings all, I'm having some problems with the web interface and executing external commands. I've followed the instructions in the documentation. The permissions on the directory that holds the command file are: drwxrwsr-- 2 nagios nagios 512 Feb 4 15:46 logs Here are the permissions for the command file: prw-rw---- 1 nagios nagios 0 Feb 4 15:44 nagios.cmd My apache is running as user nobody. This user is also a member of the nagios group. I have these two lines in my main Nagios config file: check_external_commands=1 command_check_interval=20s I can tail my command file and see commands entered when I click through the web interface. Here is a command that I just sent and caught in a tail -f: [1044402248] DISABLE_SVC_NOTIFICATIONS;townsend-edge;Aliveness I've certainly waited more than 20s to see the change go through. In fact, I haven't seen a change in over an hour. The mailing-list archives don't seem to be working and Google has let me down on this. Is there a known issue on the web interface and external commands? If you reply to the nagios list, please cc: me in at ericblumenau at techtvcorp.com I don't want to miss your response amongst the voluminous daily summaries. Thanks, Eric PLEASE NOTE: This message, including any attachments, may include privileged, confidential and/or inside information. Any distribution or use of this communication by anyone other than the intended recipient(s) is strictly prohibited and may be unlawful. If you are not the intended recipient, please notify the sender by replying to this message and then delete it from your system. Thank you. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Stanley.Hopcroft at IPAustralia.Gov.AU Wed Feb 5 01:01:55 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Wed, 5 Feb 2003 11:01:55 +1100 Subject: UPS Monitoring In-Reply-To: ; from sghosh@sghosh.org on Tue, Feb 04, 2003 at 03:19:59PM -0500 References: <20030117231915.M78563@4wx.net> Message-ID: <20030205110149.F1594@IPAustralia.Gov.AU> On Tue, Feb 04, 2003 at 03:19:59PM -0500, Subhendu Ghosh wrote: > First you need a daemon to monitor the status on the serial port - > Take a look at Network UPS Tools on exploits.org. > > Once you have NUT running, you can use check_ups in the standard > plugin > dist to monitor the state of the UPS via NUT. > > -sg > or (possibly) have the UPS send a trap that Nag accepts as a passive service check result. See UCD-SNMP (NET-SNMP) Integration in the docs. Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From rplewe at hpce.nec.com Wed Feb 5 01:03:08 2003 From: rplewe at hpce.nec.com (Rasmus Plewe) Date: Wed, 5 Feb 2003 01:03:08 +0100 Subject: Web-command to reload config In-Reply-To: <3E404977.5080902@machturtle.com>; from dcorbin@machturtle.com on Tue, Feb 04, 2003 at 06:15:03PM -0500 References: <87273DB23407D511B8900008C7FA923301405D70@EXCHANGE> <3E3FE209.4020709@quadrix.com> <3E404977.5080902@machturtle.com> Message-ID: <20030205010308.B1471@hpce.nec.com> On Tue, Feb 04, 2003 at 06:15:03PM -0500, David Corbin wrote: > Russell Scibetti wrote: > > > You don't need to stop and start Nagios to reload the configs. You > > can HUP the nagios process (which is what the init script does when > > you tell nagios to "reload"). There is no option to do this from the > > UI, but the restart would also cause a reload of the configs, if they > > have no errors in them. > > > I'm just thinking that there OUGHT to be an option from the UI. But there is, if I interpret UI == user interface correctly: $ killall -HUP nagios or $ /etc/init.d/nagios restart Shells are really such powerfull user interfaces, don't you agree? Rasmus ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From karl at debisschop.net Wed Feb 5 01:49:29 2003 From: karl at debisschop.net (Karl DeBisschop) Date: 04 Feb 2003 19:49:29 -0500 Subject: Web-command to reload config In-Reply-To: <9EA0F1554816EB499A4B1136B80E8DE27804A8@storevis.datavis.se> References: <9EA0F1554816EB499A4B1136B80E8DE27804A8@storevis.datavis.se> Message-ID: <1044406168.19831.12.camel@localhost.localdomain> On Tue, 2003-02-04 at 07:34, Fredrik W?nglund wrote: > It's necessary to restart nagios if you want to reload the config. kill -HUP works too -- Karl ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From karl at debisschop.net Wed Feb 5 01:53:03 2003 From: karl at debisschop.net (Karl DeBisschop) Date: 04 Feb 2003 19:53:03 -0500 Subject: Running into problems with check_snmp In-Reply-To: <5593DA408212D511B0910002A513501F01D288D9@phsexch20.mgh.harvard.edu> References: <5593DA408212D511B0910002A513501F01D288D9@phsexch20.mgh.harvard.edu> Message-ID: <1044406383.19831.15.camel@localhost.localdomain> On Tue, 2003-02-04 at 10:20, Kaplan, Andrew H. wrote: > I am trying to monitor a remote printer with the check_snmp command. > I have installed the net-snmp package > on the Nagios server. The printer in question has the default > community name of public. When I run the snmpget > command manually I do get information about the remote host. Here is > the command syntax and its output: > > snmpget -v 1 -c public 132.183.220.26 sysDescr.0 > > SNMPv2-MIB::sysDescr.0 = STRING: Tektronix, Inc., Phaser > 750N, PhaserShare Series B Network Interface, (5.62/11.100/10/2.28) > > The problem I am running into is getting the check_snmp > script to work. When I run it either automatically or manually I get the > message > SNMP Problem - No Data Received from the host > > Here is the syntax that I used to run check_snmp: > > ./check_snmp -H 132.183.220.26 try ./check_snmp -H 132.183.220.26 -C public -o sysDescr.0 -- Karl ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sghosh at sghosh.org Wed Feb 5 02:25:39 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 04 Feb 2003 20:25:39 -0500 (EST) Subject: SMB server and Citrix server service check? In-Reply-To: References: Message-ID: They are in the contrib directory of the plugins package - check_cit was added yesterday - so the only way to get it is through the CVS interface. most of the contrib plugins contain some doc in the source about how to install and any pre-requisites -sg On Tue, 4 Feb 2003, Jarett DeAngelis wrote: > Where are those contrib plugins, and how do I use them? Just stick them > in libexec and set up a check for them? > > The plugins project seems to be kind of short on documentation... > > Thanks > > >>> Subhendu Ghosh 02/04/03 03:49PM >>> > On Wed, 29 Jan 2003, Jarett DeAngelis wrote: > > > Hi all, > > > > I'm looking for a service check I can use to verify that SMB servers > > and/or Citrix Winframe servers are functioning. Does anyone know which > > I should use and how? > > > > Thanks, Jarett DeAngelis > > > > (Olivier: I'm almost done, just need some way to verify that these three > > hosts I added are functioning properly) > > > > plugins-scripts/check_disk_smb > contrib/check_smb.sh > contrib/tarballs/check_cit.tgz > > -- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sghosh at sghosh.org Wed Feb 5 02:29:01 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 04 Feb 2003 20:29:01 -0500 (EST) Subject: UPS Monitoring In-Reply-To: <20030205110149.F1594@IPAustralia.Gov.AU> References: <20030205110149.F1594@IPAustralia.Gov.AU> Message-ID: On Wed, 5 Feb 2003, Stanley Hopcroft wrote: > > > On Tue, Feb 04, 2003 at 03:19:59PM -0500, Subhendu Ghosh wrote: > > First you need a daemon to monitor the status on the serial port - > > Take a look at Network UPS Tools on exploits.org. > > > > Once you have NUT running, you can use check_ups in the standard > > plugin > > dist to monitor the state of the UPS via NUT. > > > > -sg > > > > or (possibly) have the UPS send a trap that Nag accepts as a passive > service check result. See UCD-SNMP (NET-SNMP) Integration in the docs. > > Yours sincerely. > NUT doesn't do SNMP out - serial/usb/snmp to the ups -- -sg ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From gwichman at zantaz.com Wed Feb 5 02:34:11 2003 From: gwichman at zantaz.com (Gerald Wichmann) Date: Tue, 4 Feb 2003 17:34:11 -0800 Subject: Multiple lines of data in Status field? Message-ID: <12C7D768CC8ED4118A9200508BEEC6FB02CB41DA@zanexch.zantaz.com> I once got nagios to show multiple lines in the status field. Not sure how that happened though..somehow I was assigning the output of a command like "wc -l *.log" to a variable like OUTPUT, then echo'ing that output as the status for my little check script. In Nagios it showed up in the status field as each file having it's own line.. I was surprised to see it but now I can't recall how I got it to do that. Is there a trick to formatting the output of a check script to show several lines? Gerald Wichmann Senior Systems Development Engineer Zantaz, Inc. 925.598.3099 (w) This e-mail has been captured and archived by the ZANTAZ Digital Safe(tm) service. For more information, visit us at www.zantaz.com. IMPORTANT: This electronic mail message is intended only for the use of the individual or entity to which it is addressed and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by telephone or directly reply to the original message(s) sent. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sghosh at sghosh.org Wed Feb 5 02:32:56 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 04 Feb 2003 20:32:56 -0500 (EST) Subject: Nagios and Web Interface In-Reply-To: <88256CC3.00821CCC.00@zdtvmta.techtvcorp.com> References: <88256CC3.00821CCC.00@zdtvmta.techtvcorp.com> Message-ID: command_check_interval should be just an integer "20" not "20s" This is probably a bug in the flight-check routine for not catching it. -sg On Tue, 4 Feb 2003 ericblumenau at techtvcorp.com wrote: > > > > Greetings all, > I'm having some problems with the web interface and executing > external commands. I've followed the instructions in the documentation. > The permissions on the directory that holds the command file are: > drwxrwsr-- 2 nagios nagios 512 Feb 4 15:46 logs > > Here are the permissions for the command file: > prw-rw---- 1 nagios nagios 0 Feb 4 15:44 nagios.cmd > > My apache is running as user nobody. This user is also a member of > the nagios group. > > I have these two lines in my main Nagios config file: > check_external_commands=1 > command_check_interval=20s > > I can tail my command file and see commands entered when I click > through the web interface. Here is a command that I just sent and > caught in a tail -f: > [1044402248] DISABLE_SVC_NOTIFICATIONS;townsend-edge;Aliveness > > I've certainly waited more than 20s to see the change go through. In > fact, I haven't seen a change in over an hour. The mailing-list > archives don't seem to be working and Google has let me down on this. > Is there a known issue on the web interface and external commands? > > If you reply to the nagios list, please cc: me in at > ericblumenau at techtvcorp.com I don't want to miss your response amongst > the voluminous daily summaries. > > Thanks, > Eric > > > -- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sghosh at sghosh.org Wed Feb 5 03:18:47 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 04 Feb 2003 21:18:47 -0500 (EST) Subject: Multiple lines of data in Status field? In-Reply-To: <12C7D768CC8ED4118A9200508BEEC6FB02CB41DA@zanexch.zantaz.com> References: <12C7D768CC8ED4118A9200508BEEC6FB02CB41DA@zanexch.zantaz.com> Message-ID: The output of a plugin is usually limited to 512 bytes and can be separate into 2 parts - line 1 is the OUTPUT that goes into the log everything from line2 (specially after the | ) goes into PERFDATA. -sg On Tue, 4 Feb 2003, Gerald Wichmann wrote: > I once got nagios to show multiple lines in the status field. Not sure how > that happened though..somehow I was assigning the output of a command like > "wc -l *.log" to a variable like OUTPUT, then echo'ing that output as the > status for my little check script. In Nagios it showed up in the status > field as each file having it's own line.. I was surprised to see it but now > I can't recall how I got it to do that. Is there a trick to formatting the > output of a check script to show several lines? > > Gerald Wichmann > Senior Systems Development Engineer > Zantaz, Inc. > 925.598.3099 (w) > > -- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From securityguy at ikano.com Wed Feb 5 03:20:04 2003 From: securityguy at ikano.com (Robert S. Galloway) Date: Tue, 4 Feb 2003 19:20:04 -0700 Subject: Network traffic plugin? In-Reply-To: References: Message-ID: <000201c2ccbd$182924b0$ddd0d0cd@pendleton> I haven't seen this check_rrd_data plugin... Where is it? Robert S. Galloway Network Security Engineer IKANO Communications ...the Internet branding company Official Data Networking Services Provider for the Salt Lake Olympic Winter Games of 2002 securityguy at ikano.com Usualy MRTG or other RRDTool based packages are used to monitor traffic. You can then use check_mrtgtraf/check_rrd_data plugins for alerts. -- -sg ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sghosh at sghosh.org Wed Feb 5 03:22:37 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 04 Feb 2003 21:22:37 -0500 (EST) Subject: Network traffic plugin? In-Reply-To: <000201c2ccbd$182924b0$ddd0d0cd@pendleton> References: <000201c2ccbd$182924b0$ddd0d0cd@pendleton> Message-ID: nagiosplug/contrib directory. On Tue, 4 Feb 2003, Robert S. Galloway wrote: > I haven't seen this check_rrd_data plugin... Where is it? > > Robert S. Galloway > Network Security Engineer > IKANO Communications > ...the Internet branding company > Official Data Networking Services Provider for the > Salt Lake Olympic Winter Games of 2002 > securityguy at ikano.com > > > > Usualy MRTG or other RRDTool based packages are used to monitor traffic. > You can then use check_mrtgtraf/check_rrd_data plugins for alerts. > > -- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sghosh at sghosh.org Wed Feb 5 03:25:47 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 04 Feb 2003 21:25:47 -0500 (EST) Subject: ./configure script outcome check In-Reply-To: References: Message-ID: On Tue, 28 Jan 2003, Raj Mudhar wrote: > Hi, > > I have just used the ./configure command after gunzipping the files and adding a user etc. > > Most of the lines as a result of the script say yes apart from the following few. > > checking wither the C compiler (gcc ) is a cross-compiler. . . no > checking for uio.h ..... no > checking return type of signal handlers ... void > > Then everything else is fine and in the Configuration summary for nagios > 1.0 (not using beta) it says embedded perl no > > I installed Redhat 8.0 with the EVERYTHING. > > Is this fine or did the configure script not run accuratly. > > Regards > Is fine.. So did you try the next step - "make all" http://nagios.sourceforge.net/docs/1_0/installing.html -- -sg ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From joe at westnet.net.au Wed Feb 5 03:43:58 2003 From: joe at westnet.net.au (Joe Wooller) Date: Wed, 5 Feb 2003 10:43:58 +0800 Subject: Downtime Notices Message-ID: <00c901c2ccc0$85d919e0$fa05a8c0@slampt> Hi Guys, Just a quick question. Is there any qiuck way to delete a heap of downtime notices at once? EG for a whol hostgroup. I know you can add a heap at once but I can't find a way to remove them. Regards Joe -------------- next part -------------- An HTML attachment was scrubbed... URL: From Stanley.Hopcroft at IPAustralia.Gov.AU Wed Feb 5 04:14:18 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Wed, 5 Feb 2003 14:14:18 +1100 Subject: Multiple lines of data in Status field? In-Reply-To: ; from sghosh@sghosh.org on Tue, Feb 04, 2003 at 09:18:47PM -0500 References: <12C7D768CC8ED4118A9200508BEEC6FB02CB41DA@zanexch.zantaz.com> Message-ID: <20030205141411.I1594@IPAustralia.Gov.AU> Dear Gentlemen, I think there are a number of factors, 1 The maximum buffer space Nag allocates to store the output of a plugin 2 How much of the plugin output it captures (to save in the buffer), obviously <= 1 The value for 1 is given by #define MAX_PLUGINOUTPUT_LENGTH 352 in common/objects.h The value for 2 is found in base/checks.c /* grab the plugin output and clean it */ fgets(plugin_output,sizeof(plugin_output)-1,fp); strip(plugin_output); ie Nag uses fgets to get the smaller of one 'line' of output and the MAX_PLUGINOUTPUT_LENGTH number of characters. Further input and output in the IPC mechanism (is it named pipe ?) may further reduce the number of characters handed to the CGIs or the notifcation/logging processes and these in turn may have their own limits. However, since it seems to me that Nag uses exclusively the safe forms of buffer and string copying (strncpy etc), you could . Have your plugin substitute all new line characters in its output for spaces or '.' (leaving only a traling \n) and . hand that to Nag for processing (by returning it as the output). This works quite Ok for me. Here's an example :- To sum up, you can't get multi-line, but you can get quite a lot more than one line of 80 chars. Ok. 7 DCs responded [IPOZ IPA04 CBR1 IPABETA IPA02 IPA03 IPA01] to \MAILSLOT\NET\NETLOGON. "CBR1" validated "stan2". Lanman logon script "\kixtart\kickstart.bat". Connected to "\\IPA02\PD_NEW_DATA \\IPA02\Apps32 \\IPA04\SMALLSYSTEM \\IPA04\Apps16 \\IPA04\ITSBUILTAPPS ". tsitc> cat | wc -c Ok. 7 DCs responded [IPOZ IPA04 CBR1 IPABETA IPA02 IPA03 IPA01] to \MAILSLOT\NET\NETLOGON. "CBR1" validated "stan2". Lanman logon script "\kixtart\kickstart.bat". Connected to "\\IPA02\PD_NEW_DATA \\IPA02\Apps32 \\IPA04\SMALLSYSTEM \\IPA04\Apps16 \\IPA04\ITSBUILTAPPS ". 272 tsitc> On Tue, Feb 04, 2003 at 09:18:47PM -0500, Subhendu Ghosh wrote: > The output of a plugin is usually limited to 512 bytes and can be separate > into 2 parts - line 1 is the OUTPUT that goes into the log > everything from line2 (specially after the | ) goes into PERFDATA. > > -sg > > On Tue, 4 Feb 2003, Gerald Wichmann wrote: > > > I once got nagios to show multiple lines in the status field. Not sure how > > that happened though..somehow I was assigning the output of a command like > > "wc -l *.log" to a variable like OUTPUT, then echo'ing that output as the > > status for my little check script. In Nagios it showed up in the status > > field as each file having it's own line.. I was surprised to see it but now > > I can't recall how I got it to do that. Is there a trick to formatting the > > output of a check script to show several lines? > > > > Gerald Wichmann > > Senior Systems Development Engineer > > Zantaz, Inc. > > 925.598.3099 (w) > > > > > Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From karl at debisschop.net Wed Feb 5 06:49:39 2003 From: karl at debisschop.net (Karl DeBisschop) Date: 05 Feb 2003 00:49:39 -0500 Subject: Stange problem checking https In-Reply-To: <000801c2cbab$cb898a30$bb20a8c0@corp.wrhambrecht.com> References: <000801c2cbab$cb898a30$bb20a8c0@corp.wrhambrecht.com> Message-ID: <1044424178.19831.328.camel@localhost.localdomain> On Mon, 2003-02-03 at 12:43, DM wrote: > > -----Original Message----- > > From: Karl DeBisschop [mailto:karl at debisschop.net] > > Sent: Sunday, February 02, 2003 10:23 AM > > To: DM > > Cc: nagios-users at lists.sourceforge.net > > Subject: Re: [Nagios-users] Stange problem checking https > > > > > > On Sat, 2003-02-01 at 20:09, DM wrote: > > > Hi Karl, > > > > > > Unfortunately the app in question is on an intranet and not > publicly > > > available. > > > > > > With your direction, I'll be happy to perform additional > diagnostics > > > and send you the output. > > > > I was hoping to save you the compile etc. But, alas, I cannot. > > > > My first step would be to download the current CVS tree, build the > > plugins, and try that. As I had noted, the http plugin has > > been revised > > several times, and some possibly relevent code was fixed. > > OK, I downloaded the current CVS tree and built the plugins. > Unfortunately, I think the new check_http module ((nagios-plugins > 1.3.0-beta2) 1.19 )has a bug in it which prevents the SSL option from > working at all: > > $ ./check_http -w 5 -c 10 www.verisign.com > HTTP ok: HTTP/1.1 200 OK - 0.354 second response time |time= 0.354 > $ ./check_http -w 5 -c 10 --ssl www.verisign.com > Segmentation Fault > > gdb ./check_http > (gdb) run -w 5 -c 10 --ssl www.verisign.com > Starting program: /temp/nagios/libexec/./check_http -w 5 -c 10 > --ssl www.verisign.com > > Program received signal SIGSEGV, Segmentation fault. > asprintf (ptr=0x0, format=0x17290 "%s") at snprintf.c:836 > 836 *ptr = NULL; > (gdb) backtrace > #0 asprintf (ptr=0x0, format=0x17290 "%s") at snprintf.c:836 > #1 0x13d80 in connect_SSL () at check_http.c:923 > #2 0x13aa0 in check_http () at check_http.c:552 > #3 0x1218c in main (argc=168960, argv=0x0) at check_http.c:271 > (gdb) > > Looks like the connect_SSL function is sending a null pointer to > asprintf, making it segfault. I'm commiting fixes for the segfault - thanks for pointing it out. > Since I've verified earlier on that check_http is indeed returning the > correct value to Nagios, > I don't think the issue here is specifically with the check_http > plugin, but rather something > with how Nagios deals with this particular host/service. I missed the echo $? in your previous posts, and mistakenly concluded that the plugin was returning a diferent status than its message showed.. This does seem strange. I can't think of any mechanism that could cause this. Maybe stoppong nagios and clearing all saved states might eliminate another possible problem. -- Karl ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From brendan at dbinformatics.com.au Wed Feb 5 08:39:07 2003 From: brendan at dbinformatics.com.au (Brendan) Date: Wed, 05 Feb 2003 18:39:07 +1100 Subject: basic upgrade advice Message-ID: <3E415A4B.13428.65D5F65@localhost> Could somebody please explain in newbie language how to upgrade from 1.0b6 to 1.0 Many thanks Brendan ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From gbiondi at tech2.it Wed Feb 5 09:20:08 2003 From: gbiondi at tech2.it (Giorgio Biondi) Date: Wed, 5 Feb 2003 09:20:08 +0100 Subject: I want migrate to Nagios but... Message-ID: Hi, I want migrate my hosts checking on Nagios software, but I want use my bb-client installed on my Windows2000 server...someone known if this is possible without re-install software client? Giorgio Biondi Tech2 S.r.l. gbiondi at tech2.it http://www.tech2.it ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From gbiondi at tech2.it Wed Feb 5 09:26:41 2003 From: gbiondi at tech2.it (Giorgio Biondi) Date: Wed, 5 Feb 2003 09:26:41 +0100 Subject: I want migrate to Nagios but... Message-ID: Hi, I want migrate my hosts checking on Nagios software, but I want use my bb-client installed on my Windows2000 server...someone known if this is possible without re-install software client? Giorgio Biondi Tech2 S.r.l. gbiondi at tech2.it http://www.tech2.it ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From tdeblend at gcc.dhl.com Wed Feb 5 10:21:06 2003 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Wed, 05 Feb 2003 10:21:06 +0100 Subject: I want migrate to Nagios but... References: Message-ID: <3E40D782.2953C6EC@gcc.dhl.com> You might want to give this a try: http://bulldog.tzo.org/netsaint/. But I'd use NSClient if I were you... Giorgio Biondi wrote: > > Hi, > > I want migrate my hosts checking on Nagios software, but I want use my > bb-client installed on > my Windows2000 server...someone known if this is possible without re-install > software client? > > Giorgio Biondi > Tech2 S.r.l. > gbiondi at tech2.it > http://www.tech2.it > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From brendon at iwg.info Wed Feb 5 10:48:25 2003 From: brendon at iwg.info (Brendon Caligari) Date: Wed, 5 Feb 2003 10:48:25 +0100 Subject: Pretty images for nagios Message-ID: Thanks to all those who helped out with the nagios image issues :-) Is there a 'cache' of nagios friendly images? Pictures of routers/operating systems/nice pics of mail servers, etc. Maybe it there isn't, it'd be pretty cool to find some location where users can contribute distributable images. B. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From me at ame.de Wed Feb 5 11:54:13 2003 From: me at ame.de (Matthias Eichler) Date: 05 Feb 2003 11:54:13 +0100 Subject: Bug in Nagios orphan-check?! Message-ID: <1044442453.664.84.camel@blindzero> Hi List, I have some Nagios 1.0 installed on a Debian 3 Woody. The machine is some Intel Celeron 700 MHz with 256 MB of RAM. The setup was doing really well for some long time, but now I get some severe problems more or less every five days. Today we had some connection problems to some remote farm. But Nagios didnt send out host-down notifications, it said this in its event log: "Warning: The check of service 'blabla' on host 'blabla' looks like it was orphaned (results never came back). I'm scheduling an immediate check of the service..." Since this first entry Nagios reported this warning with EVERY service check, about 142 times... At this time I tried to get on the web interface and got no connect, the SSH login took very long, what I am not wondering about, because the box had a load of 7.83! I saw that there were about 80 nagios processes in the list. They were not stopped by some /etc/init.d/nagios stop, I had to kill them all. In dmesg I see entries like: --- Feb 5 11:12:14 ozzy kernel: Out of Memory: Killed process 18026 (apache). Feb 5 11:12:20 ozzy kernel: Out of Memory: Killed process 18022 (apache). --- or --- Feb 5 11:21:48 ozzy kernel: request_module[net-pf-10]: waitpid(13304,...) failed, errno 512 Feb 5 11:21:48 ozzy kernel: request_module[net-pf-10]: waitpid(13305,...) failed, errno 512 Feb 5 11:21:48 ozzy kernel: request_module[net-pf-10]: waitpid(13306,...) failed, errno 512 --- I think there might be some bug, because also the remote site is not available Nagios should warn us about it and not confuse the box like this...?!? Any ideas?!? Greetings from Munich, Matthias -- Mit freundlichen Gr??en AME Aigner Media & Entertainment GmbH Matthias Eichler Leiter Technik | Technical Director _______________________________________ AME? Aigner Media & Entertainment GmbH Bavariaring 8 D-80336 M?nchen Tel [+49] ?89.427 05 - 330 Fax [+49] ?89.427 05 - 400 http://ame.de eMail: me at ame.de _______________________________________ Angaben nach TDG|GmbHG:ame.de/impressum -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: From zimplton at hotmail.com Wed Feb 5 12:09:39 2003 From: zimplton at hotmail.com (Brian Lemm) Date: Wed, 05 Feb 2003 11:09:39 +0000 Subject: Stupid question..sorry Message-ID: I just installed Nagios and ran the config script to migrate my netsaint hosts.cfg file to the multitude of files for Nagios. What is happening now though is that the computers I have set up for service monitoring are working fine but the servers that just have check_ping running are all coming up with Host not found (IP address). I can ping the IP address from the command line and if I run check_ping from the command line it works. Anyone have any ideas? Thanks for the help _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From twelsh at square-box.com Wed Feb 5 13:47:41 2003 From: twelsh at square-box.com (Tom Welsh) Date: Wed, 5 Feb 2003 12:47:41 -0000 Subject: Pretty images for nagios In-Reply-To: References: Message-ID: <000e01c2cd14$c55335c0$0400a8c0@squarebox.com> Hi Brendon, You can get the images from the image pack part of the nagios download site at.. http://www.nagios.org/download/ make sure that after you have decompressed the images you copy them to /path-to-nagios/share/images/logos/ mine is /usr/local/nagios/share/images/logos/ hope this helps Tom Welsh twelsh at square-box.com -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Brendon Caligari Sent: 05 February 2003 09:48 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Pretty images for nagios Thanks to all those who helped out with the nagios image issues :-) Is there a 'cache' of nagios friendly images? Pictures of routers/operating systems/nice pics of mail servers, etc. Maybe it there isn't, it'd be pretty cool to find some location where users can contribute distributable images. B. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld =omething 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Stanley.G.Martin at mail.sprint.com Wed Feb 5 14:14:55 2003 From: Stanley.G.Martin at mail.sprint.com (Stanley.G.Martin at mail.sprint.com) Date: Wed, 5 Feb 2003 07:14:55 -0600 Subject: Monitoring Crystal Enterprise Message-ID: Anybody out there monitoring Crystal Enterprise 8.5? If so, what. I've taken some of Crystal's sample web pages from their SDK and am using them to check the APS and some metrics. However, if Crystal is very busy running jobs, my script times out and notifies me of a problem when there is none.. Since my plugin on the Nagios side is a Perl script performing an HTTP::Request, is the timeout adjustable in Nagios or is that a question for my Perl mailing lists? Stanley G. Martin Sprint - EIS? Customer Care Stanley.G.Martin at mail.sprint.com ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Robert.Wagner at wausaubenefits.com Wed Feb 5 14:39:46 2003 From: Robert.Wagner at wausaubenefits.com (Robert Wagner) Date: Wed, 5 Feb 2003 07:39:46 -0600 Subject: Nagios-users digest, Vol 1 #1279 - 16 msgs Message-ID: Heya all, Rob Wagner, the NTray guy here. Just wanted to make a quick note that I've released NTray 0.92b for download... It's a simple bugfix to make sound work, otherwise is functionally identical to v0.92. To enable sounds: 1) Turn on sound in the NTray 'Config' screen. 2) Make sure that in your NTray directory, there is a .WAV file called 'red.wav', 'yellow.wav', and/or 'green.wav'. These will be played when NTray's status color changes. Sorry about the bug.. I don't usually use sound myself, but I've had a number of complaints about it. Rob Wagner rob[at]robandsara.com This communication is intended only for the recipient(s) named above; may be confidential and/or legally privileged; and, must be treated as such in accordance with state and federal laws. If you are not the intended recipient, you are hereby notified that any use of this communication, or any of its contents, is prohibited. If you have received this communication in error, please return it to Robert Wagner and delete the message from your computer system. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From amartins at embratel.net.br Wed Feb 5 14:46:59 2003 From: amartins at embratel.net.br (Alessandro Martins) Date: Wed, 5 Feb 2003 11:46:59 -0200 Subject: Build errors In-Reply-To: <20030130130519.GA15915@embratel.net.br> References: <20030130130519.GA15915@embratel.net.br> Message-ID: <20030205134659.GA599@embratel.net.br> On Thu, Jan 30, 2003 at 11:05:19AM -0200, Alessandro Martins wrote: [cutted] > /tmp/ccwTxqaG.s:3414: Warning: Unrecognized .section attribute: want a,w,x > /tmp/ccwTxqaG.s:3414: Warning: Unrecognized .section attribute: want a,w,x > /tmp/ccwTxqaG.s:3414: Error: Rest of line ignored. First ignored character > is `,'. > /tmp/ccwTxqaG.s:4212: Warning: Unrecognized .section attribute: want a,w,x > /tmp/ccwTxqaG.s:4212: Warning: Unrecognized .section attribute: want a,w,x > /tmp/ccwTxqaG.s:4212: Error: Rest of line ignored. First ignored character > is `,'. > make[1]: *** [checks.o] Error 1 > make[1]: Leaving directory `/usr/local/desenv/nagios/nagios-1.0/base' > make: *** [all] Error 2 > > My system is a Red Hat Linux release 7.2, my kernel version is 2.4.19 and > I ran the configure script like: [cutted] Hello, If anyone have the same problem you can find the resolution for this bug at: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=58631 -- Alessandro Fernandes Martins EMBRATEL - Internet Server Management tel: +55 21 2121-[2906] ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From atul at mindsw.com Wed Feb 5 15:49:24 2003 From: atul at mindsw.com (Atul Gosain) Date: Wed, 05 Feb 2003 20:19:24 +0530 Subject: snmp monitoring[OT] Message-ID: <3E412474.8090207@mindsw.com> Hi Im monitoring cisco server through Nagios. I have to monitor temperature and other environmental variables for cisco. Does somebody have an idea how can we enable environmental monitoring on cisco through SNMP. I searched a lot on cisco's site but could not find it. Also is there anyplugin written which monitors other aspects of cisco apart from interface status. Thanks Atul -- --------------------------------------- Mindframe Software & Services Pvt. Ltd. A-50, Sector-39, NOIDA, U.P. - 201301 Ph.: +91-120-4500369, 4575991, 4576970 http://www.mindsw.com --------------------------------------- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From nsedley at dircon.co.uk Wed Feb 5 16:05:08 2003 From: nsedley at dircon.co.uk (Neil Sedley) Date: Wed, 5 Feb 2003 15:05:08 -0000 Subject: I want migrate to Nagios but... References: <3E40D782.2953C6EC@gcc.dhl.com> Message-ID: <00bc01c2cd27$f9677200$9c0c618c@lgu.ac.uk> I use bbnt2ns ( http://bulldog.tzo.org/netsaint ) and it works as advertised. No re-installation is required. Just change the client to send messages to your Nagios host rather than your BB host. Be aware, the service names are case sensitive, so the services on your Nagios host must be 'msgs' 'svcs' 'cpu' 'disk' and 'procs' to match the messages sent by the BB client. ----- Original Message ----- From: "Tom DE BLENDE" To: "Giorgio Biondi" Cc: Sent: Wednesday, February 05, 2003 9:21 AM Subject: Re: [Nagios-users] I want migrate to Nagios but... > You might want to give this a try: http://bulldog.tzo.org/netsaint/. > But I'd use NSClient if I were you... > > Giorgio Biondi wrote: > > > > Hi, > > > > I want migrate my hosts checking on Nagios software, but I want use my > > bb-client installed on > > my Windows2000 server...someone known if this is possible without re-install > > software client? > > > > Giorgio Biondi > > Tech2 S.r.l. > > gbiondi at tech2.it > > http://www.tech2.it > > > > ------------------------------------------------------- > > This SF.NET email is sponsored by: > > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > > http://www.vasoftware.com > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From stevox2000 at yahoo.com Wed Feb 5 16:13:45 2003 From: stevox2000 at yahoo.com (=?iso-8859-1?q?Steve=20Dussaux?=) Date: Wed, 5 Feb 2003 16:13:45 +0100 (CET) Subject: Reporting stuff Message-ID: <20030205151345.44111.qmail@web10901.mail.yahoo.com> I'd like to make a script that will gather and print informations from different Nagios cgi (hosts and services availability, trends, alert history...). The purpose of this script is to print monthly stats (by a cron job) without using the web interface. How can i proceed to have this result without too much scripting stuff effort ? Steve ___________________________________________________________ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran?ais ! Yahoo! Mail : http://fr.mail.yahoo.com ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From james.harrison at amcg.com Wed Feb 5 16:41:31 2003 From: james.harrison at amcg.com (James Harrison) Date: 05 Feb 2003 09:41:31 -0600 Subject: Availability Report HowTo or Feature Request Message-ID: <1044459691.5574.8.camel@localhost.localdomain> List, I'm using Nagios to monitor several groups of devices (routers,switches,servers,etc). My management has asked for an average monthly uptime for all the various groups of devices. Is there an easy way to create a summarization of the monthly uptime for a hostgroup. For example how can I calculate the average monthly uptime for all the routers. (Not each individual one,but the group as a whole). I'm currently going through some gyrations with OpenOffice to make this work, but it sure would be a nice feature to include a line at the top of the availability table that says "Average uptime for is for the period of " -- James Harrison RHCA, CCNA ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sghosh at sghosh.org Wed Feb 5 16:55:46 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Wed, 05 Feb 2003 10:55:46 -0500 (EST) Subject: snmp monitoring[OT] In-Reply-To: <3E412474.8090207@mindsw.com> References: <3E412474.8090207@mindsw.com> Message-ID: Attached is a cisco power/temp/fan monitor. It is going to be merged with a similar juniper monitor and is not in the distrib as yet. check_bgpstate in the contrib dir can monitor the bgp peering relationships on any router. -sg On Wed, 5 Feb 2003, Atul Gosain wrote: > Hi > > Im monitoring cisco server through Nagios. I have to monitor temperature > and other environmental variables for cisco. Does somebody have an idea > how can we enable environmental monitoring on cisco through SNMP. I > searched a lot on cisco's site but could not find it. > Also is there anyplugin written which monitors other aspects of cisco > apart from interface status. > > Thanks > Atul > > -- -------------- next part -------------- #!/usr/bin/perl -wT # # check_xinterface - nagios plugin # # largely based upon check_ifoperstatus.pl plugin by Christoph Kron # # # # # Copyright (C) 2002 Guy Van Den Bergh # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # # # Report bugs to: guy at belnet.be # # design of the plugin: # check admin status: if down, then warning; exit # check operational status: if down, then critical; exit # check last change, if within 'tolerance' (-l or --last-change option), # then warning # get performance data: bits in/out, etc... (implementation to be scheduled later) # performance data could be checked against older values (bw drops e.g.) use strict; use Net::SNMP; use Getopt::Long; &Getopt::Long::config('auto_abbrev'); my $status; my $TIMEOUT = 60; my %ERRORS = ('UNKNOWN' , '-1', 'OK' , '0', 'WARNING', '1', 'CRITICAL', '2'); my %ciscoEnvMonState = ('1','normal(1)', '2','warning(2)', '3','critical(3)', '4','shutdown(4)', '5','notPresent(5)', '6','notFunctioning(6)'); my $state = "UNKNOWN"; my $answer = ""; my $snmpkey = 1; my $community = "public"; my $port = 161; my $t_oid; my @snmpoids; my %error_oids; my $snmpCiscoVoltageStatus; my $snmpCiscoTemperatureStatus; my $snmpCiscoFanStatus; my $snmpCiscoSupplyStatus; my $hostname; my $session; my $error; my $response; my $value; my $oid; my @voltage_errors; my @temperature_errors; my @fan_errors; my @supply_errors; sub usage { printf "\nMissing arguments!\n"; printf "\n"; printf "Perl Check Cisco Environment plugin for Nagios\n"; printf "checks status of temperature, fans, ...\n"; printf "usage: \n"; printf "check_cisco_env -c -p "; printf "\nCopyright (C) 2002 Guy Van Den Bergh\n"; printf "check_cisco_env comes with ABSOLUTELY NO WARRANTY\n"; printf "This programm is licensed under the terms of the "; printf "GNU General Public License\n(check source code for details)\n"; printf "\n\n"; exit $ERRORS{"UNKNOWN"}; } # Just in case of problems, let's not hang Nagios $SIG{'ALRM'} = sub { print ("ERROR: No snmp response from $hostname (alarm)\n"); exit $ERRORS{"UNKNOWN"}; }; alarm($TIMEOUT); $status = GetOptions("community=s",\$community, "port=i",\$port); if ($status == 0) { &usage; } #shift; $hostname = shift || &usage; ($session, $error) = Net::SNMP->session( -hostname => $hostname, -community => $community, -port => $port ); if (!defined($session)) { $state='UNKNOWN'; $answer=$error; print ("$state: $answer"); exit $ERRORS{$state}; } $snmpCiscoVoltageStatus = '.1.3.6.1.4.1.9.9.13.1.2.1.7'; $snmpCiscoTemperatureStatus = '.1.3.6.1.4.1.9.9.13.1.3.1.6'; $snmpCiscoFanStatus = '.1.3.6.1.4.1.9.9.13.1.4.1.3'; $snmpCiscoSupplyStatus = '.1.3.6.1.4.1.9.9.13.1.5.1.3'; push(@snmpoids,$snmpCiscoVoltageStatus); push(@snmpoids,$snmpCiscoTemperatureStatus); push(@snmpoids,$snmpCiscoFanStatus); push(@snmpoids,$snmpCiscoSupplyStatus); # # These four oids all have the same syntax, # which makes it easy for scripting all four oids at the same time! # $answer = "No data returned (Environment MIB not supported)"; # This will be overwritten when there IS data returned! TABLE: foreach $t_oid (@snmpoids) { # # Now get all relevant oids, and set the plugin output status accordingly. # if (!defined($response = $session->get_table($t_oid))) { $error_oids{$t_oid} = $session->error; next TABLE; } while ( ($oid, $value) = each %$response ) { if ($value == 1 || $value == 5 || $value == 6) { # normal, notPresent or notFunctioning $state = 'OK' if $state =~ /UNKNOWN/; $answer = "All environment variables normal." if $state eq 'OK'; } elsif ($value == 2) { # warning $error_oids{$oid} = $ciscoEnvMonState{$value}; $state = 'WARNING' unless $state =~ /CRITICAL/; } elsif ($value == 3 || $value == 4) { # critical or shutdown $error_oids{$oid} = $ciscoEnvMonState{$value}; $state = 'CRITICAL' } } } $session->close; ## Here is the place for introducing artificial errors (for debugging). # # Now parse all erroneous responses: # unless ($state eq 'OK' or $state eq 'UNKNOWN') { while ( ($oid, $value) = each %error_oids ) { $value =~ s/\(\d\)//; if ($oid =~ /$snmpCiscoVoltageStatus\./) { $oid =~ s/$snmpCiscoVoltageStatus\.//; push(@voltage_errors, "$value (instance $oid)"); } elsif($oid =~ /$snmpCiscoTemperatureStatus\./) { $oid =~ s/$snmpCiscoTemperatureStatus\.//; push(@temperature_errors, "$value (instance $oid)"); } elsif ($oid =~ /$snmpCiscoFanStatus\./) { $oid =~ s/$snmpCiscoFanStatus\.//; push(@fan_errors, "$value (fan $oid)"); } elsif ($oid =~ /$snmpCiscoSupplyStatus\./) { $oid =~ s/$snmpCiscoSupplyStatus\.//; push(@supply_errors, "$value (PS $oid)"); } } # # And now the final formatting of the output: # my $voltage_errors_s = join ";", @voltage_errors if defined $voltage_errors[0]; my $temperature_errors_s = join ";", @temperature_errors if defined $temperature_errors[0]; my $fan_errors_s = join ";", @fan_errors if defined $fan_errors[0]; my $supply_errors_s = join ";", @supply_errors if defined $supply_errors[0]; $answer = "Problems with:
"; $answer .= "Voltage: " . $voltage_errors_s . "
" if defined $voltage_errors_s; $answer .= "Temperature: " . $temperature_errors_s . "
" if defined $temperature_errors_s; $answer .= "Fans: " . $fan_errors_s . "
" if defined $fan_errors_s; $answer .= "Power Supply: " . $supply_errors_s ."
" if defined $supply_errors_s; } print ("$answer\n"); exit $ERRORS{$state}; From wgong at smu.edu.sg Wed Feb 5 16:54:30 2003 From: wgong at smu.edu.sg (GONG Wei) Date: Wed, 5 Feb 2003 23:54:30 +0800 Subject: [Q] template based wildcard object configuration Message-ID: <108506BDA45F1F45AA6EDE147A27FC0102013E40@mail1.smu.edu.sg> Hi all, I was trying nagios 1.0, md5 checksum (9f95388c59b34c06745870fd2012388e nagios-1.0.tar.gz), on Linux Redhat 7.2. Things went smoothly, but I couldn't get wildcard template object config work. I was trying the sample as shown in http://nagios.sourceforge.net/docs/1_0/templatetricks.html#hostgroup. So basically I have a config file etc/hostgroup_all-ap.cfg which is listed in the main nagios.cfg file. The content of this hostgroup_all-ap.cfg is listed below: ========================= define service{ use generic-service hostgroup_name all-ap service_description AP_Management is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 3 retry_check_interval 1 contact_groups citops notification_interval 120 notification_period 24x7 notification_options w,u,c,r check_command check_http } define hostgroup{ hostgroup_name all-ap alias All Wireless AP contact_groups citnet members * } define host{ use generic-host host_name 1200-RAF-04-04 alias AP1200 (Raffles level 4, 4th) address 202.161.56.104 } define host{ use generic-host host_name 352e-MM-03-01 alias AP352E (MM level 3, 1st) address 202.161.56.48 } ========================= The nagios was configured as: ./configure \ --with-mail=/bin/mail \ --with-init-dir=/etc/rc.d/init.d \ --with-gd-lib=/usr/lib \ --with-gd-inc=/usr/include \ --with-perlcache Before I type "make all", the summary screen looks something like this: External Data Routines: ------------------------ Status data: Default (text file) Object data: Template-based (text file) Comment data: Default (text file) Downtime data: Default (text file) Retention data: Default (text file) Peformance data: Default (external commands) Extended info data: Template-based (text file) Hope I didn't bore you with all the unnecessary details. Anyway what I intend to achieve is something like this: A. there will be a hostgroup called all-ap, which should contains all wireless AP B. each wireless AP will be added individually, and will be named as 1200-xxxx or 352e-xxxxx depends on its model. No other hosts will be named in this way. C. it would be good if any newly added AP could be automatically included into the all-ap hostgroup as long as their name conforms to the above mentioned convention. D. to certain extent I actually couldn't afford a blind "*" in production environment since we need to monitor more than wireless AP. Unless this "*" only refers to hosts defined in the same file as the hostgroup definition. Regards ========== Gong Wei (+65 68220120, wgong at smu.edu.sg) Office of CIT, SMU free Thawte Personal Email Cert: http://www.thawte.com/ GnuPG key: http://www.keyserver.net/en/ Standard Disclaimer: The contents of this Email and any attachments are confidential and may be privileged or otherwise protected from disclosure. Unauthorized use, review, distribution and copying of this Email and any attachments herein are prohibited. If this Email has been transmitted to you in error or you are not the addressee indicated in this Email, please delete it immediately and notify the sender. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From ericblumenau at techtvcorp.com Wed Feb 5 17:38:36 2003 From: ericblumenau at techtvcorp.com (ericblumenau at techtvcorp.com) Date: Wed, 5 Feb 2003 08:38:36 -0800 Subject: Nagios and Web Interface Message-ID: <88256CC4.005999B3.00@zdtvmta.techtvcorp.com> Good morning Mr. Ghosh, Thanks for the quick reply. I pulled that 's' from the documentation: http://nagios.sourceforge.net/docs/1_0/configmain.html#command_check_interval I have the default interval_length of 60 seconds and I wanted to check for external commands more frequently than that. Thus the "20s" entry. I will try it with an integer and see if that works. Eric Subhendu Ghosh wrote: > command_check_interval should be just an integer "20" not "20s" > > This is probably a bug in the flight-check routine for not catching it. > > -sg > > On Tue, 4 Feb 2003 ericblumenau at techtvcorp.com wrote: > > >> >> >>Greetings all, >>I'm having some problems with the web interface and executing >>external commands. I've followed the instructions in the documentation. >> The permissions on the directory that holds the command file are: >>drwxrwsr-- 2 nagios nagios 512 Feb 4 15:46 logs >> >> Here are the permissions for the command file: >>prw-rw---- 1 nagios nagios 0 Feb 4 15:44 nagios.cmd >> >> My apache is running as user nobody. This user is also a member of >>the nagios group. >> >> I have these two lines in my main Nagios config file: >>check_external_commands=1 >>command_check_interval=20s >> >> I can tail my command file and see commands entered when I click >>through the web interface. Here is a command that I just sent and >>caught in a tail -f: >>[1044402248] DISABLE_SVC_NOTIFICATIONS;townsend-edge;Aliveness >> >> I've certainly waited more than 20s to see the change go through. In >>fact, I haven't seen a change in over an hour. The mailing-list >>archives don't seem to be working and Google has let me down on this. >>Is there a known issue on the web interface and external commands? >> >> If you reply to the nagios list, please cc: me in at >>ericblumenau at techtvcorp.com I don't want to miss your response amongst >>the voluminous daily summaries. >> >>Thanks, >>Eric >> >> >> > > PLEASE NOTE: This message, including any attachments, may include privileged, confidential and/or inside information. Any distribution or use of this communication by anyone other than the intended recipient(s) is strictly prohibited and may be unlawful. If you are not the intended recipient, please notify the sender by replying to this message and then delete it from your system. Thank you. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jmarquart at planalytics.com Wed Feb 5 17:52:01 2003 From: jmarquart at planalytics.com (jmarquart at planalytics.com) Date: Wed, 5 Feb 2003 11:52:01 -0500 Subject: Feture Req: checklist style multiple service selection Message-ID: <85256CC4.005CA7A9.00@mailhost.planalytics.com> Something that I would greatly appreciate in my daily duties, is the ability to select sets of services from a host (or ideally perhaps multiple services from multiple hosts) and manipulate then in a group as i might individually. i.e. I frequently acknowledge a problem, disable notifications / checks on several related services. Currently I must select a service, select the appropriate action, and commit. Repeat with each service until done. If I could (using checklist or something similar) select multiple services and in one step apply the appropriate action - that would be fantastic! I do not believe currently there is any ability to perform such an action. (Please correct me if i am wrong.) -john ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From dushy at symonds.net Wed Feb 5 18:42:14 2003 From: dushy at symonds.net (Dushyanth Harinath) Date: Wed, 5 Feb 2003 23:12:14 +0530 Subject: recovery alerts Message-ID: <20030205174214.GA5185@directi.com> Hi guys, I have service escalations defined as given below. define service{ use generic-service host_name testserver service_description SSH is_volatile 0 check_period 24x7 max_check_attempts 5 normal_check_interval 5 retry_check_interval 1 contact_groups support notification_interval 5 notification_period 24x7 notification_options w,u,c,r check_command check_ssh } define serviceescalation{ host_name * service_description * first_notification 2 last_notification 2 notification_interval 20 contact_groups sysad-l1 } define serviceescalation{ host_name * service_description * first_notification 3 last_notification 3 notification_interval 0 contact_groups sysad-l2 } The critical/warning notifications are working fine. Now assume that a service problem occurs for 13 mts, then nagios sends a critical notification to the "support" contact group after 5 mts and after 10 mts to the contact group sysad-l1. But after the service recovers the recovery notification is only sent to the sysad-l1 contact group and not also to the support contact group. Why is this so?, should'nt all the contact groups who have been notified about the problem get a recovery notification too. Is there something wrong with my configuration or is this the way it is supposed to work ?. TIA Regards Dushyanth.H -- Bad command or file name! Go stand in the corner. http://symonds.net/~dushy ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From nagios.dm at wrhambrecht.com Wed Feb 5 18:44:33 2003 From: nagios.dm at wrhambrecht.com (DM) Date: Wed, 5 Feb 2003 09:44:33 -0800 Subject: Stange problem checking https Message-ID: <000801c2cd3e$3ead81e0$bb20a8c0@corp.wrhambrecht.com> Karl, I've shut down Nagios, cleared the contents of the /nagios/var/status.sav file to remove all state info, and started Nagios back up and here's what happened in the nagios.log: [1044465653] SERVICE ALERT: host-a;HTTPS;WARNING;SOFT;1;HTTP ok: HTTP/1.0 200 OK - 0.235 second response time [1044465713] SERVICE ALERT: host-a;HTTPS;WARNING;SOFT;2;HTTP ok: HTTP/1.0 200 OK - 0.246 second response time [1044465773] SERVICE ALERT: host-a;HTTPS;WARNING;HARD;3;HTTP ok: HTTP/1.0 200 OK - 0.240 second response time [1044465773] SERVICE NOTIFICATION: adminuser1;host-a;HTTPS;WARNING;notify-by-skytel;HTTP ok: HTTP/1.0 200 OK - 0.240 second response time [1044465774] SERVICE NOTIFICATION: adminuser1;host-a;HTTPS;WARNING;notify-by-email;HTTP ok: HTTP/1.0 200 OK - 0.240 second response time [1044465775] SERVICE NOTIFICATION: adminuser2;host-a;HTTPS;WARNING;notify-by-email;HTTP ok: HTTP/1.0 200 OK - 0.240 second response time Any other thoughts? Is there information cached anywhere else that could be having an effect? David > -----Original Message----- > From: Karl DeBisschop [mailto:karl at debisschop.net] > Sent: Tuesday, February 04, 2003 9:50 PM > To: DM > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Stange problem checking https > > I missed the echo $? in your previous posts, and mistakenly concluded > that the plugin was returning a diferent status than its message > showed.. > > This does seem strange. I can't think of any mechanism that > could cause > this. > > Maybe stoppong nagios and clearing all saved states might eliminate > another possible problem. > > -- > Karl -------------- next part -------------- An HTML attachment was scrubbed... URL: From jlyons30 at yahoo.com Wed Feb 5 18:49:26 2003 From: jlyons30 at yahoo.com (Jon Lyons) Date: Wed, 5 Feb 2003 09:49:26 -0800 (PST) Subject: system availability avail.cgi Message-ID: <20030205174926.83301.qmail@web21505.mail.yahoo.com> Jon Lyons wrote: Here's what I use from Chet Luther....I use his script to create a weekly html report thats emailed to everyone, and a daily snap shot.... "Williams, P. Lane" wrote: I've seen on the mailing list where someone has written scripts to gather information from the avail.cgi script and produce output for emailing. I was wondering if I could get my hands on the script? Management has tasked me to prove that Nagios can generate reports for specified times of day, like between 7:00 a.m. and 6:30 p.m. I know if I manually figure out the epoch times I can enter that in the url and get what I am looking for, but I need to be able to generate reports via a cron job and send to management on a daily bases. And I really have no idea how to call the cgi in a script and produce the output to another file. Thanks for any help, Lane ------------------------------------------------------- This SF.NET email is sponsored by: Thawte.com - A 128-bit supercerts will allow you to extend the highest allowed 128 bit encryption to all your clients even if they use browsers that are limited to 40 bit encryption. Get a guide here:http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0030en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now > ATTACHMENT part 2 application/octet-stream name=daily-avail-stats.pl > ATTACHMENT part 3 application/octet-stream name=avail-stats.pl > ATTACHMENT part 4 application/octet-stream name=weekly-avail-stats.pl --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From dushy at symonds.net Wed Feb 5 19:01:44 2003 From: dushy at symonds.net (Dushyanth Harinath) Date: Wed, 5 Feb 2003 23:31:44 +0530 Subject: 3-D status map error Message-ID: <20030205180144.GA5328@directi.com> Hi guys, Iam trying to get the 3-D status map working but iam getting this error on the cortona console.. name expected File: http://192.168.1.123:8080/cgi-bin/nagios/statuswrl.cgi?host=all Line: 865 Column: 13 Iam using cgi authentication and this particular user is a contact for every host. And when i login as a user who is a contact for a single host the 3-D status map cgi works without any problem. The default_statuswrl_layout option in cgi.cfg is set to 3 ( Balanced tree ). Any suggestions , how can i rectify this ? TIA Regards Dushyanth -- http://symonds.net/~dushy ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From gwichman at zantaz.com Wed Feb 5 19:40:09 2003 From: gwichman at zantaz.com (Gerald Wichmann) Date: Wed, 5 Feb 2003 10:40:09 -0800 Subject: Multiple lines of data in Status field? Message-ID: <12C7D768CC8ED4118A9200508BEEC6FB02CB41DD@zanexch.zantaz.com> I *definetly* saw multiple lines. I.e. not just wrapped-around. Somehow it imbedded a newline AND nagios displayed it on the other end in the status field. I'm trying to reproduce it again but so far haven't had any luck. Gerald Wichmann Senior Systems Development Engineer Zantaz, Inc. 925.598.3099 (w) -----Original Message----- From: Stanley Hopcroft [mailto:Stanley.Hopcroft at IPAustralia.Gov.AU] Sent: Tuesday, February 04, 2003 7:14 PM To: Subhendu Ghosh Cc: Gerald Wichmann; Nagios (E-mail) Subject: Re: [Nagios-users] Multiple lines of data in Status field? Dear Gentlemen, I think there are a number of factors, 1 The maximum buffer space Nag allocates to store the output of a plugin 2 How much of the plugin output it captures (to save in the buffer), obviously <= 1 The value for 1 is given by #define MAX_PLUGINOUTPUT_LENGTH 352 in common/objects.h The value for 2 is found in base/checks.c /* grab the plugin output and clean it */ fgets(plugin_output,sizeof(plugin_output)-1,fp); strip(plugin_output); ie Nag uses fgets to get the smaller of one 'line' of output and the MAX_PLUGINOUTPUT_LENGTH number of characters. Further input and output in the IPC mechanism (is it named pipe ?) may further reduce the number of characters handed to the CGIs or the notifcation/logging processes and these in turn may have their own limits. However, since it seems to me that Nag uses exclusively the safe forms of buffer and string copying (strncpy etc), you could . Have your plugin substitute all new line characters in its output for spaces or '.' (leaving only a traling \n) and . hand that to Nag for processing (by returning it as the output). This works quite Ok for me. Here's an example :- To sum up, you can't get multi-line, but you can get quite a lot more than one line of 80 chars. Ok. 7 DCs responded [IPOZ IPA04 CBR1 IPABETA IPA02 IPA03 IPA01] to \MAILSLOT\NET\NETLOGON. "CBR1" validated "stan2". Lanman logon script "\kixtart\kickstart.bat". Connected to "\\IPA02\PD_NEW_DATA \\IPA02\Apps32 \\IPA04\SMALLSYSTEM \\IPA04\Apps16 \\IPA04\ITSBUILTAPPS ". tsitc> cat | wc -c Ok. 7 DCs responded [IPOZ IPA04 CBR1 IPABETA IPA02 IPA03 IPA01] to \MAILSLOT\NET\NETLOGON. "CBR1" validated "stan2". Lanman logon script "\kixtart\kickstart.bat". Connected to "\\IPA02\PD_NEW_DATA \\IPA02\Apps32 \\IPA04\SMALLSYSTEM \\IPA04\Apps16 \\IPA04\ITSBUILTAPPS ". 272 tsitc> On Tue, Feb 04, 2003 at 09:18:47PM -0500, Subhendu Ghosh wrote: > The output of a plugin is usually limited to 512 bytes and can be separate > into 2 parts - line 1 is the OUTPUT that goes into the log > everything from line2 (specially after the | ) goes into PERFDATA. > > -sg > > On Tue, 4 Feb 2003, Gerald Wichmann wrote: > > > I once got nagios to show multiple lines in the status field. Not sure how > > that happened though..somehow I was assigning the output of a command like > > "wc -l *.log" to a variable like OUTPUT, then echo'ing that output as the > > status for my little check script. In Nagios it showed up in the status > > field as each file having it's own line.. I was surprised to see it but now > > I can't recall how I got it to do that. Is there a trick to formatting the > > output of a check script to show several lines? > > > > Gerald Wichmann > > Senior Systems Development Engineer > > Zantaz, Inc. > > 925.598.3099 (w) > > > > > Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. This e-mail has been captured and archived by the ZANTAZ Digital Safe(tm) service. For more information, visit us at www.zantaz.com. IMPORTANT: This electronic mail message is intended only for the use of the individual or entity to which it is addressed and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by telephone or directly reply to the original message(s) sent. Thank you. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From brendon at iwg.info Wed Feb 5 20:29:34 2003 From: brendon at iwg.info (Brendon Caligari) Date: Wed, 5 Feb 2003 20:29:34 +0100 Subject: ./var/rw/nagios.cmd permissions Message-ID: [rh73, nagios 1.0 from source] Was getting permission errors when trying to use the external command interface. Worked around the issue by changing the group for /var/rw/nagios.cmd to 'apache'. I searched the 'fm' and config files to see what I could have possibly missed but couldn't figure out where I went wrong. Searched google but didn't come across anything helpful. thanks Brendon -------------- next part -------------- An HTML attachment was scrubbed... URL: From slebrun at muskoka.com Wed Feb 5 20:33:48 2003 From: slebrun at muskoka.com (Shayne Lebrun) Date: Wed, 5 Feb 2003 14:33:48 -0500 Subject: Multiple lines of data in Status field? In-Reply-To: <12C7D768CC8ED4118A9200508BEEC6FB02CB41DD@zanexch.zantaz.com> References: <12C7D768CC8ED4118A9200508BEEC6FB02CB41DD@zanexch.zantaz.com> Message-ID: Put in a
where you want newlines, and the HTML should render out, no? -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Gerald Wichmann Sent: Wednesday, February 05, 2003 1:40 PM To: 'Stanley Hopcroft'; Subhendu Ghosh Cc: Nagios (E-mail) Subject: RE: [Nagios-users] Multiple lines of data in Status field? I *definetly* saw multiple lines. I.e. not just wrapped-around. Somehow it imbedded a newline AND nagios displayed it on the other end in the status field. I'm trying to reproduce it again but so far haven't had any luck. Gerald Wichmann Senior Systems Development Engineer Zantaz, Inc. 925.598.3099 (w) -----Original Message----- From: Stanley Hopcroft [mailto:Stanley.Hopcroft at IPAustralia.Gov.AU] Sent: Tuesday, February 04, 2003 7:14 PM To: Subhendu Ghosh Cc: Gerald Wichmann; Nagios (E-mail) Subject: Re: [Nagios-users] Multiple lines of data in Status field? Dear Gentlemen, I think there are a number of factors, 1 The maximum buffer space Nag allocates to store the output of a plugin 2 How much of the plugin output it captures (to save in the buffer), obviously <= 1 The value for 1 is given by #define MAX_PLUGINOUTPUT_LENGTH 352 in common/objects.h The value for 2 is found in base/checks.c /* grab the plugin output and clean it */ fgets(plugin_output,sizeof(plugin_output)-1,fp); strip(plugin_output); ie Nag uses fgets to get the smaller of one 'line' of output and the MAX_PLUGINOUTPUT_LENGTH number of characters. Further input and output in the IPC mechanism (is it named pipe ?) may further reduce the number of characters handed to the CGIs or the notifcation/logging processes and these in turn may have their own limits. However, since it seems to me that Nag uses exclusively the safe forms of buffer and string copying (strncpy etc), you could . Have your plugin substitute all new line characters in its output for spaces or '.' (leaving only a traling \n) and . hand that to Nag for processing (by returning it as the output). This works quite Ok for me. Here's an example :- To sum up, you can't get multi-line, but you can get quite a lot more than one line of 80 chars. Ok. 7 DCs responded [IPOZ IPA04 CBR1 IPABETA IPA02 IPA03 IPA01] to \MAILSLOT\NET\NETLOGON. "CBR1" validated "stan2". Lanman logon script "\kixtart\kickstart.bat". Connected to "\\IPA02\PD_NEW_DATA \\IPA02\Apps32 \\IPA04\SMALLSYSTEM \\IPA04\Apps16 \\IPA04\ITSBUILTAPPS ". tsitc> cat | wc -c Ok. 7 DCs responded [IPOZ IPA04 CBR1 IPABETA IPA02 IPA03 IPA01] to \MAILSLOT\NET\NETLOGON. "CBR1" validated "stan2". Lanman logon script "\kixtart\kickstart.bat". Connected to "\\IPA02\PD_NEW_DATA \\IPA02\Apps32 \\IPA04\SMALLSYSTEM \\IPA04\Apps16 \\IPA04\ITSBUILTAPPS ". 272 tsitc> On Tue, Feb 04, 2003 at 09:18:47PM -0500, Subhendu Ghosh wrote: > The output of a plugin is usually limited to 512 bytes and can be separate > into 2 parts - line 1 is the OUTPUT that goes into the log > everything from line2 (specially after the | ) goes into PERFDATA. > > -sg > > On Tue, 4 Feb 2003, Gerald Wichmann wrote: > > > I once got nagios to show multiple lines in the status field. Not sure how > > that happened though..somehow I was assigning the output of a command like > > "wc -l *.log" to a variable like OUTPUT, then echo'ing that output as the > > status for my little check script. In Nagios it showed up in the status > > field as each file having it's own line.. I was surprised to see it but now > > I can't recall how I got it to do that. Is there a trick to formatting the > > output of a check script to show several lines? > > > > Gerald Wichmann > > Senior Systems Development Engineer > > Zantaz, Inc. > > 925.598.3099 (w) > > > > > Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. This e-mail has been captured and archived by the ZANTAZ Digital Safe(tm) service. For more information, visit us at www.zantaz.com. IMPORTANT: This electronic mail message is intended only for the use of the individual or entity to which it is addressed and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by telephone or directly reply to the original message(s) sent. Thank you. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jason at cannonfodder.org Wed Feb 5 20:01:17 2003 From: jason at cannonfodder.org (Jason Burnett) Date: Wed, 5 Feb 2003 13:01:17 -0600 Subject: Distributed checking Message-ID: <20030205190117.GA11410@cannonfodder.org> o.k. I am using the distributed method with passive checks to monitor some hosts I have behind a firewall that I dont want to punch holes in. For some reason my central nagios server keeps running active checks on the hosts even though I have that disabled on a per service instance. So I end up with the service up when it gets the info via the passive tests then it goes critical when the central server tries to check it with an active test. Here is the service config from the central server: define service{ host_name pinky service_description SSH check_command check_ssh max_check_attempts 2 normal_check_interval 5 retry_check_interval 5 passive_checks_enabled 1 active_checks_enabled 0 check_period 24x7 flap_detection_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 notification_interval 1 notification_period 24x7 notification_options w,u,c,r notifications_enabled 1 check_freshness 1 freshness_threshold 180 contact_groups admins } -- begin .signature This is a .signature virus! Please copy me into your .signature! See Microsoft KB Article Q265230 for more information. end ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jnichols at pbp.net Wed Feb 5 21:00:08 2003 From: jnichols at pbp.net (Jonathan Nichols) Date: Wed, 5 Feb 2003 12:00:08 -0800 (PST) Subject: system availability avail.cgi In-Reply-To: <20030205174926.83301.qmail@web21505.mail.yahoo.com> References: <20030205174926.83301.qmail@web21505.mail.yahoo.com> Message-ID: > Here's what I use from Chet Luther....I use his script to create a weekly html report thats emailed to everyone, and a daily snap shot.... I don't think the attachment came through.... Any way that you could put them on a web page anywhere? :-) Or, mail them to me, I'd be happy to host them. Thanks! -Jonathan ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From henrique.leandro at varig.com Wed Feb 5 21:31:37 2003 From: henrique.leandro at varig.com (Henrique leandro) Date: 05 Feb 2003 18:31:37 -0200 Subject: ./var/rw/nagios.cmd permissions In-Reply-To: References: Message-ID: <1044477097.12593.8.camel@operacao> try chmod -R 777 /var/rw don't forget to erase the nagios.cmd before start nagios again best regards On Wed, 2003-02-05 at 17:29, Brendon Caligari wrote: > > > [rh73, nagios 1.0 from source] > > Was getting permission errors when trying to use the external command > interface. > > Worked around the issue by changing the group for > /var/rw/nagios.cmd to 'apache'. I searched the 'fm' and config > files to see what I could have possibly missed but couldn't figure out > where I went wrong. Searched google but didn't come across anything > helpful. > > thanks > > Brendon > > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From ken.snider at datawire.net Wed Feb 5 21:29:12 2003 From: ken.snider at datawire.net (Ken Snider) Date: Wed, 05 Feb 2003 15:29:12 -0500 Subject: Nagios "In the wild" Message-ID: <3E417418.7010308@datawire.net> Thought you all might like this: http://www.washingtonpost.com/wp-dyn/articles/A28625-2003Jan8.html It's an article on Symantec's NOC service. Have a look at the image attached to the story. A *close* look. Tactical Display anyone? :) --Ken. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From dgoldsmith at sans.org Wed Feb 5 21:52:07 2003 From: dgoldsmith at sans.org (David Goldsmith) Date: Wed, 5 Feb 2003 15:52:07 -0500 Subject: check_udp hangs Message-ID: <20030205155207.56c7739d.dgoldsmith@sans.org> I've installed nagios-1.0 and nagios-plugins-1.3.0-beta2 on a RedHat 7.3 system. Checks for various services running on TCP ports work. UDP service checks are failing. If I manually run './check_tcp -H -p , I get a near immediate response (assuming a service is listening) If I manually run check_udp the same way, it just sits there. It does not give up after the default timeout of 10 seconds. Running strace on the 2 binaries shows that check_udp appears to be hanging prior to the call to "signal (SIGALRM, socket_timeout_alarm_handler)" in the main routine. Any ideas? Dave Goldsmith ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Stanley.Hopcroft at IPAustralia.Gov.AU Wed Feb 5 22:00:29 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Thu, 6 Feb 2003 08:00:29 +1100 Subject: Monitoring Crystal Enterprise In-Reply-To: ; from Stanley.G.Martin@mail.sprint.com on Wed, Feb 05, 2003 at 07:14:55AM -0600 References: Message-ID: <20030206080019.A217@IPAustralia.Gov.AU> Dear Sir, I am writing to thank you for your letter and say, On Wed, Feb 05, 2003 at 07:14:55AM -0600, Stanley.G.Martin at mail.sprint.com wrote: > Anybody out there monitoring Crystal Enterprise 8.5? If so, what. I've > taken some of Crystal's sample web pages from their SDK and am using > them to check the APS and some metrics. However, if Crystal is very > busy running jobs, my script times out and notifies me of a problem when > there is none.. Timeouts are implemented both by Nag (to provide better performance by not waiting for slow plugins and _should_ be by the plugin. > Since my plugin on the Nagios side is a Perl script > performing an HTTP::Request, is the timeout adjustable in Nagios or is > that a question for my Perl mailing lists? It's adjustable by both. However since IIRC the timeout default in LWP::UserAgent is 300 secs, it's probably Nag. perldoc LWP::UserAgent http:///docs/configmain.html#service_check_timeout Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From mmontiel at bolchile.cl Wed Feb 5 23:04:56 2003 From: mmontiel at bolchile.cl (Mauricio Montiel G.) Date: Wed, 5 Feb 2003 18:04:56 -0400 Subject: Nagios "In the wild" References: <3E417418.7010308@datawire.net> Message-ID: <020301c2cd62$9e3556a0$2d900cc8@MMONTIEL> Even more, take a look at the Video Tour.... attached to the same note. MMG. ----- Original Message ----- From: "Ken Snider" To: Sent: Wednesday, February 05, 2003 4:29 PM Subject: [Nagios-users] Nagios "In the wild" > Thought you all might like this: > > http://www.washingtonpost.com/wp-dyn/articles/A28625-2003Jan8.html > > It's an article on Symantec's NOC service. Have a look at the image attached > to the story. A *close* look. Tactical Display anyone? :) > > --Ken. > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sandromergvaz at uol.com.br Wed Feb 5 22:06:02 2003 From: sandromergvaz at uol.com.br (Sandro Vaz (UOL)) Date: Wed, 5 Feb 2003 19:06:02 -0200 Subject: RES: ./var/rw/nagios.cmd permissions In-Reply-To: <1044477097.12593.8.camel@operacao> References: <1044477097.12593.8.camel@operacao> Message-ID: To solve definitely the problem, try this link... http://nagios.sourceforge.net/docs/1_0/commandfile.html If you just "chmod" the way shown below, the next time you restart Nagios, the problem will be back. Att. Sandro Vaz -----Mensagem original----- De: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] Em nome de Henrique leandro Enviada em: quarta-feira, 5 de fevereiro de 2003 18:32 Para: NAGIOS Assunto: Re: [Nagios-users] ./var/rw/nagios.cmd permissions try chmod -R 777 /var/rw don't forget to erase the nagios.cmd before start nagios again best regards On Wed, 2003-02-05 at 17:29, Brendon Caligari wrote: > > > [rh73, nagios 1.0 from source] > > Was getting permission errors when trying to use the external command > interface. > > Worked around the issue by changing the group for > /var/rw/nagios.cmd to 'apache'. I searched the 'fm' and > config files to see what I could have possibly missed but couldn't > figure out where I went wrong. Searched google but didn't come across > anything helpful. > > thanks > > Brendon > > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.449 / Virus Database: 251 - Release Date: 27/1/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.449 / Virus Database: 251 - Release Date: 27/1/2003 ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Stanley.Hopcroft at IPAustralia.Gov.AU Wed Feb 5 22:17:15 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Thu, 6 Feb 2003 08:17:15 +1100 Subject: Stange problem checking https In-Reply-To: <000801c2cd3e$3ead81e0$bb20a8c0@corp.wrhambrecht.com>; from nagios.dm@wrhambrecht.com on Wed, Feb 05, 2003 at 09:44:33AM -0800 References: <000801c2cd3e$3ead81e0$bb20a8c0@corp.wrhambrecht.com> Message-ID: <20030206081710.B217@IPAustralia.Gov.AU> Dear Sir, You may have to bite the bullet on this one and try tsitc> ./configure --help | tail --with-htmurl= sets URL for public html --enable-DEBUG0 shows function entry and exit --enable-DEBUG1 shows general info messages --enable-DEBUG2 shows warning messages --enable-DEBUG3 shows scheduled events (service and host checks... etc) --enable-DEBUG4 shows service and host notifications --enable-DEBUG5 shows SQL queries --enable-embedded-perl will enable embedded Perl interpreter --with-perlcache turns on cacheing of internally compiled Perl scripts --enable-cygwin enables building under the CYGWIN environment tsitc> building a Nag with DEBUG3 to get what Nag thinks the plugin is returning (probably with a different install path and a new config containing only the problem service). Before doing this, you may want to eliminate check_http as a factor by replacing it with check_dummy and see if the output is stable. Good luck. Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jcarro10 at sprintspectrum.com Wed Feb 5 23:06:25 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Wed, 5 Feb 2003 16:06:25 -0600 Subject: Nagios "In the wild" Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E143D@PKDWB03C.ad.sprint.com> Erm... wasn't this brought to the attention of the list back on Jan.9/03? jc > -----Original Message----- > From: Mauricio Montiel G. [mailto:mmontiel at bolchile.cl] > Sent: Wednesday, February 05, 2003 4:05 PM > To: Ken Snider; nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Nagios "In the wild" > > > Even more, take a look at the Video Tour.... attached to the > same note. > > MMG. > > ----- Original Message ----- > From: "Ken Snider" > To: > Sent: Wednesday, February 05, 2003 4:29 PM > Subject: [Nagios-users] Nagios "In the wild" > > > > Thought you all might like this: > > > > http://www.washingtonpost.com/wp-dyn/articles/A28625-2003Jan8.html > > > > It's an article on Symantec's NOC service. Have a look at the image > attached > > to the story. A *close* look. Tactical Display anyone? :) > > > > --Ken. > > > > > > > > ------------------------------------------------------- > > This SF.NET email is sponsored by: > > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > > http://www.vasoftware.com > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jcarro10 at sprintspectrum.com Wed Feb 5 23:25:54 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Wed, 5 Feb 2003 16:25:54 -0600 Subject: Bug in Nagios orphan-check?! Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E143F@PKDWB03C.ad.sprint.com> It *does* seem that you're running out of memory. Just a guess. You haven't mentioned how much RAM or swap you have on this machine. 80 nagios processes isn't much, considering I've had quite a bit more than that in the past. Granted, I'm also running with 1 GB of RAM and 2 GB of swap. You might want to consider adding more RAM and bump up your swap space. jc > -----Original Message----- > From: Matthias Eichler [mailto:me at ame.de] > Sent: Wednesday, February 05, 2003 4:54 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Bug in Nagios orphan-check?! > > > Hi List, > > I have some Nagios 1.0 installed on a Debian 3 Woody. The machine > is some Intel Celeron 700 MHz with 256 MB of RAM. > > The setup was doing really well for some long time, but now I get > some severe problems more or less every five days. > > Today we had some connection problems to some remote farm. But Nagios > didnt send out host-down notifications, it said this in its event log: > > "Warning: The check of service 'blabla' on host 'blabla' looks like > it was orphaned (results never came back). I'm scheduling an immediate > check of the service..." > Since this first entry Nagios reported this warning with EVERY service > check, about 142 times... > At this time I tried to get on the web interface and got no connect, > the SSH login took very long, what I am not wondering about, > because the > box had a load of 7.83! > I saw that there were about 80 nagios processes in the list. They were > not stopped by some /etc/init.d/nagios stop, I had to kill them all. > > In dmesg I see entries like: > --- > Feb 5 11:12:14 ozzy kernel: Out of Memory: Killed process 18026 > (apache). > Feb 5 11:12:20 ozzy kernel: Out of Memory: Killed process 18022 > (apache). > --- > or > --- > Feb 5 11:21:48 ozzy kernel: request_module[net-pf-10]: > waitpid(13304,...) failed, errno 512 > Feb 5 11:21:48 ozzy kernel: request_module[net-pf-10]: > waitpid(13305,...) failed, errno 512 > Feb 5 11:21:48 ozzy kernel: request_module[net-pf-10]: > waitpid(13306,...) failed, errno 512 > --- > > I think there might be some bug, because also the remote > site is not available Nagios should warn us about it and > not confuse the box like this...?!? > > Any ideas?!? > > Greetings from Munich, > > Matthias > > -- > > Mit freundlichen Gr??en > AME Aigner Media & Entertainment GmbH > > > Matthias Eichler > Leiter Technik | Technical Director > _______________________________________ > > AME? Aigner Media & Entertainment GmbH > Bavariaring 8 D-80336 M?nchen > > Tel [+49] ?89.427 05 - 330 > Fax [+49] ?89.427 05 - 400 > > http://ame.de eMail: me at ame.de > _______________________________________ > Angaben nach TDG|GmbHG:ame.de/impressum > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jcarro10 at sprintspectrum.com Wed Feb 5 23:26:59 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Wed, 5 Feb 2003 16:26:59 -0600 Subject: Stupid question..sorry Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1440@PKDWB03C.ad.sprint.com> Please provide a sample host entry stanza. jc > -----Original Message----- > From: Brian Lemm [mailto:zimplton at hotmail.com] > Sent: Wednesday, February 05, 2003 5:10 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Stupid question..sorry > > > I just installed Nagios and ran the config script to migrate > my netsaint > hosts.cfg file to the multitude of files for Nagios. What is > happening now > though is that the computers I have set up for service monitoring are > working fine but the servers that just have check_ping > running are all > coming up with Host not found (IP address). I can ping the > IP address from > the command line and if I run check_ping from the command > line it works. > Anyone have any ideas? > > Thanks for the help > > > > > > > _________________________________________________________________ > Protect your PC - get McAfee.com VirusScan Online > http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jcarro10 at sprintspectrum.com Wed Feb 5 23:32:57 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Wed, 5 Feb 2003 16:32:57 -0600 Subject: Reporting stuff Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1441@PKDWB03C.ad.sprint.com> In nagios.cfg: xpdfile_host_perfdata_file=/usr/local/nagios/var/hostperf.log xpdfile_host_perfdata_template=$TIMET$\t$HOSTNAME$\t$OUTPUT$\t$PERFDATA$ xpdfile_service_perfdata_file=/usr/local/nagios/var/serviceperf.log xpdfile_service_perfdata_template=$TIMET$\t$HOSTNAME$\t$SERVICEDESC$\t$OUTPU T$\t$PERFDATA$ You'll need to reconfigure: ./configure --with-file-perfdata Install the new binaries, as appropriate. Restart nagios. Take a look at the hostperf.log and serviceperf.log output. Slice and dice to your heart's content. jc > -----Original Message----- > From: Steve Dussaux [mailto:stevox2000 at yahoo.com] > Sent: Wednesday, February 05, 2003 9:14 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Reporting stuff > > > I'd like to make a script that will gather and print > informations from different Nagios cgi (hosts > and services availability, trends, alert history...). > The purpose of this script is to print monthly stats (by a > cron job) without using the web > interface. > > How can i proceed to have this result without too much > scripting stuff effort ? > > Steve > > ___________________________________________________________ > Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran?ais ! > Yahoo! Mail : http://fr.mail.yahoo.com > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jasmine.chua at securecirt.com Thu Feb 6 10:19:01 2003 From: jasmine.chua at securecirt.com (Jasmine) Date: Thu, 6 Feb 2003 09:19:01 +0000 Subject: Fwd: Distributed checking In-Reply-To: <20030205190117.GA11410@cannonfodder.org> References: <20030205190117.GA11410@cannonfodder.org> Message-ID: <200302060919.08408.jasmine.chua@securecirt.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi just a note that I am having about the same problem as you. Anyone has any ideas? On Wednesday 05 February 2003 19:01, Jason Burnett wrote: > o.k. I am using the distributed method with passive checks to monitor > some hosts I have behind a firewall that I dont want to punch holes in. > For some reason my central nagios server keeps running active checks on > the hosts even though I have that disabled on a per service instance. So > I end up with the service up when it gets the info via the passive tests > then it goes critical when the central server tries to check it with an > active test. Here is the service config from the central server: > > define service{ > host_name pinky > service_description SSH > check_command check_ssh > max_check_attempts 2 > normal_check_interval 5 > retry_check_interval 5 > passive_checks_enabled 1 > active_checks_enabled 0 > check_period 24x7 > flap_detection_enabled 1 > process_perf_data 1 > retain_status_information 1 > retain_nonstatus_information 1 > notification_interval 1 > notification_period 24x7 > notification_options w,u,c,r > notifications_enabled 1 > check_freshness 1 > freshness_threshold 180 > contact_groups admins > } - -- - -- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+QiiLNgvTa7Hj2AURArJUAKCvXqPKi1UNI7SxwUi74afIYyNqxwCfeTDF zbHd27nCYOsWAbISOPDfTTU= =fgBO -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jasmine.chua at securecirt.com Thu Feb 6 11:03:04 2003 From: jasmine.chua at securecirt.com (Jasmine) Date: Thu, 6 Feb 2003 10:03:04 +0000 Subject: Fwd: Distributed checking In-Reply-To: <200302060919.08408.jasmine.chua@securecirt.com> References: <20030205190117.GA11410@cannonfodder.org> <200302060919.08408.jasmine.chua@securecirt.com> Message-ID: <200302061003.06319.jasmine.chua@securecirt.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Ok its a config mistake. Perhaps Jason ? You should check your service definitions again. Make sure that they are not defined twice. On Thursday 06 February 2003 09:19, Jasmine wrote: > Hi > just a note that I am having about the same problem as you. Anyone has any > ideas? > > On Wednesday 05 February 2003 19:01, Jason Burnett wrote: > > o.k. I am using the distributed method with passive checks to monitor > > some hosts I have behind a firewall that I dont want to punch holes in. > > For some reason my central nagios server keeps running active checks on > > the hosts even though I have that disabled on a per service instance. So > > I end up with the service up when it gets the info via the passive tests > > then it goes critical when the central server tries to check it with an > > active test. Here is the service config from the central server: > > > > define service{ > > host_name pinky > > service_description SSH > > check_command check_ssh > > max_check_attempts 2 > > normal_check_interval 5 > > retry_check_interval 5 > > passive_checks_enabled 1 > > active_checks_enabled 0 > > check_period 24x7 > > flap_detection_enabled 1 > > process_perf_data 1 > > retain_status_information 1 > > retain_nonstatus_information 1 > > notification_interval 1 > > notification_period 24x7 > > notification_options w,u,c,r > > notifications_enabled 1 > > check_freshness 1 > > freshness_threshold 180 > > contact_groups admins > > } > > -- - -- - -- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+QjLYNgvTa7Hj2AURAvosAKCAHU0zqbRVJygzneH1jLZ4duw9BwCfYDWq V3wJOB3iFIiowY0ML4+YIzA= =ie2n -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jasmine.chua at securecirt.com Thu Feb 6 14:02:16 2003 From: jasmine.chua at securecirt.com (Jasmine) Date: Thu, 6 Feb 2003 13:02:16 +0000 Subject: Fwd: Distributed checking In-Reply-To: <200302061003.06319.jasmine.chua@securecirt.com> References: <20030205190117.GA11410@cannonfodder.org> <200302060919.08408.jasmine.chua@securecirt.com> <200302061003.06319.jasmine.chua@securecirt.com> Message-ID: <200302061302.17747.jasmine.chua@securecirt.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 HI all.. i m still having this problem sorry. i thought i made a config mistake, but that does not solve the problem. > > just a note that I am having about the same problem as you. Anyone has > > any ideas? > > > > On Wednesday 05 February 2003 19:01, Jason Burnett wrote: > > > o.k. I am using the distributed method with passive checks to monitor > > > some hosts I have behind a firewall that I dont want to punch holes in. > > > For some reason my central nagios server keeps running active checks on > > > the hosts even though I have that disabled on a per service instance. > > > So I end up with the service up when it gets the info via the passive > > > tests then it goes critical when the central server tries to check it > > > with an active test. Here is the service config from the central > > > server: > > > > > > define service{ > > > host_name pinky > > > service_description SSH > > > check_command check_ssh > > > max_check_attempts 2 > > > normal_check_interval 5 > > > retry_check_interval 5 > > > passive_checks_enabled 1 > > > active_checks_enabled 0 > > > check_period 24x7 > > > flap_detection_enabled 1 > > > process_perf_data 1 > > > retain_status_information 1 > > > retain_nonstatus_information 1 > > > notification_interval 1 > > > notification_period 24x7 > > > notification_options w,u,c,r > > > notifications_enabled 1 > > > check_freshness 1 > > > freshness_threshold 180 > > > contact_groups admins > > > } > > > > -- > > -- - -- - -- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+QlzYNgvTa7Hj2AURAsnYAJ0ZYWr9gecenetL1yZqC1E2Eh00ogCgriLV lMIct+YBKB/6ZQUmDmKe6w8= =q+Rf -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Fredrik.Wanglund at datavis.se Thu Feb 6 07:32:38 2003 From: Fredrik.Wanglund at datavis.se (=?iso-8859-1?Q?Fredrik_W=E4nglund?=) Date: Thu, 6 Feb 2003 07:32:38 +0100 Subject: Multiple lines of data in Status field? Message-ID: <9EA0F1554816EB499A4B1136B80E8DE27804AE@storevis.datavis.se> Making the plugin insert some
-tags works perfectly for me... /FredrikW -----Original Message----- From: Gerald Wichmann [mailto:gwichman at zantaz.com] Sent: Wed 05-Feb-03 19:40 To: 'Stanley Hopcroft'; Subhendu Ghosh Cc: Nagios (E-mail) Subject: RE: [Nagios-users] Multiple lines of data in Status field? I *definetly* saw multiple lines. I.e. not just wrapped-around. Somehow it imbedded a newline AND nagios displayed it on the other end in the status field. I'm trying to reproduce it again but so far haven't had any luck. Gerald Wichmann Senior Systems Development Engineer Zantaz, Inc. 925.598.3099 (w) -----Original Message----- From: Stanley Hopcroft [mailto:Stanley.Hopcroft at IPAustralia.Gov.AU] Sent: Tuesday, February 04, 2003 7:14 PM To: Subhendu Ghosh Cc: Gerald Wichmann; Nagios (E-mail) Subject: Re: [Nagios-users] Multiple lines of data in Status field? Dear Gentlemen, I think there are a number of factors, 1 The maximum buffer space Nag allocates to store the output of a plugin 2 How much of the plugin output it captures (to save in the buffer), obviously <= 1 The value for 1 is given by #define MAX_PLUGINOUTPUT_LENGTH 352 in common/objects.h The value for 2 is found in base/checks.c /* grab the plugin output and clean it */ fgets(plugin_output,sizeof(plugin_output)-1,fp); strip(plugin_output); ie Nag uses fgets to get the smaller of one 'line' of output and the MAX_PLUGINOUTPUT_LENGTH number of characters. Further input and output in the IPC mechanism (is it named pipe ?) may further reduce the number of characters handed to the CGIs or the notifcation/logging processes and these in turn may have their own limits. However, since it seems to me that Nag uses exclusively the safe forms of buffer and string copying (strncpy etc), you could . Have your plugin substitute all new line characters in its output for spaces or '.' (leaving only a traling \n) and . hand that to Nag for processing (by returning it as the output). This works quite Ok for me. Here's an example :- To sum up, you can't get multi-line, but you can get quite a lot more than one line of 80 chars. Ok. 7 DCs responded [IPOZ IPA04 CBR1 IPABETA IPA02 IPA03 IPA01] to \MAILSLOT\NET\NETLOGON. "CBR1" validated "stan2". Lanman logon script "\kixtart\kickstart.bat". Connected to "\\IPA02\PD_NEW_DATA \\IPA02\Apps32 \\IPA04\SMALLSYSTEM \\IPA04\Apps16 \\IPA04\ITSBUILTAPPS ". tsitc> cat | wc -c Ok. 7 DCs responded [IPOZ IPA04 CBR1 IPABETA IPA02 IPA03 IPA01] to \MAILSLOT\NET\NETLOGON. "CBR1" validated "stan2". Lanman logon script "\kixtart\kickstart.bat". Connected to "\\IPA02\PD_NEW_DATA \\IPA02\Apps32 \\IPA04\SMALLSYSTEM \\IPA04\Apps16 \\IPA04\ITSBUILTAPPS ". 272 tsitc> On Tue, Feb 04, 2003 at 09:18:47PM -0500, Subhendu Ghosh wrote: > The output of a plugin is usually limited to 512 bytes and can be separate > into 2 parts - line 1 is the OUTPUT that goes into the log > everything from line2 (specially after the | ) goes into PERFDATA. > > -sg > > On Tue, 4 Feb 2003, Gerald Wichmann wrote: > > > I once got nagios to show multiple lines in the status field. Not sure how > > that happened though..somehow I was assigning the output of a command like > > "wc -l *.log" to a variable like OUTPUT, then echo'ing that output as the > > status for my little check script. In Nagios it showed up in the status > > field as each file having it's own line.. I was surprised to see it but now > > I can't recall how I got it to do that. Is there a trick to formatting the > > output of a check script to show several lines? > > > > Gerald Wichmann > > Senior Systems Development Engineer > > Zantaz, Inc. > > 925.598.3099 (w) > > > > > Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. This e-mail has been captured and archived by the ZANTAZ Digital Safe(tm) service. For more information, visit us at www.zantaz.com. IMPORTANT: This electronic mail message is intended only for the use of the individual or entity to which it is addressed and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by telephone or directly reply to the original message(s) sent. Thank you. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Detlef.Knop at gmx.de Thu Feb 6 07:39:34 2003 From: Detlef.Knop at gmx.de (Detlef.Knop at gmx.de) Date: Thu, 6 Feb 2003 07:39:34 +0100 (MET) Subject: Nagios to monitor MQSeries Message-ID: <3319.1044513574@www48.gmx.net> Dear all, I would like to check whether MQSeries is available as a service on several of my hosts. My first approach was to use the check_tcp plugin which from my point of view worked fine. But the people looking after MQSeries on these machines came back to me and complained that each time the plugin ran MQSeries reported errors on these systems (two errors per check) because MQSeries detects the incoming connection and wants to receive proper data, but then the connection is closed. Has anyone ever tried to do the same and found a solution? Maybe there is a way using passive checks, or we might have to look into the possibility to write a plugin. Kind regards Detlef Knop -- +++ GMX - Mail, Messaging & more http://www.gmx.net +++ NEU: Mit GMX ins Internet. Rund um die Uhr f?r 1 ct/ Min. surfen! ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From atul at mindsw.com Thu Feb 6 08:01:24 2003 From: atul at mindsw.com (Atul Gosain) Date: Thu, 06 Feb 2003 12:31:24 +0530 Subject: Fwd: Distributed checking In-Reply-To: <200302061302.17747.jasmine.chua@securecirt.com> References: <20030205190117.GA11410@cannonfodder.org> <200302060919.08408.jasmine.chua@securecirt.com> <200302061003.06319.jasmine.chua@securecirt.com> <200302061302.17747.jasmine.chua@securecirt.com> Message-ID: <3E420844.7000407@mindsw.com> Hi The problem is simple. U have check_freshness variable set to 1. The effect of this is that whenever the passive service results does not reach nagios for some time (freshness_threshold ), it considers the result as stale and starts checking actively for that service. If u want that active checks are not executed when passive results are stale, then disable check_freshness variable. Just tell me in case ur problem is solved. Thanks Atul Jasmine wrote: >-----BEGIN PGP SIGNED MESSAGE----- >Hash: SHA1 > >HI all.. i m still having this problem sorry. i thought i made a config >mistake, but that does not solve the problem. > > > >>>just a note that I am having about the same problem as you. Anyone has >>>any ideas? >>> >>>On Wednesday 05 February 2003 19:01, Jason Burnett wrote: >>> >>> >>>>o.k. I am using the distributed method with passive checks to monitor >>>>some hosts I have behind a firewall that I dont want to punch holes in. >>>>For some reason my central nagios server keeps running active checks on >>>>the hosts even though I have that disabled on a per service instance. >>>>So I end up with the service up when it gets the info via the passive >>>>tests then it goes critical when the central server tries to check it >>>>with an active test. Here is the service config from the central >>>>server: >>>> >>>>define service{ >>>> host_name pinky >>>> service_description SSH >>>> check_command check_ssh >>>> max_check_attempts 2 >>>> normal_check_interval 5 >>>> retry_check_interval 5 >>>> passive_checks_enabled 1 >>>> active_checks_enabled 0 >>>> check_period 24x7 >>>> flap_detection_enabled 1 >>>> process_perf_data 1 >>>> retain_status_information 1 >>>> retain_nonstatus_information 1 >>>> notification_interval 1 >>>> notification_period 24x7 >>>> notification_options w,u,c,r >>>> notifications_enabled 1 >>>> check_freshness 1 >>>> freshness_threshold 180 >>>> contact_groups admins >>>>} >>>> >>>> >>>-- >>> >>> >>-- >> >> > >- -- >- -- >-----BEGIN PGP SIGNATURE----- >Version: GnuPG v1.2.1 (GNU/Linux) > >iD8DBQE+QlzYNgvTa7Hj2AURAsnYAJ0ZYWr9gecenetL1yZqC1E2Eh00ogCgriLV >lMIct+YBKB/6ZQUmDmKe6w8= >=q+Rf >-----END PGP SIGNATURE----- > > > >------------------------------------------------------- >This SF.NET email is sponsored by: >SourceForge Enterprise Edition + IBM + LinuxWorld http://www.vasoftware.com >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users > > -- --------------------------------------- Mindframe Software & Services Pvt. Ltd. A-50, Sector-39, NOIDA, U.P. - 201301 Ph.: +91-120-4500369, 4575991, 4576970 http://www.mindsw.com --------------------------------------- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From atul at mindsw.com Thu Feb 6 08:42:54 2003 From: atul at mindsw.com (Atul Gosain) Date: Thu, 06 Feb 2003 13:12:54 +0530 Subject: Distributed Monitoring(NSCA server) issue Message-ID: <3E4211FE.8080606@mindsw.com> Hi Im using distributed monitoring to send the results of nagios at one site to the other site, so the results are also shown at central location. In check_ping plugins im using urlize to urlize it to show the mtr to that host. All works fine at the site where it actively gets checked, but when the results are sent to the central nagios server , the ping results are shown as A href=/nagios/cgi-bin/mtr.cgi?host=134.159.63.125count=50PING WARNING - Packet loss = 0%, RTA = 319.07 ms/A Due to the removal of angular brackets from the result, the resul is not urlized at the central site and an ugly string is shown there. I have checked that at the client side (ie nagios which is sending the passive results), the angular brackets are not ommitted, whereas on the NSCA server, when results are received, the angular brackets are ommitted. Is there any version of NSCA server with anyone which doesnt do this and shows he results properly. Thanks Atul -- --------------------------------------- Mindframe Software & Services Pvt. Ltd. A-50, Sector-39, NOIDA, U.P. - 201301 Ph.: +91-120-4500369, 4575991, 4576970 http://www.mindsw.com --------------------------------------- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From atul at mindsw.com Thu Feb 6 08:55:58 2003 From: atul at mindsw.com (Atul Gosain) Date: Thu, 06 Feb 2003 13:25:58 +0530 Subject: snmp monitoring[OT] In-Reply-To: References: Message-ID: <3E42150E.2060806@mindsw.com> Sir snmpwalk -c public my.ip .1.3.6.1.4.1.9.9.13.1 I tried this ,but could not get more than this SNMPv2-SMI::enterprises.9.9.13.1.1.0 = INTEGER: 6 SNMPv2-SMI::enterprises.9.9.13.1.3.1.2.1 = STRING: "chassis" SNMPv2-SMI::enterprises.9.9.13.1.3.1.6.1 = INTEGER: 1 SNMPv2-SMI::enterprises.9.9.13.1.5.1.2.1 = STRING: "Internal Power Supply" SNMPv2-SMI::enterprises.9.9.13.1.5.1.3.1 = INTEGER: 1 SNMPv2-SMI::enterprises.9.9.13.1.5.1.4.1 = INTEGER: 3 Does this output means that environmental monitoring is enabled on my cisco. (Allthough i dont think so ) Im monitoring cisco 2610, cisco 3620, cisco 5300 Thanks Atul Subhendu Ghosh wrote: >BTW - what cisco model are you monitoring. Might want to have you test >any new cisco/router plugins we come out with ... > > > -- --------------------------------------- Mindframe Software & Services Pvt. Ltd. A-50, Sector-39, NOIDA, U.P. - 201301 Ph.: +91-120-4500369, 4575991, 4576970 http://www.mindsw.com --------------------------------------- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From atul at mindsw.com Thu Feb 6 09:04:22 2003 From: atul at mindsw.com (Atul Gosain) Date: Thu, 06 Feb 2003 13:34:22 +0530 Subject: snmp monitoring[OT] In-Reply-To: References: Message-ID: <3E421706.3090704@mindsw.com> Sir snmpwalk -c public my.ip .1.3.6.1.4.1.9.9.13.1 I tried this ,but could not get more than this SNMPv2-SMI::enterprises.9.9.13.1.1.0 = INTEGER: 6 SNMPv2-SMI::enterprises.9.9.13.1.3.1.2.1 = STRING: "chassis" SNMPv2-SMI::enterprises.9.9.13.1.3.1.6.1 = INTEGER: 1 SNMPv2-SMI::enterprises.9.9.13.1.5.1.2.1 = STRING: "Internal Power Supply" SNMPv2-SMI::enterprises.9.9.13.1.5.1.3.1 = INTEGER: 1 SNMPv2-SMI::enterprises.9.9.13.1.5.1.4.1 = INTEGER: 3 Does this output means that environmental monitoring is enabled on my cisco. (Allthough i dont think so ) Im monitoring cisco 2610, cisco 3620, cisco 5300 Thanks Atul Subhendu Ghosh wrote: >try snmpwalk - these are columns in a table - multiple power supplies and >fans (each in a row). To retrieve the actual element, you need to know >the index or use getnext. > >-sg > >On Thu, 6 Feb 2003, Atul Gosain wrote: > > > >>Hi >> >>Thanks for the plugin. That will be of great help, but i have some doubts. >>Looking at the code i saw that its checking for these ids >> $snmpCiscoVoltageStatus = '.1.3.6.1.4.1.9.9.13.1.2.1.7'; >> $snmpCiscoTemperatureStatus = '.1.3.6.1.4.1.9.9.13.1.3.1.6'; >> $snmpCiscoFanStatus = '.1.3.6.1.4.1.9.9.13.1.4.1.3'; >> $snmpCiscoSupplyStatus = '.1.3.6.1.4.1.9.9.13.1.5.1.3'; >>When i run the plugin, it says "All environment variables normal." >> >> but when i use snmpget on these oids like this >> snmpget -c public xxx.my.xxx.ip .1.3.6.1.4.1.9.9.13.1.2.1.7 >>i get the response as >> >>Error in packet >>Reason: (noSuchName) There is no such variable name in this MIB. >>Failed object: SNMPv2-SMI::enterprises.9.9.13.1.2.1.7 >> >>These oid's are not shown in the MIB's , even then the plugin says >>everything is normal. >>Am i wrong in my assessment or if im right , then can u please tell me >>how to include environmental mib in the mib of cisco. >> >>Thanks >>Atul >> >>Subhendu Ghosh wrote: >> >> >> >>>Attached is a cisco power/temp/fan monitor. It is going to be merged >>>with a similar juniper monitor and is not in the distrib as yet. >>> >>>check_bgpstate in the contrib dir can monitor the bgp peering >>>relationships on any router. >>> >>>-sg >>> >>>On Wed, 5 Feb 2003, Atul Gosain wrote: >>> >>> >>> >>> >>> >>>>Hi >>>> >>>>Im monitoring cisco server through Nagios. I have to monitor temperature >>>>and other environmental variables for cisco. Does somebody have an idea >>>>how can we enable environmental monitoring on cisco through SNMP. I >>>>searched a lot on cisco's site but could not find it. >>>>Also is there anyplugin written which monitors other aspects of cisco >>>>apart from interface status. >>>> >>>>Thanks >>>>Atul >>>> >>>> >>>> >>>> >>>> >>>> >>> >>> >>>------------------------------------------------------------------------ >>> >>>#!/usr/bin/perl -wT >>># >>># check_xinterface - nagios plugin >>># >>># largely based upon check_ifoperstatus.pl plugin by Christoph Kron >>># >>># >>># >>># >>># Copyright (C) 2002 Guy Van Den Bergh >>># >>># This program is free software; you can redistribute it and/or >>># modify it under the terms of the GNU General Public License >>># as published by the Free Software Foundation; either version 2 >>># of the License, or (at your option) any later version. >>># >>># This program is distributed in the hope that it will be useful, >>># but WITHOUT ANY WARRANTY; without even the implied warranty of >>># MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >>># GNU General Public License for more details. >>># >>># You should have received a copy of the GNU General Public License >>># along with this program; if not, write to the Free Software >>># Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. >>># >>># >>># Report bugs to: guy at belnet.be >>># >>> >>># design of the plugin: >>># check admin status: if down, then warning; exit >>># check operational status: if down, then critical; exit >>># check last change, if within 'tolerance' (-l or --last-change option), >>># then warning >>># get performance data: bits in/out, etc... (implementation to be scheduled later) >>># performance data could be checked against older values (bw drops e.g.) >>> >>>use strict; >>> >>>use Net::SNMP; >>>use Getopt::Long; >>>&Getopt::Long::config('auto_abbrev'); >>> >>> >>>my $status; >>>my $TIMEOUT = 60; >>> >>>my %ERRORS = ('UNKNOWN' , '-1', >>> 'OK' , '0', >>> 'WARNING', '1', >>> 'CRITICAL', '2'); >>> >>>my %ciscoEnvMonState = ('1','normal(1)', >>> '2','warning(2)', >>> '3','critical(3)', >>> '4','shutdown(4)', >>> '5','notPresent(5)', >>> '6','notFunctioning(6)'); >>> >>>my $state = "UNKNOWN"; >>>my $answer = ""; >>>my $snmpkey = 1; >>>my $community = "public"; >>>my $port = 161; >>>my $t_oid; >>>my @snmpoids; >>>my %error_oids; >>>my $snmpCiscoVoltageStatus; >>>my $snmpCiscoTemperatureStatus; >>>my $snmpCiscoFanStatus; >>>my $snmpCiscoSupplyStatus; >>>my $hostname; >>>my $session; >>>my $error; >>>my $response; >>>my $value; >>>my $oid; >>>my @voltage_errors; >>>my @temperature_errors; >>>my @fan_errors; >>>my @supply_errors; >>> >>> >>>sub usage { >>> printf "\nMissing arguments!\n"; >>> printf "\n"; >>> printf "Perl Check Cisco Environment plugin for Nagios\n"; >>> printf "checks status of temperature, fans, ...\n"; >>> printf "usage: \n"; >>> printf "check_cisco_env -c -p "; >>> printf "\nCopyright (C) 2002 Guy Van Den Bergh\n"; >>> printf "check_cisco_env comes with ABSOLUTELY NO WARRANTY\n"; >>> printf "This programm is licensed under the terms of the "; >>> printf "GNU General Public License\n(check source code for details)\n"; >>> printf "\n\n"; >>> exit $ERRORS{"UNKNOWN"}; >>>} >>> >>># Just in case of problems, let's not hang Nagios >>>$SIG{'ALRM'} = sub { >>> print ("ERROR: No snmp response from $hostname (alarm)\n"); >>> exit $ERRORS{"UNKNOWN"}; >>>}; >>>alarm($TIMEOUT); >>> >>> >>>$status = GetOptions("community=s",\$community, >>> "port=i",\$port); >>>if ($status == 0) >>>{ >>> &usage; >>>} >>> >>> #shift; >>> $hostname = shift || &usage; >>> >>> ($session, $error) = Net::SNMP->session( >>> -hostname => $hostname, >>> -community => $community, >>> -port => $port >>> ); >>> >>> if (!defined($session)) { >>> $state='UNKNOWN'; >>> $answer=$error; >>> print ("$state: $answer"); >>> exit $ERRORS{$state}; >>> } >>> >>> $snmpCiscoVoltageStatus = '.1.3.6.1.4.1.9.9.13.1.2.1.7'; >>> $snmpCiscoTemperatureStatus = '.1.3.6.1.4.1.9.9.13.1.3.1.6'; >>> $snmpCiscoFanStatus = '.1.3.6.1.4.1.9.9.13.1.4.1.3'; >>> $snmpCiscoSupplyStatus = '.1.3.6.1.4.1.9.9.13.1.5.1.3'; >>> >>> >>> push(@snmpoids,$snmpCiscoVoltageStatus); >>> push(@snmpoids,$snmpCiscoTemperatureStatus); >>> push(@snmpoids,$snmpCiscoFanStatus); >>> push(@snmpoids,$snmpCiscoSupplyStatus); >>> # >>> # These four oids all have the same syntax, >>> # which makes it easy for scripting all four oids at the same time! >>> # >>> >>> $answer = "No data returned (Environment MIB not supported)"; >>> # This will be overwritten when there IS data returned! >>> >>> TABLE: >>> foreach $t_oid (@snmpoids) { >>> # >>> # Now get all relevant oids, and set the plugin output status accordingly. >>> # >>> >>> if (!defined($response = $session->get_table($t_oid))) { >>> $error_oids{$t_oid} = $session->error; >>> next TABLE; >>> } >>> >>> while ( ($oid, $value) = each %$response ) { >>> >>> if ($value == 1 || $value == 5 || $value == 6) { >>> # normal, notPresent or notFunctioning >>> $state = 'OK' if $state =~ /UNKNOWN/; >>> $answer = "All environment variables normal." if $state eq 'OK'; >>> } elsif ($value == 2) { >>> # warning >>> $error_oids{$oid} = $ciscoEnvMonState{$value}; >>> $state = 'WARNING' unless $state =~ /CRITICAL/; >>> } elsif ($value == 3 || $value == 4) { >>> # critical or shutdown >>> $error_oids{$oid} = $ciscoEnvMonState{$value}; >>> $state = 'CRITICAL' >>> } >>> >>> } >>> } >>> >>> $session->close; >>> >>>## Here is the place for introducing artificial errors (for debugging). >>> >>> >>># >>># Now parse all erroneous responses: >>># >>> >>>unless ($state eq 'OK' or $state eq 'UNKNOWN') { >>> >>> while ( ($oid, $value) = each %error_oids ) { >>> >>> $value =~ s/\(\d\)//; >>> >>> if ($oid =~ /$snmpCiscoVoltageStatus\./) { >>> $oid =~ s/$snmpCiscoVoltageStatus\.//; >>> push(@voltage_errors, "$value (instance $oid)"); >>> >>> } elsif($oid =~ /$snmpCiscoTemperatureStatus\./) { >>> $oid =~ s/$snmpCiscoTemperatureStatus\.//; >>> push(@temperature_errors, "$value (instance $oid)"); >>> >>> } elsif ($oid =~ /$snmpCiscoFanStatus\./) { >>> $oid =~ s/$snmpCiscoFanStatus\.//; >>> push(@fan_errors, "$value (fan $oid)"); >>> >>> } elsif ($oid =~ /$snmpCiscoSupplyStatus\./) { >>> $oid =~ s/$snmpCiscoSupplyStatus\.//; >>> push(@supply_errors, "$value (PS $oid)"); >>> } >>> } >>> >>> # >>> # And now the final formatting of the output: >>> # >>> >>> my $voltage_errors_s = join ";", @voltage_errors if defined $voltage_errors[0]; >>> my $temperature_errors_s = join ";", @temperature_errors if defined $temperature_errors[0]; >>> my $fan_errors_s = join ";", @fan_errors if defined $fan_errors[0]; >>> my $supply_errors_s = join ";", @supply_errors if defined $supply_errors[0]; >>> >>> $answer = "Problems with:
"; >>> $answer .= "Voltage: " . $voltage_errors_s . "
" if defined $voltage_errors_s; >>> $answer .= "Temperature: " . $temperature_errors_s . "
" if defined $temperature_errors_s; >>> $answer .= "Fans: " . $fan_errors_s . "
" if defined $fan_errors_s; >>> $answer .= "Power Supply: " . $supply_errors_s ."
" if defined $supply_errors_s; >>>} >>> >>>print ("$answer\n"); >>>exit $ERRORS{$state}; >>> >>> >>> >>> >>> >> >> >> > > > -- --------------------------------------- Mindframe Software & Services Pvt. Ltd. A-50, Sector-39, NOIDA, U.P. - 201301 Ph.: +91-120-4500369, 4575991, 4576970 http://www.mindsw.com --------------------------------------- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From atul at mindsw.com Thu Feb 6 09:09:42 2003 From: atul at mindsw.com (Atul Gosain) Date: Thu, 06 Feb 2003 13:39:42 +0530 Subject: snmp monitoring[OT] In-Reply-To: References: Message-ID: <3E421846.101@mindsw.com> Sir snmpwalk -c public my.ip .1.3.6.1.4.1.9.9.13.1 I tried this ,but could not get more than this SNMPv2-SMI::enterprises.9.9.13.1.1.0 = INTEGER: 6 SNMPv2-SMI::enterprises.9.9.13.1.3.1.2.1 = STRING: "chassis" SNMPv2-SMI::enterprises.9.9.13.1.3.1.6.1 = INTEGER: 1 SNMPv2-SMI::enterprises.9.9.13.1.5.1.2.1 = STRING: "Internal Power Supply" SNMPv2-SMI::enterprises.9.9.13.1.5.1.3.1 = INTEGER: 1 SNMPv2-SMI::enterprises.9.9.13.1.5.1.4.1 = INTEGER: 3 Does this output means that environmental monitoring is enabled on my cisco. (Allthough i dont think so ) Im monitoring cisco 2610, cisco 3620, cisco 5300 Thanks Atul Subhendu Ghosh wrote: >try snmpwalk - these are columns in a table - multiple power supplies and >fans (each in a row). To retrieve the actual element, you need to know >the index or use getnext. > >-sg > >On Thu, 6 Feb 2003, Atul Gosain wrote: > > > >>Hi >> >>Thanks for the plugin. That will be of great help, but i have some doubts. >>Looking at the code i saw that its checking for these ids >> $snmpCiscoVoltageStatus = '.1.3.6.1.4.1.9.9.13.1.2.1.7'; >> $snmpCiscoTemperatureStatus = '.1.3.6.1.4.1.9.9.13.1.3.1.6'; >> $snmpCiscoFanStatus = '.1.3.6.1.4.1.9.9.13.1.4.1.3'; >> $snmpCiscoSupplyStatus = '.1.3.6.1.4.1.9.9.13.1.5.1.3'; >>When i run the plugin, it says "All environment variables normal." >> >> but when i use snmpget on these oids like this >> snmpget -c public xxx.my.xxx.ip .1.3.6.1.4.1.9.9.13.1.2.1.7 >>i get the response as >> >>Error in packet >>Reason: (noSuchName) There is no such variable name in this MIB. >>Failed object: SNMPv2-SMI::enterprises.9.9.13.1.2.1.7 >> >>These oid's are not shown in the MIB's , even then the plugin says >>everything is normal. >>Am i wrong in my assessment or if im right , then can u please tell me >>how to include environmental mib in the mib of cisco. >> >>Thanks >>Atul >> >>Subhendu Ghosh wrote: >> >> >> >>>Attached is a cisco power/temp/fan monitor. It is going to be merged >>>with a similar juniper monitor and is not in the distrib as yet. >>> >>>check_bgpstate in the contrib dir can monitor the bgp peering >>>relationships on any router. >>> >>>-sg >>> >>>On Wed, 5 Feb 2003, Atul Gosain wrote: >>> >>> >>> >>> >>> >>>>Hi >>>> >>>>Im monitoring cisco server through Nagios. I have to monitor temperature >>>>and other environmental variables for cisco. Does somebody have an idea >>>>how can we enable environmental monitoring on cisco through SNMP. I >>>>searched a lot on cisco's site but could not find it. >>>>Also is there anyplugin written which monitors other aspects of cisco >>>>apart from interface status. >>>> >>>>Thanks >>>>Atul >>>> >>>> >>>> >>>> >>>> >>>> >>> >>> >>>------------------------------------------------------------------------ >>> >>>#!/usr/bin/perl -wT >>># >>># check_xinterface - nagios plugin >>># >>># largely based upon check_ifoperstatus.pl plugin by Christoph Kron >>># >>># >>># >>># >>># Copyright (C) 2002 Guy Van Den Bergh >>># >>># This program is free software; you can redistribute it and/or >>># modify it under the terms of the GNU General Public License >>># as published by the Free Software Foundation; either version 2 >>># of the License, or (at your option) any later version. >>># >>># This program is distributed in the hope that it will be useful, >>># but WITHOUT ANY WARRANTY; without even the implied warranty of >>># MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >>># GNU General Public License for more details. >>># >>># You should have received a copy of the GNU General Public License >>># along with this program; if not, write to the Free Software >>># Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. >>># >>># >>># Report bugs to: guy at belnet.be >>># >>> >>># design of the plugin: >>># check admin status: if down, then warning; exit >>># check operational status: if down, then critical; exit >>># check last change, if within 'tolerance' (-l or --last-change option), >>># then warning >>># get performance data: bits in/out, etc... (implementation to be scheduled later) >>># performance data could be checked against older values (bw drops e.g.) >>> >>>use strict; >>> >>>use Net::SNMP; >>>use Getopt::Long; >>>&Getopt::Long::config('auto_abbrev'); >>> >>> >>>my $status; >>>my $TIMEOUT = 60; >>> >>>my %ERRORS = ('UNKNOWN' , '-1', >>> 'OK' , '0', >>> 'WARNING', '1', >>> 'CRITICAL', '2'); >>> >>>my %ciscoEnvMonState = ('1','normal(1)', >>> '2','warning(2)', >>> '3','critical(3)', >>> '4','shutdown(4)', >>> '5','notPresent(5)', >>> '6','notFunctioning(6)'); >>> >>>my $state = "UNKNOWN"; >>>my $answer = ""; >>>my $snmpkey = 1; >>>my $community = "public"; >>>my $port = 161; >>>my $t_oid; >>>my @snmpoids; >>>my %error_oids; >>>my $snmpCiscoVoltageStatus; >>>my $snmpCiscoTemperatureStatus; >>>my $snmpCiscoFanStatus; >>>my $snmpCiscoSupplyStatus; >>>my $hostname; >>>my $session; >>>my $error; >>>my $response; >>>my $value; >>>my $oid; >>>my @voltage_errors; >>>my @temperature_errors; >>>my @fan_errors; >>>my @supply_errors; >>> >>> >>>sub usage { >>> printf "\nMissing arguments!\n"; >>> printf "\n"; >>> printf "Perl Check Cisco Environment plugin for Nagios\n"; >>> printf "checks status of temperature, fans, ...\n"; >>> printf "usage: \n"; >>> printf "check_cisco_env -c -p "; >>> printf "\nCopyright (C) 2002 Guy Van Den Bergh\n"; >>> printf "check_cisco_env comes with ABSOLUTELY NO WARRANTY\n"; >>> printf "This programm is licensed under the terms of the "; >>> printf "GNU General Public License\n(check source code for details)\n"; >>> printf "\n\n"; >>> exit $ERRORS{"UNKNOWN"}; >>>} >>> >>># Just in case of problems, let's not hang Nagios >>>$SIG{'ALRM'} = sub { >>> print ("ERROR: No snmp response from $hostname (alarm)\n"); >>> exit $ERRORS{"UNKNOWN"}; >>>}; >>>alarm($TIMEOUT); >>> >>> >>>$status = GetOptions("community=s",\$community, >>> "port=i",\$port); >>>if ($status == 0) >>>{ >>> &usage; >>>} >>> >>> #shift; >>> $hostname = shift || &usage; >>> >>> ($session, $error) = Net::SNMP->session( >>> -hostname => $hostname, >>> -community => $community, >>> -port => $port >>> ); >>> >>> if (!defined($session)) { >>> $state='UNKNOWN'; >>> $answer=$error; >>> print ("$state: $answer"); >>> exit $ERRORS{$state}; >>> } >>> >>> $snmpCiscoVoltageStatus = '.1.3.6.1.4.1.9.9.13.1.2.1.7'; >>> $snmpCiscoTemperatureStatus = '.1.3.6.1.4.1.9.9.13.1.3.1.6'; >>> $snmpCiscoFanStatus = '.1.3.6.1.4.1.9.9.13.1.4.1.3'; >>> $snmpCiscoSupplyStatus = '.1.3.6.1.4.1.9.9.13.1.5.1.3'; >>> >>> >>> push(@snmpoids,$snmpCiscoVoltageStatus); >>> push(@snmpoids,$snmpCiscoTemperatureStatus); >>> push(@snmpoids,$snmpCiscoFanStatus); >>> push(@snmpoids,$snmpCiscoSupplyStatus); >>> # >>> # These four oids all have the same syntax, >>> # which makes it easy for scripting all four oids at the same time! >>> # >>> >>> $answer = "No data returned (Environment MIB not supported)"; >>> # This will be overwritten when there IS data returned! >>> >>> TABLE: >>> foreach $t_oid (@snmpoids) { >>> # >>> # Now get all relevant oids, and set the plugin output status accordingly. >>> # >>> >>> if (!defined($response = $session->get_table($t_oid))) { >>> $error_oids{$t_oid} = $session->error; >>> next TABLE; >>> } >>> >>> while ( ($oid, $value) = each %$response ) { >>> >>> if ($value == 1 || $value == 5 || $value == 6) { >>> # normal, notPresent or notFunctioning >>> $state = 'OK' if $state =~ /UNKNOWN/; >>> $answer = "All environment variables normal." if $state eq 'OK'; >>> } elsif ($value == 2) { >>> # warning >>> $error_oids{$oid} = $ciscoEnvMonState{$value}; >>> $state = 'WARNING' unless $state =~ /CRITICAL/; >>> } elsif ($value == 3 || $value == 4) { >>> # critical or shutdown >>> $error_oids{$oid} = $ciscoEnvMonState{$value}; >>> $state = 'CRITICAL' >>> } >>> >>> } >>> } >>> >>> $session->close; >>> >>>## Here is the place for introducing artificial errors (for debugging). >>> >>> >>># >>># Now parse all erroneous responses: >>># >>> >>>unless ($state eq 'OK' or $state eq 'UNKNOWN') { >>> >>> while ( ($oid, $value) = each %error_oids ) { >>> >>> $value =~ s/\(\d\)//; >>> >>> if ($oid =~ /$snmpCiscoVoltageStatus\./) { >>> $oid =~ s/$snmpCiscoVoltageStatus\.//; >>> push(@voltage_errors, "$value (instance $oid)"); >>> >>> } elsif($oid =~ /$snmpCiscoTemperatureStatus\./) { >>> $oid =~ s/$snmpCiscoTemperatureStatus\.//; >>> push(@temperature_errors, "$value (instance $oid)"); >>> >>> } elsif ($oid =~ /$snmpCiscoFanStatus\./) { >>> $oid =~ s/$snmpCiscoFanStatus\.//; >>> push(@fan_errors, "$value (fan $oid)"); >>> >>> } elsif ($oid =~ /$snmpCiscoSupplyStatus\./) { >>> $oid =~ s/$snmpCiscoSupplyStatus\.//; >>> push(@supply_errors, "$value (PS $oid)"); >>> } >>> } >>> >>> # >>> # And now the final formatting of the output: >>> # >>> >>> my $voltage_errors_s = join ";", @voltage_errors if defined $voltage_errors[0]; >>> my $temperature_errors_s = join ";", @temperature_errors if defined $temperature_errors[0]; >>> my $fan_errors_s = join ";", @fan_errors if defined $fan_errors[0]; >>> my $supply_errors_s = join ";", @supply_errors if defined $supply_errors[0]; >>> >>> $answer = "Problems with:
"; >>> $answer .= "Voltage: " . $voltage_errors_s . "
" if defined $voltage_errors_s; >>> $answer .= "Temperature: " . $temperature_errors_s . "
" if defined $temperature_errors_s; >>> $answer .= "Fans: " . $fan_errors_s . "
" if defined $fan_errors_s; >>> $answer .= "Power Supply: " . $supply_errors_s ."
" if defined $supply_errors_s; >>>} >>> >>>print ("$answer\n"); >>>exit $ERRORS{$state}; >>> >>> >>> >>> >>> >> >> >> > > > -- --------------------------------------- Mindframe Software & Services Pvt. Ltd. A-50, Sector-39, NOIDA, U.P. - 201301 Ph.: +91-120-4500369, 4575991, 4576970 http://www.mindsw.com --------------------------------------- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From me at ame.de Thu Feb 6 10:01:29 2003 From: me at ame.de (Matthias Eichler) Date: Thu, 6 Feb 2003 10:01:29 +0100 Subject: Bug in Nagios orphan-check?! In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB014E143F@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB014E143F@PKDWB03C.ad.sprint.com> Message-ID: <1044522089.3e422469c7763@mail.ame.de> Hi Jim, the box has 256 MB RAM as I posted and 512 MB of swap. But I think under normal circumstances the box should not run out of memory. Now e.g. Nagios is running for 17 hours and the stats of the box are: ---cut--- 09:57:16 up 63 days, 23:13, 1 user, load average: 0.01, 0.07, 0.03 56 processes: 53 sleeping, 3 running, 0 zombie, 0 stopped CPU states: 1.8% user, 4.0% system, 0.0% nice, 94.2% idle Mem: 253916K total, 208776K used, 45140K free, 115400K buffers Swap: 257032K total, 4248K used, 252784K free, 35288K cached ---cut--- This looks pretty fine for me, especially because 200MB of RAM are not really used, 32MB are cached and 115MB buffered...if Nagios or any other app should need more RAM here it should get it... So IMHO there must be some bug if Nagios runs out of (memory-)control in that way after just 5 days running... Ok, I have 478 services on 32 hosts but that should not be sooo much for such a box, shouldnt it?!? Matthias Zitat von "Carroll, Jim P [Contractor]" : > It *does* seem that you're running out of memory. Just a guess. > > You haven't mentioned how much RAM or swap you have on this machine. 80 > nagios processes isn't much, considering I've had quite a bit more than that > in the past. Granted, I'm also running with 1 GB of RAM and 2 GB of swap. > > You might want to consider adding more RAM and bump up your swap space. > > jc > > > -----Original Message----- > > From: Matthias Eichler [mailto:me at ame.de] > > Sent: Wednesday, February 05, 2003 4:54 AM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Bug in Nagios orphan-check?! > > > > > > Hi List, > > > > I have some Nagios 1.0 installed on a Debian 3 Woody. The machine > > is some Intel Celeron 700 MHz with 256 MB of RAM. > > > > The setup was doing really well for some long time, but now I get > > some severe problems more or less every five days. > > > > Today we had some connection problems to some remote farm. But Nagios > > didnt send out host-down notifications, it said this in its event log: > > > > "Warning: The check of service 'blabla' on host 'blabla' looks like > > it was orphaned (results never came back). I'm scheduling an immediate > > check of the service..." > > Since this first entry Nagios reported this warning with EVERY service > > check, about 142 times... > > At this time I tried to get on the web interface and got no connect, > > the SSH login took very long, what I am not wondering about, > > because the > > box had a load of 7.83! > > I saw that there were about 80 nagios processes in the list. They were > > not stopped by some /etc/init.d/nagios stop, I had to kill them all. > > > > In dmesg I see entries like: > > --- > > Feb 5 11:12:14 ozzy kernel: Out of Memory: Killed process 18026 > > (apache). > > Feb 5 11:12:20 ozzy kernel: Out of Memory: Killed process 18022 > > (apache). > > --- > > or > > --- > > Feb 5 11:21:48 ozzy kernel: request_module[net-pf-10]: > > waitpid(13304,...) failed, errno 512 > > Feb 5 11:21:48 ozzy kernel: request_module[net-pf-10]: > > waitpid(13305,...) failed, errno 512 > > Feb 5 11:21:48 ozzy kernel: request_module[net-pf-10]: > > waitpid(13306,...) failed, errno 512 > > --- > > > > I think there might be some bug, because also the remote > > site is not available Nagios should warn us about it and > > not confuse the box like this...?!? > > > > Any ideas?!? > > > > Greetings from Munich, > > > > Matthias > > > > -- > > > > Mit freundlichen Gr??en > > AME Aigner Media & Entertainment GmbH > > > > > > Matthias Eichler > > Leiter Technik | Technical Director > > _______________________________________ > > > > AME? Aigner Media & Entertainment GmbH > > Bavariaring 8 D-80336 M?nchen > > > > Tel [+49] ?89.427 05 - 330 > > Fax [+49] ?89.427 05 - 400 > > > > http://ame.de eMail: me at ame.de > > _______________________________________ > > Angaben nach TDG|GmbHG:ame.de/impressum > > > -- Matthias Eichler Leiter Technik | Technical Director _____________________________________ AME Aigner Media & Entertainment GmbH Bavariaring 8 D-80336 Muenchen Tel: [+49] ?89.427.05-330 Fax: [+49] ?89.427.05-400 _____________________________________ ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Raj.Mudhar at nottingham.ac.uk Thu Feb 6 12:11:21 2003 From: Raj.Mudhar at nottingham.ac.uk (Raj Mudhar) Date: Thu, 06 Feb 2003 11:11:21 +0000 Subject: Plugin Installation - I have rtfm no help. Message-ID: hi, im using RH8 and nagios1.0 (non beta) I installed the plugins.. i downloaded the rpm. Typed rpm -i nagios-plugins-1.3.0-bets2.i386.rpm it did its job.. and now where are these plugins? and the help files? In the Nagios for beginners it says "the procedure to install the plugins is similar to that of core program. Refer to appendix C for the documentation associated with the plugins." Where is the help file never mind appendix C. Well it would help to know how to Install these first before you even get to the HELP file. I cant find no libexec in my nagios directory after running the rpm so i cant even find the help file. reading the manual dont help when many stages are missed. Please help if you can. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Raj.Mudhar at nottingham.ac.uk Thu Feb 6 12:33:48 2003 From: Raj.Mudhar at nottingham.ac.uk (Raj Mudhar) Date: Thu, 06 Feb 2003 11:33:48 +0000 Subject: Fwd: Plugin Installation - I have rtfm no help2 Message-ID: Hi again, Just to let you know when i did do the rpm -i (nagios file) all it said in return was that i had new mail in my var/spool/mail/root when i goto the root file it says that *****error: Tripwire database for Nagtest1 not found ****** (Nagtest1 is my machine name) *****Run /etc/tripwire/twinstall.sh and/or tripwire -init***** Im not sure what this is.. but I dont think the RPM installed at all. :( the command i used is rpm -i nagios-plugins-1.3.0-beta2.i386.rpm and i ran this from / (before root where i ran my nagios core prog from) Hope this helps. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From atul at mindsw.com Thu Feb 6 12:50:22 2003 From: atul at mindsw.com (Atul Gosain) Date: Thu, 06 Feb 2003 17:20:22 +0530 Subject: Fwd: Plugin Installation - I have rtfm no help2 In-Reply-To: References: Message-ID: <3E424BFE.2090403@mindsw.com> Hi First check rpm -qa|grep nagios-plugins to see whether its installed or not. Most probably it will be installed. Ur problem is that tripwire has not made entries for newly installed files in its database. For this run tripwire again to make its database again. I dont remember the exact syntax. For seeing what files are installed by a particular rpm just do rpm -qil nagios-plugins-1.3.0-bets2(this name u can get by rpm -qa). Regards Atul Raj Mudhar wrote: >Hi again, > >Just to let you know when i did do the rpm -i (nagios file) all it said in return was that i had new mail in my var/spool/mail/root > >when i goto the root file it says that > >*****error: Tripwire database for Nagtest1 not found ****** (Nagtest1 is my machine name) >*****Run /etc/tripwire/twinstall.sh and/or tripwire -init***** > >Im not sure what this is.. but I dont think the RPM installed at all. :( > >the command i used is rpm -i nagios-plugins-1.3.0-beta2.i386.rpm and i ran this from / (before root where i ran my nagios core prog from) > >Hope this helps. > > > > > >------------------------------------------------------- >This SF.NET email is sponsored by: >SourceForge Enterprise Edition + IBM + LinuxWorld http://www.vasoftware.com >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users > > -- --------------------------------------- Mindframe Software & Services Pvt. Ltd. A-50, Sector-39, NOIDA, U.P. - 201301 Ph.: +91-120-4500369, 4575991, 4576970 http://www.mindsw.com --------------------------------------- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Raj.Mudhar at nottingham.ac.uk Thu Feb 6 12:59:07 2003 From: Raj.Mudhar at nottingham.ac.uk (Raj Mudhar) Date: Thu, 06 Feb 2003 11:59:07 +0000 Subject: Fwd: Plugin Installation - I have rtfm no help2 Message-ID: Hi Atul Ok its intalled the rpm .. i did rpm -qa|grep nagios-plugins and the reply was: nagios-plugins-1.3.0-beta2 I did rpm -qil (filename) and it came back with a list of directories and they are all in the usr/lib/nagios/plugins directory apart from some readmes that are in usr/share/doc/ What was all this about the libexec directory? as its not there.. what do i have to do .. has it gone wrong? Thanks for you initial reply! >>> Atul Gosain 02/06/03 11:50am >>> Hi First check rpm -qa|grep nagios-plugins to see whether its installed or not. Most probably it will be installed. Ur problem is that tripwire has not made entries for newly installed files in its database. For this run tripwire again to make its database again. I dont remember the exact syntax. For seeing what files are installed by a particular rpm just do rpm -qil nagios-plugins-1.3.0-bets2(this name u can get by rpm -qa). Regards Atul Raj Mudhar wrote: >Hi again, > >Just to let you know when i did do the rpm -i (nagios file) all it said in return was that i had new mail in my var/spool/mail/root > >when i goto the root file it says that > >*****error: Tripwire database for Nagtest1 not found ****** (Nagtest1 is my machine name) >*****Run /etc/tripwire/twinstall.sh and/or tripwire -init***** > >Im not sure what this is.. but I dont think the RPM installed at all. :( > >the command i used is rpm -i nagios-plugins-1.3.0-beta2.i386.rpm and i ran this from / (before root where i ran my nagios core prog from) > >Hope this helps. > > > > > >------------------------------------------------------- >This SF.NET email is sponsored by: >SourceForge Enterprise Edition + IBM + LinuxWorld http://www.vasoftware.com >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users > > -- --------------------------------------- Mindframe Software & Services Pvt. Ltd. A-50, Sector-39, NOIDA, U.P. - 201301 Ph.: +91-120-4500369, 4575991, 4576970 http://www.mindsw.com --------------------------------------- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Bernhard.Verstege at hik.fzk.de Thu Feb 6 13:10:48 2003 From: Bernhard.Verstege at hik.fzk.de (Verstege, Bernhard) Date: Thu, 6 Feb 2003 13:10:48 +0100 Subject: AW: Distributed checking Message-ID: Hi, works as designed ... if a service check returns a non ok state (active or passive), a host check is performed. The other thing is the enabled feshness-check. If the distibuted monitor does not send a passive check for the given threshold, an active check on your master will be performed. These checks will be performed, even if active checks are disabled ! To make sure the distributed monitor is still alive, we use the check_dummy plugin. We use two different service definitions: - the distributed monitor does a check_dummy every 5 minutes for example and sends the result (allways OK) to the master - on the master we defined a freshness threshold of 10 minutes and a "check_command" which does no real check. It only sends an email to the admin which tells him that the distributed monitor has not send an "alive" check for the given threshold. - all other checks on the master have freshness_check disabled Hope this helps ! Gru? B. Verstege ------------------------------------------------------------------------- Bernhard Verstege Forschungszentrum Karlsruhe GmbH Abt. HIK Technik und Umwelt Hermann-von-Helmholtz-Platz 1 Tel.: 0049 7247-82-5665 D-76344 Eggenstein-Leopoldshafen Fax.: 0049 7247-82-4972 email: verstege at hik.fzk.de >-----Urspr?ngliche Nachricht----- >Von: Jason Burnett [mailto:jason at cannonfodder.org] >Gesendet: Mittwoch, 5. Februar 2003 20:01 >An: nagios-users >Betreff: [Nagios-users] Distributed checking > > >o.k. I am using the distributed method with passive checks to monitor >some hosts I have behind a firewall that I dont want to punch holes in. >For some reason my central nagios server keeps running active checks on >the hosts even though I have that disabled on a per service >instance. So >I end up with the service up when it gets the info via the >passive tests >then it goes critical when the central server tries to check it with an >active test. Here is the service config from the central server: > >define service{ > host_name pinky > service_description SSH > check_command check_ssh > max_check_attempts 2 > normal_check_interval 5 > retry_check_interval 5 > passive_checks_enabled 1 > active_checks_enabled 0 > check_period 24x7 > flap_detection_enabled 1 > process_perf_data 1 > retain_status_information 1 > retain_nonstatus_information 1 > notification_interval 1 > notification_period 24x7 > notification_options w,u,c,r > notifications_enabled 1 > check_freshness 1 > freshness_threshold 180 > contact_groups admins >} > > >-- > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From atul at mindsw.com Thu Feb 6 13:18:18 2003 From: atul at mindsw.com (Atul Gosain) Date: Thu, 06 Feb 2003 17:48:18 +0530 Subject: Fwd: Plugin Installation - I have rtfm no help2 In-Reply-To: References: Message-ID: <3E42528A.7080608@mindsw.com> Hi I would rather advice you to compile it from source. Download the source from sorceforge and compile it. libexec is the name of directory inside the nagios directory which contains the plugins needed for various service checks. U can change the name of this directory by changing the $USER1$ variable in the resources.cfg file in etc directory. regards Atul Raj Mudhar wrote: >Hi Atul > >Ok its intalled the rpm .. i did rpm -qa|grep nagios-plugins and the reply was: >nagios-plugins-1.3.0-beta2 > >I did rpm -qil (filename) and it came back with a list of directories and they are all in the usr/lib/nagios/plugins directory apart from some readmes that are in usr/share/doc/ > >What was all this about the libexec directory? as its not there.. what do i have to do .. has it gone wrong? > >Thanks for you initial reply! > > > >>>>Atul Gosain 02/06/03 11:50am >>> >>>> >>>> >Hi > >First check rpm -qa|grep nagios-plugins to see whether its installed or >not. Most probably it will be installed. >Ur problem is that tripwire has not made entries for newly installed >files in its database. For this run tripwire again to make its database >again. I dont remember the exact syntax. >For seeing what files are installed by a particular rpm just do rpm -qil >nagios-plugins-1.3.0-bets2(this name u can get by rpm -qa). > >Regards >Atul > >Raj Mudhar wrote: > > > >>Hi again, >> >>Just to let you know when i did do the rpm -i (nagios file) all it said in return was that i had new mail in my var/spool/mail/root >> >>when i goto the root file it says that >> >>*****error: Tripwire database for Nagtest1 not found ****** (Nagtest1 is my machine name) >>*****Run /etc/tripwire/twinstall.sh and/or tripwire -init***** >> >>Im not sure what this is.. but I dont think the RPM installed at all. :( >> >>the command i used is rpm -i nagios-plugins-1.3.0-beta2.i386.rpm and i ran this from / (before root where i ran my nagios core prog from) >> >>Hope this helps. >> >> >> >> >> >>------------------------------------------------------- >>This SF.NET email is sponsored by: >>SourceForge Enterprise Edition + IBM + LinuxWorld http://www.vasoftware.com >>_______________________________________________ >>Nagios-users mailing list >>Nagios-users at lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/nagios-users >> >> >> >> > > > > -- --------------------------------------- Mindframe Software & Services Pvt. Ltd. A-50, Sector-39, NOIDA, U.P. - 201301 Ph.: +91-120-4500369, 4575991, 4576970 http://www.mindsw.com --------------------------------------- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From karl at debisschop.net Thu Feb 6 13:16:43 2003 From: karl at debisschop.net (Karl DeBisschop) Date: 06 Feb 2003 07:16:43 -0500 Subject: Plugin Installation - I have rtfm no help. In-Reply-To: References: Message-ID: <1044533592.4528.15.camel@localhost.localdomain> On Thu, 2003-02-06 at 06:11, Raj Mudhar wrote: > hi, im using RH8 and nagios1.0 (non beta) > > I installed the plugins.. i downloaded the rpm. Typed rpm -i nagios-plugins-1.3.0-bets2.i386.rpm it did its job.. and now where are these plugins? and the help files? In the Nagios for beginners it says "the procedure to install the plugins is similar to that of core program. Refer to appendix C for the documentation associated with the plugins." Where is the help file never mind appendix C. > > Well it would help to know how to Install these first before you even get to the HELP file. I cant find no libexec in my nagios directory after running the rpm so i cant even find the help file. I'd have to check into the reference in the nagios docs. To see what plugins you have and where, I suggest you read the man page for rpm. rpm -ql nagios-plugins should do the trick. As for plugin documentation, run the plugin of interest with --help as an option. The authoritative docs come internal to each plugin. There is a FAQ and a few other docs, and there will be additional docs (derived from the embedded sources) in the future. But that's it for now. -- Karl ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From atul at mindsw.com Thu Feb 6 13:47:00 2003 From: atul at mindsw.com (Atul Gosain) Date: Thu, 06 Feb 2003 18:17:00 +0530 Subject: Fwd: Plugin Installation - I have rtfm no help2 In-Reply-To: References: Message-ID: <3E425944.3090003@mindsw.com> Thanks for such a good response. May God help you in learning linux Raj Mudhar wrote: >hi > >What do you mean compile it from source. i just downloaded the plugin... is this not from source? > >Im new to linux and using this to learn more about it.. my tripwire is installed but i think it needs configuring i dont think its essential to starting nagios though. > >what you think... i read the installation help file and i need to do the ./configure stuff again for the plugins. So ill do that. > > > >>>>Atul Gosain 02/06/03 12:18pm >>> >>>> >>>> >Hi > >I would rather advice you to compile it from source. Download the source >from sorceforge and compile it. >libexec is the name of directory inside the nagios directory which >contains the plugins needed for various service checks. U can change >the name of this directory by changing the $USER1$ variable in the >resources.cfg file in etc directory. > >regards >Atul >Raj Mudhar wrote: > > > >>Hi Atul >> >>Ok its intalled the rpm .. i did rpm -qa|grep nagios-plugins and the reply was: >>nagios-plugins-1.3.0-beta2 >> >>I did rpm -qil (filename) and it came back with a list of directories and they are all in the usr/lib/nagios/plugins directory apart from some readmes that are in usr/share/doc/ >> >>What was all this about the libexec directory? as its not there.. what do i have to do .. has it gone wrong? >> >>Thanks for you initial reply! >> >> >> >> >> >>>>>Atul Gosain 02/06/03 11:50am >>> >>>>> >>>>> >>>>> >>>>> >>Hi >> >>First check rpm -qa|grep nagios-plugins to see whether its installed or >>not. Most probably it will be installed. >>Ur problem is that tripwire has not made entries for newly installed >>files in its database. For this run tripwire again to make its database >>again. I dont remember the exact syntax. >>For seeing what files are installed by a particular rpm just do rpm -qil >>nagios-plugins-1.3.0-bets2(this name u can get by rpm -qa). >> >>Regards >>Atul >> >>Raj Mudhar wrote: >> >> >> >> >> >>>Hi again, >>> >>>Just to let you know when i did do the rpm -i (nagios file) all it said in return was that i had new mail in my var/spool/mail/root >>> >>>when i goto the root file it says that >>> >>>*****error: Tripwire database for Nagtest1 not found ****** (Nagtest1 is my machine name) >>>*****Run /etc/tripwire/twinstall.sh and/or tripwire -init***** >>> >>>Im not sure what this is.. but I dont think the RPM installed at all. :( >>> >>>the command i used is rpm -i nagios-plugins-1.3.0-beta2.i386.rpm and i ran this from / (before root where i ran my nagios core prog from) >>> >>>Hope this helps. >>> >>> >>> >>> >>> >>>------------------------------------------------------- >>>This SF.NET email is sponsored by: >>>SourceForge Enterprise Edition + IBM + LinuxWorld http://www.vasoftware.com >>>_______________________________________________ >>>Nagios-users mailing list >>>Nagios-users at lists.sourceforge.net >>>https://lists.sourceforge.net/lists/listinfo/nagios-users >>> >>> >>> >>> >>> >>> >> >> >> >> > > > > -- --------------------------------------- Mindframe Software & Services Pvt. Ltd. A-50, Sector-39, NOIDA, U.P. - 201301 Ph.: +91-120-4500369, 4575991, 4576970 http://www.mindsw.com --------------------------------------- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From atul at mindsw.com Thu Feb 6 14:28:48 2003 From: atul at mindsw.com (Atul Gosain) Date: Thu, 06 Feb 2003 18:58:48 +0530 Subject: Macro definition in notify command Message-ID: <3E426310.9040704@mindsw.com> Hi I have to use a $ARG$ from a service check into the misccommands.cfg ( in service-notify-by-email) . By default its not available in the notify commands as per the documentation of the Nagios. Can anybody tell how to achieve this. Regards Atul -- --------------------------------------- Mindframe Software & Services Pvt. Ltd. A-50, Sector-39, NOIDA, U.P. - 201301 Ph.: +91-120-4500369, 4575991, 4576970 http://www.mindsw.com --------------------------------------- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From henrique.leandro at varig.com Thu Feb 6 14:45:10 2003 From: henrique.leandro at varig.com (Henrique leandro) Date: 06 Feb 2003 11:45:10 -0200 Subject: Comments - history Message-ID: <1044539111.26175.2.camel@operacao> Hi Anybody know how do i for make a history from all comments stored. i'm using Mysql for storage datas, but when delete a comment, his saken from database too. thanks for help bye Henrique Leandro VARIG S.A ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From T-VANZEE at govst.edu Thu Feb 6 15:00:57 2003 From: T-VANZEE at govst.edu (Van Zee, Timothy) Date: Thu, 6 Feb 2003 08:00:57 -0600 Subject: check_udp hangs Message-ID: <7F76AA41FC7DD5119B1E00508BAF0444030B46DB@gsmail.govst.edu> Firewall? Tim -----Original Message----- From: David Goldsmith [mailto:dgoldsmith at sans.org] Sent: Wednesday, February 05, 2003 2:52 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] check_udp hangs I've installed nagios-1.0 and nagios-plugins-1.3.0-beta2 on a RedHat 7.3 system. Checks for various services running on TCP ports work. UDP service checks are failing. If I manually run './check_tcp -H -p , I get a near immediate response (assuming a service is listening) If I manually run check_udp the same way, it just sits there. It does not give up after the default timeout of 10 seconds. Running strace on the 2 binaries shows that check_udp appears to be hanging prior to the call to "signal (SIGALRM, socket_timeout_alarm_handler)" in the main routine. Any ideas? Dave Goldsmith ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From slebrun at muskoka.com Thu Feb 6 15:39:31 2003 From: slebrun at muskoka.com (Shayne Lebrun) Date: Thu, 6 Feb 2003 09:39:31 -0500 Subject: Comments - history In-Reply-To: <1044539111.26175.2.camel@operacao> References: <1044539111.26175.2.camel@operacao> Message-ID: ...Don't delete the comments, then? Should make for a nice history. -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Henrique leandro Sent: Thursday, February 06, 2003 8:45 AM To: NAGIOS Subject: [Nagios-users] Comments - history Hi Anybody know how do i for make a history from all comments stored. i'm using Mysql for storage datas, but when delete a comment, his saken from database too. thanks for help bye Henrique Leandro VARIG S.A ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sghosh at sghosh.org Thu Feb 6 15:44:11 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Thu, 06 Feb 2003 09:44:11 -0500 (EST) Subject: Fwd: Plugin Installation - I have rtfm no help2 In-Reply-To: References: Message-ID: Yes the rpm installed properly and tripwire is complaining correctly that there are new files on the system that do not match the database of installed files. rpm -ql nagios-plugins for installation list what/where Because the a lot of plugins call external utilities (some of which may not be installed on your system or have different locations) I woudl recommend you dowload the tar.gz file and go through the configure/make process. -sg On Thu, 6 Feb 2003, Raj Mudhar wrote: > Hi again, > > Just to let you know when i did do the rpm -i (nagios file) all it said > in return was that i had new mail in my var/spool/mail/root > > when i goto the root file it says that > > *****error: Tripwire database for Nagtest1 not found ****** (Nagtest1 is my machine name) > *****Run /etc/tripwire/twinstall.sh and/or tripwire -init***** > > Im not sure what this is.. but I dont think the RPM installed at all. :( > > the command i used is rpm -i nagios-plugins-1.3.0-beta2.i386.rpm and i > ran this from / (before root where i ran my nagios core prog from) > > Hope this helps. > -- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sghosh at sghosh.org Thu Feb 6 15:38:40 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Thu, 06 Feb 2003 09:38:40 -0500 (EST) Subject: Nagios to monitor MQSeries In-Reply-To: <3319.1044513574@www48.gmx.net> References: <3319.1044513574@www48.gmx.net> Message-ID: Can you find out what command response sequence can be passed/received from MQSeries to determine state? I'm sure a plugin could be created... -sg On Thu, 6 Feb 2003 Detlef.Knop at gmx.de wrote: > Dear all, > > I would like to check whether MQSeries is available as a service on several > of my hosts. My first approach was to use the check_tcp plugin which from my > point of view worked fine. But the people looking after MQSeries on these > machines came back to me and complained that each time the plugin ran MQSeries > reported errors on these systems (two errors per check) because MQSeries > detects the incoming connection and wants to receive proper data, but then the > connection is closed. > > Has anyone ever tried to do the same and found a solution? Maybe there is a > way using passive checks, or we might have to look into the possibility to > write a plugin. > > Kind regards > > Detlef Knop > > -- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sghosh at sghosh.org Thu Feb 6 15:51:03 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Thu, 06 Feb 2003 09:51:03 -0500 (EST) Subject: Macro definition in notify command In-Reply-To: <3E426310.9040704@mindsw.com> References: <3E426310.9040704@mindsw.com> Message-ID: http://nagios.sourceforge.net/docs/1_0/macros.html $ARGx$ is not available in notifications.. -sg On Thu, 6 Feb 2003, Atul Gosain wrote: > Hi > > I have to use a $ARG$ from a service check into the misccommands.cfg ( > in service-notify-by-email) . By default its not available in the notify > commands as per the documentation of the Nagios. > Can anybody tell how to achieve this. > > Regards > Atul > > -- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jschroeder at vermeermfg.com Thu Feb 6 15:56:05 2003 From: jschroeder at vermeermfg.com (Jason Schroeder) Date: Thu, 6 Feb 2003 08:56:05 -0600 Subject: Nrpe and Snmp problems Message-ID: <000e01c2cdef$dfd9dcb0$060210ac@D0123> I am running Nagios on a Sun Ultra 10 with Solaris 9 on it. I have a remote Sun Ultra 10 with Solaris 8 on it. I have nrpe 1.8 running on the remote host, and it uses the check_snmp to query cisco hardware. I have it returning the hostname of the router to make sure it is up and running. On the remote server the response is "SNMP OK - router1" (using check_snmp -H router1 -o system.sysName.0 -C public -s router1). When I run the check_nrpe command from the nagios host, the return is "SNMP WARNING - router1" (using check_nrpe -H remoteserver -c check_router1). All of the information is correct, any idea why the return info on the nagios host is a warning? Thanks. ------------------------------------------------ Jason Schroeder, CCNP Certified jschroeder at vermeermfg.com ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jlixfeld at fastvibe.com Thu Feb 6 16:40:02 2003 From: jlixfeld at fastvibe.com (Jason Lixfeld) Date: Thu, 06 Feb 2003 10:40:02 -0500 Subject: Configuration option for auto-acknowledge? Message-ID: <3E4281D2.5090004@fastvibe.com> Greetings, At our organization, we pre-provision users and use nagios to poll the provisioning server and automatically add users to the nagios configuration. The problem with this implementation is that the users may not be active before they have been provisioned. This means that until they login for the first time, alarms will go off unless we manually acknowledge each of the pre-provisioned users. A user may not login for a long period of time after they are provisioned, and thus added to nagios. What I'm wondering is if there is a configuration hook that can be inserted for each user that sets the initial notification state to acknowledged so we don't have to manually acknowledge each user. Thank you in advance. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From andrew at anvil.org Thu Feb 6 16:50:01 2003 From: andrew at anvil.org (Andrew Meredith) Date: Thu, 06 Feb 2003 15:50:01 +0000 Subject: Fwd: Distributed checking References: <20030205190117.GA11410@cannonfodder.org> <200302060919.08408.jasmine.chua@securecirt.com> <200302061003.06319.jasmine.chua@securecirt.com> <200302061302.17747.jasmine.chua@securecirt.com> <3E420844.7000407@mindsw.com> Message-ID: <3E428429.8090302@anvil.org> This is the same problem I described under: Subject: Distributed Checks Date: 2003-02-04 1512 In that mail I confirm that if you were to do this, then the server would indeed stop performing active checks .. which is what I want, as the central server cannot successfully perform the checks from it's IP address. However, it doesn't then do anything else either. I was expecting it to mark the service as unknown or down or somethng, it just keeps on displaying the last service status that it received. Andy M Atul Gosain wrote: > Hi > > The problem is simple. > U have check_freshness variable set to 1. The effect of this is that > whenever the passive service results does not reach nagios for some time > (freshness_threshold ), it considers the result as stale and starts > checking actively for that service. If u want that active checks are not > executed when passive results are stale, then disable check_freshness > variable. > Just tell me in case ur problem is solved. > > Thanks > Atul > > Jasmine wrote: > >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >> >> HI all.. i m still having this problem sorry. i thought i made a >> config mistake, but that does not solve the problem. >> >> >>>> just a note that I am having about the same problem as you. Anyone has >>>> any ideas? >>>> >>>> On Wednesday 05 February 2003 19:01, Jason Burnett wrote: >>>> >>>> >>>>> o.k. I am using the distributed method with passive checks to monitor >>>>> some hosts I have behind a firewall that I dont want to punch holes >>>>> in. >>>>> For some reason my central nagios server keeps running active >>>>> checks on >>>>> the hosts even though I have that disabled on a per service instance. >>>>> So I end up with the service up when it gets the info via the passive >>>>> tests then it goes critical when the central server tries to check it >>>>> with an active test. Here is the service config from the central >>>>> server: >>>>> >>>>> define service{ >>>>> host_name pinky >>>>> service_description SSH >>>>> check_command check_ssh >>>>> max_check_attempts 2 >>>>> normal_check_interval 5 >>>>> retry_check_interval 5 >>>>> passive_checks_enabled 1 >>>>> active_checks_enabled 0 >>>>> check_period 24x7 >>>>> flap_detection_enabled 1 >>>>> process_perf_data 1 >>>>> retain_status_information 1 >>>>> retain_nonstatus_information 1 >>>>> notification_interval 1 >>>>> notification_period 24x7 >>>>> notification_options w,u,c,r >>>>> notifications_enabled 1 >>>>> check_freshness 1 >>>>> freshness_threshold 180 >>>>> contact_groups admins >>>>> } >>>>> ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sghosh at sghosh.org Thu Feb 6 16:54:18 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Thu, 06 Feb 2003 10:54:18 -0500 (EST) Subject: Nrpe and Snmp problems In-Reply-To: <000e01c2cdef$dfd9dcb0$060210ac@D0123> References: <000e01c2cdef$dfd9dcb0$060210ac@D0123> Message-ID: On Thu, 6 Feb 2003, Jason Schroeder wrote: > I am running Nagios on a Sun Ultra 10 with Solaris 9 on it. I have a > remote Sun Ultra 10 with Solaris 8 on it. I have nrpe 1.8 running on > the remote host, and it uses the check_snmp to query cisco hardware. I > have it returning the hostname of the router to make sure it is up and > running. On the remote server the response is "SNMP OK - router1" > (using check_snmp -H router1 -o system.sysName.0 -C public -s router1). > When I run the check_nrpe command from the nagios host, the return is > "SNMP WARNING - router1" (using check_nrpe -H remoteserver -c > check_router1). All of the information is correct, any idea why the > return info on the nagios host is a warning? Thanks. > Probably some permissions/env issue which the nrpe daemon. When you run the command on the remote system- did you run it as the same user as nrpe? The basic warning in your scenario is due to snmpget returning some output on stderr. If the -s regex had failed then it would have returned CRITICAL -- -sg ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From ryano at ch-gifts.com Thu Feb 6 17:02:29 2003 From: ryano at ch-gifts.com (Ryan O'Rourke) Date: 06 Feb 2003 10:02:29 -0600 Subject: path to plugins in hosts.cfg Message-ID: <1044547350.16238.301.camel@ryano> Hello, I'm working on getting Nagios installed on RedHat 8. The last step of the nagios-plugins INSTALL file says to make sure the hosts.cfg file contains the correct path to the newly installed plugins. I don't see anywhere in the hosts.cfg where the plugins path is/can be defined. Do I simply need to do: check_command /usr/local/nagios/libexec/command ? Thank you. -- Ryan ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Volker.Aust at premiere.de Thu Feb 6 17:04:30 2003 From: Volker.Aust at premiere.de (Volker.Aust at premiere.de) Date: Thu, 6 Feb 2003 17:04:30 +0100 Subject: FW: Nagios to monitor MQSeries Message-ID: Sorry, I have forgotten the list... > -----Original Message----- > From: Aust, Volker, PRE > Sent: Thursday, February 06, 2003 1:06 PM > To: 'Detlef.Knop at gmx.de' > Subject: RE: [Nagios-users] Nagios to monitor MQSeries > > > Hi Detlef, > > when you install the MQSeries client (with developer > support), you get some sample programs. One of these sample > programs is "amqsailq", which lists the length of all > MQ-queues of a server. You can use "amqsailq" local or > remote. When you use this program (or a mofified version, > that only checks important queues like we do (a colleague has > modified some of the sample programs)) remote, you can make > two tests with one call: > > - check the connectivity to the MQ-server and the -service > > - check the length of some important queues (too many, too few, ...) > > I have wraped the program in a shell script to generate the > Nagios stuff (return-code and output). > > Hope this helps. > > -vol > > > -----Original Message----- > > From: Detlef.Knop at gmx.de [mailto:Detlef.Knop at gmx.de] > > Sent: Thursday, February 06, 2003 7:40 AM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Nagios to monitor MQSeries > > > > > > Dear all, > > > > I would like to check whether MQSeries is available as a > > service on several > > of my hosts. My first approach was to use the check_tcp > > plugin which from my > > point of view worked fine. But the people looking after > > MQSeries on these > > machines came back to me and complained that each time the > > plugin ran MQSeries > > reported errors on these systems (two errors per check) > > because MQSeries > > detects the incoming connection and wants to receive proper > > data, but then the > > connection is closed. > > > > Has anyone ever tried to do the same and found a solution? > > Maybe there is a > > way using passive checks, or we might have to look into the > > possibility to > > write a plugin. > > > > Kind regards > > > > Detlef Knop > > > > -- > > +++ GMX - Mail, Messaging & more http://www.gmx.net +++ > > NEU: Mit GMX ins Internet. Rund um die Uhr f?r 1 ct/ Min. surfen! > > > > > > > > ------------------------------------------------------- > > This SF.NET email is sponsored by: > > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > > http://www.vasoftware.com > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From wim at hsmade.com Thu Feb 6 17:37:48 2003 From: wim at hsmade.com (Wim Fournier) Date: Thu, 6 Feb 2003 17:37:48 +0100 (CET) Subject: FW: Nagios to monitor MQSeries In-Reply-To: References: Message-ID: <53148.217.198.203.200.1044549468.squirrel@webmail.kern.nl> Are you talking about Sonic MQ here? > Sorry, I have forgotten the list... > >> -----Original Message----- >> From: Aust, Volker, PRE >> Sent: Thursday, February 06, 2003 1:06 PM >> To: 'Detlef.Knop at gmx.de' >> Subject: RE: [Nagios-users] Nagios to monitor MQSeries >> >> >> Hi Detlef, >> >> when you install the MQSeries client (with developer >> support), you get some sample programs. One of these sample >> programs is "amqsailq", which lists the length of all >> MQ-queues of a server. You can use "amqsailq" local or >> remote. When you use this program (or a mofified version, >> that only checks important queues like we do (a colleague has >> modified some of the sample programs)) remote, you can make >> two tests with one call: >> >> - check the connectivity to the MQ-server and the -service >> >> - check the length of some important queues (too many, too few, ...) >> >> I have wraped the program in a shell script to generate the >> Nagios stuff (return-code and output). >> >> Hope this helps. >> >> -vol >> >> > -----Original Message----- >> > From: Detlef.Knop at gmx.de [mailto:Detlef.Knop at gmx.de] >> > Sent: Thursday, February 06, 2003 7:40 AM >> > To: nagios-users at lists.sourceforge.net >> > Subject: [Nagios-users] Nagios to monitor MQSeries >> > >> > >> > Dear all, >> > >> > I would like to check whether MQSeries is available as a >> > service on several >> > of my hosts. My first approach was to use the check_tcp >> > plugin which from my >> > point of view worked fine. But the people looking after >> > MQSeries on these >> > machines came back to me and complained that each time the >> > plugin ran MQSeries >> > reported errors on these systems (two errors per check) >> > because MQSeries >> > detects the incoming connection and wants to receive proper >> > data, but then the >> > connection is closed. >> > >> > Has anyone ever tried to do the same and found a solution? >> > Maybe there is a >> > way using passive checks, or we might have to look into the >> > possibility to >> > write a plugin. >> > >> > Kind regards >> > >> > Detlef Knop >> > >> > -- >> > +++ GMX - Mail, Messaging & more http://www.gmx.net +++ >> > NEU: Mit GMX ins Internet. Rund um die Uhr f?r 1 ct/ Min. surfen! >> > >> > >> > >> > ------------------------------------------------------- >> > This SF.NET email is sponsored by: >> > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >> > http://www.vasoftware.com >> > _______________________________________________ >> > Nagios-users mailing list >> > Nagios-users at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/nagios-users >> > >> > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users Grtz, Wim Fournier wim at hsmade.[com|net|org] ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From wangee at linuxbe.org Thu Feb 6 17:48:15 2003 From: wangee at linuxbe.org (Christian Vanguers) Date: Thu, 6 Feb 2003 17:48:15 +0100 Subject: [Nagiosplug-help] Nagios Plugins & NRPE on Reliant Unix and O pen Unix 8.0 In-Reply-To: <2D4326C2FB16D5119D870800062B194401F254C8@erls9xca.erl.sbs.de> References: <2D4326C2FB16D5119D870800062B194401F254C8@erls9xca.erl.sbs.de> Message-ID: <20030206164815.GA19769@skynet.be> On Thu, Feb 06, 2003 at 10:02:34AM +0100, Gruenbaum Stefan wrote: > OK :) > > I?ve installed gnu-make. All right. > But the Installation of gnu-gcc failed during the "make bootstrap". Many > undefined symbols, warnings and syntax errors. I love Open Unix 8.0 ;) I had to compile Nagios on Open Unix 8 for one of my customers. Do you want the binaries ? Chris -- +----------------------------------+-----------------------------------------+ | ____ _____ _ __ | | | / __ \____ / ___/__ _| |/ / | Christian Vanguers | | / / / / __ \\__ \/ / / / / | ================== | | / /_/ / /_/ /__/ / /_/ / | | mailto: christian.vanguers at opsyx.com | | \____/ .___/____/\__, /_/|_| | www: http://www.opsyx.com | | /_/ /____/ | | | OPen SYstems eXpertise | | +----------------------------------------------------------------------------+ | GnuPG keyID == 0xF814CC3A | | Key Fingerprint == 76D7 8E94 440F E430 3981 D922 73E1 76DF F814 CC3A | +----------------------------------+-----------------------------------------+ ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From wangee at linuxbe.org Thu Feb 6 17:55:10 2003 From: wangee at linuxbe.org (Christian Vanguers) Date: Thu, 6 Feb 2003 17:55:10 +0100 Subject: Nrpe and Snmp problems In-Reply-To: References: <000e01c2cdef$dfd9dcb0$060210ac@D0123> Message-ID: <20030206165509.GB19769@skynet.be> On Thu, Feb 06, 2003 at 10:54:18AM -0500, Subhendu Ghosh wrote: > On Thu, 6 Feb 2003, Jason Schroeder wrote: > > > I am running Nagios on a Sun Ultra 10 with Solaris 9 on it. I have a > > remote Sun Ultra 10 with Solaris 8 on it. I have nrpe 1.8 running on > > the remote host, and it uses the check_snmp to query cisco hardware. I > > have it returning the hostname of the router to make sure it is up and > > running. On the remote server the response is "SNMP OK - router1" > > (using check_snmp -H router1 -o system.sysName.0 -C public -s router1). > > When I run the check_nrpe command from the nagios host, the return is > > "SNMP WARNING - router1" (using check_nrpe -H remoteserver -c > > check_router1). All of the information is correct, any idea why the > > return info on the nagios host is a warning? Thanks. > > > > Probably some permissions/env issue which the nrpe daemon. When you run > the command on the remote system- did you run it as the same user as nrpe? > > The basic warning in your scenario is due to snmpget returning some > output on stderr. If the -s regex had failed then it would have returned > CRITICAL Maybe the problem resides on the fact that locally, the hostname returned is "router1", and remotely, it is seen as "router1.yourdomain.ext" I already had a similar problem Chris -- +----------------------------------+-----------------------------------------+ | ____ _____ _ __ | | | / __ \____ / ___/__ _| |/ / | Christian Vanguers | | / / / / __ \\__ \/ / / / / | ================== | | / /_/ / /_/ /__/ / /_/ / | | mailto: christian.vanguers at opsyx.com | | \____/ .___/____/\__, /_/|_| | www: http://www.opsyx.com | | /_/ /____/ | | | OPen SYstems eXpertise | | +----------------------------------------------------------------------------+ | GnuPG keyID == 0xF814CC3A | | Key Fingerprint == 76D7 8E94 440F E430 3981 D922 73E1 76DF F814 CC3A | +----------------------------------+-----------------------------------------+ ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From wangee at linuxbe.org Thu Feb 6 18:03:48 2003 From: wangee at linuxbe.org (Christian Vanguers) Date: Thu, 6 Feb 2003 18:03:48 +0100 Subject: path to plugins in hosts.cfg In-Reply-To: <1044547350.16238.301.camel@ryano> References: <1044547350.16238.301.camel@ryano> Message-ID: <20030206170347.GC19769@skynet.be> On Thu, Feb 06, 2003 at 10:02:29AM -0600, Ryan O'Rourke wrote: > Hello, > > I'm working on getting Nagios installed on RedHat 8. The last step of > the nagios-plugins INSTALL file says to make sure the hosts.cfg file > contains the correct path to the newly installed plugins. > I don't see anywhere in the hosts.cfg where the plugins path is/can be > defined. Do I simply need to do: > check_command /usr/local/nagios/libexec/command > ? Check resource.cfg, and especially the first lines... # Sets $USER1$ to be the path to the plugins $USER1$=/usr/local/nagios/libexec Here is an example of command (in my case, the file is "checkcommands.cfg) -- Notice the $USER1$ # 'check_ssh' command definition define command{ command_name check_ssh command_line $USER1$/check_ssh $HOSTADDRESS$ } Finally, in services.cfg (normally), the syntax for the command is : check_command check_ftp!10!15!20 Don't fear to use the default configurations, everything is pretty well explained. Hope it helps, Chris -- +----------------------------------+-----------------------------------------+ | ____ _____ _ __ | | | / __ \____ / ___/__ _| |/ / | Christian Vanguers | | / / / / __ \\__ \/ / / / / | ================== | | / /_/ / /_/ /__/ / /_/ / | | mailto: christian.vanguers at opsyx.com | | \____/ .___/____/\__, /_/|_| | www: http://www.opsyx.com | | /_/ /____/ | | | OPen SYstems eXpertise | | +----------------------------------------------------------------------------+ | GnuPG keyID == 0xF814CC3A | | Key Fingerprint == 76D7 8E94 440F E430 3981 D922 73E1 76DF F814 CC3A | +----------------------------------+-----------------------------------------+ ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jcarro10 at sprintspectrum.com Thu Feb 6 18:02:59 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Thu, 6 Feb 2003 11:02:59 -0600 Subject: path to plugins in hosts.cfg Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F2549@PKDWB03C.ad.sprint.com> I'm not sure why it says that. To date, all I've ever used is the simple command. CAVEAT: The command referenced by check_command is NOT the plugin binary. At least not directly. What you're specifying with check_command is actually a token which needs to be defined in checkcommands.cfg. *This* is where you reference the plugin binary. In many cases (in a brand new install), the names of the tokens are identical to the plugin binaries, which tends to derail Nagios newbies. I know it did me. jc > -----Original Message----- > From: Ryan O'Rourke [mailto:ryano at ch-gifts.com] > Sent: Thursday, February 06, 2003 10:02 AM > To: NAGIOS > Subject: [Nagios-users] path to plugins in hosts.cfg > > > Hello, > > I'm working on getting Nagios installed on RedHat 8. The last step of > the nagios-plugins INSTALL file says to make sure the hosts.cfg file > contains the correct path to the newly installed plugins. > I don't see anywhere in the hosts.cfg where the plugins path is/can be > defined. Do I simply need to do: > check_command /usr/local/nagios/libexec/command > ? > > Thank you. > > -- Ryan > > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From RLAdams at Kelsey-Seybold.com Thu Feb 6 19:18:53 2003 From: RLAdams at Kelsey-Seybold.com (Russell Adams) Date: Thu, 6 Feb 2003 12:18:53 -0600 Subject: attempt recovery on service CRITICAL with nrpe In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB2F2535@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB2F2535@PKDWB03C.ad.sprint.com> Message-ID: <21434.2672763907$1044556399@news.gmane.org> Checkout MONIT. I've considered daemontools, but MONIT seems to fit the bill better. I'm about to roll it out to several of my machines with an older unstable UCD-SNMP daemon on them... http://www.tildeslash.com/monit/ Russell On Fri, Jan 31, 2003 at 01:27:31PM -0600, Carroll, Jim P [Contractor] wrote: > If you're running the nrpe daemon on your client host as the unprivileged > user nagios, you might discover some privilege problems, especially trying > to start network daemons which listen on ports below 1024. If you're > running the nrpe daemon on your client host as root, ... ah, but there's no > point discussing that insecure option, because you wouldn't be doing that. > Would you? ;) > > There might be better options to consider. The one which springs to mind is > daemontools (http://cr.yp.to/) This is certainly how tinydns and dnscache > run. If (for some unknown reason) the daemon exits, daemontools will simply > start it up again. If you direct daemontools to shut down the daemon, then > it will. If you direct daemontools to restart the daemon, then it will. > > Daemontools may not work for all daemons available. Having said that, there > may be other solutions out there. > > I'm more in favour of letting Nagios do the centralized monitoring, and > letting systems keep themselves running. If you push the responsibility of > restarting daemons to Nagios, you now have a single point of failure (not to > mention the latency between checks in larger environments which could delay > the recovery of a downed daemon). > > Something else to consider is this: If a daemon dies for no good reason, > why not get to the bottom of it and get it fixed? Especially if it's a > mission critical process? > > Just my $0.02. > > jc > > > -----Original Message----- > > From: Shayne Lebrun [mailto:slebrun at muskoka.com] > > Sent: Friday, January 31, 2003 12:34 PM > > To: nagios-users at lists.sourceforge.net > > Subject: RE: [Nagios-users] attempt recovery on service CRITICAL with > > nrpe > > > > > > If only NRPE could pass arguments, I could do something like: > > > > event_handler check_nrpe!restart-sillydaemon > > > > Then in your command: > > command > > command_line /path/check_nrpe -H $HOSTADDRESS$ -c > > restart-sillydaemon -ArgChain > > $SERVICESTATUS$!$STATETYPE$!$SERVICEATTEMPT$ > > > > Then in the nrpe.cfg on the remote host: > > command[restart-sillydaemon]=/path/restart-sillydaemon $ARG1$ > > $ARG2$ $ARG3$ > > > > i.e. I just want the ArgChain, !-delimited, separated into > > ARGn variables, > > which nrpe could then send along said arguments to the commands. > > > > Ah well. If wishes were horses, then beggers would ride. > > > > Consider it a feature request. :-) > > > > Muskoka.com > > 115 Manitoba Street > > Bracebridge, Ontario > > P1L 2B6 > > (705)645-6097 > > > > Muskoka.com is pleased to announce > > New High Speed Services > > please visit > > http://www.muskoka.com/services.htm > > for more information > > > > > > > > > > ------------------------------------------------------- > > This SF.NET email is sponsored by: > > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > > http://www.vasoftware.com > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jcarro10 at sprintspectrum.com Thu Feb 6 19:10:31 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Thu, 6 Feb 2003 12:10:31 -0600 Subject: FW: Nagios to monitor MQSeries Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F254A@PKDWB03C.ad.sprint.com> MQSeries is similar to but different than SonicMQ. The latter is a JMS product by Sonic Software. The former is an IBM product using a proprietary standard. We have both here; I wouldn't mind monitoring both of these natively. Hm. We don't seem to have the 'amqsailq' program. What's the default path to this? I didn't find it under /opt/mqm nor under /usr (on Solaris8). $ pkginfo -l | grep -i mq PKGINST: mqjava DESC: MQSeries classes for Java and MQSeries classes for Java Message Service PKGINST: mqm NAME: MQSeries for Sun Solaris 2 PKGINST: mqm-upd03 NAME: MQSeries for Sun Solaris 2 - U478291 PKGINST: mqm-upd05 NAME: MQSeries for Sun Solaris 2 - U481514 jc > -----Original Message----- > From: Wim Fournier [mailto:wim at hsmade.com] > Sent: Thursday, February 06, 2003 10:38 AM > To: Volker.Aust at premiere.de > Cc: nagios-users at lists.sourceforge.net > Subject: Re: FW: [Nagios-users] Nagios to monitor MQSeries > > > Are you talking about Sonic MQ here? > > > > > Sorry, I have forgotten the list... > > > >> -----Original Message----- > >> From: Aust, Volker, PRE > >> Sent: Thursday, February 06, 2003 1:06 PM > >> To: 'Detlef.Knop at gmx.de' > >> Subject: RE: [Nagios-users] Nagios to monitor MQSeries > >> > >> > >> Hi Detlef, > >> > >> when you install the MQSeries client (with developer > >> support), you get some sample programs. One of these sample > >> programs is "amqsailq", which lists the length of all > >> MQ-queues of a server. You can use "amqsailq" local or > >> remote. When you use this program (or a mofified version, > >> that only checks important queues like we do (a colleague has > >> modified some of the sample programs)) remote, you can make > >> two tests with one call: > >> > >> - check the connectivity to the MQ-server and the -service > >> > >> - check the length of some important queues (too many, too > few, ...) > >> > >> I have wraped the program in a shell script to generate the > >> Nagios stuff (return-code and output). > >> > >> Hope this helps. > >> > >> -vol > >> > >> > -----Original Message----- > >> > From: Detlef.Knop at gmx.de [mailto:Detlef.Knop at gmx.de] > >> > Sent: Thursday, February 06, 2003 7:40 AM > >> > To: nagios-users at lists.sourceforge.net > >> > Subject: [Nagios-users] Nagios to monitor MQSeries > >> > > >> > > >> > Dear all, > >> > > >> > I would like to check whether MQSeries is available as a > >> > service on several > >> > of my hosts. My first approach was to use the check_tcp > >> > plugin which from my > >> > point of view worked fine. But the people looking after > >> > MQSeries on these > >> > machines came back to me and complained that each time the > >> > plugin ran MQSeries > >> > reported errors on these systems (two errors per check) > >> > because MQSeries > >> > detects the incoming connection and wants to receive proper > >> > data, but then the > >> > connection is closed. > >> > > >> > Has anyone ever tried to do the same and found a solution? > >> > Maybe there is a > >> > way using passive checks, or we might have to look into the > >> > possibility to > >> > write a plugin. > >> > > >> > Kind regards > >> > > >> > Detlef Knop > >> > > >> > -- > >> > +++ GMX - Mail, Messaging & more http://www.gmx.net +++ > >> > NEU: Mit GMX ins Internet. Rund um die Uhr f?r 1 ct/ Min. surfen! > >> > > >> > > >> > > >> > ------------------------------------------------------- > >> > This SF.NET email is sponsored by: > >> > SourceForge Enterprise Edition + IBM + LinuxWorld = > Something 2 See! > >> > http://www.vasoftware.com > >> > _______________________________________________ > >> > Nagios-users mailing list > >> > Nagios-users at lists.sourceforge.net > >> > https://lists.sourceforge.net/lists/listinfo/nagios-users > >> > > >> > > > > > > ------------------------------------------------------- > > This SF.NET email is sponsored by: > > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > > http://www.vasoftware.com > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > Grtz, > > Wim Fournier > wim at hsmade.[com|net|org] > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jcarro10 at sprintspectrum.com Thu Feb 6 19:18:32 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Thu, 6 Feb 2003 12:18:32 -0600 Subject: Bug in Nagios orphan-check?! Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E144C@PKDWB03C.ad.sprint.com> Try running "sar -r" to see if there's a correlation between the times you've had problems and any indication of memory shortage. Or whether the memory is quite bountiful at all times. jc > -----Original Message----- > From: Matthias Eichler [mailto:me at ame.de] > Sent: Thursday, February 06, 2003 3:01 AM > To: Carroll, Jim P [Contractor] > Cc: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Bug in Nagios orphan-check?! > > > Hi Jim, > > the box has 256 MB RAM as I posted and 512 MB of swap. > But I think under normal circumstances the box should not run out > of memory. > > Now e.g. Nagios is running for 17 hours and the stats of the box are: > ---cut--- > 09:57:16 up 63 days, 23:13, 1 user, load average: 0.01, 0.07, 0.03 > 56 processes: 53 sleeping, 3 running, 0 zombie, 0 stopped > CPU states: 1.8% user, 4.0% system, 0.0% nice, 94.2% idle > Mem: 253916K total, 208776K used, 45140K free, > 115400K buffers > Swap: 257032K total, 4248K used, 252784K free, > 35288K cached > ---cut--- > > This looks pretty fine for me, especially because 200MB of > RAM are not really > used, 32MB are cached and 115MB buffered...if Nagios or any > other app should > need more RAM here it should get it... > > So IMHO there must be some bug if Nagios runs out of > (memory-)control in that > way after just 5 days running... > Ok, I have 478 services on 32 hosts but that should not be > sooo much for such a > box, shouldnt it?!? > > Matthias > > Zitat von "Carroll, Jim P [Contractor]" : > > > It *does* seem that you're running out of memory. Just a guess. > > > > You haven't mentioned how much RAM or swap you have on this > machine. 80 > > nagios processes isn't much, considering I've had quite a > bit more than that > > in the past. Granted, I'm also running with 1 GB of RAM > and 2 GB of swap. > > > > You might want to consider adding more RAM and bump up your > swap space. > > > > jc > > > > > -----Original Message----- > > > From: Matthias Eichler [mailto:me at ame.de] > > > Sent: Wednesday, February 05, 2003 4:54 AM > > > To: nagios-users at lists.sourceforge.net > > > Subject: [Nagios-users] Bug in Nagios orphan-check?! > > > > > > > > > Hi List, > > > > > > I have some Nagios 1.0 installed on a Debian 3 Woody. The machine > > > is some Intel Celeron 700 MHz with 256 MB of RAM. > > > > > > The setup was doing really well for some long time, but now I get > > > some severe problems more or less every five days. > > > > > > Today we had some connection problems to some remote > farm. But Nagios > > > didnt send out host-down notifications, it said this in > its event log: > > > > > > "Warning: The check of service 'blabla' on host 'blabla' > looks like > > > it was orphaned (results never came back). I'm scheduling > an immediate > > > check of the service..." > > > Since this first entry Nagios reported this warning with > EVERY service > > > check, about 142 times... > > > At this time I tried to get on the web interface and got > no connect, > > > the SSH login took very long, what I am not wondering about, > > > because the > > > box had a load of 7.83! > > > I saw that there were about 80 nagios processes in the > list. They were > > > not stopped by some /etc/init.d/nagios stop, I had to > kill them all. > > > > > > In dmesg I see entries like: > > > --- > > > Feb 5 11:12:14 ozzy kernel: Out of Memory: Killed process 18026 > > > (apache). > > > Feb 5 11:12:20 ozzy kernel: Out of Memory: Killed process 18022 > > > (apache). > > > --- > > > or > > > --- > > > Feb 5 11:21:48 ozzy kernel: request_module[net-pf-10]: > > > waitpid(13304,...) failed, errno 512 > > > Feb 5 11:21:48 ozzy kernel: request_module[net-pf-10]: > > > waitpid(13305,...) failed, errno 512 > > > Feb 5 11:21:48 ozzy kernel: request_module[net-pf-10]: > > > waitpid(13306,...) failed, errno 512 > > > --- > > > > > > I think there might be some bug, because also the remote > > > site is not available Nagios should warn us about it and > > > not confuse the box like this...?!? > > > > > > Any ideas?!? > > > > > > Greetings from Munich, > > > > > > Matthias > > > > > > -- > > > > > > Mit freundlichen Gr??en > > > AME Aigner Media & Entertainment GmbH > > > > > > > > > Matthias Eichler > > > Leiter Technik | Technical Director > > > _______________________________________ > > > > > > AME? Aigner Media & Entertainment GmbH > > > Bavariaring 8 D-80336 M?nchen > > > > > > Tel [+49] ?89.427 05 - 330 > > > Fax [+49] ?89.427 05 - 400 > > > > > > http://ame.de eMail: me at ame.de > > > _______________________________________ > > > Angaben nach TDG|GmbHG:ame.de/impressum > > > > > > > > -- > > Matthias Eichler > Leiter Technik | Technical Director > _____________________________________ > > AME Aigner Media & Entertainment GmbH > Bavariaring 8 D-80336 Muenchen > > Tel: [+49] ?89.427.05-330 > Fax: [+49] ?89.427.05-400 > _____________________________________ > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jcarro10 at sprintspectrum.com Thu Feb 6 19:24:21 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Thu, 6 Feb 2003 12:24:21 -0600 Subject: Configuration option for auto-acknowledge? Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F254B@PKDWB03C.ad.sprint.com> Perhaps some greater detail is required. Some questions: - exactly where in Nagios are you automatically adding these users? Could you provide a sample configuration which has been automatically added? - where are the users logging into? Into Nagios? Into the o/s? - what changes, as far as Nagios is concerned, after the user logs in for the first time? There might be a much more elegant solution to what you're asking. Having said that, maybe what you're looking for is a way of pushing commands directly into Nagios, via nagios.cmd. Check the FAQ. jc > -----Original Message----- > From: Jason Lixfeld [mailto:jlixfeld at fastvibe.com] > Sent: Thursday, February 06, 2003 9:40 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Configuration option for auto-acknowledge? > > > Greetings, > > At our organization, we pre-provision users and use > nagios to poll the > provisioning server and automatically add users to the nagios > configuration. The problem with this implementation is that > the users > may not be active before they have been provisioned. This means that > until they login for the first time, alarms will go off unless we > manually acknowledge each of the pre-provisioned users. A > user may not > login for a long period of time after they are provisioned, and thus > added to nagios. What I'm wondering is if there is a > configuration hook > that can be inserted for each user that sets the initial notification > state to acknowledged so we don't have to manually > acknowledge each user. > > Thank you in advance. > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jlixfeld at fastvibe.com Thu Feb 6 20:22:20 2003 From: jlixfeld at fastvibe.com (Jason Lixfeld) Date: Thu, 06 Feb 2003 14:22:20 -0500 Subject: Configuration option for auto-acknowledge? In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB2F254B@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB2F254B@PKDWB03C.ad.sprint.com> Message-ID: <3E42B5EC.3010204@fastvibe.com> Jim, Carroll, Jim P [Contractor] wrote: > Perhaps some greater detail is required. Some questions: > > - exactly where in Nagios are you automatically adding these users? Could > you provide a sample configuration which has been automatically added? I am creating host and service entries in nagios based on information which is in our RADIUS user database: Our radius database gives us two values for each user, username and IP address. It is imported into nagios via a perl script and username becomes host_name and IP address is the same, address for an entry that looks like this for each user in our radius database: define host { use w7 host_name harv2459.w7 alias harv2459 address 216.7.193.244 } define service { use w7 host_name harv2459.w7 service_description PING contact_groups w7.email,w7.pager check_command check-host-alive } > - where are the users logging into? Into Nagios? Into the o/s? The users are logging into our DSL network over ppp. It is a dedicated service but since we provision the users in radius (And thus are inserted into nagios) before the customers recieve the hardware to activate their service (PPP DSL router), as soon as nagios gets it's new config, it tries to monitor the user which isn't up yet. I'm looking for a way to tell Nagios to not notify us to the fact that harv2459 is unreachable until after the first time he logs in -- in essence, proactive acknowledgment of a service that isn't completely installed. > - what changes, as far as Nagios is concerned, after the user logs in for > the first time? After the user logs in, his router becomes pingable (via ppp) as it recieved the IP address from radius (which is also configured in radius). > There might be a much more elegant solution to what you're asking. And so I am hoping! :) > Having said that, maybe what you're looking for is a way of pushing commands > directly into Nagios, via nagios.cmd. Check the FAQ. Perhaps. Based on what I have said here, what do you suggest? > jc > > >>-----Original Message----- >>From: Jason Lixfeld [mailto:jlixfeld at fastvibe.com] >>Sent: Thursday, February 06, 2003 9:40 AM >>To: nagios-users at lists.sourceforge.net >>Subject: [Nagios-users] Configuration option for auto-acknowledge? >> >> >>Greetings, >> >> At our organization, we pre-provision users and use >>nagios to poll the >>provisioning server and automatically add users to the nagios >>configuration. The problem with this implementation is that >>the users >>may not be active before they have been provisioned. This means that >>until they login for the first time, alarms will go off unless we >>manually acknowledge each of the pre-provisioned users. A >>user may not >>login for a long period of time after they are provisioned, and thus >>added to nagios. What I'm wondering is if there is a >>configuration hook >>that can be inserted for each user that sets the initial notification >>state to acknowledged so we don't have to manually >>acknowledge each user. >> >>Thank you in advance. >> >> >> >> >>------------------------------------------------------- >>This SF.NET email is sponsored by: >>SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >>http://www.vasoftware.com >>_______________________________________________ >>Nagios-users mailing list >>Nagios-users at lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/nagios-users >> > > > > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From slebrun at muskoka.com Thu Feb 6 20:54:24 2003 From: slebrun at muskoka.com (Shayne Lebrun) Date: Thu, 6 Feb 2003 14:54:24 -0500 Subject: Configuration option for auto-acknowledge? In-Reply-To: <3E42B5EC.3010204@fastvibe.com> References: <3E42B5EC.3010204@fastvibe.com> Message-ID: Hurm. Have your import script not import a RADIUS entry into Nagios until such time as he's logged in. -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Jason Lixfeld Sent: Thursday, February 06, 2003 2:22 PM To: jcarro10 at sprintspectrum.com Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Configuration option for auto-acknowledge? Jim, Carroll, Jim P [Contractor] wrote: > Perhaps some greater detail is required. Some questions: > > - exactly where in Nagios are you automatically adding these users? Could > you provide a sample configuration which has been automatically added? I am creating host and service entries in nagios based on information which is in our RADIUS user database: Our radius database gives us two values for each user, username and IP address. It is imported into nagios via a perl script and username becomes host_name and IP address is the same, address for an entry that looks like this for each user in our radius database: define host { use w7 host_name harv2459.w7 alias harv2459 address 216.7.193.244 } define service { use w7 host_name harv2459.w7 service_description PING contact_groups w7.email,w7.pager check_command check-host-alive } > - where are the users logging into? Into Nagios? Into the o/s? The users are logging into our DSL network over ppp. It is a dedicated service but since we provision the users in radius (And thus are inserted into nagios) before the customers recieve the hardware to activate their service (PPP DSL router), as soon as nagios gets it's new config, it tries to monitor the user which isn't up yet. I'm looking for a way to tell Nagios to not notify us to the fact that harv2459 is unreachable until after the first time he logs in -- in essence, proactive acknowledgment of a service that isn't completely installed. > - what changes, as far as Nagios is concerned, after the user logs in for > the first time? After the user logs in, his router becomes pingable (via ppp) as it recieved the IP address from radius (which is also configured in radius). > There might be a much more elegant solution to what you're asking. And so I am hoping! :) > Having said that, maybe what you're looking for is a way of pushing commands > directly into Nagios, via nagios.cmd. Check the FAQ. Perhaps. Based on what I have said here, what do you suggest? > jc > > >>-----Original Message----- >>From: Jason Lixfeld [mailto:jlixfeld at fastvibe.com] >>Sent: Thursday, February 06, 2003 9:40 AM >>To: nagios-users at lists.sourceforge.net >>Subject: [Nagios-users] Configuration option for auto-acknowledge? >> >> >>Greetings, >> >> At our organization, we pre-provision users and use >>nagios to poll the >>provisioning server and automatically add users to the nagios >>configuration. The problem with this implementation is that >>the users >>may not be active before they have been provisioned. This means that >>until they login for the first time, alarms will go off unless we >>manually acknowledge each of the pre-provisioned users. A >>user may not >>login for a long period of time after they are provisioned, and thus >>added to nagios. What I'm wondering is if there is a >>configuration hook >>that can be inserted for each user that sets the initial notification >>state to acknowledged so we don't have to manually >>acknowledge each user. >> >>Thank you in advance. >> >> >> >> >>------------------------------------------------------- >>This SF.NET email is sponsored by: >>SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >>http://www.vasoftware.com >>_______________________________________________ >>Nagios-users mailing list >>Nagios-users at lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/nagios-users >> > > > > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From henrique.leandro at varig.com Thu Feb 6 21:53:15 2003 From: henrique.leandro at varig.com (Henrique leandro) Date: 06 Feb 2003 18:53:15 -0200 Subject: Colors Message-ID: <1044564795.28489.9.camel@operacao> Hi, ho do i for change the status colors ? we would like something: CRITICAL: ORANGE WARNING: BLUE UNKNOWN: GRAY PENDING: RED thanks ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From russell at quadrix.com Thu Feb 6 22:04:05 2003 From: russell at quadrix.com (Russell Scibetti) Date: Thu, 06 Feb 2003 16:04:05 -0500 Subject: FW: Nagios to monitor MQSeries References: Message-ID: <3E42CDC5.20204@quadrix.com> Can you share the shell script with us? We're looking into using the same thing. Russell Volker.Aust at premiere.de wrote: >Sorry, I have forgotten the list... > >>-----Original Message----- >>From: Aust, Volker, PRE >>Sent: Thursday, February 06, 2003 1:06 PM >>To: 'Detlef.Knop at gmx.de' >>Subject: RE: [Nagios-users] Nagios to monitor MQSeries >> >> >>Hi Detlef, >> >>when you install the MQSeries client (with developer >>support), you get some sample programs. One of these sample >>programs is "amqsailq", which lists the length of all >>MQ-queues of a server. You can use "amqsailq" local or >>remote. When you use this program (or a mofified version, >>that only checks important queues like we do (a colleague has >>modified some of the sample programs)) remote, you can make >>two tests with one call: >> >>- check the connectivity to the MQ-server and the -service >> >>- check the length of some important queues (too many, too few, ...) >> >>I have wraped the program in a shell script to generate the >>Nagios stuff (return-code and output). >> >>Hope this helps. >> >>-vol >> >>>-----Original Message----- >>>From: Detlef.Knop at gmx.de [mailto:Detlef.Knop at gmx.de] >>>Sent: Thursday, February 06, 2003 7:40 AM >>>To: nagios-users at lists.sourceforge.net >>>Subject: [Nagios-users] Nagios to monitor MQSeries >>> >>> >>>Dear all, >>> >>>I would like to check whether MQSeries is available as a >>>service on several >>>of my hosts. My first approach was to use the check_tcp >>>plugin which from my >>>point of view worked fine. But the people looking after >>>MQSeries on these >>>machines came back to me and complained that each time the >>>plugin ran MQSeries >>>reported errors on these systems (two errors per check) >>>because MQSeries >>>detects the incoming connection and wants to receive proper >>>data, but then the >>>connection is closed. >>> >>>Has anyone ever tried to do the same and found a solution? >>>Maybe there is a >>>way using passive checks, or we might have to look into the >>>possibility to >>>write a plugin. >>> >>>Kind regards >>> >>>Detlef Knop >>> >>>-- >>>+++ GMX - Mail, Messaging & more http://www.gmx.net +++ >>>NEU: Mit GMX ins Internet. Rund um die Uhr f?r 1 ct/ Min. surfen! >>> >>> >>> >>>------------------------------------------------------- >>>This SF.NET email is sponsored by: >>>SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >>>http://www.vasoftware.com >>>_______________________________________________ >>>Nagios-users mailing list >>>Nagios-users at lists.sourceforge.net >>>https://lists.sourceforge.net/lists/listinfo/nagios-users >>> > > >------------------------------------------------------- >This SF.NET email is sponsored by: >SourceForge Enterprise Edition + IBM + LinuxWorld =omething 2 See! >http://www.vasoftware.com >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users > > -- Russell Scibetti Quadrix Solutions, Inc. http://www.quadrix.com (732) 235-2335, ext. 7038 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcarro10 at sprintspectrum.com Thu Feb 6 21:36:53 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Thu, 6 Feb 2003 14:36:53 -0600 Subject: Configuration option for auto-acknowledge? Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F254C@PKDWB03C.ad.sprint.com> Alright, a couple of ideas: 1) Instead of immediately publishing the new users into the Nagios hosts.cfg, why not have them dumped into a staging area first, then cron a job to ping these new users, and as they come online, stuff them into hosts.cfg...? The obvious disadvantage is that you have no visibility of these new users until they are actually pingable. 2) Publish them in two phases. The first phase, they either reference the check_dummy plugin, or they reference another home-rolled plugin which returns a warning instead of a critical. Once they're pingable, drop in the proper config. Food for thought. jc > -----Original Message----- > From: Jason Lixfeld [mailto:jlixfeld at fastvibe.com] > Sent: Thursday, February 06, 2003 1:22 PM > To: Carroll, Jim P [Contractor] > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Configuration option for auto-acknowledge? > > > Jim, > > Carroll, Jim P [Contractor] wrote: > > Perhaps some greater detail is required. Some questions: > > > > - exactly where in Nagios are you automatically adding > these users? Could > > you provide a sample configuration which has been > automatically added? > > I am creating host and service entries in nagios based on information > which is in our RADIUS user database: > > Our radius database gives us two values for each user, > username and IP > address. It is imported into nagios via a perl script and username > becomes host_name and IP address is the same, address for an > entry that > looks like this for each user in our radius database: > > define host { > use w7 > host_name harv2459.w7 > alias harv2459 > address 216.7.193.244 > } > > define service { > use w7 > host_name harv2459.w7 > service_description PING > contact_groups w7.email,w7.pager > check_command check-host-alive > } > > > > - where are the users logging into? Into Nagios? Into the o/s? > > The users are logging into our DSL network over ppp. It is a > dedicated > service but since we provision the users in radius (And thus are > inserted into nagios) before the customers recieve the hardware to > activate their service (PPP DSL router), as soon as nagios > gets it's new > config, it tries to monitor the user which isn't up yet. I'm looking > for a way to tell Nagios to not notify us to the fact that > harv2459 is > unreachable until after the first time he logs in -- in essence, > proactive acknowledgment of a service that isn't completely installed. > > > - what changes, as far as Nagios is concerned, after the > user logs in for > > the first time? > > After the user logs in, his router becomes pingable (via ppp) as it > recieved the IP address from radius (which is also configured > in radius). > > > There might be a much more elegant solution to what you're asking. > > And so I am hoping! :) > > > Having said that, maybe what you're looking for is a way of > pushing commands > > directly into Nagios, via nagios.cmd. Check the FAQ. > > Perhaps. Based on what I have said here, what do you suggest? > > > jc > > > > > >>-----Original Message----- > >>From: Jason Lixfeld [mailto:jlixfeld at fastvibe.com] > >>Sent: Thursday, February 06, 2003 9:40 AM > >>To: nagios-users at lists.sourceforge.net > >>Subject: [Nagios-users] Configuration option for auto-acknowledge? > >> > >> > >>Greetings, > >> > >> At our organization, we pre-provision users and use > >>nagios to poll the > >>provisioning server and automatically add users to the nagios > >>configuration. The problem with this implementation is that > >>the users > >>may not be active before they have been provisioned. This > means that > >>until they login for the first time, alarms will go off unless we > >>manually acknowledge each of the pre-provisioned users. A > >>user may not > >>login for a long period of time after they are provisioned, > and thus > >>added to nagios. What I'm wondering is if there is a > >>configuration hook > >>that can be inserted for each user that sets the initial > notification > >>state to acknowledged so we don't have to manually > >>acknowledge each user. > >> > >>Thank you in advance. > >> > >> > >> > >> > >>------------------------------------------------------- > >>This SF.NET email is sponsored by: > >>SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > >>http://www.vasoftware.com > >>_______________________________________________ > >>Nagios-users mailing list > >>Nagios-users at lists.sourceforge.net > >>https://lists.sourceforge.net/lists/listinfo/nagios-users > >> > > > > > > > > > > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sghosh at sghosh.org Thu Feb 6 22:11:06 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Thu, 06 Feb 2003 16:11:06 -0500 (EST) Subject: Configuration option for auto-acknowledge? In-Reply-To: References: Message-ID: Or since you have using templates - create 2 templates one with a 24x7 monitor and a second with a not-time monitor Use the second when adding config to nagios. Upon the first login (Radius accounting somewhere) write another script to change the template to enable monitoring and possibly remove the script from be activated on future logon or keep a hash of users who have not loged on as yet. -sg On Thu, 6 Feb 2003, Shayne Lebrun wrote: > Hurm. > > Have your import script not import a RADIUS entry into Nagios until such > time as he's logged in. > > > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Jason > Lixfeld > Sent: Thursday, February 06, 2003 2:22 PM > To: jcarro10 at sprintspectrum.com > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Configuration option for auto-acknowledge? > > > Jim, > > Carroll, Jim P [Contractor] wrote: > > Perhaps some greater detail is required. Some questions: > > > > - exactly where in Nagios are you automatically adding these users? Could > > you provide a sample configuration which has been automatically added? > > I am creating host and service entries in nagios based on information > which is in our RADIUS user database: > > Our radius database gives us two values for each user, username and IP > address. It is imported into nagios via a perl script and username > becomes host_name and IP address is the same, address for an entry that > looks like this for each user in our radius database: > > define host { > use w7 > host_name harv2459.w7 > alias harv2459 > address 216.7.193.244 > } > > define service { > use w7 > host_name harv2459.w7 > service_description PING > contact_groups w7.email,w7.pager > check_command check-host-alive > } > > > > - where are the users logging into? Into Nagios? Into the o/s? > > The users are logging into our DSL network over ppp. It is a dedicated > service but since we provision the users in radius (And thus are > inserted into nagios) before the customers recieve the hardware to > activate their service (PPP DSL router), as soon as nagios gets it's new > config, it tries to monitor the user which isn't up yet. I'm looking > for a way to tell Nagios to not notify us to the fact that harv2459 is > unreachable until after the first time he logs in -- in essence, > proactive acknowledgment of a service that isn't completely installed. > > > - what changes, as far as Nagios is concerned, after the user logs in for > > the first time? > > After the user logs in, his router becomes pingable (via ppp) as it > recieved the IP address from radius (which is also configured in radius). > > > There might be a much more elegant solution to what you're asking. > > And so I am hoping! :) > > > Having said that, maybe what you're looking for is a way of pushing > commands > > directly into Nagios, via nagios.cmd. Check the FAQ. > > Perhaps. Based on what I have said here, what do you suggest? > > > jc > > > > > >>-----Original Message----- > >>From: Jason Lixfeld [mailto:jlixfeld at fastvibe.com] > >>Sent: Thursday, February 06, 2003 9:40 AM > >>To: nagios-users at lists.sourceforge.net > >>Subject: [Nagios-users] Configuration option for auto-acknowledge? > >> > >> > >>Greetings, > >> > >> At our organization, we pre-provision users and use > >>nagios to poll the > >>provisioning server and automatically add users to the nagios > >>configuration. The problem with this implementation is that > >>the users > >>may not be active before they have been provisioned. This means that > >>until they login for the first time, alarms will go off unless we > >>manually acknowledge each of the pre-provisioned users. A > >>user may not > >>login for a long period of time after they are provisioned, and thus > >>added to nagios. What I'm wondering is if there is a > >>configuration hook > >>that can be inserted for each user that sets the initial notification > >>state to acknowledged so we don't have to manually > >>acknowledge each user. > >> > >>Thank you in advance. > >> > >> > >> > >> > >>------------------------------------------------------- > >>This SF.NET email is sponsored by: > >>SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > >>http://www.vasoftware.com > >>_______________________________________________ > >>Nagios-users mailing list > >>Nagios-users at lists.sourceforge.net > >>https://lists.sourceforge.net/lists/listinfo/nagios-users > >> > > > > > > > > > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > -- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jlyons30 at yahoo.com Thu Feb 6 22:08:06 2003 From: jlyons30 at yahoo.com (Jon Lyons) Date: Thu, 6 Feb 2003 13:08:06 -0800 (PST) Subject: Colors Message-ID: <20030206210806.49458.qmail@web21508.mail.yahoo.com> Are you talking about changing the default red for critical and warning on the stats page? If not, then look at the .css style sheets, there's a lot of options.... See below, I have Red, Yellow, and brown for my Tac page. Henrique leandro wrote: Hi, ho do i for change the status colors ? we would like something: CRITICAL: ORANGE WARNING: BLUE UNKNOWN: GRAY PENDING: RED thanks ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users Jon Lyons wrote: FYI, I've updated my tac.c and tac.css (1.0b6) stylesheet to change the default colors of the tac.cgi text backgrounds from red to yellow for warnings, and brownish for unknown. Now only the critical alerts on the tac.cgi are in red... Basically I added two stylesheet definitions to tac.css; and call them in tac.c... warningserviceImportantProblem { text-align: left; font-family: arial; font-size: 8pt; background-color: #FFFF00; color: black; } .unknownserviceImportantProblem { text-align: left; font-family: arial; font-size: 8pt; background-color: #FF9966; color: black; } /your/nagios/path/share/stylesheets/tac.css Jon Lyons wrote: Hi, I've modified my tac.css stylesheet colors, but I'd like to change the service warning text block from red to something more like yellow for the tac.cgi, is this in the style sheet or somewhere else?? I'd like the critical sections to only use red.. :) Thanks.... --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now/*********************************************************************** * * TAC.C - Nagios Tactical Monitoring Overview CGI * * Copyright (c) 2001-2002 Ethan Galstad (nagios at nagios.org) * Last Modified: 08-07-2002 * * This CGI program will display the contents of the Nagios * log file. * * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. ***********************************************************************/ #include "../common/config.h" #include "../common/locations.h" #include "../common/common.h" #include "../common/objects.h" #include "../common/statusdata.h" #include "getcgi.h" #include "cgiutils.h" #include "auth.h" #include "lifo.h" #define HEALTH_WARNING_PERCENTAGE 90 #define HEALTH_CRITICAL_PERCENTAGE 75 /* HOSTOUTAGE structure */ typedef struct hostoutage_struct{ host *hst; int affected_child_hosts; struct hostoutage_struct *next; }hostoutage; extern char main_config_file[MAX_FILENAME_LENGTH]; extern char url_images_path[MAX_FILENAME_LENGTH]; extern char url_stylesheets_path[MAX_FILENAME_LENGTH]; extern char url_media_path[MAX_FILENAME_LENGTH]; extern int refresh_rate; extern char *service_critical_sound; extern char *service_warning_sound; extern char *service_unknown_sound; extern char *host_down_sound; extern char *host_unreachable_sound; extern char *normal_sound; extern hostgroup *hostgroup_list; extern hoststatus *hoststatus_list; extern servicestatus *servicestatus_list; extern host *host_list; extern service *service_list; extern int enable_notifications; extern int execute_service_checks; extern int accept_passive_service_checks; extern int enable_event_handlers; extern int enable_flap_detection; extern int nagios_process_state; void analyze_status_data(void); void display_tac_overview(void); void find_hosts_causing_outages(void); void calculate_outage_effect_of_host(host *,int *); int is_route_to_host_blocked(host *); int number_of_host_services(host *); void add_hostoutage(host *); void free_hostoutage_list(void); void document_header(int); void document_footer(void); int process_cgivars(void); authdata current_authdata; int embedded=FALSE; int display_header=FALSE; hostoutage *hostoutage_list=NULL; int total_blocking_outages=0; int total_nonblocking_outages=0; int total_service_health=0; int total_host_health=0; int potential_service_health=0; int potential_host_health=0; double percent_service_health=0.0; double percent_host_health=0.0; int total_hosts=0; int total_services=0; int total_active_checks=0; int total_passive_checks=0; int min_execution_time=-1; int max_execution_time=-1; unsigned long total_execution_time=0L; double average_execution_time=-1.0; int min_latency=-1; int max_latency=-1; unsigned long total_latency=0L; double average_latency=-1.0; int flapping_services=0; int flapping_hosts=0; int flap_disabled_services=0; int flap_disabled_hosts=0; int notification_disabled_services=0; int notification_disabled_hosts=0; int event_handler_disabled_services=0; int event_handler_disabled_hosts=0; int active_checks_disabled_services=0; int active_checks_disabled_hosts=0; int passive_checks_disabled_services=0; int hosts_pending=0; int hosts_pending_disabled=0; int hosts_up_disabled=0; int hosts_up_unacknowledged=0; int hosts_up=0; int hosts_down_scheduled=0; int hosts_down_acknowledged=0; int hosts_down_disabled=0; int hosts_down_unacknowledged=0; int hosts_down=0; int hosts_unreachable_scheduled=0; int hosts_unreachable_acknowledged=0; int hosts_unreachable_disabled=0; int hosts_unreachable_unacknowledged=0; int hosts_unreachable=0; int services_pending=0; int services_pending_disabled=0; int services_ok_disabled=0; int services_ok_unacknowledged=0; int services_ok=0; int services_warning_host_problem=0; int services_warning_scheduled=0; int services_warning_acknowledged=0; int services_warning_disabled=0; int services_warning_unacknowledged=0; int services_warning=0; int services_unknown_host_problem=0; int services_unknown_scheduled=0; int services_unknown_acknowledged=0; int services_unknown_disabled=0; int services_unknown_unacknowledged=0; int services_unknown=0; int services_critical_host_problem=0; int services_critical_scheduled=0; int services_critical_acknowledged=0; int services_critical_disabled=0; int services_critical_unacknowledged=0; int services_critical=0; int main(void){ int result=OK; char *sound=NULL; /* get the CGI variables passed in the URL */ process_cgivars(); /* reset internal variables */ reset_cgi_vars(); /* read the CGI configuration file */ result=read_cgi_config_file(DEFAULT_CGI_CONFIG_FILE); if(result==ERROR){ document_header(FALSE); cgi_config_file_error(DEFAULT_CGI_CONFIG_FILE); document_footer(); return ERROR; } /* read the main configuration file */ result=read_main_config_file(main_config_file); if(result==ERROR){ document_header(FALSE); main_config_file_error(main_config_file); document_footer(); return ERROR; } /* read all object configuration data */ result=read_all_object_configuration_data(main_config_file,READ_ALL_OBJECT_DATA); if(result==ERROR){ document_header(FALSE); object_data_error(); document_footer(); return ERROR; } /* read all status data */ result=read_all_status_data(DEFAULT_CGI_CONFIG_FILE,READ_ALL_STATUS_DATA); if(result==ERROR){ document_header(FALSE); status_data_error(); document_footer(); free_memory(); return ERROR; } document_header(TRUE); /* get authentication information */ get_authentication_information(?t_authdata); if(display_header==TRUE){ /* begin top table */ printf(" \n"); printf(" \n"); /* left column of top table - info box */ printf(" \n"); display_info_table("Tactical Status Overview",TRUE,?t_authdata); printf("\n"); /* middle column of top table - log file navigation options */ printf(" \n"); printf("\n"); /* right hand column of top row */ printf(" \n"); printf("\n"); /* end of top table */ printf("\n"); printf("\n"); printf(" \n"); } /* analyze current host and service status data for tac overview */ analyze_status_data(); /* find all hosts that are causing network outages */ find_hosts_causing_outages(); /* embed sound tag if necessary... */ if(hosts_unreachable_unacknowledged > 0 && host_unreachable_sound!=NULL) sound=host_unreachable_sound; else if(hosts_down_unacknowledged > 0 && host_down_sound!=NULL) sound=host_down_sound; else if(services_critical_unacknowledged > 0 && service_critical_sound!=NULL) sound=service_critical_sound; else if(services_warning_unacknowledged > 0 && service_warning_sound!=NULL) sound=service_warning_sound; else if(services_unknown_unacknowledged==0 && services_warning_unacknowledged==0 && services_critical_unacknowledged==0 && hosts_down_unacknowledged==0 && hosts_unreachable_unacknowledged==0 && normal_sound!=NULL) sound=normal_sound; if(sound!=NULL) printf("",url_media_path,sound); /**** display main tac screen ****/ display_tac_overview(); document_footer(); /* free memory allocated to the host outage list */ free_hostoutage_list(); /* free allocated memory */ free_memory(); return OK; } void document_header(int use_stylesheet){ char date_time[MAX_DATETIME_LENGTH]; time_t current_time; time_t expire_time; printf("Cache-Control: no-store\n"); printf("Pragma: no-cache\n"); printf("Refresh: %d\n",refresh_rate); time(?t_time); get_time_string(?t_time,date_time,(int)sizeof(date_time),HTTP_DATE_TIME); printf("Last-Modified: %s\n",date_time); expire_time=(time_t)0L; get_time_string(&expire_time,date_time,(int)sizeof(date_time),HTTP_DATE_TIME); printf("Expires: %s\n",date_time); printf("Content-type: text/html\n\n"); if(embedded==TRUE) return; printf("\n"); printf("\n"); printf("\n"); if(use_stylesheet==TRUE) printf(" \n",url_stylesheets_path,TAC_CSS); printf("\n"); printf("\n"); /* include user SSI header */ include_ssi_files(TAC_CGI,SSI_HEADER); return; } void document_footer(void){ if(embedded==TRUE) return; /* include user SSI footer */ include_ssi_files(TAC_CGI,SSI_FOOTER); printf("\n"); printf("\n"); return; } int process_cgivars(void){ char **variables; int error=FALSE; int x; variables=getcgivars(); for(x=0;variables[x]!=NULL;x++){ /* do some basic length checking on the variable identifier to prevent buffer overflows */ if(strlen(variables[x])>=MAX_INPUT_BUFFER-1){ continue; } /* we found the embed option */ else if(!strcmp(variables[x],"embedded")) embedded=TRUE; /* we found the noheader option */ else if(!strcmp(variables[x],"noheader")) display_header=FALSE; /* we recieved an invalid argument */ else error=TRUE; } /* free memory allocated to the CGI variables */ free_cgivars(variables); return error; } void analyze_status_data(void){ servicestatus *temp_servicestatus; service *temp_service; hoststatus *temp_hoststatus; host *temp_host; int problem=TRUE; /* check all services */ for(temp_servicestatus=servicestatus_list;temp_servicestatus!=NULL;temp_servicestatus=temp_servicestatus->next){ /* see if user is authorized to view this service */ temp_service=find_service(temp_servicestatus->host_name,temp_servicestatus->description,NULL); if(is_authorized_for_service(temp_service,?t_authdata)==FALSE) continue; /******** CHECK FEATURES *******/ /* check flapping */ if(temp_servicestatus->flap_detection_enabled==FALSE) flap_disabled_services++; else if(temp_servicestatus->is_flapping==TRUE) flapping_services++; /* check notifications */ if(temp_servicestatus->notifications_enabled==FALSE) notification_disabled_services++; /* check event handler */ if(temp_servicestatus->event_handler_enabled==FALSE) event_handler_disabled_services++; /* active check execution */ if(temp_servicestatus->checks_enabled==FALSE) active_checks_disabled_services++; /* passive check acceptance */ if(temp_servicestatus->accept_passive_service_checks==FALSE) passive_checks_disabled_services++; /********* CHECK STATUS ********/ problem=TRUE; if(temp_servicestatus->status==SERVICE_OK || temp_servicestatus->status==SERVICE_RECOVERY){ if(temp_servicestatus->checks_enabled==FALSE) services_ok_disabled++; else services_ok_unacknowledged++; services_ok++; } else if(temp_servicestatus->status==SERVICE_WARNING){ temp_hoststatus=find_hoststatus(temp_servicestatus->host_name); if(temp_hoststatus!=NULL && (temp_hoststatus->status==HOST_DOWN || temp_hoststatus->status==HOST_UNREACHABLE)){ services_warning_host_problem++; problem=FALSE; } if(temp_servicestatus->scheduled_downtime_depth>0){ services_warning_scheduled++; problem=FALSE; } if(temp_servicestatus->problem_has_been_acknowledged==TRUE){ services_warning_acknowledged++; problem=FALSE; } if(temp_servicestatus->checks_enabled==FALSE){ services_warning_disabled++; problem=FALSE; } if(problem==TRUE) services_warning_unacknowledged++; services_warning++; } else if(temp_servicestatus->status==SERVICE_UNKNOWN){ temp_hoststatus=find_hoststatus(temp_servicestatus->host_name); if(temp_hoststatus!=NULL && (temp_hoststatus->status==HOST_DOWN || temp_hoststatus->status==HOST_UNREACHABLE)){ services_unknown_host_problem++; problem=FALSE; } if(temp_servicestatus->scheduled_downtime_depth>0){ services_unknown_scheduled++; problem=FALSE; } if(temp_servicestatus->problem_has_been_acknowledged==TRUE){ services_unknown_acknowledged++; problem=FALSE; } if(temp_servicestatus->checks_enabled==FALSE){ services_unknown_disabled++; problem=FALSE; } if(problem==TRUE) services_unknown_unacknowledged++; services_unknown++; } else if(temp_servicestatus->status==SERVICE_CRITICAL){ temp_hoststatus=find_hoststatus(temp_servicestatus->host_name); if(temp_hoststatus!=NULL && (temp_hoststatus->status==HOST_DOWN || temp_hoststatus->status==HOST_UNREACHABLE)){ services_critical_host_problem++; problem=FALSE; } if(temp_servicestatus->scheduled_downtime_depth>0){ services_critical_scheduled++; problem=FALSE; } if(temp_servicestatus->problem_has_been_acknowledged==TRUE){ services_critical_acknowledged++; problem=FALSE; } if(temp_servicestatus->checks_enabled==FALSE){ services_critical_disabled++; problem=FALSE; } if(problem==TRUE) services_critical_unacknowledged++; services_critical++; } else if(temp_servicestatus->status==SERVICE_PENDING){ if(temp_servicestatus->checks_enabled==FALSE) services_pending_disabled++; services_pending++; } /* get health stats */ if(temp_servicestatus->status==SERVICE_OK) total_service_health+=2; else if(temp_servicestatus->status==SERVICE_WARNING || temp_servicestatus->status==SERVICE_UNKNOWN) total_service_health++; if(temp_servicestatus->status!=SERVICE_PENDING) potential_service_health+=2; /* calculate execution time and latency stats */ if(temp_servicestatus->check_type==SERVICE_CHECK_ACTIVE){ total_active_checks++; if(min_latency==-1 || temp_servicestatus->latency min_latency=temp_servicestatus->latency; if(max_latency==-1 || temp_servicestatus->latency>max_latency) max_latency=temp_servicestatus->latency; if(min_execution_time==-1 || temp_servicestatus->execution_time min_execution_time=temp_servicestatus->execution_time; if(max_execution_time==-1 || temp_servicestatus->execution_time>max_execution_time) max_execution_time=temp_servicestatus->execution_time; total_latency+=temp_servicestatus->latency; total_execution_time+=temp_servicestatus->execution_time; } else total_passive_checks++; total_services++; } /* check all hosts */ for(temp_hoststatus=hoststatus_list;temp_hoststatus!=NULL;temp_hoststatus=temp_hoststatus->next){ /* see if user is authorized to view this host */ temp_host=find_host(temp_hoststatus->host_name,NULL); if(is_authorized_for_host(temp_host,?t_authdata)==FALSE) continue; /******** CHECK FEATURES *******/ /* check flapping */ if(temp_hoststatus->flap_detection_enabled==FALSE) flap_disabled_hosts++; else if(temp_hoststatus->is_flapping==TRUE) flapping_hosts++; /* check notifications */ if(temp_hoststatus->notifications_enabled==FALSE) notification_disabled_hosts++; /* check event handler */ if(temp_hoststatus->event_handler_enabled==FALSE) event_handler_disabled_hosts++; /* active check execution */ if(temp_hoststatus->checks_enabled==FALSE) active_checks_disabled_hosts++; /********* CHECK STATUS ********/ problem=TRUE; if(temp_hoststatus->status==HOST_UP){ if(temp_hoststatus->checks_enabled==FALSE) hosts_up_disabled++; else hosts_up_unacknowledged++; hosts_up++; } else if(temp_hoststatus->status==HOST_DOWN){ if(temp_hoststatus->scheduled_downtime_depth>0){ hosts_down_scheduled++; problem=FALSE; } if(temp_hoststatus->problem_has_been_acknowledged==TRUE){ hosts_down_acknowledged++; problem=FALSE; } if(temp_hoststatus->checks_enabled==FALSE){ hosts_down_disabled++; problem=FALSE; } if(problem==TRUE) hosts_down_unacknowledged++; hosts_down++; } else if(temp_hoststatus->status==HOST_UNREACHABLE){ if(temp_hoststatus->scheduled_downtime_depth>0){ hosts_unreachable_scheduled++; problem=FALSE; } if(temp_hoststatus->problem_has_been_acknowledged==TRUE){ hosts_unreachable_acknowledged++; problem=FALSE; } if(temp_hoststatus->checks_enabled==FALSE){ hosts_unreachable_disabled++; problem=FALSE; } if(problem==TRUE) hosts_unreachable_unacknowledged++; hosts_unreachable++; } else if(temp_hoststatus->status==HOST_PENDING){ if(temp_hoststatus->checks_enabled==FALSE) hosts_pending_disabled++; hosts_pending++; } /* get health stats */ if(temp_hoststatus->status==HOST_UP) total_host_health++; if(temp_hoststatus->status!=HOST_PENDING) potential_host_health++; total_hosts++; } /* calculate service health */ if(potential_service_health==0) percent_service_health=0.0; else percent_service_health=((double)total_service_health/(double)potential_service_health)*100.0; /* calculate host health */ if(potential_host_health==0) percent_host_health=0.0; else percent_host_health=((double)total_host_health/(double)potential_host_health)*100.0; /* calculate latency */ if(total_latency==0L) average_latency=0.0; else average_latency=((double)total_latency/(double)total_active_checks); /* calculate execution time */ if(total_execution_time==0L) average_execution_time=0.0; else average_execution_time=((double)total_execution_time/(double)total_active_checks); return; } /* determine what hosts are causing network outages */ void find_hosts_causing_outages(void){ hoststatus *temp_hoststatus; hostoutage *temp_hostoutage; host *temp_host; /* user must be authorized for all hosts in order to see outages */ if(is_authorized_for_all_hosts(?t_authdata)==FALSE) return; /* check all hosts */ for(temp_hoststatus=hoststatus_list;temp_hoststatus!=NULL;temp_hoststatus=temp_hoststatus->next){ /* check only hosts that are not up and not pending */ if(temp_hoststatus->status!=HOST_UP && temp_hoststatus->status!=HOST_PENDING){ /* find the host entry */ temp_host=find_host(temp_hoststatus->host_name,NULL); if(temp_host==NULL) continue; /* if the route to this host is not blocked, it is a causing an outage */ if(is_route_to_host_blocked(temp_host)==FALSE) add_hostoutage(temp_host); } } /* check all hosts that are causing problems and calculate the extent of the problem */ for(temp_hostoutage=hostoutage_list;temp_hostoutage!=NULL;temp_hostoutage=temp_hostoutage->next){ /* calculate the outage effect of this particular hosts */ calculate_outage_effect_of_host(temp_hostoutage->hst,&temp_hostoutage->affected_child_hosts); if(temp_hostoutage->affected_child_hosts>1) total_blocking_outages++; else total_nonblocking_outages++; } return; } /* adds a host outage entry */ void add_hostoutage(host *hst){ hostoutage *new_hostoutage; /* allocate memory for a new structure */ new_hostoutage=(hostoutage *)malloc(sizeof(hostoutage)); if(new_hostoutage==NULL) return; new_hostoutage->hst=hst; new_hostoutage->affected_child_hosts=0; /* add the structure to the head of the list in memory */ new_hostoutage->next=hostoutage_list; hostoutage_list=new_hostoutage; return; } /* frees all memory allocated to the host outage list */ void free_hostoutage_list(void){ hostoutage *this_hostoutage; hostoutage *next_hostoutage; for(this_hostoutage=hostoutage_list;this_hostoutage!=NULL;this_hostoutage=next_hostoutage){ === message truncated === .tac { font-family: arial,serif; background-color: black; background: black; color: white; background-color: black; } .errorMessage { font-family: arial; font-weight: bold; font-size: 12pt; background-color: black; color: white; } .errorDescription { font-family: arial,serif; text-align: center; font-weight: bold; font-size: 12pt; } .warningMessage { font-family: arial,serif; text-align: center; color: red; font-weight: bold; font-size: 10pt; } .infoBox { font-family: arial,serif; font-size: 8pt; background-color: #C4C2C2; color: black; padding: 2; } .infoBoxTitle { font-family: arial,serif; font-size: 10pt; font-weight: bold; color: black; } .infoBoxBadProcStatus {font-family: arial,serif; color: red; } A { font-family: arial,serif; color: black; } .title { text-align: left; font-family: arial; font-weight: bold; font-size: large; background-color: black; color: white; } .titleItem { text-align: left; font-family: arial; font-weight: bold; font-size: 8pt; background-color: black; color: white; } .infoBoxBadProcStatus { text-align: left; font-family: arial; font-weight: bold; font-size: 8pt; background-color: #C4C2C2; color: red; } .healthTitle { text-align: left; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #33FF33; color: black; } .healthBox { text-align: left; font-family: arial; font-weight: bold; font-size: 8pt; background-color: #C4C2C2; color: white; } .healthItem { text-align: left; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #C4C2C2; color: black; } .healthBar { text-align: left; font-family: arial; font-weight: bold; font-size: 8pt; background-color: gray; color: white; } .perfTitle { text-align: left; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #33FF33; color: black; text-decoration: none; } .perfBox { text-align: left; font-family: arial; font-weight: bold; font-size: 8pt; background-color: #C4C2C2; color: white; } .perfItem { text-align: left; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #C4C2C2; color: black; text-decoration: none; } .perfValue { text-align: left; font-family: arial; font-size: 10pt; background-color: #C4C2C2; color: black; text-decoration: none; } .featureTitle { text-align: left; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #33FF33; color: black; } .featureHeader { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #C4C2C2; color: black; } .featureEnabled { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #ccffcc; color: #8f8f8f; } .featureDisabled { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #ffcccc; color: #b3b3b3; } .featureEnabledFlapDetection { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #ccffcc; color: #8f8f8f; } .featureDisabledFlapDetection { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #ffcccc; color: #b3b3b3; } .featureItemEnabledServiceFlapDetection { text-align: left; font-family: arial; font-size: 8pt; background-color: #ccffcc; color: black; } .featureItemDisabledServiceFlapDetection { text-align: left; font-family: arial; font-size: 8pt; background-color: #ff0000; color: black; } .featureItemEnabledHostFlapDetection { text-align: left; font-family: arial; font-size: 8pt; background-color: #ccffcc; color: black; } .featureItemDisabledHostFlapDetection { text-align: left; font-family: arial; font-size: 8pt; background-color: #ff0000; color: black; } .featureItemServicesNotFlapping { text-align: left; font-family: arial; font-size: 8pt; background-color: #ccffcc; color: black; } .featureItemServicesFlapping { text-align: left; font-family: arial; font-size: 8pt; background-color: #ff0000; color: black; } .featureItemHostsNotFlapping { text-align: left; font-family: arial; font-size: 8pt; background-color: #ccffcc; color: black; } .featureItemHostsFlapping { text-align: left; font-family: arial; font-size: 8pt; background-color: #ff0000; color: black; } .featureEnabledNotifications { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #ccffcc; color: #8f8f8f; } .featureDisabledNotifications { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #ffcccc; color: #b3b3b3; } .featureItemEnabledServiceNotifications { text-align: left; font-family: arial; font-size: 8pt; background-color: #ccffcc; color: black; } .featureItemDisabledServiceNotifications { text-align: left; font-family: arial; font-size: 8pt; background-color: #0000FF; color: black; } .featureItemEnabledHostNotifications { text-align: left; font-family: arial; font-size: 8pt; background-color: #ccffcc; color: black; } .featureItemDisabledHostNotifications { text-align: left; font-family: arial; font-size: 8pt; background-color: #0000FF; color: black; } .featureEnabledHandlers { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #ccffcc; color: #8f8f8f; } .featureDisabledHandlers { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #ffcccc; color: #b3b3b3; } .featureItemEnabledServiceHandlers { text-align: left; font-family: arial; font-size: 8pt; background-color: #ccffcc; color: black; } .featureItemDisabledServiceHandlers { text-align: left; font-family: arial; font-size: 8pt; background-color: #ff0000; color: black; } .featureItemEnabledHostHandlers { text-align: left; font-family: arial; font-size: 8pt; background-color: #ccffcc; color: black; } .featureItemDisabledHostHandlers { text-align: left; font-family: arial; font-size: 8pt; background-color: #ff0000; color: black; } .featureEnabledActiveChecks { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #ccffcc; color: #8f8f8f; } .featureDisabledActiveChecks { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #ffcccc; color: #b3b3b3; } .featureItemEnabledActiveServiceChecks { text-align: left; font-family: arial; font-size: 8pt; background-color: #ccffcc; color: black; } .featureItemDisabledActiveServiceChecks { text-align: left; font-family: arial; font-size: 8pt; background-color: #ff0000; color: black; } .featureItemEnabledActiveHostChecks { text-align: left; font-family: arial; font-size: 8pt; background-color: #ccffcc; color: black; } .featureItemDisabledActiveHostChecks { text-align: left; font-family: arial; font-size: 8pt; background-color: #ff0000; color: black; } .featureEnabledPassiveChecks { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #ccffcc; color: #8f8f8f; } .featureDisabledPassiveChecks { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #ffcccc; color: #b3b3b3; } .featureItemEnabledPassiveServiceChecks { text-align: left; font-family: arial; font-size: 8pt; background-color: #ccffcc; color: black; } .featureItemDisabledPassiveServiceChecks { text-align: left; font-family: arial; font-size: 8pt; background-color: #ff0000; color: black; } .outageTitle { text-align: left; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #999797; color: black; } .outageHeader { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #C4C2C2; color: black; text-decoration: none; } .outageImportantProblem { text-align: left; font-family: arial; font-size: 8pt; background-color: #ff0000; color: black; } .outageUnimportantProblem { text-align: left; font-family: arial; font-size: 8pt; background-color: #ffcccc; color: black; } .hostTitle { text-align: left; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #999797; color: black; } .hostHeader { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #C4C2C2; color: black; text-decoration: none; } .hostImportantProblem { text-align: left; font-family: arial; font-size: 8pt; background-color: #ff0000; color: black; } .hostUnimportantProblem { text-align: left; font-family: arial; font-size: 8pt; background-color: #ffcccc; color: black; } .serviceTitle { text-align: left; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #999797; color: black; } .serviceHeader { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #C4C2C2; color: black; text-decoration: none; } .serviceImportantProblem { text-align: left; font-family: arial; font-size: 8pt; background-color: #ff0000; color: black; } .serviceUnimportantProblem { text-align: left; font-family: arial; font-size: 8pt; background-color: #ffcccc; color: black; } .warningserviceImportantProblem { text-align: left; font-family: arial; font-size: 8pt; background-color: #FFFF00; color: black; } .unknownserviceImportantProblem { text-align: left; font-family: arial; font-size: 8pt; background-color: #FF9966; color: black; } --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: tac.c Type: application/octet-stream Size: 54920 bytes Desc: tac.c URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: tac.css Type: text/css Size: 9241 bytes Desc: tac.css URL: From sghosh at sghosh.org Thu Feb 6 22:11:59 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Thu, 06 Feb 2003 16:11:59 -0500 (EST) Subject: Colors In-Reply-To: <1044564795.28489.9.camel@operacao> References: <1044564795.28489.9.camel@operacao> Message-ID: Take a look at the stylesheets in the html directory.. On 6 Feb 2003, Henrique leandro wrote: > Hi, > > ho do i for change the status colors ? > we would like something: > > CRITICAL: ORANGE > WARNING: BLUE > UNKNOWN: GRAY > PENDING: RED > > > > thanks > > -- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From henrique.leandro at varig.com Thu Feb 6 22:25:33 2003 From: henrique.leandro at varig.com (Henrique leandro) Date: 06 Feb 2003 19:25:33 -0200 Subject: Colors In-Reply-To: <20030206210806.49458.qmail@web21508.mail.yahoo.com> References: <20030206210806.49458.qmail@web21508.mail.yahoo.com> Message-ID: <1044566733.28467.19.camel@operacao> so, i don't need change de C code to change colors ? Only files .css ? i'll try it. Thanks. On Thu, 2003-02-06 at 19:08, Jon Lyons wrote: > > Are you talking about changing the default red for critical and warning on the stats page? If not, then look at the .css style sheets, there's a lot of options.... > > See below, I have Red, Yellow, and brown for my Tac page. > > Henrique leandro wrote: Hi, > > ho do i for change the status colors ? > we would like something: > > CRITICAL: ORANGE > WARNING: BLUE > UNKNOWN: GRAY > PENDING: RED > > > > thanks > > > > > > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > Jon Lyons wrote: > FYI, I've updated my tac.c and tac.css (1.0b6) stylesheet to change the default colors of the tac.cgi text backgrounds from red to yellow for warnings, and brownish for unknown. Now only the critical alerts on the tac.cgi are in red... > Basically I added two stylesheet definitions to tac.css; and call them in tac.c... > warningserviceImportantProblem { text-align: left; font-family: arial; font-size: 8pt; background-color: #FFFF00; color: black; } > .unknownserviceImportantProblem { text-align: left; font-family: arial; font-size: 8pt; background-color: #FF9966; color: black; } > > /your/nagios/path/share/stylesheets/tac.css > Jon Lyons wrote: > > Hi, I've modified my tac.css stylesheet colors, but I'd like to change the service warning text block from red to something more like yellow for the tac.cgi, is this in the style sheet or somewhere else?? I'd like the critical sections to only use red.. :) > Thanks.... > > > > --------------------------------- > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up now > > > --------------------------------- > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up now/*********************************************************************** > * > * TAC.C - Nagios Tactical Monitoring Overview CGI > * > * Copyright (c) 2001-2002 Ethan Galstad (nagios at nagios.org) > * Last Modified: 08-07-2002 > * > * This CGI program will display the contents of the Nagios > * log file. > * > * > * This program is free software; you can redistribute it and/or modify > * it under the terms of the GNU General Public License as published by > * the Free Software Foundation; either version 2 of the License, or > * (at your option) any later version. > * > * This program is distributed in the hope that it will be useful, > * but WITHOUT ANY WARRANTY; without even the implied warranty of > * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > * GNU General Public License for more details. > * > * You should have received a copy of the GNU General Public License > * along with this program; if not, write to the Free Software > * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. > ***********************************************************************/ > > #include "../common/config.h" > #include "../common/locations.h" > #include "../common/common.h" > #include "../common/objects.h" > #include "../common/statusdata.h" > > #include "getcgi.h" > #include "cgiutils.h" > #include "auth.h" > #include "lifo.h" > > > #define HEALTH_WARNING_PERCENTAGE 90 > #define HEALTH_CRITICAL_PERCENTAGE 75 > > > /* HOSTOUTAGE structure */ > typedef struct hostoutage_struct{ > host *hst; > int affected_child_hosts; > struct hostoutage_struct *next; > }hostoutage; > > > extern char main_config_file[MAX_FILENAME_LENGTH]; > extern char url_images_path[MAX_FILENAME_LENGTH]; > extern char url_stylesheets_path[MAX_FILENAME_LENGTH]; > extern char url_media_path[MAX_FILENAME_LENGTH]; > > extern int refresh_rate; > > extern char *service_critical_sound; > extern char *service_warning_sound; > extern char *service_unknown_sound; > extern char *host_down_sound; > extern char *host_unreachable_sound; > extern char *normal_sound; > > extern hostgroup *hostgroup_list; > extern hoststatus *hoststatus_list; > extern servicestatus *servicestatus_list; > extern host *host_list; > extern service *service_list; > > extern int enable_notifications; > extern int execute_service_checks; > extern int accept_passive_service_checks; > extern int enable_event_handlers; > extern int enable_flap_detection; > > extern int nagios_process_state; > > > > void analyze_status_data(void); > void display_tac_overview(void); > > void find_hosts_causing_outages(void); > void calculate_outage_effect_of_host(host *,int *); > int is_route_to_host_blocked(host *); > int number_of_host_services(host *); > void add_hostoutage(host *); > void free_hostoutage_list(void); > > void document_header(int); > void document_footer(void); > int process_cgivars(void); > > authdata current_authdata; > > int embedded=FALSE; > int display_header=FALSE; > > hostoutage *hostoutage_list=NULL; > > int total_blocking_outages=0; > int total_nonblocking_outages=0; > > int total_service_health=0; > int total_host_health=0; > int potential_service_health=0; > int potential_host_health=0; > double percent_service_health=0.0; > double percent_host_health=0.0; > > int total_hosts=0; > int total_services=0; > > int total_active_checks=0; > int total_passive_checks=0; > > int min_execution_time=-1; > int max_execution_time=-1; > unsigned long total_execution_time=0L; > double average_execution_time=-1.0; > int min_latency=-1; > int max_latency=-1; > unsigned long total_latency=0L; > double average_latency=-1.0; > > int flapping_services=0; > int flapping_hosts=0; > int flap_disabled_services=0; > int flap_disabled_hosts=0; > int notification_disabled_services=0; > int notification_disabled_hosts=0; > int event_handler_disabled_services=0; > int event_handler_disabled_hosts=0; > int active_checks_disabled_services=0; > int active_checks_disabled_hosts=0; > int passive_checks_disabled_services=0; > > int hosts_pending=0; > int hosts_pending_disabled=0; > int hosts_up_disabled=0; > int hosts_up_unacknowledged=0; > int hosts_up=0; > int hosts_down_scheduled=0; > int hosts_down_acknowledged=0; > int hosts_down_disabled=0; > int hosts_down_unacknowledged=0; > int hosts_down=0; > int hosts_unreachable_scheduled=0; > int hosts_unreachable_acknowledged=0; > int hosts_unreachable_disabled=0; > int hosts_unreachable_unacknowledged=0; > int hosts_unreachable=0; > > int services_pending=0; > int services_pending_disabled=0; > int services_ok_disabled=0; > int services_ok_unacknowledged=0; > int services_ok=0; > int services_warning_host_problem=0; > int services_warning_scheduled=0; > int services_warning_acknowledged=0; > int services_warning_disabled=0; > int services_warning_unacknowledged=0; > int services_warning=0; > int services_unknown_host_problem=0; > int services_unknown_scheduled=0; > int services_unknown_acknowledged=0; > int services_unknown_disabled=0; > int services_unknown_unacknowledged=0; > int services_unknown=0; > int services_critical_host_problem=0; > int services_critical_scheduled=0; > int services_critical_acknowledged=0; > int services_critical_disabled=0; > int services_critical_unacknowledged=0; > int services_critical=0; > > > > int main(void){ > int result=OK; > char *sound=NULL; > > > /* get the CGI variables passed in the URL */ > process_cgivars(); > > /* reset internal variables */ > reset_cgi_vars(); > > /* read the CGI configuration file */ > result=read_cgi_config_file(DEFAULT_CGI_CONFIG_FILE); > if(result==ERROR){ > document_header(FALSE); > cgi_config_file_error(DEFAULT_CGI_CONFIG_FILE); > document_footer(); > return ERROR; > } > > /* read the main configuration file */ > result=read_main_config_file(main_config_file); > if(result==ERROR){ > document_header(FALSE); > main_config_file_error(main_config_file); > document_footer(); > return ERROR; > } > > /* read all object configuration data */ > result=read_all_object_configuration_data(main_config_file,READ_ALL_OBJECT_DATA); > if(result==ERROR){ > document_header(FALSE); > object_data_error(); > document_footer(); > return ERROR; > } > > /* read all status data */ > result=read_all_status_data(DEFAULT_CGI_CONFIG_FILE,READ_ALL_STATUS_DATA); > if(result==ERROR){ > document_header(FALSE); > status_data_error(); > document_footer(); > free_memory(); > return ERROR; > } > > document_header(TRUE); > > /* get authentication information */ > get_authentication_information(?t_authdata); > > if(display_header==TRUE){ > > /* begin top table */ > printf(" \n"); > printf(" \n"); > > /* left column of top table - info box */ > printf(" \n"); > display_info_table("Tactical Status Overview",TRUE,?t_authdata); > printf("\n"); > > /* middle column of top table - log file navigation options */ > printf(" \n"); > printf("\n"); > > /* right hand column of top row */ > printf(" \n"); > printf("\n"); > > /* end of top table */ > printf("\n"); > printf("\n"); > printf(" > > \n"); > > } > > > /* analyze current host and service status data for tac overview */ > analyze_status_data(); > > /* find all hosts that are causing network outages */ > find_hosts_causing_outages(); > > > /* embed sound tag if necessary... */ > if(hosts_unreachable_unacknowledged > 0 && host_unreachable_sound!=NULL) > sound=host_unreachable_sound; > else if(hosts_down_unacknowledged > 0 && host_down_sound!=NULL) > sound=host_down_sound; > else if(services_critical_unacknowledged > 0 && service_critical_sound!=NULL) > sound=service_critical_sound; > else if(services_warning_unacknowledged > 0 && service_warning_sound!=NULL) > sound=service_warning_sound; > else if(services_unknown_unacknowledged==0 && services_warning_unacknowledged==0 && services_critical_unacknowledged==0 && hosts_down_unacknowledged==0 && hosts_unreachable_unacknowledged==0 && normal_sound!=NULL) > sound=normal_sound; > if(sound!=NULL) > printf("",url_media_path,sound); > > > /**** display main tac screen ****/ > display_tac_overview(); > > document_footer(); > > /* free memory allocated to the host outage list */ > free_hostoutage_list(); > > /* free allocated memory */ > free_memory(); > > return OK; > } > > > > > void document_header(int use_stylesheet){ > char date_time[MAX_DATETIME_LENGTH]; > time_t current_time; > time_t expire_time; > > printf("Cache-Control: no-store\n"); > printf("Pragma: no-cache\n"); > printf("Refresh: %d\n",refresh_rate); > > time(?t_time); > get_time_string(?t_time,date_time,(int)sizeof(date_time),HTTP_DATE_TIME); > printf("Last-Modified: %s\n",date_time); > > expire_time=(time_t)0L; > get_time_string(&expire_time,date_time,(int)sizeof(date_time),HTTP_DATE_TIME); > printf("Expires: %s\n",date_time); > > printf("Content-type: text/html\n\n"); > > if(embedded==TRUE) > return; > > printf("\n"); > printf("\n"); > printf("\n"); > > if(use_stylesheet==TRUE) > printf(" > \n",url_stylesheets_path,TAC_CSS); > > printf("\n"); > printf("\n"); > > /* include user SSI header */ > include_ssi_files(TAC_CGI,SSI_HEADER); > > return; > } > > > void document_footer(void){ > > if(embedded==TRUE) > return; > > /* include user SSI footer */ > include_ssi_files(TAC_CGI,SSI_FOOTER); > > printf("\n"); > printf("\n"); > > return; > } > > > int process_cgivars(void){ > char **variables; > int error=FALSE; > int x; > > variables=getcgivars(); > > for(x=0;variables[x]!=NULL;x++){ > > /* do some basic length checking on the variable identifier to prevent buffer overflows */ > if(strlen(variables[x])>=MAX_INPUT_BUFFER-1){ > continue; > } > > /* we found the embed option */ > else if(!strcmp(variables[x],"embedded")) > embedded=TRUE; > > /* we found the noheader option */ > else if(!strcmp(variables[x],"noheader")) > display_header=FALSE; > > /* we recieved an invalid argument */ > else > error=TRUE; > > } > > /* free memory allocated to the CGI variables */ > free_cgivars(variables); > > return error; > } > > > > void analyze_status_data(void){ > servicestatus *temp_servicestatus; > service *temp_service; > hoststatus *temp_hoststatus; > host *temp_host; > int problem=TRUE; > > > /* check all services */ > for(temp_servicestatus=servicestatus_list;temp_servicestatus!=NULL;temp_servicestatus=temp_servicestatus->next){ > > /* see if user is authorized to view this service */ > temp_service=find_service(temp_servicestatus->host_name,temp_servicestatus->description,NULL); > if(is_authorized_for_service(temp_service,?t_authdata)==FALSE) > continue; > > /******** CHECK FEATURES *******/ > > /* check flapping */ > if(temp_servicestatus->flap_detection_enabled==FALSE) > flap_disabled_services++; > else if(temp_servicestatus->is_flapping==TRUE) > flapping_services++; > > /* check notifications */ > if(temp_servicestatus->notifications_enabled==FALSE) > notification_disabled_services++; > > /* check event handler */ > if(temp_servicestatus->event_handler_enabled==FALSE) > event_handler_disabled_services++; > > /* active check execution */ > if(temp_servicestatus->checks_enabled==FALSE) > active_checks_disabled_services++; > > /* passive check acceptance */ > if(temp_servicestatus->accept_passive_service_checks==FALSE) > passive_checks_disabled_services++; > > > /********* CHECK STATUS ********/ > > problem=TRUE; > > if(temp_servicestatus->status==SERVICE_OK || temp_servicestatus->status==SERVICE_RECOVERY){ > if(temp_servicestatus->checks_enabled==FALSE) > services_ok_disabled++; > else > services_ok_unacknowledged++; > services_ok++; > } > > else if(temp_servicestatus->status==SERVICE_WARNING){ > temp_hoststatus=find_hoststatus(temp_servicestatus->host_name); > if(temp_hoststatus!=NULL && (temp_hoststatus->status==HOST_DOWN || temp_hoststatus->status==HOST_UNREACHABLE)){ > services_warning_host_problem++; > problem=FALSE; > } > if(temp_servicestatus->scheduled_downtime_depth>0){ > services_warning_scheduled++; > problem=FALSE; > } > if(temp_servicestatus->problem_has_been_acknowledged==TRUE){ > services_warning_acknowledged++; > problem=FALSE; > } > if(temp_servicestatus->checks_enabled==FALSE){ > services_warning_disabled++; > problem=FALSE; > } > if(problem==TRUE) > services_warning_unacknowledged++; > services_warning++; > } > > else if(temp_servicestatus->status==SERVICE_UNKNOWN){ > temp_hoststatus=find_hoststatus(temp_servicestatus->host_name); > if(temp_hoststatus!=NULL && (temp_hoststatus->status==HOST_DOWN || temp_hoststatus->status==HOST_UNREACHABLE)){ > services_unknown_host_problem++; > problem=FALSE; > } > if(temp_servicestatus->scheduled_downtime_depth>0){ > services_unknown_scheduled++; > problem=FALSE; > } > if(temp_servicestatus->problem_has_been_acknowledged==TRUE){ > services_unknown_acknowledged++; > problem=FALSE; > } > if(temp_servicestatus->checks_enabled==FALSE){ > services_unknown_disabled++; > problem=FALSE; > } > if(problem==TRUE) > services_unknown_unacknowledged++; > services_unknown++; > } > > else if(temp_servicestatus->status==SERVICE_CRITICAL){ > temp_hoststatus=find_hoststatus(temp_servicestatus->host_name); > if(temp_hoststatus!=NULL && (temp_hoststatus->status==HOST_DOWN || temp_hoststatus->status==HOST_UNREACHABLE)){ > services_critical_host_problem++; > problem=FALSE; > } > if(temp_servicestatus->scheduled_downtime_depth>0){ > services_critical_scheduled++; > problem=FALSE; > } > if(temp_servicestatus->problem_has_been_acknowledged==TRUE){ > services_critical_acknowledged++; > problem=FALSE; > } > if(temp_servicestatus->checks_enabled==FALSE){ > services_critical_disabled++; > problem=FALSE; > } > if(problem==TRUE) > services_critical_unacknowledged++; > services_critical++; > } > > else if(temp_servicestatus->status==SERVICE_PENDING){ > if(temp_servicestatus->checks_enabled==FALSE) > services_pending_disabled++; > services_pending++; > } > > > /* get health stats */ > if(temp_servicestatus->status==SERVICE_OK) > total_service_health+=2; > > else if(temp_servicestatus->status==SERVICE_WARNING || temp_servicestatus->status==SERVICE_UNKNOWN) > total_service_health++; > > if(temp_servicestatus->status!=SERVICE_PENDING) > potential_service_health+=2; > > > /* calculate execution time and latency stats */ > if(temp_servicestatus->check_type==SERVICE_CHECK_ACTIVE){ > > total_active_checks++; > > if(min_latency==-1 || temp_servicestatus->latency min_latency=temp_servicestatus->latency; > if(max_latency==-1 || temp_servicestatus->latency>max_latency) > max_latency=temp_servicestatus->latency; > > if(min_execution_time==-1 || temp_servicestatus->execution_time min_execution_time=temp_servicestatus->execution_time; > if(max_execution_time==-1 || temp_servicestatus->execution_time>max_execution_time) > max_execution_time=temp_servicestatus->execution_time; > > total_latency+=temp_servicestatus->latency; > total_execution_time+=temp_servicestatus->execution_time; > } > else > total_passive_checks++; > > > total_services++; > } > > > > /* check all hosts */ > for(temp_hoststatus=hoststatus_list;temp_hoststatus!=NULL;temp_hoststatus=temp_hoststatus->next){ > > /* see if user is authorized to view this host */ > temp_host=find_host(temp_hoststatus->host_name,NULL); > if(is_authorized_for_host(temp_host,?t_authdata)==FALSE) > continue; > > /******** CHECK FEATURES *******/ > > /* check flapping */ > if(temp_hoststatus->flap_detection_enabled==FALSE) > flap_disabled_hosts++; > else if(temp_hoststatus->is_flapping==TRUE) > flapping_hosts++; > > /* check notifications */ > if(temp_hoststatus->notifications_enabled==FALSE) > notification_disabled_hosts++; > > /* check event handler */ > if(temp_hoststatus->event_handler_enabled==FALSE) > event_handler_disabled_hosts++; > > /* active check execution */ > if(temp_hoststatus->checks_enabled==FALSE) > active_checks_disabled_hosts++; > > > /********* CHECK STATUS ********/ > > problem=TRUE; > > if(temp_hoststatus->status==HOST_UP){ > if(temp_hoststatus->checks_enabled==FALSE) > hosts_up_disabled++; > else > hosts_up_unacknowledged++; > hosts_up++; > } > > else if(temp_hoststatus->status==HOST_DOWN){ > if(temp_hoststatus->scheduled_downtime_depth>0){ > hosts_down_scheduled++; > problem=FALSE; > } > if(temp_hoststatus->problem_has_been_acknowledged==TRUE){ > hosts_down_acknowledged++; > problem=FALSE; > } > if(temp_hoststatus->checks_enabled==FALSE){ > hosts_down_disabled++; > problem=FALSE; > } > if(problem==TRUE) > hosts_down_unacknowledged++; > hosts_down++; > } > > else if(temp_hoststatus->status==HOST_UNREACHABLE){ > if(temp_hoststatus->scheduled_downtime_depth>0){ > hosts_unreachable_scheduled++; > problem=FALSE; > } > if(temp_hoststatus->problem_has_been_acknowledged==TRUE){ > hosts_unreachable_acknowledged++; > problem=FALSE; > } > if(temp_hoststatus->checks_enabled==FALSE){ > hosts_unreachable_disabled++; > problem=FALSE; > } > if(problem==TRUE) > hosts_unreachable_unacknowledged++; > hosts_unreachable++; > } > > else if(temp_hoststatus->status==HOST_PENDING){ > if(temp_hoststatus->checks_enabled==FALSE) > hosts_pending_disabled++; > hosts_pending++; > } > > /* get health stats */ > if(temp_hoststatus->status==HOST_UP) > total_host_health++; > > if(temp_hoststatus->status!=HOST_PENDING) > potential_host_health++; > > total_hosts++; > } > > > /* calculate service health */ > if(potential_service_health==0) > percent_service_health=0.0; > else > percent_service_health=((double)total_service_health/(double)potential_service_health)*100.0; > > /* calculate host health */ > if(potential_host_health==0) > percent_host_health=0.0; > else > percent_host_health=((double)total_host_health/(double)potential_host_health)*100.0; > > /* calculate latency */ > if(total_latency==0L) > average_latency=0.0; > else > average_latency=((double)total_latency/(double)total_active_checks); > > /* calculate execution time */ > if(total_execution_time==0L) > average_execution_time=0.0; > else > average_execution_time=((double)total_execution_time/(double)total_active_checks); > > return; > } > > > > > /* determine what hosts are causing network outages */ > void find_hosts_causing_outages(void){ > hoststatus *temp_hoststatus; > hostoutage *temp_hostoutage; > host *temp_host; > > /* user must be authorized for all hosts in order to see outages */ > if(is_authorized_for_all_hosts(?t_authdata)==FALSE) > return; > > /* check all hosts */ > for(temp_hoststatus=hoststatus_list;temp_hoststatus!=NULL;temp_hoststatus=temp_hoststatus->next){ > > /* check only hosts that are not up and not pending */ > if(temp_hoststatus->status!=HOST_UP && temp_hoststatus->status!=HOST_PENDING){ > > /* find the host entry */ > temp_host=find_host(temp_hoststatus->host_name,NULL); > > if(temp_host==NULL) > continue; > > /* if the route to this host is not blocked, it is a causing an outage */ > if(is_route_to_host_blocked(temp_host)==FALSE) > add_hostoutage(temp_host); > } > } > > > /* check all hosts that are causing problems and calculate the extent of the problem */ > for(temp_hostoutage=hostoutage_list;temp_hostoutage!=NULL;temp_hostoutage=temp_hostoutage->next){ > > /* calculate the outage effect of this particular hosts */ > calculate_outage_effect_of_host(temp_hostoutage->hst,&temp_hostoutage->affected_child_hosts); > > if(temp_hostoutage->affected_child_hosts>1) > total_blocking_outages++; > else > total_nonblocking_outages++; > } > > return; > } > > > > > > /* adds a host outage entry */ > void add_hostoutage(host *hst){ > hostoutage *new_hostoutage; > > /* allocate memory for a new structure */ > new_hostoutage=(hostoutage *)malloc(sizeof(hostoutage)); > > if(new_hostoutage==NULL) > return; > > new_hostoutage->hst=hst; > new_hostoutage->affected_child_hosts=0; > > /* add the structure to the head of the list in memory */ > new_hostoutage->next=hostoutage_list; > hostoutage_list=new_hostoutage; > > return; > } > > > > > /* frees all memory allocated to the host outage list */ > void free_hostoutage_list(void){ > hostoutage *this_hostoutage; > hostoutage *next_hostoutage; > > for(this_hostoutage=hostoutage_list;this_hostoutage!=NULL;this_hostoutage=next_hostoutage){ > > === message truncated === > .tac { font-family: arial,serif; background-color: black; background: black; color: white; background-color: black; } > > .errorMessage { font-family: arial; font-weight: bold; font-size: 12pt; background-color: black; color: white; } > .errorDescription { font-family: arial,serif; text-align: center; font-weight: bold; font-size: 12pt; } > .warningMessage { font-family: arial,serif; text-align: center; color: red; font-weight: bold; font-size: 10pt; } > > .infoBox { font-family: arial,serif; font-size: 8pt; background-color: #C4C2C2; color: black; padding: 2; } > .infoBoxTitle { font-family: arial,serif; font-size: 10pt; font-weight: bold; color: black; } > .infoBoxBadProcStatus {font-family: arial,serif; color: red; } > A { font-family: arial,serif; color: black; } > > .title { text-align: left; font-family: arial; font-weight: bold; font-size: large; background-color: black; color: white; } > .titleItem { text-align: left; font-family: arial; font-weight: bold; font-size: 8pt; background-color: black; color: white; } > .infoBoxBadProcStatus { text-align: left; font-family: arial; font-weight: bold; font-size: 8pt; background-color: #C4C2C2; color: red; } > > .healthTitle { text-align: left; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #33FF33; color: black; } > .healthBox { text-align: left; font-family: arial; font-weight: bold; font-size: 8pt; background-color: #C4C2C2; color: white; } > .healthItem { text-align: left; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #C4C2C2; color: black; } > .healthBar { text-align: left; font-family: arial; font-weight: bold; font-size: 8pt; background-color: gray; color: white; } > > .perfTitle { text-align: left; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #33FF33; color: black; text-decoration: none; } > .perfBox { text-align: left; font-family: arial; font-weight: bold; font-size: 8pt; background-color: #C4C2C2; color: white; } > .perfItem { text-align: left; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #C4C2C2; color: black; text-decoration: none; } > .perfValue { text-align: left; font-family: arial; font-size: 10pt; background-color: #C4C2C2; color: black; text-decoration: none; } > > .featureTitle { text-align: left; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #33FF33; color: black; } > .featureHeader { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #C4C2C2; color: black; } > > .featureEnabled { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #ccffcc; color: #8f8f8f; } > .featureDisabled { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #ffcccc; color: #b3b3b3; } > > .featureEnabledFlapDetection { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #ccffcc; color: #8f8f8f; } > .featureDisabledFlapDetection { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #ffcccc; color: #b3b3b3; } > .featureItemEnabledServiceFlapDetection { text-align: left; font-family: arial; font-size: 8pt; background-color: #ccffcc; color: black; } > .featureItemDisabledServiceFlapDetection { text-align: left; font-family: arial; font-size: 8pt; background-color: #ff0000; color: black; } > .featureItemEnabledHostFlapDetection { text-align: left; font-family: arial; font-size: 8pt; background-color: #ccffcc; color: black; } > .featureItemDisabledHostFlapDetection { text-align: left; font-family: arial; font-size: 8pt; background-color: #ff0000; color: black; } > .featureItemServicesNotFlapping { text-align: left; font-family: arial; font-size: 8pt; background-color: #ccffcc; color: black; } > .featureItemServicesFlapping { text-align: left; font-family: arial; font-size: 8pt; background-color: #ff0000; color: black; } > .featureItemHostsNotFlapping { text-align: left; font-family: arial; font-size: 8pt; background-color: #ccffcc; color: black; } > .featureItemHostsFlapping { text-align: left; font-family: arial; font-size: 8pt; background-color: #ff0000; color: black; } > > .featureEnabledNotifications { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #ccffcc; color: #8f8f8f; } > .featureDisabledNotifications { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #ffcccc; color: #b3b3b3; } > .featureItemEnabledServiceNotifications { text-align: left; font-family: arial; font-size: 8pt; background-color: #ccffcc; color: black; } > .featureItemDisabledServiceNotifications { text-align: left; font-family: arial; font-size: 8pt; background-color: #0000FF; color: black; } > .featureItemEnabledHostNotifications { text-align: left; font-family: arial; font-size: 8pt; background-color: #ccffcc; color: black; } > .featureItemDisabledHostNotifications { text-align: left; font-family: arial; font-size: 8pt; background-color: #0000FF; color: black; } > > .featureEnabledHandlers { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #ccffcc; color: #8f8f8f; } > .featureDisabledHandlers { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #ffcccc; color: #b3b3b3; } > .featureItemEnabledServiceHandlers { text-align: left; font-family: arial; font-size: 8pt; background-color: #ccffcc; color: black; } > .featureItemDisabledServiceHandlers { text-align: left; font-family: arial; font-size: 8pt; background-color: #ff0000; color: black; } > .featureItemEnabledHostHandlers { text-align: left; font-family: arial; font-size: 8pt; background-color: #ccffcc; color: black; } > .featureItemDisabledHostHandlers { text-align: left; font-family: arial; font-size: 8pt; background-color: #ff0000; color: black; } > > .featureEnabledActiveChecks { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #ccffcc; color: #8f8f8f; } > .featureDisabledActiveChecks { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #ffcccc; color: #b3b3b3; } > .featureItemEnabledActiveServiceChecks { text-align: left; font-family: arial; font-size: 8pt; background-color: #ccffcc; color: black; } > .featureItemDisabledActiveServiceChecks { text-align: left; font-family: arial; font-size: 8pt; background-color: #ff0000; color: black; } > .featureItemEnabledActiveHostChecks { text-align: left; font-family: arial; font-size: 8pt; background-color: #ccffcc; color: black; } > .featureItemDisabledActiveHostChecks { text-align: left; font-family: arial; font-size: 8pt; background-color: #ff0000; color: black; } > > .featureEnabledPassiveChecks { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #ccffcc; color: #8f8f8f; } > .featureDisabledPassiveChecks { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #ffcccc; color: #b3b3b3; } > .featureItemEnabledPassiveServiceChecks { text-align: left; font-family: arial; font-size: 8pt; background-color: #ccffcc; color: black; } > .featureItemDisabledPassiveServiceChecks { text-align: left; font-family: arial; font-size: 8pt; background-color: #ff0000; color: black; } > > .outageTitle { text-align: left; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #999797; color: black; } > .outageHeader { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #C4C2C2; color: black; text-decoration: none; } > > .outageImportantProblem { text-align: left; font-family: arial; font-size: 8pt; background-color: #ff0000; color: black; } > .outageUnimportantProblem { text-align: left; font-family: arial; font-size: 8pt; background-color: #ffcccc; color: black; } > > .hostTitle { text-align: left; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #999797; color: black; } > .hostHeader { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #C4C2C2; color: black; text-decoration: none; } > > .hostImportantProblem { text-align: left; font-family: arial; font-size: 8pt; background-color: #ff0000; color: black; } > .hostUnimportantProblem { text-align: left; font-family: arial; font-size: 8pt; background-color: #ffcccc; color: black; } > > .serviceTitle { text-align: left; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #999797; color: black; } > .serviceHeader { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #C4C2C2; color: black; text-decoration: none; } > > .serviceImportantProblem { text-align: left; font-family: arial; font-size: 8pt; background-color: #ff0000; color: black; } > .serviceUnimportantProblem { text-align: left; font-family: arial; font-size: 8pt; background-color: #ffcccc; color: black; } > .warningserviceImportantProblem { text-align: left; font-family: arial; font-size: 8pt; background-color: #FFFF00; color: black; } > .unknownserviceImportantProblem { text-align: left; font-family: arial; font-size: 8pt; background-color: #FF9966; color: black; } > > > > > --------------------------------- > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up now > ---- > > > .tac { font-family: arial,serif; background-color: black; background: black; color: white; background-color: black; } > > .errorMessage { font-family: arial; font-weight: bold; font-size: 12pt; background-color: black; color: white; } > .errorDescription { font-family: arial,serif; text-align: center; font-weight: bold; font-size: 12pt; } > .warningMessage { font-family: arial,serif; text-align: center; color: red; font-weight: bold; font-size: 10pt; } > > .infoBox { font-family: arial,serif; font-size: 8pt; background-color: #C4C2C2; color: black; padding: 2; } > .infoBoxTitle { font-family: arial,serif; font-size: 10pt; font-weight: bold; color: black; } > .infoBoxBadProcStatus {font-family: arial,serif; color: red; } > A { font-family: arial,serif; color: black; } > > .title { text-align: left; font-family: arial; font-weight: bold; font-size: large; background-color: black; color: white; } > .titleItem { text-align: left; font-family: arial; font-weight: bold; font-size: 8pt; background-color: black; color: white; } > .infoBoxBadProcStatus { text-align: left; font-family: arial; font-weight: bold; font-size: 8pt; background-color: #C4C2C2; color: red; } > > .healthTitle { text-align: left; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #33FF33; color: black; } > .healthBox { text-align: left; font-family: arial; font-weight: bold; font-size: 8pt; background-color: #C4C2C2; color: white; } > .healthItem { text-align: left; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #C4C2C2; color: black; } > .healthBar { text-align: left; font-family: arial; font-weight: bold; font-size: 8pt; background-color: gray; color: white; } > > .perfTitle { text-align: left; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #33FF33; color: black; text-decoration: none; } > .perfBox { text-align: left; font-family: arial; font-weight: bold; font-size: 8pt; background-color: #C4C2C2; color: white; } > .perfItem { text-align: left; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #C4C2C2; color: black; text-decoration: none; } > .perfValue { text-align: left; font-family: arial; font-size: 10pt; background-color: #C4C2C2; color: black; text-decoration: none; } > > .featureTitle { text-align: left; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #33FF33; color: black; } > .featureHeader { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #C4C2C2; color: black; } > > .featureEnabled { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #ccffcc; color: #8f8f8f; } > .featureDisabled { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #ffcccc; color: #b3b3b3; } > > .featureEnabledFlapDetection { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #ccffcc; color: #8f8f8f; } > .featureDisabledFlapDetection { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #ffcccc; color: #b3b3b3; } > .featureItemEnabledServiceFlapDetection { text-align: left; font-family: arial; font-size: 8pt; background-color: #ccffcc; color: black; } > .featureItemDisabledServiceFlapDetection { text-align: left; font-family: arial; font-size: 8pt; background-color: #ff0000; color: black; } > .featureItemEnabledHostFlapDetection { text-align: left; font-family: arial; font-size: 8pt; background-color: #ccffcc; color: black; } > .featureItemDisabledHostFlapDetection { text-align: left; font-family: arial; font-size: 8pt; background-color: #ff0000; color: black; } > .featureItemServicesNotFlapping { text-align: left; font-family: arial; font-size: 8pt; background-color: #ccffcc; color: black; } > .featureItemServicesFlapping { text-align: left; font-family: arial; font-size: 8pt; background-color: #ff0000; color: black; } > .featureItemHostsNotFlapping { text-align: left; font-family: arial; font-size: 8pt; background-color: #ccffcc; color: black; } > .featureItemHostsFlapping { text-align: left; font-family: arial; font-size: 8pt; background-color: #ff0000; color: black; } > > .featureEnabledNotifications { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #ccffcc; color: #8f8f8f; } > .featureDisabledNotifications { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #ffcccc; color: #b3b3b3; } > .featureItemEnabledServiceNotifications { text-align: left; font-family: arial; font-size: 8pt; background-color: #ccffcc; color: black; } > .featureItemDisabledServiceNotifications { text-align: left; font-family: arial; font-size: 8pt; background-color: #0000FF; color: black; } > .featureItemEnabledHostNotifications { text-align: left; font-family: arial; font-size: 8pt; background-color: #ccffcc; color: black; } > .featureItemDisabledHostNotifications { text-align: left; font-family: arial; font-size: 8pt; background-color: #0000FF; color: black; } > > .featureEnabledHandlers { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #ccffcc; color: #8f8f8f; } > .featureDisabledHandlers { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #ffcccc; color: #b3b3b3; } > .featureItemEnabledServiceHandlers { text-align: left; font-family: arial; font-size: 8pt; background-color: #ccffcc; color: black; } > .featureItemDisabledServiceHandlers { text-align: left; font-family: arial; font-size: 8pt; background-color: #ff0000; color: black; } > .featureItemEnabledHostHandlers { text-align: left; font-family: arial; font-size: 8pt; background-color: #ccffcc; color: black; } > .featureItemDisabledHostHandlers { text-align: left; font-family: arial; font-size: 8pt; background-color: #ff0000; color: black; } > > .featureEnabledActiveChecks { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #ccffcc; color: #8f8f8f; } > .featureDisabledActiveChecks { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #ffcccc; color: #b3b3b3; } > .featureItemEnabledActiveServiceChecks { text-align: left; font-family: arial; font-size: 8pt; background-color: #ccffcc; color: black; } > .featureItemDisabledActiveServiceChecks { text-align: left; font-family: arial; font-size: 8pt; background-color: #ff0000; color: black; } > .featureItemEnabledActiveHostChecks { text-align: left; font-family: arial; font-size: 8pt; background-color: #ccffcc; color: black; } > .featureItemDisabledActiveHostChecks { text-align: left; font-family: arial; font-size: 8pt; background-color: #ff0000; color: black; } > > .featureEnabledPassiveChecks { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #ccffcc; color: #8f8f8f; } > .featureDisabledPassiveChecks { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #ffcccc; color: #b3b3b3; } > .featureItemEnabledPassiveServiceChecks { text-align: left; font-family: arial; font-size: 8pt; background-color: #ccffcc; color: black; } > .featureItemDisabledPassiveServiceChecks { text-align: left; font-family: arial; font-size: 8pt; background-color: #ff0000; color: black; } > > .outageTitle { text-align: left; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #999797; color: black; } > .outageHeader { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #C4C2C2; color: black; text-decoration: none; } > > .outageImportantProblem { text-align: left; font-family: arial; font-size: 8pt; background-color: #ff0000; color: black; } > .outageUnimportantProblem { text-align: left; font-family: arial; font-size: 8pt; background-color: #ffcccc; color: black; } > > .hostTitle { text-align: left; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #999797; color: black; } > .hostHeader { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #C4C2C2; color: black; text-decoration: none; } > > .hostImportantProblem { text-align: left; font-family: arial; font-size: 8pt; background-color: #ff0000; color: black; } > .hostUnimportantProblem { text-align: left; font-family: arial; font-size: 8pt; background-color: #ffcccc; color: black; } > > .serviceTitle { text-align: left; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #999797; color: black; } > .serviceHeader { text-align: center; font-family: arial; font-weight: bold; font-size: 10pt; background-color: #C4C2C2; color: black; text-decoration: none; } > > .serviceImportantProblem { text-align: left; font-family: arial; font-size: 8pt; background-color: #ff0000; color: black; } > .serviceUnimportantProblem { text-align: left; font-family: arial; font-size: 8pt; background-color: #ffcccc; color: black; } > .warningserviceImportantProblem { text-align: left; font-family: arial; font-size: 8pt; background-color: #FFFF00; color: black; } > .unknownserviceImportantProblem { text-align: left; font-family: arial; font-size: 8pt; background-color: #FF9966; color: black; } > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jlixfeld at fastvibe.com Thu Feb 6 22:34:15 2003 From: jlixfeld at fastvibe.com (Jason Lixfeld) Date: Thu, 06 Feb 2003 16:34:15 -0500 Subject: Configuration option for auto-acknowledge? In-Reply-To: References: Message-ID: <3E42D4D7.9080801@fastvibe.com> Yeah, so there is no easy way to skin the cat or send configure a pre-acknowledged state; fine. It will take some creative thinking -- and hiring a developer to actually do this cuz I was barely able to get the first perl script importing from radius working properly :) Thanks for your input, folks. Subhendu Ghosh wrote: > Or since you have using templates - create 2 templates > one with a 24x7 monitor and a second with a not-time monitor > > Use the second when adding config to nagios. > Upon the first login (Radius accounting somewhere) > write another script to change the template to enable monitoring and > possibly remove the script from be activated on future logon or keep a > hash of users who have not loged on as yet. > > -sg > > > On Thu, 6 Feb 2003, Shayne Lebrun wrote: > > >>Hurm. >> >>Have your import script not import a RADIUS entry into Nagios until such >>time as he's logged in. >> >> >> >>-----Original Message----- >>From: nagios-users-admin at lists.sourceforge.net >>[mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Jason >>Lixfeld >>Sent: Thursday, February 06, 2003 2:22 PM >>To: jcarro10 at sprintspectrum.com >>Cc: nagios-users at lists.sourceforge.net >>Subject: Re: [Nagios-users] Configuration option for auto-acknowledge? >> >> >>Jim, >> >>Carroll, Jim P [Contractor] wrote: >> >>>Perhaps some greater detail is required. Some questions: >>> >>>- exactly where in Nagios are you automatically adding these users? Could >>>you provide a sample configuration which has been automatically added? >> >>I am creating host and service entries in nagios based on information >>which is in our RADIUS user database: >> >>Our radius database gives us two values for each user, username and IP >>address. It is imported into nagios via a perl script and username >>becomes host_name and IP address is the same, address for an entry that >>looks like this for each user in our radius database: >> >>define host { >> use w7 >> host_name harv2459.w7 >> alias harv2459 >> address 216.7.193.244 >> } >> >>define service { >> use w7 >> host_name harv2459.w7 >> service_description PING >> contact_groups w7.email,w7.pager >> check_command check-host-alive >> } >> >> >> >>>- where are the users logging into? Into Nagios? Into the o/s? >> >>The users are logging into our DSL network over ppp. It is a dedicated >>service but since we provision the users in radius (And thus are >>inserted into nagios) before the customers recieve the hardware to >>activate their service (PPP DSL router), as soon as nagios gets it's new >>config, it tries to monitor the user which isn't up yet. I'm looking >>for a way to tell Nagios to not notify us to the fact that harv2459 is >>unreachable until after the first time he logs in -- in essence, >>proactive acknowledgment of a service that isn't completely installed. >> >> >>>- what changes, as far as Nagios is concerned, after the user logs in for >>>the first time? >> >>After the user logs in, his router becomes pingable (via ppp) as it >>recieved the IP address from radius (which is also configured in radius). >> >> >>>There might be a much more elegant solution to what you're asking. >> >>And so I am hoping! :) >> >> >>>Having said that, maybe what you're looking for is a way of pushing >> >>commands >> >>>directly into Nagios, via nagios.cmd. Check the FAQ. >> >>Perhaps. Based on what I have said here, what do you suggest? >> >> >>>jc >>> >>> >>> >>>>-----Original Message----- >>>>From: Jason Lixfeld [mailto:jlixfeld at fastvibe.com] >>>>Sent: Thursday, February 06, 2003 9:40 AM >>>>To: nagios-users at lists.sourceforge.net >>>>Subject: [Nagios-users] Configuration option for auto-acknowledge? >>>> >>>> >>>>Greetings, >>>> >>>> At our organization, we pre-provision users and use >>>>nagios to poll the >>>>provisioning server and automatically add users to the nagios >>>>configuration. The problem with this implementation is that >>>>the users >>>>may not be active before they have been provisioned. This means that >>>>until they login for the first time, alarms will go off unless we >>>>manually acknowledge each of the pre-provisioned users. A >>>>user may not >>>>login for a long period of time after they are provisioned, and thus >>>>added to nagios. What I'm wondering is if there is a >>>>configuration hook >>>>that can be inserted for each user that sets the initial notification >>>>state to acknowledged so we don't have to manually >>>>acknowledge each user. >>>> >>>>Thank you in advance. >>>> >>>> >>>> >>>> >>>>------------------------------------------------------- >>>>This SF.NET email is sponsored by: >>>>SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >>>>http://www.vasoftware.com >>>>_______________________________________________ >>>>Nagios-users mailing list >>>>Nagios-users at lists.sourceforge.net >>>>https://lists.sourceforge.net/lists/listinfo/nagios-users >>>> >>> >>> >>> >>> >> >> >> >>------------------------------------------------------- >>This SF.NET email is sponsored by: >>SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >>http://www.vasoftware.com >>_______________________________________________ >>Nagios-users mailing list >>Nagios-users at lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/nagios-users >> >> >> >> >>------------------------------------------------------- >>This SF.NET email is sponsored by: >>SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >>http://www.vasoftware.com >>_______________________________________________ >>Nagios-users mailing list >>Nagios-users at lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/nagios-users >> > > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From strerath at 4all-networks.de Thu Feb 6 22:36:59 2003 From: strerath at 4all-networks.de (Marcel Strerath) Date: Thu, 6 Feb 2003 22:36:59 +0100 Subject: Tux Message-ID: <000d01c2ce27$e1901dc0$0300a8c0@workstation> Hi, how can I bind my Tux into the Status Map? I have added in the cgi.cfg follow line: hostextinfo[srv1]=;linux.png;linux.png;linux.gd2;linux.png;;; . What must I do too? -------------- next part -------------- An HTML attachment was scrubbed... URL: From jlyons30 at yahoo.com Thu Feb 6 22:42:09 2003 From: jlyons30 at yahoo.com (Jon Lyons) Date: Thu, 6 Feb 2003 13:42:09 -0800 (PST) Subject: Colors In-Reply-To: <1044566733.28467.19.camel@operacao> References: <1044566733.28467.19.camel@operacao> Message-ID: <20030206214209.35176.qmail@web21506.mail.yahoo.com> Depends on which colors you're trying to modify and on which page. If you're trying to modify the red background displayed on the tac page for hosts & services (in critical,warning,unknown states), ie, you want the backgound for warning to be yellow instead of red, then you'll need to modify the tac.c and recomplie that tac.cgi and modify the tac.css, or just use mine. If you want to change the title/page colors just edit the .css file for the page in question. You'll have to play around with what variables do what... Henrique leandro wrote:so, i don't need change de C code to change colors ? Only files .css ? i'll try it. Thanks. On Thu, 2003-02-06 at 19:08, Jon Lyons wrote: > > Are you talking about changing the default red for critical and warning on the stats page? If not, then look at the .css style sheets, there's a lot of options.... > > See below, I have Red, Yellow, and brown for my Tac page. > > Henrique leandro wrote: Hi, > > ho do i for change the status colors ? > we would like something: > > CRITICAL: ORANGE > WARNING: BLUE > UNKNOWN: GRAY > PENDING: RED > > > > thanks > > > > > > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > Jon Lyons wrote: > FYI, I've updated my tac.c and tac.css (1.0b6) stylesheet to change the default colors of the tac.cgi text backgrounds from red to yellow for warnings, and brownish for unknown. Now only the critical alerts on the tac.cgi are in red... > Basically I added two stylesheet definitions to tac.css; and call them in tac.c... > warningserviceImportantProblem { text-align: left; font-family: arial; font-size: 8pt; background-color: #FFFF00; color: black; } > .unknownserviceImportantProblem { text-align: left; font-family: arial; font-size: 8pt; background-color: #FF9966; color: black; } > > /your/nagios/path/share/stylesheets/tac.css > Jon Lyons wrote: > > Hi, I've modified my tac.css stylesheet colors, but I'd like to change the service warning text block from red to something more like yellow for the tac.cgi, is this in the style sheet or somewhere else?? I'd like the critical sections to only use red.. :) > Thanks.... > > > > --------------------------------- > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up now > > > --------------------------------- > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up now/*********************************************************************** > * > * TAC.C - Nagios Tactical Monitoring Overview CGI > * > * Copyright (c) 2001-2002 Ethan Galstad (nagios at nagios.org) > * Last Modified: 08-07-2002 > * > * This CGI program will display the contents of the Nagios > * log file. > * > * > * This program is free software; you can redistribute it and/or modify > * it under the terms of the GNU General Public License as published by > * the Free Software Foundation; either version 2 of the License, or > * (at your option) any later version. > * > * This program is distributed in the hope that it will be useful, > * but WITHOUT ANY WARRANTY; without even the implied warranty of > * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > * GNU General Public License for more details. > * > * You should have received a copy of the GNU General Public License > * along with this program; if not, write to the Free Software > * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. > ***********************************************************************/ > > #include "../common/config.h" > #include "../common/locations.h" > #include "../common/common.h" > #include "../common/objects.h" > #include "../common/statusdata.h" > > #include "getcgi.h" > #include "cgiutils.h" > #include "auth.h" > #include "lifo.h" > > > #define HEALTH_WARNING_PERCENTAGE 90 > #define HEALTH_CRITICAL_PERCENTAGE 75 > > > /* HOSTOUTAGE structure */ > typedef struct hostoutage_struct{ > host *hst; > int affected_child_hosts; > struct hostoutage_struct *next; > }hostoutage; > > > extern char main_config_file[MAX_FILENAME_LENGTH]; > extern char url_images_path[MAX_FILENAME_LENGTH]; > extern char url_stylesheets_path[MAX_FILENAME_LENGTH]; > extern char url_media_path[MAX_FILENAME_LENGTH]; > > extern int refresh_rate; > > extern char *service_critical_sound; > extern char *service_warning_sound; > extern char *service_unknown_sound; > extern char *host_down_sound; > extern char *host_unreachable_sound; > extern char *normal_sound; > > extern hostgroup *hostgroup_list; > extern hoststatus *hoststatus_list; > extern servicestatus *servicestatus_list; > extern host *host_list; > extern service *service_list; > > extern int enable_notifications; > extern int execute_service_checks; > extern int accept_passive_service_checks; > extern int enable_event_handlers; > extern int enable_flap_detection; > > extern int nagios_process_state; > > > > void analyze_status_data(void); > void display_tac_overview(void); > > void find_hosts_causing_outages(void); > void calculate_outage_effect_of_host(host *,int *); > int is_route_to_host_blocked(host *); > int number_of_host_services(host *); > void add_hostoutage(host *); > void free_hostoutage_list(void); > > void document_header(int); > void document_footer(void); > int process_cgivars(void); > > authdata current_authdata; > > int embedded=FALSE; > int display_header=FALSE; > > hostoutage *hostoutage_list=NULL; > > int total_blocking_outages=0; > int total_nonblocking_outages=0; > > int total_service_health=0; > int total_host_health=0; > int potential_service_health=0; > int potential_host_health=0; > double percent_service_health=0.0; > double percent_host_health=0.0; > > int total_hosts=0; > int total_services=0; > > int total_active_checks=0; > int total_passive_checks=0; > > int min_execution_time=-1; > int max_execution_time=-1; > unsigned long total_execution_time=0L; > double average_execution_time=-1.0; > int min_latency=-1; > int max_latency=-1; > unsigned long total_latency=0L; > double average_latency=-1.0; > > int flapping_services=0; > int flapping_hosts=0; > int flap_disabled_services=0; > int flap_disabled_hosts=0; > int notification_disabled_services=0; > int notification_disabled_hosts=0; > int event_handler_disabled_services=0; > int event_handler_disabled_hosts=0; > int active_checks_disabled_services=0; > int active_checks_disabled_hosts=0; > int passive_checks_disabled_services=0; > > int hosts_pending=0; > int hosts_pending_disabled=0; > int hosts_up_disabled=0; > int hosts_up_unacknowledged=0; > int hosts_up=0; > int hosts_down_scheduled=0; > int hosts_down_acknowledged=0; > int hosts_down_disabled=0; > int hosts_down_unacknowledged=0; > int hosts_down=0; > int hosts_unreachable_scheduled=0; > int hosts_unreachable_acknowledged=0; > int hosts_unreachable_disabled=0; > int hosts_unreachable_unacknowledged=0; > int hosts_unreachable=0; > > int services_pending=0; > int services_pending_disabled=0; > int services_ok_disabled=0; > int services_ok_unacknowledged=0; > int services_ok=0; > int services_warning_host_problem=0; > int services_warning_scheduled=0; > int services_warning_acknowledged=0; > int services_warning_disabled=0; > int services_warning_unacknowledged=0; > int services_warning=0; > int services_unknown_host_problem=0; > int services_unknown_scheduled=0; > int services_unknown_acknowledged=0; > int services_unknown_disabled=0; > int services_unknown_unacknowledged=0; > int services_unknown=0; > int services_critical_host_problem=0; > int services_critical_scheduled=0; > int services_critical_acknowledged=0; > int services_critical_disabled=0; > int services_critical_unacknowledged=0; > int services_critical=0; > > > > int main(void){ > int result=OK; > char *sound=NULL; > > > /* get the CGI variables passed in the URL */ > process_cgivars(); > > /* reset internal variables */ > reset_cgi_vars(); > > /* read the CGI configuration file */ > result=read_cgi_config_file(DEFAULT_CGI_CONFIG_FILE); > if(result==ERROR){ > document_header(FALSE); > cgi_config_file_error(DEFAULT_CGI_CONFIG_FILE); > document_footer(); > return ERROR; > } > > /* read the main configuration file */ > result=read_main_config_file(main_config_file); > if(result==ERROR){ > document_header(FALSE); > main_config_file_error(main_config_file); > document_footer(); > return ERROR; > } > > /* read all object configuration data */ > result=read_all_object_configuration_data(main_config_file,READ_ALL_OBJECT_DATA); > if(result==ERROR){ > document_header(FALSE); > object_data_error(); > document_footer(); > return ERROR; > } > > /* read all status data */ > result=read_all_status_data(DEFAULT_CGI_CONFIG_FILE,READ_ALL_STATUS_DATA); > if(result==ERROR){ > document_header(FALSE); > status_data_error(); > document_footer(); > free_memory(); > return ERROR; > } > > document_header(TRUE); > > /* get authentication information */ > get_authentication_information(?t_authdata); > > if(display_header==TRUE){ > > /* begin top table */ > printf(" \n"); > printf(" \n"); > > /* left column of top table - info box */ > printf(" \n"); > display_info_table("Tactical Status Overview",TRUE,?t_authdata); > printf("\n"); > > /* middle column of top table - log file navigation options */ > printf(" \n"); > printf("\n"); > > /* right hand column of top row */ > printf(" \n"); > printf("\n"); > > /* end of top table */ > printf("\n"); > printf("\n"); > printf(" > > \n"); > > } > > > /* analyze current host and service status data for tac overview */ > analyze_status_data(); > > /* find all hosts that are causing network outages */ > find_hosts_causing_outages(); > > > /* embed sound tag if necessary... */ > if(hosts_unreachable_unacknowledged > 0 && host_unreachable_sound!=NULL) > sound=host_unreachable_sound; > else if(hosts_down_unacknowledged > 0 && host_down_sound!=NULL) > sound=host_down_sound; > else if(services_critical_unacknowledged > 0 && service_critical_sound!=NULL) > sound=service_critical_sound; > else if(services_warning_unacknowledged > 0 && service_warning_sound!=NULL) > sound=service_warning_sound; > else if(services_unknown_unacknowledged==0 && services_warning_unacknowledged==0 && services_critical_unacknowledged==0 && hosts_down_unacknowledged==0 && hosts_unreachable_unacknowledged==0 && normal_sound!=NULL) > sound=normal_sound; > if(sound!=NULL) > printf("",url_media_path,sound); > > > /**** display main tac screen ****/ > display_tac_overview(); > > document_footer(); > > /* free memory allocated to the host outage list */ > free_hostoutage_list(); > > /* free allocated memory */ > free_memory(); > > return OK; > } > > > > > void document_header(int use_stylesheet){ > char date_time[MAX_DATETIME_LENGTH]; > time_t current_time; > time_t expire_time; > > printf("Cache-Control: no-store\n"); > printf("Pragma: no-cache\n"); > printf("Refresh: %d\n",refresh_rate); > > time(?t_time); > get_time_string(?t_time,date_time,(int)sizeof(date_time),HTTP_DATE_TIME); > printf("Last-Modified: %s\n",date_time); > > expire_time=(time_t)0L; > get_time_string(&expire_time,date_time,(int)sizeof(date_time),HTTP_DATE_TIME); > printf("Expires: %s\n",date_time); > > printf("Content-type: text/html\n\n"); > > if(embedded==TRUE) > return; > > printf("\n"); > printf("\n"); > printf("\n"); > > if(use_stylesheet==TRUE) > printf(" > \n",url_stylesheets_path,TAC_CSS); > > printf("\n"); > printf("\n"); > > /* include user SSI header */ > include_ssi_files(TAC_CGI,SSI_HEADER); > > return; > } > > > void document_footer(void){ > > if(embedded==TRUE) > return; > > /* include user SSI footer */ > include_ssi_files(TAC_CGI,SSI_FOOTER); > > printf("\n"); > printf("\n"); > > return; > } > > > int process_cgivars(void){ > char **variables; > int error=FALSE; > int x; > > variables=getcgivars(); > > for(x=0;variables[x]!=NULL;x++){ > > /* do some basic length checking on the variable identifier to prevent buffer overflows */ > if(strlen(variables[x])>=MAX_INPUT_BUFFER-1){ > continue; > } > > /* we found the embed option */ > else if(!strcmp(variables[x],"embedded")) > embedded=TRUE; > > /* we found the noheader option */ > else if(!strcmp(variables[x],"noheader")) > display_header=FALSE; > > /* we recieved an invalid argument */ > else > error=TRUE; > > } > > /* free memory allocated to the CGI variables */ > free_cgivars(variables); > > return error; > } > > > > void analyze_status_data(void){ > servicestatus *temp_servicestatus; > service *temp_service; > hoststatus *temp_hoststatus; > host *temp_host; > int problem=TRUE; > > > /* check all services */ > for(temp_servicestatus=servicestatus_list;temp_servicestatus!=NULL;temp_servicestatus=temp_servicestatus->next){ > > /* see if user is authorized to view this service */ > temp_service=find_service(temp_servicestatus->host_name,temp_servicestatus->description,NULL); > if(is_authorized_for_service(temp_service,?t_authdata)==FALSE) > continue; > > /******** CHECK FEATURES *******/ > > /* check flapping */ > if(temp_servicestatus->flap_detection_enabled==FALSE) > flap_disabled_services++; > else if(temp_servicestatus->is_flapping==TRUE) > flapping_services++; > > /* check notifications */ > if(temp_servicestatus->notifications_enabled==FALSE) > notification_disabled_services++; > > /* check event handler */ > if(temp_servicestatus->event_handler_enabled==FALSE) > event_handler_disabled_services++; > > /* active check execution */ > if(temp_servicestatus->checks_enabled==FALSE) > active_checks_disabled_services++; > > /* passive check acceptance */ > if(temp_servicestatus->accept_passive_service_checks==FALSE) > passive_checks_disabled_services++; > > > /********* CHECK STATUS ********/ > > problem=TRUE; > > if(temp_servicestatus->status==SERVICE_OK || temp_servicestatus->status==SERVICE_RECOVERY){ > if(temp_servicestatus->checks_enabled==FALSE) > services_ok_disabled++; > else > services_ok_unacknowledged++; > services_ok++; > } > > else if(temp_servicestatus->status==SERVICE_WARNING){ > temp_hoststatus=find_hoststatus(temp_servicestatus->host_name); > if(temp_hoststatus!=NULL && (temp_hoststatus->status==HOST_DOWN || temp_hoststatus->status==HOST_UNREACHABLE)){ > services_warning_host_problem++; > problem=FALSE; > } > if(temp_servicestatus->scheduled_downtime_depth>0){ > services_warning_scheduled++; > problem=FALSE; > } > if(temp_servicestatus->problem_has_been_acknowledged==TRUE){ > services_warning_acknowledged++; > problem=FALSE; > } > if(temp_servicestatus->checks_enabled==FALSE){ > services_warning_disabled++; > problem=FALSE; > } > if(problem==TRUE) > services_warning_unacknowledged++; > services_warning++; > } > > else if(temp_servicestatus->status==SERVICE_UNKNOWN){ > temp_hoststatus=find_hoststatus(temp_servicestatus->host_name); > if(temp_hoststatus!=NULL && (temp_hoststatus->status==HOST_DOWN || temp_hoststatus->status==HOST_UNREACHABLE)){ > services_unknown_host_problem++; > problem=FALSE; > } > if(temp_servicestatus->scheduled_downtime_depth>0){ > services_unknown_scheduled++; > problem=FALSE; > } > if(temp_servicestatus->problem_has_been_acknowledged==TRUE){ > services_unknown_acknowledged++; > problem=FALSE; > } > if(temp_servicestatus->checks_enabled==FALSE){ > services_unknown_disabled++; > problem=FALSE; > } > if(problem==TRUE) > services_unknown_unacknowledged++; > services_unknown++; > } > > else if(temp_servicestatus->status==SERVICE_CRITICAL){ > temp_hoststatus=find_hoststatus(temp_servicestatus->host_name); > if(temp_hoststatus!=NULL && (temp_hoststatus->status==HOST_DOWN || temp_hoststatus->status==HOST_UNREACHABLE)){ > services_critical_host_problem++; > problem=FALSE; > } > if(temp_servicestatus->scheduled_downtime_depth>0){ > services_critical_scheduled++; > problem=FALSE; > } > if(temp_servicestatus->problem_has_been_acknowledged==TRUE){ > services_critical_acknowledged++; > problem=FALSE; > } > if(temp_servicestatus->checks_enabled==FALSE){ > services_critical_disabled++; > problem=FALSE; > } > if(problem==TRUE) > services_critical_unacknowledged++; > services_critical++; > } > > else if(temp_servicestatus->status==SERVICE_PENDING){ > if(temp_servicestatus->checks_enabled==FALSE) > services_pending_disabled++; > services_pending++; > } > > > /* get health stats */ > if(temp_servicestatus->status==SERVICE_OK) > total_service_health+=2; > > else if(temp_servicestatus->status==SERVICE_WARNING || temp_servicestatus->status==SERVICE_UNKNOWN) > total_service_health++; > > if(temp_servicestatus->status!=SERVICE_PENDING) > potential_service_health+=2; > > > /* calculate execution time and latency stats */ > if(temp_servicestatus->check_type==SERVICE_CHECK_ACTIVE){ > > total_active_checks++; > > if(min_latency==-1 || temp_servicestatus->latency min_latency=temp_servicestatus->latency; > if(max_latency==-1 || temp_servicestatus->latency>max_latency) > max_latency=temp_servicestatus->latency; > > if(min_execution_time==-1 || temp_servicestatus->execution_time min_execution_time=temp_servicestatus->execution_time; > if(max_execution_time==-1 || temp_servicestatus->execution_time>max_execution_time) > max_execution_time=temp_servicestatus->execution_time; > > total_latency+=temp_servicestatus->latency; > total_execution_time+=temp_servicestatus->execution_time; > } > else > total_passive_checks++; > > > total_services++; > } > > > > /* check all hosts */ > for(temp_hoststatus=hoststatus_list;temp_hoststatus!=NULL;temp_hoststatus=temp_hoststatus->next){ > > /* see if user is authorized to view this host */ > temp_host=find_host(temp_hoststatus->host_name,NULL); > if(is_authorized_for_host(temp_host,?t_authdata)==FALSE) > continue; > > /******** CHECK FEATURES *******/ > > /* check flapping */ > if(temp_hoststatus->flap_detection_enabled==FALSE) > flap_disabled_hosts++; > else if(temp_hoststatus->is_flapping==TRUE) > flapping_hosts++; > > /* check notifications */ > if(temp_hoststatus->notifications_enabled==FALSE) > notification_disabled_hosts++; > > /* check event handler */ > if(temp_hoststatus->event_handler_enabled==FALSE) > event_handler_disabled_hosts++; > > /* active check execution */ > if(temp_hoststatus->checks_enabled==FALSE) > active_checks_disabled_hosts++; > > > /********* CHECK STATUS ********/ > > problem=TRUE; > > if(temp_hoststatus->status==HOST_UP){ > if(temp_hoststatus->checks_enabled==FALSE) > hosts_up_disabled++; > else > hosts_up_unacknowledged++; > hosts_up++; > } > > else if(temp_hoststatus->status==HOST_DOWN){ > if(temp_hoststatus->scheduled_downtime_depth>0){ > hosts_down_scheduled++; > problem=FALSE; > } > if(temp_hoststatus->problem_has_been_acknowledged==TRUE){ > hosts_down_acknowledged++; > problem=FALSE; > } > if(temp_hoststatus->checks_enabled==FALSE){ > hosts_down_disabled++; > problem=FALSE; > } > if(problem==TRUE) > hosts_down_unacknowledged++; > hosts_down++; > } > > else if(temp_hoststatus->status==HOST_UNREACHABLE){ > if(temp_hoststatus->scheduled_downtime_depth>0){ > hosts_unreachable_scheduled++; > problem=FALSE; > } > if(temp_hoststatus->problem_has_been_acknowledged==TRUE){ > hosts_unreachable_acknowledged++; > problem=FALSE; > } > if(temp_hoststatus->checks_enabled==FALSE){ > hosts_unreachable_disabled++; > problem=FALSE; > } > if(problem==TRUE) > hosts_unreachable_unacknowledged++; > hosts_unreachable++; > } > > else if(temp_hoststatus->status==HOST_PENDING){ > if(temp_hoststatus->checks_enabled==FALSE) > hosts_pending_disabled++; > hosts_pending++; > } > > /* get health stats */ > if(temp_hoststatus->status==HOST_UP) > total_host_health++; > > if(temp_hoststatus->status!=HOST_PENDING) > potential_host_health++; > > total_hosts++; > } > > > /* calculate service health */ > if(potential_service_health==0) > percent_service_health=0.0; > else > percent_service_health=((double)total_service_health/(double)potential_service_health)*100.0; > > /* calculate host health */ > if(potential_host_health==0) > percent_host_health=0.0; > else > percent_host_health=((double)total_host_health/(double)potential_host_health)*100.0; > > /* calculate latency */ > if(total_latency==0L) > average_latency=0.0; > else > average_latency=((double)total_latency/(double)total_active_checks); > > /* calculate execution time */ > if(total_execution_time==0L) > average_execution_time=0.0; > else > average_execution_time=((double)total_execution_time/(double)total_active_checks); > > return; > } > > > > > /* determine what hosts are causing network outages */ > void find_hosts_causing_outages(void){ > hoststatus *temp_hoststatus; > hostoutage *temp_hostoutage; > host *temp_host; > > /* user must be authorized for all hosts in order to see outages */ > if(is_authorized_for_all_hosts(?t_authdata)==FALSE) === message truncated === --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From slender at rocketmail.com Thu Feb 6 23:09:07 2003 From: slender at rocketmail.com (Paul Neilson) Date: Thu, 6 Feb 2003 14:09:07 -0800 (PST) Subject: Inverted Service Check Message-ID: <20030206220907.78439.qmail@web13907.mail.yahoo.com> How do invert a service check? I have several NT servers which normally have the FTP service turned off, but occassionally a sysadmin will turn FTP on so that he can receive some files from someone else (usually movies or MP#s of course). That wouldn't be bad, except that they usually leave FTP turned on with no security. How do I do check_ftp where off is the "normal" status and only raise an alarm if the service is turned on? Paul Neilson Development & Support Manager GMB Research & Development __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From rburnson at cps.k12.il.us Thu Feb 6 23:26:51 2003 From: rburnson at cps.k12.il.us (Burnson, Richard) Date: Thu, 6 Feb 2003 16:26:51 -0600 Subject: Inverted Service Check Message-ID: Use the negate wrapper: =================== negate (nagios-plugins 1.3.0-beta2) 1.3 The nagios plugins come with ABSOLUTELY NO WARRANTY. You may redistribute copies of the plugins under the terms of the GNU General Public License. For more information about these matters, see the file named COPYING. Copyright (c) 2002 Karl DeBisschop Negates the status of a plugin (returns OK for CRITICAL, and vice-versa). Usage: negate [-t timeout] negate (-h | --help) for detailed help negate (-V | --version) for version information Options: -t, --timeout=INTEGER Terminate test if timeout limit is exceeded (default: 9) [keep this less than the plugin timeout to retain CRITICAL status] This plugin is a wrapper to take the output of another plugin and invert it. If the wrapped plugin returns STATE_OK, the wrapper will return STATE_CRITICAL. If the wrapped plugin returns STATE_CRITICAL, the wrapper will return STATE_OK. Otherwise, the output state of the wrapped plugin is unchanged. Send email to nagios-users at lists.sourceforge.net if you have questions regarding use of this software. To submit patches or suggest improvements, send email to nagiosplug-devel at lists.sourceforge.net ====================== HTH, Richard -----Original Message----- From: Paul Neilson [mailto:slender at rocketmail.com] Sent: Thursday, February 06, 2003 4:09 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Inverted Service Check How do invert a service check? I have several NT servers which normally have the FTP service turned off, but occassionally a sysadmin will turn FTP on so that he can receive some files from someone else (usually movies or MP#s of course). That wouldn't be bad, except that they usually leave FTP turned on with no security. How do I do check_ftp where off is the "normal" status and only raise an alarm if the service is turned on? Paul Neilson Development & Support Manager GMB Research & Development __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From cquinn at excitenetwork.com Thu Feb 6 23:36:15 2003 From: cquinn at excitenetwork.com (Chris Quinn) Date: Thu, 6 Feb 2003 17:36:15 -0500 Subject: check per minute Message-ID: <9E2EF30E94F5C541A68F25F8AA8825BC341AFF@MARS.us.iwon.com> I am currently using Nagios-1.0 with Redhat8.0 I need Nagios to check more per minute than it currently does. inter_check_delay_method=s service_interleave_factor=1 max_concurrent_checks=0 service_reaper_frequency=2 Time Frame Checks Completed <= 1 minute: 669 (40.1%) <= 5 minutes: 1669 (100.0%) <= 15 minutes: 1669 (100.0%) <= 1 hour: 1669 (100.0%) Since program start: 1669 (100.0%) The CPU on the machine is not completely used, and I would like it to be :) Any help would be greatly appreciated. Thanks, Chris Quinn ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jyoung at geekbomb.com Thu Feb 6 23:48:43 2003 From: jyoung at geekbomb.com (Jonathan Young) Date: Thu, 6 Feb 2003 14:48:43 -0800 Subject: Status map question Message-ID: <20030206224843.GB20966@nwgeeks.com> Is there a way to set a particular host to be in the top of the heirarchy, ie - where the nagios process runs? That server already has a parent ( the switch it's on ) and I can't set the server as the top level parent of that switch. -- .------- ----- --- -- - * - -- --- ----- -------. | jonathan young jyoung at geekbomb.com ! `------------------------------ --- -- - -- ' ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Stanley.Hopcroft at IPAustralia.Gov.AU Fri Feb 7 00:06:50 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Fri, 7 Feb 2003 10:06:50 +1100 Subject: FW: Nagios to monitor MQSeries In-Reply-To: <3E42CDC5.20204@quadrix.com>; from russell@quadrix.com on Thu, Feb 06, 2003 at 04:04:05PM -0500 References: <3E42CDC5.20204@quadrix.com> Message-ID: <20030207100637.A12076@IPAustralia.Gov.AU> Dear Ladies and Gentlemen, I wouldn't get too excited about this, > >>when you install the MQSeries client (with developer > >>support), you get some sample programs. One of these sample ... I think the key statement is 'the MQSeries client (with developer support)'. MQSeries is a commercial multi-platform product that ships with different libraries including a developer API for each platform. I suspect you need these libraries for the scripts to be of any use; the libraries would have to be installed on the Nag host if you want a local plugin using that script. Obviously this a problem for Nag hosts that have no MQ suppport such as FreeBSD/NetBSD/OpenBSD. If you are a MQ Series site and have the appropriate MQ libraries available and installed on your Nag monitor, then sure, give the script a crack. Otherwise, you may do what my employer does (an AIX/MQ site). A DBA colleague wrote an application using the libraries to send a message to the the channels of interest that the channel then loops back. The application exits after writing a timestamp and an MQ return code (related to whether or not the mesage came back) into an NFS exported file that Nag can read (although NCSA would have been an option had I known of it then). Or use the IBM script on a host fitted with the libraries in a 'plugin' that sends the result to Nag in someway, or have Nag execute the script on that host by SSH. HTH, Yours sincerely. On Thu, Feb 06, 2003 at 04:04:05PM -0500, Russell Scibetti wrote: > Can you share the shell script with us? We're looking into using the > same thing. > > Russell > > Volker.Aust at premiere.de wrote: > > >Sorry, I have forgotten the list... > > > >>-----Original Message----- > >>From: Aust, Volker, PRE > >>Sent: Thursday, February 06, 2003 1:06 PM > >>To: 'Detlef.Knop at gmx.de' > >>Subject: RE: [Nagios-users] Nagios to monitor MQSeries > >> > >> > >>Hi Detlef, > >> > >>when you install the MQSeries client (with developer > >>support), you get some sample programs. One of these sample > >>programs is "amqsailq", which lists the length of all > >>MQ-queues of a server. You can use "amqsailq" local or > >>remote. When you use this program (or a mofified version, > >>that only checks important queues like we do (a colleague has > >>modified some of the sample programs)) remote, you can make > >>two tests with one call: > >> > >>- check the connectivity to the MQ-server and the -service > >> > >>- check the length of some important queues (too many, too few, ...) > >> > >>I have wraped the program in a shell script to generate the > >>Nagios stuff (return-code and output). > >> > >>Hope this helps. > >> > >>-vol > >> > >>>-----Original Message----- > >>>From: Detlef.Knop at gmx.de [mailto:Detlef.Knop at gmx.de] > >>>Sent: Thursday, February 06, 2003 7:40 AM > >>>To: nagios-users at lists.sourceforge.net > >>>Subject: [Nagios-users] Nagios to monitor MQSeries > >>> > >>> > >>>Dear all, > >>> > >>>I would like to check whether MQSeries is available as a > >>>service on several > >>>of my hosts. My first approach was to use the check_tcp > >>>plugin which from my > >>>point of view worked fine. But the people looking after > >>>MQSeries on these > >>>machines came back to me and complained that each time the > >>>plugin ran MQSeries > >>>reported errors on these systems (two errors per check) > >>>because MQSeries > >>>detects the incoming connection and wants to receive proper > >>>data, but then the > >>>connection is closed. > >>> > >>>Has anyone ever tried to do the same and found a solution? > >>>Maybe there is a > >>>way using passive checks, or we might have to look into the > >>>possibility to > >>>write a plugin. > >>> > >>>Kind regards > >>> > >>>Detlef Knop > >>> > >>>-- > >>>+++ GMX - Mail, Messaging & more http://www.gmx.net +++ > >>>NEU: Mit GMX ins Internet. Rund um die Uhr f?r 1 ct/ Min. surfen! > >>> > >>> > >>> > >>>------------------------------------------------------- > >>>This SF.NET email is sponsored by: > >>>SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > >>>http://www.vasoftware.com > >>>_______________________________________________ > >>>Nagios-users mailing list > >>>Nagios-users at lists.sourceforge.net > >>>https://lists.sourceforge.net/lists/listinfo/nagios-users > >>> > > > > > >------------------------------------------------------- > >This SF.NET email is sponsored by: > >SourceForge Enterprise Edition + IBM + LinuxWorld =omething 2 See! > >http://www.vasoftware.com > >_______________________________________________ > >Nagios-users mailing list > >Nagios-users at lists.sourceforge.net > >https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > -- > Russell Scibetti > Quadrix Solutions, Inc. > http://www.quadrix.com > (732) 235-2335, ext. 7038 > > -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From craig.luke at kualo.com Fri Feb 7 00:31:23 2003 From: craig.luke at kualo.com (Craig Luke) Date: Thu, 6 Feb 2003 23:31:23 -0000 Subject: Ping monitor problems Message-ID: <000f01c2ce37$dcbf6890$3ed3de89@craig> Hi all, I am new to Nagios, and have a problem which is probably due to some small configuration file problem. I now have the service working, and most of the interface functions correctly. My problem is that the status for PING on all the servers we are monitoring are showing as 'UNKNOWN', and are highlighted in orange. Can anyone shed some light as to what I might have done wrong? This is the status output for the ping on one of our servers: ---------------------------------------- Current Status: UNKNOWN Status Information: /bin/ping -n -U -c 5 server.domain.com Current Attempt: 1/3 State Type: HARD Last Check Type: ACTIVE Last Check Time: 02-06-2003 23:24:32 Status Data Age: 0d 0h 2m 14s Next Scheduled Active Check: 02-06-2003 23:29:32 Latency: < 1 second Check Duration: < 1 second Last State Change: 02-06-2003 01:17:43 Current State Duration: 0d 22h 9m 3s Last Service Notification: N/A Current Notification Number: 0 Is This Service Flapping? N/A Percent State Change: N/A In Scheduled Downtime? NO Last Update: 02-06-2003 23:26:35 Service Checks: ENABLED Passive Checks: ENABLED Service Notifications: ENABLED Event Handler: ENABLED Flap Detection: ENABLED ---------------------------------------- Thank you in advance for any help you might be able to give. Best regards, Craig Luke. --------------------- Craig Luke Operations Director craig.luke at kualo.com Kualo Ltd. Danesbury House 17 Sydney Road London EN2 6TS United Kingdom Freephone: +44 800 138 3235 Freefax: +44 800 138 3236 24/7 Web Support: http://helpdesk.kualo.com Kualo Community: http://forums.kualo.com Important: This e-mail may contain confidential information. If you are not the intended recipient it may be unlawful for you to read, copy, distribute, disclose or otherwise use information contained in it. If this is the case, please contact us immediately by e-mail: mailadmin at kualo.com ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From don_schultz at panvera.com Fri Feb 7 00:38:50 2003 From: don_schultz at panvera.com (Don Schultz) Date: Thu, 6 Feb 2003 17:38:50 -0600 Subject: workstations Message-ID: <72CF2973A7532D478D85271D40F608FCC3F964@mercury.panvera.com> Are any of you checking workstations? Just asking for fun to see if anyone is. Thanks, -- Don Schultz | Panvera Corporation Unix Administrator | 501 Charmany Drive ph: 608.204.5060 | Madison, WI 53719 fax: 608.204.5061 | ------------------------------------------ pgp: B0 F8 40 8F 66 E2 3B CF 5B BE F4 8C F8 75 25 B9 04 AF 67 A3 ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From chris at xecu.net Fri Feb 7 01:40:18 2003 From: chris at xecu.net (Chris McGee) Date: Thu, 6 Feb 2003 19:40:18 -0500 (EST) Subject: Ping monitor problems In-Reply-To: <000f01c2ce37$dcbf6890$3ed3de89@craig> References: <000f01c2ce37$dcbf6890$3ed3de89@craig> Message-ID: What check command are you using for the service, check_ping? Make sure you add in the additional arguments to that command otherwise it will not register them all as unknown because it has no thresholds to compare to. Look at the sample services.cfg file that comes with the distribution. The line in your serviced file should look something like the following: check_command check_ping!100.0,20%!500.0,60% Also, if you do a '/pathtonagios/libexec/check_ping -h' you should get the following explaining what arguments you need with the check command: Usage: check_ping -H -w ,%% -c ,%% [-p packets] [-t timeout] [-L] check_ping (-h | --help) for detailed help check_ping (-V | --version) for version information Options: -H, --hostname=HOST host to ping -w, --warning=THRESHOLD warning threshold pair -c, --critical=THRESHOLD critical threshold pair -p, --packets=INTEGER number of ICMP ECHO packets to send (Default: 5) -t, --timeout=INTEGER optional specified timeout in second (Default: 10) -L, --link Sorry for the long post, but I think this will help you fix your problem. Chris On Thu, 6 Feb 2003, Craig Luke wrote: > Hi all, > > I am new to Nagios, and have a problem which is probably due to some > small configuration file problem. > > I now have the service working, and most of the interface functions > correctly. My problem is that the status for PING on all the servers we > are monitoring are showing as 'UNKNOWN', and are highlighted in orange. > Can anyone shed some light as to what I might have done wrong? > > This is the status output for the ping on one of our servers: > > ---------------------------------------- > Current Status: UNKNOWN > Status Information: /bin/ping -n -U -c 5 server.domain.com > Current Attempt: 1/3 > State Type: HARD > Last Check Type: ACTIVE > Last Check Time: 02-06-2003 23:24:32 > Status Data Age: 0d 0h 2m 14s > Next Scheduled Active Check: 02-06-2003 23:29:32 > Latency: < 1 second > Check Duration: < 1 second > Last State Change: 02-06-2003 01:17:43 > Current State Duration: 0d 22h 9m 3s > Last Service Notification: N/A > Current Notification Number: 0 > Is This Service Flapping? N/A > Percent State Change: N/A > In Scheduled Downtime? NO > Last Update: 02-06-2003 23:26:35 > > > Service Checks: ENABLED > Passive Checks: ENABLED > Service Notifications: ENABLED > Event Handler: ENABLED > Flap Detection: ENABLED > ---------------------------------------- > > Thank you in advance for any help you might be able to give. > > Best regards, > > Craig Luke. > > --------------------- > Craig Luke > Operations Director > craig.luke at kualo.com > > Kualo Ltd. > Danesbury House > 17 Sydney Road > London > EN2 6TS > United Kingdom > > Freephone: +44 800 138 3235 > Freefax: +44 800 138 3236 > > 24/7 Web Support: http://helpdesk.kualo.com > Kualo Community: http://forums.kualo.com > > Important: This e-mail may contain confidential information. If you are > not the intended recipient it may be unlawful for you to read, copy, > distribute, disclose or otherwise use information contained in it. > > If this is the case, please contact us immediately by e-mail: > mailadmin at kualo.com > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Chris McGee 301-682-9972 Xecunet, LLC www.xecu.net xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Dialup * Webhosting * E-Commerce * High-Speed Access ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Stanley.Hopcroft at IPAustralia.Gov.AU Fri Feb 7 02:11:22 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Fri, 7 Feb 2003 12:11:22 +1100 Subject: Nagios to monitor MQSeries In-Reply-To: <3319.1044513574@www48.gmx.net>; from Detlef.Knop@gmx.de on Thu, Feb 06, 2003 at 07:39:34AM +0100 References: <3319.1044513574@www48.gmx.net> Message-ID: <20030207121115.B12076@IPAustralia.Gov.AU> Dear Sir, I would like to attempt a summary of options available for having Nag/Netsaint monitor mysteron Service X (like MQ series for example). 1 Service X has a non portable library with a public API - some programmatic way of interacting with it. eg Lotus Notes, MQ Series ==> write a non portable (since the libraries probably aren't) specific check of X using the library + then either 1.1 if the check follows the plugin developer guidelines wrt to output and return codes (ie 0 = Ok, 2 = Critical, etc), have Nag execute it by SSH or by NRPE 1.2 Otherwise export the check results to Nagios with techniques such as 1.2.1 Passive service checks: NCSA 1.2.2 Active service checks: export a file containing the check output (by NFS, or Samba) and have the Nag active check read that file and interpret it. 2 Service X has a portable library but you don't want to use it. Service X has a public or near public protocol eg DHCP, SMB, Oracle 2.1 Write a plugin that sends the same packets as are exchanged between the parties in a normal interaction. Return Ok if all the expected packets are received in a timely manner, Critical otherwise. Traditionally what plugin writers do in this case is use a public client like (smbclient or tnsping) that is controlled by (in effect) popen(). However, a better option is to to call the library dfunctions irectly if you have the choice (ie the libraries are readily available). Public libraries that also have bindings to 'scripting' ( the modern name for ultra high level languages) languages like Python, Ruby and Perl are especially good like this because the plugin writer can exploit the power of these languages to simplify development. 3 Service X has no library, and no public on the wire protocol eg Citrix metaframe 3.1 Do what Ed Rollston did for the check_citrix plugin and collect the frames from a real client and have your plugin synthesise and send those frames as if it were the client. There should be more tools around to help with this. However, some protocols still are alien (Citirx ICA for example) and even the plugin writers best friend, ethereal (thank you, thank you ethereal team) is no help whatsoever. What is needed are tools that . analyse packets . synthesise them -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From karl at debisschop.net Fri Feb 7 02:06:20 2003 From: karl at debisschop.net (Karl DeBisschop) Date: 06 Feb 2003 20:06:20 -0500 Subject: Colors In-Reply-To: <1044566733.28467.19.camel@operacao> References: <20030206210806.49458.qmail@web21508.mail.yahoo.com> <1044566733.28467.19.camel@operacao> Message-ID: <1044579979.10964.4.camel@localhost.localdomain> On Thu, 2003-02-06 at 16:25, Henrique leandro wrote: > so, i don't need change de C code to change colors ? > Only files .css ? > > i'll try it. Be sure to let us know if it doesn't work. Way back when, the CSS files were designed so colors could easily be changed to accommodate red-green color blindness. If any bit rot has set in, it would be good to know. (I fully expect it to work, but from an accessibility point of view its actually more important that it initially appears.) The nice thing about the CSS solution is that a NOC can keep the standard colors which work well due to stop-light conditioning, but end users can use CSS to override the color for their own displays. -- Karl ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From andrew at anvil.org Fri Feb 7 02:37:53 2003 From: andrew at anvil.org (Andrew Meredith) Date: Fri, 07 Feb 2003 01:37:53 +0000 Subject: host - a service References: <20030204035141.GA31963@cannonfodder.org> Message-ID: <3E430DF1.6030200@anvil.org> Hi Jason, I have been scouting around that area of the code myself just recently, after trying to do something to yourself. As far as I can tell, there is nothing that will do exactly what you want, but it will get quite close. You will still have the service in the system, but it will be switched off ... the same as if you didn't mention the lack of this service on this particular host and then switched it off through the interface. There are 3 parameter names that seem to have something to do with this function. enable_active_checks -------------------- $ fgrep -rl enable_active_checks . ./html/docs/distributed.html This appears to be something that is either going to be and hasn't yet, or used to be and hasn't been trimmed out of the docs yet .. either that or its a typo :) active_checks_enabled --------------------- This is service template parameter that has support all through the template reading and writing stuff and in the examples and convertcfg program. However .. checks_enabled -------------- ... is what it becomes when an xodtemplate_service structure is used to initialise a service structure using set_service_state_information() in xdata/xrddefault.c:593. (It is also a parameter at the host level where it keeps it's name the whole way through and would seem to be involved in host level checks.) Why have just gone through all this ? .. two reasons. 1 - I would be very grateful if someone who actually has a clue (unlike myself) would please have a look through the above and confirm whether I have got it right or not. The name change caught me right out until I spotted that the set_service_state_information() argument named active_checks_enabled was given the value of a variable called checks_enabled in xdata/xrddefault.c .. which given that checks_enabled is also a parameter in the host object made things a little confusing for a bear of very little brain. 2 - If this is true then (in theory .. I think) you should just be able to explicitly reference the service description by hostname and service name and then insert additional parameters of "active_checks_enabled=0" and "passive_checks_enabled=0" .. I think this should over-ride the value inherited from the hostgroup when that service structure is actually created in memory and render that service inoperative. The downside would be that it still shows up in the UI, but has no effect on anything. This as I say is not really what you are after, but might be a reasonable stop-gap until something tidier can be done in version 2.0 ... how about a service parameter called "vanish" (or for the LinuxHeads "mrproper" ;) that causes that service structure to be deleted. Having said all that, I haven't got a 1.0 test system on which I can try it right now, so it may well turn out that this is flexing the inheritance mechanism a little bit too hard. BTW .. If the developers are watching, I would be quite willing to go through the CVS version and rename the service structure variable from checks_enabled to active_checks_enabled in the code. I know that this would help me understand the logic a little better .. and I suspect that future newcomers might also be a little confused by the sudden change of name. Cheers Andy M Jason Burnett wrote: > is there any way to tell a host to ignore one of the tests assigned to > it's hostgroup? > example: > > define hostgroup{ > hostgroup_name neospire-virtuals-apache > alias Neospire Apache & Zeus webservers > contact_groups admins > members one,two,linux1 > } > define service{ > hostgroup_name neo-vs-web-apache > service_description SSH > } > > > define host{ > #server only runs telnet > host_name linux1 > .... > check_command **IGNORE SSH** > } > What I am looking for is an easy way to standardize tests across groups, > but as always there are exceptions and I need to be able to tell a > certain host to ignore certain tests inherited from it's group. > > oh and before anyone starts chastising me, I dont actually run telnet on > any of my servers. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Stanley.Hopcroft at IPAustralia.Gov.AU Fri Feb 7 06:06:21 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Fri, 7 Feb 2003 16:06:21 +1100 Subject: Feture Req: checklist style multiple service selection In-Reply-To: <85256CC4.005CA7A9.00@mailhost.planalytics.com>; from jmarquart@planalytics.com on Wed, Feb 05, 2003 at 11:52:01AM -0500 References: <85256CC4.005CA7A9.00@mailhost.planalytics.com> Message-ID: <20030207160615.G12076@IPAustralia.Gov.AU> Dear Sir, I am writing to thank you for your question and share what was told me, On Wed, Feb 05, 2003 at 11:52:01AM -0500, jmarquart at planalytics.com wrote: > > > > > > Something that I would greatly appreciate in my daily duties, is the ability to > select sets of services from a host (or ideally perhaps multiple services from > multiple hosts) and manipulate then in a group as i might individually. > Unfortunately, there is only a 50% solution: it allows you to act on all hosts in a host group and or all services on a host, but not on multiple services that are not on the same host or mutiple randomly selected services. 1 To enable or disable notifications or checks of all services on a host, see the corresponding icons in the extinfo CGI (the panel that has the complete details about a host or service) 2 To enable or disable notifications or checks of all hosts on all hosts in a host group. 2.1 From the top level CGIs (status summary, status overview etc) 2.1.1 select (click) the short name - that in parentheseis [()] - of the host group. This should show a panel like Hostgroup Information Last Updated: Fri Feb 7 16:04:36 EST 2003 Updated every 90 seconds Nagios? - www.nagios.org Logged in as anwsmh View Status Detail For This Hostgroup View Status Overview For This Hostgroup View Status Grid For This Hostgroup View Availability For This Hostgroup Hostgroup Hosts & Routers for Mainframe (CSC Mainframe) Hostgroup Commands Schedule Downtime For All Hosts In This Hostgroup Schedule downtime for all hosts in this hostgroup Schedule Downtime For All Services In This Hostgroup Schedule downtime for all services in this hostgroup Enable Notifications For All Hosts In This Hostgroup Enable notifications for all hosts in this hostgroup Disable Notifications For All Hosts In This Hostgroup Disable notifications for all hosts in this hostgroup Enable Notifications For All Services In This Hostgroup Enable notifications for all services in this hostgroup Disable Notifications For All Services In This Hostgroup Disable notifications for all services in this hostgroup Enable Checks Of All Services In This Hostgroup Enable checks of all services in this hostgroup Disable Checks Of All Services In This Hostgroup Disable checks of all services in this hostgroup (The URL is /cgi-bin/extinfo.cgi?type=5&hostgroup=HostGroupName) 2.1.2 select the approriate action. HTH, Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Fredrik.Wanglund at datavis.se Fri Feb 7 07:33:24 2003 From: Fredrik.Wanglund at datavis.se (=?iso-8859-1?Q?Fredrik_W=E4nglund?=) Date: Fri, 7 Feb 2003 07:33:24 +0100 Subject: Feature request: alias for an service Message-ID: <9EA0F1554816EB499A4B1136B80E8DE27804B1@storevis.datavis.se> Should it be possible to allow the 'alias' keyword in a service-definition and to show it on the service-information page? I have hosts where different people are responible for different services. It would be great if I could see the name of that persion when I looked at a service... /FredrikW ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From bliwanag at yahoo.com Fri Feb 7 07:42:27 2003 From: bliwanag at yahoo.com (bernie liwanag) Date: Thu, 6 Feb 2003 22:42:27 -0800 (PST) Subject: check_nt plugins Message-ID: <20030207064227.51017.qmail@web40602.mail.yahoo.com> I would like to ask why does the warning and critical option in check_nt nagios plugins wont work? It only works to verify my disk space. Below is my sample command: ./check_nt -H -v USEDDISKSPACE -w 50 -c 60 -l c output: c:\ - total: 4.00 Gb - used: 3.34 Gb (83%) - free 0.66 Gb (17%) Eventhough I increase or decrease the value of -w and -c , it doesn't have an effect. Thanks Bernie __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jasmine.chua at securecirt.com Fri Feb 7 17:07:10 2003 From: jasmine.chua at securecirt.com (Jasmine) Date: Fri, 7 Feb 2003 16:07:10 +0000 Subject: Distributed checking (part 2) In-Reply-To: <3E420844.7000407@mindsw.com> References: <20030205190117.GA11410@cannonfodder.org> <200302061302.17747.jasmine.chua@securecirt.com> <3E420844.7000407@mindsw.com> Message-ID: <200302071607.16016.jasmine.chua@securecirt.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi there thanks for replying Erm I think I have not presented my problem properly and you have misinterpreted it. The problem that I am facing is that my distributed monitoring server is not supposed to check its own web services like SSH. I have configured it to return critical status "ERROR: checked actively by distributed server!" if it does. I want my central monitoring server to check these services actively. However, after I configured the service as passive on the distributed server, it still seems to check actively which I cant see why. Below is a snippet of my service definition. On the Central monitoring server define service{ host_name distributed monitoring server A service_description SSH check_command check_ssh active_checks_enabled 1 passive_checks_enabled 0 parallelize_check 1 obsess_over_service 0 check_freshness 0 max_check_attempts 3 normal_check_interval 3 retry_check_interval 2 check_period 24x7 notification_interval 0 notification_period 24x7 notification_options u,c,r contact_groups admin } On the Distributed monitoring server define service{ host_name distributed monitoring server A service_description SSH check_command check_error_active active_checks_enabled 0 passive_checks_enabled 0 parallelize_check 0 obsess_over_service 0 check_freshness 0 max_check_attempts 3 normal_check_interval 1 retry_check_interval 1 check_period none notification_interval 10 notification_period 24x7 notification_options n contact_groups admin } Jasmine On Thursday 06 February 2003 07:01, Atul Gosain wrote: > Hi > > The problem is simple. > U have check_freshness variable set to 1. The effect of this is that > whenever the passive service results does not reach nagios for some time > (freshness_threshold ), it considers the result as stale and starts > checking actively for that service. If u want that active checks are not > executed when passive results are stale, then disable check_freshness > variable. > Just tell me in case ur problem is solved. > > Thanks > Atul > > Jasmine wrote: > >-----BEGIN PGP SIGNED MESSAGE----- > >Hash: SHA1 > > > >HI all.. i m still having this problem sorry. i thought i made a config > >mistake, but that does not solve the problem. > > > >>>just a note that I am having about the same problem as you. Anyone has > >>>any ideas? > >>> > >>>On Wednesday 05 February 2003 19:01, Jason Burnett wrote: > >>>>o.k. I am using the distributed method with passive checks to monitor > >>>>some hosts I have behind a firewall that I dont want to punch holes in. > >>>>For some reason my central nagios server keeps running active checks on > >>>>the hosts even though I have that disabled on a per service instance. > >>>>So I end up with the service up when it gets the info via the passive > >>>>tests then it goes critical when the central server tries to check it > >>>>with an active test. Here is the service config from the central > >>>>server: > >>>> > >>>>define service{ > >>>> host_name pinky > >>>> service_description SSH > >>>> check_command check_ssh > >>>> max_check_attempts 2 > >>>> normal_check_interval 5 > >>>> retry_check_interval 5 > >>>> passive_checks_enabled 1 > >>>> active_checks_enabled 0 > >>>> check_period 24x7 > >>>> flap_detection_enabled 1 > >>>> process_perf_data 1 > >>>> retain_status_information 1 > >>>> retain_nonstatus_information 1 > >>>> notification_interval 1 > >>>> notification_period 24x7 > >>>> notification_options w,u,c,r > >>>> notifications_enabled 1 > >>>> check_freshness 1 > >>>> freshness_threshold 180 > >>>> contact_groups admins > >>>>} > >>> > >>>-- > >> > >>-- > > > >- -- > >- -- > >-----BEGIN PGP SIGNATURE----- > >Version: GnuPG v1.2.1 (GNU/Linux) > > > >iD8DBQE+QlzYNgvTa7Hj2AURAsnYAJ0ZYWr9gecenetL1yZqC1E2Eh00ogCgriLV > >lMIct+YBKB/6ZQUmDmKe6w8= > >=q+Rf > >-----END PGP SIGNATURE----- > > > > > > > >------------------------------------------------------- > >This SF.NET email is sponsored by: > >SourceForge Enterprise Edition + IBM + LinuxWorld > > http://www.vasoftware.com _______________________________________________ > >Nagios-users mailing list > >Nagios-users at lists.sourceforge.net > >https://lists.sourceforge.net/lists/listinfo/nagios-users - -- - -- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+Q9myNgvTa7Hj2AURAp4EAKCtPdcWiL720gfg34nA9ZrUSi653gCgpEpG MjhXu1zMd26PzSuxN/cUQT0= =upWA -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Volker.Aust at premiere.de Fri Feb 7 10:03:36 2003 From: Volker.Aust at premiere.de (Volker.Aust at premiere.de) Date: Fri, 7 Feb 2003 10:03:36 +0100 Subject: FW: Nagios to monitor MQSeries Message-ID: I have talked about IBM MQSeries and I never said, that it was not an proprietary product. I do not check MQ from the Nagios host (Solaris 8 x86). I call my script (which calls a modified sample program) through NRPE on a Solaris 9 Sparc host with a MQ Client: $ pkginfo -l | fgrep -i mq PKGINST: mqm NAME: WebSphere MQ Client for Sun Solaris $ ls -l /opt/mqm/samp/amqsailq.c -r--r--r-- 1 mqm mqm 19373 Jun 14 2002 /opt/mqm/samp/amqsailq.c The colleague have found/modified/written a program "queuedeep", that queries the length of a single queue from the MQ-server. I have wraped this program in a shell script to generate the error-code/output for Nagios. -vol > -----Original Message----- > From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] > Sent: Thursday, February 06, 2003 7:11 PM > To: 'wim at hsmade.com'; Aust, Volker, PRE > Cc: nagios-users at lists.sourceforge.net > Subject: RE: FW: [Nagios-users] Nagios to monitor MQSeries > > > MQSeries is similar to but different than SonicMQ. The > latter is a JMS > product by Sonic Software. The former is an IBM product > using a proprietary > standard. > > We have both here; I wouldn't mind monitoring both of these natively. > > Hm. We don't seem to have the 'amqsailq' program. What's > the default path > to this? I didn't find it under /opt/mqm nor under /usr (on > Solaris8). > > $ pkginfo -l | grep -i mq > PKGINST: mqjava > DESC: MQSeries classes for Java and MQSeries classes > for Java Message > Service > PKGINST: mqm > NAME: MQSeries for Sun Solaris 2 > PKGINST: mqm-upd03 > NAME: MQSeries for Sun Solaris 2 - U478291 > PKGINST: mqm-upd05 > NAME: MQSeries for Sun Solaris 2 - U481514 > > jc > > > -----Original Message----- > > From: Wim Fournier [mailto:wim at hsmade.com] > > Sent: Thursday, February 06, 2003 10:38 AM > > To: Volker.Aust at premiere.de > > Cc: nagios-users at lists.sourceforge.net > > Subject: Re: FW: [Nagios-users] Nagios to monitor MQSeries > > > > > > Are you talking about Sonic MQ here? > > > > > > > > > Sorry, I have forgotten the list... > > > > > >> -----Original Message----- > > >> From: Aust, Volker, PRE > > >> Sent: Thursday, February 06, 2003 1:06 PM > > >> To: 'Detlef.Knop at gmx.de' > > >> Subject: RE: [Nagios-users] Nagios to monitor MQSeries > > >> > > >> > > >> Hi Detlef, > > >> > > >> when you install the MQSeries client (with developer > > >> support), you get some sample programs. One of these sample > > >> programs is "amqsailq", which lists the length of all > > >> MQ-queues of a server. You can use "amqsailq" local or > > >> remote. When you use this program (or a mofified version, > > >> that only checks important queues like we do (a colleague has > > >> modified some of the sample programs)) remote, you can make > > >> two tests with one call: > > >> > > >> - check the connectivity to the MQ-server and the -service > > >> > > >> - check the length of some important queues (too many, too > > few, ...) > > >> > > >> I have wraped the program in a shell script to generate the > > >> Nagios stuff (return-code and output). > > >> > > >> Hope this helps. > > >> > > >> -vol > > >> > > >> > -----Original Message----- > > >> > From: Detlef.Knop at gmx.de [mailto:Detlef.Knop at gmx.de] > > >> > Sent: Thursday, February 06, 2003 7:40 AM > > >> > To: nagios-users at lists.sourceforge.net > > >> > Subject: [Nagios-users] Nagios to monitor MQSeries > > >> > > > >> > > > >> > Dear all, > > >> > > > >> > I would like to check whether MQSeries is available as a > > >> > service on several > > >> > of my hosts. My first approach was to use the check_tcp > > >> > plugin which from my > > >> > point of view worked fine. But the people looking after > > >> > MQSeries on these > > >> > machines came back to me and complained that each time the > > >> > plugin ran MQSeries > > >> > reported errors on these systems (two errors per check) > > >> > because MQSeries > > >> > detects the incoming connection and wants to receive proper > > >> > data, but then the > > >> > connection is closed. > > >> > > > >> > Has anyone ever tried to do the same and found a solution? > > >> > Maybe there is a > > >> > way using passive checks, or we might have to look into the > > >> > possibility to > > >> > write a plugin. > > >> > > > >> > Kind regards > > >> > > > >> > Detlef Knop > > >> > > > >> > -- > > >> > +++ GMX - Mail, Messaging & more http://www.gmx.net +++ > > >> > NEU: Mit GMX ins Internet. Rund um die Uhr f?r 1 ct/ > Min. surfen! > > >> > > > >> > > > >> > > > >> > ------------------------------------------------------- > > >> > This SF.NET email is sponsored by: > > >> > SourceForge Enterprise Edition + IBM + LinuxWorld = > > Something 2 See! > > >> > http://www.vasoftware.com > > >> > _______________________________________________ > > >> > Nagios-users mailing list > > >> > Nagios-users at lists.sourceforge.net > > >> > https://lists.sourceforge.net/lists/listinfo/nagios-users > > >> > > > >> > > > > > > > > > ------------------------------------------------------- > > > This SF.NET email is sponsored by: > > > SourceForge Enterprise Edition + IBM + LinuxWorld = > Something 2 See! > > > http://www.vasoftware.com > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > Grtz, > > > > Wim Fournier > > wim at hsmade.[com|net|org] > > > > > > > > > > ------------------------------------------------------- > > This SF.NET email is sponsored by: > > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > > http://www.vasoftware.com > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From horst.thivessen at thivessen.de Fri Feb 7 11:07:35 2003 From: horst.thivessen at thivessen.de (Horst =?ISO-8859-1?Q?Thive=DFen?=) Date: Fri, 07 Feb 2003 10:07:35 GMT Subject: check for filesize on windows using nrpe Message-ID: <20030207.10073550@mis.configured.host> Hello, I have to check the filesize on a windows 2000 server. I am not firm with progamming on windows and therefor I am looking for a nrpe agent which I can apapt with little knowledge of perl. Has anybody such a plugin ? Thanks Horst -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/rtf Size: 4535 bytes Desc: filename="text1.rtf" URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/vnd.stardivision.writer Size: 19456 bytes Desc: filename="text1.sdw" URL: From strerath at 4all-networks.de Fri Feb 7 12:16:51 2003 From: strerath at 4all-networks.de (Marcel Strerath) Date: Fri, 7 Feb 2003 12:16:51 +0100 Subject: Linux.gif bind into the cgi Message-ID: <001c01c2ce9a$69c50440$0300a8c0@workstation> Hi, how can I bind my Linux40.gif into the Status Map? I have added in the cgi.cfg follow line: hostextinfo[srv1]=;linux40.gif;linux40.gif;linux40.gd2;linux40.gif;; . What I must do too? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Donal.Hunt at dcu.ie Fri Feb 7 13:16:41 2003 From: Donal.Hunt at dcu.ie (Donal Hunt) Date: Fri, 07 Feb 2003 12:16:41 +0000 Subject: workstations References: <72CF2973A7532D478D85271D40F608FCC3F964@mercury.panvera.com> Message-ID: <3E43A3A9.5F93B826@dcu.ie> Don, We're currently testing nagios for this purpose... Drop me a mail if you need more details. Regards Donal DCU Don Schultz wrote: > > Are any of you checking workstations? Just asking for fun to see if > anyone is. > Thanks, > > -- > Don Schultz | Panvera Corporation > Unix Administrator | 501 Charmany Drive > ph: 608.204.5060 | Madison, WI 53719 > fax: 608.204.5061 | > ------------------------------------------ > pgp: B0 F8 40 8F 66 E2 3B CF 5B BE F4 8C > F8 75 25 B9 04 AF 67 A3 > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Stanley.Hopcroft at IPAustralia.Gov.AU Fri Feb 7 13:22:59 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Fri, 7 Feb 2003 23:22:59 +1100 Subject: check for filesize on windows using nrpe In-Reply-To: <20030207.10073550@mis.configured.host>; from horst.thivessen@thivessen.de on Fri, Feb 07, 2003 at 10:07:35AM +0000 References: <20030207.10073550@mis.configured.host> Message-ID: <20030207232253.F217@IPAustralia.Gov.AU> Dear Sir, I am writing to thank you for your letter and say, On Fri, Feb 07, 2003 at 10:07:35AM +0000, Horst Thive?en wrote: > Hello, > I have to check the filesize on a windows 2000 server. I am not firm with > progamming on windows and therefor I am looking for a nrpe agent which I > can apapt with little knowledge of perl. Has anybody such a plugin ? that you may like to consider the CPAN module FileSys::Smbclient ? This gives you an (tied) interface to a MS shared file that behaves exactly like a normal (ufs) file handle, so you can call stat() on it. I think your plugin is something like .. prelude my $smb = new Filesys::SmbClient(username => "alian", password => "speed", workgroup => "alian", debug => 10); my @tab = $smb->stat("smb://jupiter/doc/tata"); if ($#tab == 0) { print "Erreur in stat:", $!, "\n"; # Outahere after setting return code } else { my $size = $tab[7]; if ( $size <= MIN_THRESHOLD or $size >= MAX_THRESHOLD ) { # outahere } else # Ok print "File Ok.\n" ; exit $ERRORS{OK} ; } Have a look at http://search.cpan.org/author/ALIAN/Filesys-SmbClient-1.4/SmbClient.pm Obviously you can do a lot more with this extremely versatile and superior alternative to smbclient eg - tail a MS file - read/write at offset - slurp a whole MS file into a Perl string or Array - read/write MS directories You need to have a Samba 2.2.x sources, and you need to have the optional client shared library installed (make installclientlib) to be able to install this Perl module. Alternatively, there are RPMs that are sufficient to do all this. If you don't like this, but you have Samba installed, then you could do something like #!/usr/bin/perl $ls = `smbclient //server/share -Uuser%pass -c 'cd $path; ls $file; quit`` ; # interpret the directory listing in the 'usual way' ... this is # the hard bit that FileSys::Smbclient eliminates. > Thanks Horst HTH, Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From cedric.gavage at unixtech.be Fri Feb 7 13:30:36 2003 From: cedric.gavage at unixtech.be (Cedric Gavage) Date: Fri, 07 Feb 2003 13:30:36 +0100 Subject: FYI, nagios mailing list for french speaking people ;) Message-ID: <3E43A6EC.3080302@unixtech.be> Hi all, FYI, we created a mailing list for french speaking users of Nagios. (Problems installing nagios, getting things running, informations about configuration, scripts, ...) Name: nagios-french at lists.unixtech.be Subscribe/Unsubscribe: http://www.unixtech.be/mailman/listinfo/nagios-french Archive will be on http://www.mail-archive.com/nagios-french at lists.unixtech.be -- Cedric Gavage - Niddle at IRC http://unixtech.be - http://gavage.com - OpenPGP: 0xED325C64 ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From wojnicki at asw.waw.pl Fri Feb 7 13:36:18 2003 From: wojnicki at asw.waw.pl (Pawel Wojnicki) Date: Fri, 07 Feb 2003 13:36:18 +0100 Subject: 3D statusmap Message-ID: <5.1.1.2.0.20030207133141.027d8020@192.168.0.2> When I click on the "3d statusmap" link my browser asks me, if I want to open it or download (statuswrl.cgi?host=all). When I select "open", it's not accessible. I tried it with cortona wrml viewer and cosmoplayer - no dice. Any suggestions? Pawel ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From wojnicki at asw.waw.pl Fri Feb 7 13:49:15 2003 From: wojnicki at asw.waw.pl (Pawel Wojnicki) Date: Fri, 07 Feb 2003 13:49:15 +0100 Subject: Monitoring HP switches Message-ID: <5.1.1.2.0.20030207134711.027e55e0@192.168.0.2> Does anyone here have any experience in monitoring HP ethernet switches? I figure you have to use check_snmp, but couldn't find anything further in the faq or fm. Pawel ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Thomas.Nilsen at roxar.com Fri Feb 7 13:56:55 2003 From: Thomas.Nilsen at roxar.com (Thomas Nilsen) Date: Fri, 7 Feb 2003 13:56:55 +0100 Subject: 3D statusmap Message-ID: This is the same issue as I did a post on earlier this week. So far I've not been able to solve it... >-----Original Message----- >From: Pawel Wojnicki [mailto:wojnicki at asw.waw.pl] >Sent: Friday, February 07, 2003 1:36 PM >To: nagios-users at lists.sourceforge.net >Subject: [Nagios-users] 3D statusmap > > >When I click on the "3d statusmap" link my browser asks me, if >I want to >open it or download (statuswrl.cgi?host=all). >When I select "open", it's not accessible. >I tried it with cortona wrml viewer and cosmoplayer - no dice. >Any suggestions? > >Pawel > > > >------------------------------------------------------- >This SF.NET email is sponsored by: >SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >http://www.vasoftware.com >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users > DISCLAIMER: This message contains information that may be privileged or confidential and is the property of the Roxar Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorised to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Thomas.Nilsen at roxar.com Fri Feb 7 14:06:38 2003 From: Thomas.Nilsen at roxar.com (Thomas Nilsen) Date: Fri, 7 Feb 2003 14:06:38 +0100 Subject: Parent hosts and service checks on hosts childs of parents Message-ID: After reading through the documentation, I'm still not sure I got this right. I've got a couple of hosts, spread across a WAN. Host A (router on same LAN as Nagios) Host B (router on remote WAN) Host C (file server on remote WAN) Host C is configured with "partens host B" Host B is configured with "partens host A" However, even after host B goes down, Nagios is still kicking of the service checks on Host C. From what I understand in the documentation, this should not be the case? Or am I wrong here? What do i need to do in order for Nagios to stop service checking Host C before host B changes status from "Down" to "Up"? Regards, Thomas Nilsen Svg Support Tel: +47 51 81 01 30 - Mob: +47 916 98 229 DISCLAIMER: This message contains information that may be privileged or confidential and is the property of the Roxar Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorised to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Wibo.Lammerts at hmg.nl Fri Feb 7 14:23:42 2003 From: Wibo.Lammerts at hmg.nl (Wibo Lammerts) Date: Fri, 7 Feb 2003 14:23:42 +0100 Subject: 3D statusmap Message-ID: download the Cortona VRML viewer for Netscape/ie. that will do the trick -----Original Message----- From: Thomas Nilsen [mailto:Thomas.Nilsen at roxar.com] Sent: vrijdag 7 februari 2003 13:57 To: Pawel Wojnicki; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] 3D statusmap This is the same issue as I did a post on earlier this week. So far I've not been able to solve it... >-----Original Message----- >From: Pawel Wojnicki [mailto:wojnicki at asw.waw.pl] >Sent: Friday, February 07, 2003 1:36 PM >To: nagios-users at lists.sourceforge.net >Subject: [Nagios-users] 3D statusmap > > >When I click on the "3d statusmap" link my browser asks me, if >I want to >open it or download (statuswrl.cgi?host=all). >When I select "open", it's not accessible. >I tried it with cortona wrml viewer and cosmoplayer - no dice. >Any suggestions? > >Pawel > > > >------------------------------------------------------- >This SF.NET email is sponsored by: >SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >http://www.vasoftware.com >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users > DISCLAIMER: This message contains information that may be privileged or confidential and is the property of the Roxar Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorised to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Thomas.Nilsen at roxar.com Fri Feb 7 14:27:57 2003 From: Thomas.Nilsen at roxar.com (Thomas Nilsen) Date: Fri, 7 Feb 2003 14:27:57 +0100 Subject: 3D statusmap Message-ID: I don't thinl it is a plugin issue, as the demo site for Nagios works well when trying out the 3D statusmap. It's got to be something with my Nagios setup. >-----Original Message----- >From: Wibo Lammerts [mailto:Wibo.Lammerts at hmg.nl] >Sent: Friday, February 07, 2003 2:24 PM >To: Thomas Nilsen; Pawel Wojnicki; nagios-users at lists.sourceforge.net >Subject: RE: [Nagios-users] 3D statusmap > > >download the Cortona VRML viewer for Netscape/ie. that will do >the trick > >-----Original Message----- >From: Thomas Nilsen [mailto:Thomas.Nilsen at roxar.com] >Sent: vrijdag 7 februari 2003 13:57 >To: Pawel Wojnicki; nagios-users at lists.sourceforge.net >Subject: RE: [Nagios-users] 3D statusmap > > >This is the same issue as I did a post on earlier this week. >So far I've not >been able to solve it... > >>-----Original Message----- >>From: Pawel Wojnicki [mailto:wojnicki at asw.waw.pl] >>Sent: Friday, February 07, 2003 1:36 PM >>To: nagios-users at lists.sourceforge.net >>Subject: [Nagios-users] 3D statusmap >> >> >>When I click on the "3d statusmap" link my browser asks me, if >>I want to >>open it or download (statuswrl.cgi?host=all). >>When I select "open", it's not accessible. >>I tried it with cortona wrml viewer and cosmoplayer - no dice. >>Any suggestions? >> >>Pawel >> >> >> >>------------------------------------------------------- >>This SF.NET email is sponsored by: >>SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >>http://www.vasoftware.com >>_______________________________________________ >>Nagios-users mailing list >>Nagios-users at lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/nagios-users >> > > >DISCLAIMER: >This message contains information that may be privileged or >confidential and >is the property of the Roxar Group. It is intended only for >the person to >whom it is addressed. If you are not the intended recipient, >you are not >authorised to read, print, retain, copy, disseminate, >distribute, or use >this message or any part thereof. If you receive this message in error, >please notify the sender immediately and delete all copies of >this message. > > >------------------------------------------------------- >This SF.NET email is sponsored by: >SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >http://www.vasoftware.com >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users > DISCLAIMER: This message contains information that may be privileged or confidential and is the property of the Roxar Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorised to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Thomas.Nilsen at roxar.com Fri Feb 7 14:37:24 2003 From: Thomas.Nilsen at roxar.com (Thomas Nilsen) Date: Fri, 7 Feb 2003 14:37:24 +0100 Subject: Compaq Insight Manager plugin v0.1 available Message-ID: Hope this might be of interest to other Compaq server owners... I've modified Craig Cook's Big Brother script to work with Nagios. This is a pre release, which we are using in our production environment. It can be downloaded from http://home.broadpark.no/~tnilsen-1/check_cpqim.sh for the time being. I will put some docs together for it as well, but it will do for now. Any problems, please email me on thomas.nilsen at roxar.com or thomas.nilsen at doc-s.co.uk. Things to do: Timeout settings Command line options needs to be improved. Warning and Critical Level options (is currently using CPQ Agent levels and/or hard coded levels from the script). Regards, Thomas Nilsen Svg Support Tel: +47 51 81 01 30 - Mob: +47 916 98 229 DISCLAIMER: This message contains information that may be privileged or confidential and is the property of the Roxar Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorised to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Thomas.Nilsen at roxar.com Fri Feb 7 14:55:13 2003 From: Thomas.Nilsen at roxar.com (Thomas Nilsen) Date: Fri, 7 Feb 2003 14:55:13 +0100 Subject: 3D statusmap Message-ID: "model/vrml wrl,vrml" is already listed in /etc/mime.types... >-----Original Message----- >From: Wim Fournier [mailto:wim at hsmade.com] >Sent: Friday, February 07, 2003 2:49 PM >To: Thomas Nilsen >Cc: nagios-users at lists.sourceforge.net >Subject: RE: [Nagios-users] 3D statusmap > > >mime-types maybe? > >Thomas Nilsen zei: >> I don't thinl it is a plugin issue, as the demo site for Nagios works >> well when trying out the 3D statusmap. It's got to be >something with my >> Nagios setup. >> >>>-----Original Message----- >>>From: Wibo Lammerts [mailto:Wibo.Lammerts at hmg.nl] >>>Sent: Friday, February 07, 2003 2:24 PM >>>To: Thomas Nilsen; Pawel Wojnicki; nagios-users at lists.sourceforge.net >>>Subject: RE: [Nagios-users] 3D statusmap >>> >>> >>>download the Cortona VRML viewer for Netscape/ie. that will do >>>the trick >>> >>>-----Original Message----- >>>From: Thomas Nilsen [mailto:Thomas.Nilsen at roxar.com] >>>Sent: vrijdag 7 februari 2003 13:57 >>>To: Pawel Wojnicki; nagios-users at lists.sourceforge.net >>>Subject: RE: [Nagios-users] 3D statusmap >>> >>> >>>This is the same issue as I did a post on earlier this week. >>>So far I've not >>>been able to solve it... >>> >>>>-----Original Message----- >>>>From: Pawel Wojnicki [mailto:wojnicki at asw.waw.pl] >>>>Sent: Friday, February 07, 2003 1:36 PM >>>>To: nagios-users at lists.sourceforge.net >>>>Subject: [Nagios-users] 3D statusmap >>>> >>>> >>>>When I click on the "3d statusmap" link my browser asks me, if >>>>I want to >>>>open it or download (statuswrl.cgi?host=all). >>>>When I select "open", it's not accessible. >>>>I tried it with cortona wrml viewer and cosmoplayer - no dice. >>>>Any suggestions? >>>> >>>>Pawel >>>> >>>> >>>> >>>>------------------------------------------------------- >>>>This SF.NET email is sponsored by: >>>>SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >>>>http://www.vasoftware.com >>>>_______________________________________________ >>>>Nagios-users mailing list >>>>Nagios-users at lists.sourceforge.net >>>>https://lists.sourceforge.net/lists/listinfo/nagios-users >>>> >>> >>> >>>DISCLAIMER: >>>This message contains information that may be privileged or >>>confidential and >>>is the property of the Roxar Group. It is intended only for >>>the person to >>>whom it is addressed. If you are not the intended recipient, >>>you are not >>>authorised to read, print, retain, copy, disseminate, >>>distribute, or use >>>this message or any part thereof. If you receive this >message in error, >>>please notify the sender immediately and delete all copies of >>>this message. >>> >>> >>>------------------------------------------------------- >>>This SF.NET email is sponsored by: >>>SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >>>http://www.vasoftware.com >>>_______________________________________________ >>>Nagios-users mailing list >>>Nagios-users at lists.sourceforge.net >>>https://lists.sourceforge.net/lists/listinfo/nagios-users >>> >> >> >> DISCLAIMER: >> This message contains information that may be privileged or >> confidential and is the property of the Roxar Group. It is intended >> only for the person to whom it is addressed. If you are not the >> intended recipient, you are not authorised to read, print, retain, >> copy, disseminate, distribute, or use this message or any >part thereof. >> If you receive this message in error, please notify the sender >> immediately and delete all copies of this message. >> >> >> ------------------------------------------------------- >> This SF.NET email is sponsored by: >> SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >> http://www.vasoftware.com >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users > > > >Grtz, > >Wim Fournier >wim at hsmade.[com|net|org] > > > DISCLAIMER: This message contains information that may be privileged or confidential and is the property of the Roxar Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorised to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From wim at hsmade.com Fri Feb 7 14:48:43 2003 From: wim at hsmade.com (Wim Fournier) Date: Fri, 7 Feb 2003 14:48:43 +0100 (CET) Subject: 3D statusmap In-Reply-To: References: Message-ID: <27421.217.198.203.200.1044625723.squirrel@webmail.kern.nl> mime-types maybe? Thomas Nilsen zei: > I don't thinl it is a plugin issue, as the demo site for Nagios works > well when trying out the 3D statusmap. It's got to be something with my > Nagios setup. > >>-----Original Message----- >>From: Wibo Lammerts [mailto:Wibo.Lammerts at hmg.nl] >>Sent: Friday, February 07, 2003 2:24 PM >>To: Thomas Nilsen; Pawel Wojnicki; nagios-users at lists.sourceforge.net >>Subject: RE: [Nagios-users] 3D statusmap >> >> >>download the Cortona VRML viewer for Netscape/ie. that will do >>the trick >> >>-----Original Message----- >>From: Thomas Nilsen [mailto:Thomas.Nilsen at roxar.com] >>Sent: vrijdag 7 februari 2003 13:57 >>To: Pawel Wojnicki; nagios-users at lists.sourceforge.net >>Subject: RE: [Nagios-users] 3D statusmap >> >> >>This is the same issue as I did a post on earlier this week. >>So far I've not >>been able to solve it... >> >>>-----Original Message----- >>>From: Pawel Wojnicki [mailto:wojnicki at asw.waw.pl] >>>Sent: Friday, February 07, 2003 1:36 PM >>>To: nagios-users at lists.sourceforge.net >>>Subject: [Nagios-users] 3D statusmap >>> >>> >>>When I click on the "3d statusmap" link my browser asks me, if >>>I want to >>>open it or download (statuswrl.cgi?host=all). >>>When I select "open", it's not accessible. >>>I tried it with cortona wrml viewer and cosmoplayer - no dice. >>>Any suggestions? >>> >>>Pawel >>> >>> >>> >>>------------------------------------------------------- >>>This SF.NET email is sponsored by: >>>SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >>>http://www.vasoftware.com >>>_______________________________________________ >>>Nagios-users mailing list >>>Nagios-users at lists.sourceforge.net >>>https://lists.sourceforge.net/lists/listinfo/nagios-users >>> >> >> >>DISCLAIMER: >>This message contains information that may be privileged or >>confidential and >>is the property of the Roxar Group. It is intended only for >>the person to >>whom it is addressed. If you are not the intended recipient, >>you are not >>authorised to read, print, retain, copy, disseminate, >>distribute, or use >>this message or any part thereof. If you receive this message in error, >>please notify the sender immediately and delete all copies of >>this message. >> >> >>------------------------------------------------------- >>This SF.NET email is sponsored by: >>SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >>http://www.vasoftware.com >>_______________________________________________ >>Nagios-users mailing list >>Nagios-users at lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/nagios-users >> > > > DISCLAIMER: > This message contains information that may be privileged or > confidential and is the property of the Roxar Group. It is intended > only for the person to whom it is addressed. If you are not the > intended recipient, you are not authorised to read, print, retain, > copy, disseminate, distribute, or use this message or any part thereof. > If you receive this message in error, please notify the sender > immediately and delete all copies of this message. > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users Grtz, Wim Fournier wim at hsmade.[com|net|org] ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jonejr at gat.com Fri Feb 7 15:15:52 2003 From: jonejr at gat.com (jonejr) Date: Fri, 07 Feb 2003 06:15:52 -0800 Subject: cgi help on Nagios 1.0 Message-ID: <964413781.20030207061552@gat.com> Hello nagios-users, I can't, for the life of me, get anything beyond the Home and Docuementation buttons to work. http://MyFQDN/nagios/ gives the interface. Redhat 2.1 AS (uname -a output -->Linux p082207 2.4.9-e.3 #1 Fri May 3 17:02:43 EDT 2002 i686 unknown I have run the -v option to test the CFGs. ps -ef | grep nagios shows it running. I did a stop, start, and a restart. I have an .htaccess file in /usr/local/nagios/etc and ../html but it does not prompt for user authentication. I have NOT rebooted this server. I HAVE done a /etc/rc.d/init.d/httpd restart several times. I have pages and pages of printouts. :( No help I have 2 PDFs also, no help. It would seem that I have some cgi-bin issues. The requested URL /nagios/cgi-bin/tac.cgi was not found on this server. Apache/1.3.23 Server at MyFQDN Port 80 And yet... # ll tac.cgi -rwxr-xr-x 1 nagios nagios 415779 Feb 6 06:40 tac.cgi # pwd /usr/local/nagios/cgi from my httpd.conf file... ScriptAlias /nagios/cgi-bin/ "/usr/local/nagios/sbin/" AllowOverride AuthConfig Options ExecCGI Order allow,deny Allow from all So close I can taste it....Please advise. -- John R. Jones Oracle and Citrix Administrator General Atomics, Aeronautical Systems, Inc. http://www.gat.com/asi/home.html PGP Fingerprint= 1A6C 6CFA 0064 52D8 B98C 5A72 8783 5845 2/7/2003 5:55 AM ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From wim at hsmade.com Fri Feb 7 15:17:51 2003 From: wim at hsmade.com (Wim Fournier) Date: Fri, 7 Feb 2003 15:17:51 +0100 (CET) Subject: Fwd: Re: Monitoring HP switches In-Reply-To: <5.1.1.2.0.20030207151126.027d8630@192.168.0.2> References: <5.1.1.2.0.20030207151126.027d8630@192.168.0.2> Message-ID: <28791.217.198.203.200.1044627471.squirrel@webmail.kern.nl> Well here you go: ------------8<----------------------- #!/bin/bash # This check checks a HP procurve 2524 webgui for events # Returns a link to the event found # Author: Wim Fournier (wim at kern.nl) # $0 ip-address test -n $1 || exit export IP=$1 wget --http-user= --http-passwd=******* http://$IP/cgi/fflog?action=status - O - 2>/dev/null | awk -F~ '{ if ($1 == 1) {print "OK";exit 0;} if ($1 == 2) {printf("Information - %s\n",ENVIRON["IP"],$2,$3); exit 1; } if ($1 == 3) {printf("Non-critical - %s\n",ENVIRON["IP"],$2,$3); exit 1; } if ($1 == 4) {printf("Critical - %s\n",ENVIRON["IP"],$2,$3); exit 1; } print "Unknown"; exit -1; }' ------------8<----------------------- Its based on a file that resides on the webserver of the switch with the status in it. Pawel Wojnicki zei: > Hey sure - I'd appreciate any help and info > > Pawel > >>Date: Fri, 7 Feb 2003 14:21:27 +0100 (CET) >>Subject: Re: [Nagios-users] Monitoring HP switches >>From: "Wim Fournier" >>To: >>Importance: Normal >>Reply-To: wim at hsmade.com >>X-Mailer: SquirrelMail (version 1.2.5) >>X-Spam-Status: No, hits=-3.1 required=5.0 tests=IN_REP_TO,MAY_BE_FORGED >> version=2.20 >>X-Spam-Level: >> >>Pawel Wojnicki zei: >> > Does anyone here have any experience in monitoring HP ethernet >> > switches? I figure you have to use check_snmp, but couldn't find >> > anything further in the faq or fm. >> >>even better, i hacked myself through the web management page and found >>a way to check for the status lamp in the left upper corner and create >>a link in the status field to the page with the error (if existant) >> >>contact me if you want it, it should be also somewhere on sourceforge >>as patch.. but can't remember where >> > >> > Pawel >> > >> > >> > >> > ------------------------------------------------------- >> > This SF.NET email is sponsored by: >> > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >> > http://www.vasoftware.com >> > _______________________________________________ >> > Nagios-users mailing list >> > Nagios-users at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/nagios-users >> >> >> >>Grtz, >> >>Wim Fournier >>wim at hsmade.[com|net|org] Grtz, Wim Fournier wim at hsmade.[com|net|org] ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From wim at hsmade.com Fri Feb 7 15:19:16 2003 From: wim at hsmade.com (Wim Fournier) Date: Fri, 7 Feb 2003 15:19:16 +0100 (CET) Subject: 3D statusmap In-Reply-To: References: Message-ID: <29005.217.198.203.200.1044627556.squirrel@webmail.kern.nl> Thomas Nilsen zei: > "model/vrml wrl,vrml" is already listed in /etc/mime.types... its supposed to be "model/vrml wrl vrml" for apache. dont know if you put that comma there yourself, or that its normal for windows or something. > >>-----Original Message----- >>From: Wim Fournier [mailto:wim at hsmade.com] >>Sent: Friday, February 07, 2003 2:49 PM >>To: Thomas Nilsen >>Cc: nagios-users at lists.sourceforge.net >>Subject: RE: [Nagios-users] 3D statusmap >> >> >>mime-types maybe? >> >>Thomas Nilsen zei: >>> I don't thinl it is a plugin issue, as the demo site for Nagios works >>> well when trying out the 3D statusmap. It's got to be >>something with my >>> Nagios setup. >>> >>>>-----Original Message----- >>>>From: Wibo Lammerts [mailto:Wibo.Lammerts at hmg.nl] >>>>Sent: Friday, February 07, 2003 2:24 PM >>>>To: Thomas Nilsen; Pawel Wojnicki; nagios-users at lists.sourceforge.net >>>>Subject: RE: [Nagios-users] 3D statusmap >>>> >>>> >>>>download the Cortona VRML viewer for Netscape/ie. that will do >>>>the trick >>>> >>>>-----Original Message----- >>>>From: Thomas Nilsen [mailto:Thomas.Nilsen at roxar.com] >>>>Sent: vrijdag 7 februari 2003 13:57 >>>>To: Pawel Wojnicki; nagios-users at lists.sourceforge.net >>>>Subject: RE: [Nagios-users] 3D statusmap >>>> >>>> >>>>This is the same issue as I did a post on earlier this week. >>>>So far I've not >>>>been able to solve it... >>>> >>>>>-----Original Message----- >>>>>From: Pawel Wojnicki [mailto:wojnicki at asw.waw.pl] >>>>>Sent: Friday, February 07, 2003 1:36 PM >>>>>To: nagios-users at lists.sourceforge.net >>>>>Subject: [Nagios-users] 3D statusmap >>>>> >>>>> >>>>>When I click on the "3d statusmap" link my browser asks me, if I >>>>>want to >>>>>open it or download (statuswrl.cgi?host=all). >>>>>When I select "open", it's not accessible. >>>>>I tried it with cortona wrml viewer and cosmoplayer - no dice. Any >>>>>suggestions? >>>>> >>>>>Pawel >>>>> >>>>> >>>>> >>>>>------------------------------------------------------- >>>>>This SF.NET email is sponsored by: >>>>>SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >>>>>http://www.vasoftware.com >>>>>_______________________________________________ >>>>>Nagios-users mailing list >>>>>Nagios-users at lists.sourceforge.net >>>>>https://lists.sourceforge.net/lists/listinfo/nagios-users >>>>> >>>> >>>> >>>>DISCLAIMER: >>>>This message contains information that may be privileged or >>>>confidential and >>>>is the property of the Roxar Group. It is intended only for >>>>the person to >>>>whom it is addressed. If you are not the intended recipient, >>>>you are not >>>>authorised to read, print, retain, copy, disseminate, >>>>distribute, or use >>>>this message or any part thereof. If you receive this >>message in error, >>>>please notify the sender immediately and delete all copies of >>>>this message. >>>> >>>> >>>>------------------------------------------------------- >>>>This SF.NET email is sponsored by: >>>>SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >>>>http://www.vasoftware.com >>>>_______________________________________________ >>>>Nagios-users mailing list >>>>Nagios-users at lists.sourceforge.net >>>>https://lists.sourceforge.net/lists/listinfo/nagios-users >>>> >>> >>> >>> DISCLAIMER: >>> This message contains information that may be privileged or >>> confidential and is the property of the Roxar Group. It is intended >>> only for the person to whom it is addressed. If you are not the >>> intended recipient, you are not authorised to read, print, retain, >>> copy, disseminate, distribute, or use this message or any >>part thereof. >>> If you receive this message in error, please notify the sender >>> immediately and delete all copies of this message. >>> >>> >>> ------------------------------------------------------- >>> This SF.NET email is sponsored by: >>> SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >>> http://www.vasoftware.com >>> _______________________________________________ >>> Nagios-users mailing list >>> Nagios-users at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/nagios-users >> >> >> >>Grtz, >> >>Wim Fournier >>wim at hsmade.[com|net|org] >> >> >> > > > DISCLAIMER: > This message contains information that may be privileged or > confidential and is the property of the Roxar Group. It is intended > only for the person to whom it is addressed. If you are not the > intended recipient, you are not authorised to read, print, retain, > copy, disseminate, distribute, or use this message or any part thereof. > If you receive this message in error, please notify the sender > immediately and delete all copies of this message. > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users Grtz, Wim Fournier wim at hsmade.[com|net|org] ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From GPotter at MarathonOil.com Fri Feb 7 15:18:47 2003 From: GPotter at MarathonOil.com (Potter, G M (Greg)) Date: Fri, 7 Feb 2003 08:18:47 -0600 Subject: workstations Message-ID: We watch our workstations. It is helpful to know if your users are having a problem before you get the call. Often I can be in the office of a client with a down workstation and fix the problem before they know they have one. That improves PR and customer satisfaction. Greg > -----Original Message----- > From: Don Schultz [mailto:don_schultz at panvera.com] > Sent: Thursday, February 06, 2003 5:39 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] workstations > > > Are any of you checking workstations? Just asking for fun to see if > anyone is. > Thanks, > > -- > Don Schultz | Panvera Corporation > Unix Administrator | 501 Charmany Drive > ph: 608.204.5060 | Madison, WI 53719 > fax: 608.204.5061 | > ------------------------------------------ > pgp: B0 F8 40 8F 66 E2 3B CF 5B BE F4 8C > F8 75 25 B9 04 AF 67 A3 > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld =omething 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Thomas.Nilsen at roxar.com Fri Feb 7 15:21:15 2003 From: Thomas.Nilsen at roxar.com (Thomas Nilsen) Date: Fri, 7 Feb 2003 15:21:15 +0100 Subject: 3D statusmap Message-ID: That's my "AI" hands trying to clever. :-) The comma is not in /etc/mime.types So this has to be for some other reason.... >-----Original Message----- >From: Wim Fournier [mailto:wim at hsmade.com] >Sent: Friday, February 07, 2003 3:19 PM >To: Thomas Nilsen >Cc: nagios-users at lists.sourceforge.net >Subject: RE: [Nagios-users] 3D statusmap > > >Thomas Nilsen zei: >> "model/vrml wrl,vrml" is already listed in /etc/mime.types... >its supposed to be "model/vrml wrl vrml" for apache. dont >know if you put >that comma there yourself, or that its normal for windows or something. > > >> >>>-----Original Message----- >>>From: Wim Fournier [mailto:wim at hsmade.com] >>>Sent: Friday, February 07, 2003 2:49 PM >>>To: Thomas Nilsen >>>Cc: nagios-users at lists.sourceforge.net >>>Subject: RE: [Nagios-users] 3D statusmap >>> >>> >>>mime-types maybe? >>> >>>Thomas Nilsen zei: >>>> I don't thinl it is a plugin issue, as the demo site for >Nagios works >>>> well when trying out the 3D statusmap. It's got to be >>>something with my >>>> Nagios setup. >>>> >>>>>-----Original Message----- >>>>>From: Wibo Lammerts [mailto:Wibo.Lammerts at hmg.nl] >>>>>Sent: Friday, February 07, 2003 2:24 PM >>>>>To: Thomas Nilsen; Pawel Wojnicki; >nagios-users at lists.sourceforge.net >>>>>Subject: RE: [Nagios-users] 3D statusmap >>>>> >>>>> >>>>>download the Cortona VRML viewer for Netscape/ie. that will do >>>>>the trick >>>>> >>>>>-----Original Message----- >>>>>From: Thomas Nilsen [mailto:Thomas.Nilsen at roxar.com] >>>>>Sent: vrijdag 7 februari 2003 13:57 >>>>>To: Pawel Wojnicki; nagios-users at lists.sourceforge.net >>>>>Subject: RE: [Nagios-users] 3D statusmap >>>>> >>>>> >>>>>This is the same issue as I did a post on earlier this week. >>>>>So far I've not >>>>>been able to solve it... >>>>> >>>>>>-----Original Message----- >>>>>>From: Pawel Wojnicki [mailto:wojnicki at asw.waw.pl] >>>>>>Sent: Friday, February 07, 2003 1:36 PM >>>>>>To: nagios-users at lists.sourceforge.net >>>>>>Subject: [Nagios-users] 3D statusmap >>>>>> >>>>>> >>>>>>When I click on the "3d statusmap" link my browser asks me, if I >>>>>>want to >>>>>>open it or download (statuswrl.cgi?host=all). >>>>>>When I select "open", it's not accessible. >>>>>>I tried it with cortona wrml viewer and cosmoplayer - no dice. Any >>>>>>suggestions? >>>>>> >>>>>>Pawel >>>>>> >>>>>> >>>>>> >>>>>>------------------------------------------------------- >>>>>>This SF.NET email is sponsored by: >>>>>>SourceForge Enterprise Edition + IBM + LinuxWorld = >Something 2 See! >>>>>>http://www.vasoftware.com >>>>>>_______________________________________________ >>>>>>Nagios-users mailing list >>>>>>Nagios-users at lists.sourceforge.net >>>>>>https://lists.sourceforge.net/lists/listinfo/nagios-users >>>>>> >>>>> >>>>> >>>>>DISCLAIMER: >>>>>This message contains information that may be privileged or >>>>>confidential and >>>>>is the property of the Roxar Group. It is intended only for >>>>>the person to >>>>>whom it is addressed. If you are not the intended recipient, >>>>>you are not >>>>>authorised to read, print, retain, copy, disseminate, >>>>>distribute, or use >>>>>this message or any part thereof. If you receive this >>>message in error, >>>>>please notify the sender immediately and delete all copies of >>>>>this message. >>>>> >>>>> >>>>>------------------------------------------------------- >>>>>This SF.NET email is sponsored by: >>>>>SourceForge Enterprise Edition + IBM + LinuxWorld = >Something 2 See! >>>>>http://www.vasoftware.com >>>>>_______________________________________________ >>>>>Nagios-users mailing list >>>>>Nagios-users at lists.sourceforge.net >>>>>https://lists.sourceforge.net/lists/listinfo/nagios-users >>>>> >>>> >>>> >>>> DISCLAIMER: >>>> This message contains information that may be privileged or >>>> confidential and is the property of the Roxar Group. It is intended >>>> only for the person to whom it is addressed. If you are not the >>>> intended recipient, you are not authorised to read, print, retain, >>>> copy, disseminate, distribute, or use this message or any >>>part thereof. >>>> If you receive this message in error, please notify the sender >>>> immediately and delete all copies of this message. >>>> >>>> >>>> ------------------------------------------------------- >>>> This SF.NET email is sponsored by: >>>> SourceForge Enterprise Edition + IBM + LinuxWorld = >Something 2 See! >>>> http://www.vasoftware.com >>>> _______________________________________________ >>>> Nagios-users mailing list >>>> Nagios-users at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/nagios-users >>> >>> >>> >>>Grtz, >>> >>>Wim Fournier >>>wim at hsmade.[com|net|org] >>> >>> >>> >> >> >> DISCLAIMER: >> This message contains information that may be privileged or >> confidential and is the property of the Roxar Group. It is intended >> only for the person to whom it is addressed. If you are not the >> intended recipient, you are not authorised to read, print, retain, >> copy, disseminate, distribute, or use this message or any >part thereof. >> If you receive this message in error, please notify the sender >> immediately and delete all copies of this message. >> >> >> ------------------------------------------------------- >> This SF.NET email is sponsored by: >> SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >> http://www.vasoftware.com >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users > > > >Grtz, > >Wim Fournier >wim at hsmade.[com|net|org] > > > DISCLAIMER: This message contains information that may be privileged or confidential and is the property of the Roxar Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorised to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Thomas.Nilsen at roxar.com Fri Feb 7 15:35:34 2003 From: Thomas.Nilsen at roxar.com (Thomas Nilsen) Date: Fri, 7 Feb 2003 15:35:34 +0100 Subject: cgi help on Nagios 1.0 Message-ID: Remove the .htaccess file from etc/ and html/ and move it to the sbin/ directory. That should give you access. Regards, Thomas >-----Original Message----- >From: jonejr [mailto:jonejr at gat.com] >Sent: Friday, February 07, 2003 3:16 PM >To: nagios-users at lists.sourceforge.net >Subject: [Nagios-users] cgi help on Nagios 1.0 > > >Hello nagios-users, > >I can't, for the life of me, get anything beyond the Home and >Docuementation buttons to work. >http://MyFQDN/nagios/ gives the interface. >Redhat 2.1 AS (uname -a output -->Linux p082207 2.4.9-e.3 #1 >Fri May 3 17:02:43 EDT 2002 i686 unknown > > >I have run the -v option to test the CFGs. >ps -ef | grep nagios shows it running. >I did a stop, start, and a restart. >I have an .htaccess file in /usr/local/nagios/etc and ../html but it >does not prompt for user authentication. > >I have NOT rebooted this server. I HAVE done a >/etc/rc.d/init.d/httpd restart several times. > >I have pages and pages of printouts. :( No help >I have 2 PDFs also, no help. > >It would seem that I have some cgi-bin issues. >The requested URL /nagios/cgi-bin/tac.cgi was not found on this server. >Apache/1.3.23 Server at MyFQDN Port 80 > >And yet... ># ll tac.cgi >-rwxr-xr-x 1 nagios nagios 415779 Feb 6 06:40 tac.cgi ># pwd >/usr/local/nagios/cgi > >from my httpd.conf file... >ScriptAlias /nagios/cgi-bin/ "/usr/local/nagios/sbin/" > > AllowOverride AuthConfig > Options ExecCGI > Order allow,deny > Allow from all > > > > >So close I can taste it....Please advise. > >-- >John R. Jones > >Oracle and Citrix Administrator >General Atomics, Aeronautical Systems, Inc. >http://www.gat.com/asi/home.html >PGP Fingerprint= >1A6C 6CFA 0064 52D8 B98C 5A72 8783 5845 > >2/7/2003 >5:55 AM > > > >------------------------------------------------------- >This SF.NET email is sponsored by: >SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >http://www.vasoftware.com >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users > DISCLAIMER: This message contains information that may be privileged or confidential and is the property of the Roxar Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorised to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From mpowell at ena.com Fri Feb 7 15:40:01 2003 From: mpowell at ena.com (Marc Powell) Date: Fri, 7 Feb 2003 08:40:01 -0600 Subject: 3D statusmap Message-ID: <5DB017510818EC468B05BD7BD9EACF83032D3FD6@mismail.ena.com> I seem to remember some discussion of periods in names being a problem. Is that applicable? You might find something in the archives to confirm that. -- Marc Sent from a very tiny wireless device with a very tiny unlit keyboard. -----Original Message----- From: Thomas Nilsen To: wim at hsmade.com CC: nagios-users at lists.sourceforge.net Sent: Fri Feb 07 08:21:15 2003 Subject: RE: [Nagios-users] 3D statusmap That's my "AI" hands trying to clever. :-) The comma is not in /etc/mime.types So this has to be for some other reason.... >-----Original Message----- >From: Wim Fournier [mailto:wim at hsmade.com] >Sent: Friday, February 07, 2003 3:19 PM >To: Thomas Nilsen >Cc: nagios-users at lists.sourceforge.net >Subject: RE: [Nagios-users] 3D statusmap > > >Thomas Nilsen zei: >> "model/vrml wrl,vrml" is already listed in /etc/mime.types... >its supposed to be "model/vrml wrl vrml" for apache. dont >know if you put >that comma there yourself, or that its normal for windows or something. > > >> >>>-----Original Message----- >>>From: Wim Fournier [mailto:wim at hsmade.com] >>>Sent: Friday, February 07, 2003 2:49 PM >>>To: Thomas Nilsen >>>Cc: nagios-users at lists.sourceforge.net >>>Subject: RE: [Nagios-users] 3D statusmap >>> >>> >>>mime-types maybe? >>> >>>Thomas Nilsen zei: >>>> I don't thinl it is a plugin issue, as the demo site for >Nagios works >>>> well when trying out the 3D statusmap. It's got to be >>>something with my >>>> Nagios setup. >>>> >>>>>-----Original Message----- >>>>>From: Wibo Lammerts [mailto:Wibo.Lammerts at hmg.nl] >>>>>Sent: Friday, February 07, 2003 2:24 PM >>>>>To: Thomas Nilsen; Pawel Wojnicki; >nagios-users at lists.sourceforge.net >>>>>Subject: RE: [Nagios-users] 3D statusmap >>>>> >>>>> >>>>>download the Cortona VRML viewer for Netscape/ie. that will do >>>>>the trick >>>>> >>>>>-----Original Message----- >>>>>From: Thomas Nilsen [mailto:Thomas.Nilsen at roxar.com] >>>>>Sent: vrijdag 7 februari 2003 13:57 >>>>>To: Pawel Wojnicki; nagios-users at lists.sourceforge.net >>>>>Subject: RE: [Nagios-users] 3D statusmap >>>>> >>>>> >>>>>This is the same issue as I did a post on earlier this week. >>>>>So far I've not >>>>>been able to solve it... >>>>> >>>>>>-----Original Message----- >>>>>>From: Pawel Wojnicki [mailto:wojnicki at asw.waw.pl] >>>>>>Sent: Friday, February 07, 2003 1:36 PM >>>>>>To: nagios-users at lists.sourceforge.net >>>>>>Subject: [Nagios-users] 3D statusmap >>>>>> >>>>>> >>>>>>When I click on the "3d statusmap" link my browser asks me, if I >>>>>>want to >>>>>>open it or download (statuswrl.cgi?host=all). >>>>>>When I select "open", it's not accessible. >>>>>>I tried it with cortona wrml viewer and cosmoplayer - no dice. Any >>>>>>suggestions? >>>>>> >>>>>>Pawel >>>>>> >>>>>> >>>>>> >>>>>>------------------------------------------------------- >>>>>>This SF.NET email is sponsored by: >>>>>>SourceForge Enterprise Edition + IBM + LinuxWorld = >Something 2 See! >>>>>>http://www.vasoftware.com >>>>>>_______________________________________________ >>>>>>Nagios-users mailing list >>>>>>Nagios-users at lists.sourceforge.net >>>>>>https://lists.sourceforge.net/lists/listinfo/nagios-users >>>>>> >>>>> >>>>> >>>>>DISCLAIMER: >>>>>This message contains information that may be privileged or >>>>>confidential and >>>>>is the property of the Roxar Group. It is intended only for >>>>>the person to >>>>>whom it is addressed. If you are not the intended recipient, >>>>>you are not >>>>>authorised to read, print, retain, copy, disseminate, >>>>>distribute, or use >>>>>this message or any part thereof. If you receive this >>>message in error, >>>>>please notify the sender immediately and delete all copies of >>>>>this message. >>>>> >>>>> >>>>>------------------------------------------------------- >>>>>This SF.NET email is sponsored by: >>>>>SourceForge Enterprise Edition + IBM + LinuxWorld = >Something 2 See! >>>>>http://www.vasoftware.com >>>>>_______________________________________________ >>>>>Nagios-users mailing list >>>>>Nagios-users at lists.sourceforge.net >>>>>https://lists.sourceforge.net/lists/listinfo/nagios-users >>>>> >>>> >>>> >>>> DISCLAIMER: >>>> This message contains information that may be privileged or >>>> confidential and is the property of the Roxar Group. It is intended >>>> only for the person to whom it is addressed. If you are not the >>>> intended recipient, you are not authorised to read, print, retain, >>>> copy, disseminate, distribute, or use this message or any >>>part thereof. >>>> If you receive this message in error, please notify the sender >>>> immediately and delete all copies of this message. >>>> >>>> >>>> ------------------------------------------------------- >>>> This SF.NET email is sponsored by: >>>> SourceForge Enterprise Edition + IBM + LinuxWorld = >Something 2 See! >>>> http://www.vasoftware.com >>>> _______________________________________________ >>>> Nagios-users mailing list >>>> Nagios-users at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/nagios-users >>> >>> >>> >>>Grtz, >>> >>>Wim Fournier >>>wim at hsmade.[com|net|org] >>> >>> >>> >> >> >> DISCLAIMER: >> This message contains information that may be privileged or >> confidential and is the property of the Roxar Group. It is intended >> only for the person to whom it is addressed. If you are not the >> intended recipient, you are not authorised to read, print, retain, >> copy, disseminate, distribute, or use this message or any >part thereof. >> If you receive this message in error, please notify the sender >> immediately and delete all copies of this message. >> >> >> ------------------------------------------------------- >> This SF.NET email is sponsored by: >> SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >> http://www.vasoftware.com >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users > > > >Grtz, > >Wim Fournier >wim at hsmade.[com|net|org] > > > DISCLAIMER: This message contains information that may be privileged or confidential and is the property of the Roxar Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorised to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld =omething 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From nagios at cerbernet.co.uk Fri Feb 7 15:56:34 2003 From: nagios at cerbernet.co.uk (Tony) Date: Fri, 7 Feb 2003 14:56:34 -0000 Subject: cgi help on Nagios 1.0 In-Reply-To: <964413781.20030207061552@gat.com> References: <964413781.20030207061552@gat.com> Message-ID: <010401c2ceb9$1ce3adb0$f81fc3c1@TONYS> You do a #pwd in the directory that the cgi's are in and that says "/usr/local/nagios/cgi" Your apache config aliases /nagios/cgi-bin/ to /usr/local/nagios/sbin/, but your cgi's are in /usr/local/nagios/cgi. Think perhaps you should rename /usr/local/nagios/cgi to /usr/local/nagios/sbin/. Or change the alias in the apache conf file. Tony > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of jonejr > Sent: 07 February 2003 14:16 > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] cgi help on Nagios 1.0 > > Hello nagios-users, > > I can't, for the life of me, get anything beyond the Home and > Docuementation buttons to work. > http://MyFQDN/nagios/ gives the interface. > Redhat 2.1 AS (uname -a output -->Linux p082207 2.4.9-e.3 #1 Fri May 3 17:02:43 > EDT 2002 i686 unknown > > > I have run the -v option to test the CFGs. > ps -ef | grep nagios shows it running. > I did a stop, start, and a restart. > I have an .htaccess file in /usr/local/nagios/etc and ../html but it > does not prompt for user authentication. > > I have NOT rebooted this server. I HAVE done a /etc/rc.d/init.d/httpd restart several > times. > > I have pages and pages of printouts. :( No help > I have 2 PDFs also, no help. > > It would seem that I have some cgi-bin issues. > The requested URL /nagios/cgi-bin/tac.cgi was not found on this server. > Apache/1.3.23 Server at MyFQDN Port 80 > > And yet... > # ll tac.cgi > -rwxr-xr-x 1 nagios nagios 415779 Feb 6 06:40 tac.cgi > # pwd > /usr/local/nagios/cgi > > from my httpd.conf file... > ScriptAlias /nagios/cgi-bin/ "/usr/local/nagios/sbin/" > > AllowOverride AuthConfig > Options ExecCGI > Order allow,deny > Allow from all > > > > > So close I can taste it....Please advise. > > -- > John R. Jones > > Oracle and Citrix Administrator > General Atomics, Aeronautical Systems, Inc. > http://www.gat.com/asi/home.html > PGP Fingerprint= > 1A6C 6CFA 0064 52D8 B98C 5A72 8783 5845 > > 2/7/2003 > 5:55 AM > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jonejr at gat.com Fri Feb 7 15:58:25 2003 From: jonejr at gat.com (jonejr) Date: Fri, 07 Feb 2003 06:58:25 -0800 Subject: cgi help on Nagios 1.0 In-Reply-To: References: Message-ID: <1606966468.20030207065825@gat.com> Hello, Friday, February 7, 2003, 6:35:34 AM, Thomas Nilson wrote: > Remove the .htaccess file from etc/ and html/ and move it to the sbin/ directory. That should give you access. No change... Your time in this matter is greatly appreciated. -- John R. Jones Oracle and Citrix Administrator General Atomics, Aeronautical Systems, Inc. http://www.gat.com/asi/home.html ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From tdeblend at gcc.dhl.com Fri Feb 7 16:04:56 2003 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Fri, 07 Feb 2003 16:04:56 +0100 Subject: workstations References: Message-ID: <3E43CB18.D1E414A4@gcc.dhl.com> I imagine you don't have a large environment then? And if you do (let's say 500+ users), how do you add all this data into Nagios? An interesting thread. "Potter, G M (Greg)" wrote: > > We watch our workstations. It is helpful to know if your users > are having a problem before you get the call. Often I can be in the > office of a client with a down workstation and fix the problem before > they know they have one. That improves PR and customer satisfaction. > > Greg > > > -----Original Message----- > > From: Don Schultz [mailto:don_schultz at panvera.com] > > Sent: Thursday, February 06, 2003 5:39 PM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] workstations > > > > > > Are any of you checking workstations? Just asking for fun to see if > > anyone is. > > Thanks, > > > > -- > > Don Schultz | Panvera Corporation > > Unix Administrator | 501 Charmany Drive > > ph: 608.204.5060 | Madison, WI 53719 > > fax: 608.204.5061 | > > ------------------------------------------ > > pgp: B0 F8 40 8F 66 E2 3B CF 5B BE F4 8C > > F8 75 25 B9 04 AF 67 A3 > > > > > > ------------------------------------------------------- > > This SF.NET email is sponsored by: > > SourceForge Enterprise Edition + IBM + LinuxWorld =omething 2 See! > > http://www.vasoftware.com > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From irger at fh-rosenheim.de Fri Feb 7 16:04:41 2003 From: irger at fh-rosenheim.de (Armin Irger) Date: 07 Feb 2003 16:04:41 +0100 Subject: Schedule An Immediate Check - I have rtfm and stfw no help Message-ID: <1044630282.1070.35.camel@ntb00817> Hi, i using debian woody 3.0r1 and compiled nagios from the source. Nagios is "jailed" in /opt/nagios-1.0 and accessing over a link /opt/nagios. nagios.cfg settings: check_external_commands=1 command_check_interval=-1 command_file=/opt/nagios/var/rw/nagios.cmd I setup the nagios.cmd file how it be descripted in the commandfile.html /usr/sbin/groupadd nagiocmd /usr/sbin/usermod -G nagiocmd nagios /usr/sbin/usermod -G nagiocmd nobody mkdir /opt/nagios/var/rw chown nagios.nagiocmd /opt/nagios/var/rw chmod u+rwx /opt/nagios/var/rw chmod g+rw /opt/nagios/var/rw chmod g+s /opt/nagios/var/rw The ls -l /opt/nagioss/var/ looks like drwxrwSr-- 2 nagios nagiocmd 4096 Feb 7 15:10 rw cgi.cfg settings: authorized_for_system_information=nagiosadmin authorized_for_configuration_information=nagiosadmin authorized_for_system_commands=nagiosadmin authorized_for_all_hosts=nagiosadmin,guest authorized_for_all_service_commands=nagiosadmin authorized_for_all_host_commands=nagiosadmin I'am logged in as nagiosadmin and when i try to start a "Schedule an immediate check of all services on this host" from the Host Command's i get this error back after i commit the command. Error: Could not stat() command file '/opt/nagios/var/rw/nagios.cmd'! The external command file may be missing, Nagios may not be running, and/or Nagios may not be checking external commands. An error occurred while attempting to commit your command for processing. Greetings Armin -- Wundere dich nicht da? du nicht ankommst, wenn du nicht wei?t wo du hin willst. ==================================================================== Fachhochschule Rosenheim Armin Irger Hochschulstr. 1 D-83024 Rosenheim Tel. +498031 805-532 Fax. +498041 805-519 ==================================================================== ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From mpowell at ena.com Fri Feb 7 16:25:28 2003 From: mpowell at ena.com (Marc Powell) Date: Fri, 7 Feb 2003 09:25:28 -0600 Subject: Schedule An Immediate Check - I have rtfm and stfw no help Message-ID: <5DB017510818EC468B05BD7BD9EACF83030ED3C6@mismail.ena.com> Assuming that your apache installation runs as group 'nobody', what do the permissions on the directories above /opt/nagios/var/rw look like? If /opt/nagios were chmod 600, then the web server would not be able to read rw, etc... You also might want to try restarting your web server just in case. -- Marc > -----Original Message----- > From: Armin Irger [mailto:irger at fh-rosenheim.de] > Sent: Friday, February 07, 2003 9:05 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Schedule An Immediate Check - I have rtfm and stfw > no help > > Hi, > i using debian woody 3.0r1 and compiled nagios from the source. Nagios > is "jailed" in /opt/nagios-1.0 and accessing over a link /opt/nagios. > > nagios.cfg settings: > > check_external_commands=1 > command_check_interval=-1 > command_file=/opt/nagios/var/rw/nagios.cmd > > I setup the nagios.cmd file how it be descripted in the commandfile.html > /usr/sbin/groupadd nagiocmd > /usr/sbin/usermod -G nagiocmd nagios > /usr/sbin/usermod -G nagiocmd nobody > mkdir /opt/nagios/var/rw > chown nagios.nagiocmd /opt/nagios/var/rw > chmod u+rwx /opt/nagios/var/rw > chmod g+rw /opt/nagios/var/rw > chmod g+s /opt/nagios/var/rw > > The ls -l /opt/nagioss/var/ looks like > drwxrwSr-- 2 nagios nagiocmd 4096 Feb 7 15:10 rw > > > cgi.cfg settings: > authorized_for_system_information=nagiosadmin > authorized_for_configuration_information=nagiosadmin > authorized_for_system_commands=nagiosadmin > authorized_for_all_hosts=nagiosadmin,guest > authorized_for_all_service_commands=nagiosadmin > authorized_for_all_host_commands=nagiosadmin > > > I'am logged in as nagiosadmin and when i try to start a "Schedule an > immediate check of all services on this host" from the Host Command's i > get this error back after i commit the command. > > Error: Could not stat() command file '/opt/nagios/var/rw/nagios.cmd'! > > The external command file may be missing, Nagios may not be running, > and/or Nagios may not be checking external commands. > > An error occurred while attempting to commit your command for > processing. > > > Greetings > Armin > > > > > > > > -- > Wundere dich nicht da? du nicht ankommst, > wenn du nicht wei?t wo du hin willst. > > ==================================================================== > Fachhochschule Rosenheim > Armin Irger > Hochschulstr. 1 > D-83024 Rosenheim > Tel. +498031 805-532 > Fax. +498041 805-519 > ==================================================================== > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld =omething 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From stevox2000 at yahoo.com Fri Feb 7 16:54:28 2003 From: stevox2000 at yahoo.com (=?iso-8859-1?q?Steve=20Dussaux?=) Date: Fri, 7 Feb 2003 16:54:28 +0100 (CET) Subject: Services and hostgroups Message-ID: <20030207155428.50874.qmail@web10901.mail.yahoo.com> Hi, Is it possible to associate a hostgroup to a group of services ? Let me explain briefly what i'm looking for : I have 3 hostsgroups with many services for each hostgroup. I want to add a host in one of the hostgroup and automatically have the services associated with it. I don't want to add services for this new host. Can Nagios do this ? Steve ___________________________________________________________ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran?ais ! Yahoo! Mail : http://fr.mail.yahoo.com ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From mmcclure at pneservices.com Fri Feb 7 16:52:38 2003 From: mmcclure at pneservices.com (Mike McClure) Date: Fri, 7 Feb 2003 09:52:38 -0600 (CST) Subject: Schedule An Immediate Check - I have rtfm and stfw no help In-Reply-To: <1044630282.1070.35.camel@ntb00817> References: <1044630282.1070.35.camel@ntb00817> Message-ID: <2736.192.168.1.9.1044633158.squirrel@xyzzy.homeip.net> Is your web server chroot'ed as well? If so, where? Is the nagios.cmd file accessible from the web server user and in the chroot jail? > Hi, > i using debian woody 3.0r1 and compiled nagios from the source. Nagios > is "jailed" in /opt/nagios-1.0 and accessing over a link /opt/nagios. > > nagios.cfg settings: > > check_external_commands=1 > command_check_interval=-1 > command_file=/opt/nagios/var/rw/nagios.cmd > > I setup the nagios.cmd file how it be descripted in the commandfile.html > /usr/sbin/groupadd nagiocmd > /usr/sbin/usermod -G nagiocmd nagios > /usr/sbin/usermod -G nagiocmd nobody > mkdir /opt/nagios/var/rw > chown nagios.nagiocmd /opt/nagios/var/rw > chmod u+rwx /opt/nagios/var/rw > chmod g+rw /opt/nagios/var/rw > chmod g+s /opt/nagios/var/rw > > The ls -l /opt/nagioss/var/ looks like > drwxrwSr-- 2 nagios nagiocmd 4096 Feb 7 15:10 rw > > > cgi.cfg settings: > authorized_for_system_information=nagiosadmin > authorized_for_configuration_information=nagiosadmin > authorized_for_system_commands=nagiosadmin > authorized_for_all_hosts=nagiosadmin,guest > authorized_for_all_service_commands=nagiosadmin > authorized_for_all_host_commands=nagiosadmin > > > I'am logged in as nagiosadmin and when i try to start a "Schedule an > immediate check of all services on this host" from the Host Command's i > get this error back after i commit the command. > > Error: Could not stat() command file '/opt/nagios/var/rw/nagios.cmd'! > > The external command file may be missing, Nagios may not be running, > and/or Nagios may not be checking external commands. > > An error occurred while attempting to commit your command for > processing. > > > Greetings > Armin > > > > > > > > -- > Wundere dich nicht da? du nicht ankommst, > wenn du nicht wei?t wo du hin willst. > > ===================================================================Fachhochschule > Rosenheim > Armin Irger > Hochschulstr. 1 > D-83024 Rosenheim > Tel. +498031 805-532 > Fax. +498041 805-519 > ================================================================------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > -- Mike McClure, CCIE # 5125, CISSP # 30232 PNE Services, Inc. - http://www.pneservices.com mmcclure at pneservices.com mobile: 913-636-5590 ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From michael at gargantuan.com Fri Feb 7 17:06:26 2003 From: michael at gargantuan.com (Michael W. Oliver) Date: Fri, 7 Feb 2003 11:06:26 -0500 Subject: Schedule An Immediate Check - I have rtfm and stfw no help References: <1044630282.1070.35.camel@ntb00817> Message-ID: <005b01c2cec2$de18cde0$e112d287@gargantuan.com> I am receiving the exact same error while trying this on my FreeBSD server. I followed the FAQ instructions to the letter, and all permissions are just as they should be, and 'nobody' is in the 'nagiocmd' group. Still no joy... -- ------------------------------------------------------------------------ Michael W. Oliver, CCNP | IPv6 & FreeBSD mizark | "The tree of liberty must be refreshed michael at gargantuan.com | from time to time with the blood of http://michael.gargantuan.com/ | patriots and tyrants." (via IPv4 and IPv6) | - President Thomas Jefferson IPv6 ASPathTree, Looking Glass | ------------------------------------------------------------------------ ----- Original Message ----- From: "Armin Irger" To: Sent: Friday, February 07, 2003 10:04 AM Subject: [Nagios-users] Schedule An Immediate Check - I have rtfm and stfw no help Hi, i using debian woody 3.0r1 and compiled nagios from the source. Nagios is "jailed" in /opt/nagios-1.0 and accessing over a link /opt/nagios. nagios.cfg settings: check_external_commands=1 command_check_interval=-1 command_file=/opt/nagios/var/rw/nagios.cmd I setup the nagios.cmd file how it be descripted in the commandfile.html /usr/sbin/groupadd nagiocmd /usr/sbin/usermod -G nagiocmd nagios /usr/sbin/usermod -G nagiocmd nobody mkdir /opt/nagios/var/rw chown nagios.nagiocmd /opt/nagios/var/rw chmod u+rwx /opt/nagios/var/rw chmod g+rw /opt/nagios/var/rw chmod g+s /opt/nagios/var/rw The ls -l /opt/nagioss/var/ looks like drwxrwSr-- 2 nagios nagiocmd 4096 Feb 7 15:10 rw cgi.cfg settings: authorized_for_system_information=nagiosadmin authorized_for_configuration_information=nagiosadmin authorized_for_system_commands=nagiosadmin authorized_for_all_hosts=nagiosadmin,guest authorized_for_all_service_commands=nagiosadmin authorized_for_all_host_commands=nagiosadmin I'am logged in as nagiosadmin and when i try to start a "Schedule an immediate check of all services on this host" from the Host Command's i get this error back after i commit the command. Error: Could not stat() command file '/opt/nagios/var/rw/nagios.cmd'! The external command file may be missing, Nagios may not be running, and/or Nagios may not be checking external commands. An error occurred while attempting to commit your command for processing. Greetings Armin -- Wundere dich nicht da? du nicht ankommst, wenn du nicht wei?t wo du hin willst. ==================================================================== Fachhochschule Rosenheim Armin Irger Hochschulstr. 1 D-83024 Rosenheim Tel. +498031 805-532 Fax. +498041 805-519 ==================================================================== ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld =omething 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From dan at lanworksco.com Fri Feb 7 17:19:24 2003 From: dan at lanworksco.com (Dan Knoblauch) Date: Fri, 7 Feb 2003 09:19:24 -0700 Subject: Nagios reply notifications to acknowledge Message-ID: <1B523437EB2BA849BE6376636E03678701A614@knoblauchdc.dkconsulting.org> Hello all and good day! I have been looking for a mechanism that will allow me to 'reply' to nagios notifications via email with an acknowledgement. Often I am away from the office and I receive notifications on host/service outages on my cell phone. I have used another monitoring utility called "Big Brother" that had this capability. Outside of writing my own handler to do this, does anyone out there know if this is possible? I have scoured the documentation and the mailing lists and newsgroups and haven't seen even a small mention of this. Does this capability exist? You assistance is greatly appreciated. Dan. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Darren.Gamble at sjrb.ca Fri Feb 7 17:16:35 2003 From: Darren.Gamble at sjrb.ca (Darren.Gamble at sjrb.ca) Date: Fri, 07 Feb 2003 09:16:35 -0700 Subject: Schedule An Immediate Check - I have rtfm and stfw no help Message-ID: <078EC26E265CD411BD9100508BDFFC861BCBB754@shawmail02> Good day, > Hi, > i using debian woody 3.0r1 and compiled nagios from the source. Nagios > is "jailed" in /opt/nagios-1.0 and accessing over a link /opt/nagios. > I'am logged in as nagiosadmin and when i try to start a "Schedule an > immediate check of all services on this host" from the Host > Command's i > get this error back after i commit the command. > > Error: Could not stat() command file '/opt/nagios/var/rw/nagios.cmd'! > The external command file may be missing, Nagios may not be running, > and/or Nagios may not be checking external commands. I am not familiar with setting up nagios in a jailed environment, but wouldn't this mean nagios should be looking for the command file in /var/rw/nagios.cmd instead of /opt/nagios/var/rw/nagios.cmd ? HtH, ============================ Darren Gamble Planner, Regional Services Shaw Cablesystems GP 630 - 3rd Avenue SW Calgary, Alberta, Canada T2P 4L4 (403) 781-4948 ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From nagios at cerbernet.co.uk Fri Feb 7 17:31:20 2003 From: nagios at cerbernet.co.uk (Tony) Date: Fri, 7 Feb 2003 16:31:20 -0000 Subject: Services and hostgroups In-Reply-To: <20030207155428.50874.qmail@web10901.mail.yahoo.com> References: <20030207155428.50874.qmail@web10901.mail.yahoo.com> Message-ID: <01d801c2cec6$5ba12890$f81fc3c1@TONYS> If you use the template method for your config files.. define service{ hostgroup_name HOSTGROUP1,HOSTGROUP2,...,HOSTGROUPN service_description SOMESERVICE other service directives ... } Read the Time-Saving Tricks under Table of Contents > Object configuration file options > Template-based method > Time-Saving Tricks Tony > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Steve Dussaux > Sent: 07 February 2003 15:54 > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Services and hostgroups > > Hi, > > Is it possible to associate a hostgroup to a group of services ? > Let me explain briefly what i'm looking for : > > I have 3 hostsgroups with many services for each hostgroup. > I want to add a host in one of the hostgroup and automatically have the services > associated with > it. > I don't want to add services for this new host. > > Can Nagios do this ? > > Steve > > ___________________________________________________________ > Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran?ais ! > Yahoo! Mail : http://fr.mail.yahoo.com > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From irger at fh-rosenheim.de Fri Feb 7 17:28:50 2003 From: irger at fh-rosenheim.de (Armin Irger) Date: 07 Feb 2003 17:28:50 +0100 Subject: SOLVED Schedule An Immediate Check - I have rtfm and stfw no help In-Reply-To: <5DB017510818EC468B05BD7BD9EACF83030ED3C6@mismail.ena.com> References: <5DB017510818EC468B05BD7BD9EACF83030ED3C6@mismail.ena.com> Message-ID: <1044635335.668.16.camel@ntb00817> At the first time i changed the permissions by hand, but after a restart from nagios the problem appears because. 1. After the restart from nagios he creates the nagios.cmd like this. prw-rw---- 1 nagios nagios 0 Feb 7 17:11 nagios.cmd 2. The apache runs under nobody and if you follow the installation descriped on the "External Command File Permission" you add nobody to the nagiocmd group, and with the chown nagios.nagiocmd you give the rw-rights to the nagiocmd group. The apache can access the nagios/var/rw directory but he can't access the nagios.cmd, which is regenerated by a every restart of nagios, because nagios creates the nagios.cmd like above. 3. I make a chgrp nagios.nagios to the nagios/var/rw directory and added nobody back do the nagios group with usermod -G nagios nobody. 4. After every reboot nagios starts in the right way. ------ Armin On Fri, 2003-02-07 at 16:25, Marc Powell wrote: > Assuming that your apache installation runs as group 'nobody', what do > the permissions on the directories above /opt/nagios/var/rw look like? > If /opt/nagios were chmod 600, then the web server would not be able to > read rw, etc... You also might want to try restarting your web server > just in case. > > -- > Marc > > > -----Original Message----- > > From: Armin Irger [mailto:irger at fh-rosenheim.de] > > Sent: Friday, February 07, 2003 9:05 AM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Schedule An Immediate Check - I have rtfm and stfw > > no help > > > > Hi, > > i using debian woody 3.0r1 and compiled nagios from the source. Nagios > > is "jailed" in /opt/nagios-1.0 and accessing over a link /opt/nagios. > > > > nagios.cfg settings: > > > > check_external_commands=1 > > command_check_interval=-1 > > command_file=/opt/nagios/var/rw/nagios.cmd > > > > I setup the nagios.cmd file how it be descripted in the commandfile.html > > /usr/sbin/groupadd nagiocmd > > /usr/sbin/usermod -G nagiocmd nagios > > /usr/sbin/usermod -G nagiocmd nobody > > mkdir /opt/nagios/var/rw > > chown nagios.nagiocmd /opt/nagios/var/rw > > chmod u+rwx /opt/nagios/var/rw > > chmod g+rw /opt/nagios/var/rw > > chmod g+s /opt/nagios/var/rw > > > > The ls -l /opt/nagioss/var/ looks like > > drwxrwSr-- 2 nagios nagiocmd 4096 Feb 7 15:10 rw > > > > > > cgi.cfg settings: > > authorized_for_system_information=nagiosadmin > > authorized_for_configuration_information=nagiosadmin > > authorized_for_system_commands=nagiosadmin > > authorized_for_all_hosts=nagiosadmin,guest > > authorized_for_all_service_commands=nagiosadmin > > authorized_for_all_host_commands=nagiosadmin > > > > > > I'am logged in as nagiosadmin and when i try to start a "Schedule an > > immediate check of all services on this host" from the Host Command's i > > get this error back after i commit the command. > > > > Error: Could not stat() command file '/opt/nagios/var/rw/nagios.cmd'! > > > > The external command file may be missing, Nagios may not be running, > > and/or Nagios may not be checking external commands. > > > > An error occurred while attempting to commit your command for > > processing. > > > > > > Greetings > > Armin > > > > > > > > > > > > > > > > -- > > Wundere dich nicht da? du nicht ankommst, > > wenn du nicht wei?t wo du hin willst. > > > > ==================================================================== > > Fachhochschule Rosenheim > > Armin Irger > > Hochschulstr. 1 > > D-83024 Rosenheim > > Tel. +498031 805-532 > > Fax. +498041 805-519 > > ==================================================================== > > > > > > > > ------------------------------------------------------- > > This SF.NET email is sponsored by: > > SourceForge Enterprise Edition + IBM + LinuxWorld =omething 2 See! > > http://www.vasoftware.com > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users -- Wundere dich nicht da? du nicht ankommst, wenn du nicht wei?t wo du hin willst. ==================================================================== Fachhochschule Rosenheim Armin Irger Hochschulstr. 1 D-83024 Rosenheim Tel. +498031 805-532 Fax. +498041 805-519 ==================================================================== ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From irger at fh-rosenheim.de Fri Feb 7 17:31:30 2003 From: irger at fh-rosenheim.de (Armin Irger) Date: 07 Feb 2003 17:31:30 +0100 Subject: Thanks for your advices ! Schedule An Immediate Check - I have rtfm and stfw no help In-Reply-To: <5DB017510818EC468B05BD7BD9EACF83030ED3C6@mismail.ena.com> References: <5DB017510818EC468B05BD7BD9EACF83030ED3C6@mismail.ena.com> Message-ID: <1044635490.668.21.camel@ntb00817> -- Wundere dich nicht da? du nicht ankommst, wenn du nicht wei?t wo du hin willst. ==================================================================== Fachhochschule Rosenheim Armin Irger Hochschulstr. 1 D-83024 Rosenheim Tel. +498031 805-532 Fax. +498041 805-519 ==================================================================== ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From michael at gargantuan.com Fri Feb 7 17:33:02 2003 From: michael at gargantuan.com (Michael W. Oliver) Date: Fri, 7 Feb 2003 11:33:02 -0500 Subject: Services and hostgroups References: <20030207155428.50874.qmail@web10901.mail.yahoo.com> Message-ID: <007e01c2cec6$959ac5b0$e112d287@gargantuan.com> ----- Original Message ----- From: "Steve Dussaux" To: Sent: Friday, February 07, 2003 10:54 AM Subject: [Nagios-users] Services and hostgroups > Hi, > > Is it possible to associate a hostgroup to a group of services ? > Let me explain briefly what i'm looking for : > > I have 3 hostsgroups with many services for each hostgroup. > I want to add a host in one of the hostgroup and automatically have the services associated with > it. > I don't want to add services for this new host. > > Can Nagios do this ? > > Steve Yes, in the documentation, under advanced stuff, in the time-saving section... define service{ hostgroup_name HOSTGROUP1,HOSTGROUP2,...,HOSTGROUPN service_description SOMESERVICE other service directives ... } so, it seems that once you have the service set up to run on all hosts in a particular group, all you have to do from that point it add the hosts to the respective group. Please correct me if I am wrong. Thanks. -- ------------------------------------------------------------------------ Michael W. Oliver, CCNP | IPv6 & FreeBSD mizark | "The tree of liberty must be refreshed michael at gargantuan.com | from time to time with the blood of http://michael.gargantuan.com/ | patriots and tyrants." (via IPv4 and IPv6) | - President Thomas Jefferson IPv6 ASPathTree, Looking Glass | ------------------------------------------------------------------------ ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From GWCOOK at mactec.com Fri Feb 7 17:32:15 2003 From: GWCOOK at mactec.com (Cook, Garry) Date: Fri, 7 Feb 2003 09:32:15 -0700 Subject: Fwd: Re: Monitoring HP switches Message-ID: When I run this check I receive the following error message: awk: cmd. line:4: if ($1 == 2) {printf("Information - /dev/null | awk -F~ '{ if ($1 == 1) {print "OK";exit 0;} if ($1 == 2) {printf("Information - %s\n",ENVIRON["IP"],$2,$3); exit 1; } if ($1 == 3) {printf("Non-critical - %s\n",ENVIRON["IP"],$2,$3); exit 1; } if ($1 == 4) {printf("Critical - %s\n",ENVIRON["IP"],$2,$3); exit 1; } print "Unknown"; exit -1; }' ------------8<----------------------- Its based on a file that resides on the webserver of the switch with the status in it. Pawel Wojnicki zei: > Hey sure - I'd appreciate any help and info > > Pawel > >>Date: Fri, 7 Feb 2003 14:21:27 +0100 (CET) >>Subject: Re: [Nagios-users] Monitoring HP switches >>From: "Wim Fournier" >>To: >>Importance: Normal >>Reply-To: wim at hsmade.com >>X-Mailer: SquirrelMail (version 1.2.5) >>X-Spam-Status: No, hits=-3.1 required=5.0 >>tests=IN_REP_TO,MAY_BE_FORGED version=2.20 >>X-Spam-Level: >> >>Pawel Wojnicki zei: >> > Does anyone here have any experience in monitoring HP ethernet >> > switches? I figure you have to use check_snmp, but couldn't find >> > anything further in the faq or fm. >> >>even better, i hacked myself through the web management page and found >>a way to check for the status lamp in the left upper corner and create >>a link in the status field to the page with the error (if existant) >> >>contact me if you want it, it should be also somewhere on sourceforge >>as patch.. but can't remember where >> > >> > Pawel >> > >> > >> > >> > ------------------------------------------------------- >> > This SF.NET email is sponsored by: >> > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 >> > See! http://www.vasoftware.com >> > _______________________________________________ >> > Nagios-users mailing list Nagios-users at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/nagios-users >> >> >> >>Grtz, >> >>Wim Fournier >>wim at hsmade.[com|net|org] Grtz, Wim Fournier wim at hsmade.[com|net|org] ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From johnmc at johnmc.org Fri Feb 7 17:41:40 2003 From: johnmc at johnmc.org (John McDonnell) Date: Fri, 7 Feb 2003 08:41:40 -0800 (PST) Subject: Linux.gif bind into the cgi In-Reply-To: <001c01c2ce9a$69c50440$0300a8c0@workstation> References: <001c01c2ce9a$69c50440$0300a8c0@workstation> Message-ID: On the 7th day of February, Marcel Strerath said to me: > how can I bind my Linux40.gif into the Status Map? I have added in the > cgi.cfg follow line: > hostextinfo[srv1]=;linux40.gif;linux40.gif;linux40.gd2;linux40.gif;; . As I said last week on this very list: >From the FAQ[1] specifically about using cgi.cfg for extended info: Note that although this is call the "default" method for historical reasons, the CGIs default to using the template-based method (described below) unless you specifically compile them with this method. Look here instead: http://nagios.sourceforge.net/docs/1_0/xedtemplate.html I've done this and it works well, apart from the fact that I can't get any of my transparent .gd2 images to show up :( The ones supplied on the Nagios site show up just fine, my custom ones won't. I've tried generating them with several versions of the GD lib but to no avail. [1] http://nagios.sourceforge.net/docs/1_0/configextinfo.html johnmc. -- . johnmc@ | bucketchild.net - +1-408-985-7992 (home) . . http:// | johnmc.org - +1-408-386-3549 (cell) . -- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From irger at fh-rosenheim.de Fri Feb 7 17:49:51 2003 From: irger at fh-rosenheim.de (Armin Irger) Date: 07 Feb 2003 17:49:51 +0100 Subject: Services and hostgroups In-Reply-To: <20030207155428.50874.qmail@web10901.mail.yahoo.com> References: <20030207155428.50874.qmail@web10901.mail.yahoo.com> Message-ID: <1044636592.895.10.camel@ntb00817> Hmmm. You have so hostgroups like this. define hostgroup{ hostgroup_name Servers_Novell alias Servers Novell contact_groups novell-admins members fh_route.fh-rosenheim.de,kaputnix.inf.fh-rosenheim.de } And have your service defined like this. define service{ use generic-service ; Name hostgroup_name Servers_Novell, host_group-1, ... service_description PING is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups linux-admins notification_interval 120 notification_period 24x7 notification_options c,r check_command check_ping!100.0,20%!500.0,60% } You associate the service to the hostgroup. Now you can add hosts only to the hostgroup without special adding to the services. I'am not sure that i understand your problem "3 hostsgroups with many services for each hostgroup" ? ------- - Armin On Fri, 2003-02-07 at 16:54, Steve Dussaux wrote: > Hi, > > Is it possible to associate a hostgroup to a group of services ? > Let me explain briefly what i'm looking for : > > I have 3 hostsgroups with many services for each hostgroup. > I want to add a host in one of the hostgroup and automatically have the services associated with > it. > I don't want to add services for this new host. > > Can Nagios do this ? > > Steve > > ___________________________________________________________ > Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran?ais ! > Yahoo! Mail : http://fr.mail.yahoo.com > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users -- Wundere dich nicht da? du nicht ankommst, wenn du nicht wei?t wo du hin willst. ==================================================================== Fachhochschule Rosenheim Armin Irger Hochschulstr. 1 D-83024 Rosenheim Tel. +498031 805-532 Fax. +498041 805-519 ==================================================================== ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From GWCOOK at mactec.com Fri Feb 7 18:06:06 2003 From: GWCOOK at mactec.com (Cook, Garry) Date: Fri, 7 Feb 2003 10:06:06 -0700 Subject: SOLVED RE: Fwd: Re: Monitoring HP switches Message-ID: My mistake. When I cut/pasted the code from your original email some of the lines were wrapped. Garry W. Cook, CCNA Network Infrastructure Manager MACTEC, Inc. - http://www.mactec.com/ 303.308.6228 (Office) - 303.881.5157 (Mobile) -----Original Message----- From: Cook, Garry Sent: Friday, February 07, 2003 9:32 AM To: 'wim at hsmade.com'; wojnicki at asw.waw.pl Cc: nagios-users at lists.sourceforge.net Subject: RE: Fwd: Re: [Nagios-users] Monitoring HP switches When I run this check I receive the following error message: awk: cmd. line:4: if ($1 == 2) {printf("Information - /dev/null | awk -F~ '{ if ($1 == 1) {print "OK";exit 0;} if ($1 == 2) {printf("Information - %s\n",ENVIRON["IP"],$2,$3); exit 1; } if ($1 == 3) {printf("Non-critical - %s\n",ENVIRON["IP"],$2,$3); exit 1; } if ($1 == 4) {printf("Critical - %s\n",ENVIRON["IP"],$2,$3); exit 1; } print "Unknown"; exit -1; }' ------------8<----------------------- Its based on a file that resides on the webserver of the switch with the status in it. Pawel Wojnicki zei: > Hey sure - I'd appreciate any help and info > > Pawel > >>Date: Fri, 7 Feb 2003 14:21:27 +0100 (CET) >>Subject: Re: [Nagios-users] Monitoring HP switches >>From: "Wim Fournier" >>To: >>Importance: Normal >>Reply-To: wim at hsmade.com >>X-Mailer: SquirrelMail (version 1.2.5) >>X-Spam-Status: No, hits=-3.1 required=5.0 >>tests=IN_REP_TO,MAY_BE_FORGED version=2.20 >>X-Spam-Level: >> >>Pawel Wojnicki zei: >> > Does anyone here have any experience in monitoring HP ethernet >> > switches? I figure you have to use check_snmp, but couldn't find >> > anything further in the faq or fm. >> >>even better, i hacked myself through the web management page and found >>a way to check for the status lamp in the left upper corner and create >>a link in the status field to the page with the error (if existant) >> >>contact me if you want it, it should be also somewhere on sourceforge >>as patch.. but can't remember where >> > >> > Pawel >> > >> > >> > >> > ------------------------------------------------------- >> > This SF.NET email is sponsored by: >> > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 >> > See! http://www.vasoftware.com >> > _______________________________________________ >> > Nagios-users mailing list Nagios-users at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/nagios-users >> >> >> >>Grtz, >> >>Wim Fournier >>wim at hsmade.[com|net|org] Grtz, Wim Fournier wim at hsmade.[com|net|org] ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From michael at gargantuan.com Fri Feb 7 18:42:47 2003 From: michael at gargantuan.com (Michael W. Oliver) Date: Fri, 7 Feb 2003 12:42:47 -0500 Subject: Schedule An Immediate Check - I have rtfm and stfw no help References: <1044630282.1070.35.camel@ntb00817> <005b01c2cec2$de18cde0$e112d287@gargantuan.com> Message-ID: <009901c2ced0$53c0d120$e112d287@gargantuan.com> more information... # ls /usr/local/nagios/var/rw total 2 drwxrwS--- 2 nagios nagiocmd 512 Feb 5 15:11 ./ drwxrwxr-x 4 nagios nagios 512 Feb 7 12:41 ../ prw-rw---- 1 nagios nagiocmd 0 Feb 5 15:11 nagios.cmd| # grep nagiocmd /etc/group nagiocmd:*:55554:nagios,nobody Now, I see in the 'SOLVED' reply that the 'nagios.cmd' file was created by the Nagios process with nagios:nagios ownership, but mine isn't created that way. As you can see above, my nagios.cmd file is created with nagios:nagiocmd ownership. You can also see that 'nobody' is part of the 'nagiocmd' group, which _should_ give 'nobody' rw access to the nagios.cmd file. Even so, I still receive that error when trying to execute a command from the browser. BAH! In addition, in the 'SOLVED' reply, it looks like the user 'nobody' was added to the 'nagios' group, effectively eliminating the need for the 'nagiocmd' group. Isn't this insecure, putting the 'nobody' user in the 'nagios' group, effectively giving that user permission to everything that Nagios has permission to? I was under the impression that the whole purpose of creating the new group was to limit the access of the 'nobody' user. What am I missing? Thanks! -- ------------------------------------------------------------------------ Michael W. Oliver, CCNP | IPv6 & FreeBSD mizark | "The tree of liberty must be refreshed michael at gargantuan.com | from time to time with the blood of http://michael.gargantuan.com/ | patriots and tyrants." (via IPv4 and IPv6) | - President Thomas Jefferson IPv6 ASPathTree, Looking Glass | ------------------------------------------------------------------------ ----- Original Message ----- From: "Michael W. Oliver" To: Sent: Friday, February 07, 2003 11:06 AM Subject: Re: [Nagios-users] Schedule An Immediate Check - I have rtfm and stfw no help I am receiving the exact same error while trying this on my FreeBSD server. I followed the FAQ instructions to the letter, and all permissions are just as they should be, and 'nobody' is in the 'nagiocmd' group. Still no joy... -- ------------------------------------------------------------------------ Michael W. Oliver, CCNP | IPv6 & FreeBSD mizark | "The tree of liberty must be refreshed michael at gargantuan.com | from time to time with the blood of http://michael.gargantuan.com/ | patriots and tyrants." (via IPv4 and IPv6) | - President Thomas Jefferson IPv6 ASPathTree, Looking Glass | ------------------------------------------------------------------------ ----- Original Message ----- From: "Armin Irger" To: Sent: Friday, February 07, 2003 10:04 AM Subject: [Nagios-users] Schedule An Immediate Check - I have rtfm and stfw no help Hi, i using debian woody 3.0r1 and compiled nagios from the source. Nagios is "jailed" in /opt/nagios-1.0 and accessing over a link /opt/nagios. nagios.cfg settings: check_external_commands=1 command_check_interval=-1 command_file=/opt/nagios/var/rw/nagios.cmd I setup the nagios.cmd file how it be descripted in the commandfile.html /usr/sbin/groupadd nagiocmd /usr/sbin/usermod -G nagiocmd nagios /usr/sbin/usermod -G nagiocmd nobody mkdir /opt/nagios/var/rw chown nagios.nagiocmd /opt/nagios/var/rw chmod u+rwx /opt/nagios/var/rw chmod g+rw /opt/nagios/var/rw chmod g+s /opt/nagios/var/rw The ls -l /opt/nagioss/var/ looks like drwxrwSr-- 2 nagios nagiocmd 4096 Feb 7 15:10 rw cgi.cfg settings: authorized_for_system_information=nagiosadmin authorized_for_configuration_information=nagiosadmin authorized_for_system_commands=nagiosadmin authorized_for_all_hosts=nagiosadmin,guest authorized_for_all_service_commands=nagiosadmin authorized_for_all_host_commands=nagiosadmin I'am logged in as nagiosadmin and when i try to start a "Schedule an immediate check of all services on this host" from the Host Command's i get this error back after i commit the command. Error: Could not stat() command file '/opt/nagios/var/rw/nagios.cmd'! The external command file may be missing, Nagios may not be running, and/or Nagios may not be checking external commands. An error occurred while attempting to commit your command for processing. Greetings Armin -- Wundere dich nicht da? du nicht ankommst, wenn du nicht wei?t wo du hin willst. ==================================================================== Fachhochschule Rosenheim Armin Irger Hochschulstr. 1 D-83024 Rosenheim Tel. +498031 805-532 Fax. +498041 805-519 ==================================================================== ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld =omething 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld =omething 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From rich at vel.net Fri Feb 7 18:54:27 2003 From: rich at vel.net (Richard Gross) Date: Fri, 7 Feb 2003 09:54:27 -0800 Subject: SOLVED Schedule An Immediate Check - I have rtfmand stfw no help Message-ID: <52183F243CF19E44A1166F250311C34B5B2BE7@cheddarcheese.vel.net> Awsome job Armin, that was bugging me too and you solved it! richg -----Original Message----- From: Armin Irger [mailto:irger at fh-rosenheim.de] Sent: Friday, February 07, 2003 8:29 AM To: Marc Powell Cc: nagios-users at lists.sourceforge.net; nagios at nagios.org Subject: SOLVED [Nagios-users] Schedule An Immediate Check - I have rtfmand stfw no help At the first time i changed the permissions by hand, but after a restart from nagios the problem appears because. 1. After the restart from nagios he creates the nagios.cmd like this. prw-rw---- 1 nagios nagios 0 Feb 7 17:11 nagios.cmd 2. The apache runs under nobody and if you follow the installation descriped on the "External Command File Permission" you add nobody to the nagiocmd group, and with the chown nagios.nagiocmd you give the rw-rights to the nagiocmd group. The apache can access the nagios/var/rw directory but he can't access the nagios.cmd, which is regenerated by a every restart of nagios, because nagios creates the nagios.cmd like above. 3. I make a chgrp nagios.nagios to the nagios/var/rw directory and added nobody back do the nagios group with usermod -G nagios nobody. 4. After every reboot nagios starts in the right way. ------ Armin On Fri, 2003-02-07 at 16:25, Marc Powell wrote: > Assuming that your apache installation runs as group 'nobody', what do > the permissions on the directories above /opt/nagios/var/rw look like? > If /opt/nagios were chmod 600, then the web server would not be able to > read rw, etc... You also might want to try restarting your web server > just in case. > > -- > Marc > > > -----Original Message----- > > From: Armin Irger [mailto:irger at fh-rosenheim.de] > > Sent: Friday, February 07, 2003 9:05 AM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Schedule An Immediate Check - I have rtfm and stfw > > no help > > > > Hi, > > i using debian woody 3.0r1 and compiled nagios from the source. Nagios > > is "jailed" in /opt/nagios-1.0 and accessing over a link /opt/nagios. > > > > nagios.cfg settings: > > > > check_external_commands=1 > > command_check_interval=-1 > > command_file=/opt/nagios/var/rw/nagios.cmd > > > > I setup the nagios.cmd file how it be descripted in the commandfile.html > > /usr/sbin/groupadd nagiocmd > > /usr/sbin/usermod -G nagiocmd nagios > > /usr/sbin/usermod -G nagiocmd nobody > > mkdir /opt/nagios/var/rw > > chown nagios.nagiocmd /opt/nagios/var/rw > > chmod u+rwx /opt/nagios/var/rw > > chmod g+rw /opt/nagios/var/rw > > chmod g+s /opt/nagios/var/rw > > > > The ls -l /opt/nagioss/var/ looks like > > drwxrwSr-- 2 nagios nagiocmd 4096 Feb 7 15:10 rw > > > > > > cgi.cfg settings: > > authorized_for_system_information=nagiosadmin > > authorized_for_configuration_information=nagiosadmin > > authorized_for_system_commands=nagiosadmin > > authorized_for_all_hosts=nagiosadmin,guest > > authorized_for_all_service_commands=nagiosadmin > > authorized_for_all_host_commands=nagiosadmin > > > > > > I'am logged in as nagiosadmin and when i try to start a "Schedule an > > immediate check of all services on this host" from the Host Command's i > > get this error back after i commit the command. > > > > Error: Could not stat() command file '/opt/nagios/var/rw/nagios.cmd'! > > > > The external command file may be missing, Nagios may not be running, > > and/or Nagios may not be checking external commands. > > > > An error occurred while attempting to commit your command for > > processing. > > > > > > Greetings > > Armin > > > > > > > > > > > > > > > > -- > > Wundere dich nicht da? du nicht ankommst, > > wenn du nicht wei?t wo du hin willst. > > > > ==================================================================== > > Fachhochschule Rosenheim > > Armin Irger > > Hochschulstr. 1 > > D-83024 Rosenheim > > Tel. +498031 805-532 > > Fax. +498041 805-519 > > ==================================================================== > > > > > > > > ------------------------------------------------------- > > This SF.NET email is sponsored by: > > SourceForge Enterprise Edition + IBM + LinuxWorld =omething 2 See! > > http://www.vasoftware.com > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users -- Wundere dich nicht da? du nicht ankommst, wenn du nicht wei?t wo du hin willst. ==================================================================== Fachhochschule Rosenheim Armin Irger Hochschulstr. 1 D-83024 Rosenheim Tel. +498031 805-532 Fax. +498041 805-519 ==================================================================== ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld =omething 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcarro10 at sprintspectrum.com Fri Feb 7 19:00:10 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 7 Feb 2003 12:00:10 -0600 Subject: Feature request: alias for an service Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E145A@PKDWB03C.ad.sprint.com> Why not use serviceextinfo.cfg and the notes_url feature for this? jc > -----Original Message----- > From: Fredrik W?nglund [mailto:Fredrik.Wanglund at datavis.se] > Sent: Friday, February 07, 2003 12:33 AM > To: nagios > Subject: [Nagios-users] Feature request: alias for an service > > > > Should it be possible to allow the 'alias' keyword in a > service-definition and to show it on the service-information page? > I have hosts where different people are responible for > different services. It would be great if I could see the name > of that persion when I looked at a service... > > > > /FredrikW > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jcarro10 at sprintspectrum.com Fri Feb 7 19:12:01 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 7 Feb 2003 12:12:01 -0600 Subject: Linux.gif bind into the cgi Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E145B@PKDWB03C.ad.sprint.com> For starters, you can rewrite your configuration to use the template-based method: http://nagios.sourceforge.net/docs/1_0/xodtemplate.html jc -----Original Message----- From: Marcel Strerath [mailto:strerath at 4all-networks.de] Sent: Friday, February 07, 2003 5:17 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Linux.gif bind into the cgi Hi, how can I bind my Linux40.gif into the Status Map? I have added in the cgi.cfg follow line: hostextinfo[srv1]=;linux40.gif;linux40.gif;linux40.gd2;linux40.gif;; . What I must do too? ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jcarro10 at sprintspectrum.com Fri Feb 7 19:58:39 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 7 Feb 2003 12:58:39 -0600 Subject: SOLVED Schedule An Immediate Check - I have r tfmand stfw no help Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E145F@PKDWB03C.ad.sprint.com> That's great that it worked for Armin, but it's not the prescribed approach: http://nagios.sourceforge.net/docs/1_0/commandfile.html jc -----Original Message----- From: Richard Gross [mailto:rich at vel.net] Sent: Friday, February 07, 2003 11:54 AM Cc: nagios-users at lists.sourceforge.net Subject: RE: SOLVED [Nagios-users] Schedule An Immediate Check - I have rtfmand stfw no help Awsome job Armin, that was bugging me too and you solved it! richg -----Original Message----- From: Armin Irger [mailto:irger at fh-rosenheim.de] Sent: Friday, February 07, 2003 8:29 AM To: Marc Powell Cc: nagios-users at lists.sourceforge.net; nagios at nagios.org Subject: SOLVED [Nagios-users] Schedule An Immediate Check - I have rtfmand stfw no help At the first time i changed the permissions by hand, but after a restart from nagios the problem appears because. 1. After the restart from nagios he creates the nagios.cmd like this. prw-rw---- 1 nagios nagios 0 Feb 7 17:11 nagios.cmd 2. The apache runs under nobody and if you follow the installation descriped on the "External Command File Permission" you add nobody to the nagiocmd group, and with the chown nagios.nagiocmd you give the rw-rights to the nagiocmd group. The apache can access the nagios/var/rw directory but he can't access the nagios.cmd, which is regenerated by a every restart of nagios, because nagios creates the nagios.cmd like above. 3. I make a chgrp nagios.nagios to the nagios/var/rw directory and added nobody back do the nagios group with usermod -G nagios nobody. 4. After every reboot nagios starts in the right way. ------ Armin On Fri, 2003-02-07 at 16:25, Marc Powell wrote: > Assuming that your apache installation runs as group 'nobody', what do > the permissions on the directories above /opt/nagios/var/rw look like? > If /opt/nagios were chmod 600, then the web server would not be able to > read rw, etc... You also might want to try restarting your web server > just in case. > > -- > Marc > > > -----Original Message----- > > From: Armin Irger [mailto:irger at fh-rosenheim.de] > > Sent: Friday, February 07, 2003 9:05 AM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Schedule An Immediate Check - I have rtfm and stfw > > no help > > > > Hi, > > i using debian woody 3.0r1 and compiled nagios from the source. Nagios > > is "jailed" in /opt/nagios-1.0 and accessing over a link /opt/nagios. > > > > nagios.cfg settings: > > > > check_external_commands=1 > > command_check_interval=-1 > > command_file=/opt/nagios/var/rw/nagios.cmd > > > > I setup the nagios.cmd file how it be descripted in the commandfile.html > > /usr/sbin/groupadd nagiocmd > > /usr/sbin/usermod -G nagiocmd nagios > > /usr/sbin/usermod -G nagiocmd nobody > > mkdir /opt/nagios/var/rw > > chown nagios.nagiocmd /opt/nagios/var/rw > > chmod u+rwx /opt/nagios/var/rw > > chmod g+rw /opt/nagios/var/rw > > chmod g+s /opt/nagios/var/rw > > > > The ls -l /opt/nagioss/var/ looks like > > drwxrwSr-- 2 nagios nagiocmd 4096 Feb 7 15:10 rw > > > > > > cgi.cfg settings: > > authorized_for_system_information=nagiosadmin > > authorized_for_configuration_information=nagiosadmin > > authorized_for_system_commands=nagiosadmin > > authorized_for_all_hosts=nagiosadmin,guest > > authorized_for_all_service_commands=nagiosadmin > > authorized_for_all_host_commands=nagiosadmin > > > > > > I'am logged in as nagiosadmin and when i try to start a "Schedule an > > immediate check of all services on this host" from the Host Command's i > > get this error back after i commit the command. > > > > Error: Could not stat() command file '/opt/nagios/var/rw/nagios.cmd'! > > > > The external command file may be missing, Nagios may not be running, > > and/or Nagios may not be checking external commands. > > > > An error occurred while attempting to commit your command for > > processing. > > > > > > Greetings > > Armin > > > > > > > > > > > > > > > > -- > > Wundere dich nicht da? du nicht ankommst, > > wenn du nicht wei?t wo du hin willst. > > > > ==================================================================== > > Fachhochschule Rosenheim > > Armin Irger > > Hochschulstr. 1 > > D-83024 Rosenheim > > Tel. +498031 805-532 > > Fax. +498041 805-519 > > ==================================================================== > > > > > > > > ------------------------------------------------------- > > This SF.NET email is sponsored by: > > SourceForge Enterprise Edition + IBM + LinuxWorld =omething 2 See! > > http://www.vasoftware.com > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users -- Wundere dich nicht da? du nicht ankommst, wenn du nicht wei?t wo du hin willst. ==================================================================== Fachhochschule Rosenheim Armin Irger Hochschulstr. 1 D-83024 Rosenheim Tel. +498031 805-532 Fax. +498041 805-519 ==================================================================== ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld =omething 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jcarro10 at sprintspectrum.com Fri Feb 7 20:22:04 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 7 Feb 2003 13:22:04 -0600 Subject: 3D statusmap Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1461@PKDWB03C.ad.sprint.com> That's what I think the problem is (depending on what version of Nagios you're running). What do you have default_statusmap_layout set for in cgi.cfg? If you have it set for 0, change it to one of the other values, restart nagios and see if that makes a difference. jc -----Original Message----- From: Marc Powell [mailto:mpowell at ena.com] Sent: Friday, February 07, 2003 8:40 AM To: Thomas.Nilsen at roxar.com; wim at hsmade.com Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] 3D statusmap I seem to remember some discussion of periods in names being a problem. Is that applicable? You might find something in the archives to confirm that. -- Marc Sent from a very tiny wireless device with a very tiny unlit keyboard. -----Original Message----- From: Thomas Nilsen To: wim at hsmade.com CC: nagios-users at lists.sourceforge.net Sent: Fri Feb 07 08:21:15 2003 Subject: RE: [Nagios-users] 3D statusmap That's my "AI" hands trying to clever. :-) The comma is not in /etc/mime.types So this has to be for some other reason.... >-----Original Message----- >From: Wim Fournier [mailto:wim at hsmade.com] >Sent: Friday, February 07, 2003 3:19 PM >To: Thomas Nilsen >Cc: nagios-users at lists.sourceforge.net >Subject: RE: [Nagios-users] 3D statusmap > > >Thomas Nilsen zei: >> "model/vrml wrl,vrml" is already listed in /etc/mime.types... >its supposed to be "model/vrml wrl vrml" for apache. dont >know if you put >that comma there yourself, or that its normal for windows or something. > > >> >>>-----Original Message----- >>>From: Wim Fournier [mailto:wim at hsmade.com] >>>Sent: Friday, February 07, 2003 2:49 PM >>>To: Thomas Nilsen >>>Cc: nagios-users at lists.sourceforge.net >>>Subject: RE: [Nagios-users] 3D statusmap >>> >>> >>>mime-types maybe? >>> >>>Thomas Nilsen zei: >>>> I don't thinl it is a plugin issue, as the demo site for >Nagios works >>>> well when trying out the 3D statusmap. It's got to be >>>something with my >>>> Nagios setup. >>>> >>>>>-----Original Message----- >>>>>From: Wibo Lammerts [mailto:Wibo.Lammerts at hmg.nl] >>>>>Sent: Friday, February 07, 2003 2:24 PM >>>>>To: Thomas Nilsen; Pawel Wojnicki; >nagios-users at lists.sourceforge.net >>>>>Subject: RE: [Nagios-users] 3D statusmap >>>>> >>>>> >>>>>download the Cortona VRML viewer for Netscape/ie. that will do >>>>>the trick >>>>> >>>>>-----Original Message----- >>>>>From: Thomas Nilsen [mailto:Thomas.Nilsen at roxar.com] >>>>>Sent: vrijdag 7 februari 2003 13:57 >>>>>To: Pawel Wojnicki; nagios-users at lists.sourceforge.net >>>>>Subject: RE: [Nagios-users] 3D statusmap >>>>> >>>>> >>>>>This is the same issue as I did a post on earlier this week. >>>>>So far I've not >>>>>been able to solve it... >>>>> >>>>>>-----Original Message----- >>>>>>From: Pawel Wojnicki [mailto:wojnicki at asw.waw.pl] >>>>>>Sent: Friday, February 07, 2003 1:36 PM >>>>>>To: nagios-users at lists.sourceforge.net >>>>>>Subject: [Nagios-users] 3D statusmap >>>>>> >>>>>> >>>>>>When I click on the "3d statusmap" link my browser asks me, if I >>>>>>want to >>>>>>open it or download (statuswrl.cgi?host=all). >>>>>>When I select "open", it's not accessible. >>>>>>I tried it with cortona wrml viewer and cosmoplayer - no dice. Any >>>>>>suggestions? >>>>>> >>>>>>Pawel >>>>>> >>>>>> >>>>>> >>>>>>------------------------------------------------------- >>>>>>This SF.NET email is sponsored by: >>>>>>SourceForge Enterprise Edition + IBM + LinuxWorld = >Something 2 See! >>>>>>http://www.vasoftware.com >>>>>>_______________________________________________ >>>>>>Nagios-users mailing list >>>>>>Nagios-users at lists.sourceforge.net >>>>>>https://lists.sourceforge.net/lists/listinfo/nagios-users >>>>>> >>>>> >>>>> >>>>>DISCLAIMER: >>>>>This message contains information that may be privileged or >>>>>confidential and >>>>>is the property of the Roxar Group. It is intended only for >>>>>the person to >>>>>whom it is addressed. If you are not the intended recipient, >>>>>you are not >>>>>authorised to read, print, retain, copy, disseminate, >>>>>distribute, or use >>>>>this message or any part thereof. If you receive this >>>message in error, >>>>>please notify the sender immediately and delete all copies of >>>>>this message. >>>>> >>>>> >>>>>------------------------------------------------------- >>>>>This SF.NET email is sponsored by: >>>>>SourceForge Enterprise Edition + IBM + LinuxWorld = >Something 2 See! >>>>>http://www.vasoftware.com >>>>>_______________________________________________ >>>>>Nagios-users mailing list >>>>>Nagios-users at lists.sourceforge.net >>>>>https://lists.sourceforge.net/lists/listinfo/nagios-users >>>>> >>>> >>>> >>>> DISCLAIMER: >>>> This message contains information that may be privileged or >>>> confidential and is the property of the Roxar Group. It is intended >>>> only for the person to whom it is addressed. If you are not the >>>> intended recipient, you are not authorised to read, print, retain, >>>> copy, disseminate, distribute, or use this message or any >>>part thereof. >>>> If you receive this message in error, please notify the sender >>>> immediately and delete all copies of this message. >>>> >>>> >>>> ------------------------------------------------------- >>>> This SF.NET email is sponsored by: >>>> SourceForge Enterprise Edition + IBM + LinuxWorld = >Something 2 See! >>>> http://www.vasoftware.com >>>> _______________________________________________ >>>> Nagios-users mailing list >>>> Nagios-users at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/nagios-users >>> >>> >>> >>>Grtz, >>> >>>Wim Fournier >>>wim at hsmade.[com|net|org] >>> >>> >>> >> >> >> DISCLAIMER: >> This message contains information that may be privileged or >> confidential and is the property of the Roxar Group. It is intended >> only for the person to whom it is addressed. If you are not the >> intended recipient, you are not authorised to read, print, retain, >> copy, disseminate, distribute, or use this message or any >part thereof. >> If you receive this message in error, please notify the sender >> immediately and delete all copies of this message. >> >> >> ------------------------------------------------------- >> This SF.NET email is sponsored by: >> SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >> http://www.vasoftware.com >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users > > > >Grtz, > >Wim Fournier >wim at hsmade.[com|net|org] > > > DISCLAIMER: This message contains information that may be privileged or confidential and is the property of the Roxar Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorised to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld =omething 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From rich at vel.net Fri Feb 7 20:31:33 2003 From: rich at vel.net (Richard Gross) Date: Fri, 7 Feb 2003 11:31:33 -0800 Subject: website transaction monitor / simple web form Message-ID: <52183F243CF19E44A1166F250311C34B047771@cheddarcheese.vel.net> Wondering what can be done to use Nagios to check a simple webform? Maybe some modifiction of the wget that checked the hp switches? The opening page has:

Welcome to CommuniGate Pro,
the test.net Messaging Server!

Registered Users

Login Name Password

and would like to supply a username and password to this form, then check for a text string INBOX would be all that's required. I did try the command: wget -r --http-user=chris at test.net --http-passwd=chris06 http://webmail.test.net but only got back the index page... Not really sure how to proceed from here. richg -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcarro10 at sprintspectrum.com Fri Feb 7 20:31:21 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 7 Feb 2003 13:31:21 -0600 Subject: Nagios reply notifications to acknowledge Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1463@PKDWB03C.ad.sprint.com> Off the top of my head, I'd say you could write something which uses: - /etc/aliases (redirecting mail destined for 'nagios' and piping it to a script) - procmail (optional) - a script that you write - awareness of how to pipe commands into nagios.cmd, which I believe are available in the FAQ over on www.nagios.org. HTH. jc > -----Original Message----- > From: Dan Knoblauch [mailto:dan at lanworksco.com] > Sent: Friday, February 07, 2003 10:19 AM > To: Nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Nagios reply notifications to acknowledge > > > Hello all and good day! > > > > I have been looking for a mechanism that will allow me to 'reply' to > nagios notifications via email with an acknowledgement. > Often I am away > from the office and I receive notifications on host/service outages on > my cell phone. I have used another monitoring utility called "Big > Brother" that had this capability. Outside of writing my own > handler to > do this, does anyone out there know if this is possible? I > have scoured > the documentation and the mailing lists and newsgroups and > haven't seen > even a small mention of this. Does this capability exist? > > > > You assistance is greatly appreciated. > > > > Dan. > > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jcarro10 at sprintspectrum.com Fri Feb 7 20:29:12 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 7 Feb 2003 13:29:12 -0600 Subject: workstations Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1462@PKDWB03C.ad.sprint.com> I did a major push of new service definitions to 50+ hosts last night. We're now monitoring 127 hosts, 1777 services. And a *lot* of servicedependencies. For starters, I'm using the cfg_dir directive in nagios.cfg. Then for each host out there, I have a file (eg, host fizzgig would have the filename fizzgig.cfg). Within that file exists the host definition and all the service definitions. I created a template file containing the services I wanted to add to all these hosts, but with "XXXXXXXX" instead of any particular hostname. Then with a bit of some shell scripting, using a 'for' loop and 'sed', I was able to massage then append to all the files I was interested in. This definitely cut down on the keystrokes and the 'oops' factor. Not sure if this was what you were asking.... jc > -----Original Message----- > From: Tom DE BLENDE [mailto:tdeblend at gcc.dhl.com] > Sent: Friday, February 07, 2003 9:05 AM > To: Potter G M (Greg) > Cc: Don Schultz; nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] workstations > > > I imagine you don't have a large environment then? And if you do > (let's say 500+ users), how do you add all this data into Nagios? > > An interesting thread. > > "Potter, G M (Greg)" wrote: > > > > We watch our workstations. It is helpful to know if your users > > are having a problem before you get the call. Often I can be in the > > office of a client with a down workstation and fix the > problem before > > they know they have one. That improves PR and customer > satisfaction. > > > > Greg > > > > > -----Original Message----- > > > From: Don Schultz [mailto:don_schultz at panvera.com] > > > Sent: Thursday, February 06, 2003 5:39 PM > > > To: nagios-users at lists.sourceforge.net > > > Subject: [Nagios-users] workstations > > > > > > > > > Are any of you checking workstations? Just asking for fun > to see if > > > anyone is. > > > Thanks, > > > > > > -- > > > Don Schultz | Panvera Corporation > > > Unix Administrator | 501 Charmany Drive > > > ph: 608.204.5060 | Madison, WI 53719 > > > fax: 608.204.5061 | > > > ------------------------------------------ > > > pgp: B0 F8 40 8F 66 E2 3B CF 5B BE F4 8C > > > F8 75 25 B9 04 AF 67 A3 > > > > > > > > > ------------------------------------------------------- > > > This SF.NET email is sponsored by: > > > SourceForge Enterprise Edition + IBM + LinuxWorld =omething 2 See! > > > http://www.vasoftware.com > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > ------------------------------------------------------- > > This SF.NET email is sponsored by: > > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > > http://www.vasoftware.com > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jason at cannonfodder.org Fri Feb 7 07:15:34 2003 From: jason at cannonfodder.org (Jason Burnett) Date: Fri, 7 Feb 2003 00:15:34 -0600 Subject: Fwd: Distributed checking In-Reply-To: <3E428429.8090302@anvil.org> References: <20030205190117.GA11410@cannonfodder.org> <200302060919.08408.jasmine.chua@securecirt.com> <200302061003.06319.jasmine.chua@securecirt.com> <200302061302.17747.jasmine.chua@securecirt.com> <3E420844.7000407@mindsw.com> <3E428429.8090302@anvil.org> Message-ID: <20030207061534.GA16388@cannonfodder.org> I am still having this issue. I want it to perform the freshness check because I need to know if it is not getting the results from the passive server, so I set freshness threshold to 500, just to get it out there. Now, my passive server sends the results, the primary shows green, then goes red and in the log on the primary server I can see where it is trying to test the server itself. my check interval on teh passive server is set to 1. Any other suggestions? Does anyone have this working successfully? Which version of nagios? What is your freshness interval setting? I am an the edge of getting this implemented as our new production monitoring system, I just have to get this issue ironed out. on Thu Feb 06 Andrew Meredith spoke forth with the blessed manuscript > This is the same problem I described under: > Subject: Distributed Checks > Date: 2003-02-04 1512 > In that mail I confirm that if you were to do this, then the server > would indeed stop performing active checks .. which is what I want, as > the central server cannot successfully perform the checks from it's IP > address. > However, it doesn't then do anything else either. > I was expecting it to mark the service as unknown or down or somethng, > it just keeps on displaying the last service status that it received. > Andy M > Atul Gosain wrote: > >Hi > > > >The problem is simple. > >U have check_freshness variable set to 1. The effect of this is that > >whenever the passive service results does not reach nagios for some time > >(freshness_threshold ), it considers the result as stale and starts > >checking actively for that service. If u want that active checks are not > >executed when passive results are stale, then disable check_freshness > >variable. > >Just tell me in case ur problem is solved. > > > >Thanks > >Atul > > > >Jasmine wrote: > > > >>-----BEGIN PGP SIGNED MESSAGE----- > >>Hash: SHA1 > >> > >>HI all.. i m still having this problem sorry. i thought i made a > >>config mistake, but that does not solve the problem. > >> > >> > >>>>just a note that I am having about the same problem as you. Anyone has > >>>>any ideas? > >>>> > >>>>On Wednesday 05 February 2003 19:01, Jason Burnett wrote: > >>>> > >>>> > >>>>>o.k. I am using the distributed method with passive checks to monitor > >>>>>some hosts I have behind a firewall that I dont want to punch holes > >>>>>in. > >>>>>For some reason my central nagios server keeps running active > >>>>>checks on > >>>>>the hosts even though I have that disabled on a per service instance. > >>>>>So I end up with the service up when it gets the info via the passive > >>>>>tests then it goes critical when the central server tries to check it > >>>>>with an active test. Here is the service config from the central > >>>>>server: > >>>>> > >>>>>define service{ > >>>>> host_name pinky > >>>>> service_description SSH > >>>>> check_command check_ssh > >>>>> max_check_attempts 2 > >>>>> normal_check_interval 5 > >>>>> retry_check_interval 5 > >>>>> passive_checks_enabled 1 > >>>>> active_checks_enabled 0 > >>>>> check_period 24x7 > >>>>> flap_detection_enabled 1 > >>>>> process_perf_data 1 > >>>>> retain_status_information 1 > >>>>> retain_nonstatus_information 1 > >>>>> notification_interval 1 > >>>>> notification_period 24x7 > >>>>> notification_options w,u,c,r > >>>>> notifications_enabled 1 > >>>>> check_freshness 1 > >>>>> freshness_threshold 180 > >>>>> contact_groups admins > >>>>>} > >>>>> > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users -- begin .signature This is a .signature virus! Please copy me into your .signature! See Microsoft KB Article Q265230 for more information. end ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jason at cannonfodder.org Fri Feb 7 07:17:09 2003 From: jason at cannonfodder.org (Jason Burnett) Date: Fri, 7 Feb 2003 00:17:09 -0600 Subject: host - a service In-Reply-To: <3E430DF1.6030200@anvil.org> References: <20030204035141.GA31963@cannonfodder.org> <3E430DF1.6030200@anvil.org> Message-ID: <20030207061709.GB16388@cannonfodder.org> Well, I just checked nagios into our CVS repository so i can start making some patches. I also need a way to give someone access to view all information about a host/service, only not be able to disable alerts or testing. Am I missing something simple or is this functionality not currently in the software? on Fri Feb 07 Andrew Meredith spoke forth with the blessed manuscript > Hi Jason, > I have been scouting around that area of the code myself just recently, > after trying to do something to yourself. > As far as I can tell, there is nothing that will do exactly what you > want, but it will get quite close. You will still have the service in > the system, but it will be switched off ... the same as if you didn't > mention the lack of this service on this particular host and then > switched it off through the interface. > There are 3 parameter names that seem to have something to do with this > function. > enable_active_checks > -------------------- > $ fgrep -rl enable_active_checks . > ./html/docs/distributed.html > This appears to be something that is either going to be and hasn't yet, > or used to be and hasn't been trimmed out of the docs yet .. either that > or its a typo :) > active_checks_enabled > --------------------- > This is service template parameter that has support all through the > template reading and writing stuff and in the examples and convertcfg > program. > However .. > checks_enabled > -------------- > ... is what it becomes when an xodtemplate_service structure is used to > initialise a service structure using set_service_state_information() in > xdata/xrddefault.c:593. > (It is also a parameter at the host level where it keeps it's name the > whole way through and would seem to be involved in host level checks.) > Why have just gone through all this ? .. two reasons. > 1 - I would be very grateful if someone who actually has a clue (unlike > myself) would please have a look through the above and confirm whether I > have got it right or not. The name change caught me right out until I > spotted that the set_service_state_information() argument named > active_checks_enabled was given the value of a variable called > checks_enabled in xdata/xrddefault.c .. which given that checks_enabled > is also a parameter in the host object made things a little confusing > for a bear of very little brain. > 2 - If this is true then (in theory .. I think) you should just be able > to explicitly reference the service description by hostname and service > name and then insert additional parameters of "active_checks_enabled=0" > and "passive_checks_enabled=0" .. I think this should over-ride the > value inherited from the hostgroup when that service structure is > actually created in memory and render that service inoperative. > The downside would be that it still shows up in the UI, but has no > effect on anything. This as I say is not really what you are after, but > might be a reasonable stop-gap until something tidier can be done in > version 2.0 ... how about a service parameter called "vanish" (or for > the LinuxHeads "mrproper" ;) that causes that service structure to be > deleted. > Having said all that, I haven't got a 1.0 test system on which I can try > it right now, so it may well turn out that this is flexing the > inheritance mechanism a little bit too hard. > BTW .. If the developers are watching, I would be quite willing to go > through the CVS version and rename the service structure variable from > checks_enabled to active_checks_enabled in the code. I know that this > would help me understand the logic a little better .. and I suspect that > future newcomers might also be a little confused by the sudden change of > name. > Cheers > Andy M > Jason Burnett wrote: > >is there any way to tell a host to ignore one of the tests assigned to > >it's hostgroup? > >example: > > > >define hostgroup{ > > hostgroup_name neospire-virtuals-apache > > alias Neospire Apache & Zeus webservers > > contact_groups admins > > members one,two,linux1 > >} > >define service{ > > hostgroup_name neo-vs-web-apache > > service_description SSH > >} > > > > > >define host{ > >#server only runs telnet > > host_name linux1 > > .... > > check_command **IGNORE SSH** > >} > >What I am looking for is an easy way to standardize tests across groups, > >but as always there are exceptions and I need to be able to tell a > >certain host to ignore certain tests inherited from it's group. > > > >oh and before anyone starts chastising me, I dont actually run telnet on > >any of my servers. -- begin .signature This is a .signature virus! Please copy me into your .signature! See Microsoft KB Article Q265230 for more information. end ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jason at cannonfodder.org Fri Feb 7 13:36:46 2003 From: jason at cannonfodder.org (Jason Burnett) Date: Fri, 7 Feb 2003 06:36:46 -0600 Subject: Fwd: Distributed checking In-Reply-To: <3E428429.8090302@anvil.org> References: <20030205190117.GA11410@cannonfodder.org> <200302060919.08408.jasmine.chua@securecirt.com> <200302061003.06319.jasmine.chua@securecirt.com> <200302061302.17747.jasmine.chua@securecirt.com> <3E420844.7000407@mindsw.com> <3E428429.8090302@anvil.org> Message-ID: <20030207123646.GA1935@cannonfodder.org> It's till not working, log excerpt from primary server: [1044621302] SERVICE;pinky;HTTP;CRITICAL;1/2;HARD;1044621212;1044621302;ACTIVE;0;1;1;1044350435;0;CRITICAL;0;0;0;109991;0;0;1;0;0;1;0;0.00;0;1;1;1;Connection refused or timed out Service definition from primary server: define service{ host_name pinky service_description HTTP check_command check_http max_check_attempts 2 normal_check_interval 50 retry_check_interval 50 passive_checks_enabled 1 active_checks_enabled 0 check_period none flap_detection_enabled 0 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 notification_interval 1 notification_period 24x7 notification_options w,u,c,r notifications_enabled 1 check_freshness 0 freshness_threshold 500 contact_groups admins } Log from passive server: [1044621346] SERVICE;pinky;HTTP;OK;1/2;HARD;1044621281;1044621341;ACTIVE;1;1;1;1044465516;0;OK;132731;0;0;0;0;0;0;0;0;1;0;0.00;0;1;1;1;HTTP ok: HTTP/1.1 401 Authorization Required - 0.003 second response time Config from passive server: define service{ host_name pinky service_description HTTP check_command check_http max_check_attempts 2 normal_check_interval 1 retry_check_interval 1 active_checks_enabled 1 check_period 24x7 flap_detection_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 notification_interval 0 notification_period 24x7 notification_options w,u,c,r notifications_enabled 0 } At this point I am open to try anything. So, does anyone actually have this working properly? on Thu Feb 06 Andrew Meredith spoke forth with the blessed manuscript > This is the same problem I described under: > Subject: Distributed Checks > Date: 2003-02-04 1512 > In that mail I confirm that if you were to do this, then the server > would indeed stop performing active checks .. which is what I want, as > the central server cannot successfully perform the checks from it's IP > address. > However, it doesn't then do anything else either. > I was expecting it to mark the service as unknown or down or somethng, > it just keeps on displaying the last service status that it received. > Andy M > Atul Gosain wrote: > >Hi > > > >The problem is simple. > >U have check_freshness variable set to 1. The effect of this is that > >whenever the passive service results does not reach nagios for some time > >(freshness_threshold ), it considers the result as stale and starts > >checking actively for that service. If u want that active checks are not > >executed when passive results are stale, then disable check_freshness > >variable. > >Just tell me in case ur problem is solved. > > > >Thanks > >Atul > > > >Jasmine wrote: > > > >>-----BEGIN PGP SIGNED MESSAGE----- > >>Hash: SHA1 > >> > >>HI all.. i m still having this problem sorry. i thought i made a > >>config mistake, but that does not solve the problem. > >> > >> > >>>>just a note that I am having about the same problem as you. Anyone has > >>>>any ideas? > >>>> > >>>>On Wednesday 05 February 2003 19:01, Jason Burnett wrote: > >>>> > >>>> > >>>>>o.k. I am using the distributed method with passive checks to monitor > >>>>>some hosts I have behind a firewall that I dont want to punch holes > >>>>>in. > >>>>>For some reason my central nagios server keeps running active > >>>>>checks on > >>>>>the hosts even though I have that disabled on a per service instance. > >>>>>So I end up with the service up when it gets the info via the passive > >>>>>tests then it goes critical when the central server tries to check it > >>>>>with an active test. Here is the service config from the central > >>>>>server: > >>>>> > >>>>>define service{ > >>>>> host_name pinky > >>>>> service_description SSH > >>>>> check_command check_ssh > >>>>> max_check_attempts 2 > >>>>> normal_check_interval 5 > >>>>> retry_check_interval 5 > >>>>> passive_checks_enabled 1 > >>>>> active_checks_enabled 0 > >>>>> check_period 24x7 > >>>>> flap_detection_enabled 1 > >>>>> process_perf_data 1 > >>>>> retain_status_information 1 > >>>>> retain_nonstatus_information 1 > >>>>> notification_interval 1 > >>>>> notification_period 24x7 > >>>>> notification_options w,u,c,r > >>>>> notifications_enabled 1 > >>>>> check_freshness 1 > >>>>> freshness_threshold 180 > >>>>> contact_groups admins > >>>>>} > >>>>> > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users -- begin .signature This is a .signature virus! Please copy me into your .signature! See Microsoft KB Article Q265230 for more information. end ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jcarro10 at sprintspectrum.com Fri Feb 7 20:45:00 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 7 Feb 2003 13:45:00 -0600 Subject: FW: Nagios to monitor MQSeries Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1465@PKDWB03C.ad.sprint.com> What was the incantation you used for compiling amqsailq.c? I tried: gcc -o amqsailq -I ../inc amqsailq.c but no joy. jc > -----Original Message----- > From: Volker.Aust at premiere.de [mailto:Volker.Aust at premiere.de] > Sent: Friday, February 07, 2003 3:04 AM > To: Carroll, Jim P [Contractor]; wim at hsmade.com > Cc: nagios-users at lists.sourceforge.net > Subject: RE: FW: [Nagios-users] Nagios to monitor MQSeries > > > I have talked about IBM MQSeries and I never said, that it was not an > proprietary product. I do not check MQ from the Nagios host > (Solaris 8 x86). > I call my script (which calls a modified sample program) > through NRPE on a > Solaris 9 Sparc host with a MQ Client: > > $ pkginfo -l | fgrep -i mq > PKGINST: mqm > NAME: WebSphere MQ Client for Sun Solaris > > $ ls -l /opt/mqm/samp/amqsailq.c > -r--r--r-- 1 mqm mqm 19373 Jun 14 2002 > /opt/mqm/samp/amqsailq.c > > The colleague have found/modified/written a program "queuedeep", that > queries the length of a single queue from the MQ-server. I > have wraped this > program in a shell script to generate the error-code/output > for Nagios. > > -vol > > > -----Original Message----- > > From: Carroll, Jim P [Contractor] > [mailto:jcarro10 at sprintspectrum.com] > > Sent: Thursday, February 06, 2003 7:11 PM > > To: 'wim at hsmade.com'; Aust, Volker, PRE > > Cc: nagios-users at lists.sourceforge.net > > Subject: RE: FW: [Nagios-users] Nagios to monitor MQSeries > > > > > > MQSeries is similar to but different than SonicMQ. The > > latter is a JMS > > product by Sonic Software. The former is an IBM product > > using a proprietary > > standard. > > > > We have both here; I wouldn't mind monitoring both of these > natively. > > > > Hm. We don't seem to have the 'amqsailq' program. What's > > the default path > > to this? I didn't find it under /opt/mqm nor under /usr (on > > Solaris8). > > > > $ pkginfo -l | grep -i mq > > PKGINST: mqjava > > DESC: MQSeries classes for Java and MQSeries classes > > for Java Message > > Service > > PKGINST: mqm > > NAME: MQSeries for Sun Solaris 2 > > PKGINST: mqm-upd03 > > NAME: MQSeries for Sun Solaris 2 - U478291 > > PKGINST: mqm-upd05 > > NAME: MQSeries for Sun Solaris 2 - U481514 > > > > jc > > > > > -----Original Message----- > > > From: Wim Fournier [mailto:wim at hsmade.com] > > > Sent: Thursday, February 06, 2003 10:38 AM > > > To: Volker.Aust at premiere.de > > > Cc: nagios-users at lists.sourceforge.net > > > Subject: Re: FW: [Nagios-users] Nagios to monitor MQSeries > > > > > > > > > Are you talking about Sonic MQ here? > > > > > > > > > > > > > Sorry, I have forgotten the list... > > > > > > > >> -----Original Message----- > > > >> From: Aust, Volker, PRE > > > >> Sent: Thursday, February 06, 2003 1:06 PM > > > >> To: 'Detlef.Knop at gmx.de' > > > >> Subject: RE: [Nagios-users] Nagios to monitor MQSeries > > > >> > > > >> > > > >> Hi Detlef, > > > >> > > > >> when you install the MQSeries client (with developer > > > >> support), you get some sample programs. One of these sample > > > >> programs is "amqsailq", which lists the length of all > > > >> MQ-queues of a server. You can use "amqsailq" local or > > > >> remote. When you use this program (or a mofified version, > > > >> that only checks important queues like we do (a colleague has > > > >> modified some of the sample programs)) remote, you can make > > > >> two tests with one call: > > > >> > > > >> - check the connectivity to the MQ-server and the -service > > > >> > > > >> - check the length of some important queues (too many, too > > > few, ...) > > > >> > > > >> I have wraped the program in a shell script to generate the > > > >> Nagios stuff (return-code and output). > > > >> > > > >> Hope this helps. > > > >> > > > >> -vol > > > >> > > > >> > -----Original Message----- > > > >> > From: Detlef.Knop at gmx.de [mailto:Detlef.Knop at gmx.de] > > > >> > Sent: Thursday, February 06, 2003 7:40 AM > > > >> > To: nagios-users at lists.sourceforge.net > > > >> > Subject: [Nagios-users] Nagios to monitor MQSeries > > > >> > > > > >> > > > > >> > Dear all, > > > >> > > > > >> > I would like to check whether MQSeries is available as a > > > >> > service on several > > > >> > of my hosts. My first approach was to use the check_tcp > > > >> > plugin which from my > > > >> > point of view worked fine. But the people looking after > > > >> > MQSeries on these > > > >> > machines came back to me and complained that each time the > > > >> > plugin ran MQSeries > > > >> > reported errors on these systems (two errors per check) > > > >> > because MQSeries > > > >> > detects the incoming connection and wants to receive proper > > > >> > data, but then the > > > >> > connection is closed. > > > >> > > > > >> > Has anyone ever tried to do the same and found a solution? > > > >> > Maybe there is a > > > >> > way using passive checks, or we might have to look into the > > > >> > possibility to > > > >> > write a plugin. > > > >> > > > > >> > Kind regards > > > >> > > > > >> > Detlef Knop > > > >> > > > > >> > -- > > > >> > +++ GMX - Mail, Messaging & more http://www.gmx.net +++ > > > >> > NEU: Mit GMX ins Internet. Rund um die Uhr f?r 1 ct/ > > Min. surfen! > > > >> > > > > >> > > > > >> > > > > >> > ------------------------------------------------------- > > > >> > This SF.NET email is sponsored by: > > > >> > SourceForge Enterprise Edition + IBM + LinuxWorld = > > > Something 2 See! > > > >> > http://www.vasoftware.com > > > >> > _______________________________________________ > > > >> > Nagios-users mailing list > > > >> > Nagios-users at lists.sourceforge.net > > > >> > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > >> > > > > >> > > > > > > > > > > > > ------------------------------------------------------- > > > > This SF.NET email is sponsored by: > > > > SourceForge Enterprise Edition + IBM + LinuxWorld = > > Something 2 See! > > > > http://www.vasoftware.com > > > > _______________________________________________ > > > > Nagios-users mailing list > > > > Nagios-users at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > > > > Grtz, > > > > > > Wim Fournier > > > wim at hsmade.[com|net|org] > > > > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.NET email is sponsored by: > > > SourceForge Enterprise Edition + IBM + LinuxWorld = > Something 2 See! > > > http://www.vasoftware.com > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jlyons30 at yahoo.com Fri Feb 7 21:21:44 2003 From: jlyons30 at yahoo.com (Jon Lyons) Date: Fri, 7 Feb 2003 12:21:44 -0800 (PST) Subject: Nagios reply notifications to acknowledge In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB014E1463@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB014E1463@PKDWB03C.ad.sprint.com> Message-ID: <20030207202144.14057.qmail@web21506.mail.yahoo.com> Search the archives for my perl scripts to the list a few weeks ago. You'll have to modify them a little, but I can enable/disable notifications, acknowledge hosts, and get a quick summary stats of problems on my nextel. The nice thing is you don't have to type the replies, my script appends them to the message so you just hit reply. Great if your cell provider supports 2way messaging... :) "Carroll, Jim P [Contractor]" wrote:Off the top of my head, I'd say you could write something which uses: - /etc/aliases (redirecting mail destined for 'nagios' and piping it to a script) - procmail (optional) - a script that you write - awareness of how to pipe commands into nagios.cmd, which I believe are available in the FAQ over on www.nagios.org. HTH. jc > -----Original Message----- > From: Dan Knoblauch [mailto:dan at lanworksco.com] > Sent: Friday, February 07, 2003 10:19 AM > To: Nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Nagios reply notifications to acknowledge > > > Hello all and good day! > > > > I have been looking for a mechanism that will allow me to 'reply' to > nagios notifications via email with an acknowledgement. > Often I am away > from the office and I receive notifications on host/service outages on > my cell phone. I have used another monitoring utility called "Big > Brother" that had this capability. Outside of writing my own > handler to > do this, does anyone out there know if this is possible? I > have scoured > the documentation and the mailing lists and newsgroups and > haven't seen > even a small mention of this. Does this capability exist? > > > > You assistance is greatly appreciated. > > > > Dan. > > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From jonejr at gat.com Fri Feb 7 21:25:14 2003 From: jonejr at gat.com (jonejr) Date: Fri, 07 Feb 2003 12:25:14 -0800 Subject: cgi help on Nagios 1.0 In-Reply-To: <010401c2ceb9$1ce3adb0$f81fc3c1@TONYS> References: <010401c2ceb9$1ce3adb0$f81fc3c1@TONYS> Message-ID: <5926576390.20030207122514@gat.com> Hello , Although these are good ideas, they don't work.... > You do a #pwd in the directory that the cgi's are in and that says > "/usr/local/nagios/cgi" > Your apache config aliases /nagios/cgi-bin/ to /usr/local/nagios/sbin/, > but your cgi's are in /usr/local/nagios/cgi. > Think perhaps you should rename /usr/local/nagios/cgi to > /usr/local/nagios/sbin/. > Or change the alias in the apache conf file. > Remove the .htaccess file from etc/ and html/ and move it to the sbin/ directory. That should give you access. Anyone? -- John R. Jones Oracle and Citrix Administrator General Atomics, Aeronautical Systems, Inc. http://www.gat.com/asi/home.html ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From williamw at xeye.com Fri Feb 7 21:52:28 2003 From: williamw at xeye.com (Willy) Date: 7 Feb 2003 20:52:28 -0000 Subject: nsclient install problem on Solaris8 Message-ID: <20030207205228.22225.qmail@pod-163.dolphin-server.co.uk> I'm running Nagios1.0 on a Ultra5 running Solaris8. I want to use nsclient to monitor Windows NT/2000 servers. After I downloaded nsclient-1.07.1 I found there's only Linux version of check_nt. I only could get check_nt.c from UnixSource folder after I unzipped the file. I got errors while I complied check_nt.c on my Solaris8 box. It complained about missing "common.h" header file. Can anyone teach/tell me where I can get a compilable check_nt tar ball for Solaris8(sparc) or a executable check_nt for Solaris? nsclient install document tells me that I need to add some lines into "command.cfg" file. I don't have this file in Nagios configuration folder -- /usr/local/nagios/etc ! Any help is greatly appreciated! Willy ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From williamw at xeye.com Fri Feb 7 22:01:36 2003 From: williamw at xeye.com (Willy) Date: 7 Feb 2003 21:01:36 -0000 Subject: NSClient - 38 OK and 1 Down In-Reply-To: References: Message-ID: <20030207210136.24246.qmail@pod-163.dolphin-server.co.uk> On what Platform do you run Nagios or netsaint server? Is it a Linux box? ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From williamw at xeye.com Fri Feb 7 22:35:38 2003 From: williamw at xeye.com (Willy) Date: 7 Feb 2003 21:35:38 -0000 Subject: check_nt plugin In-Reply-To: <87273DB23407D511B8900008C7FA923301405D6A@EXCHANGE> References: <87273DB23407D511B8900008C7FA923301405D6A@EXCHANGE> Message-ID: <20030207213538.31841.qmail@pod-163.dolphin-server.co.uk> I'm running Nagios1.0 on an Ultra5 running Solaris8. I want to use nsclient to monitor Windows NT/2000 servers. After I downloaded nsclient-1.07.1 I found there's only Linux version of check_nt. I only could get check_nt.c from UnixSource folder after I unzipped the file. I got errors while I complied check_nt.c on my Solaris8 box. It complained about missing "common.h" header file. Can anyone teach/tell me where I can get a compilable check_nt tar ball for Solaris8(sparc) or a executable check_nt for Solaris? nsclient install document tells me that I need to add some lines into "command.cfg" file. I don't have this file in Nagios configuration folder -- /usr/local/nagios/etc ! Any help is greatly appreciated! Willy ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From GPotter at MarathonOil.com Fri Feb 7 22:37:31 2003 From: GPotter at MarathonOil.com (Potter, G M (Greg)) Date: Fri, 7 Feb 2003 15:37:31 -0600 Subject: workstations Message-ID: We are a small shop. We have 18 workstations and 7 servers. Greg > -----Original Message----- > From: Tom DE BLENDE [mailto:tdeblend at gcc.dhl.com] > Sent: Friday, February 07, 2003 9:05 AM > To: Potter, G M (Greg) > Cc: Don Schultz; nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] workstations > > > I imagine you don't have a large environment then? And if you do > (let's say 500+ users), how do you add all this data into Nagios? > > An interesting thread. > > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jason at skynetweb.com Fri Feb 7 23:00:20 2003 From: jason at skynetweb.com (Jason Lancaster) Date: Fri, 7 Feb 2003 17:00:20 -0500 Subject: member character limit in hostgroups.cfg Message-ID: <01a501c2cef4$4e6c07c0$f805ff0a@tekniq> I sent this to the devel list... but I'm beginning to think that maybe this list would have been more appropriate: Pardon me if this is common knowledge, but I can't find talk on any lists of a character limit for the member definition in the hostgroups.cfg file. There seems to be a hard-coded limit somewhere in Nagios 1.0, preventing a members definition over about 8,000 characters to execute. The error Nagios spits back is: Error: Could not add object property in file '/usr/local/nagios/etc/hostgroups.cfg' on line 16. I won't flood you with line 16, but a snip of it would look like: members SNW-5153-9781,SNW-6934-8271,SNW-6929-8265,SNW-6928-9622,SNW-6928-8318..... (repeating for another 8,000 characters) A wildcard definition appears to load all of the members properly but unfortunately, I need to have separate hostgroups with about 700 members in each. It's hard to imagine that no one has run into this problem before considering Nagios appears to have been written to scale to this type of environment. Any ideas would be appreciated, whether it's someone pointing me to variable declarations in the source or a quick hack (perhaps you can define a hostgroup twice with the same hostgroup_name/alias?) Thanks, Jason Lancaster ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jcarro10 at sprintspectrum.com Fri Feb 7 23:21:30 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 7 Feb 2003 16:21:30 -0600 Subject: Schedule An Immediate Check - I have rtfm and stfw no help Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1469@PKDWB03C.ad.sprint.com> http://nagios.sourceforge.net/docs/1_0/commandfile.html > -----Original Message----- > From: Michael W. Oliver [mailto:michael at gargantuan.com] > Sent: Friday, February 07, 2003 11:43 AM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Schedule An Immediate Check - I have rtfm > and stfw no help > > > more information... > > # ls /usr/local/nagios/var/rw > total 2 > drwxrwS--- 2 nagios nagiocmd 512 Feb 5 15:11 ./ > drwxrwxr-x 4 nagios nagios 512 Feb 7 12:41 ../ > prw-rw---- 1 nagios nagiocmd 0 Feb 5 15:11 nagios.cmd| > > # grep nagiocmd /etc/group > nagiocmd:*:55554:nagios,nobody > > Now, I see in the 'SOLVED' reply that the 'nagios.cmd' file > was created by > the Nagios process with nagios:nagios ownership, but mine > isn't created that > way. As you can see above, my nagios.cmd file is created with > nagios:nagiocmd ownership. You can also see that 'nobody' is > part of the > 'nagiocmd' group, which _should_ give 'nobody' rw access to > the nagios.cmd > file. Even so, I still receive that error when trying to > execute a command > from the browser. BAH! > > In addition, in the 'SOLVED' reply, it looks like the user > 'nobody' was > added to the 'nagios' group, effectively eliminating the need for the > 'nagiocmd' group. Isn't this insecure, putting the 'nobody' > user in the > 'nagios' group, effectively giving that user permission to > everything that > Nagios has permission to? I was under the impression that > the whole purpose > of creating the new group was to limit the access of the > 'nobody' user. > > What am I missing? Thanks! > > -- > -------------------------------------------------------------- > ---------- > Michael W. Oliver, CCNP | > IPv6 & FreeBSD mizark | "The tree of liberty must be > refreshed > michael at gargantuan.com | from time to time with the blood of > http://michael.gargantuan.com/ | patriots and tyrants." > (via IPv4 and IPv6) | - President Thomas Jefferson > IPv6 ASPathTree, Looking Glass | > -------------------------------------------------------------- > ---------- > > > > > ----- Original Message ----- > From: "Michael W. Oliver" > To: > Sent: Friday, February 07, 2003 11:06 AM > Subject: Re: [Nagios-users] Schedule An Immediate Check - I > have rtfm and > stfw no help > > > I am receiving the exact same error while trying this on my > FreeBSD server. > I followed the FAQ instructions to the letter, and all > permissions are just > as they should be, and 'nobody' is in the 'nagiocmd' group. > > Still no joy... > > -- > -------------------------------------------------------------- > ---------- > Michael W. Oliver, CCNP | > IPv6 & FreeBSD mizark | "The tree of liberty must be > refreshed > michael at gargantuan.com | from time to time with the blood of > http://michael.gargantuan.com/ | patriots and tyrants." > (via IPv4 and IPv6) | - President Thomas Jefferson > IPv6 ASPathTree, Looking Glass | > -------------------------------------------------------------- > ---------- > > > > > ----- Original Message ----- > From: "Armin Irger" > To: > Sent: Friday, February 07, 2003 10:04 AM > Subject: [Nagios-users] Schedule An Immediate Check - I have > rtfm and stfw > no help > > > Hi, > i using debian woody 3.0r1 and compiled nagios from the source. Nagios > is "jailed" in /opt/nagios-1.0 and accessing over a link /opt/nagios. > > nagios.cfg settings: > > check_external_commands=1 > command_check_interval=-1 > command_file=/opt/nagios/var/rw/nagios.cmd > > I setup the nagios.cmd file how it be descripted in the > commandfile.html > /usr/sbin/groupadd nagiocmd > /usr/sbin/usermod -G nagiocmd nagios > /usr/sbin/usermod -G nagiocmd nobody > mkdir /opt/nagios/var/rw > chown nagios.nagiocmd /opt/nagios/var/rw > chmod u+rwx /opt/nagios/var/rw > chmod g+rw /opt/nagios/var/rw > chmod g+s /opt/nagios/var/rw > > The ls -l /opt/nagioss/var/ looks like > drwxrwSr-- 2 nagios nagiocmd 4096 Feb 7 15:10 rw > > > cgi.cfg settings: > authorized_for_system_information=nagiosadmin > authorized_for_configuration_information=nagiosadmin > authorized_for_system_commands=nagiosadmin > authorized_for_all_hosts=nagiosadmin,guest > authorized_for_all_service_commands=nagiosadmin > authorized_for_all_host_commands=nagiosadmin > > > I'am logged in as nagiosadmin and when i try to start a "Schedule an > immediate check of all services on this host" from the Host > Command's i > get this error back after i commit the command. > > Error: Could not stat() command file '/opt/nagios/var/rw/nagios.cmd'! > > The external command file may be missing, Nagios may not be running, > and/or Nagios may not be checking external commands. > > An error occurred while attempting to commit your command for > processing. > > > Greetings > Armin > > > > > > > > -- > Wundere dich nicht da? du nicht ankommst, > wenn du nicht wei?t wo du hin willst. > > ==================================================================== > Fachhochschule Rosenheim > Armin Irger > Hochschulstr. 1 > D-83024 Rosenheim > Tel. +498031 805-532 > Fax. +498041 805-519 > ==================================================================== > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld =omething 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld =omething 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jcarro10 at sprintspectrum.com Fri Feb 7 23:23:27 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 7 Feb 2003 16:23:27 -0600 Subject: cgi help on Nagios 1.0 Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E146A@PKDWB03C.ad.sprint.com> The thread of this e-mail appears to be truncated. Please restate the problem/symptoms and post snippets of relevant configs. jc > -----Original Message----- > From: jonejr [mailto:jonejr at gat.com] > Sent: Friday, February 07, 2003 2:25 PM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] cgi help on Nagios 1.0 > > > Hello , > > > Although these are good ideas, they don't work.... > > You do a #pwd in the directory that the cgi's are in and that says > > "/usr/local/nagios/cgi" > > Your apache config aliases /nagios/cgi-bin/ to > /usr/local/nagios/sbin/, > > but your cgi's are in /usr/local/nagios/cgi. > > > Think perhaps you should rename /usr/local/nagios/cgi to > > /usr/local/nagios/sbin/. > > Or change the alias in the apache conf file. > > > Remove the .htaccess file from etc/ and html/ and move it > to the sbin/ directory. That should give you access. > > Anyone? > > > -- > John R. Jones > Oracle and Citrix Administrator > General Atomics, Aeronautical Systems, Inc. > http://www.gat.com/asi/home.html > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From rburnson at cps.k12.il.us Fri Feb 7 23:49:59 2003 From: rburnson at cps.k12.il.us (Burnson, Richard) Date: Fri, 7 Feb 2003 16:49:59 -0600 Subject: member character limit in hostgroups.cfg Message-ID: I've run into this a couple of times in the past, but most recently when I went to upgrade from Nagios 1.0b3 to nagios1.0(final) it puked on a similarly large wildcard service definition. I ended up having to re-install beta 3. Unfortunately I haven't had much time to troubleshoot, but I plan on building another server to test on in this next week. I thought you would at least like to know you're not alone. Richard -----Original Message----- From: Jason Lancaster [mailto:jason at skynetweb.com] Sent: Friday, February 07, 2003 4:00 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] member character limit in hostgroups.cfg I sent this to the devel list... but I'm beginning to think that maybe this list would have been more appropriate: Pardon me if this is common knowledge, but I can't find talk on any lists of a character limit for the member definition in the hostgroups.cfg file. There seems to be a hard-coded limit somewhere in Nagios 1.0, preventing a members definition over about 8,000 characters to execute. The error Nagios spits back is: Error: Could not add object property in file '/usr/local/nagios/etc/hostgroups.cfg' on line 16. I won't flood you with line 16, but a snip of it would look like: members SNW-5153-9781,SNW-6934-8271,SNW-6929-8265,SNW-6928-9622,SNW-6928-8318..... (repeating for another 8,000 characters) A wildcard definition appears to load all of the members properly but unfortunately, I need to have separate hostgroups with about 700 members in each. It's hard to imagine that no one has run into this problem before considering Nagios appears to have been written to scale to this type of environment. Any ideas would be appreciated, whether it's someone pointing me to variable declarations in the source or a quick hack (perhaps you can define a hostgroup twice with the same hostgroup_name/alias?) Thanks, Jason Lancaster ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jcarro10 at sprintspectrum.com Fri Feb 7 23:40:00 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 7 Feb 2003 16:40:00 -0600 Subject: nsclient install problem on Solaris8 Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E146B@PKDWB03C.ad.sprint.com> You can grab the latest plugin tarball, untar it, change into that directory: $ find . -name common.h ./plugins/common.h jc > -----Original Message----- > From: Willy [mailto:williamw at xeye.com] > Sent: Friday, February 07, 2003 2:52 PM > To: Nagios-users at lists.sourceforge.net > Subject: [Nagios-users] nsclient install problem on Solaris8 > > > > I'm running Nagios1.0 on a Ultra5 running Solaris8. I want to > use nsclient to monitor Windows NT/2000 servers. After I > downloaded nsclient-1.07.1 I found there's only Linux version > of check_nt. I only could get check_nt.c from UnixSource > folder after I unzipped the file. > > I got errors while I complied check_nt.c on my Solaris8 box. > It complained about missing "common.h" header file. Can > anyone teach/tell me where I can get a compilable check_nt > tar ball for Solaris8(sparc) or a executable check_nt for Solaris? > > nsclient install document tells me that I need to add some > lines into "command.cfg" file. I don't have this file in > Nagios configuration folder -- /usr/local/nagios/etc ! > > Any help is greatly appreciated! > > Willy > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Tong at keen.com Sat Feb 8 00:34:14 2003 From: Tong at keen.com (Tong Young) Date: Fri, 7 Feb 2003 15:34:14 -0800 Subject: Check SQL Server 2000? Message-ID: <96F2907F6F5F494DA70289DE3B15B11F28110355@keenx02.keencorp.keen.com> Is there a way for me to query a SQL Server for data? I have a database and inside the database is stored data about the performance of my database and other values. I would like to query the server for these values and then trigger an alarm when a threshold is reached. In Sitescope it is like this: ODBC connection: jdbc:odbc:SQLLiveMon Query: exec spMON_FindLastTimeExtTaskRan 'SQLMsgClick' I'm not sure if nagios can do something like this. Thanx!! ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From mpowell at ena.com Sat Feb 8 00:27:33 2003 From: mpowell at ena.com (Marc Powell) Date: Fri, 7 Feb 2003 17:27:33 -0600 Subject: member character limit in hostgroups.cfg Message-ID: <5DB017510818EC468B05BD7BD9EACF83029F28B0@mismail.ena.com> it's in xdata/xodtemplate.h: #define MAX_XODTEMPLATE_INPUT_BUFFER 49152 As you can see I've upped mine from the default of 8192 with no problems but YMMV. Marc -----Original Message----- From: Jason Lancaster [mailto:jason at skynetweb.com] Sent: Fri 2/7/2003 4:00 PM To: nagios-users at lists.sourceforge.net Cc: Subject: [Nagios-users] member character limit in hostgroups.cfg I sent this to the devel list... but I'm beginning to think that maybe this list would have been more appropriate: Pardon me if this is common knowledge, but I can't find talk on any lists of a character limit for the member definition in the hostgroups.cfg file. There seems to be a hard-coded limit somewhere in Nagios 1.0, preventing a members definition over about 8,000 characters to execute. The error Nagios spits back is: Error: Could not add object property in file '/usr/local/nagios/etc/hostgroups.cfg' on line 16. I won't flood you with line 16, but a snip of it would look like: members SNW-5153-9781,SNW-6934-8271,SNW-6929-8265,SNW-6928-9622,SNW-6928-8318..... (repeating for another 8,000 characters) A wildcard definition appears to load all of the members properly but unfortunately, I need to have separate hostgroups with about 700 members in each. It's hard to imagine that no one has run into this problem before considering Nagios appears to have been written to scale to this type of environment. Any ideas would be appreciated, whether it's someone pointing me to variable declarations in the source or a quick hack (perhaps you can define a hostgroup twice with the same hostgroup_name/alias?) Thanks, Jason Lancaster ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From r1p6os402 at sneakemail.com Sat Feb 8 00:45:54 2003 From: r1p6os402 at sneakemail.com (Steve Bonds) Date: Fri, 7 Feb 2003 15:45:54 -0800 (PST) Subject: member character limit in hostgroups.cfg In-Reply-To: References: Message-ID: <17555-94098@sneakemail.com> Try this one: xdata/xodtemplate.h line 34: #define MAX_XODTEMPLATE_INPUT_BUFFER 8196 I bet bumping that up and recompiling would help. -- Steve On Fri, 7 Feb 2003, Burnson, Richard rburnson-at-cps.k12.il.us |Nagios| wrote: > I've run into this a couple of times in the past, but most recently when I > went to upgrade from Nagios 1.0b3 to nagios1.0(final) it puked on a > similarly large wildcard service definition. I ended up having to > re-install beta 3. Unfortunately I haven't had much time to troubleshoot, > but I plan on building another server to test on in this next week. I > thought you would at least like to know you're not alone. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From michael at gargantuan.com Sat Feb 8 02:51:45 2003 From: michael at gargantuan.com (Michael W. Oliver) Date: Fri, 7 Feb 2003 20:51:45 -0500 Subject: Schedule An Immediate Check - I have rtfm and stfw no help In-Reply-To: <009901c2ced0$53c0d120$e112d287@gargantuan.com> References: <1044630282.1070.35.camel@ntb00817> <005b01c2cec2$de18cde0$e112d287@gargantuan.com> <009901c2ced0$53c0d120$e112d287@gargantuan.com> Message-ID: <200302072051.55137.michael@gargantuan.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Friday, February 07, 2003 12:42, Michael W. Oliver wrote: > more information... > > # ls /usr/local/nagios/var/rw > total 2 > drwxrwS--- 2 nagios nagiocmd 512 Feb 5 15:11 ./ > drwxrwxr-x 4 nagios nagios 512 Feb 7 12:41 ../ > prw-rw---- 1 nagios nagiocmd 0 Feb 5 15:11 nagios.cmd| > > # grep nagiocmd /etc/group > nagiocmd:*:55554:nagios,nobody > > Now, I see in the 'SOLVED' reply that the 'nagios.cmd' file was created > by the Nagios process with nagios:nagios ownership, but mine isn't > created that way. As you can see above, my nagios.cmd file is created > with > nagios:nagiocmd ownership. You can also see that 'nobody' is part of the > 'nagiocmd' group, which _should_ give 'nobody' rw access to the > nagios.cmd file. Even so, I still receive that error when trying to > execute a command from the browser. BAH! > > In addition, in the 'SOLVED' reply, it looks like the user 'nobody' was > added to the 'nagios' group, effectively eliminating the need for the > 'nagiocmd' group. Isn't this insecure, putting the 'nobody' user in the > 'nagios' group, effectively giving that user permission to everything > that Nagios has permission to? I was under the impression that the whole > purpose of creating the new group was to limit the access of the 'nobody' > user. > > What am I missing? Thanks! > > -- If there is anyone that can shed some light on why this isn't working, I would greatly appreciate it. - -- - ------------------------------------------------------------------------ Michael W. Oliver, CCNP | IPv6 & FreeBSD mizark | "The tree of liberty must be refreshed michael at gargantuan.com | from time to time with the blood of http://michael.gargantuan.com/ | patriots and tyrants." (via IPv4 and IPv6) | - President Thomas Jefferson IPv6 ASPathTree, Looking Glass | - ------------------------------------------------------------------------ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+RGK6sWv7q8X6o8kRAvusAJoD6I35uvAPYGl/WphHSXamIfqpmQCfZJN0 O4sl6LEp/Vmg2IK2PA7L2Uk= =38CK -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Stanley.Hopcroft at IPAustralia.Gov.AU Sat Feb 8 03:06:04 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Sat, 8 Feb 2003 13:06:04 +1100 Subject: Monitoring Application performance ??? Message-ID: <20030208130556.B349@IPAustralia.Gov.AU> Dear Ladies and Gentlemen, I am writing to request your comments on application performance monitoring preferably in an Nagios centric environment. Every one knows what a drag it is to acquit the 'network' of complicity or blame in slug like application response. The state of the art seems to be . L3 stats (RTA, Packet loss ratio etc) are helpful in indicating that the network performance is Ok, but are not conclusive except in the rare cases that network response is really poor. In my experience, with switched LANs and even low speed _uncongested_ WANs, this doesn't happen often. . Commercial products that generate synthetic transactions (Chariot, Vital Suite ?) are able to more accurately indicate application performance but are obviously useless in helping understand why a particuar workstation is getting poor response. This is the approach I use with most of my plugins: have the plugin do what the client does and whine if the server fails to respond in time. . Commercial application instrumentation for products like Oracle, and J2EE encironments are able to report on and account for application response times Similar products may be able to account for client resources and activities. . Commercial RMON2 based network probes (Netscout notably both with their own products and OEM blades in Cat switches) These products are located at nodal points in a network (intersection of flows from clients or servers) and by making some assumptions about the use of TCP flags in application flows, and by _very quickly_ inspecting the contents of every packet they receive, are able to get - network delay - server delay or in other words, account for the transaction processing time as seen by a client as a network component and a server component. Does anyone have any experience of application performance monitoring or of any of these products they are willing to share with the list or privately ? I think Nag would an immensely attractive product - especially with PHBs - if there was some way that it could in this matter. Thank you, Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Stanley.Hopcroft at IPAustralia.Gov.AU Sat Feb 8 02:48:05 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Sat, 8 Feb 2003 12:48:05 +1100 Subject: workstations In-Reply-To: ; from GPotter@MarathonOil.com on Fri, Feb 07, 2003 at 08:18:47AM -0600 References: Message-ID: <20030208124758.A349@IPAustralia.Gov.AU> Dear Sir, Monitoring workstations sounds like a wonderful idea if you can identify application performance problems by asking a workstation based agent to report on network delay server processing time workstation resources within acceptable limits Are you, or anyone able to do this ? What is that you monitor on workstations ? On Fri, Feb 07, 2003 at 08:18:47AM -0600, Potter, G M (Greg) wrote: > We watch our workstations. It is helpful to know if your users > are having a problem before you get the call. Often I can be in the > office of a client with a down workstation and fix the problem before > they know they have one. That improves PR and customer satisfaction. > > Greg > Thank you, Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Stanley.Hopcroft at IPAustralia.Gov.AU Sat Feb 8 03:14:42 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Sat, 8 Feb 2003 13:14:42 +1100 Subject: website transaction monitor / simple web form In-Reply-To: <52183F243CF19E44A1166F250311C34B047771@cheddarcheese.vel.net>; from rich@vel.net on Fri, Feb 07, 2003 at 11:31:33AM -0800 References: <52183F243CF19E44A1166F250311C34B047771@cheddarcheese.vel.net> Message-ID: <20030208131429.C349@IPAustralia.Gov.AU> Dear Sir, There are a number of approaches for dealing with HTTP transactions/web forms. They include your writing wrraper programs to Perl modules that are congnizant of the transaction structure (ie what to send to what URL and when). These modules include A CPAN 1 WWW::Mechanize 2 WWW::Automate B SourceForge 1 HTTP::MonkeyWrench C unpublished 1 Netsaint::Web_Trx Here's an example plugin using the latter, use constant Intro => 'http://external/atmoss/falcon.application_start' ; use constant ConnectToSearch => 'http://external/atmoss/Falcon_Users_Cookies.Define_User' ; use constant MultiSessConn => 'http://external/atmoss/Falcon_Users_Cookies.Run_Create' ; use constant Search => 'http://external/atmoss/Falcon.Result' ; use constant ResultAbstract => 'http://external/atmoss/falcon_details.show_tm_details' ; use constant ResultDetails => 'http://external/atmoss/Falcon_Details.Show_TM_Details' ; use constant DeleteSearches => 'http://external/atmoss/Falcon_Searches.Delete_All_Searches' ; use constant Int => 'Welcome to ATMOSS' ; use constant ConnSrch => 'Connect to Trade Mark Search' ; use constant MltiSess => 'Fill in one or more of the fields below' ; use constant Srch => 'Your search request retrieved\s+\d+\s+match(es)?' ; use constant ResAbs => 'Trade Mark\s+:\s+\d+' ; use constant ResDet => ResAbs ; use constant DelSrch => MltiSess ; use constant MSC_f => [p_Anon => 'REGISTERED', p_user_type => 'Connect to Existing Extract List', p_extID => 'Stanley Hopcroft', p_password => 'It', p_JS => 'N'] ; use constant Srch_v => [p_tmno1 => 'tmno'] ; use constant RA_v => [p_tm_number => 'tmno'] ; use constant RA_f => [p_detail => 'QUICK', p_rec_all => 1, p_rec_no => 1, p_search_no => 1, p_ExtDisp => 'D'] ; use constant RD_v => RA_v ; use constant RD_f => [p_Detail => 'DETAILED', p_rec_no => 1, p_search_no => 1, p_ExtDisp => 'D']; use constant OraFault => 'We were unable to process your request at this time' ; use constant URLS => [ {Method => 'GET', Url => Intro, Qs_var => [], Qs_fixed => [], Exp => Int, Exp_Fault => OraFault}, {Method => 'GET', Url => ConnectToSearch, Qs_var => [], Qs_fixed => [], Exp => ConnSrch,Exp_Fault => OraFault}, {Method => 'POST', Url => MultiSessConn, Qs_var => [], Qs_fixed => MSC_f,Exp => MltiSess,Exp_Fault => OraFault}, {Method => 'POST', Url => Search, Qs_var => Srch_v, Qs_fixed => [], Exp => Srch, Exp_Fault => OraFault}, {Method => 'GET', Url => ResultAbstract, Qs_var => RA_v, Qs_fixed => RA_f, Exp => ResAbs,Exp_Fault => OraFault}, {Method => 'POST', Url => ResultDetails, Qs_var => RD_v, Qs_fixed => RD_f, Exp => ResDet,Exp_Fault => OraFault}, {Method => 'POST', Url => DeleteSearches, Qs_var => [], Qs_fixed => [], Exp => DelSrch, Exp_Fault => OraFault}, ] ; my (@tmarks, $tmno, $i) ; @tmarks = @ARGV ? @ARGV : (3, 100092, 200099, 300006, 400075, 500067, 600076, 700066, 800061) ; $i = @ARGV == 1 ? 0 : int( rand($#tmarks) + 0.5 ) ; $tmno = $tmarks[$i] ; my $x = Netsaint::Web_Trx->new( URLS ) ; my ($rc, $message) = $x->check( {tmno => $tmno}, debug => $debug) ; print "ATMOSS $message\n" ; exit($rc ? $ERRORS{'OK'} : $ERRORS{'CRITICAL'}) ; Easy Peasi: call the constructor with a ref to a hash containing all the URLs and the data to be sent to each URL, then call the check method. The hard bit in this case - and it's a pretty big gotcha - is _you_ have to work out the sequence of URLs sent and the data supplied to each form (some of which is invisible). The CPAN modules may be a better bet but this works well for me. On Fri, Feb 07, 2003 at 11:31:33AM -0800, Richard Gross wrote: > Wondering what can be done to use Nagios to check > a simple webform? Maybe some modifiction of the wget that > checked the hp switches? The opening page has: > >

Welcome to CommuniGate Pro,
> the test.net Messaging > Server!

>
> > > > >
Registered Users
>
> > > > > > > > > > > > > > > >
color="#cc6600">Login > Name color="cc6600">Password
> maxlength=255> > > maxlength=99> > > >
>

>

> > and would like to supply a username and password to this form, > then check for a text string INBOX would be all that's required. > > I did try the command: > > wget -r --http-user=chris at test.net --http-passwd=chris06 > http://webmail.test.net but only got back the index page... > > Not really sure how to proceed from here. > > richg > > Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Stanley.Hopcroft at IPAustralia.Gov.AU Sat Feb 8 03:39:38 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Sat, 8 Feb 2003 13:39:38 +1100 Subject: member character limit in hostgroups.cfg In-Reply-To: <01a501c2cef4$4e6c07c0$f805ff0a@tekniq>; from jason@skynetweb.com on Fri, Feb 07, 2003 at 05:00:20PM -0500 References: <01a501c2cef4$4e6c07c0$f805ff0a@tekniq> Message-ID: <20030208133932.D349@IPAustralia.Gov.AU> Dear Sir, Is this what you are seeking (negative basically) ? tsitc> grep -r -2 'MAX_HOSTS_INPUT_BUFFER' * | grep -v Bin | more xdata/xoddefault.c- xdata/xoddefault.c- xdata/xoddefault.c:#define MAX_HOSTS_INPUT_BUFFER 8196 /* needed for very long definitions (i.e. hostgroups) */ xdata/xoddefault.c- xdata/xoddefault.c- -- You need to either hack it or use more hostgroups (many hostgroups eg hostg_8k, hostg_16k with each host in the groups having the same contactgroup so all the contacts can still manage the CGIs. This is prob better from the readability point of view anyway). If you increase from 8196 your memory consumption will obviously increase. Also, you may find that linked list search times are using CPU and leading to increased check latency. Is your installation the one with about 10k hosts ? Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jwbaker at acm.org Sat Feb 8 03:43:52 2003 From: jwbaker at acm.org (Jeffrey Baker) Date: Fri, 7 Feb 2003 18:43:52 -0800 Subject: event handler enabled in config, not enabled in reality Message-ID: <20030208024352.GA808@heat> Hi there. I just started using nagios. I have one Axis 2100 network camera that crashes and needs to be rebooted about 6 times per day. Therefore: define command { command_name camera-event command_line /usr/lib/nagios/plugins/eventhandlers/camera $SERVICESTATE$ } define service{ name generic-service2 active_checks_enabled 1 passive_checks_enabled 0 parallelize_check 1 obsess_over_service 1 check_freshness 0 notifications_enabled 1 event_handler_enabled 1 ; <= note flap_detection_enabled 0 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 contact_groups skunks-admins register 0 } define service{ use generic-service2 host_name eye service_description HTTP event_handler camera-event ; <= note is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 3 retry_check_interval 1 notification_interval 120 notification_period 24x7 notification_options w,u,c,r check_command check_http_url!/axis-cgi/jpg/image.cgi?resolution=640x480 } enable_event_handlers=1 So, you can see that I've tried to set this up. The problem is, when I start nagios, the eye/HTTP service shows up with the envent handler disabled. I have to enable it with a command at runtime. [1044663511] EXTERNAL COMMAND: ENABLE_SVC_EVENT_HANDLER;eye;HTTP I can see later that it did run: [1044669735] SERVICE ALERT: eye;HTTP;CRITICAL;SOFT;1;Socket timeout after 10 seconds [1044669735] SERVICE EVENT HANDLER: eye;HTTP;CRITICAL;SOFT;1;camera-event [1044669785] SERVICE ALERT: eye;HTTP;OK;SOFT;2;HTTP ok: HTTP/1.0 200 OK - 4 second response time [1044669785] SERVICE EVENT HANDLER: eye;HTTP;OK;SOFT;2;camera-event What a piece of crap that camera is.... Anyway, what is wrong with my config file? I would like the event handler to be enabled at startup. I don't want to have to fool with it at runtime. BTW, I am using Nagios from Debian unstable distribution, package version 1.0-5. Regards, jwb ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Stanley.Hopcroft at IPAustralia.Gov.AU Sat Feb 8 05:07:37 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Sat, 8 Feb 2003 15:07:37 +1100 Subject: Check SQL Server 2000? In-Reply-To: <96F2907F6F5F494DA70289DE3B15B11F28110355@keenx02.keencorp.keen.com>; from Tong@keen.com on Fri, Feb 07, 2003 at 03:34:14PM -0800 References: <96F2907F6F5F494DA70289DE3B15B11F28110355@keenx02.keencorp.keen.com> Message-ID: <20030208150730.E349@IPAustralia.Gov.AU> Dear Sir, I am writing to thank yuo for your letter and say, On Fri, Feb 07, 2003 at 03:34:14PM -0800, Tong Young wrote: > Is there a way for me to query a SQL Server for data? > Of course - however, precisely how you do it depends on the server. Have a look at the plugin writers guidelines in the docs. Then, write some code to . have your 'SQL server' client - if you don't have the client code on the Nag host see below - to make the query . compare the result of the query to the threshold and . set the return code and write some output (for the human reading the alert) accordingly. Alternatively, if the 'SQL server' client code is _not_ on the Nag host, then run it on the host it is installed on with something like NRPE or use NCSA to submit its result to the Nag host. > I have a database and inside the database is stored data about the > performance of my database and other values. I would like to query the > server for these values and then trigger an alarm when a threshold is > reached. > > In Sitescope it is like this: > > ODBC connection: jdbc:odbc:SQLLiveMon > Query: exec spMON_FindLastTimeExtTaskRan 'SQLMsgClick' > > I'm not sure if nagios can do something like this. Thanx!! > If this is procedure is runnable from the shell (at a CLI), you can wrap it in the trivial extra bits required by Nag and use it as a a plugin. Or, use Tom De Blendes canonical answer to this question, >> Up until SQL Server 7, Microsoft officially supported Sybase client >> software. So you could download the Sybase client, and connect to MS >> SQL. With TDS version 8.0 (and legacy support for version 7.0) in SQL >> 2000, compatibility with Sybase client was broken. However, you can >> use the Freetds libraries instead. >> So here's what I've done to have a way to connect to both SQL 7 and >> SQL 2000: >> 1) Download and install freetds from http://www.freetds.org. >> 2) Download and install sqsh from http://www.sqsh.org. >> 3) export SYBASE=/usr/local/freetds (or where ever your freetds is >> installed) >> Now you can use sqsh to connect to your MS SQL: >> sqsh -S servername -U username >> You're now reasy to script your own plugins based on the output you >> get from your queries. Works great. HTH, Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sghosh at sghosh.org Sat Feb 8 05:18:02 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Fri, 07 Feb 2003 23:18:02 -0500 (EST) Subject: check_nt plugin In-Reply-To: <20030207213538.31841.qmail@pod-163.dolphin-server.co.uk> References: <20030207213538.31841.qmail@pod-163.dolphin-server.co.uk> Message-ID: Try and download the napiosplug CVS version - the check_nt was put back in there because a lot folks had the same issue in compiling. -sg On 7 Feb 2003, Willy wrote: > > I'm running Nagios1.0 on an Ultra5 running Solaris8. I want to use > nsclient to monitor Windows NT/2000 servers. After I downloaded > nsclient-1.07.1 I found there's only Linux version of check_nt. I only > could get check_nt.c from UnixSource folder after I unzipped the file. > > I got errors while I complied check_nt.c on my Solaris8 box. It > complained about missing "common.h" header file. Can anyone teach/tell > me where I can get a compilable check_nt tar ball for Solaris8(sparc) or > a executable check_nt for Solaris? > > nsclient install document tells me that I need to add some lines into > "command.cfg" file. I don't have this file in Nagios configuration > folder -- /usr/local/nagios/etc ! > > Any help is greatly appreciated! > > Willy > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > -- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From ackim at coppernet.zm Sat Feb 8 11:41:23 2003 From: ackim at coppernet.zm (Ackim Chisha) Date: Sat, 08 Feb 2003 12:41:23 +0200 Subject: How do I beautify my status map, by drawing? is there a tool I can use like saintmap for netsaint Message-ID: <3E44DED3.8000304@coppernet.zm> Hello all, Am new to Nagios but so far my nagios works fine and I can monitor services on my hosts. I however have a problem with trying to beautify the statusmap. I find supplying coordinates rather a tedius job. Is there a tool for drawing like saintmap for netsaint? I would like to draw my hosts so I can see how they are interconnected to the root parent on my backbone. I will appreciate any help. Regards, Ackim ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From slebrun at muskoka.com Sat Feb 8 20:15:11 2003 From: slebrun at muskoka.com (Shayne Lebrun) Date: Sat, 8 Feb 2003 14:15:11 -0500 Subject: Compaq Insight Manager plugin v0.1 available In-Reply-To: References: Message-ID: NUMBER_OF_TEMP_SENSORS=0 MEMORY_ERR_WARN_PERCENT=1 # Warn above this percent MEMORY_ERR_WARN_PERCENT=50 # Panic above this percent PERCENT_TEMP_WARN=60 PERCENT_TEMP_PANIC=70 MEMORY_ERR_PANIC_PERCENT=20 Shouldn't that third line read MEMORY_ERR_PANIC_PERCENT ? -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Thomas Nilsen Sent: Friday, February 07, 2003 8:37 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Compaq Insight Manager plugin v0.1 available Hope this might be of interest to other Compaq server owners... I've modified Craig Cook's Big Brother script to work with Nagios. This is a pre release, which we are using in our production environment. It can be downloaded from http://home.broadpark.no/~tnilsen-1/check_cpqim.sh for the time being. I will put some docs together for it as well, but it will do for now. Any problems, please email me on thomas.nilsen at roxar.com or thomas.nilsen at doc-s.co.uk. Things to do: Timeout settings Command line options needs to be improved. Warning and Critical Level options (is currently using CPQ Agent levels and/or hard coded levels from the script). Regards, Thomas Nilsen Svg Support Tel: +47 51 81 01 30 - Mob: +47 916 98 229 DISCLAIMER: This message contains information that may be privileged or confidential and is the property of the Roxar Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorised to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From wim at hsmade.com Sat Feb 8 21:31:00 2003 From: wim at hsmade.com (Wim Fournier) Date: Sat, 8 Feb 2003 21:31:00 +0100 (CET) Subject: Fwd: Re: Monitoring HP switches In-Reply-To: <5.1.1.2.0.20030207155332.027c8ca0@192.168.0.2> References: <5.1.1.2.0.20030207155332.027c8ca0@192.168.0.2> Message-ID: <3275.62.216.10.172.1044736260.squirrel@webmail.kern.nl> Pawel Wojnicki zei: > Thanks > You wouldn't have anything for HP procurve 9304M? > I get a 404 not found on this one. > Does it work on HP procurve 4000? I wrote it for the procurve 2524. but, i found it out like this: I extracted the class file off the 'status lamp' in the webgui for the switch. If you dont have the status lamp, it wont work anyhow ;( Then I decompiled the class file into Java and looked up how they extracted the status info from the switch as the class is run on the workstation. I found an URL in the java code that was requested for. So I requested it on my browser and found some numbers which should represent the status. I found that one number was for the actual status (OK,WARNING, CRITICAL, etc) and an other for the reference to the explanation page. So I tested it by disconnecting a cable (warning) and by generating some other errors (like with security). Thats how I found out how to query for the status. The actual link to the status explanation consists of an URL with, as cgi parameter, the error number stated in the status page. If you found anything, please let me and the list know. good luck! ;o) > > Pawel > > At 15:17 03-02-07 +0100, you wrote: >>Well here you go: >>------------8<----------------------- >>#!/bin/bash >># This check checks a HP procurve 2524 webgui for events >># Returns a link to the event found >># Author: Wim Fournier (wim at kern.nl) >># $0 ip-address >>test -n $1 || exit >>export IP=$1 >> >>wget --http-user= --http-passwd=******* >>http://$IP/cgi/fflog?action=status - O - >> 2>/dev/null | awk -F~ '{ >> if ($1 == 1) {print "OK";exit 0;} >> if ($1 == 2) {printf("Information - > href=\"http://% >>s/nc >>fw_b.html?index=%d\">%s\n",ENVIRON["IP"],$2,$3); exit 1; } >> if ($1 == 3) {printf("Non-critical - >href=\"http://%s/n >>cfw_b.html?index=%d\">%s\n",ENVIRON["IP"],$2,$3); exit 1; } >> if ($1 == 4) {printf("Critical - > href=\"http://% >>s/ncfw_ >>b.html?index=%d\">%s\n",ENVIRON["IP"],$2,$3); exit 1; } >>print "Unknown"; exit -1; >>}' >>------------8<----------------------- >> >>Its based on a file that resides on the webserver of the switch with >>the status in it. >> >>Pawel Wojnicki zei: >> > Hey sure - I'd appreciate any help and info >> > >> > Pawel >> > >> >>Date: Fri, 7 Feb 2003 14:21:27 +0100 (CET) >> >>Subject: Re: [Nagios-users] Monitoring HP switches >> >>From: "Wim Fournier" >> >>To: >> >>Importance: Normal >> >>Reply-To: wim at hsmade.com >> >>X-Mailer: SquirrelMail (version 1.2.5) >> >>X-Spam-Status: No, hits=-3.1 required=5.0 >> >>tests=IN_REP_TO,MAY_BE_FORGED >> >> version=2.20 >> >>X-Spam-Level: >> >> >> >>Pawel Wojnicki zei: >> >> > Does anyone here have any experience in monitoring HP ethernet >> >> > switches? I figure you have to use check_snmp, but couldn't >> >> > find anything further in the faq or fm. >> >> >> >>even better, i hacked myself through the web management page and >> >>found a way to check for the status lamp in the left upper corner >> >>and create a link in the status field to the page with the error (if >> >>existant) >> >> >> >>contact me if you want it, it should be also somewhere on >> >>sourceforge as patch.. but can't remember where >> >> > >> >> > Pawel >> >> > >> >> > >> >> > >> >> > ------------------------------------------------------- >> >> > This SF.NET email is sponsored by: >> >> > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 >> >> > See! http://www.vasoftware.com >> >> > _______________________________________________ >> >> > Nagios-users mailing list >> >> > Nagios-users at lists.sourceforge.net >> >> > https://lists.sourceforge.net/lists/listinfo/nagios-users >> >> >> >> >> >> >> >>Grtz, >> >> >> >>Wim Fournier >> >>wim at hsmade.[com|net|org] >> >> >> >>Grtz, >> >>Wim Fournier >>wim at hsmade.[com|net|org] Grtz, Wim Fournier wim at hsmade.[com|net|org] ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From rich at vel.net Sun Feb 9 07:09:51 2003 From: rich at vel.net (Richard Gross) Date: Sat, 8 Feb 2003 22:09:51 -0800 Subject: website transaction monitor / simple web form Message-ID: <52183F243CF19E44A1166F250311C34B047772@cheddarcheese.vel.net> Stanley, Thanks for your approach. I elected to try WWW::Mechanize and got This far: #!/usr/bin/perl -w # Check Communigate Pro webmail for Nagios use WWW::Mechanize; use HTML::TokeParser; use diagnostics; my $browser = WWW::Mechanize->new(); $browser->get("http://webmail.vel.net/"); $browser->form(1); $browser->field("Username", "test\@vel.net"); $browser->field("Password", "test06"); $browser->click("login"); $browser->follow("here"); $pattern = "INBOX"; $_ = $browser->{content}; if ( /$pattern/ ) { print "INBOX"; exit 0; } else { print "CRITICAL"; exit -1; } I wrote this for the purpose of seeing whether webmail was up or not. It Was easy to monitor for SMTP and POP3. I'd love to figure out SMTP transaction to a POP3 box. Anyways... The above works for the way I have Communigate Pro setup. I know everything is hard coded and I'm not taking any ARGV things. My limited knowledge of Perl is preventing me on how to send Nagios the results of OK or CRITICAL. Been trying to figure it out, but kinda stumped right now. But Perl is an Amazing beast. So few lines of code to do something very useful. So, any ideas are appreciated. richg -----Original Message----- From: Stanley Hopcroft [mailto:Stanley.Hopcroft at IPAustralia.Gov.AU] Sent: Friday, February 07, 2003 6:15 PM To: Richard Gross Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] website transaction monitor / simple web form Dear Sir, There are a number of approaches for dealing with HTTP transactions/web forms. They include your writing wrraper programs to Perl modules that are congnizant of the transaction structure (ie what to send to what URL and when). These modules include A CPAN 1 WWW::Mechanize 2 WWW::Automate B SourceForge 1 HTTP::MonkeyWrench C unpublished 1 Netsaint::Web_Trx Here's an example plugin using the latter, use constant Intro => 'http://external/atmoss/falcon.application_start' ; use constant ConnectToSearch => 'http://external/atmoss/Falcon_Users_Cookies.Define_User' ; use constant MultiSessConn => 'http://external/atmoss/Falcon_Users_Cookies.Run_Create' ; use constant Search => 'http://external/atmoss/Falcon.Result' ; use constant ResultAbstract => 'http://external/atmoss/falcon_details.show_tm_details' ; use constant ResultDetails => 'http://external/atmoss/Falcon_Details.Show_TM_Details' ; use constant DeleteSearches => 'http://external/atmoss/Falcon_Searches.Delete_All_Searches' ; use constant Int => 'Welcome to ATMOSS' ; use constant ConnSrch => 'Connect to Trade Mark Search' ; use constant MltiSess => 'Fill in one or more of the fields below' ; use constant Srch => 'Your search request retrieved\s+\d+\s+match(es)?' ; use constant ResAbs => 'Trade Mark\s+:\s+\d+' ; use constant ResDet => ResAbs ; use constant DelSrch => MltiSess ; use constant MSC_f => [p_Anon => 'REGISTERED', p_user_type => 'Connect to Existing Extract List', p_extID => 'Stanley Hopcroft', p_password => 'It', p_JS => 'N'] ; use constant Srch_v => [p_tmno1 => 'tmno'] ; use constant RA_v => [p_tm_number => 'tmno'] ; use constant RA_f => [p_detail => 'QUICK', p_rec_all => 1, p_rec_no => 1, p_search_no => 1, p_ExtDisp => 'D'] ; use constant RD_v => RA_v ; use constant RD_f => [p_Detail => 'DETAILED', p_rec_no => 1, p_search_no => 1, p_ExtDisp => 'D']; use constant OraFault => 'We were unable to process your request at this time' ; use constant URLS => [ {Method => 'GET', Url => Intro, Qs_var => [], Qs_fixed => [], Exp => Int, Exp_Fault => OraFault}, {Method => 'GET', Url => ConnectToSearch, Qs_var => [], Qs_fixed => [], Exp => ConnSrch,Exp_Fault => OraFault}, {Method => 'POST', Url => MultiSessConn, Qs_var => [], Qs_fixed => MSC_f,Exp => MltiSess,Exp_Fault => OraFault}, {Method => 'POST', Url => Search, Qs_var => Srch_v, Qs_fixed => [], Exp => Srch, Exp_Fault => OraFault}, {Method => 'GET', Url => ResultAbstract, Qs_var => RA_v, Qs_fixed => RA_f, Exp => ResAbs,Exp_Fault => OraFault}, {Method => 'POST', Url => ResultDetails, Qs_var => RD_v, Qs_fixed => RD_f, Exp => ResDet,Exp_Fault => OraFault}, {Method => 'POST', Url => DeleteSearches, Qs_var => [], Qs_fixed => [], Exp => DelSrch, Exp_Fault => OraFault}, ] ; my (@tmarks, $tmno, $i) ; @tmarks = @ARGV ? @ARGV : (3, 100092, 200099, 300006, 400075, 500067, 600076, 700066, 800061) ; $i = @ARGV == 1 ? 0 : int( rand($#tmarks) + 0.5 ) ; $tmno = $tmarks[$i] ; my $x = Netsaint::Web_Trx->new( URLS ) ; my ($rc, $message) = $x->check( {tmno => $tmno}, debug => $debug) ; print "ATMOSS $message\n" ; exit($rc ? $ERRORS{'OK'} : $ERRORS{'CRITICAL'}) ; Easy Peasi: call the constructor with a ref to a hash containing all the URLs and the data to be sent to each URL, then call the check method. The hard bit in this case - and it's a pretty big gotcha - is _you_ have to work out the sequence of URLs sent and the data supplied to each form (some of which is invisible). The CPAN modules may be a better bet but this works well for me. On Fri, Feb 07, 2003 at 11:31:33AM -0800, Richard Gross wrote: > Wondering what can be done to use Nagios to check > a simple webform? Maybe some modifiction of the wget that > checked the hp switches? The opening page has: > >

Welcome to CommuniGate Pro,
> the test.net Messaging > Server!

>
> > > > >
Registered Users
>
> > > > > > > > > > > > > > > >
color="#cc6600">Login > Name color="cc6600">Password
> maxlength=255> > > maxlength=99> > > >
>

>

> > and would like to supply a username and password to this form, > then check for a text string INBOX would be all that's required. > > I did try the command: > > wget -r --http-user=chris at test.net --http-passwd=chris06 > http://webmail.test.net but only got back the index page... > > Not really sure how to proceed from here. > > richg > > Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jens at nha.co.za Sun Feb 9 09:26:14 2003 From: jens at nha.co.za (=?utf-8?Q?Jens_von_B=C3=BClow?=) Date: Sun, 9 Feb 2003 10:26:14 +0200 Subject: check_ifstatus: Missing right curly or square bracket at ./check_ifstatus line 254 Message-ID: <8F2D061DFD77E444B00D8FE9B8273DD012E6C5@titan.nha.co.za> R3JlZXRpbmdzLA0KIA0KRG9lcyBhbnlvbmUga25vdyBob3cgdG8gZml4IHRoaXMgZXJyb3IgbWVz c2FnZT8NCiANCjxzbmlwPg0KW2plbnNAaG9zdCBwbHVnaW5zXSMgLi9jaGVja19pZnN0YXR1cw0K TWlzc2luZyByaWdodCBjdXJseSBvciBzcXVhcmUgYnJhY2tldCBhdCAuL2NoZWNrX2lmc3RhdHVz IGxpbmUgMjU0LCBhdCBlbmQgb2YgbGluZQ0Kc3ludGF4IGVycm9yIGF0IC4vY2hlY2tfaWZzdGF0 dXMgbGluZSAyNTQsIGF0IEVPRg0KRXhlY3V0aW9uIG9mIC4vY2hlY2tfaWZzdGF0dXMgYWJvcnRl ZCBkdWUgdG8gY29tcGlsYXRpb24gZXJyb3JzLg0KPC9zbmlwPg0KIA0KV2UgYXJlIHVzaW5nIHBl cmwgdmVyc2lvbiB2NS42LjEgYnVpbHQgZm9yIGkzODYtbGludXggYW5kIG5hZ2lvcy1wbHVnaW5z LTEuMy4wLWJldGEyICYgbmFnaW9zLXBsdWdpbnMtZXh0cmFzLTEuMy4wLWJldGEyLg0KIA0KVGhh bmtzICYgUmVnYXJkcw0KSmVucw0KIA0K ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sghosh at sghosh.org Sun Feb 9 12:10:51 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Sun, 09 Feb 2003 06:10:51 -0500 (EST) Subject: check_ifstatus: Missing right curly or square bracket at ./check_ifstatus line 254 In-Reply-To: <8F2D061DFD77E444B00D8FE9B8273DD012E6C5@titan.nha.co.za> References: <8F2D061DFD77E444B00D8FE9B8273DD012E6C5@titan.nha.co.za> Message-ID: add a "}" to line 199 fixed in CVS - bug 651021 -sg On Sun, 9 Feb 2003, [utf-8] Jens von B??low wrote: > Greetings, > > Does anyone know how to fix this error message? > > > [jens at host plugins]# ./check_ifstatus > Missing right curly or square bracket at ./check_ifstatus line 254, at end of line > syntax error at ./check_ifstatus line 254, at EOF > Execution of ./check_ifstatus aborted due to compilation errors. > > We are using perl version v5.6.1 built for i386-linux and > nagios-plugins-1.3.0-beta2 & nagios-plugins-extras-1.3.0-beta2. > > Thanks & Regards > Jens > > -- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Jarett_DeAngelis at fujifilm.com Sun Feb 9 16:50:58 2003 From: Jarett_DeAngelis at fujifilm.com (Jarett DeAngelis) Date: Sun, 09 Feb 2003 10:50:58 -0500 Subject: check_citrix problem Message-ID: Hey all, I get the following when trying to ./check_citrix -h: Can't locate utils.pm in @INC (@INC contains: /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at ./check_citrix line 32.BEGIN failed--compilation aborted at ./check_citrix line 32. How do I fix this? ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sonar at kaos.xs4all.nl Sun Feb 9 17:12:25 2003 From: sonar at kaos.xs4all.nl (Frank de Groodt) Date: Sun, 9 Feb 2003 17:12:25 +0100 (CET) Subject: check_citrix problem In-Reply-To: References: Message-ID: You are probable not executing it from the plugins directory where utils.pm is located. Frank On Sun, 9 Feb 2003, Jarett DeAngelis wrote: > Hey all, > > I get the following when trying to ./check_citrix -h: > > Can't locate utils.pm in @INC (@INC contains: /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at ./check_citrix line 32.BEGIN failed--compilation aborted at ./check_citrix line 32. > How do I fix this? > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sghosh at sghosh.org Mon Feb 10 02:57:10 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Sun, 09 Feb 2003 20:57:10 -0500 (EST) Subject: check_citrix problem In-Reply-To: References: Message-ID: Make sure there is a "use lib /path/to/utils.pm" statement before "use utils.pm" -sg On Sun, 9 Feb 2003, Jarett DeAngelis wrote: > Hey all, > > I get the following when trying to ./check_citrix -h: > > Can't locate utils.pm in @INC (@INC contains: > /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 > /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi > /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl > /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi > /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at > ./check_citrix line 32.BEGIN failed--compilation aborted at > ./check_citrix line 32. How do I fix this? > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > -- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Stanley.Hopcroft at IPAustralia.Gov.AU Mon Feb 10 05:20:09 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Mon, 10 Feb 2003 15:20:09 +1100 Subject: FYI. Authentication of Nag/Netsaint web pages _without_ password challeng for MS IE browsers .. Message-ID: <20030210151958.K55236@IPAustralia.Gov.AU> Dear Ladies and Gentlemen, I am writing to let you know about a means of granting protected access to Nag/Netsaint web pages _without_ being challenged for a username and password (This authentication method is called NTLM; MS IE browsers take the 'logged in user name and password hash' from a MS Win wokstation and send it instead of 'basic' authentication). First the caveats 1 Works only with MS IE browsers, Other browsers eg Mozilla for Win, Nav/Moz for Unix challenge the user with the usual realm/username/password dialogue box ie it works exactly as one is used to with a decent browser. 2 Works only for MS Workstations _excepting_ Metaframe sessions with MS Terminal server/Metaframe application servers 3 Workstation must be logged into an MS domain/workgroup (probably including a Samba pdc/bdc but I haven't tried this) 4 Provides no group information This means you can't insist that only logged in users in specific NT groups can access Nag/Netsaint. This is probably only relevant to people that use domain auth in a big way. 5 Requires 5.1 mod_perl 5.2 Authen::Smb } published CPAN modules 5.3 Apache::AuthenNTLM } Note 1 Authen::Smb is a Perl XS that doesn't build cleanly on at least some Unix systems (however, the solution is a trivial patch). 2 AuthenNTLM _almost certainly_ requires a trivial patch to work with existing Nag setups since the user it valiudates is 'Domain\UserName' rather than UserName (as you have probably set in cgi.cfg). The patch again is trivial. Why would you want to mess with yet another 'extend and embrace' MS proprietary protocol ? Because you may have PHBs that only use MS IE browsers and you don't want them whining about yet another password. If on the other hand, you have Linux desktops/Management stations, you can happily ignore this. Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Thomas.Nilsen at roxar.com Mon Feb 10 08:24:03 2003 From: Thomas.Nilsen at roxar.com (Thomas Nilsen) Date: Mon, 10 Feb 2003 08:24:03 +0100 Subject: 3D statusmap Message-ID: default_statusmap_layout is set to 5 and default_statuswrl_layout is set to 4. And I've got no hostnames with periods either... Thomas >-----Original Message----- >From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] >Sent: Friday, February 07, 2003 8:22 PM >To: Thomas Nilsen >Cc: nagios-users at lists.sourceforge.net >Subject: RE: [Nagios-users] 3D statusmap > > >That's what I think the problem is (depending on what version of Nagios >you're running). > >What do you have default_statusmap_layout set for in cgi.cfg? >If you have >it set for 0, change it to one of the other values, restart >nagios and see >if that makes a difference. > >jc > >-----Original Message----- >From: Marc Powell [mailto:mpowell at ena.com] >Sent: Friday, February 07, 2003 8:40 AM >To: Thomas.Nilsen at roxar.com; wim at hsmade.com >Cc: nagios-users at lists.sourceforge.net >Subject: Re: [Nagios-users] 3D statusmap > > >I seem to remember some discussion of periods in names being a >problem. Is >that applicable? You might find something in the archives to >confirm that. > > >-- >Marc > >Sent from a very tiny wireless device with a very tiny unlit keyboard. > > >-----Original Message----- >From: Thomas Nilsen >To: wim at hsmade.com >CC: nagios-users at lists.sourceforge.net > >Sent: Fri Feb 07 08:21:15 2003 >Subject: RE: [Nagios-users] 3D statusmap > >That's my "AI" hands trying to clever. :-) The comma is not in >/etc/mime.types > >So this has to be for some other reason.... > >>-----Original Message----- >>From: Wim Fournier [mailto:wim at hsmade.com] >>Sent: Friday, February 07, 2003 3:19 PM >>To: Thomas Nilsen >>Cc: nagios-users at lists.sourceforge.net >>Subject: RE: [Nagios-users] 3D statusmap >> >> >>Thomas Nilsen zei: >>> "model/vrml wrl,vrml" is already listed in /etc/mime.types... >>its supposed to be "model/vrml wrl vrml" for apache. dont >>know if you put >>that comma there yourself, or that its normal for windows or >something. >> >> >>> >>>>-----Original Message----- >>>>From: Wim Fournier [mailto:wim at hsmade.com] >>>>Sent: Friday, February 07, 2003 2:49 PM >>>>To: Thomas Nilsen >>>>Cc: nagios-users at lists.sourceforge.net >>>>Subject: RE: [Nagios-users] 3D statusmap >>>> >>>> >>>>mime-types maybe? >>>> >>>>Thomas Nilsen zei: >>>>> I don't thinl it is a plugin issue, as the demo site for >>Nagios works >>>>> well when trying out the 3D statusmap. It's got to be >>>>something with my >>>>> Nagios setup. >>>>> >>>>>>-----Original Message----- >>>>>>From: Wibo Lammerts [mailto:Wibo.Lammerts at hmg.nl] >>>>>>Sent: Friday, February 07, 2003 2:24 PM >>>>>>To: Thomas Nilsen; Pawel Wojnicki; >>nagios-users at lists.sourceforge.net >>>>>>Subject: RE: [Nagios-users] 3D statusmap >>>>>> >>>>>> >>>>>>download the Cortona VRML viewer for Netscape/ie. that will do >>>>>>the trick >>>>>> >>>>>>-----Original Message----- >>>>>>From: Thomas Nilsen [mailto:Thomas.Nilsen at roxar.com] >>>>>>Sent: vrijdag 7 februari 2003 13:57 >>>>>>To: Pawel Wojnicki; nagios-users at lists.sourceforge.net >>>>>>Subject: RE: [Nagios-users] 3D statusmap >>>>>> >>>>>> >>>>>>This is the same issue as I did a post on earlier this week. >>>>>>So far I've not >>>>>>been able to solve it... >>>>>> >>>>>>>-----Original Message----- >>>>>>>From: Pawel Wojnicki [mailto:wojnicki at asw.waw.pl] >>>>>>>Sent: Friday, February 07, 2003 1:36 PM >>>>>>>To: nagios-users at lists.sourceforge.net >>>>>>>Subject: [Nagios-users] 3D statusmap >>>>>>> >>>>>>> >>>>>>>When I click on the "3d statusmap" link my browser asks me, if I >>>>>>>want to >>>>>>>open it or download (statuswrl.cgi?host=all). >>>>>>>When I select "open", it's not accessible. >>>>>>>I tried it with cortona wrml viewer and cosmoplayer - no >dice. Any >>>>>>>suggestions? >>>>>>> >>>>>>>Pawel >>>>>>> >>>>>>> >>>>>>> >>>>>>>------------------------------------------------------- >>>>>>>This SF.NET email is sponsored by: >>>>>>>SourceForge Enterprise Edition + IBM + LinuxWorld = >>Something 2 See! >>>>>>>http://www.vasoftware.com >>>>>>>_______________________________________________ >>>>>>>Nagios-users mailing list >>>>>>>Nagios-users at lists.sourceforge.net >>>>>>>https://lists.sourceforge.net/lists/listinfo/nagios-users >>>>>>> >>>>>> >>>>>> >>>>>>DISCLAIMER: >>>>>>This message contains information that may be privileged or >>>>>>confidential and >>>>>>is the property of the Roxar Group. It is intended only for >>>>>>the person to >>>>>>whom it is addressed. If you are not the intended recipient, >>>>>>you are not >>>>>>authorised to read, print, retain, copy, disseminate, >>>>>>distribute, or use >>>>>>this message or any part thereof. If you receive this >>>>message in error, >>>>>>please notify the sender immediately and delete all copies of >>>>>>this message. >>>>>> >>>>>> >>>>>>------------------------------------------------------- >>>>>>This SF.NET email is sponsored by: >>>>>>SourceForge Enterprise Edition + IBM + LinuxWorld = >>Something 2 See! >>>>>>http://www.vasoftware.com >>>>>>_______________________________________________ >>>>>>Nagios-users mailing list >>>>>>Nagios-users at lists.sourceforge.net >>>>>>https://lists.sourceforge.net/lists/listinfo/nagios-users >>>>>> >>>>> >>>>> >>>>> DISCLAIMER: >>>>> This message contains information that may be privileged or >>>>> confidential and is the property of the Roxar Group. It >is intended >>>>> only for the person to whom it is addressed. If you are not the >>>>> intended recipient, you are not authorised to read, print, retain, >>>>> copy, disseminate, distribute, or use this message or any >>>>part thereof. >>>>> If you receive this message in error, please notify the sender >>>>> immediately and delete all copies of this message. >>>>> >>>>> >>>>> ------------------------------------------------------- >>>>> This SF.NET email is sponsored by: >>>>> SourceForge Enterprise Edition + IBM + LinuxWorld = >>Something 2 See! >>>>> http://www.vasoftware.com >>>>> _______________________________________________ >>>>> Nagios-users mailing list >>>>> Nagios-users at lists.sourceforge.net >>>>> https://lists.sourceforge.net/lists/listinfo/nagios-users >>>> >>>> >>>> >>>>Grtz, >>>> >>>>Wim Fournier >>>>wim at hsmade.[com|net|org] >>>> >>>> >>>> >>> >>> >>> DISCLAIMER: >>> This message contains information that may be privileged or >>> confidential and is the property of the Roxar Group. It is intended >>> only for the person to whom it is addressed. If you are not the >>> intended recipient, you are not authorised to read, print, retain, >>> copy, disseminate, distribute, or use this message or any >>part thereof. >>> If you receive this message in error, please notify the sender >>> immediately and delete all copies of this message. >>> >>> >>> ------------------------------------------------------- >>> This SF.NET email is sponsored by: >>> SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >>> http://www.vasoftware.com >>> _______________________________________________ >>> Nagios-users mailing list >>> Nagios-users at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/nagios-users >> >> >> >>Grtz, >> >>Wim Fournier >>wim at hsmade.[com|net|org] >> >> >> > > >DISCLAIMER: >This message contains information that may be privileged or >confidential and >is the property of the Roxar Group. It is intended only for >the person to >whom it is addressed. If you are not the intended recipient, >you are not >authorised to read, print, retain, copy, disseminate, >distribute, or use >this message or any part thereof. If you receive this message in error, >please notify the sender immediately and delete all copies of >this message. > > >------------------------------------------------------- >This SF.NET email is sponsored by: >SourceForge Enterprise Edition + IBM + LinuxWorld =omething 2 See! >http://www.vasoftware.com >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users > DISCLAIMER: This message contains information that may be privileged or confidential and is the property of the Roxar Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorised to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Thomas.Nilsen at roxar.com Mon Feb 10 08:26:58 2003 From: Thomas.Nilsen at roxar.com (Thomas Nilsen) Date: Mon, 10 Feb 2003 08:26:58 +0100 Subject: FYI. Authentication of Nag/Netsaint web pages _without_ password challeng for MS IE browsers .. Message-ID: Stanley, Could you post some more details on this? I've tried unsuccessfully to get Apache:AuthenNTLM to work. which pathces do you use, and from where do you get them? Regards, Thomas >-----Original Message----- >From: Stanley Hopcroft [mailto:Stanley.Hopcroft at IPAustralia.Gov.AU] >Sent: Monday, February 10, 2003 5:20 AM >To: nagios-users at lists.sourceforge.net >Subject: [Nagios-users] FYI. Authentication of Nag/Netsaint web pages >_without_ password challeng for MS IE browsers .. > > >Dear Ladies and Gentlemen, > >I am writing to let you know about a means of granting protected access >to Nag/Netsaint web pages _without_ being challenged for a username and >password (This authentication method is called NTLM; MS IE >browsers take >the 'logged in user name and password hash' from a MS Win >wokstation and >send it instead of 'basic' authentication). > >First the caveats > >1 Works only with MS IE browsers, > >Other browsers eg Mozilla for Win, Nav/Moz for Unix challenge the user >with the usual realm/username/password dialogue box ie it >works exactly >as one is used to with a decent browser. > >2 Works only for MS Workstations _excepting_ Metaframe >sessions with MS >Terminal server/Metaframe application servers > >3 Workstation must be logged into an MS domain/workgroup (probably >including a Samba pdc/bdc but I haven't tried this) > >4 Provides no group information > >This means you can't insist that only logged in users in specific NT >groups can access Nag/Netsaint. This is probably only relevant >to people >that use domain auth in a big way. > >5 Requires > >5.1 mod_perl >5.2 Authen::Smb } published CPAN modules >5.3 Apache::AuthenNTLM } > >Note > >1 Authen::Smb is a Perl XS that doesn't build cleanly on at least >some Unix systems (however, the solution is a trivial patch). > >2 AuthenNTLM _almost certainly_ requires a trivial patch to work with >existing Nag setups since the user it valiudates is 'Domain\UserName' >rather than UserName (as you have probably set in cgi.cfg). The patch >again is trivial. > >Why would you want to mess with yet another 'extend and embrace' MS >proprietary protocol ? > >Because you may have PHBs that only use MS IE browsers and you don't >want them whining about yet another password. > >If on the other hand, you have Linux desktops/Management stations, you >can happily ignore this. > >Yours sincerely. > > > -- >--------------------------------------------------------------- >--------- >Stanley Hopcroft >--------------------------------------------------------------- >--------- > >'...No man is an island, entire of itself; every man is a piece of the >continent, a part of the main. If a clod be washed away by the sea, >Europe is the less, as well as if a promontory were, as well as if a >manor of thy friend's or of thine own were. Any man's death diminishes >me, because I am involved in mankind; and therefore never send to know >for whom the bell tolls; it tolls for thee...' > >from Meditation 17, J Donne. > > >------------------------------------------------------- >This SF.NET email is sponsored by: >SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >http://www.vasoftware.com >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users > DISCLAIMER: This message contains information that may be privileged or confidential and is the property of the Roxar Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorised to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Thomas.Nilsen at roxar.com Mon Feb 10 08:33:34 2003 From: Thomas.Nilsen at roxar.com (Thomas Nilsen) Date: Mon, 10 Feb 2003 08:33:34 +0100 Subject: Compaq Insight Manager plugin v0.1 available Message-ID: Yes, it should. Will fix till next release. Thanks, Thomas >-----Original Message----- >From: Shayne Lebrun [mailto:slebrun at muskoka.com] >Sent: Saturday, February 08, 2003 8:15 PM >To: Thomas Nilsen; nagios-users at lists.sourceforge.net >Subject: RE: [Nagios-users] Compaq Insight Manager plugin v0.1 >available > > >NUMBER_OF_TEMP_SENSORS=0 >MEMORY_ERR_WARN_PERCENT=1 # Warn above this percent >MEMORY_ERR_WARN_PERCENT=50 # Panic above this percent >PERCENT_TEMP_WARN=60 >PERCENT_TEMP_PANIC=70 >MEMORY_ERR_PANIC_PERCENT=20 > >Shouldn't that third line read MEMORY_ERR_PANIC_PERCENT ? > >-----Original Message----- >From: nagios-users-admin at lists.sourceforge.net >[mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Thomas >Nilsen >Sent: Friday, February 07, 2003 8:37 AM >To: nagios-users at lists.sourceforge.net >Subject: [Nagios-users] Compaq Insight Manager plugin v0.1 available > > >Hope this might be of interest to other Compaq server owners... > >I've modified Craig Cook's Big Brother script to work with >Nagios. This is a >pre release, which we are using in our production environment. > >It can be downloaded from >http://home.broadpark.no/~tnilsen->1/check_cpqim.sh >for the >time being. I will put some docs >together for it as well, but it >will do for now. > >Any problems, please email me on thomas.nilsen at roxar.com or >thomas.nilsen at doc-s.co.uk. > >Things to do: > >Timeout settings >Command line options needs to be improved. >Warning and Critical Level options (is currently using CPQ Agent levels >and/or hard coded levels from the script). > >Regards, >Thomas Nilsen >Svg Support >Tel: +47 51 81 01 30 - Mob: +47 916 98 229 > > > >DISCLAIMER: >This message contains information that may be privileged or >confidential and >is the property of the Roxar Group. It is intended only for >the person to >whom it is addressed. If you are not the intended recipient, >you are not >authorised to read, print, retain, copy, disseminate, >distribute, or use >this message or any part thereof. If you receive this message in error, >please notify the sender immediately and delete all copies of >this message. > > >------------------------------------------------------- >This SF.NET email is sponsored by: >SourceForge Enterprise Edition + IBM + LinuxWorld http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users DISCLAIMER: This message contains information that may be privileged or confidential and is the property of the Roxar Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorised to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Thomas.Nilsen at roxar.com Mon Feb 10 09:18:15 2003 From: Thomas.Nilsen at roxar.com (Thomas Nilsen) Date: Mon, 10 Feb 2003 09:18:15 +0100 Subject: 3D statusmap Message-ID: found the culprit... I'm using Nagios over HTTPS, which causes the 3D view to fail. I don't know if it is Nagios/Apache or the 3d plugin for the browser that's causing it, but once I swithced to HTTP it works. The error logged in apache's error_log is: Mon Feb 10 08:36:20 2003] [error] mod_ssl: SSL handshake interrupted by system [Hint: Stop button pressed in browser?!] (System error follows) [Mon Feb 10 08:36:20 2003] [error] System: Connection reset by peer (errno: 104) Thomas >-----Original Message----- >From: Thomas Nilsen >Sent: Monday, February 10, 2003 8:24 AM >To: nagios-users at lists.sourceforge.net >Cc: Carroll, Jim P [Contractor] >Subject: RE: [Nagios-users] 3D statusmap > > >default_statusmap_layout is set to 5 and >default_statuswrl_layout is set to 4. > >And I've got no hostnames with periods either... > >Thomas > >>-----Original Message----- >>From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] >>Sent: Friday, February 07, 2003 8:22 PM >>To: Thomas Nilsen >>Cc: nagios-users at lists.sourceforge.net >>Subject: RE: [Nagios-users] 3D statusmap >> >> >>That's what I think the problem is (depending on what version >of Nagios >>you're running). >> >>What do you have default_statusmap_layout set for in cgi.cfg? >>If you have >>it set for 0, change it to one of the other values, restart >>nagios and see >>if that makes a difference. >> >>jc >> >>-----Original Message----- >>From: Marc Powell [mailto:mpowell at ena.com] >>Sent: Friday, February 07, 2003 8:40 AM >>To: Thomas.Nilsen at roxar.com; wim at hsmade.com >>Cc: nagios-users at lists.sourceforge.net >>Subject: Re: [Nagios-users] 3D statusmap >> >> >>I seem to remember some discussion of periods in names being a >>problem. Is >>that applicable? You might find something in the archives to >>confirm that. >> >> >>-- >>Marc >> >>Sent from a very tiny wireless device with a very tiny unlit keyboard. >> >> >>-----Original Message----- >>From: Thomas Nilsen >>To: wim at hsmade.com >>CC: nagios-users at lists.sourceforge.net >> >>Sent: Fri Feb 07 08:21:15 2003 >>Subject: RE: [Nagios-users] 3D statusmap >> >>That's my "AI" hands trying to clever. :-) The comma is not in >>/etc/mime.types >> >>So this has to be for some other reason.... >> >>>-----Original Message----- >>>From: Wim Fournier [mailto:wim at hsmade.com] >>>Sent: Friday, February 07, 2003 3:19 PM >>>To: Thomas Nilsen >>>Cc: nagios-users at lists.sourceforge.net >>>Subject: RE: [Nagios-users] 3D statusmap >>> >>> >>>Thomas Nilsen zei: >>>> "model/vrml wrl,vrml" is already listed in /etc/mime.types... >>>its supposed to be "model/vrml wrl vrml" for apache. dont >>>know if you put >>>that comma there yourself, or that its normal for windows or >>something. >>> >>> >>>> >>>>>-----Original Message----- >>>>>From: Wim Fournier [mailto:wim at hsmade.com] >>>>>Sent: Friday, February 07, 2003 2:49 PM >>>>>To: Thomas Nilsen >>>>>Cc: nagios-users at lists.sourceforge.net >>>>>Subject: RE: [Nagios-users] 3D statusmap >>>>> >>>>> >>>>>mime-types maybe? >>>>> >>>>>Thomas Nilsen zei: >>>>>> I don't thinl it is a plugin issue, as the demo site for >>>Nagios works >>>>>> well when trying out the 3D statusmap. It's got to be >>>>>something with my >>>>>> Nagios setup. >>>>>> >>>>>>>-----Original Message----- >>>>>>>From: Wibo Lammerts [mailto:Wibo.Lammerts at hmg.nl] >>>>>>>Sent: Friday, February 07, 2003 2:24 PM >>>>>>>To: Thomas Nilsen; Pawel Wojnicki; >>>nagios-users at lists.sourceforge.net >>>>>>>Subject: RE: [Nagios-users] 3D statusmap >>>>>>> >>>>>>> >>>>>>>download the Cortona VRML viewer for Netscape/ie. that will do >>>>>>>the trick >>>>>>> >>>>>>>-----Original Message----- >>>>>>>From: Thomas Nilsen [mailto:Thomas.Nilsen at roxar.com] >>>>>>>Sent: vrijdag 7 februari 2003 13:57 >>>>>>>To: Pawel Wojnicki; nagios-users at lists.sourceforge.net >>>>>>>Subject: RE: [Nagios-users] 3D statusmap >>>>>>> >>>>>>> >>>>>>>This is the same issue as I did a post on earlier this week. >>>>>>>So far I've not >>>>>>>been able to solve it... >>>>>>> >>>>>>>>-----Original Message----- >>>>>>>>From: Pawel Wojnicki [mailto:wojnicki at asw.waw.pl] >>>>>>>>Sent: Friday, February 07, 2003 1:36 PM >>>>>>>>To: nagios-users at lists.sourceforge.net >>>>>>>>Subject: [Nagios-users] 3D statusmap >>>>>>>> >>>>>>>> >>>>>>>>When I click on the "3d statusmap" link my browser asks me, if I >>>>>>>>want to >>>>>>>>open it or download (statuswrl.cgi?host=all). >>>>>>>>When I select "open", it's not accessible. >>>>>>>>I tried it with cortona wrml viewer and cosmoplayer - no >>dice. Any >>>>>>>>suggestions? >>>>>>>> >>>>>>>>Pawel >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>------------------------------------------------------- >>>>>>>>This SF.NET email is sponsored by: >>>>>>>>SourceForge Enterprise Edition + IBM + LinuxWorld = >>>Something 2 See! >>>>>>>>http://www.vasoftware.com >>>>>>>>_______________________________________________ >>>>>>>>Nagios-users mailing list >>>>>>>>Nagios-users at lists.sourceforge.net >>>>>>>>https://lists.sourceforge.net/lists/listinfo/nagios-users >>>>>>>> >>>>>>> >>>>>>> >>>>>>>DISCLAIMER: >>>>>>>This message contains information that may be privileged or >>>>>>>confidential and >>>>>>>is the property of the Roxar Group. It is intended only for >>>>>>>the person to >>>>>>>whom it is addressed. If you are not the intended recipient, >>>>>>>you are not >>>>>>>authorised to read, print, retain, copy, disseminate, >>>>>>>distribute, or use >>>>>>>this message or any part thereof. If you receive this >>>>>message in error, >>>>>>>please notify the sender immediately and delete all copies of >>>>>>>this message. >>>>>>> >>>>>>> >>>>>>>------------------------------------------------------- >>>>>>>This SF.NET email is sponsored by: >>>>>>>SourceForge Enterprise Edition + IBM + LinuxWorld = >>>Something 2 See! >>>>>>>http://www.vasoftware.com >>>>>>>_______________________________________________ >>>>>>>Nagios-users mailing list >>>>>>>Nagios-users at lists.sourceforge.net >>>>>>>https://lists.sourceforge.net/lists/listinfo/nagios-users >>>>>>> >>>>>> >>>>>> >>>>>> DISCLAIMER: >>>>>> This message contains information that may be privileged or >>>>>> confidential and is the property of the Roxar Group. It >>is intended >>>>>> only for the person to whom it is addressed. If you are not the >>>>>> intended recipient, you are not authorised to read, >print, retain, >>>>>> copy, disseminate, distribute, or use this message or any >>>>>part thereof. >>>>>> If you receive this message in error, please notify the sender >>>>>> immediately and delete all copies of this message. >>>>>> >>>>>> >>>>>> ------------------------------------------------------- >>>>>> This SF.NET email is sponsored by: >>>>>> SourceForge Enterprise Edition + IBM + LinuxWorld = >>>Something 2 See! >>>>>> http://www.vasoftware.com >>>>>> _______________________________________________ >>>>>> Nagios-users mailing list >>>>>> Nagios-users at lists.sourceforge.net >>>>>> https://lists.sourceforge.net/lists/listinfo/nagios-users >>>>> >>>>> >>>>> >>>>>Grtz, >>>>> >>>>>Wim Fournier >>>>>wim at hsmade.[com|net|org] >>>>> >>>>> >>>>> >>>> >>>> >>>> DISCLAIMER: >>>> This message contains information that may be privileged or >>>> confidential and is the property of the Roxar Group. It is intended >>>> only for the person to whom it is addressed. If you are not the >>>> intended recipient, you are not authorised to read, print, retain, >>>> copy, disseminate, distribute, or use this message or any >>>part thereof. >>>> If you receive this message in error, please notify the sender >>>> immediately and delete all copies of this message. >>>> >>>> >>>> ------------------------------------------------------- >>>> This SF.NET email is sponsored by: >>>> SourceForge Enterprise Edition + IBM + LinuxWorld = >Something 2 See! >>>> http://www.vasoftware.com >>>> _______________________________________________ >>>> Nagios-users mailing list >>>> Nagios-users at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/nagios-users >>> >>> >>> >>>Grtz, >>> >>>Wim Fournier >>>wim at hsmade.[com|net|org] >>> >>> >>> >> >> >>DISCLAIMER: >>This message contains information that may be privileged or >>confidential and >>is the property of the Roxar Group. It is intended only for >>the person to >>whom it is addressed. If you are not the intended recipient, >>you are not >>authorised to read, print, retain, copy, disseminate, >>distribute, or use >>this message or any part thereof. If you receive this message >in error, >>please notify the sender immediately and delete all copies of >>this message. >> >> >>------------------------------------------------------- >>This SF.NET email is sponsored by: >>SourceForge Enterprise Edition + IBM + LinuxWorld =omething 2 See! >>http://www.vasoftware.com >>_______________________________________________ >>Nagios-users mailing list >>Nagios-users at lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/nagios-users >> > > >DISCLAIMER: >This message contains information that may be privileged or >confidential and is the property of the Roxar Group. It is >intended only for the person to whom it is addressed. If you >are not the intended recipient, you are not authorised to >read, print, retain, copy, disseminate, distribute, or use >this message or any part thereof. If you receive this message >in error, please notify the sender immediately and delete all >copies of this message. > > >------------------------------------------------------- >This SF.NET email is sponsored by: >SourceForge Enterprise Edition + IBM + LinuxWorld =omething 2 See! >http://www.vasoftware.com >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users > DISCLAIMER: This message contains information that may be privileged or confidential and is the property of the Roxar Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorised to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Stanley.Hopcroft at IPAustralia.Gov.AU Mon Feb 10 09:33:28 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Mon, 10 Feb 2003 19:33:28 +1100 Subject: FYI. Authentication of Nag/Netsaint web pages _without_ password challeng for MS IE browsers .. In-Reply-To: ; from Thomas.Nilsen@roxar.com on Mon, Feb 10, 2003 at 08:26:58AM +0100 References: Message-ID: <20030210193319.B220@IPAustralia.Gov.AU> Dear Sir, On Mon, Feb 10, 2003 at 08:26:58AM +0100, Thomas Nilsen wrote: > Stanley, > > Could you post some more details on this? I've tried unsuccessfully to > get Apache::AuthenNTLM to work. which patches do you use, I am a litle reluctant to talk more about this for various reasons, most particuarly 1 Authen::AuthenSmb is based on _old_ technology. I would like to provide a better basis for modules like this. 2 There is another list member who has been devoting some time to this matter and he indicated a wish to provide the list with a blow by blow description of how setup Domain authentication of Nag CGIs. I apologise for preempting his work but suggest that there is ample scope for what he intends. > and from where do you get them? >From me. Caveat Emptor. > Regards, Thomas Here are the patches. tsitc> diff -U3 smbval/smbencrypt.c.orig smbval/smbencrypt.c --- smbval/smbencrypt.c.orig Sat Jul 14 19:53:56 2001 +++ smbval/smbencrypt.c Sat Jul 14 19:54:11 2001 @@ -24,7 +24,7 @@ #include #include #include -#include +/* #include */ #include #include #include "smblib-priv.h" tsitc> # Note, this is known to work _only_ on FreeBSD 4.x # Don't even think about hacking Mr Sharpes 'portable SMB library'. # Samba now provides a portable client library 'libsmbclient.so'. tsitc> diff -U3 AuthenNTLM.pm.dist AuthenNTLM.pm --- AuthenNTLM.pm.dist Fri Feb 7 19:30:20 2003 +++ AuthenNTLM.pm Fri Feb 7 19:31:25 2003 @@ -232,7 +232,8 @@ { my ($self, $r) = @_ ; - return lc("$self->{userdomain}\\$self->{username}") ; + return lc("$self->{username}") ; + # return lc("$self->{userdomain}\\$self->{username}") ; } tsitc> # Note 1 You almost certainly need this patch unless your Nag users are # of the form Domain\UserName # Note 2 Unless your Nag usernames and Domain Account names are # # _identical_, _none_ of these means of Authentication methods # are going to be useful. Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Wibo.Lammerts at hmg.nl Mon Feb 10 10:01:32 2003 From: Wibo.Lammerts at hmg.nl (Wibo Lammerts) Date: Mon, 10 Feb 2003 10:01:32 +0100 Subject: NSCLIENT ERRORS IN NAGIOS Message-ID: Hi all, Could someone please clarify the errors listed below? Error on server 1: NSClient - ERROR:Malformed request or internal error. Check EventLog:None&8&\Paging File(_Total)\% Usage&Paging File usage is %.2f %% After restarting the service, the following error comes up in the logs: NSCleint Error: PDH.dll Collect CPU - ERROR: 0x800007D6 Error on server 2: NSClient - ERROR:Wrong password Any info is appreciated. Wibo Lammerts Systems Engineering HMG / RTL GROUP SA ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Volker.Aust at premiere.de Mon Feb 10 10:40:31 2003 From: Volker.Aust at premiere.de (Volker.Aust at premiere.de) Date: Mon, 10 Feb 2003 10:40:31 +0100 Subject: FW: Nagios to monitor MQSeries Message-ID: I have to include some libraries: gcc -o amqsailq -lmqic -lmqicb -lmqmcs -lmqmzse amqsailq.c -vol > -----Original Message----- > From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] > Sent: Friday, February 07, 2003 8:45 PM > To: Aust, Volker, PRE; wim at hsmade.com > Cc: nagios-users at lists.sourceforge.net > Subject: RE: FW: [Nagios-users] Nagios to monitor MQSeries > > > What was the incantation you used for compiling amqsailq.c? I tried: > > gcc -o amqsailq -I ../inc amqsailq.c > > but no joy. > > jc > > > -----Original Message----- > > From: Volker.Aust at premiere.de [mailto:Volker.Aust at premiere.de] > > Sent: Friday, February 07, 2003 3:04 AM > > To: Carroll, Jim P [Contractor]; wim at hsmade.com > > Cc: nagios-users at lists.sourceforge.net > > Subject: RE: FW: [Nagios-users] Nagios to monitor MQSeries > > > > > > I have talked about IBM MQSeries and I never said, that it > was not an > > proprietary product. I do not check MQ from the Nagios host > > (Solaris 8 x86). > > I call my script (which calls a modified sample program) > > through NRPE on a > > Solaris 9 Sparc host with a MQ Client: > > > > $ pkginfo -l | fgrep -i mq > > PKGINST: mqm > > NAME: WebSphere MQ Client for Sun Solaris > > > > $ ls -l /opt/mqm/samp/amqsailq.c > > -r--r--r-- 1 mqm mqm 19373 Jun 14 2002 > > /opt/mqm/samp/amqsailq.c > > > > The colleague have found/modified/written a program > "queuedeep", that > > queries the length of a single queue from the MQ-server. I > > have wraped this > > program in a shell script to generate the error-code/output > > for Nagios. > > > > -vol > > > > > -----Original Message----- > > > From: Carroll, Jim P [Contractor] > > [mailto:jcarro10 at sprintspectrum.com] > > > Sent: Thursday, February 06, 2003 7:11 PM > > > To: 'wim at hsmade.com'; Aust, Volker, PRE > > > Cc: nagios-users at lists.sourceforge.net > > > Subject: RE: FW: [Nagios-users] Nagios to monitor MQSeries > > > > > > > > > MQSeries is similar to but different than SonicMQ. The > > > latter is a JMS > > > product by Sonic Software. The former is an IBM product > > > using a proprietary > > > standard. > > > > > > We have both here; I wouldn't mind monitoring both of these > > natively. > > > > > > Hm. We don't seem to have the 'amqsailq' program. What's > > > the default path > > > to this? I didn't find it under /opt/mqm nor under /usr (on > > > Solaris8). > > > > > > $ pkginfo -l | grep -i mq > > > PKGINST: mqjava > > > DESC: MQSeries classes for Java and MQSeries classes > > > for Java Message > > > Service > > > PKGINST: mqm > > > NAME: MQSeries for Sun Solaris 2 > > > PKGINST: mqm-upd03 > > > NAME: MQSeries for Sun Solaris 2 - U478291 > > > PKGINST: mqm-upd05 > > > NAME: MQSeries for Sun Solaris 2 - U481514 > > > > > > jc > > > > > > > -----Original Message----- > > > > From: Wim Fournier [mailto:wim at hsmade.com] > > > > Sent: Thursday, February 06, 2003 10:38 AM > > > > To: Volker.Aust at premiere.de > > > > Cc: nagios-users at lists.sourceforge.net > > > > Subject: Re: FW: [Nagios-users] Nagios to monitor MQSeries > > > > > > > > > > > > Are you talking about Sonic MQ here? > > > > > > > > > > > > > > > > > Sorry, I have forgotten the list... > > > > > > > > > >> -----Original Message----- > > > > >> From: Aust, Volker, PRE > > > > >> Sent: Thursday, February 06, 2003 1:06 PM > > > > >> To: 'Detlef.Knop at gmx.de' > > > > >> Subject: RE: [Nagios-users] Nagios to monitor MQSeries > > > > >> > > > > >> > > > > >> Hi Detlef, > > > > >> > > > > >> when you install the MQSeries client (with developer > > > > >> support), you get some sample programs. One of these sample > > > > >> programs is "amqsailq", which lists the length of all > > > > >> MQ-queues of a server. You can use "amqsailq" local or > > > > >> remote. When you use this program (or a mofified version, > > > > >> that only checks important queues like we do (a colleague has > > > > >> modified some of the sample programs)) remote, you can make > > > > >> two tests with one call: > > > > >> > > > > >> - check the connectivity to the MQ-server and the -service > > > > >> > > > > >> - check the length of some important queues (too many, too > > > > few, ...) > > > > >> > > > > >> I have wraped the program in a shell script to generate the > > > > >> Nagios stuff (return-code and output). > > > > >> > > > > >> Hope this helps. > > > > >> > > > > >> -vol > > > > >> > > > > >> > -----Original Message----- > > > > >> > From: Detlef.Knop at gmx.de [mailto:Detlef.Knop at gmx.de] > > > > >> > Sent: Thursday, February 06, 2003 7:40 AM > > > > >> > To: nagios-users at lists.sourceforge.net > > > > >> > Subject: [Nagios-users] Nagios to monitor MQSeries > > > > >> > > > > > >> > > > > > >> > Dear all, > > > > >> > > > > > >> > I would like to check whether MQSeries is available as a > > > > >> > service on several > > > > >> > of my hosts. My first approach was to use the check_tcp > > > > >> > plugin which from my > > > > >> > point of view worked fine. But the people looking after > > > > >> > MQSeries on these > > > > >> > machines came back to me and complained that each time the > > > > >> > plugin ran MQSeries > > > > >> > reported errors on these systems (two errors per check) > > > > >> > because MQSeries > > > > >> > detects the incoming connection and wants to receive proper > > > > >> > data, but then the > > > > >> > connection is closed. > > > > >> > > > > > >> > Has anyone ever tried to do the same and found a solution? > > > > >> > Maybe there is a > > > > >> > way using passive checks, or we might have to look into the > > > > >> > possibility to > > > > >> > write a plugin. > > > > >> > > > > > >> > Kind regards > > > > >> > > > > > >> > Detlef Knop > > > > >> > > > > > >> > -- > > > > >> > +++ GMX - Mail, Messaging & more http://www.gmx.net +++ > > > > >> > NEU: Mit GMX ins Internet. Rund um die Uhr f?r 1 ct/ > > > Min. surfen! > > > > >> > > > > > >> > > > > > >> > > > > > >> > ------------------------------------------------------- > > > > >> > This SF.NET email is sponsored by: > > > > >> > SourceForge Enterprise Edition + IBM + LinuxWorld = > > > > Something 2 See! > > > > >> > http://www.vasoftware.com > > > > >> > _______________________________________________ > > > > >> > Nagios-users mailing list > > > > >> > Nagios-users at lists.sourceforge.net > > > > >> > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > >> > > > > > >> > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > This SF.NET email is sponsored by: > > > > > SourceForge Enterprise Edition + IBM + LinuxWorld = > > > Something 2 See! > > > > > http://www.vasoftware.com > > > > > _______________________________________________ > > > > > Nagios-users mailing list > > > > > Nagios-users at lists.sourceforge.net > > > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > > > > > > > > Grtz, > > > > > > > > Wim Fournier > > > > wim at hsmade.[com|net|org] > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > This SF.NET email is sponsored by: > > > > SourceForge Enterprise Edition + IBM + LinuxWorld = > > Something 2 See! > > > > http://www.vasoftware.com > > > > _______________________________________________ > > > > Nagios-users mailing list > > > > Nagios-users at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From katja.lehmann at web.de Mon Feb 10 11:57:19 2003 From: katja.lehmann at web.de (Katja Lehmann) Date: Mon, 10 Feb 2003 11:57:19 +0100 Subject: Misccommands... Message-ID: <200302101057.h1AAvJe00949@mailgate5.cinetic.de> Hi there! Well my Nagios works really fine since 4 month right now but I have just 2 problems with it: I want that my nagios notificates me via sms and ring me on the phone so I wrote two scripts. One to connect to our sms-gateway and for the phone I changed the /etc/wvdial.conf to ring me. Well... when I exec the two scripts from commandline e.g. ./wvdial it is functionally. But when I write it into misccomands it does not work. Of course I wrote the notification command into the contacts.cfg but I did not recive a sms or a calling from nagios. Here my misccommands.cfg: define command { name notify-by-phone command_name notify-by-phone command_line /usr/bin/wvdial } define command { name host-notify-by-phone command_name host-notify-by-phone command_line /usr/bin/wvdial } define command { name notify-by-sys command_name notify-by-sms command_line /usr/bin/printf "%b" "Nagios Notification Type:$NOTIFICATIONTYPE$ Service:$SERVICEDESK$ Host:$ HOSTALIAS$ Adress:$HOSTADDRESS$ State:$SERVICESTATE$ Date:$DATETIME$ Info:$OUTPUT$" > /root/smsmsg } define command { name host-notify-by-sms command_name host-notify-by-sms command_line /usr/bin/printf "%b" "test" > /root/smsmsg } I hope that someboddy can help me!!!! Katja ______________________________________________________________________________ Nur ein Zuhause im Internet: Verwalten Sie alle Ihre E-Mail-Adressen einfach bei WEB.DE FreeMail! http://freemail.web.de/features/?mc=021124 ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From karl at debisschop.net Mon Feb 10 12:17:49 2003 From: karl at debisschop.net (Karl DeBisschop) Date: 10 Feb 2003 06:17:49 -0500 Subject: Misccommands... In-Reply-To: <200302101057.h1AAvJe00949@mailgate5.cinetic.de> References: <200302101057.h1AAvJe00949@mailgate5.cinetic.de> Message-ID: <1044875867.2943.32.camel@localhost.localdomain> At first blush, it appears unlikely that the webserver user or the nagios user would be able to access /root/smsmsg. Maybe the file need to go int /tmp? -- Karl On Mon, 2003-02-10 at 05:57, Katja Lehmann wrote: > Hi there! > Well my Nagios works really fine since 4 month right now but I have just 2 problems with it: > I want that my nagios notificates me via sms and ring me on the phone so I wrote two scripts. One to connect to our sms-gateway and for the phone I changed the /etc/wvdial.conf to ring me. > Well... when I exec the two scripts from commandline e.g. ./wvdial it is functionally. > But when I write it into misccomands it does not work. > Of course I wrote the notification command into the contacts.cfg but I did not recive a sms or a calling from nagios. > > Here my misccommands.cfg: > > define command { > name notify-by-phone > command_name notify-by-phone > command_line /usr/bin/wvdial > } > > define command { > name host-notify-by-phone > command_name host-notify-by-phone > command_line /usr/bin/wvdial > } > > > define command { > name notify-by-sys > command_name notify-by-sms > command_line /usr/bin/printf "%b" "Nagios Notification Type:$NOTIFICATIONTYPE$ Service:$SERVICEDESK$ Host:$ > HOSTALIAS$ Adress:$HOSTADDRESS$ State:$SERVICESTATE$ Date:$DATETIME$ Info:$OUTPUT$" > /root/smsmsg > } > > define command { > name host-notify-by-sms > command_name host-notify-by-sms > command_line /usr/bin/printf "%b" "test" > /root/smsmsg > } > > I hope that someboddy can help me!!!! > > > Katja > ______________________________________________________________________________ > Nur ein Zuhause im Internet: Verwalten Sie alle Ihre E-Mail-Adressen > einfach bei WEB.DE FreeMail! http://freemail.web.de/features/?mc=021124 > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Stanley.G.Martin at mail.sprint.com Mon Feb 10 14:02:59 2003 From: Stanley.G.Martin at mail.sprint.com (Stanley.G.Martin at mail.sprint.com) Date: Mon, 10 Feb 2003 07:02:59 -0600 Subject: NSCLIENT ERRORS IN NAGIOS Message-ID: Have you upgraded to the latest version of the NSClient? It's supposed to stop those errors being written to the Eventlog. Stanley G. Martin Sprint - ISS Enterprise App/Decision Support Services Stanley.G.Martin at mail.sprint.com -----Original Message----- From: Wibo.Lammerts [mailto:Wibo.Lammerts at hmg.nl] Sent: Monday, February 10, 2003 3:02 AM To: nagios-users Subject: [Nagios-users] NSCLIENT ERRORS IN NAGIOS Hi all, Could someone please clarify the errors listed below? Error on server 1: NSClient - ERROR:Malformed request or internal error. Check EventLog:None&8&\Paging File(_Total)\% Usage&Paging File usage is %.2f %% After restarting the service, the following error comes up in the logs: NSCleint Error: PDH.dll Collect CPU - ERROR: 0x800007D6 Error on server 2: NSClient - ERROR:Wrong password Any info is appreciated. Wibo Lammerts Systems Engineering HMG / RTL GROUP SA ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Stanley.G.Martin at mail.sprint.com Mon Feb 10 14:20:30 2003 From: Stanley.G.Martin at mail.sprint.com (Stanley.G.Martin at mail.sprint.com) Date: Mon, 10 Feb 2003 07:20:30 -0600 Subject: Config Question Message-ID: Does it seem kind of redundant to have a PING service on a host since the check_host command for a host definition also performs a ping? Also, if a service, for example NSClient performing a check_nt, for some reason can't hook up with the client piece returns an error "unknown" or "can't connect to the client". Isn't it supposed to first check to see if it's a "Host Down" situation before I get numerous pages about NSClient? Stanley G. Martin Sprint - EIS? Customer Care Stanley.G.Martin at mail.sprint.com ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jsm at inpro.net Mon Feb 10 14:52:02 2003 From: jsm at inpro.net (Jeff McKeon) Date: 10 Feb 2003 08:52:02 -0500 Subject: check-host-alive Message-ID: <1044885122.30847.5.camel@rh80-jsm.telaurus.net> Ok, this one is probably really simple... added a new host to the nagios config over the weekend, a 3COM switch. I didn't put any service checks on it because there's nothing really running on it because it's a switch. The status still says "Pending." Shouldn't the default "Check-host-alive" command that is defined in the host file change the status to "up?" thanks, jeff ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From rau at rieder.net.py Mon Feb 10 15:48:20 2003 From: rau at rieder.net.py (=?iso-8859-1?Q?Ra=FAl_Guti=E9rrez_Segal=E9s?=) Date: Mon, 10 Feb 2003 10:48:20 -0400 Subject: (no subject) Message-ID: <200302101348.h1ADmKCt031742@mail.rieder.net> Hi, I have moved the images from share/images/logos directory to another location so I dont get the interrogation marks in the statusmap. The statusmap is much more readble now but I still get the borderlines from the images (that dont appear). Is it possible to get rid of this lines so I can a cleaner statusmap ? I looked at the configuration files and didnt find anything, perhaps I should touch the code... The Layout method that I use is Circular marked up. Thanks in advance. Raul __________________________________________________ Este mensaje es enviado via Webmail Rieder Internet ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From tdeblend at gcc.dhl.com Mon Feb 10 15:03:41 2003 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Mon, 10 Feb 2003 15:03:41 +0100 Subject: check-host-alive References: <1044885122.30847.5.camel@rh80-jsm.telaurus.net> Message-ID: <3E47B13D.DB2A04FF@gcc.dhl.com> Every host needs at least one service. Jeff McKeon wrote: > > Ok, this one is probably really simple... > > added a new host to the nagios config over the weekend, a 3COM switch. > I didn't put any service checks on it because there's nothing really > running on it because it's a switch. > > The status still says "Pending." Shouldn't the default > "Check-host-alive" command that is defined in the host file change the > status to "up?" > > thanks, > > jeff > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From mpowell at ena.com Mon Feb 10 15:06:47 2003 From: mpowell at ena.com (Marc Powell) Date: Mon, 10 Feb 2003 08:06:47 -0600 Subject: check-host-alive Message-ID: <5DB017510818EC468B05BD7BD9EACF83032D3FE0@mismail.ena.com> No. Hosts are never checked unless a service on that hosts fails a check. You'll need to define at least one service, even if its just a check_ping service. -- Marc Sent from a very tiny wireless device with a very tiny unlit keyboard. -----Original Message----- From: Jeff McKeon To: Nagios List Sent: Mon Feb 10 07:52:02 2003 Subject: [Nagios-users] check-host-alive Ok, this one is probably really simple... added a new host to the nagios config over the weekend, a 3COM switch. I didn't put any service checks on it because there's nothing really running on it because it's a switch. The status still says "Pending." Shouldn't the default "Check-host-alive" command that is defined in the host file change the status to "up?" thanks, jeff ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From brendon at iwg.info Mon Feb 10 15:30:45 2003 From: brendon at iwg.info (Brendon Caligari) Date: Mon, 10 Feb 2003 15:30:45 +0100 Subject: check-host-alive Message-ID: It seems that hosts need at least a service. For hosts that had nothing to check but an interface I added pinging as a service. B -----Original Message----- From: Jeff McKeon [mailto:jsm at inpro.net] Sent: 10 February 2003 14:52 To: Nagios List Subject: [Nagios-users] check-host-alive Ok, this one is probably really simple... added a new host to the nagios config over the weekend, a 3COM switch. I didn't put any service checks on it because there's nothing really running on it because it's a switch. The status still says "Pending." Shouldn't the default "Check-host-alive" command that is defined in the host file change the status to "up?" thanks, jeff ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sghosh at sghosh.org Mon Feb 10 15:27:49 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Mon, 10 Feb 2003 09:27:49 -0500 (EST) Subject: check-host-alive In-Reply-To: <1044885122.30847.5.camel@rh80-jsm.telaurus.net> References: <1044885122.30847.5.camel@rh80-jsm.telaurus.net> Message-ID: On 10 Feb 2003, Jeff McKeon wrote: > Ok, this one is probably really simple... > > added a new host to the nagios config over the weekend, a 3COM switch. > I didn't put any service checks on it because there's nothing really > running on it because it's a switch. > > The status still says "Pending." Shouldn't the default > "Check-host-alive" command that is defined in the host file change the > status to "up?" > > thanks, > > jeff > I could say "rtfm" ;) Nagios doesn't do anything without services. At the very least the switch is switching packets. If you cannot monitor that without snmp, you should be able to ping its ip address. If it is an unmanaged device and you want to include it for parent/child relationships, use the check_dummy plugin -- -sg ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Raj.Mudhar at nottingham.ac.uk Mon Feb 10 15:24:37 2003 From: Raj.Mudhar at nottingham.ac.uk (Raj Mudhar) Date: Mon, 10 Feb 2003 14:24:37 +0000 Subject: plugins dependencies Message-ID: Hi, There are various plugins that will not be compiled unless I have these dependencies. For example: check_fping - requires the fping utility. check_game - requires qstat check_hpjd - requires the snmpget binary and so on and so on. What i want to know is that after doing a Redhat 8.0 installation with the Install Everything option will i still need to download these as it says in the Requirements Nagios plugins readme. Also is there a way to check if I have any of these already before getting all that it suggests and installing them. Regards ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sghosh at sghosh.org Mon Feb 10 16:09:26 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Mon, 10 Feb 2003 10:09:26 -0500 (EST) Subject: plugins dependencies In-Reply-To: References: Message-ID: On Mon, 10 Feb 2003, Raj Mudhar wrote: > Hi, > > There are various plugins that will not be compiled unless I have these dependencies. > > For example: check_fping - requires the fping utility. > check_game - requires qstat > check_hpjd - requires the snmpget binary > > and so on and so on. > > What i want to know is that after doing a Redhat 8.0 installation with > the Install Everything option will i still need to download these as it > says in the Requirements Nagios plugins readme. Also is there a way to > check if I have any of these already before getting all that it suggests > and installing them. > > Regards > > (line wrap to <80 please) Currently there is no list of dependencies except those generated from the ./configure process. A full install of RedHat will not always include all the dependencies. fping is not included in RedHat qstat is not included in RedHat lmstat is not included in RedHat snmpget is included in RedHat -- -sg ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From russell at quadrix.com Mon Feb 10 16:32:14 2003 From: russell at quadrix.com (Russell Scibetti) Date: Mon, 10 Feb 2003 10:32:14 -0500 Subject: NRPE vs. check_by_ssh vs. nagios_statd References: <74D428BDBFD5D04CB54E84499ECA29DB2F24F9@PKDWB03C.ad.sprint.com> <3E3E2862.7050007@cern.ch> <20030203162818.C17473@cadge.midwinter.com> Message-ID: <3E47C5FE.5000209@quadrix.com> For what its worth, the default check_by_ssh plugin already allows multiple checks to be performed in one ssh command and then dumps the results into the command pipe to be processed passively. Russell Scibetti Steven Grimm wrote: >If you want to check multiple services on remote hosts using ssh, you >might want to look at my batch_by_ssh script, which will check all of >a remote host's services with one ssh command (rather than one ssh >per remote service) which should reduce your scaling woes. It's still >not as cheap as NRPE, but especially if you have several services per >host on a ton of remote hosts, it'll cut way down on ssh overhead. >It also lets you centrally manage the commands that are run on remote >hosts, rather than doing it on config files on those hosts as with NRPE; >whether that's a plus or a drawback is a matter of taste. > >http://www.midwinter.com/~koreth/nagios/batch_by_ssh > >There's extensive documentation (by Nagios plugin standards, anyway) >at the top of the script. > >If you use it you'll want to make sure you've applied the following >check_by_ssh buffer overflow patch: > >https://sourceforge.net/tracker/index.php?func=detail&aid=673863&group_id=29880&atid=397599 > >-Steve > > >On Mon, Feb 03, 2003 at 09:29:22AM +0100, Marian Zurek wrote: > >>Hi, >> >> Thanks for you reply. As the first approach I applied the 'check_by_ssh' >>solution for couple of machines. >> I have here around 100 PC and plan to perform two remote checks on each of >>them. Could you tell me at which point I might >> hit the wall/scalability problem ? >> My future plans will be most probably SNMP based, but I am a bit hesitant >>if it is really needed with this number of host/services ?? >> >> Thnaks in advance for your comments. >> >>Regards, >>Marian >> > > >------------------------------------------------------- >This SF.NET email is sponsored by: >SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! >http://www.vasoftware.com >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users > > -- Russell Scibetti Quadrix Solutions, Inc. http://www.quadrix.com (732) 235-2335, ext. 7038 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Michael.Huettig at Medien-Systempartner.de Mon Feb 10 16:44:25 2003 From: Michael.Huettig at Medien-Systempartner.de (Michael =?iso-8859-1?q?H=FCttig?=) Date: Mon, 10 Feb 2003 16:44:25 +0100 Subject: check_nt plugins In-Reply-To: <20030207064227.51017.qmail@web40602.mail.yahoo.com> References: <20030207064227.51017.qmail@web40602.mail.yahoo.com> Message-ID: <200302101644.25937.Michael.Huettig@Medien-Systempartner.de> > I would like to ask why does the warning and critical > option in check_nt nagios plugins wont work? It only > works to verify my disk space. Below is my sample > command: > > ./check_nt -H -v USEDDISKSPACE -w > 50 -c 60 -l c > > output: > > c:\ - total: 4.00 Gb - used: 3.34 Gb (83%) - free 0.66 > Gb (17%) > > Eventhough I increase or decrease the value of -w and > -c , it doesn't have an effect. > > > Thanks > Bernie > Hi Bernie, I'm looking to the sources and i've found that in check_nt.c ... int check_warning_value=FALSE; int check_critical_value=FALSE; ... but i'm not so firm in programming C, so that i'm not shure that it's wrong, 'cause the other routines will working properly. If you have some time to test it, please let me know. Greetings Michael ********************************************************************** Diese E-Mail wurde auf Viren ueberprueft. www.mimesweeper.com ********************************************************************** ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From rburnson at cps.k12.il.us Mon Feb 10 17:05:44 2003 From: rburnson at cps.k12.il.us (Burnson, Richard) Date: Mon, 10 Feb 2003 10:05:44 -0600 Subject: check_nt plugins Message-ID: The check_nt plugin does not return any text stating critical or not. What you need to look at is the return value. After you run the plugin from the command line, enter the command "echo $?" to see what the exit value was. A 0 is OK, a 1 is Warning a 2 is critical and -1 is unkown. Here's an example: [libexec]# ./check_nt -H x.x.x.x -v CPULOAD -l 15,8,9 CPU Load (15 min. 5%) [libexec]# echo $? 0 [libexec]# ./check_nt -H x.x.x.x -v CPULOAD -l 15,2,9 CPU Load (15 min. 5%) [libexec]# echo $? 1 [libexec]# ./check_nt -H x.x.x.x -v CPULOAD -l 15,2,3 CPU Load (15 min. 5%) [libexec]# echo $? 2 HTH, Richard -----Original Message----- From: Michael H?ttig [mailto:Michael.Huettig at Medien-Systempartner.de] Sent: Monday, February 10, 2003 9:44 AM To: bernie liwanag; nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] check_nt plugins > I would like to ask why does the warning and critical > option in check_nt nagios plugins wont work? It only > works to verify my disk space. Below is my sample > command: > > ./check_nt -H -v USEDDISKSPACE -w > 50 -c 60 -l c > > output: > > c:\ - total: 4.00 Gb - used: 3.34 Gb (83%) - free 0.66 > Gb (17%) > > Eventhough I increase or decrease the value of -w and > -c , it doesn't have an effect. > > > Thanks > Bernie > Hi Bernie, I'm looking to the sources and i've found that in check_nt.c ... int check_warning_value=FALSE; int check_critical_value=FALSE; ... but i'm not so firm in programming C, so that i'm not shure that it's wrong, 'cause the other routines will working properly. If you have some time to test it, please let me know. Greetings Michael ********************************************************************** Diese E-Mail wurde auf Viren ueberprueft. www.mimesweeper.com ********************************************************************** ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jcarro10 at sprintspectrum.com Mon Feb 10 16:38:20 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Mon, 10 Feb 2003 09:38:20 -0600 Subject: Schedule An Immediate Check - I have rtfm and stfw no help Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1472@PKDWB03C.ad.sprint.com> Do an "ls -ld /usr/local/nagios/var/rw" and let us know what the results are. jc > -----Original Message----- > From: Michael W. Oliver [mailto:michael at gargantuan.com] > Sent: Friday, February 07, 2003 7:59 PM > To: Carroll, Jim P [Contractor] > Subject: Re: [Nagios-users] Schedule An Immediate Check - I have rtfm > and stfw no help > > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Friday, February 07, 2003 17:21, you wrote: > > http://nagios.sourceforge.net/docs/1_0/commandfile.html > > > > I followed those directions to the letter, as evidenced by > the earlier post > displaying the permissions. What am I missing here? > - -- > - > -------------------------------------------------------------- > ---------- > Michael W. Oliver, CCNP | > IPv6 & FreeBSD mizark | "The tree of liberty must be > refreshed > michael at gargantuan.com | from time to time with the blood of > http://michael.gargantuan.com/ | patriots and tyrants." > (via IPv4 and IPv6) | - President Thomas Jefferson > IPv6 ASPathTree, Looking Glass | > - > -------------------------------------------------------------- > ---------- > > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.1 (FreeBSD) > > iD8DBQE+RGSDsWv7q8X6o8kRAi7rAKCf0FIMqkC4UP6QYqpe6xebUR7eAACfSWq3 > Tdoq4+pBtQv/HvxhO/NvMYU= > =6MHu > -----END PGP SIGNATURE----- > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jcarro10 at sprintspectrum.com Mon Feb 10 16:46:15 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Mon, 10 Feb 2003 09:46:15 -0600 Subject: Schedule An Immediate Check - I have rtfm and stfw no help Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1473@PKDWB03C.ad.sprint.com> I wasn't too keen on the notion of adding 'nobody' to 'nagiocmd'. Having said that, let's move forwards. To illustrate which usernames should be a member of 'nagiocmd': $ groups apache nagios apache : apache nagiocmd nagios : nagios nagiocmd I also noticed you have the wrong perms on /usr/local/nagios/var/rw -- try this: $ chmod 2770 /usr/local/nagios/var/rw $ ls -ld /usr/local/nagios/var/rw drwxrws--- 2 nagios nagiocmd 4096 Feb 7 11:44 /usr/local/nagios/var/rw You must have done a "chmod 2760" on the 'rw' directory. You need mode 2770. Do all this, then restart nagios. Then do a: ls -l /usr/local/nagios/var/rw and see what nagios.cmd has for permissions. Everything should be good to go at this point. jc > -----Original Message----- > From: Michael W. Oliver [mailto:michael at gargantuan.com] > Sent: Friday, February 07, 2003 7:52 PM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Schedule An Immediate Check - I have rtfm > and stfw no help > > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Friday, February 07, 2003 12:42, Michael W. Oliver wrote: > > more information... > > > > # ls /usr/local/nagios/var/rw > > total 2 > > drwxrwS--- 2 nagios nagiocmd 512 Feb 5 15:11 ./ > > drwxrwxr-x 4 nagios nagios 512 Feb 7 12:41 ../ > > prw-rw---- 1 nagios nagiocmd 0 Feb 5 15:11 nagios.cmd| > > > > # grep nagiocmd /etc/group > > nagiocmd:*:55554:nagios,nobody > > > > Now, I see in the 'SOLVED' reply that the 'nagios.cmd' file > was created > > by the Nagios process with nagios:nagios ownership, but mine isn't > > created that way. As you can see above, my nagios.cmd file > is created > > with > > nagios:nagiocmd ownership. You can also see that 'nobody' > is part of the > > 'nagiocmd' group, which _should_ give 'nobody' rw access to the > > nagios.cmd file. Even so, I still receive that error when trying to > > execute a command from the browser. BAH! > > > > In addition, in the 'SOLVED' reply, it looks like the user > 'nobody' was > > added to the 'nagios' group, effectively eliminating the > need for the > > 'nagiocmd' group. Isn't this insecure, putting the > 'nobody' user in the > > 'nagios' group, effectively giving that user permission to > everything > > that Nagios has permission to? I was under the impression > that the whole > > purpose of creating the new group was to limit the access > of the 'nobody' > > user. > > > > What am I missing? Thanks! > > > > -- > > > If there is anyone that can shed some light on why this isn't > working, I > would greatly appreciate it. > > - -- > - > -------------------------------------------------------------- > ---------- > Michael W. Oliver, CCNP | > IPv6 & FreeBSD mizark | "The tree of liberty must be > refreshed > michael at gargantuan.com | from time to time with the blood of > http://michael.gargantuan.com/ | patriots and tyrants." > (via IPv4 and IPv6) | - President Thomas Jefferson > IPv6 ASPathTree, Looking Glass | > - > -------------------------------------------------------------- > ---------- > > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.1 (FreeBSD) > > iD8DBQE+RGK6sWv7q8X6o8kRAvusAJoD6I35uvAPYGl/WphHSXamIfqpmQCfZJN0 > O4sl6LEp/Vmg2IK2PA7L2Uk= > =38CK > -----END PGP SIGNATURE----- > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From kdebisschop at mail.debisschop.net Mon Feb 10 16:29:15 2003 From: kdebisschop at mail.debisschop.net (Karl DeBisschop) Date: Mon, 10 Feb 2003 10:29:15 -0500 Subject: plugins dependencies In-Reply-To: References: Message-ID: Subhendu Ghosh writes: > On Mon, 10 Feb 2003, Raj Mudhar wrote: > >> Hi, >> >> There are various plugins that will not be compiled unless I have these dependencies. >> >> For example: check_fping - requires the fping utility. >> check_game - requires qstat >> check_hpjd - requires the snmpget binary >> >> and so on and so on. >> >> What i want to know is that after doing a Redhat 8.0 installation with >> the Install Everything option will i still need to download these as it >> says in the Requirements Nagios plugins readme. Also is there a way to >> check if I have any of these already before getting all that it suggests >> and installing them. >> >> Regards >> >> > > (line wrap to <80 please) > > Currently there is no list of dependencies except those generated from the > ./configure process. The RPM does list the dependencies. If you want a rpm that is not built for all possible dependencies, use rpmbuild -ta --define 'custom 1' nagios-plugins-*.tar.gz' > A full install of RedHat will not always include all the dependencies. > > fping is not included in RedHat > qstat is not included in RedHat > lmstat is not included in RedHat > > snmpget is included in RedHat > > -- > > -sg > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From wgong at smu.edu.sg Mon Feb 10 17:23:53 2003 From: wgong at smu.edu.sg (GONG Wei) Date: Tue, 11 Feb 2003 00:23:53 +0800 Subject: Which version of CVS should I download for regex pattern matching for host, hostgroup and service names? Message-ID: <108506BDA45F1F45AA6EDE147A27FC0102013FC3@mail1.smu.edu.sg> Looks like this feature has already been implemented (2.0 completed features). Have they been committed to the CVS? If yes which branch should I download? Tried: cvs -d:pserver:anonymous at cvs.nagios.sourceforge.net:/cvsroot/nagios login cvs -z3 -d:pserver:anonymous at cvs.nagios.sourceforge.net:/cvsroot/nagios co nagios And the result has been quite disappointing. It builds fine but complained about: ===================== Error: Invalid hostgroup object directive 'contact_groups'. Error: Could not add object property in file '/usr/local/nagios/etc/lan/all-ap.cfg' on line 478. ===================== When I was trying "bin/nagios -v etc/nagios.cfg" command. The same config files, however, works perfectly in the nagios-1.0 downloaded from the web. I am using RedHat 7.2 and the built command used is: ./configure \ --with-mail=/bin/mail \ --with-init-dir=/etc/rc.d/init.d \ --with-default-status \ --with-default-comments \ --with-file-perfdata \ --with-default-downtime \ --with-gd-lib=/usr/lib \ --with-gd-inc=/usr/include \ --enable-regexp-matching \ --with-perlcache --enable-DEBUG4 ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From michael at gargantuan.com Mon Feb 10 18:14:03 2003 From: michael at gargantuan.com (Michael W. Oliver) Date: Mon, 10 Feb 2003 12:14:03 -0500 Subject: Schedule An Immediate Check - I have rtfm and stfw no help In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB014E1473@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB014E1473@PKDWB03C.ad.sprint.com> Message-ID: <200302101214.12962.michael@gargantuan.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Monday, February 10, 2003 10:46, you wrote: > I wasn't too keen on the notion of adding 'nobody' to 'nagiocmd'. Having > said that, let's move forwards. > > To illustrate which usernames should be a member of 'nagiocmd': > > $ groups apache nagios > apache : apache nagiocmd > nagios : nagios nagiocmd > # grep nagiocmd /etc/group nagiocmd:*:55554:nagios,nobody # grep nagios /etc/group nagios:*:55555:nagios nagiocmd:*:55554:nagios,nobody # grep nobody /etc/group nobody:*:65534: nagiocmd:*:55554:nagios,nobody So, you can see that the user 'nobody' is in the correct group... more below... > I also noticed you have the wrong perms on /usr/local/nagios/var/rw -- > try this: > > $ chmod 2770 /usr/local/nagios/var/rw > $ ls -ld /usr/local/nagios/var/rw > drwxrws--- 2 nagios nagiocmd 4096 Feb 7 11:44 > /usr/local/nagios/var/rw > > You must have done a "chmod 2760" on the 'rw' directory. You need mode > 2770. > > Do all this, then restart nagios. Then do a: > > ls -l /usr/local/nagios/var/rw > > and see what nagios.cmd has for permissions. > > Everything should be good to go at this point. > > jc # pwd /usr/local/nagios/var/rw # ls -alF total 2 drwxrwS--- 2 nagios nagiocmd 512 Feb 5 15:11 ./ drwxrwxr-x 4 nagios nagios 512 Feb 10 11:59 ../ prw-rw---- 1 nagios nagiocmd 0 Feb 5 15:11 nagios.cmd| Now, I just figured out what was wrong... and you are right! In the above, you see the permissions on /usr/local/nagios/var/rw as 'drwxrwS---', which is the result of following the instructions at: http://nagios.sourceforge.net/docs/1_0/commandfile.html I took your advice and changed it to 2770 (drwxrws---, lowercase 's'), and now it works just as it should. The documentation assumes an initial state of g+x on /usr/local/nagios/var/rw, which isn't the case for me. Following the doc to change the permissions to 'g+rw' resulted in 'drwxrwS---', or 2760, instead of the desired 'drwxrws---'. Perhaps the doc could use 'chmod 2770' instead of listing three chmod commands which still didn't give the desired result (for me, anyway). Thanks very much for your help jc, you da man. - -- - -------------------------------+---------------------------------------- Michael W. Oliver, CCNP | "The tree of liberty must be refreshed michael at gargantuan.com | from time to time with the blood of http://michael.gargantuan.com/ | patriots and tyrants." (via IPv4 and IPv6) | - President Thomas Jefferson IPv6 ASPathTree, Looking Glass +---------------------------------------- gpg --keyserver pgpkeys.mit.edu --recv-keys C5FAA3C9 - ------------------------------------------------------------------------ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+R93ksWv7q8X6o8kRAu/ZAJ9Ulmy7hGrA0lWYEVFHZZ4J7GqOfQCeJ6VG N47XQ+IxkiNcl1d5+PVOmVA= =LxVN -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From lilesb at ijet.com Mon Feb 10 18:58:57 2003 From: lilesb at ijet.com (Bryan Liles) Date: Mon, 10 Feb 2003 12:58:57 -0500 Subject: nagios perl module Message-ID: <200302101258.57810.lilesb@ijet.com> I have created Nagios-Perl for the Osesm GTK Nagios project. This perl module will load a nagios configuration given the location of a local nagios.cfg file. Currently, Nagios-Perl will load host configuration files given a cfg_file or a cfg_dir directive. Since this is a brand new package, saving the changes you might make back to the config file isn't implemented yet. I plan on implementing this, so you can load up a set of configuration files, make changes to hosts, hostgroups, services, etc..., and then save them back to the same file they were defined in. I am developing this package with the small to medium site in mind. I have no idea how much memory will be used when you load up thousands of objects (yet!!) Right now, this module is only packaged for use in the Osesm project. Could anyone else here find use for this? If so, I will document it, and package it as a separate file release at sourceforge. An example: #!/usr/bin/perl # Load nagios module use nagios; # Turn on strict use strict; # Create Nagios object my $ncfg = nagios->new(); # Point Nagios object to a nagios config $ncfg->config("/usr/local/nagios/etc/nagios.cfg"); # Get a list of host files in the config my @hosts = $ncfg->getHosts(); # List all the hosts in the config foreach my $h (@hosts) { # Get the name of this host. nagios.pm sets a qName object for each record # as the quick name. It does this because you can have host objects and # host object templates. my $name = $h->qName; # if this is a template, the qName will match name if ($name eq $h->name) { print "Host Template: $name\n"; } # if this is a host, the qName will match host_name elsif ($name eq $h->host_name) { print "Host: $name\n"; } } -- Bryan Liles ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jcarro10 at sprintspectrum.com Mon Feb 10 18:26:39 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Mon, 10 Feb 2003 11:26:39 -0600 Subject: Config Question Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1477@PKDWB03C.ad.sprint.com> To answer your two questions: 1) Yes. When I first set up Nagios, I had also set up the redundant check_ping service. Eventually I decided that that was a bit excessive, and removed it. 2) Yes, that's what's supposed to happen. We recently had a situation where the NT host in question (resident in the DMZ) was pingable, but all the other services got alerted on, because the firewall got gummed up with too many processes. (This required manual intervention on behalf of the firewall admin to clear up.) FWIW, if you want to simplify the number of alerts you receive for anything relating to check_nt, define some servicedependencies. Maybe make them all depend on a simple test such as checking for the version of NSClient that's running. That's what we're doing. jc > -----Original Message----- > From: Martin, Stanley G > Sent: Monday, February 10, 2003 7:21 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Config Question > > > Does it seem kind of redundant to have a PING service on a host since > the check_host command for a host definition also performs a ping? > Also, if a service, for example NSClient performing a > check_nt, for some > reason can't hook up with the client piece returns an error > "unknown" or > "can't connect to the client". Isn't it supposed to first > check to see > if it's a "Host Down" situation before I get numerous pages about > NSClient? > > Stanley G. Martin > Sprint - EIS? Customer Care > Stanley.G.Martin at mail.sprint.com > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From rgonline99 at netzero.com Mon Feb 10 20:00:32 2003 From: rgonline99 at netzero.com (T Mellon) Date: Mon, 10 Feb 2003 19:00:32 GMT Subject: Assistance Needed: RH 7.3 w/cpanel Message-ID: <20030210.110129.1770.16479@webmail08.lax.untd.com> I'm in the middle of installing Nagios on a RH 7.3 server with Cpanel (cpanel.net) installed, and I'm slightly confused in what to put in the ./configure line :\ My brain is slightly fizzled right now (long day already ;) ). I have this for my ./configure line: ./configure --prefix=/usr/local/nagios --with-cgiurl=/nagios/cgi-bin --with-htmurl=/nagios/ --with-nagios-user=nagios --with-nagios-grp=nagios And I get: --with-htmurl=/nagios/: No such file or directory What should I put for my htmurl? I've tried /home/username/public_html/nagios - but that didn't go through (username inserted with hosting account username, etc). If someone can help me out, that would be great. I've been up since 4:30 this morning, and my brain is half awake right now :) Thanks!! Tonya rgonline99 at netzero.net ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From russell at quadrix.com Mon Feb 10 20:11:15 2003 From: russell at quadrix.com (Russell Scibetti) Date: Mon, 10 Feb 2003 14:11:15 -0500 Subject: Oracle DB Query check Message-ID: <3E47F953.9010605@quadrix.com> I have created a "plugin" to check connecting and querying an Oracle DB. However, instead of needing the Oracle client installed on your monitoring machine, I use java (JDK1.3.1 and up) and a Jar/Zip file of the Oracle JDBC libraries (classes12.zip for those that know it). It is a small java class that connects, runs a query and exits, and you can wrap it with any number of different shell scripts for running different queries and processing the results. The class takes a connection string, user, password, and query to run. It returns OK if the query executes and returns any resultset, which is printed to the OUTPUT string. It returns a Critical if a SQLException occurs or the resultset of the query is empty. The SQLException message is printed as the OUTPUT if one occurs. Is anyone interested in this code? If so, I will email it out to the list. I was just trying to avoid installing the Oracle client where I didn't need it, and take advantage of an already existing Java installation. Russell Scibetti -- Russell Scibetti Quadrix Solutions, Inc. http://www.quadrix.com (732) 235-2335, ext. 7038 ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From rich at vel.net Mon Feb 10 20:20:02 2003 From: rich at vel.net (Richard Gross) Date: Mon, 10 Feb 2003 11:20:02 -0800 Subject: website transaction monitor / simple web form SOLVED Message-ID: <52183F243CF19E44A1166F250311C34B047773@cheddarcheese.vel.net> Here's the final result for my WWW::Mechanize perl script: #!/usr/bin/perl -w # Check Communigate Pro webmail for Nagios use WWW::Mechanize; use diagnostics; use lib "/usr/local/nagios/libexec" ; use utils qw($TIMEOUT %ERRORS &print_revision &support); my $browser = WWW::Mechanize->new(); $browser->get(" http://webmail.vel.net/ "); $browser->form(1); $browser->field("Username", "test\@vel.net"); $browser->field("Password", "test06"); $browser->click("login"); $browser->follow("here"); $pattern = "INBOX"; $_ = $browser->{content}; if ( /$pattern/ ) { print "INBOX"; exit $ERRORS{'OK'}; } else { print ("ERROR: No response from webmail.vel.net\n"); exit $ERRORS{'CRITICAL'}; } Hope this helps someone. Thanks to Stanley for his input. richg -----Original Message----- From: Richard Gross Sent: Saturday, February 08, 2003 10:10 PM To: Stanley Hopcroft Cc: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] website transaction monitor / simple web form Stanley, Thanks for your approach. I elected to try WWW::Mechanize and got This far: #!/usr/bin/perl -w # Check Communigate Pro webmail for Nagios use WWW::Mechanize; use HTML::TokeParser; use diagnostics; my $browser = WWW::Mechanize->new(); $browser->get(" http://webmail.vel.net/ "); $browser->form(1); $browser->field("Username", "test\@vel.net"); $browser->field("Password", "test06"); $browser->click("login"); $browser->follow("here"); $pattern = "INBOX"; $_ = $browser->{content}; if ( /$pattern/ ) { print "INBOX"; exit 0; } else { print "CRITICAL"; exit -1; } I wrote this for the purpose of seeing whether webmail was up or not. It Was easy to monitor for SMTP and POP3. I'd love to figure out SMTP transaction to a POP3 box. Anyways... The above works for the way I have Communigate Pro setup. I know everything is hard coded and I'm not taking any ARGV things. My limited knowledge of Perl is preventing me on how to send Nagios the results of OK or CRITICAL. Been trying to figure it out, but kinda stumped right now. But Perl is an Amazing beast. So few lines of code to do something very useful. So, any ideas are appreciated. richg -----Original Message----- From: Stanley Hopcroft [ mailto:Stanley.Hopcroft at IPAustralia.Gov.AU ] Sent: Friday, February 07, 2003 6:15 PM To: Richard Gross Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] website transaction monitor / simple web form Dear Sir, There are a number of approaches for dealing with HTTP transactions/web forms. They include your writing wrraper programs to Perl modules that are congnizant of the transaction structure (ie what to send to what URL and when). These modules include A CPAN 1 WWW::Mechanize 2 WWW::Automate B SourceForge 1 HTTP::MonkeyWrench C unpublished 1 Netsaint::Web_Trx Here's an example plugin using the latter, use constant Intro => ' http://external/atmoss/falcon.application_start' ; use constant ConnectToSearch => ' http://external/atmoss/Falcon_Users_Cookies.Define_User' ; use constant MultiSessConn => ' http://external/atmoss/Falcon_Users_Cookies.Run_Create' ; use constant Search => ' http://external/atmoss/Falcon.Result' ; use constant ResultAbstract => ' http://external/atmoss/falcon_details.show_tm_details' ; use constant ResultDetails => ' http://external/atmoss/Falcon_Details.Show_TM_Details' ; use constant DeleteSearches => ' http://external/atmoss/Falcon_Searches.Delete_All_Searches' ; use constant Int => 'Welcome to ATMOSS' ; use constant ConnSrch => 'Connect to Trade Mark Search' ; use constant MltiSess => 'Fill in one or more of the fields below' ; use constant Srch => 'Your search request retrieved\s+\d+\s+match(es)?' ; use constant ResAbs => 'Trade Mark\s+:\s+\d+' ; use constant ResDet => ResAbs ; use constant DelSrch => MltiSess ; use constant MSC_f => [p_Anon => 'REGISTERED', p_user_type => 'Connect to Existing Extract List', p_extID => 'Stanley Hopcroft', p_password => 'It', p_JS => 'N'] ; use constant Srch_v => [p_tmno1 => 'tmno'] ; use constant RA_v => [p_tm_number => 'tmno'] ; use constant RA_f => [p_detail => 'QUICK', p_rec_all => 1, p_rec_no => 1, p_search_no => 1, p_ExtDisp => 'D'] ; use constant RD_v => RA_v ; use constant RD_f => [p_Detail => 'DETAILED', p_rec_no => 1, p_search_no => 1, p_ExtDisp => 'D']; use constant OraFault => 'We were unable to process your request at this time' ; use constant URLS => [ {Method => 'GET', Url => Intro, Qs_var => [], Qs_fixed => [], Exp => Int, Exp_Fault => OraFault}, {Method => 'GET', Url => ConnectToSearch, Qs_var => [], Qs_fixed => [], Exp => ConnSrch,Exp_Fault => OraFault}, {Method => 'POST', Url => MultiSessConn, Qs_var => [], Qs_fixed => MSC_f,Exp => MltiSess,Exp_Fault => OraFault}, {Method => 'POST', Url => Search, Qs_var => Srch_v, Qs_fixed => [], Exp => Srch, Exp_Fault => OraFault}, {Method => 'GET', Url => ResultAbstract, Qs_var => RA_v, Qs_fixed => RA_f, Exp => ResAbs,Exp_Fault => OraFault}, {Method => 'POST', Url => ResultDetails, Qs_var => RD_v, Qs_fixed => RD_f, Exp => ResDet,Exp_Fault => OraFault}, {Method => 'POST', Url => DeleteSearches, Qs_var => [], Qs_fixed => [], Exp => DelSrch, Exp_Fault => OraFault}, ] ; my (@tmarks, $tmno, $i) ; @tmarks = @ARGV ? @ARGV : (3, 100092, 200099, 300006, 400075, 500067, 600076, 700066, 800061) ; $i = @ARGV == 1 ? 0 : int( rand($#tmarks) + 0.5 ) ; $tmno = $tmarks[$i] ; my $x = Netsaint::Web_Trx->new( URLS ) ; my ($rc, $message) = $x->check( {tmno => $tmno}, debug => $debug) ; print "ATMOSS $message\n" ; exit($rc ? $ERRORS{'OK'} : $ERRORS{'CRITICAL'}) ; Easy Peasi: call the constructor with a ref to a hash containing all the URLs and the data to be sent to each URL, then call the check method. The hard bit in this case - and it's a pretty big gotcha - is _you_ have to work out the sequence of URLs sent and the data supplied to each form (some of which is invisible). The CPAN modules may be a better bet but this works well for me. On Fri, Feb 07, 2003 at 11:31:33AM -0800, Richard Gross wrote: > Wondering what can be done to use Nagios to check > a simple webform? Maybe some modifiction of the wget that > checked the hp switches? The opening page has: > >

Welcome to CommuniGate Pro,
> the test.net Messaging > Server!

>
> > > > >
Registered Users
>
> > > > > > > > > > > > > > > >
color="#cc6600">Login > Name color="cc6600">Password
> maxlength=255> > > maxlength=99> > > >
>

>

> > and would like to supply a username and password to this form, > then check for a text string INBOX would be all that's required. > > I did try the command: > > wget -r --http-user=chris at test.net --http-passwd=chris06 > http://webmail.test.net but only got back the index page... > > Not really sure how to proceed from here. > > richg > > Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcarro10 at sprintspectrum.com Mon Feb 10 19:31:30 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Mon, 10 Feb 2003 12:31:30 -0600 Subject: Schedule An Immediate Check - I have rtfm and stfw no help Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F2551@PKDWB03C.ad.sprint.com> Glad you got it working. I'm puzzling over why you're bothering with username 'nobody' at all, instead of 'apache' or 'http' or whatever you run your webserver under. What you've effectively done is grant more privs to user 'nobody', which should really be just that, nobody. Let someone login as 'nobody' (which isn't really a realistic scenario, but anyway...), and voila, they have access to your nagios.cmd file, something you probably don't want. Let me take a step backwards. What username are you running Apache under? (I'm making the wild assumption that you're running Apache at all.) Once you have that info, what group(s) does that username belong to? Ideally that username would belong to 'nagiocmd'. For your particular customization, you've added 'nobody' to 'nagiocmd', but the prescribed approach is to have apache belong to 'nagiocmd'. As for the particulars of the indicated link, let me try to follow the documentation 'as is' and see what we get (modified to use 'foo' instead of 'rw', since I already have a 'rw'): $ mkdir /usr/local/nagios/var/foo $ chown nagios.nagiocmd /usr/local/nagios/var/foo $ chmod u+rwx /usr/local/nagios/var/foo $ chmod g+rw /usr/local/nagios/var/foo $ chmod g+s /usr/local/nagios/var/foo $ ls -ld /usr/local/nagios/var/foo drwxrwsr-x 2 nagios nagiocmd 4096 Feb 10 12:23 /usr/local/nagios/var/foo So you are partly right: Yes, the result isn't the same as the more secure mode of 2770. But as near as I can see, this would still work for you. Notice that the group mode is 'rws' and not 'rwS', which is what you had to begin with (which would prevent things from working). If you're satisfied with the security of your host at this point, then don't change anything. Food for thought. jc > -----Original Message----- > From: Michael W. Oliver [mailto:michael at gargantuan.com] > Sent: Monday, February 10, 2003 11:14 AM > To: Carroll, Jim P [Contractor] > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Schedule An Immediate Check - I have rtfm > and stfw no help > > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Monday, February 10, 2003 10:46, you wrote: > > I wasn't too keen on the notion of adding 'nobody' to > 'nagiocmd'. Having > > said that, let's move forwards. > > > > To illustrate which usernames should be a member of 'nagiocmd': > > > > $ groups apache nagios > > apache : apache nagiocmd > > nagios : nagios nagiocmd > > > > # grep nagiocmd /etc/group > nagiocmd:*:55554:nagios,nobody > > # grep nagios /etc/group > nagios:*:55555:nagios > nagiocmd:*:55554:nagios,nobody > > > # grep nobody /etc/group > nobody:*:65534: > nagiocmd:*:55554:nagios,nobody > > So, you can see that the user 'nobody' is in the correct > group... more > below... > > > I also noticed you have the wrong perms on > /usr/local/nagios/var/rw -- > > try this: > > > > $ chmod 2770 /usr/local/nagios/var/rw > > $ ls -ld /usr/local/nagios/var/rw > > drwxrws--- 2 nagios nagiocmd 4096 Feb 7 11:44 > > /usr/local/nagios/var/rw > > > > You must have done a "chmod 2760" on the 'rw' directory. > You need mode > > 2770. > > > > Do all this, then restart nagios. Then do a: > > > > ls -l /usr/local/nagios/var/rw > > > > and see what nagios.cmd has for permissions. > > > > Everything should be good to go at this point. > > > > jc > > # pwd > /usr/local/nagios/var/rw > > > # ls -alF > total 2 > drwxrwS--- 2 nagios nagiocmd 512 Feb 5 15:11 ./ > drwxrwxr-x 4 nagios nagios 512 Feb 10 11:59 ../ > prw-rw---- 1 nagios nagiocmd 0 Feb 5 15:11 nagios.cmd| > > Now, I just figured out what was wrong... and you are right! > In the above, > you see the permissions on /usr/local/nagios/var/rw as > 'drwxrwS---', which > is the result of following the instructions at: > > http://nagios.sourceforge.net/docs/1_0/commandfile.html > > I took your advice and changed it to 2770 (drwxrws---, > lowercase 's'), and > now it works just as it should. > > The documentation assumes an initial state of g+x on > /usr/local/nagios/var/rw, which isn't the case for me. > Following the doc > to change the permissions to 'g+rw' resulted in 'drwxrwS---', > or 2760, > instead of the desired 'drwxrws---'. Perhaps the doc could > use 'chmod > 2770' instead of listing three chmod commands which still > didn't give the > desired result (for me, anyway). > > Thanks very much for your help jc, you da man. > - -- > - > -------------------------------+------------------------------ > ---------- > Michael W. Oliver, CCNP | "The tree of liberty must be > refreshed > michael at gargantuan.com | from time to time with the blood of > http://michael.gargantuan.com/ | patriots and tyrants." > (via IPv4 and IPv6) | - President Thomas Jefferson > IPv6 ASPathTree, Looking Glass > +---------------------------------------- > gpg --keyserver pgpkeys.mit.edu --recv-keys C5FAA3C9 > - > -------------------------------------------------------------- > ---------- > > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.1 (FreeBSD) > > iD8DBQE+R93ksWv7q8X6o8kRAu/ZAJ9Ulmy7hGrA0lWYEVFHZZ4J7GqOfQCeJ6VG > N47XQ+IxkiNcl1d5+PVOmVA= > =LxVN > -----END PGP SIGNATURE----- > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From rau at rieder.net.py Mon Feb 10 21:21:01 2003 From: rau at rieder.net.py (=?iso-8859-1?Q?Ra=FAl_Guti=E9rrez_Segal=E9s?=) Date: Mon, 10 Feb 2003 16:21:01 -0400 Subject: borders in statusmap Message-ID: <200302101921.h1AJL1Ct013537@mail.rieder.net> Hi, I already send this message before but accidentally forgot to write the subject. I have moved the images from share/images/logos directory to another location so I dont get the interrogation marks in the statusmap. The statusmap is much more readble now but I still get the borderlines from the images that dont appear. Is it possible to get rid of this lines so I can a cleaner statusmap ? I looked at the configuration files and didnt find anything, perhaps I should touch the code... The Layout method that I use is Circular marked up. Thanks in advance. Raul __________________________________________________ Este mensaje es enviado via Webmail Rieder Internet ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jlyons30 at yahoo.com Mon Feb 10 21:15:32 2003 From: jlyons30 at yahoo.com (Jon Lyons) Date: Mon, 10 Feb 2003 12:15:32 -0800 (PST) Subject: 2way messaging pager .02 (snpp capable devices) In-Reply-To: <1B523437EB2BA849BE6376636E03678701BF7C@knoblauchdc.dkconsulting.org> References: <1B523437EB2BA849BE6376636E03678701BF7C@knoblauchdc.dkconsulting.org> Message-ID: <20030210201532.41504.qmail@web21512.mail.yahoo.com> Here ya go.... Dan Knoblauch wrote: Hi Jon! Thanks for your reply. I was wondering though, I searched the archives and found the message that you posted regarding your nextel scripts but the scripts weren't attached. Unfortunately, it takes 5 minutes to go from page to page on the sourceforge.net -----Original Message----- From: Jon Lyons [mailto:jlyons30 at yahoo.com] Sent: Friday, February 07, 2003 1:22 PM To: Carroll, Jim P [Contractor]; Dan Knoblauch; Nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Nagios reply notifications to acknowledge Search the archives for my perl scripts to the list a few weeks ago. You'll have to modify them a little, but I can enable/disable notifications, acknowledge hosts, and get a quick summary stats of problems on my nextel. The nice thing is you don't have to type the replies, my script appends them to the message so you just hit reply. Great if your cell provider supports 2way messaging... :) "Carroll, Jim P [Contractor]" wrote: Off the top of my head, I'd say you could write something which uses: - /etc/aliases (redirecting mail destined for 'nagios' and piping it to a script) - procmail (optional) - a script that you write - awareness of how to pipe commands into nagios.cmd, which I believe are available in the FAQ over on www.nagios.org. HTH. jc > -----Original Message----- > From: Dan Knoblauch [mailto:dan at lanworksco.com] > Sent: Friday, February 07, 2003 10:19 AM > To: Nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Nagios reply notifications to acknowledge > > > Hello all and good day! > > > > I have been looking for a mechanism that will allow me to 'reply' to > nagios notifications via email with an acknowledgement. > Often I am away > from the office and I receive notifications on host/service outages on > my cell phone. I have used another monitoring utility called "Big > Brother" that had this capability. Outside of writing my own > handler to > do this, does anyone out there know if this is possible? I > have scoured > the documentation and the mailing lists and newsgroups and > haven't seen > even a small mention of this. Does this capability exist? > > > > You assistance is greatly appreciated. > > > > Dan. > > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users _____ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 2way-messaging-snpp.02.tar.gz Type: application/x-gzip-compressed Size: 72 bytes Desc: 2way-messaging-snpp.02.tar.gz URL: From jcarro10 at sprintspectrum.com Mon Feb 10 20:23:44 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Mon, 10 Feb 2003 13:23:44 -0600 Subject: Q: time-saving tricks for Service Dependencies? Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F2552@PKDWB03C.ad.sprint.com> Just looking for some 'warm fuzzies' here. In: http://nagios.sourceforge.net/docs/1_0/templatetricks.html under "Service Dependencies", there appears to be a great time-saver. However, I'm concerned that creating this definition will mean that *all* hosts defined in the dependent_host_name declaration would become dependent on *all* hosts defined in the host_name declaration. (I have a similar concern when using a dependent_hostgroup_name/hostgroup_name approach.) Can anyone say with authority and conviction that (using the example given on that page) SERVICE2 on HOST3 is dependent on SERVICE2 on HOST1, and SERVICE2 on HOST4 is dependent on SERVICE2 on HOST2, but that there's no crossover where SERVICE2 on HOST3 becomes dependent on SERVICE2 on HOST2, and likewise with SERVICE2 on HOST4 crossing over to SERVICE2 on HOST1? A 1-to-1 correlation would do quite nicely, so long as there are N hosts defined on each of the dependent_host_name and host_name lines. A 1-to-many, many-to-1, or many-to-many is *not* what I want. In short: I'd like to take advantage of this time-saving feature, but I don't want to end up creating logic where a vast selection of services are dependent on one particular service being up or down. Thoughts? jc ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From syed at nec-labs.com Mon Feb 10 21:38:09 2003 From: syed at nec-labs.com (Syed Ali) Date: Mon, 10 Feb 2003 15:38:09 -0500 Subject: Priority of host versus services Message-ID: <951A499AA688EF47A898B45F25BD8EE822CD52@mailer.nec-labs.com> Hello, If I have notification_period set for workhours in hosts.cfg and notification_period set for 24x7 in services.cfg for the same host, which one takes precedence? Thank you... -------------- next part -------------- An HTML attachment was scrubbed... URL: From GWCOOK at mactec.com Mon Feb 10 22:04:05 2003 From: GWCOOK at mactec.com (Cook, Garry) Date: Mon, 10 Feb 2003 14:04:05 -0700 Subject: Priority of host versus services Message-ID: Neither. If a service goes CRITICAL (or perhaps WARNING), you will be notified 24x7. If a host actually goes down, you will only be notified during work hours. For further information on the difference between host and service checks, start here: http://nagios.sourceforge.net/docs/1_0/networkreachability.html Garry W. Cook, CCNA Network Infrastructure Manager MACTEC, Inc. - http://www.mactec.com/ 303.308.6228 (Office) - 303.881.5157 (Mobile) -----Original Message----- From: Syed Ali [mailto:syed at nec-labs.com] Sent: Monday, February 10, 2003 1:38 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Priority of host versus services Hello, If I have notification_period set for workhours in hosts.cfg and notification_period set for 24x7 in services.cfg for the same host, which one takes precedence? Thank you... -------------- next part -------------- An HTML attachment was scrubbed... URL: From Stanley.Hopcroft at IPAustralia.Gov.AU Mon Feb 10 21:48:56 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Tue, 11 Feb 2003 07:48:56 +1100 Subject: Assistance Needed: RH 7.3 w/cpanel In-Reply-To: <20030210.110129.1770.16479@webmail08.lax.untd.com>; from rgonline99@netzero.com on Mon, Feb 10, 2003 at 07:00:32PM +0000 References: <20030210.110129.1770.16479@webmail08.lax.untd.com> Message-ID: <20030211074851.D232@IPAustralia.Gov.AU> Dear Madam, I am writing to thank you for your letter and hope you get it sorted out. On Mon, Feb 10, 2003 at 07:00:32PM +0000, T Mellon wrote: > I'm in the middle of installing Nagios on a RH 7.3 server with Cpanel (cpanel.net) installed, and I'm slightly confused in what to put in the ./configure line :\ My brain is slightly fizzled right now (long day already ;) ). > > I have this for my ./configure line: > ./configure --prefix=/usr/local/nagios --with-cgiurl=/nagios/cgi-bin > --with-htmurl=/nagios/ --with-nagios-user=nagios --with-nagios-grp=nagios > > And I get: > --with-htmurl=/nagios/: No such file or directory > > What should I put for my htmurl? > > I've tried /home/username/public_html/nagios - but that didn't go through (username inserted with hosting account username, etc). > > If someone can help me out, that would be great. I've been up since 4:30 this morning, and my brain is half awake right now :) Two observations: 1 There are rpms available on the Nag site 2 All the Nag directories should be relative to the --prefix In my installation, prefix is /usr/local/nagios html " "/share cgi " "/sbin But you don't need that since it's the default. (From your web servers point of view, there are alias and script-alias definitions so that /nagios/ is the same as prefix/share etc Setting up apache is where most people have problems). However, now after reading your letter again, then the remarks above are either wrong or the -url options to configure are poorly named. --with-cgiurl= sets URL for cgi programs (do not use a trailing slash) --with-htmurl= sets URL for public html I would have to try and read configure to work out what they do but one thing is certain: they are not going to configure alias directives in apache, so perhaps they are suffering from bit rot. After running configure with no options, here is the summary *** Configuration summary for nagios 1.0 11-24-2002 ***: General Options: ------------------------- Nagios executable: nagios Nagios user/group: nagios,nagios Command user/group: nagios,nagios Embedded Perl: no Install ${prefix}: /usr/local/nagios Lock file: ${prefix}/var/nagios.lock Init directory: /usr/local/etc/rc.d Web Interface Options: ------------------------ HTML URL: http://localhost/nagios/ CGI URL: http://localhost/nagios/cgi-bin/ Traceroute (used by WAP): /usr/sbin/traceroute External Data Routines: ------------------------ Status data: Default (text file) Object data: Template-based (text file) Comment data: Default (text file) Downtime data: Default (text file) Retention data: Default (text file) Peformance data: Default (external commands) Extended info data: Template-based (text file) Review the options above for accuracy. If they look okay, type 'make all' to compile the main program and CGIs. So, you get the right html and cgi paths (wrt file system _not_ web server) by default. The only options I specify to configure are (in my case) those relating to gd. HTH. Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jamie at bclnz.net Mon Feb 10 22:22:33 2003 From: jamie at bclnz.net (Jamie) Date: Tue, 11 Feb 2003 10:22:33 +1300 Subject: Q: time-saving tricks for Service Dependencies? References: <74D428BDBFD5D04CB54E84499ECA29DB2F2552@PKDWB03C.ad.sprint.com> Message-ID: <005201c2d14a$873ad4c0$b58031ca@bcl977307> Hi Jim, "..In short: I'd like to take advantage of this time-saving feature, but I don't want to end up creating logic where a vast selection of services are dependent on one particular service being up or down.." -Excuse me for stating the obvious, but I guess that depends whether logic reflects reality or not...(Hmm. begin debate: "Is Reality logic? - Or is Logic reality?" ;-) Aren't service dependencies de-coupled from host dependencies? jamie ----- Original Message ----- From: "Carroll, Jim P [Contractor]" To: "Nagios-Users (E-mail)" Sent: Tuesday, February 11, 2003 8:23 AM Subject: [Nagios-users] Q: time-saving tricks for Service Dependencies? > Just looking for some 'warm fuzzies' here. In: > > http://nagios.sourceforge.net/docs/1_0/templatetricks.html > > under "Service Dependencies", there appears to be a great time-saver. > > However, I'm concerned that creating this definition will mean that *all* > hosts defined in the dependent_host_name declaration would become dependent > on *all* hosts defined in the host_name declaration. > > (I have a similar concern when using a > dependent_hostgroup_name/hostgroup_name approach.) > > Can anyone say with authority and conviction that (using the example given > on that page) SERVICE2 on HOST3 is dependent on SERVICE2 on HOST1, and > SERVICE2 on HOST4 is dependent on SERVICE2 on HOST2, but that there's no > crossover where SERVICE2 on HOST3 becomes dependent on SERVICE2 on HOST2, > and likewise with SERVICE2 on HOST4 crossing over to SERVICE2 on HOST1? > > A 1-to-1 correlation would do quite nicely, so long as there are N hosts > defined on each of the dependent_host_name and host_name lines. A > 1-to-many, many-to-1, or many-to-many is *not* what I want. > > In short: I'd like to take advantage of this time-saving feature, but I > don't want to end up creating logic where a vast selection of services are > dependent on one particular service being up or down. > > Thoughts? > > jc > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From rplewe at hpce.nec.com Mon Feb 10 22:18:35 2003 From: rplewe at hpce.nec.com (Rasmus Plewe) Date: Mon, 10 Feb 2003 22:18:35 +0100 Subject: Priority of host versus services In-Reply-To: <951A499AA688EF47A898B45F25BD8EE822CD52@mailer.nec-labs.com>; from syed@nec-labs.com on Mon, Feb 10, 2003 at 03:38:09PM -0500 References: <951A499AA688EF47A898B45F25BD8EE822CD52@mailer.nec-labs.com> Message-ID: <20030210221835.A1481@hpce.nec.com> On Mon, Feb 10, 2003 at 03:38:09PM -0500, Syed Ali wrote: > > If I have notification_period set for workhours in hosts.cfg and > notification_period set for 24x7 in services.cfg for the same host, > which one takes precedence? Is this a trick question? The one in hosts.cfg for host notifications, the one in services.cfg for service notifications. Rasmus ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From syed at nec-labs.com Mon Feb 10 22:22:33 2003 From: syed at nec-labs.com (Syed Ali) Date: Mon, 10 Feb 2003 16:22:33 -0500 Subject: Priority of host versus services Message-ID: <951A499AA688EF47A898B45F25BD8EE81573E1@mailer.nec-labs.com> To my knowledge: Every defined host in hosts.cfg should have at least one service in service.cfg for things to work well. The check-host-alive in hosts.cfg does a ping to see if the host is alive. If the service defined in services.cfg is check_ping, then check-host-alive in hosts.cfg and check_ping in services do the same thing, right? So if a service check for host A for check_ping is for 24x7, then I will get notified 24x7 However, if the host actually goes down, then I will be notified only during work hours? That makes no sense... Thank you, Syed Ali (609) 951-2989 -----Original Message----- From: Cook, Garry [mailto:GWCOOK at mactec.com] Sent: Monday, February 10, 2003 4:04 PM To: Syed Ali; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Priority of host versus services Neither. If a service goes CRITICAL (or perhaps WARNING), you will be notified 24x7. If a host actually goes down, you will only be notified during work hours. For further information on the difference between host and service checks, start here: http://nagios.sourceforge.net/docs/1_0/networkreachability.html Garry W. Cook, CCNA Network Infrastructure Manager MACTEC, Inc. - http://www.mactec.com/ 303.308.6228 (Office) - 303.881.5157 (Mobile) -----Original Message----- From: Syed Ali [mailto:syed at nec-labs.com] Sent: Monday, February 10, 2003 1:38 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Priority of host versus services Hello, If I have notification_period set for workhours in hosts.cfg and notification_period set for 24x7 in services.cfg for the same host, which one takes precedence? Thank you... -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcarro10 at sprintspectrum.com Mon Feb 10 21:21:42 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Mon, 10 Feb 2003 14:21:42 -0600 Subject: Oracle DB Query check Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1484@PKDWB03C.ad.sprint.com> Perhaps something which could be added to the contrib directory...? jc > -----Original Message----- > From: Russell Scibetti [mailto:russell at quadrix.com] > Sent: Monday, February 10, 2003 1:11 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Oracle DB Query check > > > I have created a "plugin" to check connecting and querying an > Oracle DB. > However, instead of needing the Oracle client installed on your > monitoring machine, I use java (JDK1.3.1 and up) and a > Jar/Zip file of > the Oracle JDBC libraries (classes12.zip for those that know > it). It is > a small java class that connects, runs a query and exits, and you can > wrap it with any number of different shell scripts for > running different > queries and processing the results. > > The class takes a connection string, user, password, and > query to run. > It returns OK if the query executes and returns any > resultset, which is > printed to the OUTPUT string. It returns a Critical if a > SQLException > occurs or the resultset of the query is empty. The > SQLException message > is printed as the OUTPUT if one occurs. > > Is anyone interested in this code? If so, I will email it out to the > list. I was just trying to avoid installing the Oracle > client where I > didn't need it, and take advantage of an already existing > Java installation. > > Russell Scibetti > > -- > Russell Scibetti > Quadrix Solutions, Inc. > http://www.quadrix.com > (732) 235-2335, ext. 7038 > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From wangee at linuxbe.org Mon Feb 10 23:49:26 2003 From: wangee at linuxbe.org (Christian Vanguers) Date: Mon, 10 Feb 2003 23:49:26 +0100 Subject: path to plugins in hosts.cfg In-Reply-To: <1044892985.16238.6060.camel@ryano> References: <1044547350.16238.301.camel@ryano> <20030206170347.GC19769@skynet.be> <1044892985.16238.6060.camel@ryano> Message-ID: <20030210224926.GA3504@skynet.be> On Mon, Feb 10, 2003 at 10:03:03AM -0600, Ryan O'Rourke wrote: > Thank you for the quick response. That line does exist in resource.cfg > and I see what you are talking about with checkcommands.cfg. > I've still got more work to do before I can actually get Nagios to run > but your advice certainly helps. Great !!! > One more quick request: Can you point me to someplace in the docs that > might help to explain your command line syntax for "check_ftp" in your > example? AFAIK, there is no documentation about plugins (for the moment, but it's in the Karl's mind) :-) The only help you can find, is while running the check itself without arguments, or most of the time with "--help" option... somehost:/usr/local/nagios/libexec$ ./check_ftp No arguments found Usage: check_ftp -H host -p port [-w warn_time] [-c crit_time] [-s send] [-e expect] [-W wait] [-t to_sec] [-v] somehost:/usr/local/nagios/libexec$ ./check_ftp --help check_ftp (nagios-plugins 1.3.0-beta2) 1.8 The nagios plugins come with ABSOLUTELY NO WARRANTY. You may redistribute copies of the plugins under the terms of the GNU General Public License. For more information about these matters, see the file named COPYING. Copyright (c) 1999 Ethan Galstad (nagios at nagios.org) This plugin tests FTP connections with the specified host. Usage: check_ftp -H host -p port [-w warn_time] [-c crit_time] [-s send] [-e expect] [-W wait] [-t to_sec] [-v] Options: -H, --hostname=ADDRESS Host name argument for servers using host headers (use numeric address if possible to bypass DNS lookup). -p, --port=INTEGER Port number -s, --send=STRING String to send to the server -e, --expect=STRING String to expect in server response -W, --wait=INTEGER Seconds to wait between sending string and polling for response -w, --warning=DOUBLE Response time to result in warning status (seconds) -c, --critical=DOUBLE Response time to result in critical status (seconds) -t, --timeout=INTEGER Seconds before connection times out (default: 10) -v Show details for command-line debugging (do not use with nagios server) -h, --help Print detailed help screen -V, --version Print version information This is the only help i can point you to :) No i will show you my definition of check_ftp command in my config # 'check_ftp' command definition define command{ command_name check_ftp command_line $USER1$/check_ftp -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -t $ARG3$ } And i call my check_ftp command definition in my services.cfg like this: define service{ use generic-service host_name somehost service_description FTP is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 3 retry_check_interval 1 contact_groups Unix-admins notification_interval 120 notification_period 24x7 notification_options w,u,c,r check_command check_ftp!10!15!20 } where 10 == $ARG1$ (warning threshold) 15 == $ARG2$ (critical threshold) 20 == $ARG3$ (timeout) I know, it's not easy to understand in the beginning, but if you can understand this time, most of your troubles will be solved right now :) Hope this helps, Chris -- +----------------------------------+-----------------------------------------+ | ____ _____ _ __ | | | / __ \____ / ___/__ _| |/ / | Christian Vanguers | | / / / / __ \\__ \/ / / / / | ================== | | / /_/ / /_/ /__/ / /_/ / | | mailto: christian.vanguers at opsyx.com | | \____/ .___/____/\__, /_/|_| | www: http://www.opsyx.com | | /_/ /____/ | | | OPen SYstems eXpertise | | +----------------------------------------------------------------------------+ | GnuPG keyID == 0xF814CC3A | | Key Fingerprint == 76D7 8E94 440F E430 3981 D922 73E1 76DF F814 CC3A | +----------------------------------+-----------------------------------------+ ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From mike at innercite.com Mon Feb 10 23:58:57 2003 From: mike at innercite.com (Mike Machado) Date: 10 Feb 2003 14:58:57 -0800 Subject: Priority of host versus services In-Reply-To: <951A499AA688EF47A898B45F25BD8EE81573E1@mailer.nec-labs.com> References: <951A499AA688EF47A898B45F25BD8EE81573E1@mailer.nec-labs.com> Message-ID: <1044917937.9054.88.camel@rocket> On Mon, 2003-02-10 at 13:22, Syed Ali wrote: > To my knowledge: > > Every defined host in hosts.cfg should have at least one service in > service.cfg for things to work well. > The check-host-alive in hosts.cfg does a ping to see if the host is > alive. > > If the service defined in services.cfg is check_ping, then > check-host-alive in hosts.cfg and check_ping in services do the same > thing, right? > If you look at the stock check-host-alive, it only sends one packet and checks for a specific delay time. What we do is have a check_ping service called 'PING', where it sends 4 packets that way I can get warnings based on packet loss and not just an up or a down like the host version check-host-alive. We also tighten up the delay times so if there are abnormally long ping times, we get warned as well (possible DoS attack). > So if a service check for host A for check_ping is for 24x7, then I will > get notified 24x7 > However, if the host actually goes down, then I will be notified only > during work hours? > That makes no sense... It does not have to be configured that way. Change the host notifications to 24x7 as well. -- Mike Machado mike at innercite.com InnerCite Inc. Engineering Director / CTO ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jamie at bclnz.net Tue Feb 11 00:08:43 2003 From: jamie at bclnz.net (Jamie) Date: Tue, 11 Feb 2003 12:08:43 +1300 Subject: Check_Radius References: <74D428BDBFD5D04CB54E84499ECA29DB014E1484@PKDWB03C.ad.sprint.com> Message-ID: <03f801c2d159$5c2eca20$b58031ca@bcl977307> Hi, I'm running Nagios on a debian system and a redhat system. They both report (via syslog) this error: Feb 11 11:26:04 foo-bar check_radius: rc_get_seqnbr: couldn't open sequence file /var/run/radius.seq: Permission denied ...every time Nagios runs the check_radius command. I assume everyone else has this happening. Does anyone know how to get rid of it? Permissions of the file in question: -rw-r--r-- 1 root root 4 Feb 11 12:01 /var/run/radius.seq Cheers Jamie ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From hidden at invalid Tue Feb 11 00:36:37 2003 From: hidden at invalid (Anonymous Writer) Date: Tue, 11 Feb 2003 00:36:37 +0100 (CET) Subject: How to export "Service Status Details For All Hosts" to a Webserver? Message-ID: <3717.80.133.5.133.1044920197.squirrel@vhost1.gh-online.net> Hi folks, i am searching for a way to export the view of " Service Status Details For All Hosts " from the Monitoring Menue: Serive Detail to a static html page on our Webserver. Our Nagios server resides at our office an the webserver is located in a Colocation some miles away. So i seeked the whole archive for a script or something else to export scheduled every minute the current state of our hosts and their services. Any ideas? greetings M. Gaffke ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From mpowell at ena.com Tue Feb 11 00:51:27 2003 From: mpowell at ena.com (Marc Powell) Date: Mon, 10 Feb 2003 17:51:27 -0600 Subject: How to export "Service Status Details For All Hosts" to a Webserver? Message-ID: <5DB017510818EC468B05BD7BD9EACF83032D3FF2@mismail.ena.com> wget or the libwww-perl GET alias come to mind if the webserver machine is a linux box. -- Marc Sent from a very tiny wireless device with a very tiny unlit keyboard. -----Original Message----- From: Anonymous Writer To: nagios-users at lists.sourceforge.net Sent: Mon Feb 10 17:36:37 2003 Subject: [Nagios-users] How to export "Service Status Details For All Hosts" to a Webserver? Hi folks, i am searching for a way to export the view of " Service Status Details For All Hosts " from the Monitoring Menue: Serive Detail to a static html page on our Webserver. Our Nagios server resides at our office an the webserver is located in a Colocation some miles away. So i seeked the whole archive for a script or something else to export scheduled every minute the current state of our hosts and their services. Any ideas? greetings M. Gaffke ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcarro10 at sprintspectrum.com Mon Feb 10 23:22:03 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Mon, 10 Feb 2003 16:22:03 -0600 Subject: Q: time-saving tricks for Service Dependencies ? Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F2554@PKDWB03C.ad.sprint.com> To answer your question first: Yes, as far as I know. To respond to your statement: Yes, that could perhaps spark a philosophical debate. But perhaps I wasn't clear enough. My goal: To be able to create a servicedependency whereby I can merely add a host (in the case of host_name / dependent_host_name) or a hostgroup (in the case of hostgroup_name / dependent_hostgroup_name) such that the trivial case of a service on a host is dependent on another service *on that same host* (and not on any other host). Allow me to attempt to illustrate by example. define servicedependency{ host_name fizzgig,wingnut service_description NRPE status dependent_host_name fizzgig,wingnut dependent_service_description Check swap other dependency directives ... } I want 'Check swap' on fizzgig to be dependent on 'NRPE status', also on fizzgig. Similarly, I want 'Check swap' on wingnut to be dependent on 'NRPE status', also on wingnut. But I do *not* want 'Check swap' on fizzgig to be dependent on 'NRPE status' on wingnut, nor do I want 'Check swap' on wingnut to be dependent on 'NRPE status' on fizzgig. Now that I'm reviewing the Service Dependency links (see URLs below) once again after a long absence, I suspect that multiple hosts for either host_name or dependent_host_name could only refer to template tricks, and not any sort of matrix of dependency. I will proceed with this suspicion. Comments welcome. jc > -----Original Message----- > From: Jamie [mailto:jamie at bclnz.net] > Sent: Monday, February 10, 2003 3:23 PM > To: Carroll, Jim P [Contractor]; Nagios-Users (E-mail) > Subject: Re: [Nagios-users] Q: time-saving tricks for Service > Dependencies? > > > Hi Jim, > > "..In short: I'd like to take advantage of this time-saving > feature, but I > don't want to end up creating logic where a vast selection of > services are > dependent on one particular service being up or down.." > > -Excuse me for stating the obvious, but I guess that depends > whether logic > reflects reality or not...(Hmm. begin debate: "Is Reality > logic? - Or is > Logic reality?" ;-) > > Aren't service dependencies de-coupled from host dependencies? > > jamie > ----- Original Message ----- > From: "Carroll, Jim P [Contractor]" > To: "Nagios-Users (E-mail)" > Sent: Tuesday, February 11, 2003 8:23 AM > Subject: [Nagios-users] Q: time-saving tricks for Service > Dependencies? > > > > Just looking for some 'warm fuzzies' here. In: > > > > http://nagios.sourceforge.net/docs/1_0/templatetricks.html > > > > under "Service Dependencies", there appears to be a great > time-saver. > > > > However, I'm concerned that creating this definition will > mean that *all* > > hosts defined in the dependent_host_name declaration would become > dependent > > on *all* hosts defined in the host_name declaration. > > > > (I have a similar concern when using a > > dependent_hostgroup_name/hostgroup_name approach.) > > > > Can anyone say with authority and conviction that (using > the example given > > on that page) SERVICE2 on HOST3 is dependent on SERVICE2 on > HOST1, and > > SERVICE2 on HOST4 is dependent on SERVICE2 on HOST2, but > that there's no > > crossover where SERVICE2 on HOST3 becomes dependent on > SERVICE2 on HOST2, > > and likewise with SERVICE2 on HOST4 crossing over to > SERVICE2 on HOST1? > > > > A 1-to-1 correlation would do quite nicely, so long as > there are N hosts > > defined on each of the dependent_host_name and host_name lines. A > > 1-to-many, many-to-1, or many-to-many is *not* what I want. > > > > In short: I'd like to take advantage of this time-saving > feature, but I > > don't want to end up creating logic where a vast selection > of services are > > dependent on one particular service being up or down. > > > > Thoughts? > > > > jc > > > > > > ------------------------------------------------------- > > This SF.NET email is sponsored by: > > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > > http://www.vasoftware.com > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From whiatt at upstanding.com Tue Feb 11 01:16:46 2003 From: whiatt at upstanding.com (Hiatt, William) Date: Mon, 10 Feb 2003 16:16:46 -0800 Subject: check_snmp errors on CPU Message-ID: <71520D1F83A0C6408D99155D4CCAE0AA266E@exch-be-01.upstanding.com> I'm having an issue with the output of the check_snmp plugin, and wanted to know if anybody had any tips. No matter what I do, I can't get a STATE_OK out of the check_snmp plugin. When run from the command line: ./check_snmp -H rtr-ed01.upstanding.com -o 1.3.6.1.4.1.9.2.1.58.0 -C UPITRO -c 0:85 -w 0:70 I get the following returned: SNMP WARNING - 0 Maybe I'm not all there today and didn't get the help file right, but as I understood it, when specifying the ranges in a MIN:MAX form, that is the range that is "OK". So by my command above, that means anything within 0:85 will not result in a critical state, and anything within 0:70 will not result in a warning state. Thanks for your help! William ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jcarro10 at sprintspectrum.com Tue Feb 11 01:16:46 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Mon, 10 Feb 2003 18:16:46 -0600 Subject: How to export "Service Status Details For All Hosts" to a Webserver? Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1488@PKDWB03C.ad.sprint.com> NSCA might do the trick. Ditto rsync. Someone also recently mentioned making it work with postnuke. jc -----Original Message----- From: Marc Powell [mailto:mpowell at ena.com] Sent: Monday, February 10, 2003 5:51 PM To: hidden at invalid; nagios-u