From mail at oliwel.de Mon Aug 1 08:18:56 2005 From: mail at oliwel.de (Oliver Welter) Date: Mon, 01 Aug 2005 08:18:56 +0200 Subject: parents attribute / condition alarms In-Reply-To: <20050801031601.362F51221E@sc8-sf-spam2.sourceforge.net> References: <20050801031601.362F51221E@sc8-sf-spam2.sourceforge.net> Message-ID: <42EDBED0.6010900@oliwel.de> Hi Hendrik, > this is exactly what the parents are for. Just tell the hosts.cfg for > switch and server that you don't want a Unreachable Alert and go to sleep ;) Ahh so this is the difference between unreachable and down ?? Down: the last parent is reachable, the server is not ? Unreachable: There is an interruption in the path to the server ? regards Oliver -- Diese Nachricht wurde digital unterschrieben oliwel's public key: http://www.oliwel.de/oliwel.crt Basiszertifikat: http://www.ldv.ei.tum.de/page72 ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bombadur at email.it Mon Aug 1 12:36:38 2005 From: bombadur at email.it (bombadur) Date: Mon, 1 Aug 2005 12:36:38 +0200 Subject: Problem on check_ping In-Reply-To: References: Message-ID: <200508011236.43111.bombadur@email.it> Alle 17:43, venerd? 29 luglio 2005, Marc Powell ha scritto: > > > You will probably need to make it suid root (chmod u+s check_icmp) > > before it will work, though. > > And make sure SELinux allows for its execution by non-root users. uhm, a little better, but the same output on the html page. SELinux is being disabled (which gave me errors to access the socket), I did theese commands on check_icmp, as follow: # chown root:nagios check_icmp # chmod 4750 check_icmp Theese are the outputs from command line: # /usr/lib/nagios/plugins/check_icmp -H 192.168.1.25 -w 3000.0,80% -c 5000.0,100% -p 1 OK - 192.168.1.25: rta 0.096ms, lost 0%|rta=0.096ms;3000.000;5000.000;0; pl=0%;80;100;; and for the nagios user: $ /usr/lib/nagios/plugins/check_icmp -H 192.168.1.25 -w 3000.0,80% -c 5000.0,100% -p 1 OK - 192.168.1.25: rta 0.039ms, lost 0%|rta=0.039ms;3000.000;5000.000;0; pl=0%;80;100;; But on the html page, I still have a warning: Current Status: WARNING Status Information: WARNING - 192.168.1.25: rta 0.025ms, lost 0% Current Attempt: 1/3 State Type: HARD Last Check Type: ACTIVE Last Check Time: 01-08-2005 12:28:28 Status Data Age: 0d 0h 3m 27s Next Scheduled Active Check: 01-08-2005 12:33:28 Latency: < 1 second Check Duration: < 1 second Last State Change: 01-08-2005 09:29:55 Current State Duration: 0d 3h 2m 0s 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: 01-08-2005 12:31:52 Service Checks: ENABLED Passive Checks: ENABLED Service Notifications: ENABLED Event Handler: ENABLED Flap Detection: ENABLED Please, is there someone can help me to avoid this warning? Googlin' I read a lot of people having similar troubles, but it seems to me there aren't defitive solutions. At these conditions (warning on pings) I can't absolutely use Nagios.. :-(( thanks in advance -- saluti, bombadur MajaGLUG, il LUG piu` grande d'Italia http://www.majaglug.net ,,_ -*> Snort! <*- o" )~ experienced '''' -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From clementvaraldi.ml at gmail.com Mon Aug 1 14:52:56 2005 From: clementvaraldi.ml at gmail.com (=?ISO-8859-1?Q?=22Cl=E9ment_Varaldi_=28ML=29=22?=) Date: Mon, 01 Aug 2005 14:52:56 +0200 Subject: DHCP client configuration Message-ID: <42EE1B28.7040208@gmail.com> Hi, despite this message (https://sourceforge.net/mailarchive/message.php?msg_id=2673276) I found on the archive, no "solution" were found. I have on the server that's running nagios a DHCP server (debian package dhcpd), and some clients I'd like to monitore. Is there a way to define a client by its MAC address (for example) or to get infos from the /var/log/syslog that contains all dhcp logs, to change the configuration of my nagios using this information? Another problem is linked to this: some people use both windows and Linux and doesn't have the same Mac address, which leads to the fact that they won't get the same IP (if you don't change your mac address, dhcpd makes you choose, if available, the IP you had before). I could use the /var/lib/dhcp/dhcpd.leases to get IPs and hostnames, but can't change the configuration of nagios automatically, can I? Last question: Can I define a host with two ip addresses? (and how could I do that?) -- Cl?ment Varaldi co-admin of http://fr.gentoo-wiki.com Translator for the Gentoo project. ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From john.charlton at bt.com Mon Aug 1 15:24:26 2005 From: john.charlton at bt.com (john.charlton at bt.com) Date: Mon, 1 Aug 2005 14:24:26 +0100 Subject: send_nsca wont send any data to central server Message-ID: <45F271E39DAC414A871BBBFB17B559CC0EF65512@i2km33-ukdy.domain1.systemhost.net> Hi all, I've been tearing my hair out over the last couple of days with this problem, so I'm hoping that someone can help. I've got two nagios servers set up, one as the distributed monitoring server, and the other the central server that receives the alerts from the distributed one. Both servers are using nagios 1.2 and v2.4 of the NSCA/send_nsca , all compiled under FC2. What happens is the following: Install the nsca daemon on main server under xinetd Install the send_nsca client onto the remote and main server. Configure the config files to use the correct port/password etc. Test trying to send a passive update via send_nsca on remote box back to central server: I get 0 data packet(s) sent to host successfully Doing a tail -f on the central server command file, I don't see any data hitting it, yet the server logs show connections from the remote server connecting on port 2052 - just apparently no data. I can telnet to the port 2052 on the central server and get a load of junk chars on the screen, so I'm presuming that the daemon is running correctly. When I try and use the send_nsca command on the central machine to try and test the setup I get: [root at linuxd1 bin]# printf "test\t0\tdec" | ./send_nsca -H 127.0.0.1 -p 2052 -c /usr/local/nagios/etc/send_nsca.cfg 0 data packet(s) sent to host successfully. ? I realise that the text I sent doesn't mean a lot, but it should reach the command file shouldn't it? Even when I try this using a proper host, still nothing gets into the command file and so nagios hasn't a clue about the remote monitors. Has anyone else seen this, and if so, how do you fix it? Regards John Xinetd conf ----------- # default: on # description: NSCA (Nagios Service Check Acceptor) service nsca { flags = REUSE socket_type = stream wait = no user = nagios group = nagios server = /usr/local/nagios/bin/nsca server_args = -c /usr/local/nagios/etc/nsca.cfg --inetd log_on_success += USERID HOST log_on_failure += USERID disable = no #only_from = 127.0.0.1 } Send_NSCA config: ----------------- #password= encryption_method=1 Nsca Config File ---------------- server_port=2052 #server_address=192.168.1.1 allowed_hosts=127.0.0.1 nsca_user=nagios nsca_group=nagios debug=1 command_file=/usr/local/nagios/var/rw/nagios.cmd alternate_dump_file=/usr/local/nagios/var/rw/nsca.dump aggregate_writes=0 append_to_file=0 max_packet_age=30 #password= decryption_method=1 Permissions on Files Config Files -rw-rw-r-- 1 nagios nagios 17157 May 4 13:03 cgi.cfg -rw-rw-r-- 1 nagios nagios 6524 May 4 16:18 checkcommands.cfg -rw-rw-r-- 1 nagios nagios 794 May 4 12:53 contactgroups.cfg -rw-rw-r-- 1 nagios nagios 1026 May 4 12:48 contacts.cfg -rw-rw-r-- 1 nagios nagios 1269 May 4 12:51 dependencies.cfg -rw-rw-r-- 1 nagios nagios 1563 May 4 12:52 escalations.cfg -rw-rw-r-- 1 nagios nagios 1019 May 4 13:51 hostgroups.cfg -rw-rw-r-- 1 nagios nagios 2146 May 4 13:58 hosts.cfg -rw-r--r-- 1 root root 26 May 4 12:22 htpasswd.users drwxr-xr-x 2 root root 4096 May 4 12:34 live -rw-rw-r-- 1 nagios nagios 4255 May 6 10:02 misccommands.cfg -rw-rw-r-- 1 nagios nagios 18823 Aug 1 12:25 nagios.cfg -rw-r--r-- 1 root root 1113 May 6 10:02 nagios_perfparse.cfg -rwxrwxrwx 1 nagios nagios 4977 Aug 1 12:56 nsca.cfg -rw-r--r-- 1 root root 2849 May 6 10:20 perfparse.cfg -rw-r--r-- 1 root root 2673 May 5 14:22 perfparse.cfg.example -rw-rw---- 1 nagios nagios 3041 May 5 15:10 resource.cfg -rwxrwxrwx 1 nagios nagios 1628 Aug 1 12:53 send_nsca.cfg -rw-rw-r-- 1 nagios nagios 7037 May 5 12:50 services.cfg -rw-rw-r-- 1 nagios nagios 1589 Apr 21 15:28 timeperiods.cfg Command File prw-rw---- 1 nagios nagios 0 Aug 1 12:25 nagios.cmd Binaries -rwxr-xr-x 1 nagios nagios 36783 Aug 1 12:52 send_nsca -rwxrwxr-- 1 nagios nagios 211904 May 4 13:33 nagios -rwxr-xr-x 1 nagios nagios 59038 Aug 1 12:52 nsca ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From chris at aidworld.org Mon Aug 1 15:31:53 2005 From: chris at aidworld.org (Chris Wilson) Date: Mon, 01 Aug 2005 14:31:53 +0100 Subject: Problem on check_ping In-Reply-To: <200508011236.43111.bombadur@email.it> References: <200508011236.43111.bombadur@email.it> Message-ID: <1122903113.30910.5.camel@localhost> Hi Bombadur, > But on the html page, I still have a warning: > > Current Status: WARNING > Status Information: WARNING - 192.168.1.25: rta 0.025ms, lost 0% Please could you tell us what your check_command and command definition look like in your nagios config? It sounds like they are wrong. Cheers, Chris. -- (aidworld) chris wilson | chief engineer (chris at aidworld.org) ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From chris at aidworld.org Mon Aug 1 15:40:19 2005 From: chris at aidworld.org (Chris Wilson) Date: Mon, 01 Aug 2005 14:40:19 +0100 Subject: DHCP client configuration In-Reply-To: <42EE1B28.7040208@gmail.com> References: <42EE1B28.7040208@gmail.com> Message-ID: <1122903619.30910.11.camel@localhost> Hi Clement, You want to monitor machines which get their IP addresses from DHCP? Can you explain why you would want to do this? Normally Nagios is used to monitor servers and their services. Normally, servers do not have dynamic IP addresses, as it would make it very hard for people to use their services. (I know that SMB and Rendezvous can work around dynamic IP addresses, but not all services can, and there are limitations as well). There doesn't seem to be a lot of point in monitoring someone's laptop or a machine that dual-boots between Windows and Linux. What services are you looking to monitor on such a machine? Do you really want an alarm when someone switches off their PC to go home in the evening? Are you sure that it's really worth it? Why not just define static IP addresses for your servers, and let the clients monitor themselves? > I could use the /var/lib/dhcp/dhcpd.leases to get IPs and hostnames, but > can't change the configuration of nagios automatically, can I? You could have your plugins get the IP address dynamically from /var/lib/dhcp/dhcpd.leases, but what do you do when the lease expires? > Can I define a host with two ip addresses? (and how could I do that?) I don't think you can. but you can define two separate hosts, and make one the parent of the other to avoid duplicate host down notifications. Cheers, Chris. -- (aidworld) chris wilson | chief engineer (chris at aidworld.org) ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From frederik.vanhee-2OzQDoPhWhM at public.gmane.org Mon Aug 1 15:42:30 2005 From: frederik.vanhee-2OzQDoPhWhM at public.gmane.org (Frederik Vanhee) Date: Mon, 01 Aug 2005 15:42:30 +0200 Subject: [Nagios-users] Use of check_by_ssh In-Reply-To: <6B893C5F2902D311A23F0090272854FB0575B7A0-SOfvMOfJz/6FzsVCTuPIzRRxwEygFqSQHocxwX9ka5w@public.gmane.org> References: <6B893C5F2902D311A23F0090272854FB0575B7A0@litex001.lit.verwalt-berlin.de> Message-ID: <42EE26C6.3050700@perso.be> Hello Ralph and others you can download pre-compiled hpux 10.20 plugins from www.bennyvision.com Maybe that can help you ? Frederik Ralph.Grothe-YpEHkxAi6oMehzHBf2RrnA at public.gmane.org wrote: >Hi Marc, > >thanks for clarifying the meaning of check_by_ssh. > >Since I haven't installed any Nagios stuff (incl. Plugins) on the >DMZ host yet I actually haven't thought of my little script as a >Nagios plugin. >Thus I didn't cling to plugin developer's guidelines. >But you are right. >I should rather use existing Nagios plugins for checking common >services (like check_http) than trying to reinvent something that >already stood proof of time. >The only problem is, as the target box is a DMZ host, there are >no development tools installed on (even no Perl, the CGIs are >closed source binaries coming from third party company who >developped the whole application. >To add to the odds, this is the only HP-UX 10.20 box (still >32bit!) we host. >Even if I found a compiler (e.g. gcc for this platform) I >wouldn't be allowed to install it there for my build. >On the other hand we have many 11.00 and 11i servers, and on some >of them even C compilers. >I'm not sure if I can build 10.20 32bit binaries of >Nagios-plugins on one of them. >Maybe if use the propper compiler flags. >I will see first if my build of check_http for 11.00 will be >executable on the 10.20 host (probably not, as you mentioned >differing libs etc.). >If that doesn't work I will see if I can build for a different >target >(sort of x-compile). >If it all doesn't work I will simply extend my little shell >script to conform to the developer's guidelines (viz. return >codes, messages), >and do my own parsing. >Btw, I saw there is a utils.pm, that I "use"-d in my own Perl >plugins, though it offers very little functionality. >Is there something similar for Bourne shell compatible plugins, >e.g. something you would source like ". $libexec_dir/utils.sh"? > >You see, because an SSH installation on every of our hosts was so >obvious and natural to me, I totally missed the idea that >check_by_ssh could just be an offering to those whose Nagios >server lacks such. > > > > >>-----Original Message----- >>From: nagios-users-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f at public.gmane.org >>[mailto:nagios-users-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f at public.gmane.org] On Behalf >>Of Marc Powell >>Sent: Friday, July 29, 2005 6:05 PM >>To: nagiosplug-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f at public.gmane.org; >>nagios-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f at public.gmane.org >>Subject: RE: [Nagios-users] Use of check_by_ssh >> >> >> >> >> >> >>>-----Original Message----- >>>From: nagios-users-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f at public.gmane.org >>> >>> >[mailto:nagios-users- > > >>>admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f at public.gmane.org] On Behalf Of >>> >>> >>Ralph.Grothe-YpEHkxAi6oMehzHBf2RrnA at public.gmane.org >> >> >>>Sent: Friday, July 29, 2005 7:14 AM >>>To: nagiosplug-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f at public.gmane.org; nagios- >>>users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f at public.gmane.org >>>Subject: [Nagios-users] Use of check_by_ssh >>> >>>Hi, >>> >>>I have a bastion host in a dmz that serves HTTP(S) to the >>>internet. >>> >>>I must monitor the webserver by pulling a certain CGI URI and >>> >>> >see > > >>>if the Webserver returns a 200. >>> >>>Unfortunately I don't get another port (e.g. 5666/tcp for >>> >>> >NRPE) > > >>>opened by the firewall gang. >>> >>>I only have access from our LAN to the bastion host via SSH. >>> >>>Thus I wrote a short shell script that resides on the >>> >>> >webserver > > >>>and GETs the HEAD of this URI >>>through wget (with -S, -C off, --spider). >>>It's called check_dmz_www.sh >>> >>>So far this script isn't doing any parsing of the output from >>> >>> >the > > >>>GET. >>>I thought to leave this part to a Nagios check_* plug-in. >>> >>> >>Your script would work and if you pursued that path I would >>need to put >>in the checking logic and *exit properly* as defined in the >> >> >Developer > > >>Guidelines at http://nagiosplug.sf.net. That being said, you're >> >> >just > > >>duplicating the functionality of the check_http plugin. Why >> >> >don't you > > >>just copy/compile that plugin on the DMZ host and use it to >> >> >check your > > >>web server using check_by_ssh (see below). >> >> >> >>>In the libexec dir I discovered check_by_ssh. >>>Unfortunately, as most distributed plug-ins, the >>> >>> >documentation is > > >>>a bit too terse. >>> >>>From the --help screen I can't see the use of this plug-in, >>>as it doesn't do anything more (i.e. return code parsing >>> >>> >logic > > >>>etc.) than vanilla ssh client does. >>> >>>E.g. I would call check_by_ssh from the Nagios server like >>> >>> >this > > >>>$ /opt/sw/nagios/libexec/check_by_ssh -1 -H $hostaddress -l >>> >>> >www > > >>>-i ~nagios/.ssh/id_rsa1_dmz_www -C >>>/usr/local/sbin/check_dmz_www.sh >>>Connecting to 127.0.0.1:80... connected. >>>HTTP request sent, awaiting response... >>> 1 HTTP/1.1 200 OK >>> 2 Date: Fri, 29 Jul 2005 11:58:47 GMT >>> 3 Server: Apache/1.3.22 (Unix) mod_ssl/2.8.5 OpenSSL/0.9.6b >>> 4 Keep-Alive: timeout=25, max=100 >>> 5 Connection: Keep-Alive >>> 6 Content-Type: text/html >>>200 OK >>> >>> >>> >>>But where's the point in using this plug-in? >>>For that I could as well just call the ssh client. >>> >>> >>It's just a wrapper/proxy. The plugin will ssh to the specified >> >> >host, > > >>run the specified command and return it's output _and_ exit >> >> >code to > > >>nagios, just as if nagios had run the plugin on the remote host >>directly. If you have the check_http plugin in /usr/local/sbin >> >> >on the > > >>remote host you could do something like the following -- >> >>/opt/sw/nagios/libexec/check_by_ssh -1 -H $hostaddress -l www >> >> >-i > > >>~nagios/.ssh/id_rsa1_dmz_www -C /usr/local/sbin/check_http -S >> >> >-I > > >>127.0.0.1 -u http://your.host.com/health.cgi -e 200 >> >>*NOTE* you can only _copy_ the plugin to the remote host IFF >> >> >it's the > > >>same arch/os/version and has all the required libraries (ldd >>check_http). >> >> >>-- >>Marc >> >> >> >>------------------------------------------------------- >>SF.Net email is Sponsored by the Better Software Conference & >>EXPO September >>19-22, 2005 * San Francisco, CA * Development Lifecycle >> >> >Practices > > >>Agile & Plan-Driven Development * Managing Projects & Teams * >>Testing & QA >>Security * Process Improvement & Measurement * >>http://www.sqe.com/bsce5sf >>_______________________________________________ >>Nagios-users mailing list >>Nagios-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f at public.gmane.org >>https://lists.sourceforge.net/lists/listinfo/nagios-users >>::: Please include Nagios version, plugin version (-v) and OS >>when reporting any issue. >>::: Messages without supporting info will risk being sent to >> >> >/dev/null > > > > >------------------------------------------------------- >SF.Net email is sponsored by: Discover Easy Linux Migration Strategies >from IBM. Find simple to follow Roadmaps, straightforward articles, >informative Webcasts and more! Get everything you need to get up to >speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click >_______________________________________________ >Nagiosplug-help mailing list >Nagiosplug-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f at public.gmane.org >https://lists.sourceforge.net/lists/listinfo/nagiosplug-help >::: Please include plugins version (-v) and OS when reporting any issue. >::: Messages without supporting info will risk being sent to /dev/null > > > ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagiosplug-help mailing list Nagiosplug-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f at public.gmane.org https://lists.sourceforge.net/lists/listinfo/nagiosplug-help ::: Please include plugins version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ralph.Grothe at itdz-berlin.de Mon Aug 1 15:44:02 2005 From: Ralph.Grothe at itdz-berlin.de (Ralph.Grothe at itdz-berlin.de) Date: Mon, 1 Aug 2005 15:44:02 +0200 Subject: Where to pass check_nrpe args in Nagios config? Message-ID: <6B893C5F2902D311A23F0090272854FB0575B7A2@litex001.lit.verwalt-berlin.de> Hello, because I have to monitor Veritas Cluster Server (VCS) Service Groups (SG) which are quite a few, I wanted to ease configuration by building an NRPE daemon for the cluster nodes that would accept arguments (although this undermines security in general). Having built the nrpe daemon and configured it to be run by inetd I defined this command in nrpe.cfg # check_vcs commands for SGs autostart on nemesis command[check_vcs_sg]=/usr/local/nagios/libexec/check_vcs.pl -g $ARG1$ -s $ARG2$ As you can see I make use of the contributed check script check_vcs.pl that simply takes two args, i.e. -g SG, and -s node. When I run it via check_nrpe from my nagios server it is working ok, showing me that SG blabla1 is happily running on node nemesis. [nagios at daisy:~/etc] $ /opt/sw/nagios/libexec/check_nrpe -H nemesis -c check_vcs_sg\!blabla1\!nemesis OK: hagrp blabla1 is ONLINE However, things don't quite work when nagios is started and scheduling the checks. Then I get unknown states due to CRC32 errors. In my nagios server's checkcommands.cfg I defined this define command { command_name check-nrpe command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ } And in services.cfg I call it like this define service { use generic-service service_description nemesis-sg-online hostgroup_name nemesis_vcs_sgs check_command check-nrpe!check_vcs_sg\!$HOSTNAME\!$HOSTGROUPALIAS$ contact_groups vcsadmin } The hostgroups.cfg has this definition # template for BlaBla SGs # define hostgroup { hostgroup_name nemesis_vcs_sgs alias nemesis members blabla1,blabla2,blabla3,...,blablabN } n.b. I simply renamed the members (i.e. hostnames) here. For each of those I have a host definition with own IP in hosts.cfg because every SG has amongst other resources (such as disk groups, volumes, mounts etc.) also a (multihomed) NIC and a bound IP address. Can you see where my configuration (assumption) is wrong? Regards Ralph ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From smalhotra at dataarmor.net Mon Aug 1 15:56:15 2005 From: smalhotra at dataarmor.net (Sumit Malhotra) Date: Mon, 1 Aug 2005 19:26:15 +0530 Subject: DHCP client configuration In-Reply-To: <42EE1B28.7040208@gmail.com> References: <42EE1B28.7040208@gmail.com> Message-ID: <002901c596a0$cafe3bc0$74c5a8c0@sumit> Easy way would be to configure your dhcp server to assign same IP to the Machine's based on MAC address. OR Configure your dhcp server with Named to assign a hostname while assigning an IP address. And then Configure nagios server to monitor using hostname rather than IP address. Sumit Malhotra Data Armor -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Cl?ment Varaldi (ML) Sent: Monday, August 01, 2005 6:23 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] DHCP client configuration Hi, despite this message (https://sourceforge.net/mailarchive/message.php?msg_id=2673276) I found on the archive, no "solution" were found. I have on the server that's running nagios a DHCP server (debian package dhcpd), and some clients I'd like to monitore. Is there a way to define a client by its MAC address (for example) or to get infos from the /var/log/syslog that contains all dhcp logs, to change the configuration of my nagios using this information? Another problem is linked to this: some people use both windows and Linux and doesn't have the same Mac address, which leads to the fact that they won't get the same IP (if you don't change your mac address, dhcpd makes you choose, if available, the IP you had before). I could use the /var/lib/dhcp/dhcpd.leases to get IPs and hostnames, but can't change the configuration of nagios automatically, can I? Last question: Can I define a host with two ip addresses? (and how could I do that?) -- Cl?ment Varaldi co-admin of http://fr.gentoo-wiki.com Translator for the Gentoo project. ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Mon Aug 1 16:57:36 2005 From: marc at ena.com (Marc Powell) Date: Mon, 1 Aug 2005 09:57:36 -0500 Subject: Use of check_by_ssh Message-ID: > -----Original Message----- > From: Ralph.Grothe at itdz-berlin.de [mailto:Ralph.Grothe at itdz-berlin.de] > Sent: Saturday, July 30, 2005 9:50 AM > To: Marc Powell; nagiosplug-help at lists.sourceforge.net; nagios- > users at lists.sourceforge.net > Subject: RE: [Nagios-users] Use of check_by_ssh > > Hi Marc, > > thanks for clarifying the meaning of check_by_ssh. > Snip. > To add to the odds, this is the only HP-UX 10.20 box (still > 32bit!) we host. > Even if I found a compiler (e.g. gcc for this platform) I > wouldn't be allowed to install it there for my build. > On the other hand we have many 11.00 and 11i servers, and on some > of them even C compilers. > I'm not sure if I can build 10.20 32bit binaries of > Nagios-plugins on one of them. > Maybe if use the propper compiler flags. > I will see first if my build of check_http for 11.00 will be > executable on the 10.20 host (probably not, as you mentioned > differing libs etc.). I believe that Frederik Vanhee's e-mail helps here... Snip > Btw, I saw there is a utils.pm, that I "use"-d in my own Perl > plugins, though it offers very little functionality. > Is there something similar for Bourne shell compatible plugins, > e.g. something you would source like ". $libexec_dir/utils.sh"? /usr/local/nagios/libexec -rwxr-xr-x 1 nagios nagios 739 Aug 15 2002 utils.sh I would have expected it to be installed with the other plugins (and utils.pm) but if it wasn't it's in the plugins-scripts directory of the plugins package. -- Marc ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Mon Aug 1 17:07:40 2005 From: marc at ena.com (Marc Powell) Date: Mon, 1 Aug 2005 10:07:40 -0500 Subject: send_nsca wont send any data to central server Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of john.charlton at bt.com > Sent: Monday, August 01, 2005 8:24 AM > To: Nagios-users at lists.sourceforge.net > Subject: [Nagios-users] send_nsca wont send any data to central server > > Hi all, > > I've been tearing my hair out over the last couple of days with this > problem, so I'm hoping that someone can help. > > I've got two nagios servers set up, one as the distributed monitoring > server, and the other the central server that receives the alerts from the > distributed one. > > Both servers are using nagios 1.2 and v2.4 of the NSCA/send_nsca , all > compiled under FC2. > > What happens is the following: > > Install the nsca daemon on main server under xinetd > Install the send_nsca client onto the remote and main server. > Configure the config files to use the correct port/password etc. Is the IP address in allowed_hosts in nsca.cfg correct? > Test trying to send a passive update via send_nsca on remote box back to > central server: I get 0 data packet(s) sent to host successfully > Doing a tail -f on the central server command file, I don't see any data > hitting it, yet the server logs show connections from the remote server > connecting on port 2052 - just apparently no data. I can telnet to the > port 2052 on the central server and get a load of junk chars on the > screen, so I'm presuming that the daemon is running correctly. I see that you have NSCA debug mode enabled. What are you seeing in your log files (probably /var/log/messages)? > > When I try and use the send_nsca command on the central machine to try and > test the setup I get: > > [root at linuxd1 bin]# printf "test\t0\tdec" | ./send_nsca -H 127.0.0.1 -p > 2052 -c /usr/local/nagios/etc/send_nsca.cfg > 0 data packet(s) sent to host successfully. You realize that you should be sending 4 arguments, correct? host_name, svc_description, state_string and plugin_output. Your test isn't valid. You should also perform the test as the nagios user to be certain that you're executing it in exactly the same way. > > I realise that the text I sent doesn't mean a lot, but it should reach the > command file shouldn't it? Even when I try this using a proper host, still > nothing gets into the command file and so nagios hasn't a clue about the > remote monitors. > > Has anyone else seen this, and if so, how do you fix it? > > Regards John > > Xinetd conf > ----------- > > # default: on > # description: NSCA (Nagios Service Check Acceptor) > service nsca > { > flags = REUSE > socket_type = stream > wait = no > user = nagios > group = nagios > server = /usr/local/nagios/bin/nsca > server_args = -c /usr/local/nagios/etc/nsca.cfg --inetd > log_on_success += USERID HOST > log_on_failure += USERID > disable = no > #only_from = 127.0.0.1 I'm presuming that 127.0.0.1 is a substitution on your part for the list and not the actual IP in the config files here and below. > } > > Send_NSCA config: > ----------------- > > > #password= > encryption_method=1 > > > Nsca Config File > ---------------- > > > server_port=2052 > #server_address=192.168.1.1 > allowed_hosts=127.0.0.1 > nsca_user=nagios > nsca_group=nagios > debug=1 > command_file=/usr/local/nagios/var/rw/nagios.cmd > alternate_dump_file=/usr/local/nagios/var/rw/nsca.dump > aggregate_writes=0 > append_to_file=0 > max_packet_age=30 > #password= > decryption_method=1 I believe you _must_ specify a password and it must match between server and client. -- Marc ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Mon Aug 1 17:10:51 2005 From: marc at ena.com (Marc Powell) Date: Mon, 1 Aug 2005 10:10:51 -0500 Subject: parents attribute / condition alarms Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Oliver Welter > Sent: Monday, August 01, 2005 1:19 AM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] parents attribute / condition alarms > > Hi Hendrik, > > > this is exactly what the parents are for. Just tell the hosts.cfg for > > switch and server that you don't want a Unreachable Alert and go to > sleep ;) > > Ahh so this is the difference between unreachable and down ?? > Down: the last parent is reachable, the server is not ? > Unreachable: There is an interruption in the path to the server ? > http://nagios.sourceforge.net/docs/1_0/networkreachability.html ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Mon Aug 1 17:13:50 2005 From: marc at ena.com (Marc Powell) Date: Mon, 1 Aug 2005 10:13:50 -0500 Subject: NSClient : which version run in windows server 2003 Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Anthony Montibello > Sent: Saturday, July 30, 2005 6:11 AM > To: Nagios Users List > Subject: Re: [Nagios-users] NSClient : which version run in windows server > 2003 > > HI Johann, > > There are many choices for monitoring Windows servers, > If you can find a way to search this list you sill find several > conversations on this within the past few months. If you don't like SF.nets search capabilities, and I won't blame you if you don't ;), GMANE is always quite useful -- http://dir.gmane.org/gmane.network.nagios.user -- Marc ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From greenmanse at ldschurch.org Mon Aug 1 17:46:30 2005 From: greenmanse at ldschurch.org (Scott Greenman) Date: Mon, 1 Aug 2005 17:46:30 +0200 (CEST) Subject: Multiple Nagios instances on one server Message-ID: <20050801154630.4405D4F4002@desire.netways.de> We have several different sets of machines that we are monitoring. Right now we have one instance of Nagios running that monitors all of the machines. This makes it difficult to focus on any one group of machines. I have set up nagios hostgroups for each set of machines, which helps, but what I would really like is to have a different nagios web site for each group of machines, all run off the same server. Has anyone done something like this? I can think of several ways it might work, but don't know about the feasability. It's not clear how the CGIs locate the cgi.cfg file - I guess I'll need to look at the source. Ideally, there would be only one instance of Nagios running that monitored everything (with a corresponding set of .cfg files that included everything.) Then there would be multiple copies of the cgi.cfg, each that pointed to a different set of .cfg files that contained a subset of hosts. If there is no way to get something like that working, I could always set up multiple instances of nagios running, each monitoring a subset of hosts and having its own set of cgis. Ultimately, I want to avoid having to have multiple copies of files on the nagios server. I don't want to just copy the entire nagios directory for each instance, but have them share the files that don't need to differ for each instance. I'm going to do some experimentation, but if anyone has gone down this road before and can save me some time I'd much appreciate the help. Thanks - Scott Greenman (sgreenman) ----------------------- The mailing list archive is found here: http://www.nagiosexchange.org/nagios-users.34.0.html ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Mon Aug 1 18:02:25 2005 From: marc at ena.com (Marc Powell) Date: Mon, 1 Aug 2005 11:02:25 -0500 Subject: Multiple Nagios instances on one server Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Scott Greenman > Sent: Monday, August 01, 2005 10:47 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Multiple Nagios instances on one server > > We have several different sets of machines that we are monitoring. > Right now we have one instance of Nagios running that monitors > all of the machines. This makes it difficult to focus on any one > group of machines. > > > > I have set up nagios hostgroups for each set of machines, which > helps, but what I would really like is to have a different nagios > web site for each group of machines, all run off the same server. > > > > Has anyone done something like this? Yes, but it's generally un-necessary. http://www.nagios.org/faqs/viewfaq.php?faq_id=22 If you enable CGI authorization/authentication then logged in users only see hosts and services that they are authorized contacts for. Each group could be assigned a generic role contact and/or specific real contacts. If you logged in with that role or specific contact username you'd only see hosts and services in that group. No need to have multiple instances, wacky config file setups, etc... http://nagios.sourceforge.net/docs/1_0/cgiauth.html -- Marc ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Tue Aug 2 12:01:32 2005 From: ae at op5.se (Andreas Ericsson) Date: Tue, 02 Aug 2005 12:01:32 +0200 Subject: Why Nagios 2 do not support database anymore? In-Reply-To: <20050802090216.23405.qmail@web25706.mail.ukl.yahoo.com> References: <20050802090216.23405.qmail@web25706.mail.ukl.yahoo.com> Message-ID: <42EF447C.2060600@op5.se> asdhouib-nagios at yahoo.fr wrote: > Hi all, > Why Nagios 2 do not support database anymore? > Is it because of performance issues? stability issues? Because of maintenance issues. It's also redundant with the NEB-module API. Naturally there are already database-modules cropping up, with their own GUI's. Perhaps you should give it a look. The sourceforge project name is "nagios-db" -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ralph.Grothe at itdz-berlin.de Tue Aug 2 15:49:12 2005 From: Ralph.Grothe at itdz-berlin.de (Ralph.Grothe at itdz-berlin.de) Date: Tue, 2 Aug 2005 15:49:12 +0200 Subject: Nagios daemon (release 2.0b3) not catching sig nals as I would exp ect Message-ID: <6B893C5F2902D311A23F0090272854FB0575B7AA@litex001.lit.verwalt-berlin.de> > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Andreas > Ericsson > Sent: Tuesday, August 02, 2005 3:38 PM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Nagios daemon (release 2.0b3) not catching > signals as I would exp ect > > This is weird, and most likely has something to do with the > scheduling > mechanism of the OS, since this works in the POSIX way on > other systems. thought so > > Note that Nagios will wait for currently running checks to > finish before > dying though, so that might be what you're seeing. > this I also suspected > > TAFO (Try And Find Out). That way you'll also learn if it works in > practice rather than theory, which I assume is much more interesting. > PIBINLIC (Practice Is Baffling If No Logic Is Conspicuous) > I'm not all that excited about visually debugging someone > else's script > that's longer than 5 lines, and I'm fairly sure others aren't > thrilled > about it either. Sorry for offending your eyes. I will refrain from further such postings... ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Mon Aug 1 20:35:59 2005 From: marc at ena.com (Marc Powell) Date: Mon, 1 Aug 2005 13:35:59 -0500 Subject: Problem with check_http returning 403 error Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Eugene Ventimiglia > Sent: Monday, August 01, 2005 12:57 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Problem with check_http returning 403 error > > I want to check a website defined by hostname with check_http using > the following line (domain name obscured): > > check_http! -H m-xube.com -u /gd/GetIvrData.aspx This is an odd way to pass the arguments. This is probably the source of your issue. I'd try the following -- # Service definition define service{ use generic-service host_name some_host service_description HTTP retry_check_interval 3 contact_groups whatever check_command check_http!m-xube.com!"/gd/GeIvrData.aspx" } define command{ command_name check_http command_line $USER1$/check_http -I $HOSTADDRESS$ -H $ARG1$ -u $ARG2$ } You can of course add additional arguments to check_http as you deem necessary (like -e or -s). The quotes around the second argument may or may not be necessary (probably not). I added them just in case. -- Marc ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mike.meredith at port.ac.uk Tue Aug 2 16:02:34 2005 From: mike.meredith at port.ac.uk (Mike Meredith) Date: Tue, 2 Aug 2005 15:02:34 +0100 Subject: Nagios daemon (release 2.0b3) not catching signals as I would exp ect In-Reply-To: <6B893C5F2902D311A23F0090272854FB0575B7A9@litex001.lit.verwalt-berlin.de> References: <6B893C5F2902D311A23F0090272854FB0575B7A9@litex001.lit.verwalt-berlin.de> Message-ID: <20050802150234.00007731@rasputin> On Tue, 2 Aug 2005 15:05:32 +0200, Ralph.Grothe at itdz-berlin.de wrote: > At least for my gcc 2.95 build of nagios on this platform the > daemon doesn't catch signals as I would expect/wish. I'm still running Nagios 1.2, so my experiences aren't so useful but I don't see a problem with HUP or TERM signals. > Are there any quirks (especially with regard to AIX) that I would > have to consider Yes. I don't think you're necessarily going to be successful in sticking the links in /etc/rc.d/rc3.d ... at least I haven't been. It's better to use the native method with mksrc, chsrc, and lssrc. > P.S. my supposed way to start/stop nagios: It is generally not a great idea to rely on bash being available/working on a non-Linux machine. Only /bin/sh is guaranteed to be fully functional during system startup. Especially as most of your script doesn't seem to really require it. -- Mike Meredith, Senior Informatics Officer University of Portsmouth: Hostmaster, Postmaster and Security Linux user #1615 (http://counter.li.org) ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From getbacktome3 at hotmail.com Tue Aug 2 13:12:08 2005 From: getbacktome3 at hotmail.com (HP Geeza) Date: Tue, 02 Aug 2005 12:12:08 +0100 Subject: nagios displaying jpg icons for host? In-Reply-To: <626FC7C6A97381468FB872072AB5DDC801FEB3@XCH-SW-42.sw.nos.boeing.com> References: <626FC7C6A97381468FB872072AB5DDC801FEB3@XCH-SW-42.sw.nos.boeing.com> Message-ID: Hi I was wondering how i actually use these images? - how do i untar a .tar.tar file??? >From: "EXT-Fuentes, James P" >To: "HP Geeza" , > >Subject: RE: [Nagios-users] nagios displaying jpg icons for host? >Date: Fri, 29 Jul 2005 12:06:53 -0700 > >You can find images at the following location: > >http://www.nagiosexchange.org/Image_Packs.75.0.html > >-Jim > >________________________________ > >From: HP Geeza [mailto:getbacktome3 at hotmail.com] >Sent: Fri 7/29/2005 11:11 AM >To: EXT-Fuentes, James P; nagios-users at lists.sourceforge.net >Subject: RE: [Nagios-users] nagios displaying jpg icons for host? > > > >Hi > >I'm sorry what do you mean by the imagepak??? > >I currently dont know how to display any icons....this is what i would like >to do > > >From: "EXT-Fuentes, James P" > >To: "HP Geeza" > >, > >Subject: RE: [Nagios-users] nagios displaying jpg icons for host? > >Date: Fri, 29 Jul 2005 09:36:09 -0700 > > > >Another thing you can do is download your own images and resize them if >you > >don't find an appropriate one in the imagepak. > >-Jim > > > >________________________________ > > > >From: HP Geeza [mailto:getbacktome3 at hotmail.com] > >Sent: Fri 7/29/2005 3:46 AM > >To: nagios-users at lists.sourceforge.net > >Subject: [Nagios-users] nagios displaying jpg icons for host? > > > > > > > >Hi > > > >I was wondering whether it is possible to get nagios to display jpg icons > >for expample next to individual hosts??? What i mean by this is that i >was > >wondering if it is possible to have like a little windows jpg icon or red > >hat icon shown next to the name of a particular host so that its OS can > >been > >identified quickly???? > > > >_________________________________________________________________ > >Be the first to hear what's new at MSN - sign up to our free newsletters! > >http://www.msn.co.uk/newsletters > > > > > > > >------------------------------------------------------- > >SF.Net email is Sponsored by the Better Software Conference & EXPO > >September > >19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > >Agile & Plan-Driven Development * Managing Projects & Teams * Testing & >QA > >Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > >_______________________________________________ > >Nagios-users mailing list > >Nagios-users at lists.sourceforge.net > >https://lists.sourceforge.net/lists/listinfo/nagios-users > >::: Please include Nagios version, plugin version (-v) and OS when > >reporting any issue. > >::: Messages without supporting info will risk being sent to /dev/null > > > > > > > > > >------------------------------------------------------- > >SF.Net email is Sponsored by the Better Software Conference & EXPO > >September > >19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > >Agile & Plan-Driven Development * Managing Projects & Teams * Testing & >QA > >Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > >_______________________________________________ > >Nagios-users mailing list > >Nagios-users at lists.sourceforge.net > >https://lists.sourceforge.net/lists/listinfo/nagios-users > >::: Please include Nagios version, plugin version (-v) and OS when > >reporting any issue. > >::: Messages without supporting info will risk being sent to /dev/null > >_________________________________________________________________ >Winks & nudges are here - download MSN Messenger 7.0 today! >http://messenger.msn.co.uk > > > _________________________________________________________________ Want to block unwanted pop-ups? Download the free MSN Toolbar now! http://toolbar.msn.co.uk/ ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From eventi at gmail.com Mon Aug 1 19:56:35 2005 From: eventi at gmail.com (Eugene Ventimiglia) Date: Mon, 1 Aug 2005 13:56:35 -0400 Subject: Problem with check_http returning 403 error In-Reply-To: <49ffc84005080108392a337398@mail.gmail.com> References: <49ffc84005080108392a337398@mail.gmail.com> Message-ID: <49ffc84005080110561f513ef2@mail.gmail.com> I want to check a website defined by hostname with check_http using the following line (domain name obscured): check_http! -H m-xube.com -u /gd/GetIvrData.aspx but it always returns "HTTP WARNING: HTTP/1.1 403 Forbidden" I tried the command from the command line, and it returns HTTP OK HTTP/1.1 200 OK - 442 bytes in 0.398 seconds |time=0.398301s;;;0.000000 size=442B;;;0 The full URL I want to check is http://m-xube.com/gd/GetIvrData.aspx I read the fine manuals, but can't figure out what I'm doing wrong. TIA --e ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Tue Aug 2 16:27:26 2005 From: marc at ena.com (Marc Powell) Date: Tue, 2 Aug 2005 09:27:26 -0500 Subject: nagios displaying jpg icons for host? Message-ID: Your browser must be doing something funny with the name or file. They all look like they're tar.gz files (tar -zxvf filename.tar.gz). It's possible that your browser is handling the gzip -d and you end up with a straight .tar file (tar xvf filename.tar) and the filename is just wacky. You can tell by running the 'file' command on the downloaded file 'file somename.tar.tar'. The image packs are just a collection of png or jpg images (depending one the preference of the person that created the pack) representing different devices or OS's. For example -- http://www.nagiosexchange.org/typo3conf/ext/net_nagext/pi1/download.php? file=MOjNP7Wu3w4jMxTXutzMg4amUF3Kasm0L9ZF%2FaeEibRfu9iy34rCSZ6uEZvYpetg4 yLEJMGZLag%2FAdZo6QBp3YaKIGOh78b8mZiweZy8MN9kkvrfE%2FGat1pS7XHXWzNJ&ext= .jpg (what an ugly URL just to look at an image, bleh). Anyway, if you don't like any of the pre-created imagepacks, and you can use as many as you like as you're just going to decompress them into some web-server readable directory, there's nothing stopping you from creating your own images and using those. As far as how to actually use the images, I posted that link in response to your original question. Here it is again -- http://nagios.sourceforge.net/docs/1_0/xedtemplate.html -- Marc > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of HP Geeza > Sent: Tuesday, August 02, 2005 6:12 AM > To: James.P.Fuentes at boeing.com; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] nagios displaying jpg icons for host? > > Hi > > I was wondering how i actually use these images? - how do i untar a > .tar.tar > file??? > > > >From: "EXT-Fuentes, James P" > >To: "HP Geeza" , > > > >Subject: RE: [Nagios-users] nagios displaying jpg icons for host? > >Date: Fri, 29 Jul 2005 12:06:53 -0700 > > > >You can find images at the following location: > > > >http://www.nagiosexchange.org/Image_Packs.75.0.html > > > >-Jim > > > >________________________________ > > > >From: HP Geeza [mailto:getbacktome3 at hotmail.com] > >Sent: Fri 7/29/2005 11:11 AM > >To: EXT-Fuentes, James P; nagios-users at lists.sourceforge.net > >Subject: RE: [Nagios-users] nagios displaying jpg icons for host? > > > > > > > >Hi > > > >I'm sorry what do you mean by the imagepak??? > > > >I currently dont know how to display any icons....this is what i would > like > >to do > > > > >From: "EXT-Fuentes, James P" > > >To: "HP Geeza" > > >, > > >Subject: RE: [Nagios-users] nagios displaying jpg icons for host? > > >Date: Fri, 29 Jul 2005 09:36:09 -0700 > > > > > >Another thing you can do is download your own images and resize them if > >you > > >don't find an appropriate one in the imagepak. > > >-Jim > > > > > >________________________________ > > > > > >From: HP Geeza [mailto:getbacktome3 at hotmail.com] > > >Sent: Fri 7/29/2005 3:46 AM > > >To: nagios-users at lists.sourceforge.net > > >Subject: [Nagios-users] nagios displaying jpg icons for host? > > > > > > > > > > > >Hi > > > > > >I was wondering whether it is possible to get nagios to display jpg > icons > > >for expample next to individual hosts??? What i mean by this is that i > >was > > >wondering if it is possible to have like a little windows jpg icon or > red > > >hat icon shown next to the name of a particular host so that its OS can > > >been > > >identified quickly???? ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jgoltz at mail.nih.gov Tue Aug 2 16:33:11 2005 From: jgoltz at mail.nih.gov (Goltz, Jim (NIH/NLM/LHC) [C]) Date: Tue, 2 Aug 2005 10:33:11 -0400 Subject: check_snmp not obeying warning/critical limits Message-ID: Follow-up to an earlier question: > I'm using check_snmp to check an SNMP-addressable temperature > sensor. [...configuration...] > which should go to "warning" if the temperature is outside > the range 60-90 > degrees and "critical" if it's outside 32-118 degrees. > But when I configure things "normally", Nagios reports 87 or > 88 degrees as a > "warning" number ("SNMP WARNING - 88 degF"). The problem is, check_snmp also returns a warning state if (a) there's any output on stderr or (b) there's any problem closing the child process. I modified check_snmp not to do this as a stopgap measure, and it works fine now. ----- James P. Goltz (jgoltz at mail.nih.gov) ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Tue Aug 2 16:33:22 2005 From: marc at ena.com (Marc Powell) Date: Tue, 2 Aug 2005 09:33:22 -0500 Subject: Why Nagios 2 do not support database anymore? Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of asdhouib-nagios at yahoo.fr > Sent: Tuesday, August 02, 2005 4:02 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Why Nagios 2 do not support database anymore? > > Hi all, > Why Nagios 2 do not support database anymore? > Is it because of performance issues? stability issues? 1) Search the archives. It's been hashed and re-hashed thoroughly over the last few years (yes, it's been known that long). Long story short: Too difficult to maintain, increases development time significantly, not flexible enough, better solution exists (Nagios Event Broker; nagios-db project on SF.net uses NEB). 2) http://nagios.sourceforge.net/docs/2_0/whatsnew.html, #14 and #15. -- Marc ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Tue Aug 2 16:38:41 2005 From: marc at ena.com (Marc Powell) Date: Tue, 2 Aug 2005 09:38:41 -0500 Subject: Multiple Nagios instances on one server Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Jason Martin > Sent: Monday, August 01, 2005 9:58 PM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Multiple Nagios instances on one server > > On Mon, Aug 01, 2005 at 04:13:35PM -0500, Marc Powell wrote: > > There was a workaround posted to the list a week or two ago. You could > > also Google for "apache basic authentication logout" as suggested by > > Moshe Sharon in his post on 7/12. > Changing the 'realm' name for each Nagios instance should do > it. He ended up using authorization, not multiple instances. Authorization is the proper way, IMHO. -- Marc ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mike.meredith at port.ac.uk Tue Aug 2 16:42:53 2005 From: mike.meredith at port.ac.uk (Mike Meredith) Date: Tue, 2 Aug 2005 15:42:53 +0100 Subject: Nagios daemon (release 2.0b3) not catching signals as I would exp ect In-Reply-To: <20050802150234.00007731@rasputin> References: <6B893C5F2902D311A23F0090272854FB0575B7A9@litex001.lit.verwalt-berlin.de> <20050802150234.00007731@rasputin> Message-ID: <20050802154253.00005b6e@rasputin> On Tue, 2 Aug 2005 15:02:34 +0100, Mike Meredith wrote: > the links in /etc/rc.d/rc3.d ... at least I haven't been. It's better to > use the native method with mksrc, chsrc, and lssrc. It would help if I gave the right commands : mkssys, chssys, and lssrc My own Nagios service was created with :- mkssys -s Lnagios \ -p /opt/nagios/bin/nagios \ -u nagios \ -a "/opt/nagios/etc/nagios.cfg" -f 9 (force quit signal) -n 15 (stop signal) -Q (only allow one instance) -R (restart if it stops abnormally) -S (communication is done with signals) It's started by adding "startsrc -s Lnagios" to the end of /etc/rc.tcpip -- Mike Meredith, Senior Informatics Officer University of Portsmouth: Hostmaster, Postmaster and Security sigmonster: core dumped ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ralph.Grothe at itdz-berlin.de Tue Aug 2 15:05:32 2005 From: Ralph.Grothe at itdz-berlin.de (Ralph.Grothe at itdz-berlin.de) Date: Tue, 2 Aug 2005 15:05:32 +0200 Subject: Nagios daemon (release 2.0b3) not catching signals as I would exp ect Message-ID: <6B893C5F2902D311A23F0090272854FB0575B7A9@litex001.lit.verwalt-berlin.de> Hello, I already asked in another posting here if Nagios 2.0b3 still could be considered buggy. (you may remember) I'm not sure whether I should send this "observation" to the developers as a bug report or not. Besides, I don't reckon AIX 4.3 being regarded a decisive target platform. I'm also only unwillingly stuck with this hosting OS for my Nagios setup. [nagios at daisy:~/etc] $ oslevel 4.3.3.0 At least for my gcc 2.95 build of nagios on this platform the daemon doesn't catch signals as I would expect/wish. I found that if the running nagios daemon receives a SIGHUP, that it hangs itself instead of reinitializing after last final words of $ grep SIGHUP /var/opt/nagios/log/nagios.log [1122984843] Caught SIGHUP, restarting... Having been sent a second SIGHUP it dies completely. Similarly sending the running nagios a SIGTERM it also gets hung. It always requires a second SIGTERM to finish it. Being more at home on SysV systems like HPUX, Solaris, GNU/Linux I'm not really into this BSDish "run level" concept (or rather the lack of such) of AIX, and unaware how IPC is handled there. I want the nagios daemon be started and halted at system startup and shutdown. Thus I wrote the wee SysV inspired RC script below that I would simply want to source and issue a "nagios start" or "nagios stop" below. Are there any quirks (especially with regard to AIX) that I would have to consider when starting/stopping/restarting the nagios daemon, or should the below at least theoretically work? Rgds. Ralph P.S. my supposed way to start/stop nagios: [nagios at daisy:~/etc] $ cat nagios_functions.sh { if ! echo $0|grep -q bash; then echo "Sorry mate, this script uses Bash syntax but you don't run Bash" return 1 fi if [[ $(uname -s) != AIX ]]; then echo "Sorry, this isn't a multi *nix script and currently only supports AIX" return 1 fi } 1>&2 nagios_pid() { ps -u nagios -o pid=,ppid=,comm=|awk '$3=="nagios"&&$2==1{print$1}' } nagios() { CHECK=~nagios/libexec/check_nagios LOG=~nagios/var/log/nagios.log CFG=~nagios/etc/nagios.cfg PID=~nagios/var/nagios.pid BIN=/opt/sw/nagios/bin/nagios local pid= if [ -s $PID ] && kill -0 $(cat $PID) 2>/dev/null; then pid=$(cat $PID) fi (( $pid )) || pid=$(nagios_pid) case "$1" in check) echo "Doing pre-flight check of nagios.cfg" $BIN -v $CFG ;; status) if $CHECK -F $LOG -e 1 -C $BIN && (( $pid )); then echo ps -o pid,etime,args -p $pid fi ;; start) if (( $pid )); then echo "There's already a running nagios daemon" ps -o pid,etime,args -p $pid echo "You first have to run \"nagios stop\"" return 1 fi 1>&2 echo "Starting Nagios as daemon..." $BIN -d $CFG sleep 5 echo "Last three lines of $LOG:" tail -3 $LOG ;; stop) if [[ -z $pid ]]; then echo "There's no Nagios daemon running, nothing to stop" else echo "Sending SIGTERM to Nagios daemon PID $pid" kill $pid typeset -i i=0 s=6 while kill -0 $pid && (( i < 10 )); do echo "PID $pid still responding, snoozing for another $s secs" sleep $s (( i+=1 )) done echo "Last three lines of $LOG:" tail -3 $LOG if kill -0 $pid; then echo "Couldn't kill the beast, please send it SIGKILL" return 1 fi 2>&1 fi ;; graceful) if (( $pid )); then echo "Sending Nagios daemon PID $pid a SIGHUP" kill -HUP $pid sleep 5 nagios status echo "Last three lines of $LOG:" tail -3 $LOG else echo "There was no Nagios daemon running, doing cold start" nagios start fi ;; help|*) echo "usage: nagios {check|graceful|start|stop|status}" ;; esac } ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From matthew.nelson at progressindustries.org Tue Aug 2 16:51:50 2005 From: matthew.nelson at progressindustries.org (Matthew Nelson) Date: Tue, 2 Aug 2005 16:51:50 +0200 (CEST) Subject: It appears as though you do not have permission to view information for any of the hosts you requested... In-Reply-To: <7e2f9af905061507599a689c9@mail.gmail.com> References: <7e2f9af905061507599a689c9@mail.gmail.com> Message-ID: <20050802145150.130D64F4002@desire.netways.de> Hi Cam I'm also running Ubuntu and Nagios and having the same issue. Would you mind posting what you changed in your Apache config? Thanks. - Matthew Nelson (matgyver) ----------------------- This thread is located in the archive at this URL: http://www.nagiosexchange.org/nagios-users.34.0.html?&tx_maillisttofaq_pi 1[showUid]=7606 ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Tue Aug 2 15:38:23 2005 From: ae at op5.se (Andreas Ericsson) Date: Tue, 02 Aug 2005 15:38:23 +0200 Subject: Nagios daemon (release 2.0b3) not catching signals as I would exp ect In-Reply-To: <6B893C5F2902D311A23F0090272854FB0575B7A9@litex001.lit.verwalt-berlin.de> References: <6B893C5F2902D311A23F0090272854FB0575B7A9@litex001.lit.verwalt-berlin.de> Message-ID: <42EF774F.3070307@op5.se> Ralph.Grothe at itdz-berlin.de wrote: > > I found that if the running nagios daemon receives a SIGHUP, that > it hangs itself instead of reinitializing after last final words > of > > $ grep SIGHUP /var/opt/nagios/log/nagios.log > [1122984843] Caught SIGHUP, restarting... > > > Having been sent a second SIGHUP it dies completely. > > Similarly sending the running nagios a SIGTERM it also gets hung. > It always requires a second SIGTERM to finish it. > This is weird, and most likely has something to do with the scheduling mechanism of the OS, since this works in the POSIX way on other systems. Note that Nagios will wait for currently running checks to finish before dying though, so that might be what you're seeing. > > I want the nagios daemon be started and halted at system startup > and shutdown. > Thus I wrote the wee SysV inspired RC script below that I would > simply want to source > and issue a "nagios start" or "nagios stop" below. > > Are there any quirks (especially with regard to AIX) that I would > have to consider > when starting/stopping/restarting the nagios daemon, or should > the below at least theoretically work? > TAFO (Try And Find Out). That way you'll also learn if it works in practice rather than theory, which I assume is much more interesting. I'm not all that excited about visually debugging someone else's script that's longer than 5 lines, and I'm fairly sure others aren't thrilled about it either. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From joop3 at gmx.net Tue Aug 2 17:28:39 2005 From: joop3 at gmx.net (Joop Jansen) Date: Tue, 2 Aug 2005 17:28:39 +0200 (MEST) Subject: =?ISO-8859-1?Q?Checking_of_multicasts?= Message-ID: <23801.1122996519@www54.gmx.net> Following setup: We are using a network in a multicast setup. This means that there are several remote sites under a multicast. (remotes with inbound connection, and one outbound towards all the remotes). I also would like to monitor the multicast itself, so to receive a notification when the whole multicast goes down. I was thinking to use check_icmp to ping all the remotes of that multicast. However check_icmp has three ways to operate (check_host/check_icmp and check_all). Check_host would be perfect, only I need to have the opposite. So It should send one icmp packet to all the remotes, and only return to the state critical when all the remotes are not reachable. The check_host just returnes critical when already one site is down. Does someone has done something similar? Or is using a different approach? Thanks in advance Joop -- GMX DSL = Maximale Leistung zum minimalen Preis! 2000 MB nur 2,99, Flatrate ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From getbacktome3 at hotmail.com Tue Aug 2 18:19:17 2005 From: getbacktome3 at hotmail.com (HP Geeza) Date: Tue, 02 Aug 2005 17:19:17 +0100 Subject: nagios displaying jpg icons for host? In-Reply-To: References: Message-ID: Ah ha...thanks that seemed to have done the trick! >From: "Marc Powell" >To: >Subject: RE: [Nagios-users] nagios displaying jpg icons for host? >Date: Tue, 2 Aug 2005 09:27:26 -0500 > >Your browser must be doing something funny with the name or file. They >all look like they're tar.gz files (tar -zxvf filename.tar.gz). It's >possible that your browser is handling the gzip -d and you end up with a >straight .tar file (tar xvf filename.tar) and the filename is just >wacky. You can tell by running the 'file' command on the downloaded file >'file somename.tar.tar'. The image packs are just a collection of png or >jpg images (depending one the preference of the person that created the >pack) representing different devices or OS's. For example -- >http://www.nagiosexchange.org/typo3conf/ext/net_nagext/pi1/download.php? >file=MOjNP7Wu3w4jMxTXutzMg4amUF3Kasm0L9ZF%2FaeEibRfu9iy34rCSZ6uEZvYpetg4 >yLEJMGZLag%2FAdZo6QBp3YaKIGOh78b8mZiweZy8MN9kkvrfE%2FGat1pS7XHXWzNJ&ext= >.jpg > >(what an ugly URL just to look at an image, bleh). Anyway, if you don't >like any of the pre-created imagepacks, and you can use as many as you >like as you're just going to decompress them into some web-server >readable directory, there's nothing stopping you from creating your own >images and using those. > >As far as how to actually use the images, I posted that link in response >to your original question. Here it is again -- > >http://nagios.sourceforge.net/docs/1_0/xedtemplate.html > >-- >Marc > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > > admin at lists.sourceforge.net] On Behalf Of HP Geeza > > Sent: Tuesday, August 02, 2005 6:12 AM > > To: James.P.Fuentes at boeing.com; nagios-users at lists.sourceforge.net > > Subject: RE: [Nagios-users] nagios displaying jpg icons for host? > > > > Hi > > > > I was wondering how i actually use these images? - how do i untar a > > .tar.tar > > file??? > > > > > > >From: "EXT-Fuentes, James P" > > >To: "HP Geeza" , > > > > > >Subject: RE: [Nagios-users] nagios displaying jpg icons for host? > > >Date: Fri, 29 Jul 2005 12:06:53 -0700 > > > > > >You can find images at the following location: > > > > > >http://www.nagiosexchange.org/Image_Packs.75.0.html > > > > > >-Jim > > > > > >________________________________ > > > > > >From: HP Geeza [mailto:getbacktome3 at hotmail.com] > > >Sent: Fri 7/29/2005 11:11 AM > > >To: EXT-Fuentes, James P; nagios-users at lists.sourceforge.net > > >Subject: RE: [Nagios-users] nagios displaying jpg icons for host? > > > > > > > > > > > >Hi > > > > > >I'm sorry what do you mean by the imagepak??? > > > > > >I currently dont know how to display any icons....this is what i >would > > like > > >to do > > > > > > >From: "EXT-Fuentes, James P" > > > >To: "HP Geeza" > > > >, > > > >Subject: RE: [Nagios-users] nagios displaying jpg icons for host? > > > >Date: Fri, 29 Jul 2005 09:36:09 -0700 > > > > > > > >Another thing you can do is download your own images and resize >them if > > >you > > > >don't find an appropriate one in the imagepak. > > > >-Jim > > > > > > > >________________________________ > > > > > > > >From: HP Geeza [mailto:getbacktome3 at hotmail.com] > > > >Sent: Fri 7/29/2005 3:46 AM > > > >To: nagios-users at lists.sourceforge.net > > > >Subject: [Nagios-users] nagios displaying jpg icons for host? > > > > > > > > > > > > > > > >Hi > > > > > > > >I was wondering whether it is possible to get nagios to display jpg > > icons > > > >for expample next to individual hosts??? What i mean by this is >that i > > >was > > > >wondering if it is possible to have like a little windows jpg icon >or > > red > > > >hat icon shown next to the name of a particular host so that its OS >can > > > >been > > > >identified quickly???? > > > >------------------------------------------------------- >SF.Net email is sponsored by: Discover Easy Linux Migration Strategies >from IBM. Find simple to follow Roadmaps, straightforward articles, >informative Webcasts and more! Get everything you need to get up to >speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS when >reporting any issue. >::: Messages without supporting info will risk being sent to /dev/null _________________________________________________________________ Be the first to hear what's new at MSN - sign up to our free newsletters! http://www.msn.co.uk/newsletters ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sam_stave at yahoo.com Tue Aug 2 18:50:50 2005 From: sam_stave at yahoo.com (Sam Stave) Date: Tue, 2 Aug 2005 09:50:50 -0700 (PDT) Subject: Phantom Host Alerts Message-ID: <20050802165050.59919.qmail@web50309.mail.yahoo.com> I have a (windows) host that has been removed from all config files - I even stopped the NSClient service on the host, but am still receiving alerts from this host. I only have a single Nagios server, so I know its not from a secondary box... I can find no reference to the host in any file or location - yet I get alerts... any clues? Thanks Sam __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Tue Aug 2 18:59:07 2005 From: marc at ena.com (Marc Powell) Date: Tue, 2 Aug 2005 11:59:07 -0500 Subject: Phantom Host Alerts Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Sam Stave > Sent: Tuesday, August 02, 2005 11:51 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Phantom Host Alerts > > I have a (windows) host that has been removed from all > config files - I even stopped the NSClient service on > the host, but am still receiving alerts from this > host. > > I only have a single Nagios server, so I know its not > from a secondary box... > > I can find no reference to the host in any file or > location - yet I get alerts... > > any clues? Did you restart nagios after removing the host? Did it really restart? Are there multiple nagios processes running, one running with the old config perhaps? Finally, if the alerts aren't time-stamped recently, could they be queued up in your MTA? -- Marc ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tinzauro at ha-solutions.net Tue Aug 2 19:04:58 2005 From: tinzauro at ha-solutions.net (Terry L. Inzauro) Date: Tue, 02 Aug 2005 12:04:58 -0500 Subject: Phantom Host Alerts In-Reply-To: References: Message-ID: <42EFA7BA.5020500@ha-solutions.net> Marc Powell wrote: > >>-----Original Message----- >>From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- >>admin at lists.sourceforge.net] On Behalf Of Sam Stave >>Sent: Tuesday, August 02, 2005 11:51 AM >>To: nagios-users at lists.sourceforge.net >>Subject: [Nagios-users] Phantom Host Alerts >> >>I have a (windows) host that has been removed from all >>config files - I even stopped the NSClient service on >>the host, but am still receiving alerts from this >>host. >> >>I only have a single Nagios server, so I know its not >>from a secondary box... >> >>I can find no reference to the host in any file or >>location - yet I get alerts... >> >>any clues? > > > Did you restart nagios after removing the host? Did it really restart? > Are there multiple nagios processes running, one running with the old > config perhaps? Finally, if the alerts aren't time-stamped recently, > could they be queued up in your MTA? > > -- > Marc > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null i saw this once and left it alone for a day or two and it seemed to fix itself ;) ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bsmith at fusionbroadband.com Tue Aug 2 19:18:15 2005 From: bsmith at fusionbroadband.com (Brian Smith) Date: Tue, 2 Aug 2005 12:18:15 -0500 Subject: It appears as though you do not have permission to view information for any of the hosts you requested... Message-ID: <76260EC12F72AF4582D3582554CBE108EA1BC8@iron.fusionbb.corp> This error can also apparently happen if you have the wrong permissions on some of your config files. My Nagios setup has a set of main configs in the normal directory, and also points to several extra configs that are site-specific. Wrong permissions on those extra config files were causing the CGIs to (incorrectly) report that even the nagios-admin user did not have permission to view any hosts / hostgroups, but Nagios was still starting and running without error. I don't know if the same thing happens with wrong permissions on the main config files. -- Brian > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Matthew Nelson > Sent: Tuesday, August 02, 2005 9:52 AM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] It appears as though you do not have > permission to view information for any of the hosts you requested... > > Hi Cam > > > > I'm also running Ubuntu and Nagios and having the same issue. Would > you mind posting what you changed in your Apache config? Thanks. > > > > > > - Matthew Nelson (matgyver) > > > > ----------------------- > > This thread is located in the archive at this URL: > > http://www.nagiosexchange.org/nagios-users.34.0.html?&tx_maillisttofaq_p i > 1[showUid]=7606 > > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=ick > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From forums at emat.be Tue Aug 2 19:46:17 2005 From: forums at emat.be (js) Date: Tue, 02 Aug 2005 19:46:17 +0200 Subject: Trends and old data Message-ID: <42EFB169.9000306@emat.be> Hi all, I have a host i want to rename. But i want to keep the historical data of this host,...... How can I do this? Thanks Jelle ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Tue Aug 2 20:04:58 2005 From: marc at ena.com (Marc Powell) Date: Tue, 2 Aug 2005 13:04:58 -0500 Subject: Trends and old data Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of js > Sent: Tuesday, August 02, 2005 12:46 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Trends and old data > > Hi all, > > I have a host i want to rename. But i want to keep the historical data > of this host,...... > How can I do this? Ah, yes, this is fun =) It's pretty straight forward but can be tedious. You need to rename the host in the config files and replace all occurrences of the name in var/nagios.log and var/archives/*. You can do this with sed, a perl one-liner such as cd /usr/local/nagios/var; perl -i.bak -pe 's/oldhost/newhost/e' nagios.log cd /usr/local/nagios/var/archives; perl -i.bak -pe 's/oldhost/newhost/e' nagios* or a more sophisticated script that only looks at files the host is in, modifies those and does error checking afterward ;) We opted for this solution. With almost 3 years of log files and 3 machines to modify them on it can take up to 10 minutes to rename a single site. -- Marc ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bsmith at fusionbroadband.com Tue Aug 2 21:30:05 2005 From: bsmith at fusionbroadband.com (Brian Smith) Date: Tue, 2 Aug 2005 14:30:05 -0500 Subject: Weirdness with remote (passive) checks. Critical on remote, OK on local? Message-ID: <76260EC12F72AF4582D3582554CBE108EA1BF3@iron.fusionbb.corp> Thanks Marc for the tips, but this has just gotten weirder - neither submit_check_result, nor submit_check_result_via_nsca, seem to ever run. NSCA is being invoked, I see its process pop up when checks happen. Checks are being delivered to home base, because manual Critical states get overridden after a few minutes. Also, I can invoke this command and deliver a single distributed check successfully to home base: (folder)/submit_check_result_via_nsca remotehost 'Telnet' 2 'Because I said so' That command successfully sends the service into a soft critical state on the home server, and running it multiple times sends it to hard critical. I've tacked little "debug" lines into the submit_check_result and submit_..._via_nsca scripts to echo their commands into a log file, and the log file never gets appended. So I put commands in to echo the word 'test' into the logfile, and that word never gets put in there either. >From the end of checkcommands.cfg: # 'submit_check_result' command definition define command{ command_name submit_check_result command_line $USER1$/eventhandlers/distributed- monitoring/submit_check_result_via_nsca $HOSTNAME$ '$SERVICEDESC$' $SERVICESTATE$ '$OUTPUT$' } (except without the line breaks I inserted to make it behave in the email.) It appears I will have to trace, from the check queue to NSCA, how this is being executed. Can anyone tell me where in the config files the following things could be set: location of a custom script, if it's not set in the lines from checkcommands.cfg above? What return codes are used for OK, Critical, Warning, etc? So far it appears Nagios is sending a 0 for all cases. If not Nagios, whatever is invoking NSCA is sending it, or whatever is invoking the script that invokes NSCA is. I can't figure out what the chain of commands is here, but I know that home base Nagios is working correctly and NSCA is sending / receiving correctly, and remote Nagios is writing Critical in the status logs. And, by the way, am I correct in assuming people on the mailing list prefer text-only emails? Otherwise I will send as html. Thanks again, -- Brian > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Marc Powell > Sent: Monday, August 01, 2005 4:46 PM > To: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Weirdness with remote (passive) checks. > Critical on remote, OK on local? > > > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > > admin at lists.sourceforge.net] On Behalf Of Brian Smith > > Sent: Monday, August 01, 2005 4:28 PM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Weirdness with remote (passive) checks. > Critical > > on remote, OK on local? > > > > Hello again guys, and thanks for the previous useful replies to > > other questions. > > > > > > > > Weird problem going on here, will provide as much detail as I can. > > > > > > > > We have some hosts on private IPs being monitored passively through > NSCA > > using remote servers running Nagios. It's basically your textbook > passive > > monitoring system. > > > > > > > > Currently every switch being monitored this way that is (in real > > life) down or unreachable, is showing as "Status: OK, Status Information: > > Connection refused or timed out." > > [Aggressive snip] > > > > > Submitting a manual Critical check result puts the host properly > > into Critical, but it pops back to OK in a few minutes when a > > passive check comes in. (so passive checks are coming in and are > > setting the > state.) > > > > > > > > In the Nagios web interface it shows the hosts as a nice green OK, > with > > details "connection refused or timed out." > > It looks like your submit_check_result script isn't sending the proper > return code. If you look at the example script at > http://nagios.sourceforge.net/docs/1_0/distributed.html and the > arguments passed to it in the command definition, does yours set it > properly? That return code is how nagios determines what state a > service is in, not the human readable text or plugin output. It will > correspond to the 3rd field passed to send_nsca. > > -- > Marc > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=ick > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Tue Aug 2 21:51:48 2005 From: marc at ena.com (Marc Powell) Date: Tue, 2 Aug 2005 14:51:48 -0500 Subject: Weirdness with remote (passive) checks. Critical on remote, OK on local? Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Brian Smith > Sent: Tuesday, August 02, 2005 2:30 PM > To: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Weirdness with remote (passive) checks. > Critical on remote, OK on local? > > Thanks Marc for the tips, but this has just gotten weirder - neither > submit_check_result, nor submit_check_result_via_nsca, seem to ever run. > NSCA is being invoked, I see its process pop up when checks happen. > Checks are being delivered to home base, because manual Critical states > get overridden after a few minutes. Also, I can invoke this command and > deliver a single distributed check successfully to home base: > > (folder)/submit_check_result_via_nsca remotehost 'Telnet' 2 'Because I > said so' > > That command successfully sends the service into a soft critical state > on the home server, and running it multiple times sends it to hard > critical. It could be that nagios is actively checking the host/service from your central machine. Nagios.log would be a good place to look, on both machines for that matter. You'll probably want to look at your log_ lines in nagios.cfg to bump up your logging. > > I've tacked little "debug" lines into the submit_check_result and > submit_..._via_nsca scripts to echo their commands into a log file, and > the log file never gets appended. So I put commands in to echo the word > 'test' into the logfile, and that word never gets put in there either. The destination file is writeable by the nagios user? > > From the end of checkcommands.cfg: > > # 'submit_check_result' command definition > define command{ > command_name submit_check_result > command_line $USER1$/eventhandlers/distributed- > monitoring/submit_check_result_via_nsca > $HOSTNAME$ '$SERVICEDESC$' $SERVICESTATE$ '$OUTPUT$' > } > > (except without the line breaks I inserted to make it behave in the > email.) > > It appears I will have to trace, from the check queue to NSCA, how this > is being executed. Can anyone tell me where in the config files the > following things could be set: > > location of a custom script, if it's not set in the lines from > checkcommands.cfg above? I'm not sure what you mean here. In nagios.cfg you should have the following -- obsess_over_services=1 ocsp_command=submit_check_result The last may be what you're asking about. For each service that you want to send a result back for (or in a shared template), you should have the following as part of the service{} definition -- obsess_over_service 1 Nagios will then execute the ocsp_command above for every service that you are obsessing over. submit_check_result_via_nsca in your case will parse the passed arguments, call send_nsca with the correct values which connects to nsca on the central host which appends the results to nagios.cmd. Enable debug for nsca if you haven't already and watch /var/log/messages to watch the last few steps of that process. > > What return codes are used for OK, Critical, Warning, etc? So far it http://nagiosplug.sourceforge.net/developer-guidelines.html#AEN75 > appears Nagios is sending a 0 for all cases. If not Nagios, whatever is > invoking NSCA is sending it, or whatever is invoking the script that > invokes NSCA is. I can't figure out what the chain of commands is here, > but I know that home base Nagios is working correctly and NSCA is > sending / receiving correctly, and remote Nagios is writing Critical in > the status logs. > > > And, by the way, am I correct in assuming people on the mailing list > prefer text-only emails? Otherwise I will send as html. Yes, absolutely. You should send only plain text e-mails to any [technical] mailing list you are on, not just this one. HTML e-mails mess up archives and won't show up in digests or munge the digests such that they are unreadable. There are other appropriateness and perception reasons that are defined by each individual that I won't get into... As always, the KISS rule applies here as well. -- Marc ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ladams at cloudmark.com Tue Aug 2 22:07:26 2005 From: ladams at cloudmark.com (Lori Adams) Date: Tue, 2 Aug 2005 13:07:26 -0700 Subject: nrpe_nt versus nsclient versus nsclient++ Message-ID: Hi folks, I'm curious about people's opinions regarding nrpe_nt, nsclient, and nsclient++. I'm interested in advantages or disadvantages of using one and not the other. I'll be using these on Windows 2000 servers. Thanks, Lori -------------- next part -------------- An HTML attachment was scrubbed... URL: From ssugar at proserveit.com Tue Aug 2 22:01:32 2005 From: ssugar at proserveit.com (Scott Sugar) Date: Tue, 2 Aug 2005 16:01:32 -0400 Subject: nrpe_nt versus nsclient versus nsclient++ Message-ID: Hi Lori, I have only used nrpe_nt as of yet, and it has worked very well for me on any windows server I have run it on. I have installed it on real old NT servers, 2K servers, and 2k3 servers (just ensure that you have the latest version of nrpe_nt as nrpe_nt will crash on 2k3 if you have an older version). It is also very handy that you do not have to restart the server to get nrpe_nt working unless you already have a previous version of nrpe_nt installed. Just setup the config file, run nrpe_nt.exe -i, go into the services and start the nagios remote plugin executor service. Unfortunately I cant really tell you about the other clients, but hopefully someone else will. Scott ________________________________ From: nagios-users-admin at lists.sourceforge.net on behalf of Lori Adams Sent: Tue 8/2/2005 4:07 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] nrpe_nt versus nsclient versus nsclient++ Hi folks, I'm curious about people's opinions regarding nrpe_nt, nsclient, and nsclient++. I'm interested in advantages or disadvantages of using one and not the other. I'll be using these on Windows 2000 servers. Thanks, Lori -------------- next part -------------- An HTML attachment was scrubbed... URL: From ssugar at proserveit.com Tue Aug 2 22:07:09 2005 From: ssugar at proserveit.com (Scott Sugar) Date: Tue, 2 Aug 2005 16:07:09 -0400 Subject: Weirdness with remote (passive) checks. Critical on remote, OK on local? Message-ID: Another way to test this is to turn off active checks on the central machine. Scott Marc said: It could be that nagios is actively checking the host/service from your central machine. Nagios.log would be a good place to look, on both machines for that matter. You'll probably want to look at your log_ lines in nagios.cfg to bump up your logging. ________________________________ From: nagios-users-admin at lists.sourceforge.net on behalf of Marc Powell Sent: Tue 8/2/2005 3:51 PM To: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Weirdness with remote (passive) checks. Critical on remote, OK on local? > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Brian Smith > Sent: Tuesday, August 02, 2005 2:30 PM > To: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Weirdness with remote (passive) checks. > Critical on remote, OK on local? > > Thanks Marc for the tips, but this has just gotten weirder - neither > submit_check_result, nor submit_check_result_via_nsca, seem to ever run. > NSCA is being invoked, I see its process pop up when checks happen. > Checks are being delivered to home base, because manual Critical states > get overridden after a few minutes. Also, I can invoke this command and > deliver a single distributed check successfully to home base: > > (folder)/submit_check_result_via_nsca remotehost 'Telnet' 2 'Because I > said so' > > That command successfully sends the service into a soft critical state > on the home server, and running it multiple times sends it to hard > critical. > > I've tacked little "debug" lines into the submit_check_result and > submit_..._via_nsca scripts to echo their commands into a log file, and > the log file never gets appended. So I put commands in to echo the word > 'test' into the logfile, and that word never gets put in there either. The destination file is writeable by the nagios user? > > From the end of checkcommands.cfg: > > # 'submit_check_result' command definition > define command{ > command_name submit_check_result > command_line $USER1$/eventhandlers/distributed- > monitoring/submit_check_result_via_nsca > $HOSTNAME$ '$SERVICEDESC$' $SERVICESTATE$ '$OUTPUT$' > } > > (except without the line breaks I inserted to make it behave in the > email.) > > It appears I will have to trace, from the check queue to NSCA, how this > is being executed. Can anyone tell me where in the config files the > following things could be set: > > location of a custom script, if it's not set in the lines from > checkcommands.cfg above? I'm not sure what you mean here. In nagios.cfg you should have the following -- obsess_over_services=1 ocsp_command=submit_check_result The last may be what you're asking about. For each service that you want to send a result back for (or in a shared template), you should have the following as part of the service{} definition -- obsess_over_service 1 Nagios will then execute the ocsp_command above for every service that you are obsessing over. submit_check_result_via_nsca in your case will parse the passed arguments, call send_nsca with the correct values which connects to nsca on the central host which appends the results to nagios.cmd. Enable debug for nsca if you haven't already and watch /var/log/messages to watch the last few steps of that process. > > What return codes are used for OK, Critical, Warning, etc? So far it http://nagiosplug.sourceforge.net/developer-guidelines.html#AEN75 > appears Nagios is sending a 0 for all cases. If not Nagios, whatever is > invoking NSCA is sending it, or whatever is invoking the script that > invokes NSCA is. I can't figure out what the chain of commands is here, > but I know that home base Nagios is working correctly and NSCA is > sending / receiving correctly, and remote Nagios is writing Critical in > the status logs. > > > And, by the way, am I correct in assuming people on the mailing list > prefer text-only emails? Otherwise I will send as html. Yes, absolutely. You should send only plain text e-mails to any [technical] mailing list you are on, not just this one. HTML e-mails mess up archives and won't show up in digests or munge the digests such that they are unreadable. There are other appropriateness and perception reasons that are defined by each individual that I won't get into... As always, the KISS rule applies here as well. -- Marc ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=ick _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- An HTML attachment was scrubbed... URL: From bsmith at fusionbroadband.com Tue Aug 2 23:26:53 2005 From: bsmith at fusionbroadband.com (Brian Smith) Date: Tue, 2 Aug 2005 16:26:53 -0500 Subject: Weirdness with remote (passive) checks. Critical on remote, OK on local? Message-ID: <76260EC12F72AF4582D3582554CBE108EA1C21@iron.fusionbb.corp> Thanks for all the help everyone, we've (finally!) resolved the issue. Here's what was going on: #1, permissions error on the file I was trying to dump to (doh!) so it looked like nothing was running. #2, submit_check_result_via_nsca was sending the following: hostname1 Telnet OK TCP OK - 0.004 second response time on port 23 hostname2 Telnet CRITICAL TCP OK - Connection refused or timed out This should have been the following: hostname1 Telnet 0 TCP OK - 0.004 second response time on port 23 hostname2 Telnet 2 TCP OK - Connection refused or timed out At home base, because they were strings not numbers, nagios was quietly interpreting the OK and the Critical both as zero. This was happening because the script submit_check_result_via_nsca was set to append the text status rather than numeric status, or maybe because a script to translate that text status was not being run. In the submit_check_result_via_nsca script: # $3 = return_code (An integer that determines the state # of the service check, 0=OK, 1=WARNING, 2=CRITICAL, # 3=UNKNOWN). [ define echocmd and other vars ] $echocmd "$1\t$2\t$3\t$4\n" | $NscaBin $NagiosHost -c $NscaCfg ... but $3 was actually the text, not the return code. Apparently you're supposed to run the script "obsessive_svc_handler" not "submit_check_result_via_nsca", because obsessive_svc_handler has the code to translate the string into a number. ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lhaig at haigmail.com Wed Aug 3 00:14:44 2005 From: lhaig at haigmail.com (Lance Haig) Date: Tue, 02 Aug 2005 23:14:44 +0100 Subject: Nagios monitoring Novell netware servers? Message-ID: <42EFF054.8070004@haigmail.com> Has anyone done this before? Some hints would be great thanks Lance ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Wed Aug 3 00:37:20 2005 From: marc at ena.com (Marc Powell) Date: Tue, 2 Aug 2005 17:37:20 -0500 Subject: Weirdness with remote (passive) checks. Critical on remote, OK on local? Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Brian Smith > Sent: Tuesday, August 02, 2005 4:27 PM > To: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Weirdness with remote (passive) checks. > Critical on remote, OK on local? > > Thanks for all the help everyone, we've (finally!) resolved the issue. > Here's what was going on: > At home base, because they were strings not numbers, nagios was quietly > interpreting the OK and the Critical both as zero. > > > This was happening because the script submit_check_result_via_nsca was > set to append the text status rather than numeric status, or maybe > because a script to translate that text status was not being run. In > the submit_check_result_via_nsca script: > > # $3 = return_code (An integer that determines the state > # of the service check, 0=OK, 1=WARNING, 2=CRITICAL, > # 3=UNKNOWN). > > [ define echocmd and other vars ] > > $echocmd "$1\t$2\t$3\t$4\n" | $NscaBin $NagiosHost -c $NscaCfg > > > ... but $3 was actually the text, not the return code. Apparently you're > supposed to run the script "obsessive_svc_handler" not > "submit_check_result_via_nsca", because obsessive_svc_handler has the > code to translate the string into a number. See the example submit_check_result from http://nagios.sourceforge.net/docs/1_0/distributed.html. I'm not sure what script 'obsessive_svc_handler' is. I haven't seen that one before. How did you install nagios? If it's a package the maintainer might like to know about that confusion. -- Marc ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Wed Aug 3 00:42:27 2005 From: marc at ena.com (Marc Powell) Date: Tue, 2 Aug 2005 17:42:27 -0500 Subject: Nagios monitoring Novell netware servers? Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Lance Haig > Sent: Tuesday, August 02, 2005 5:15 PM > To: Nagios Users list > Subject: [Nagios-users] Nagios monitoring Novell netware servers? > > Has anyone done this before? > > Some hints would be great thanks Use check_nwstat. It's one of the standard plugins. [libexec]$ ./check_nwstat --help (*slightly old version*) check_nwstat (nagios-plugins 1.3.0-alpha1) 1.1.1.1 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-2001 Ethan Galstad This plugin attempts to contact the MRTGEXT NLM running on a Novell server to gather the requested system information. Usage: check_nwstat -H host [-v variable] [-w warning] [-c critical] [-p port] [-t timeout] check_nwstat (-h | --help) for detailed help check_nwstat (-V | --version) for version information Options: -H, --hostname=HOST Name of the host to check -v, --variable=STRING Variable to check. Valid variables include: LOAD1 = 1 minute average CPU load LOAD5 = 5 minute average CPU load LOAD15 = 15 minute average CPU load CONNS = number of currently licensed connections VPF = percent free space on volume VKF = KB of free space on volume LTCH = percent long term cache hits CBUFF = current number of cache buffers CDBUFF = current number of dirty cache buffers LRUM = LRU sitting time in minutes DSDB = check to see if DS Database is open LOGINS = check to see if logins are enabled UPRB = used packet receive buffers PUPRB = percent (of max) used packet receive buffers SAPENTRIES = number of entries in the SAP table SAPENTRIES = number of entries in the SAP table for SAP type OFILES = number of open files VPP = percent purgeable space on volume VKP = KB of purgeable space on volume VPNP = percent not yet purgeable space on volume VKNP = KB of not yet purgeable space on volume ABENDS = number of abended threads (NW 5.x only) CSPROCS = number of current service processes (NW 5.x only) -w, --warning=INTEGER Threshold which will result in a warning status -c, --critical=INTEGER Threshold which will result in a critical status -p, --port=INTEGER Optional port number (default: 9999) -t, --timeout=INTEGER Seconds before connection attempt times out (default: 10) -o, --osversion Include server version string in results -h, --help Print this help screen -V, --version Print version information Notes: - This plugin requres that the MRTGEXT.NLM file from James Drews' MRTG extension for NetWare be loaded on the Novell servers you wish to check. (available from http://www.engr.wisc.edu/~drews/mrtg/) - Values for critical thresholds should be lower than warning thresholds when the following variables are checked: VPF, VKF, LTCH, CBUFF, and LRUM. 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 ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lhaig at haigmail.com Wed Aug 3 00:49:11 2005 From: lhaig at haigmail.com (Lance Haig) Date: Tue, 02 Aug 2005 23:49:11 +0100 Subject: Nagios monitoring Novell netware servers? In-Reply-To: References: Message-ID: <42EFF867.6050809@haigmail.com> Marc Thanks for the help Lance > >>-----Original Message----- >>From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- >>admin at lists.sourceforge.net] On Behalf Of Lance Haig >>Sent: Tuesday, August 02, 2005 5:15 PM >>To: Nagios Users list >>Subject: [Nagios-users] Nagios monitoring Novell netware servers? >> >>Has anyone done this before? >> >>Some hints would be great thanks >> > >Use check_nwstat. It's one of the standard plugins. > >[libexec]$ ./check_nwstat --help (*slightly old version*) >check_nwstat (nagios-plugins 1.3.0-alpha1) 1.1.1.1 >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-2001 Ethan Galstad > >This plugin attempts to contact the MRTGEXT NLM running on a Novell >server >to gather the requested system information. > >Usage: > check_nwstat -H host [-v variable] [-w warning] [-c critical] > [-p port] [-t timeout] > check_nwstat (-h | --help) for detailed help > check_nwstat (-V | --version) for version information > >Options: >-H, --hostname=HOST > Name of the host to check >-v, --variable=STRING > Variable to check. Valid variables include: > LOAD1 = 1 minute average CPU load > LOAD5 = 5 minute average CPU load > LOAD15 = 15 minute average CPU load > CONNS = number of currently licensed connections > VPF = percent free space on volume > VKF = KB of free space on volume > LTCH = percent long term cache hits > CBUFF = current number of cache buffers > CDBUFF = current number of dirty cache buffers > LRUM = LRU sitting time in minutes > DSDB = check to see if DS Database is open > LOGINS = check to see if logins are enabled > UPRB = used packet receive buffers > PUPRB = percent (of max) used packet receive buffers > SAPENTRIES = number of entries in the SAP table > SAPENTRIES = number of entries in the SAP table for SAP type > OFILES = number of open files > VPP = percent purgeable space on volume > VKP = KB of purgeable space on volume > VPNP = percent not yet purgeable space on volume > VKNP = KB of not yet purgeable space on volume > ABENDS = number of abended threads (NW 5.x only) > CSPROCS = number of current service processes (NW 5.x only) >-w, --warning=INTEGER > Threshold which will result in a warning status >-c, --critical=INTEGER > Threshold which will result in a critical status >-p, --port=INTEGER > Optional port number (default: 9999) >-t, --timeout=INTEGER > Seconds before connection attempt times out (default: 10) >-o, --osversion > Include server version string in results >-h, --help > Print this help screen >-V, --version > Print version information > >Notes: >- This plugin requres that the MRTGEXT.NLM file from James Drews' MRTG > extension for NetWare be loaded on the Novell servers you wish to >check. > (available from http://www.engr.wisc.edu/~drews/mrtg/) >- Values for critical thresholds should be lower than warning thresholds > when the following variables are checked: VPF, VKF, LTCH, CBUFF, and >LRUM. > >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 > > >------------------------------------------------------- >SF.Net email is sponsored by: Discover Easy Linux Migration Strategies >from IBM. Find simple to follow Roadmaps, straightforward articles, >informative Webcasts and more! Get everything you need to get up to >speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >::: Messages without supporting info will risk being sent to /dev/null > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From eventi at gmail.com Mon Aug 1 21:20:07 2005 From: eventi at gmail.com (Eugene Ventimiglia) Date: Mon, 1 Aug 2005 15:20:07 -0400 Subject: Problem with check_http returning 403 error In-Reply-To: References: Message-ID: <49ffc840050801122020d0ab72@mail.gmail.com> That did the trick, I actually did define command{ command_name check_url command_line /usr/lib/nagios/plugins/check_http -H $ARG1$ -u $ARG2$ } --Thanks -e On 8/1/05, Marc Powell wrote: > > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > > admin at lists.sourceforge.net] On Behalf Of Eugene Ventimiglia > > Sent: Monday, August 01, 2005 12:57 PM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Problem with check_http returning 403 error > > > > I want to check a website defined by hostname with check_http using > > the following line (domain name obscured): > > > > check_http! -H m-xube.com -u /gd/GetIvrData.aspx > > This is an odd way to pass the arguments. This is probably the source of > your issue. I'd try the following -- > > # Service definition > define service{ > use generic-service > host_name some_host > service_description HTTP > retry_check_interval 3 > contact_groups whatever > check_command > check_http!m-xube.com!"/gd/GeIvrData.aspx" > } > > define command{ > command_name check_http > command_line $USER1$/check_http -I $HOSTADDRESS$ -H $ARG1$ -u > $ARG2$ > } > > You can of course add additional arguments to check_http as you deem > necessary (like -e or -s). The quotes around the second argument may or > may not be necessary (probably not). I added them just in case. > > > > > -- > Marc > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&opclick > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- ** 411song.com ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bsmith at fusionbroadband.com Wed Aug 3 02:49:35 2005 From: bsmith at fusionbroadband.com (Brian Smith) Date: Tue, 2 Aug 2005 19:49:35 -0500 Subject: Weirdness with remote (passive) checks. Critical on remote, OK on local? Message-ID: <76260EC12F72AF4582D3582554CBE108EA1C43@iron.fusionbb.corp> > > See the example submit_check_result from > http://nagios.sourceforge.net/docs/1_0/distributed.html. I'm not sure > what script 'obsessive_svc_handler' is. I haven't seen that one before. > How did you install nagios? If it's a package the maintainer might like > to know about that confusion. It's installed on Gentoo. If I remember correctly, I think I used Portage for that one. Here's the folder it appears in: /usr/nagios/contrib/eventhandlers/distributed-monitoring both obsessive_svc_handler and submit_check_result_via_nsca are there. Here's a paste of obsessive_svc_handler. It just translates the text code and then invokes the other script: ------------------------paste------------------------ #!/bin/sh # OBSESSIVE_SVC_HANDLER # Written by Ethan Galstad (nagios at nagils.org) # Last Modified: 07-19-2001 # # This script is intended to run as the OCSP command # on a distributed monitoring server. The script calls # submit_check_result_via_nsca to send the service check # results to the central monitoring server. # # Arguments: # $1 = host_name (Short name of host that the service is # associated with) # $2 = svc_description (Description of the service) # $3 = state_string (A string representing the status of # the given service - "OK", "WARNING", "CRITICAL" # or "UNKNOWN") # $4 = plugin_output (A text string that should be used # as the plugin output for the service checks) # # Location of the submit_check_result_via_nsca script SubmitCmd="/usr/nagios/libexec/eventhandlers/submit_check_result_via_nsc a" # Convert the state string to the corresponding return code return_code=-1 case "$3" in OK) return_code=0 ;; WARNING) return_code=1 ;; CRITICAL) return_code=2 ;; UNKNOWN) return_code=3 ;; esac # Send the service check results to the central monitoring server $SubmitCmd "$1" "$2" $return_code "$4" ------------------------end paste------------------------ -- Brian ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ralph.Grothe at itdz-berlin.de Wed Aug 3 09:53:31 2005 From: Ralph.Grothe at itdz-berlin.de (Ralph.Grothe at itdz-berlin.de) Date: Wed, 3 Aug 2005 09:53:31 +0200 Subject: How must I define this in checkcommands.cfg and services.cfg? Message-ID: <6B893C5F2902D311A23F0090272854FB0575B7AC@litex001.lit.verwalt-berlin.de> Hi, as long as I cannot find a way how to see what the nagios scheduler is actually substituting and executing as a check_nrpe command, I am stuck, and I have to treat Nagios as a black box. I find this very unsatisfactory. I tried all to me conceivable command and service definition variants but all don't work, and all I get is CRC32 errors that result in UNKNOWN states. I want exactly a check_nrpe command line like the one below (issued manually from the Nagios server daisy against the remote host nemesis) to be run by the nagios daemon. [nagios at daisy:~/etc] $ /opt/sw/nagios/libexec/check_nrpe -H nemesis -c check_vcs_sg\!evo1\!nemesis OK: hagrp evo1 is ONLINE How should a command and service object definition look like for it to work? Regards -- Ralph Grothe ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bohara-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org Wed Aug 3 10:05:06 2005 From: bohara-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org (Ben O'Hara) Date: Wed, 3 Aug 2005 09:05:06 +0100 Subject: How must I define this in checkcommands.cfg and services.cfg? In-Reply-To: <6B893C5F2902D311A23F0090272854FB0575B7AC-SOfvMOfJz/6FzsVCTuPIzRRxwEygFqSQHocxwX9ka5w@public.gmane.org> References: <6B893C5F2902D311A23F0090272854FB0575B7AC@litex001.lit.verwalt-berlin.de> Message-ID: <2b36e66050803010557f9abab@mail.gmail.com> On 8/3/05, Ralph.Grothe-YpEHkxAi6oMehzHBf2RrnA at public.gmane.org wrote: > Hi, > > as long as I cannot find a way how to see what the nagios > scheduler is actually substituting and executing as a check_nrpe > command, I am stuck, and I have to treat Nagios as a black box. > I find this very unsatisfactory. > > I tried all to me conceivable command and service definition > variants but all don't work, > and all I get is CRC32 errors that result in UNKNOWN states. > > > I want exactly a check_nrpe command line like the one below > (issued manually from the Nagios server daisy against the remote > host nemesis) to be run by the nagios daemon. > > > [nagios at daisy:~/etc] > $ /opt/sw/nagios/libexec/check_nrpe -H nemesis -c > check_vcs_sg\!evo1\!nemesis > > OK: hagrp evo1 is ONLINE > > > > > How should a command and service object definition look like for > it to work? > First off, define "nemesis" in etc/hosts.cfg as follows define host{ use generic-host host_name nemeis alias Nemesis address 1.2.3.4 max_check_attempts 10 notification_interval 120 notification_period 24x7 notification_options d,u,r } Also add it to a hostgroup in etc/hostgroups.cfg define hostgroup{ hostgroup_name nemesisgroup alias ServerGroup contact_groups admins members nemesis } Add a check_nrpe command into etc/checkcommands.cfg define command{ command_name check_nrpe command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ } and then add the service into etc/services.cfg define service{ use generic-service host_name nemesis service_description EVO is_volatile 0 check_period 24x7 max_check_attempts 5 normal_check_interval 3 retry_check_interval 1 contact_groups admins notification_interval 120 notification_period 24x7 notification_options w,u,c,r check_command check_nrpe!check_vcs_sg\!evo1\!nemesis } Looksl ike NRPE is already configured correctly with the check command setup in nrpe.cfg so this should be all thats required. Regards Ben ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagiosplug-help mailing list Nagiosplug-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f at public.gmane.org https://lists.sourceforge.net/lists/listinfo/nagiosplug-help ::: Please include plugins version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bohara-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org Wed Aug 3 10:10:07 2005 From: bohara-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org (Ben O'Hara) Date: Wed, 3 Aug 2005 09:10:07 +0100 Subject: How must I define this in checkcommands.cfg and services.cfg? In-Reply-To: <2b36e66050803010557f9abab-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> References: <6B893C5F2902D311A23F0090272854FB0575B7AC@litex001.lit.verwalt-berlin.de> <2b36e66050803010557f9abab@mail.gmail.com> Message-ID: <2b36e6605080301105e7f5364@mail.gmail.com> On 8/3/05, Ben O'Hara wrote: > > and then add the service into etc/services.cfg > > define service{ > use generic-service > host_name nemesis > service_description EVO > is_volatile 0 > check_period 24x7 > max_check_attempts 5 > normal_check_interval 3 > retry_check_interval 1 > contact_groups admins > notification_interval 120 > notification_period 24x7 > notification_options w,u,c,r > check_command check_nrpe!check_vcs_sg\!evo1\!nemesis > } > Infact, the check_command is probably wrong, $ARG1$ is currently being set up "check_vcs_sg" Id suggest ading multiple checks to nrpe.cfg if you want to check evo1, evo2 etc? (Im not sure what your checking!) You can then just use check_command check_nrpe!check_vcs_sg_evo1 check_command check_nrpe!check_vcs_sg_evo2 as your check_commands in services.cfg Hope that makes sense! Ben ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagiosplug-help mailing list Nagiosplug-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f at public.gmane.org https://lists.sourceforge.net/lists/listinfo/nagiosplug-help ::: Please include plugins version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From moshesharon at gmail.com Wed Aug 3 10:17:43 2005 From: moshesharon at gmail.com (Moshe Sharon) Date: Wed, 3 Aug 2005 08:17:43 +0000 (UTC) Subject: How must I define this in checkcommands.cfg and services.cfg? References: <6B893C5F2902D311A23F0090272854FB0575B7AC@litex001.lit.verwalt-berlin.de> Message-ID: hello try this command arguments instead of the original one check_nrpe -H nemesis -c "check_vcs_sg%21evo1%21nemesis" also just a reminder illegal chars for nrpe are: "|`&><'\"\\[]{}" Moshe Sharon ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ralph.Grothe at itdz-berlin.de Wed Aug 3 10:39:23 2005 From: Ralph.Grothe at itdz-berlin.de (Ralph.Grothe at itdz-berlin.de) Date: Wed, 3 Aug 2005 10:39:23 +0200 Subject: How must I define this in checkcommands.cf g and services.cfg? Message-ID: <6B893C5F2902D311A23F0090272854FB0575B7AD@litex001.lit.verwalt-berlin.de> Hello Moshe, are you suggesting I should sort of URI escape the bang? [nagios at daisy:~] $ perl -MURI::Escape -le 'print uri_unescape("%21")' ! > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Moshe > Sharon > Sent: Wednesday, August 03, 2005 10:18 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Re: How must I define this in > checkcommands.cfg > and services.cfg? > > > hello > > try this command arguments instead of the original one > > check_nrpe -H nemesis -c "check_vcs_sg%21evo1%21nemesis" > > > also just a reminder illegal chars for nrpe are: "|`&><'\"\\[]{}" > > Moshe Sharon > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ralph.Grothe-YpEHkxAi6oMehzHBf2RrnA at public.gmane.org Wed Aug 3 11:34:49 2005 From: Ralph.Grothe-YpEHkxAi6oMehzHBf2RrnA at public.gmane.org (Ralph.Grothe-YpEHkxAi6oMehzHBf2RrnA at public.gmane.org) Date: Wed, 3 Aug 2005 11:34:49 +0200 Subject: How must I define this in checkcommands.cfg and services.cfg? Message-ID: <6B893C5F2902D311A23F0090272854FB0575B7AE@litex001.lit.verwalt-berlin.de> Hello Ben, first many thanks for your quick help! Maybe things are a bit convoluted? I wish to set up a kind of generic service for all Service Groups (SG) of a Veritas Cluster Servers (VCS). One such cluster alone has over 20 SGs! I simply wanted to save me repetitive copying and pasting of definition blocks that only distinguish from one another by their SG name. Every SG also has its own IP Addr. First I thought I could manage them by putting them under the hood of a servicegroup definition. But then I found no way to draw the link between SG name and IP. Thus I ended up defining each SG as a host definition in its own right and clamping them together as hostgroups which are VCS node affiliated, containing those hosts (i.e. SGs) that are during normal cluster operations (i.e. no fail or switch over happened) running on the respective node. This concept at least works so far for the lower level check_icmp of each SG's IP which of course is a prerequisite for the whole SG to be ONLINE (I think later also ought to define service dependencies). Because every later addition of a new SG already requires a new host definition I at least wanted to avoid also having to define a new check command for it as well (The VCS and VxVM maintenance alone is already involved enough). I hope you got the idea behind my contrived setup. Here are (I hope all affected) parts of my current definitions. >From hostgroups.cfg the definition of HG for node nemesis containing SGs # template for EVO SGs # define hostgroup { hostgroup_name nemesis_vcs_sgs alias nemesis members evo1,evo2,evo3,evo10,evo11,evo13,evo15,evo17,evo19,evo812 } >From hosts.cfg one such member (n.b. IPs bogus here for daft paranoia reasons) define host { use generic-host host_name evo1 alias EVO VCS SG EVO1 address 10.22.120.13 hostgroups evo_cluster,non_fwalled_hosts,nemesis_vcs_sgs contact_groups evoadmin } >From the same cfg file the host definition of cluster node nemesis define host { use generic-host host_name nemesis alias EVO VCS Node NEMESIS address 10.22.120.11 hostgroups evo_cluster,non_fwalled_hosts,nemesis_vcs_sgs contact_groups evoadmin } >From checkcommands.cfg my check-nrpe definition (n.b. it already works for other NRPE checks on other hosts, e.g. Weblogic servers) define command { command_name check-nrpe command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ } Here the critical command definition from the same file that doesn't work define command { command_name check-evo-sg-online command_line check-nrpe!check_vcs_sg\!$HOSTNAME$\!$HOSTGROUPALIAS$ } As you can see I'm relying on the correct substitutions for $HOSTNAME$ and $HOSTGROUPALIAS$ Also according to a suggestion from Sharon (see my other response) I URI escaped the bang as he mentioned that it also was part of the illegal meta charset (caveat shell expansion?) But this brought no change. Finally from my services.cfg here's the critical "generic" service definition # EVO Services define service { use generic-service service_description nemesis-sg-online hostgroup_name nemesis_vcs_sgs check_command check-evo-sg-online contact_groups evoadmin } Ah, not to forget the generic-service template which only contains default settings to be inheritted unoverridden by most services define service { name generic-service service_description Service_Class_Definition is_volatile 0 max_check_attempts 5 normal_check_interval 5 retry_check_interval 3 check_period 24x7 active_checks_enabled 1 passive_checks_enabled 0 parallelize_check 1 obsess_over_service 0 check_freshness 0 event_handler notify-by-email flap_detection_enabled 0 process_perf_data 0 retain_status_information 1 retain_nonstatus_information 1 notification_interval 60 notification_period 24x7 notification_options w,u,c,r notifications_enabled 1 contact_groups unixadmin register 0 } When I run nagios with those settings I now get this kind of errors [nagios at daisy:~/etc] $ tail -1 /var/opt/nagios/log/nagios.log [1123061435] Warning: Return code of 127 for check of service 'nemesis-sg-online' on host 'evo3' was out of bounds. Make sure the plugin you're trying to run actually exists. I hope not to have bothered you too much with my configuration settings. Many thanks for your patience! Ralph > -----Original Message----- > From: Ben O'Hara [mailto:bohara-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org] > Sent: Wednesday, August 03, 2005 10:10 AM > To: Ralph.Grothe-YpEHkxAi6oMehzHBf2RrnA at public.gmane.org > Cc: nagiosplug-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f at public.gmane.org; > nagios-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f at public.gmane.org > Subject: Re: [Nagiosplug-help] How must I define this in > checkcommands.cfg and services.cfg? > > > On 8/3/05, Ben O'Hara wrote: > > > > and then add the service into etc/services.cfg > > > > define service{ > > use generic-service > > host_name nemesis > > service_description EVO > > is_volatile 0 > > check_period 24x7 > > max_check_attempts 5 > > normal_check_interval 3 > > retry_check_interval 1 > > contact_groups admins > > notification_interval 120 > > notification_period 24x7 > > notification_options w,u,c,r > > check_command > check_nrpe!check_vcs_sg\!evo1\!nemesis > > } > > > > Infact, the check_command is probably wrong, $ARG1$ is currently being > set up "check_vcs_sg" > > Id suggest ading multiple checks to nrpe.cfg if you want to check > evo1, evo2 etc? (Im not sure what your checking!) > > You can then just use > > check_command check_nrpe!check_vcs_sg_evo1 > check_command check_nrpe!check_vcs_sg_evo2 > > as your check_commands in services.cfg > > Hope that makes sense! > > Ben > ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagiosplug-help mailing list Nagiosplug-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f at public.gmane.org https://lists.sourceforge.net/lists/listinfo/nagiosplug-help ::: Please include plugins version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jotando at free.fr Wed Aug 3 11:43:15 2005 From: jotando at free.fr (jotando at free.fr) Date: Wed, 03 Aug 2005 11:43:15 +0200 Subject: How to check traffic through WMI In-Reply-To: <20050731031400.4C8A212A2C@sc8-sf-spam2.sourceforge.net> References: <20050731031400.4C8A212A2C@sc8-sf-spam2.sourceforge.net> Message-ID: <1123062195.42f091b34d6fd@imp5-q.free.fr> Hi everyone and thank's TOny for last help. I finaly used nrpe_nt client and manage my windows server 2003 by checking plugins(some .exe but most .vbs). I never heart about WMI before and I am thunderstrunck about what it's provide use to do. But I need to check traffic because of many saturation and don't find any plugin made. If you have a link to find plugins which resolve my problem or a course of any language(like VB) knowing use WMI, please tell me. Thank's in advance. Johann Quoting nagios-users-request at lists.sourceforge.net: > Send Nagios-users mailing list submissions to > nagios-users at lists.sourceforge.net > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/nagios-users > or, via email, send a message with subject or body 'help' to > nagios-users-request at lists.sourceforge.net > > You can reach the person managing the list at > nagios-users-admin at lists.sourceforge.net > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Nagios-users digest..." > > > Today's Topics: > > 1. Re: NSClient : which version run in windows server 2003 (Anthony > Montibello) > 2. RE: Is there a testing or debugging mode for nagio > s? (Ralph.Grothe at itdz-berlin.de) > 3. RE: Use of check_by_ssh (Ralph.Grothe at itdz-berlin.de) > > --__--__-- > > Message: 1 > Date: Sat, 30 Jul 2005 07:11:02 -0400 > From: Anthony Montibello > Reply-To: Anthony Montibello > To: Nagios Users List > Subject: Re: [Nagios-users] NSClient : which version run in windows server > 2003 > > HI Johann, > > There are many choices for monitoring Windows servers,=20 > If you can find a way to search this list you sill find several > conversations on this within the past few months. > > There are advantages and disadvantages to each of the Windows Clients > each can be downloaded from nagiosexchange : > http://www.nagiosexchange.org/Windows.49.0.html > > but to summarize the options: > 1) NSClinet is one of the older Stable clients (but it is no longer > being maintained) > 2) NRPE - (I never used but many people seem to use this) > 3)NC_Net (I wrote this as a drop in replacement and enhancement to NSClient= > ) > 4) NSClient++ (this was also released this past year) > 5) Setting up SNMP =20 > 6) setting up check_by SSH?? > > Good Luck > Tony > > On 7/29/05, jotando at free.fr wrote: > > Hi everyone. > >=20 > > I'm started to use nagios for a month and have to supervise a windows ser= > ver > > 2003. > > I want to use NSClient agent but I don't know which version it's preferab= > le to > > use. > >=20 > > In the same order, do someone know how to configure the SNMP agent and th= > is > > server to check traffic informations. > >=20 > > thank's in advance. > >=20 > > Johann Otando > > > --__--__-- > > Message: 2 > From: Ralph.Grothe at itdz-berlin.de > To: ladams at cloudmark.com, sloane at ku.edu > Cc: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Is there a testing or debugging mode for nagio > s? > Date: Sat, 30 Jul 2005 16:18:03 +0200 > > Hi Lori, > > thanks for reminding me. > > That was really naive of me to think that check_period could be > the name of a plug-in. > > Of course now I remember that I defined a couple of time periods > to be assigned as possible values for the check_period attribute > in a service definition context. > I think I only forgot about it because I (now for my initial > testing) I just once defined a service template where a > check_period for my usual working hours was set. > And for all later added service definitions I haven't overriden > this setting yet (of course in the end it will have to be 24x7) > > So thanks for reminding me, and forgive my stupidity. > > Btw, would you mind sharing your Perl script? > I'm also into Perl and am curious about others' solutions. > > Rgds. > Ralph > > > -----Original Message----- > From: Lori Adams [mailto:ladams at cloudmark.com] > Sent: Friday, July 29, 2005 6:42 PM > To: Ralph.Grothe at itdz-berlin.de; sloane at ku.edu > Cc: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Is there a testing or debugging mode > for nagios? > > > check_period is not a plugin. Check_period is one of the options > for service.cfg configurations. > http://nagios.sourceforge.net/docs/1_0/xodtemplate.html#service > check_period means that a service check will only be executed > during the given timeframe. > > Values for check_period are (usually) stored in timeperiods.cfg. > Example: > define service { > host_name foo > service_description bar > check_period 24x7 > . > . > . > } > > > To reschedule from command line, you will have to submit an > "external command" with various values to your nagios.cmd (set in > nagios.cfg) file. > > (see docs: > http://nagios.sourceforge.net/docs/1_0/extcommands.html > or > http://www.nagios.org/developerinfo/externalcommands/commandinfo. > php?command_id=127) > > I have a perl script where I pass the server name and service > name and it will reschedule the check for 3 seconds later. > "external commands" are your friend. You can end up scripting > all of the commands. > > good luck. > > -Lori > > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of > Ralph.Grothe at itdz-berlin.de > Sent: Thursday, July 28, 2005 9:59 PM > To: sloane at ku.edu > Cc: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Is there a testing or debugging mode > for nagios? > > Hi Bob, > > what kind of plug-in is check_period? > > I cannot find it in my Nagios installation. > nor in the tarballs of either Nagios or Nagios-plugins. > > Is it a kind of NoOp plug-in stub I would have to write? > > How can I re-schedule from the command line. > > My Nagios web interface (i.e. the CGIs) are still a bit broken > (I could easily fix if I had root privileges on the webserver to > edit httpd.conf) > Anyway, I'm a bit shell-fixed and avoid GUIs whenever possible. > I know with Nagios I probably would miss half the fun, > but this seems cosmetic to me, and can be addressed later when > the base system is at least working satisfactorily. > > > > -----Original Message----- > > From: Sloane, Robert Raymond [mailto:sloane at ku.edu] > > Sent: Thursday, July 28, 2005 4:03 PM > > To: Ralph.Grothe at itdz-berlin.de > > Subject: RE: [Nagios-users] Is there a testing or debugging > mode for > > nagios? > > > > > > Why not put a "check_period none" in the template, so that the > checks > > won't normally be scheduled, and then use the "Re-schedule the > next > > check of this service" link to schedule the check when you want > it to > > happen? Once things are debugged, you can set the check_period > in the > > actual entry to whatever is appropriate. > > -- > > Bob Sloane, University of Kansas Computer Center, Lawrence, KS, > 66045 > > Email:sloane at ku.edu http://www.ku.edu/home/sloane > Phone:(785)864-0444 > > > > > > > -----Original Message----- > > > From: nagios-users-admin at lists.sourceforge.net > > > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf > > > Of Ralph.Grothe at itdz-berlin.de > > > Sent: Thursday, July 28, 2005 7:55 AM > > > To: nagios-users at lists.sourceforge.net > > > Subject: [Nagios-users] Is there a testing or debugging mode > > > for nagios? > > > > > > > > > Hello, > > > > > > this morning I received the contempt of my fellow admins > > > because nagios swamped their mailboxes over night. Well, it > > > wasn't of course nagios' fault but mine because I defined a > > > template service wherein I referenced a conact_groups that > > > comprised all of us. When later adding new services I simply > > > forgot to override this attribute with a contact group that > > > contained only my mail account (until I've come to terms with > > > > configuring). > > > > > > That's why I desperately miss a means to run a nagios daemon > > > that isn't scheduling the checks by itself but rather by > > > manual invocation. I'd also wish to test out alerting and > > > event handling myself by raising events (e.g. to see where in > > > > the end the notification is delivered to). > > > > > > Does nagios provide special utilities, or switches to support > > > > (high level) debugging that way? > > > > > > Regards > > > > > > > > > ------------------------------------------------------- > > > SF.Net email is Sponsored by the Better Software Conference & > > > > EXPO September 19-22, 2005 * San Francisco, CA * Development > > > Lifecycle Practices Agile & Plan-Driven Development * > > > Managing Projects & Teams * Testing & QA Security * Process > > > Improvement & Measurement * http://www.sqe.com/bsce5sf > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > ::: Please include Nagios version, plugin version (-v) and OS > > > > when reporting any issue. > > > ::: Messages without supporting info will risk being sent > > to /dev/null > > > > > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & > EXPO September > 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * > Testing & QA > Security * Process Improvement & Measurement * > http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to > /dev/null > > > --__--__-- > > Message: 3 > From: Ralph.Grothe at itdz-berlin.de > To: marc at ena.com, nagiosplug-help at lists.sourceforge.net, > nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Use of check_by_ssh > Date: Sat, 30 Jul 2005 16:49:40 +0200 > > Hi Marc, > > thanks for clarifying the meaning of check_by_ssh. > > Since I haven't installed any Nagios stuff (incl. Plugins) on the > DMZ host yet I actually haven't thought of my little script as a > Nagios plugin. > Thus I didn't cling to plugin developer's guidelines. > But you are right. > I should rather use existing Nagios plugins for checking common > services (like check_http) than trying to reinvent something that > already stood proof of time. > The only problem is, as the target box is a DMZ host, there are > no development tools installed on (even no Perl, the CGIs are > closed source binaries coming from third party company who > developped the whole application. > To add to the odds, this is the only HP-UX 10.20 box (still > 32bit!) we host. > Even if I found a compiler (e.g. gcc for this platform) I > wouldn't be allowed to install it there for my build. > On the other hand we have many 11.00 and 11i servers, and on some > of them even C compilers. > I'm not sure if I can build 10.20 32bit binaries of > Nagios-plugins on one of them. > Maybe if use the propper compiler flags. > I will see first if my build of check_http for 11.00 will be > executable on the 10.20 host (probably not, as you mentioned > differing libs etc.). > If that doesn't work I will see if I can build for a different > target > (sort of x-compile). > If it all doesn't work I will simply extend my little shell > script to conform to the developer's guidelines (viz. return > codes, messages), > and do my own parsing. > Btw, I saw there is a utils.pm, that I "use"-d in my own Perl > plugins, though it offers very little functionality. > Is there something similar for Bourne shell compatible plugins, > e.g. something you would source like ". $libexec_dir/utils.sh"? > > You see, because an SSH installation on every of our hosts was so > obvious and natural to me, I totally missed the idea that > check_by_ssh could just be an offering to those whose Nagios > server lacks such. > > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net > > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf > > Of Marc Powell > > Sent: Friday, July 29, 2005 6:05 PM > > To: nagiosplug-help at lists.sourceforge.net; > > nagios-users at lists.sourceforge.net > > Subject: RE: [Nagios-users] Use of check_by_ssh > > > > > > > > > > > -----Original Message----- > > > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users- > > > admin at lists.sourceforge.net] On Behalf Of > > Ralph.Grothe at itdz-berlin.de > > > Sent: Friday, July 29, 2005 7:14 AM > > > To: nagiosplug-help at lists.sourceforge.net; nagios- > > > users at lists.sourceforge.net > > > Subject: [Nagios-users] Use of check_by_ssh > > > > > > Hi, > > > > > > I have a bastion host in a dmz that serves HTTP(S) to the > > > internet. > > > > > > I must monitor the webserver by pulling a certain CGI URI and > see > > > if the Webserver returns a 200. > > > > > > Unfortunately I don't get another port (e.g. 5666/tcp for > NRPE) > > > opened by the firewall gang. > > > > > > I only have access from our LAN to the bastion host via SSH. > > > > > > Thus I wrote a short shell script that resides on the > webserver > > > and GETs the HEAD of this URI > > > through wget (with -S, -C off, --spider). > > > It's called check_dmz_www.sh > > > > > > So far this script isn't doing any parsing of the output from > the > > > GET. > > > I thought to leave this part to a Nagios check_* plug-in. > > > > Your script would work and if you pursued that path I would > > need to put > > in the checking logic and *exit properly* as defined in the > Developer > > Guidelines at http://nagiosplug.sf.net. That being said, you're > just > > duplicating the functionality of the check_http plugin. Why > don't you > > just copy/compile that plugin on the DMZ host and use it to > check your > > web server using check_by_ssh (see below). > > > > > > > > In the libexec dir I discovered check_by_ssh. > > > Unfortunately, as most distributed plug-ins, the > documentation is > > > a bit too terse. > > > > > > From the --help screen I can't see the use of this plug-in, > > > as it doesn't do anything more (i.e. return code parsing > logic > > > etc.) than vanilla ssh client does. > > > > > > E.g. I would call check_by_ssh from the Nagios server like > this > > > > > > > > > $ /opt/sw/nagios/libexec/check_by_ssh -1 -H $hostaddress -l > www > > > -i ~nagios/.ssh/id_rsa1_dmz_www -C > > > /usr/local/sbin/check_dmz_www.sh > > > Connecting to 127.0.0.1:80... connected. > > > HTTP request sent, awaiting response... > > > 1 HTTP/1.1 200 OK > > > 2 Date: Fri, 29 Jul 2005 11:58:47 GMT > > > 3 Server: Apache/1.3.22 (Unix) mod_ssl/2.8.5 OpenSSL/0.9.6b > > > 4 Keep-Alive: timeout=25, max=100 > > > 5 Connection: Keep-Alive > > > 6 Content-Type: text/html > > > 200 OK > > > > > > > > > > > > But where's the point in using this plug-in? > > > For that I could as well just call the ssh client. > > > > It's just a wrapper/proxy. The plugin will ssh to the specified > host, > > run the specified command and return it's output _and_ exit > code to > > nagios, just as if nagios had run the plugin on the remote host > > directly. If you have the check_http plugin in /usr/local/sbin > on the > > remote host you could do something like the following -- > > > > /opt/sw/nagios/libexec/check_by_ssh -1 -H $hostaddress -l www > -i > > ~nagios/.ssh/id_rsa1_dmz_www -C /usr/local/sbin/check_http -S > -I > > 127.0.0.1 -u http://your.host.com/health.cgi -e 200 > > > > *NOTE* you can only _copy_ the plugin to the remote host IFF > it's the > > same arch/os/version and has all the required libraries (ldd > > check_http). > > > > > > -- > > Marc > > > > > > > > ------------------------------------------------------- > > SF.Net email is Sponsored by the Better Software Conference & > > EXPO September > > 19-22, 2005 * San Francisco, CA * Development Lifecycle > Practices > > Agile & Plan-Driven Development * Managing Projects & Teams * > > Testing & QA > > Security * Process Improvement & Measurement * > > http://www.sqe.com/bsce5sf > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS > > when reporting any issue. > > ::: Messages without supporting info will risk being sent to > /dev/null > > > > > > --__--__-- > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > End of Nagios-users Digest > ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bombadur at email.it Wed Aug 3 11:59:48 2005 From: bombadur at email.it (bombadur) Date: Wed, 3 Aug 2005 11:59:48 +0200 Subject: Problem on check_ping In-Reply-To: <1122903113.30910.5.camel@localhost> References: <200508011236.43111.bombadur@email.it> <1122903113.30910.5.camel@localhost> Message-ID: <200508031159.53686.bombadur@email.it> Alle 15:31, luned? 1 agosto 2005, Chris Wilson ha scritto: > > Current Status: WARNING > > Status Information: WARNING - 192.168.1.25: rta 0.025ms, lost 0% > > Please could you tell us what your check_command and command > definition look like in your nagios config? It sounds like they are > wrong. Thank you again, Chris; it was a too much small (for this LAN) warning-critical "window" in the command definition. I streched it a bit, and now all is working good; my final task is sending Nagios sms alert, but now I know the try-and-error way ;-PP -- saluti, bombadur MajaGLUG, il LUG piu` grande d'Italia http://www.majaglug.net ,,_ -*> Snort! <*- o" )~ experienced '''' -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From m.borsani at it.net Wed Aug 3 12:08:33 2005 From: m.borsani at it.net (Marco Borsani) Date: Wed, 3 Aug 2005 12:08:33 +0200 Subject: Which MIBs for check_snmp ? Message-ID: Hi all ! I have a "little" problem. I'd like to use check_snmp to poll some Cisco Routers to get following informations: - CPU Utilization - Memory Utilization(free, used) - Traffic Utilization - Connection Utilization - Xlate Utilization But, on my HP-UX 11.00 server I have not snmp installed and I don't know how to do/install. Moreover, I don't find correct MIBs to pass to check_snmp. Any idea? Thanks a lot M.Borsani ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ralph.Grothe-YpEHkxAi6oMehzHBf2RrnA at public.gmane.org Tue Aug 2 10:01:06 2005 From: Ralph.Grothe-YpEHkxAi6oMehzHBf2RrnA at public.gmane.org (Ralph.Grothe-YpEHkxAi6oMehzHBf2RrnA at public.gmane.org) Date: Tue, 2 Aug 2005 10:01:06 +0200 Subject: [Nagios-users] Use of check_by_ssh Message-ID: <6B893C5F2902D311A23F0090272854FB0575B7A3@litex001.lit.verwalt-berlin.de> Hi Frederik, thank you for pointing me to a download site where to get Nagios Plug-ins builds for HP-UX 10.20. Luckily I don't need it any more as I managed to get the tarball compiled after I had downloaded a gcc build (including binutils) for 10.20 from here http://www.cmve.net/~merijn/downloads.html Unexpectetdly it compiled absolutely smoothly. # uname -srv HP-UX B.10.20 A # file /usr/local/nagios/libexec/check_http /usr/local/nagios/libexec/check_http: PA-RISC1.1 shared executable dynamically linked -not stripped # chatr /usr/local/nagios/libexec/check_http /usr/local/nagios/libexec/check_http: shared executable shared library dynamic path search: SHLIB_PATH disabled second embedded path disabled first Not Defined internal name: check_http shared library list: dynamic /usr/lib/libdce.1 dynamic /usr/lib/libc.1 shared library binding: deferred static branch prediction disabled kernel assisted branch predictionenabled lazy swap allocationdisabled text segment lockingdisabled data segment lockingdisabled data page size: 4K instruction page size: 4K # /usr/local/nagios/libexec/check_http --version check_http (nagios-plugins 1.4) 1.81 But in the end I didn't even need check_http because I got my check_by_ssh call working, and correctly invoking my wget wrapper script on the DMZ webserver. This command definition worked for me: define command { command_name check-http-cgi command_line $USER1$/check_by_ssh -1 -S 2 -l www -i $USER10$ -H $HOSTADDRESS$ -C $USER11$ } Thanks all for your help with check_by_ssh Ralph > -----Original Message----- > From: Frederik Vanhee [mailto:frederik.vanhee-2OzQDoPhWhM at public.gmane.org] > Sent: Monday, August 01, 2005 3:43 PM > To: Ralph.Grothe-YpEHkxAi6oMehzHBf2RrnA at public.gmane.org > Cc: marc-ZrVyBq3Rfso at public.gmane.org; nagiosplug-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f at public.gmane.org; > nagios-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f at public.gmane.org > Subject: Re: [Nagiosplug-help] RE: [Nagios-users] Use of check_by_ssh > > > Hello Ralph and others > > you can download pre-compiled hpux 10.20 plugins from > www.bennyvision.com > Maybe that can help you ? > > Frederik > > > Ralph.Grothe-YpEHkxAi6oMehzHBf2RrnA at public.gmane.org wrote: > > >Hi Marc, > > > >thanks for clarifying the meaning of check_by_ssh. > > > >Since I haven't installed any Nagios stuff (incl. Plugins) on the > >DMZ host yet I actually haven't thought of my little script as a > >Nagios plugin. > >Thus I didn't cling to plugin developer's guidelines. > >But you are right. > >I should rather use existing Nagios plugins for checking common > >services (like check_http) than trying to reinvent something that > >already stood proof of time. > >The only problem is, as the target box is a DMZ host, there are > >no development tools installed on (even no Perl, the CGIs are > >closed source binaries coming from third party company who > >developped the whole application. > >To add to the odds, this is the only HP-UX 10.20 box (still > >32bit!) we host. > >Even if I found a compiler (e.g. gcc for this platform) I > >wouldn't be allowed to install it there for my build. > >On the other hand we have many 11.00 and 11i servers, and on some > >of them even C compilers. > >I'm not sure if I can build 10.20 32bit binaries of > >Nagios-plugins on one of them. > >Maybe if use the propper compiler flags. > >I will see first if my build of check_http for 11.00 will be > >executable on the 10.20 host (probably not, as you mentioned > >differing libs etc.). > >If that doesn't work I will see if I can build for a different > >target > >(sort of x-compile). > >If it all doesn't work I will simply extend my little shell > >script to conform to the developer's guidelines (viz. return > >codes, messages), > >and do my own parsing. > >Btw, I saw there is a utils.pm, that I "use"-d in my own Perl > >plugins, though it offers very little functionality. > >Is there something similar for Bourne shell compatible plugins, > >e.g. something you would source like ". $libexec_dir/utils.sh"? > > > >You see, because an SSH installation on every of our hosts was so > >obvious and natural to me, I totally missed the idea that > >check_by_ssh could just be an offering to those whose Nagios > >server lacks such. > > > > > > > > > >>-----Original Message----- > >>From: nagios-users-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f at public.gmane.org > >>[mailto:nagios-users-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f at public.gmane.org] On Behalf > >>Of Marc Powell > >>Sent: Friday, July 29, 2005 6:05 PM > >>To: nagiosplug-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f at public.gmane.org; > >>nagios-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f at public.gmane.org > >>Subject: RE: [Nagios-users] Use of check_by_ssh > >> > >> > >> > >> > >> > >> > >>>-----Original Message----- > >>>From: nagios-users-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f at public.gmane.org > >>> > >>> > >[mailto:nagios-users- > > > > > >>>admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f at public.gmane.org] On Behalf Of > >>> > >>> > >>Ralph.Grothe-YpEHkxAi6oMehzHBf2RrnA at public.gmane.org > >> > >> > >>>Sent: Friday, July 29, 2005 7:14 AM > >>>To: nagiosplug-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f at public.gmane.org; nagios- > >>>users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f at public.gmane.org > >>>Subject: [Nagios-users] Use of check_by_ssh > >>> > >>>Hi, > >>> > >>>I have a bastion host in a dmz that serves HTTP(S) to the > >>>internet. > >>> > >>>I must monitor the webserver by pulling a certain CGI URI and > >>> > >>> > >see > > > > > >>>if the Webserver returns a 200. > >>> > >>>Unfortunately I don't get another port (e.g. 5666/tcp for > >>> > >>> > >NRPE) > > > > > >>>opened by the firewall gang. > >>> > >>>I only have access from our LAN to the bastion host via SSH. > >>> > >>>Thus I wrote a short shell script that resides on the > >>> > >>> > >webserver > > > > > >>>and GETs the HEAD of this URI > >>>through wget (with -S, -C off, --spider). > >>>It's called check_dmz_www.sh > >>> > >>>So far this script isn't doing any parsing of the output from > >>> > >>> > >the > > > > > >>>GET. > >>>I thought to leave this part to a Nagios check_* plug-in. > >>> > >>> > >>Your script would work and if you pursued that path I would > >>need to put > >>in the checking logic and *exit properly* as defined in the > >> > >> > >Developer > > > > > >>Guidelines at http://nagiosplug.sf.net. That being said, you're > >> > >> > >just > > > > > >>duplicating the functionality of the check_http plugin. Why > >> > >> > >don't you > > > > > >>just copy/compile that plugin on the DMZ host and use it to > >> > >> > >check your > > > > > >>web server using check_by_ssh (see below). > >> > >> > >> > >>>In the libexec dir I discovered check_by_ssh. > >>>Unfortunately, as most distributed plug-ins, the > >>> > >>> > >documentation is > > > > > >>>a bit too terse. > >>> > >>>From the --help screen I can't see the use of this plug-in, > >>>as it doesn't do anything more (i.e. return code parsing > >>> > >>> > >logic > > > > > >>>etc.) than vanilla ssh client does. > >>> > >>>E.g. I would call check_by_ssh from the Nagios server like > >>> > >>> > >this > > > > > >>>$ /opt/sw/nagios/libexec/check_by_ssh -1 -H $hostaddress -l > >>> > >>> > >www > > > > > >>>-i ~nagios/.ssh/id_rsa1_dmz_www -C > >>>/usr/local/sbin/check_dmz_www.sh > >>>Connecting to 127.0.0.1:80... connected. > >>>HTTP request sent, awaiting response... > >>> 1 HTTP/1.1 200 OK > >>> 2 Date: Fri, 29 Jul 2005 11:58:47 GMT > >>> 3 Server: Apache/1.3.22 (Unix) mod_ssl/2.8.5 OpenSSL/0.9.6b > >>> 4 Keep-Alive: timeout=25, max=100 > >>> 5 Connection: Keep-Alive > >>> 6 Content-Type: text/html > >>>200 OK > >>> > >>> > >>> > >>>But where's the point in using this plug-in? > >>>For that I could as well just call the ssh client. > >>> > >>> > >>It's just a wrapper/proxy. The plugin will ssh to the specified > >> > >> > >host, > > > > > >>run the specified command and return it's output _and_ exit > >> > >> > >code to > > > > > >>nagios, just as if nagios had run the plugin on the remote host > >>directly. If you have the check_http plugin in /usr/local/sbin > >> > >> > >on the > > > > > >>remote host you could do something like the following -- > >> > >>/opt/sw/nagios/libexec/check_by_ssh -1 -H $hostaddress -l www > >> > >> > >-i > > > > > >>~nagios/.ssh/id_rsa1_dmz_www -C /usr/local/sbin/check_http -S > >> > >> > >-I > > > > > >>127.0.0.1 -u http://your.host.com/health.cgi -e 200 > >> > >>*NOTE* you can only _copy_ the plugin to the remote host IFF > >> > >> > >it's the > > > > > >>same arch/os/version and has all the required libraries (ldd > >>check_http). > >> > >> > >>-- > >>Marc > >> > >> > >> > >>------------------------------------------------------- > >>SF.Net email is Sponsored by the Better Software Conference & > >>EXPO September > >>19-22, 2005 * San Francisco, CA * Development Lifecycle > >> > >> > >Practices > > > > > >>Agile & Plan-Driven Development * Managing Projects & Teams * > >>Testing & QA > >>Security * Process Improvement & Measurement * > >>http://www.sqe.com/bsce5sf > >>_______________________________________________ > >>Nagios-users mailing list > >>Nagios-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f at public.gmane.org > >>https://lists.sourceforge.net/lists/listinfo/nagios-users > >>::: Please include Nagios version, plugin version (-v) and OS > >>when reporting any issue. > >>::: Messages without supporting info will risk being sent to > >> > >> > >/dev/null > > > > > > > > > >------------------------------------------------------- > >SF.Net email is sponsored by: Discover Easy Linux Migration > Strategies > >from IBM. Find simple to follow Roadmaps, straightforward articles, > >informative Webcasts and more! Get everything you need to get up to > >speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > >_______________________________________________ > >Nagiosplug-help mailing list > >Nagiosplug-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f at public.gmane.org > >https://lists.sourceforge.net/lists/listinfo/nagiosplug-help > >::: Please include plugins version (-v) and OS when > reporting any issue. > >::: Messages without supporting info will risk being sent to > /dev/null > > > > > > > ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagiosplug-help mailing list Nagiosplug-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f at public.gmane.org https://lists.sourceforge.net/lists/listinfo/nagiosplug-help ::: Please include plugins version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From andre.bergei at ementor.no Wed Aug 3 13:08:16 2005 From: andre.bergei at ementor.no (Andre Bergei) Date: Wed, 3 Aug 2005 13:08:16 +0200 Subject: How to check traffic through WMI Message-ID: <447B76ECA7A8ED45B831D4D419A7AE560D7624@100NOOSLMSG004.common.alpharoot.net> > Hi everyone and thank's TOny for last help. > > I finaly used nrpe_nt client and manage my windows server > 2003 by checking plugins(some .exe but most .vbs). > > I never heart about WMI before and I am thunderstrunck about > what it's provide use to do. > But I need to check traffic because of many saturation and > don't find any plugin made. > If you have a link to find plugins which resolve my problem > or a course of any language(like VB) knowing use WMI, please tell me. > > Thank's in advance. > Johann Hi Check out http://snmpboy.msft.net Here's the script for wmi traffic; http://snmpboy.msft.net/VBScripts/lanTraffic.vbs.txt Just put in some threshold values and nagios exit codes to make it "Nagios ready" :) /andr? ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From aewhale at ABS-CompTech.com Wed Aug 3 13:58:35 2005 From: aewhale at ABS-CompTech.com (Albert Whale) Date: Wed, 03 Aug 2005 07:58:35 -0400 Subject: CGI Permissions What files do these read? Message-ID: <42F0B16B.308@ABS-CompTech.com> I have followed the advice of a few replies and have attempted to run cgis manually from the command line, without success. here is brief list of some of the cgis is outages.cgi (Network Outage) extinfo.cgi?&type=0 (Process Info) extinfo.cgi?&type=7 (Scheduling Queue) showlog.cgi (Event Log) config.cgi (View Config - Left Panel) Unfortunately I do not have the source for Nagios Installed (I installed the Mandriva rpms, which organizes the data files well), so I cannot guess at what files these cgis are attempting to view. However, I am confused about these permission problems, because even executing these scripts as root indicate that there are no permissions to view the logfile. Any Suggestions? -- Albert E. Whale, CHS CISA CISSP Sr. Security, Network, Risk Assessment and Systems Consultant ------------------------------------------------------------------- ABS Computer Technology, Inc. - www.ABS-CompTech.com SPAM Zapper - No-JunkMail.com - Spam-Zapper.com - SPAM Stops Here. President of the Pittsburgh InfraGard Alliance ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From aewhale at ABS-CompTech.com Wed Aug 3 14:10:26 2005 From: aewhale at ABS-CompTech.com (Albert Whale) Date: Wed, 03 Aug 2005 08:10:26 -0400 Subject: CGI Permissions What files do these read? In-Reply-To: <42F0B16B.308@ABS-CompTech.com> References: <42F0B16B.308@ABS-CompTech.com> Message-ID: <42F0B432.40405@ABS-CompTech.com> Found! The information in the cgi.cfg did not define the authenticated users which had permissions to use these features. All is well. Albert Whale wrote: > I have followed the advice of a few replies and have attempted to run > cgis manually from the command line, without success. > > here is brief list of some of the cgis is > > outages.cgi (Network Outage) > extinfo.cgi?&type=0 (Process Info) > extinfo.cgi?&type=7 (Scheduling Queue) > showlog.cgi (Event Log) > config.cgi (View Config - Left Panel) > > Unfortunately I do not have the source for Nagios Installed (I > installed the Mandriva rpms, which organizes the data files well), so > I cannot guess at what files these cgis are attempting to view. > However, I am confused about these permission problems, because even > executing these scripts as root indicate that there are no permissions > to view the logfile. > > Any Suggestions? > -- Albert E. Whale, CHS CISA CISSP Sr. Security, Network, Risk Assessment and Systems Consultant ------------------------------------------------------------------- ABS Computer Technology, Inc. - www.ABS-CompTech.com SPAM Zapper - No-JunkMail.com - Spam-Zapper.com - SPAM Stops Here. President of the Pittsburgh InfraGard Alliance ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ralph.Grothe at itdz-berlin.de Wed Aug 3 15:55:22 2005 From: Ralph.Grothe at itdz-berlin.de (Ralph.Grothe at itdz-berlin.de) Date: Wed, 3 Aug 2005 15:55:22 +0200 Subject: [Nagiosplug-help] How must I define this in checkcommands.cfg and services.cfg? Message-ID: <6B893C5F2902D311A23F0090272854FB0575B7B2@litex001.lit.verwalt-berlin.de> Curt, I knew that the purpose of the echo trick was not to get sudden OK statii of my checks, but to aid in debugging. And that's what it did indeed. Your hint was extremly valuable as it helped me detecting my malconfiguration and cleaning things up. Now I'm happy since my VCS checks all work as I had hoped for. The echoed check_nrpe invocation line in the status field of the services' detailed report led me to change my check command definition now to this define command { command_name check-nemesis-sg-online command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_vcs_sg\!$HOSTNAME$\!nemesis } This now looks so rediculously simple that I really ask myself how I could have been so terribly mistaken. I really hope the list moderators have enabled your account by now Ralph > -----Original Message----- > From: Curt Shaffer [mailto:cshaffer at gmail.com] > Sent: Wednesday, August 03, 2005 2:15 PM > To: Ralph.Grothe at itdz-berlin.de > Subject: RE: [Nagiosplug-help] How must I define this in > checkcommands.cfg and services.cfg? > > > It will return OK but the purpose is just to see what is > being sent by the > plugin to make sure all arguments, variables ...etc are > exactly how you want > them. > > I have found this to be of tremendous help in troubleshooting. But > unfortunately it is not helping in my problem ;( If you ever > come across > info on how to have 1 box running NRPE on the network to > "proxy" the checks > for the other devices, please let me know! > > > Good Luck > > Curt > > -----Original Message----- > From: Ralph.Grothe at itdz-berlin.de > [mailto:Ralph.Grothe at itdz-berlin.de] > Sent: Wednesday, August 03, 2005 8:04 AM > To: cshaffer at gmail.com > Subject: RE: [Nagiosplug-help] How must I define this in > checkcommands.cfg > and services.cfg? > > > -----Original Message----- > > From: Curt Shaffer [mailto:cshaffer at gmail.com] > > Sent: Wednesday, August 03, 2005 1:20 PM > > To: Ralph.Grothe at itdz-berlin.de > > Subject: RE: [Nagiosplug-help] How must I define this in > > checkcommands.cfg and services.cfg? > > > > > > Sorry, > > > > It will show up in your service details, host details etc. or > > whatever you > > told to use that command. > > > Yeah, it shows up in the Status Information field of the > service's detailed view. > > But since by prefixing the echo to check-nrpe the formerly failed > checks now returned OK > Thus I even got the below kind of RECOVERY mails sent. > > > > ***** Nagios ***** > > Notification Type: RECOVERY > > Service: nemesis-sg-online > Host: EVO VCS SG EVO3 > Address: 10.22.120.15 > State: OK > > Date/Time: Wed Aug 3 13:53:07 MES 2005 > > Additional Info: > > /opt/sw/nagios/libexec/check_nrpe -H 10.22.120.15 -c check_vcs_sg > > > > > Well, from this output I can clearly see that the macros $ARG2$ > and $ARG3$ either didn't get defined or not passed to check_nrpe. > No wonder that the remote nrpe didn't accept it as valid input. > > Now I know where to continue my search. > > Many thanks for showing me the trick. > > > > ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Wed Aug 3 17:08:47 2005 From: marc at ena.com (Marc Powell) Date: Wed, 3 Aug 2005 10:08:47 -0500 Subject: run a script based on event?? Message-ID: > -----Original Message----- > From: HP Geeza [mailto:getbacktome3 at hotmail.com] > Sent: Wednesday, August 03, 2005 10:01 AM > To: Marc Powell; nagios-users at lists.sourceforge.net > Subject: run a script based on event?? > > HI > > I was wondering if this is possible and whether anybody has tried it? - I > am > monitoring the temperature probe in our lab via snmp...and as a result i > was > wondering whether it is possible in nagios to run a script of some sort > (which will probably contain some sort of shutdown command) when the > temperature triggers an event i.e when it goes above a certain threshold. > > I would like to do this because if the AC busts and our lab starts to > overheat then i would like nagios to run a script which will turn off some > of the machines? Oddly enough they're called event handlers. http://nagios.sourceforge.net/docs/1_0/eventhandlers.html -- Marc p.s. Please don't e-mail me directly. Even though I participate a lot here, I'm not dedicated Nagios support ;) ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From getbacktome3 at hotmail.com Wed Aug 3 17:01:02 2005 From: getbacktome3 at hotmail.com (HP Geeza) Date: Wed, 03 Aug 2005 16:01:02 +0100 Subject: run a script based on event?? Message-ID: HI I was wondering if this is possible and whether anybody has tried it? - I am monitoring the temperature probe in our lab via snmp...and as a result i was wondering whether it is possible in nagios to run a script of some sort (which will probably contain some sort of shutdown command) when the temperature triggers an event i.e when it goes above a certain threshold. I would like to do this because if the AC busts and our lab starts to overheat then i would like nagios to run a script which will turn off some of the machines? Cheers _________________________________________________________________ Be the first to hear what's new at MSN - sign up to our free newsletters! http://www.msn.co.uk/newsletters ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From James.P.Fuentes at boeing.com Wed Aug 3 17:23:43 2005 From: James.P.Fuentes at boeing.com (EXT-Fuentes, James P) Date: Wed, 3 Aug 2005 08:23:43 -0700 Subject: Which MIBs for check_snmp ? Message-ID: <626FC7C6A97381468FB872072AB5DDC801FEC4@XCH-SW-42.sw.nos.boeing.com> You can go to a place like http://www.mibdepot.com to find the Cisco MIB and determine which OIDs you want check_snmp to poll. Do a "man snmpd" to see how to get SNMP configured on your HP. -Jim ________________________________ From: Marco Borsani [mailto:m.borsani at it.net] Sent: Wed 8/3/2005 3:08 AM To: NAGIOS Subject: [Nagios-users] Which MIBs for check_snmp ? Hi all ! I have a "little" problem. I'd like to use check_snmp to poll some Cisco Routers to get following informations: - CPU Utilization - Memory Utilization(free, used) - Traffic Utilization - Connection Utilization - Xlate Utilization But, on my HP-UX 11.00 server I have not snmp installed and I don't know how to do/install. Moreover, I don't find correct MIBs to pass to check_snmp. Any idea? Thanks a lot M.Borsani ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Wed Aug 3 17:35:21 2005 From: marc at ena.com (Marc Powell) Date: Wed, 3 Aug 2005 10:35:21 -0500 Subject: Which MIBs for check_snmp ? Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Marco Borsani > Sent: Wednesday, August 03, 2005 5:09 AM > To: NAGIOS > Subject: [Nagios-users] Which MIBs for check_snmp ? > > Hi all ! > > I have a "little" problem. > > I'd like to use check_snmp to poll some Cisco Routers to get following > informations: > > - CPU Utilization > - Memory Utilization(free, used) > - Traffic Utilization > - Connection Utilization > - Xlate Utilization > > But, on my HP-UX 11.00 server I have not snmp installed and I don't know > how > to do/install. Moreover, I don't find correct MIBs to pass to check_snmp. Download and compile it -- http://www.net-snmp.org/ Additionally, this document - http://docs.hp.com/en/5990-7269/ch05s01.html - implies that it's part of the HP-UX Internet Express media so that's a good indication that it's available and/or will compile on HP-UX. This page - http://forums.adventnet.com/viewtopic.php?t=535&start=0 - and many others on Google related to HP-UX and Net-SNMP appears to be useful. Once you've installed Net-SNMP, a recompile of the plugins should compile check_snmp for use. As far as MIBs, http://mibdepot.com is a good resource. -- Marc ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Chester.Hosey at gianteagle.com Wed Aug 3 20:35:24 2005 From: Chester.Hosey at gianteagle.com (Hosey, Chester) Date: Wed, 3 Aug 2005 14:35:24 -0400 Subject: NRPE does nothing with configured with --disable-ssl Message-ID: <73BB3A1D374DA64F98E8EA9C37FB3F5F0181F2E9@exchmail1.corp.gianteagle.com> Hello! I'm trying to use NRPE on an aging AIX 4.3 machine. I'm having openssl issues, and tried to configure NRPE with --disable-ssl while sorting out the openssl problems. Unfortunately it seems that under Linux as well as AIX, when configured with --disable-ssl NRPE exists silently both when given -d and -i on the command line. Specifically, I tried the following commands: ./configure --disable-ssl make src/nrpe -c nrpe.cfg -i I am returned immediately to the command prompt. Does anyone know of a way to get NRPE to work without SSL? Chet -------------- next part -------------- An HTML attachment was scrubbed... URL: From marc at ena.com Wed Aug 3 21:23:50 2005 From: marc at ena.com (Marc Powell) Date: Wed, 3 Aug 2005 14:23:50 -0500 Subject: NRPE does nothing with configured with --disable-ssl Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Hosey, Chester > Sent: Wednesday, August 03, 2005 1:35 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] NRPE does nothing with configured with --disable- > ssl > > Hello! > > I'm trying to use NRPE on an aging AIX 4.3 machine. I'm having openssl > issues, and tried to configure NRPE with --disable-ssl while sorting out > the openssl problems. > > Unfortunately it seems that under Linux as well as AIX, when configured > with --disable-ssl NRPE exists silently both when given -d and -i on the > command line. > > Specifically, I tried the following commands: > > ./configure --disable-ssl > make > src/nrpe -c nrpe.cfg -i > > I am returned immediately to the command prompt. This is expected behavior. In your default syslog message file you'll probably find an error such as -- Aug 3 14:17:44 gemini nrpe[13238]: Could not read request from client, bailing out... That's because using -i, nrpe is told that it has been called directly by [x]inetd and is expecting incoming data packets from the client, not input from STDIN. nrpe -d should launch it in daemon mode in the background and return you to the command prompt. If it doesn't, again, check your messages file. -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rhall at healthvision.com Wed Aug 3 21:53:37 2005 From: rhall at healthvision.com (Rusty Hall) Date: Wed, 3 Aug 2005 21:53:37 +0200 (CEST) Subject: Nagios -s latency=?ISO-8859-1?Q?_?= Message-ID: <20050803195337.7B83E4F4002@desire.netways.de> Hi list I have nagios installed 1.2 installed on fedora core2 and I have run into an issue with checks running way behind schedule. When i run the nagios -s nagios.cfg command I get the default results SERVICE SCHEDULING INFORMATION ------------------------------- Total services: 678 Total hosts: 124 Command check interval: -1 sec Check reaper interval: 5 sec Inter-check delay method: SMART Average check interval: 6190.619 sec Inter-check delay: 9.131 sec Interleave factor method: SMART Average services per host: 5.468 Service interleave factor: 6 Initial service check scheduling info: -------------------------------------- First scheduled check: 1123098253 -> Wed Aug 3 14:44:13 2005 Last scheduled check: 1123104434 -> Wed Aug 3 16:27:14 2005 Rough guidelines for max_concurrent_checks value: ------------------------------------------------- Absolute minimum value: 1 Recommend value: 3 Even if i change the max_concurrent_checks value to 15 or so it makes no change to the way the checks are handled. I have used this on other installations and it has made the latency on checks within a minute or so. Any help would be apprecaited - Rusty Hall (rdhall1) ----------------------- The mailing list archive is found here: http://www.nagiosexchange.org/nagios-users.34.0.html ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Wed Aug 3 22:31:34 2005 From: marc at ena.com (Marc Powell) Date: Wed, 3 Aug 2005 15:31:34 -0500 Subject: Nagios -s latency Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Rusty Hall > Sent: Wednesday, August 03, 2005 2:54 PM > To: nagios-users at lists.sourceforge.net; rhall at healthvision.com > Subject: [Nagios-users] Nagios -s latency > > Hi list > > > > I have nagios installed 1.2 installed on fedora core2 and I have > run into an issue with checks running way behind schedule. When > i run the nagios -s nagios.cfg command I get the default results > > SERVICE SCHEDULING INFORMATION > > ------------------------------- > > Total services: 678 > > Total hosts: 124 > > Command check interval: -1 sec > > Check reaper interval: 5 sec > > Inter-check delay method: SMART > > Average check interval: 6190.619 sec > This is calculated based on normal_check_interval. Do you have some services with abnormally high check intervals? Using the SMART method I believe that nagios will spread the checks out evenly over the entire check window for the initial check. If some are supposed to be high I'd suggest changing your inter-check delay method to be something else. I quite happily use 'n' for a dual pIII 700 checking 457 services. -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dan at lanworksco.com Wed Aug 3 22:45:28 2005 From: dan at lanworksco.com (Dan Knoblauch) Date: Wed, 3 Aug 2005 14:45:28 -0600 Subject: Question: How do I reduce the size of the alerts that nagios sends? Message-ID: <7E47E6EB524A284B91853AD2D93BBBAD02CBE5@DC103.lanworksco.com> Hello all. I use my cellular phone to receive alerts from my nagios host. The problem is that the cell phone has a limited amount of buffer space for received messages so whenever I get a page from nagios it gets split into 2 or more messages. Is it possible to reduce the content of the message to read something like: Subject: Problem Host: mx.mydomain.com IP: 111.111.111.111 Service: SMTP Thanks in advance. Dan. ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pete at stuff-done.co.uk Wed Aug 3 22:46:24 2005 From: pete at stuff-done.co.uk (Pete Dewell) Date: Wed, 03 Aug 2005 21:46:24 +0100 Subject: Question: How do I reduce the size of the alerts that nagios sends? In-Reply-To: <7E47E6EB524A284B91853AD2D93BBBAD02CBE5@DC103.lanworksco.com> References: <7E47E6EB524A284B91853AD2D93BBBAD02CBE5@DC103.lanworksco.com> Message-ID: <42F12D20.2050509@stuff-done.co.uk> Write a custom command (like the service-notify-by-email one) which only puts in what you want. Then use that in the contacts definition of your cellphone instead of the service-notify-by-email, or whatever you have at the moment. Pete Dewell Dan Knoblauch wrote: > Hello all. I use my cellular phone to receive alerts from my nagios host. The problem is that the cell phone has a limited amount of buffer space for received messages so whenever I get a page from nagios it gets split into 2 or more messages. Is it possible to reduce the content of the message to read something like: > > Subject: Problem > Host: mx.mydomain.com > IP: 111.111.111.111 > Service: SMTP > > Thanks in advance. > Dan. > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- Pete Dewell | Stuff Done pete at stuff-done.co.uk ** The information contained in this message, including any attachment, is confidential and may be privileged or otherwise protected from disclosure. The information is intended only for the person or entity to which it is addressed. If you are not the intended recipient, please contact the sender and delete this message from your system. Any review, re-transmission, distribution or other use of this information by persons or entities other than the intended recipient is prohibited. * ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ssugar at proserveit.com Wed Aug 3 22:30:37 2005 From: ssugar at proserveit.com (Scott Sugar) Date: Wed, 3 Aug 2005 16:30:37 -0400 Subject: Question: How do I reduce the size of the alerts that nagios sends? Message-ID: Yes, all you need to do is go into your commands.cfg file and alter your notify-by-email command to look something like this: define command{ command_name notify-by-email command_line /usr/bin/printf "%b" "Host: $HOSTNAME$\nAddress: $HOSTADDRESS$\nService: $SERVICEDESC$" | /bin/mail -s "$NOTIFICATIONTYPE$" $CONTACTEMAIL$ } and your host-notify-by-email command to look like this: define command{ command_name host-notify-by-email command_line /usr/bin/printf "%b" "Host: $HOSTNAME$\nAddress: $HOSTADDRESS$\nState: $HOSTSTATE$" | /bin/mail -s "$NOTIFICATIONTYPE$" $CONTACTEMAIL$ } ________________________________ From: nagios-users-admin at lists.sourceforge.net on behalf of Dan Knoblauch Sent: Wed 8/3/2005 4:45 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Question: How do I reduce the size of the alerts that nagios sends? Hello all. I use my cellular phone to receive alerts from my nagios host. The problem is that the cell phone has a limited amount of buffer space for received messages so whenever I get a page from nagios it gets split into 2 or more messages. Is it possible to reduce the content of the message to read something like: Subject: Problem Host: mx.mydomain.com IP: 111.111.111.111 Service: SMTP Thanks in advance. Dan. ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- An HTML attachment was scrubbed... URL: From nagios-user at proy.org Wed Aug 3 23:01:44 2005 From: nagios-user at proy.org (Patrick Proy) Date: Wed, 3 Aug 2005 23:01:44 +0200 Subject: Which MIBs for check_snmp ? In-Reply-To: <626FC7C6A97381468FB872072AB5DDC801FEC4@XCH-SW-42.sw.nos.boeing.com> References: <626FC7C6A97381468FB872072AB5DDC801FEC4@XCH-SW-42.sw.nos.boeing.com> Message-ID: <20050803210141.DC311ACB3E@www.manubulon.com> Hi, If you have perl installed on your HP-UX, you can also try these scripts : http://www.manubulon.com/nagios/ Here is also insteresting part of Cisco MIB (CPU, mem) if you can only use check_snmp : http://www.manubulon.com/nagios/index_info.html#cisco Patrick ________________________________ From: Marco Borsani [mailto:m.borsani at it.net] Sent: Wed 8/3/2005 3:08 AM To: NAGIOS Subject: [Nagios-users] Which MIBs for check_snmp ? Hi all ! I have a "little" problem. I'd like to use check_snmp to poll some Cisco Routers to get following informations: - CPU Utilization - Memory Utilization(free, used) - Traffic Utilization - Connection Utilization - Xlate Utilization But, on my HP-UX 11.00 server I have not snmp installed and I don't know how to do/install. Moreover, I don't find correct MIBs to pass to check_snmp. Any idea? Thanks a lot M.Borsani ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From drussell at mpifix.com Wed Aug 3 23:22:47 2005 From: drussell at mpifix.com (Danny Russell) Date: Wed, 3 Aug 2005 15:22:47 -0600 Subject: GroundWork Monitor Architect Message-ID: <028B223BB24E5443A9784BBE1CC5EBE0486442@Lisa.mpifix.com> http://sourceforge.net/projects/monarch http://dev.itgroundwork.com/products/gwma-screenshots.html Has anyone tried this to manage their Nagios? What do people think of this? Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: From matthew.nelson at progressindustries.org Wed Aug 3 23:38:36 2005 From: matthew.nelson at progressindustries.org (Matthew Nelson) Date: Wed, 3 Aug 2005 23:38:36 +0200 (CEST) Subject: It appears as though you do not have permission to view information for any of the hosts you requested... In-Reply-To: <76260EC12F72AF4582D3582554CBE108EA1BC8@iron.fusionbb.corp> References: <76260EC12F72AF4582D3582554CBE108EA1BC8@iron.fusionbb.corp> Message-ID: <20050803213836.0A0EE4F4002@desire.netways.de> Thanks guys for the help. I did finally get it. My Apache config was the same as yours Cam, so that wasn't the issue. It was a rights issue, I was doing a chmod 777 and doing a chmod 7777 fixed the issue. - Matthew Nelson (matgyver) ----------------------- This thread is located in the archive at this URL: http://www.nagiosexchange.org/nagios-users.34.0.html?&tx_maillisttofaq_pi 1[showUid]=9237 ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ladams at cloudmark.com Wed Aug 3 23:39:55 2005 From: ladams at cloudmark.com (Lori Adams) Date: Wed, 3 Aug 2005 14:39:55 -0700 Subject: [Nagiosplug-help] How must I define this in checkcommands.cfg and services.cfg? Message-ID: Ralph, When setting up a check_nrpe, you need to use -a. This is why your macros are not being set. Do not need to escape the "!" check_nrpe -H $HOSTADDRESS$ -c -a arg1 arg2 arg3. Here's what a nrpe command should look like: define command { command_name check-nrpe command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ -a $ARG2$ $ARG3$ } so for your specific case: define command { command_name check-evo-sg-online command_line check-nrpe!check_vcs_sg!$HOSTNAME$!$HOSTGROUPALIAS$ ## check_nrpe!!$ARG2$!$ARG3$ } your command in nrpe.cfg will look like: command[check_vcs_sg]=/your/script/or/plugin $ARG1$ $ARG2$ Your service cfg would like define service {... check_commmand check-evo-sg-online } -Lori -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Ralph.Grothe at itdz-berlin.de Sent: Wednesday, August 03, 2005 6:55 AM To: cshaffer at gmail.com Cc: nagios-users at lists.sourceforge.net; nagiosplug-help at lists.sourceforge.net Subject: [Nagios-users] RE: [Nagiosplug-help] How must I define this in checkcommands.cfg and services.cfg? Curt, I knew that the purpose of the echo trick was not to get sudden OK statii of my checks, but to aid in debugging. And that's what it did indeed. Your hint was extremly valuable as it helped me detecting my malconfiguration and cleaning things up. Now I'm happy since my VCS checks all work as I had hoped for. The echoed check_nrpe invocation line in the status field of the services' detailed report led me to change my check command definition now to this define command { command_name check-nemesis-sg-online command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_vcs_sg\!$HOSTNAME$\!nemesis } This now looks so rediculously simple that I really ask myself how I could have been so terribly mistaken. I really hope the list moderators have enabled your account by now Ralph > -----Original Message----- > From: Curt Shaffer [mailto:cshaffer at gmail.com] > Sent: Wednesday, August 03, 2005 2:15 PM > To: Ralph.Grothe at itdz-berlin.de > Subject: RE: [Nagiosplug-help] How must I define this in > checkcommands.cfg and services.cfg? > > > It will return OK but the purpose is just to see what is > being sent by the > plugin to make sure all arguments, variables ...etc are > exactly how you want > them. > > I have found this to be of tremendous help in troubleshooting. But > unfortunately it is not helping in my problem ;( If you ever > come across > info on how to have 1 box running NRPE on the network to > "proxy" the checks > for the other devices, please let me know! > > > Good Luck > > Curt > > -----Original Message----- > From: Ralph.Grothe at itdz-berlin.de > [mailto:Ralph.Grothe at itdz-berlin.de] > Sent: Wednesday, August 03, 2005 8:04 AM > To: cshaffer at gmail.com > Subject: RE: [Nagiosplug-help] How must I define this in > checkcommands.cfg > and services.cfg? > > > -----Original Message----- > > From: Curt Shaffer [mailto:cshaffer at gmail.com] > > Sent: Wednesday, August 03, 2005 1:20 PM > > To: Ralph.Grothe at itdz-berlin.de > > Subject: RE: [Nagiosplug-help] How must I define this in > > checkcommands.cfg and services.cfg? > > > > > > Sorry, > > > > It will show up in your service details, host details etc. or > > whatever you > > told to use that command. > > > Yeah, it shows up in the Status Information field of the > service's detailed view. > > But since by prefixing the echo to check-nrpe the formerly failed > checks now returned OK > Thus I even got the below kind of RECOVERY mails sent. > > > > ***** Nagios ***** > > Notification Type: RECOVERY > > Service: nemesis-sg-online > Host: EVO VCS SG EVO3 > Address: 10.22.120.15 > State: OK > > Date/Time: Wed Aug 3 13:53:07 MES 2005 > > Additional Info: > > /opt/sw/nagios/libexec/check_nrpe -H 10.22.120.15 -c check_vcs_sg > > > > > Well, from this output I can clearly see that the macros $ARG2$ > and $ARG3$ either didn't get defined or not passed to check_nrpe. > No wonder that the remote nrpe didn't accept it as valid input. > > Now I know where to continue my search. > > Many thanks for showing me the trick. > > > > ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- An HTML attachment was scrubbed... URL: From frederik.vanhee at perso.be Thu Aug 4 08:16:09 2005 From: frederik.vanhee at perso.be (Frederik Vanhee) Date: Thu, 04 Aug 2005 08:16:09 +0200 Subject: Question: How do I reduce the size of the alerts that nagios sends? In-Reply-To: <7E47E6EB524A284B91853AD2D93BBBAD02CBE5@DC103.lanworksco.com> References: <7E47E6EB524A284B91853AD2D93BBBAD02CBE5@DC103.lanworksco.com> Message-ID: <42F1B2A9.7080303@perso.be> Dan Knoblauch wrote: >Hello all. I use my cellular phone to receive alerts from my nagios host. The problem is that the cell phone has a limited amount of buffer space for received messages so whenever I get a page from nagios it gets split into 2 or more messages. Is it possible to reduce the content of the message to read something like: > >Subject: Problem >Host: mx.mydomain.com >IP: 111.111.111.111 >Service: SMTP > >Thanks in advance. >Dan. > > >------------------------------------------------------- >SF.Net email is Sponsored by the Better Software Conference & EXPO >September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices >Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA >Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >::: Messages without supporting info will risk being sent to /dev/null > > > Of course you can do this. Change you notification command in your config file ! If you're using the predefined 'notify-by-pager' or whatever, remove all the text you don't want to be sent to your cell-phone. Frederik ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mitya at cavia.pp.ru Thu Aug 4 09:08:58 2005 From: mitya at cavia.pp.ru (Dmitry Sivachenko) Date: Thu, 4 Aug 2005 11:08:58 +0400 Subject: Problem with CGI authentication and service visibility Message-ID: <20050804070858.GA9632@sinbin.demos.su> Hello! I am using nagios-2.0b4 (the same problem exists with 2.0b3). Imagine the following configuration: I have two contacts: user1 (the only member of contact_group USER1) and user2 (the only member of contact_group USER2). I want to monitor the only host (host1) with two services on it: service1 and service2. I have use_authentication=1 in my cgi.cfg. I want to achieve the following configuration: both user1 and user2 are contacts for host problems and can view host information via web. user1 is the contact for both services monitored and can view them via web. user2 is the contact only for service2 and should not know anything about service1. In my host definition, I use: define host { name host1 contact_groups USER1,USER2 ... } I define services as follows: define service { host_name host1 service_description service1 contact_groups USER1 ... } define service { host_name host1 service_description service2 contact_groups USER1,USER2 ... } I expect user2 to be able to observe only service2 via web-interface. But it is not the case, user2 can view both services. If I remove USER2 from contact_groups for host1 leaving services definitions the same, I achieve what I want. Is it a bug or a feature? How can I solve my problem? Thanks in advance! ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mah at LF.net Thu Aug 4 09:32:23 2005 From: mah at LF.net (Martin Haller) Date: Thu, 4 Aug 2005 09:32:23 +0200 Subject: How to reduce Host Check rate ? Message-ID: <20050804073223.GE22548@poldi.lf.net> Hi, Nagios produces some noisy host alerts we want to reduce. The situation in detail: If an host/router goes down for 2 minutes, for example, the PING service check will notice this and the PING state will go to soft CRITICAL. The host check is fired n times (max_check_attempts in the host profile) - but - with no delay such as the service checks have one (retry_check_interval). The Problem is that the host state changes to hard critical in a few seconds and email/sms ist sent out. The result is a huge crowd of services arpearing for just one or two minutes in state hard CRITICAL. The nagios version we use is 2.0b3. My question is: Did I just not find the delay parameter for tuning the host check retry rate ? How did You tune Your setup to avoid this ? -- MfG/Best regards, Martin Haller LF.net GmbH fon +49 711 90074-406 Ruppmannstr. 27 fax +49 711 90074-33 D-70565 Stuttgart ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ralph.Grothe-YpEHkxAi6oMehzHBf2RrnA at public.gmane.org Thu Aug 4 09:34:41 2005 From: Ralph.Grothe-YpEHkxAi6oMehzHBf2RrnA at public.gmane.org (Ralph.Grothe-YpEHkxAi6oMehzHBf2RrnA at public.gmane.org) Date: Thu, 4 Aug 2005 09:34:41 +0200 Subject: Usage of check_log Message-ID: <6B893C5F2902D311A23F0090272854FB0575B7B4@litex001.lit.verwalt-berlin.de> Hello, this may all be pretty obvious and self-explanatory to long time Nagios veterans. But I beg your pardon, this ultra terse help screen doesn't instruct me at all on the correct usage of this particular plug-in. Does it cause the plug-in authors such hardship to spare the extra 80 chars or so for a lucid example line? # libexec/check_log --help check_log (nagios-plugins 1.4) 1.4 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. Usage: check_log -F logfile -O oldlog -q query Usage: check_log --help Usage: check_log --version Log file pattern detector plugin for Nagios Send email to nagios-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f at public.gmane.org if you have questions regarding use of this software. To submit patches or suggest improvements, send email to nagiosplug-devel-5NWGOfrQmneRv+LV9MX5uti2KpX7p8Fi at public.gmane.org Please include version information with all correspondence (when possible, use output from the --version option of the plugin itself). For instance I'm after kernel Oops and similar utters from the kernel that are marked on my host's OS as vmunix in syslogd's main log, and almost always (except during system startup) indicate a critical condition. e.g. # grep vmunix /var/adm/syslog/syslog.log|tail -1 Apr 29 09:44:20 terra vmunix: vxfs: mesg 001: vx_nospace - /dev/vg03/lvol1 file system full (1 block extent) Now I would want check_nrpe to run something like $libexec_dir/check_log -F /var/adm/syslog/syslog.log -q /vmunix/ But according to the above usage synopsis this was wrong syntax because the -O option was lacking. But then I wouldn't know what -O was good for. Intuitively I would assosiate it with some intended output file. But the "oldlog" would be a bit of a misnomer. Or does it relate to also parsing some older, probably already rotated logfile. You see, this is all highly speculative and leaves ample space for wild guesses. Regards Ralph -- Ralph Grothe (GBII1Gr) IT Dienstleistungszentrum Berlin Berliner Strasse 112-115 D-10713 Berlin Phone: +49 30 9012 6481 Fax: +49 30 9012 3151 ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagiosplug-help mailing list Nagiosplug-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f at public.gmane.org https://lists.sourceforge.net/lists/listinfo/nagiosplug-help ::: Please include plugins version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cshaffer-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org Thu Aug 4 16:17:00 2005 From: cshaffer-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org (Curt Shaffer) Date: Thu, 4 Aug 2005 10:17:00 -0400 Subject: How to interpret CRC32 errors? In-Reply-To: <6B893C5F2902D311A23F0090272854FB0575B7B6-SOfvMOfJz/6FzsVCTuPIzRRxwEygFqSQHocxwX9ka5w@public.gmane.org> References: <6B893C5F2902D311A23F0090272854FB0575B7B6@litex001.lit.verwalt-berlin.de> Message-ID: <42f22361.4ebf554a.1a07.ffffa327@mx.gmail.com> I hate to ask a dumb question but did you echo the output on the command and see what was actually passing in the service details? If so can you post that outcome so we can see? Thanks Curt -----Original Message----- From: nagiosplug-help-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f at public.gmane.org [mailto:nagiosplug-help-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f at public.gmane.org] On Behalf Of Ralph.Grothe-YpEHkxAi6oMehzHBf2RrnA at public.gmane.org Sent: Thursday, August 04, 2005 10:05 AM To: nagiosplug-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f at public.gmane.org; nagios-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f at public.gmane.org Subject: [Nagiosplug-help] How to interpret CRC32 errors? Hi, I'm currently writing a custom shell script plug-in that simply checks the state of an HP Virtual Array. I sourced utils.sh in it and return the proposed STATE_{OK|CRITICAL|UNKNOWN} return codes depending on the outcom. I didn't care for WARNING as I only distinguish between OK and CRITICAL. I would submit the script hadn't I received contemptuous reactions by some expert here on last occasion. The script isn't doing much more than parsing the States of all FRUs of the array and returning CRITICAL if something other than state Good is found, OK elsewise. The script doesn't require higher privileges than the nrpe daemon has, and it doesn't produce any output (apart from the final oneliner indicating the state), nor does it attempt to write anywhere. If I run it at the shell under the uid of the nrpe daemon it works fine. $ /usr/local/nagios/libexec/check_hpva.sh OK: HP Virtual Array "va" on inwo2 all FRUs State Good Whereas when I run it via check_nrpe I receive the to me meaningless CRC32 error. $ /usr/local/nagios/libexec/check_nrpe -H 127.0.0.1 -c check_hpva_INWO2 CHECK_NRPE: Response packet had invalid CRC32. In nrpe.cfg it's defined as $ grep check_hpva /usr/local/nagios/etc/nrpe.cfg command[check_hpva_INWO2]=/usr/local/nagios/libexec/check_hpva.sh What's going on here? Regards -- Ralph Grothe ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagiosplug-help mailing list Nagiosplug-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f at public.gmane.org https://lists.sourceforge.net/lists/listinfo/nagiosplug-help ::: Please include plugins version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3061 bytes Desc: not available URL: From Ralph.Grothe at itdz-berlin.de Thu Aug 4 16:17:46 2005 From: Ralph.Grothe at itdz-berlin.de (Ralph.Grothe at itdz-berlin.de) Date: Thu, 4 Aug 2005 16:17:46 +0200 Subject: NRPE: Conditional parsing of nrpe.cfg supporte d? Message-ID: <6B893C5F2902D311A23F0090272854FB0575B7B7@litex001.lit.verwalt-berlin.de> Hi Chester, thanks for advising me how this could be hacked. I have to admit however that I've never used the macro processor m4 yet, other than scratching the surface in conjunction with Sendmail configuration. I am no C hacker, only can read it (most of the times). Therefore I have had little need for this tool until now. I think for what I had in mind it wouldn't be worth the effort, though I admit it shouldn't hurt to get a grip on m4. > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of > Chester R. > Hosey > Sent: Thursday, August 04, 2005 3:42 PM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] NRPE: Conditional parsing of nrpe.cfg > supported? > > > On Thu, 2005-08-04 at 13:52 +0200, Ralph.Grothe at itdz-berlin.de wrote: > > Hi, > > > > I wonder if something like this is possible in nrpe.cfg (with > > liberal artistic macrolike syntax here) > > > > > > > > #if defined dont_blame_nrpe > > command[check_tns]=/export/oracle/V9.2.0 > > PATH=/usr/bin:/export/oracle/V9.2.0/bin > > /usr/local/nagios/libexec/check_oracle --tns $ARG1$ > > #else > > command[check_tns]=/export/oracle/V9.2.0 > > PATH=/usr/bin:/export/oracle/V9.2.0/bin > > /usr/local/nagios/libexec/check_oracle --tns MY_SID > > #endif > > > > > > > > Regards > > -- > > Ralph Grothe > > Not that I know of, but if you're looking for a preprocessor, use a > preprocessor! > > I'd cp nrpe.cfg nrpe.cfg.m4, and edit nrpe.cfg.m4 to include something > like the following: > > dnl This is the preprocessor source to nrpe.cfg > dnl Run it through m4 with 'm4 nrpe.cfg.m4' to > dnl generate usable output. > > define(`DONT_BLAME_NRPE', `0') > > # normal stuff... blah blah blah > > dont_blame_nrpe=DONT_BLAME_NRPE > > # more stuff... blah blah blah > > ifelse(DONT_BLAME_NRPE, 0, > `command[check_tns]=do_what_i_want', > `command[check_tns]=do_what_nrpe_allows'); > > > If you're feeling really ambitious, you could even come up with a > makefile: > > all: nrpe.cfg > > nrpe.cfg: nrpe.cfg.m4 > m4 nrpe.cfg.m4 > nrpe.cfg > > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development > Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * > Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Aug 4 16:29:38 2005 From: marc at ena.com (Marc Powell) Date: Thu, 4 Aug 2005 09:29:38 -0500 Subject: correct notify definition to allow for check_nt_disk output to not be blanked. Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Rodney Caston > Sent: Thursday, August 04, 2005 8:45 AM > To: NAGIOS > Subject: [Nagios-users] correct notify definition to allow for > check_nt_disk output to not be blanked. > > I have the following issue with check_nt_disk, it outputs to nagios the > following status information: > > C:\ - total: 203.50 Gb - used: 87.55 Gb (43%) - free 115.95 Gb (57%) > > However, when we receive notifications for this alert, our > $SERVICEOUTPUT$ only gives us the following information on this alert. > ... > > Service: DISK > Host: hostname > Address: 10.0.2.1 > State: WARNING > Info: C: > > ... > > Everything after the ":" for "C:\" is being truncated, I'm sure this is > due to the "\" being seen as an escape character somehow. > > In misccommands.cfg our pager definition for these alerts is defined as > followed. > ... > # 'notify-by-epagerusingmutt' command definition (short form) > define command{ > command_name notify-by-muttpager-short > command_line /usr/bin/printf "%b" "Service: $SERVICEDESC$\nHost: > $HOSTNAME$\n$HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: > $SERVICESTATE$\nInfo: $SERVICEOUTPUT$\nDate: > $LONGDATETIME$\n\n\nUser:$CONTACTNAME$" | /usr/bin/mutt -F > /etc/nagios/muttrc.cfg -e 'set realname=""' -s "`echo $NOTIFICATIONTYPE$ > | /usr/bin/cut -c '1-3'`: $HOSTNAME$/$SERVICEDESC$ $SERVICESTATE$" > $CONTACTPAGER$ 2>&1 | logger -p mail.info > } > ... > > > Should we be putting $SERVICEOUPUT$ in some escaped form or inside > quotes to prevent this problem? Yes, try putting it in single quotes like -- # 'notify-by-epagerusingmutt' command definition (short form) define command{ command_name notify-by-muttpager-short command_line /usr/bin/printf "%b" "Service: $SERVICEDESC$\nHost: $HOSTNAME$\n$HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\nInfo: '$SERVICEOUTPUT$'\nDate: $LONGDATETIME$\n\n\nUser:$CONTACTNAME$" | /usr/bin/mutt -F /etc/nagios/muttrc.cfg -e 'set realname=""' -s "`echo $NOTIFICATIONTYPE$ | /usr/bin/cut -c '1-3'`: $HOSTNAME$/$SERVICEDESC$ $SERVICESTATE$" $CONTACTPAGER$ 2>&1 | logger -p mail.info } -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ralph.Grothe-YpEHkxAi6oMehzHBf2RrnA at public.gmane.org Thu Aug 4 16:27:08 2005 From: Ralph.Grothe-YpEHkxAi6oMehzHBf2RrnA at public.gmane.org (Ralph.Grothe-YpEHkxAi6oMehzHBf2RrnA at public.gmane.org) Date: Thu, 4 Aug 2005 16:27:08 +0200 Subject: How to interpret CRC32 errors? Message-ID: <6B893C5F2902D311A23F0090272854FB0575B7B8@litex001.lit.verwalt-berlin.de> > I hate to ask a dumb question but did you echo the output on > the command and > see what was actually passing in the service details? If so > can you post > that outcome so we can see? Where should I put the echo? I only ran this on the remote (managed) host. You could see from my passing of the localhost IP 127.0.0.1 So there wasn't any nagios daemon yet involved. Should I prepend the echo to the command definition in nrpe.cfg? But this would seem silly to me since it would only show the path (if anything at all was showed by nrpe) I enabled extended connection logging of inetd on this HP-UX 11i box. That's all what the nrpe daemon sent to syslogd (albeit I rather think this is merely inetd's messaging) [saz at inwo2] $ grep nrpe /var/adm/syslog/syslog.log|tail -3 Aug 4 15:41:49 inwo2 inetd[628]: nrpe/tcp: Connection from localhost (127.0.0.1) at Thu Aug 4 15:41:49 2005 Aug 4 15:41:58 inwo2 inetd[644]: nrpe/tcp: Connection from localhost (127.0.0.1) at Thu Aug 4 15:41:58 2005 Aug 4 15:50:16 inwo2 inetd[823]: nrpe/tcp: Connection from localhost (127.0.0.1) at Thu Aug 4 15:50:16 2005 ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagiosplug-help mailing list Nagiosplug-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f at public.gmane.org https://lists.sourceforge.net/lists/listinfo/nagiosplug-help ::: Please include plugins version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rodney.caston at match.com Thu Aug 4 16:33:46 2005 From: rodney.caston at match.com (Rodney Caston) Date: Thu, 4 Aug 2005 09:33:46 -0500 Subject: correct notify definition to allow for check_nt_disk output to not be blanked. Message-ID: <573F1E2597A7974E924A5F814CAC166D13E61893@da0shme010.match.corp> I tried it and my output is now --- 'C: --- The difference is now I have a single quote being sent before the C -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Marc Powell Sent: Thursday, August 04, 2005 9:30 AM To: NAGIOS Subject: RE: [Nagios-users] correct notify definition to allow for check_nt_disk output to not be blanked. > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Rodney Caston > Sent: Thursday, August 04, 2005 8:45 AM > To: NAGIOS > Subject: [Nagios-users] correct notify definition to allow for > check_nt_disk output to not be blanked. > > I have the following issue with check_nt_disk, it outputs to nagios the > following status information: > > C:\ - total: 203.50 Gb - used: 87.55 Gb (43%) - free 115.95 Gb (57%) > > However, when we receive notifications for this alert, our > $SERVICEOUTPUT$ only gives us the following information on this alert. > ... > > Service: DISK > Host: hostname > Address: 10.0.2.1 > State: WARNING > Info: C: > > ... > > Everything after the ":" for "C:\" is being truncated, I'm sure this is > due to the "\" being seen as an escape character somehow. > > In misccommands.cfg our pager definition for these alerts is defined as > followed. > ... > # 'notify-by-epagerusingmutt' command definition (short form) > define command{ > command_name notify-by-muttpager-short > command_line /usr/bin/printf "%b" "Service: $SERVICEDESC$\nHost: > $HOSTNAME$\n$HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: > $SERVICESTATE$\nInfo: $SERVICEOUTPUT$\nDate: > $LONGDATETIME$\n\n\nUser:$CONTACTNAME$" | /usr/bin/mutt -F > /etc/nagios/muttrc.cfg -e 'set realname=""' -s "`echo $NOTIFICATIONTYPE$ > | /usr/bin/cut -c '1-3'`: $HOSTNAME$/$SERVICEDESC$ $SERVICESTATE$" > $CONTACTPAGER$ 2>&1 | logger -p mail.info > } > ... > > > Should we be putting $SERVICEOUPUT$ in some escaped form or inside > quotes to prevent this problem? Yes, try putting it in single quotes like -- # 'notify-by-epagerusingmutt' command definition (short form) define command{ command_name notify-by-muttpager-short command_line /usr/bin/printf "%b" "Service: $SERVICEDESC$\nHost: $HOSTNAME$\n$HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\nInfo: '$SERVICEOUTPUT$'\nDate: $LONGDATETIME$\n\n\nUser:$CONTACTNAME$" | /usr/bin/mutt -F /etc/nagios/muttrc.cfg -e 'set realname=""' -s "`echo $NOTIFICATIONTYPE$ | /usr/bin/cut -c '1-3'`: $HOSTNAME$/$SERVICEDESC$ $SERVICESTATE$" $CONTACTPAGER$ 2>&1 | logger -p mail.info } -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jwoodson at frontiernet.net Thu Aug 4 16:34:43 2005 From: jwoodson at frontiernet.net (Jason Woodson) Date: Thu, 4 Aug 2005 10:34:43 -0400 Subject: email notice floods Message-ID: <86b7e71ddf512acd39d14017a8abe037@frontiernet.net> On the rare occasion when the Nagios server needs to be rebooted, when it comes back up, it detects that all of the hosts and services are down and sends hundreds of email alerts to my email account and my phone. And once it detects they are all back up, it sends hundreds of "up" notices! Besides being quite annoying, it's also pretty costly considering my cell phone company charges $.05 for each received message. Does anyone have a recommendation for how I can avoid this? Thank you. ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From clint at freemail.hu Thu Aug 4 16:39:49 2005 From: clint at freemail.hu (Macci) Date: Thu, 4 Aug 2005 16:39:49 +0200 (CEST) Subject: how to detect multiple nagios daemons (with plugins) ? Message-ID: hi folks, i need your help/advice how is it possible to detect if there are multiple nagios daemons running? many thanx for any help clint _______________________________________________________________________ [freemail] extra 1GB-os postafi?kkal, ?nnek m?r van? http://freemail.hu ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From chris at aidworld.org Thu Aug 4 16:44:25 2005 From: chris at aidworld.org (Chris Wilson) Date: Thu, 04 Aug 2005 15:44:25 +0100 Subject: email notice floods In-Reply-To: <86b7e71ddf512acd39d14017a8abe037@frontiernet.net> References: <86b7e71ddf512acd39d14017a8abe037@frontiernet.net> Message-ID: <1123166664.22734.1.camel@rocio.int.aidworld.org> Hi Jason, > On the rare occasion when the Nagios server needs to be rebooted, when > it comes back up, it detects that all of the hosts and services are > down and sends hundreds of email alerts to my email account and my > phone. And once it detects they are all back up, it sends hundreds of > "up" notices! Besides being quite annoying, it's also pretty costly > considering my cell phone company charges $.05 for each received > message. Does anyone have a recommendation for how I can avoid this? I've never seen this behaviour, and I don't think it should happen. What's the error reported by the plugins which fail after Nagios startup? Could it be that Nagios is starting before the network or DNS server comes up on the Nagios server? Cheers, Chris. -- (aidworld) chris wilson | chief engineer (chris at aidworld.org) ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ralph.Grothe at itdz-berlin.de Thu Aug 4 16:41:08 2005 From: Ralph.Grothe at itdz-berlin.de (Ralph.Grothe at itdz-berlin.de) Date: Thu, 4 Aug 2005 16:41:08 +0200 Subject: NRPE: Conditional parsing of nrpe.cfg supporte d? Message-ID: <6B893C5F2902D311A23F0090272854FB0575B7B9@litex001.lit.verwalt-berlin.de> > Ralph.Grothe at itdz-berlin.de wrote: > > Hi, > > > > I wonder if something like this is possible in nrpe.cfg (with > > liberal artistic macrolike syntax here) > > > > > > > > #if defined dont_blame_nrpe > > command[check_tns]=/export/oracle/V9.2.0 > > PATH=/usr/bin:/export/oracle/V9.2.0/bin > > /usr/local/nagios/libexec/check_oracle --tns $ARG1$ > > #else > > command[check_tns]=/export/oracle/V9.2.0 > > PATH=/usr/bin:/export/oracle/V9.2.0/bin > > /usr/local/nagios/libexec/check_oracle --tns MY_SID > > #endif > > > > > It isn't. It would have been documented if it were. That's what I thought, but I have become suspisious of what is documented for Nagios (and especially Plug-ins), and what is left to the user's imagination. > It's worth noting that all future versions of NRPE will > support command > line arguments though. It will implement a whitelist rather than a > blacklist. It will also invoke some magic to bypass the shell, which > will prevent any misconfigured white-lists from causing serious harm. this sounds promising > > For future reference, you might want to just try things like this and > see if they work. You would have saved about an hour that way. how do you mean? I'm anxious running undocumented features that I only remotely assume to exist, had I written the thing. The thing could run havock purging my root filesystem or something else. I guess recovery would cost me more than an hour than asking silly questions. ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Aug 4 16:49:12 2005 From: marc at ena.com (Marc Powell) Date: Thu, 4 Aug 2005 09:49:12 -0500 Subject: email notice floods Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Jason Woodson > Sent: Thursday, August 04, 2005 9:35 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] email notice floods > > On the rare occasion when the Nagios server needs to be rebooted, when > it comes back up, it detects that all of the hosts and services are > down and sends hundreds of email alerts to my email account and my > phone. And once it detects they are all back up, it sends hundreds of > "up" notices! Besides being quite annoying, it's also pretty costly > considering my cell phone company charges $.05 for each received > message. Does anyone have a recommendation for how I can avoid this? If it's sending notifications for only hosts and services that were down before restart this is probably what you are looking for -- http://nagios.sourceforge.net/docs/1_0/configmain.html#retain_state_info rmation If it's truly sending out notifications for all hosts and services, that's not normal behavior and is likely caused by some external factor such as those mentioned by Chris Wilson. Without knowing what's being reported by nagios as the reason they are down we would only be speculating. -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dangelo at maxmara.com Thu Aug 4 16:56:46 2005 From: dangelo at maxmara.com (Luca D'Angelo) Date: Thu, 4 Aug 2005 16:56:46 +0200 Subject: Object's labels Message-ID: <742BCEBC-4178-40DC-BFE4-3E43D7D88B87@maxmara.com> Hi, I would like to know if it's possible to hide or to remove object's labels on nagios "status map" web page, I don't need them, I need only symbols, without description. Is it also possible to reduce "status indicator" circle around objects? I need to use small symbols and circle is to big for my map. Anyone can help me? Thank you so muche, best regards, Luca D'Angelo. ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae-n0Zl8IkGad4 at public.gmane.org Thu Aug 4 16:58:13 2005 From: ae-n0Zl8IkGad4 at public.gmane.org (Andreas Ericsson) Date: Thu, 04 Aug 2005 16:58:13 +0200 Subject: How to interpret CRC32 errors? In-Reply-To: <6B893C5F2902D311A23F0090272854FB0575B7B6-SOfvMOfJz/6FzsVCTuPIzRRxwEygFqSQHocxwX9ka5w@public.gmane.org> References: <6B893C5F2902D311A23F0090272854FB0575B7B6@litex001.lit.verwalt-berlin.de> Message-ID: <42F22D05.1000608@op5.se> Ralph.Grothe-YpEHkxAi6oMehzHBf2RrnA at public.gmane.org wrote: > Hi, > > I would submit the script hadn't I received contemptuous > reactions by some expert here on last occasion. > You're asking people to help you on their spare time. Most of your questions so far have been either no-brainers that you would have been able to figure out for yourself had you made the effort, or of the kind that would take considerable effort to answer properly. On a sidenote, it's considered very rude to cross-post unless you're making an announcement of some sort, so please refrain from doing so in the future. > > The script doesn't require higher privileges than the nrpe daemon > has, > and it doesn't produce any output (apart from the final oneliner > indicating the state), > nor does it attempt to write anywhere. > > If I run it at the shell under the uid of the nrpe daemon it > works fine. > Did you log in as the NRPE user or did you just su? su'ing maintains the environment settings of the old user, which will have effect on some programs. > > $ /usr/local/nagios/libexec/check_hpva.sh > > OK: HP Virtual Array "va" on inwo2 all FRUs State Good > > Whereas when I run it via check_nrpe I receive the to me > meaningless CRC32 error. > > $ /usr/local/nagios/libexec/check_nrpe -H 127.0.0.1 -c > check_hpva_INWO2 > CHECK_NRPE: Response packet had invalid CRC32. > > In nrpe.cfg it's defined as > > $ grep check_hpva /usr/local/nagios/etc/nrpe.cfg > command[check_hpva_INWO2]=/usr/local/nagios/libexec/check_hpva.sh > > > What's going on here? > check_hpva.sh prints something to stderr. This causes the NRPE daemon to miscalculate the checksum. When the plugin does the same it arrives at an invalid result. -- Andreas Ericsson andreas.ericsson-n0Zl8IkGad4 at public.gmane.org OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagiosplug-help mailing list Nagiosplug-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f at public.gmane.org https://lists.sourceforge.net/lists/listinfo/nagiosplug-help ::: Please include plugins version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From chris at aidworld.org Thu Aug 4 16:55:56 2005 From: chris at aidworld.org (Chris Wilson) Date: Thu, 04 Aug 2005 15:55:56 +0100 Subject: how to detect multiple nagios daemons (with plugins) ? In-Reply-To: References: Message-ID: <1123167355.22734.14.camel@rocio.int.aidworld.org> Hi Macci, > i need your help/advice > how is it possible to detect if there are multiple nagios daemons > running? Do you want to detect it or avoid it? To avoid it, you could try applying the patch that I sent to the mailing list last month. To detect it, you could try something like 'pstree | grep nagios | wc -l' which should approximately count the number of Nagios processes, but I haven't been able to verify it. Cheers, Chris. -- (aidworld) chris wilson | chief engineer (chris at aidworld.org) ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Thu Aug 4 17:03:45 2005 From: ae at op5.se (Andreas Ericsson) Date: Thu, 04 Aug 2005 17:03:45 +0200 Subject: NRPE: Conditional parsing of nrpe.cfg supporte d? In-Reply-To: <6B893C5F2902D311A23F0090272854FB0575B7B9@litex001.lit.verwalt-berlin.de> References: <6B893C5F2902D311A23F0090272854FB0575B7B9@litex001.lit.verwalt-berlin.de> Message-ID: <42F22E51.7090408@op5.se> Ralph.Grothe at itdz-berlin.de wrote: >>Ralph.Grothe at itdz-berlin.de wrote: >> >>>Hi, >>> >>>I wonder if something like this is possible in nrpe.cfg (with >>>liberal artistic macrolike syntax here) >>> >>> >>> >>>#if defined dont_blame_nrpe >>>command[check_tns]=/export/oracle/V9.2.0 >>>PATH=/usr/bin:/export/oracle/V9.2.0/bin >>>/usr/local/nagios/libexec/check_oracle --tns $ARG1$ >>>#else >>>command[check_tns]=/export/oracle/V9.2.0 >>>PATH=/usr/bin:/export/oracle/V9.2.0/bin >>>/usr/local/nagios/libexec/check_oracle --tns MY_SID >>>#endif >>> >> >> >>It isn't. It would have been documented if it were. > > > That's what I thought, > but I have become suspisious of what is documented for Nagios > (and especially Plug-ins), > and what is left to the user's imagination. > > >>For future reference, you might want to just try things like > > this and > >>see if they work. You would have saved about an hour that way. > > > how do you mean? > > I'm anxious running undocumented features that I only remotely > assume to exist, > had I written the thing. > The thing could run havock purging my root filesystem or > something else. Do you really think it would do that? If you're actually serious you can always create a pseudo-user without any write-access what so ever and then try running it as that pseudo-user. > I guess recovery would cost me more than an hour than asking > silly questions. > The problem is that you're drawing your timegains from other people, making them lose time. When you do that without paying them and without even trying to do any of the work yourself, it's very rude indeed. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jwoodson at frontiernet.net Thu Aug 4 17:06:41 2005 From: jwoodson at frontiernet.net (Jason Woodson) Date: Thu, 4 Aug 2005 11:06:41 -0400 Subject: email notice floods In-Reply-To: References: Message-ID: <69959778462c2c7bb7021c44f26d40d1@frontiernet.net> Actually I apologize, I did not explain the problem correctly. The problem is not that the computer is rebooted. The problem is that on rare occasion, the network switch that the Nagios server is connected to has gone down. Therefore, the Nagios server thinks that everything is down, and the email notices begin to pile up, unsent. Eventually when I realize there is a problem and I power the switch back up, all of the hundreds of notices finally get emailed out of the Nagios server. Jason On Aug 4, 2005, at 10:49 AM, Marc Powell wrote: > > >> -----Original Message----- >> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- >> admin at lists.sourceforge.net] On Behalf Of Jason Woodson >> Sent: Thursday, August 04, 2005 9:35 AM >> To: nagios-users at lists.sourceforge.net >> Subject: [Nagios-users] email notice floods >> >> On the rare occasion when the Nagios server needs to be rebooted, when >> it comes back up, it detects that all of the hosts and services are >> down and sends hundreds of email alerts to my email account and my >> phone. And once it detects they are all back up, it sends hundreds of >> "up" notices! Besides being quite annoying, it's also pretty costly >> considering my cell phone company charges $.05 for each received >> message. Does anyone have a recommendation for how I can avoid this? > > > If it's sending notifications for only hosts and services that were > down > before restart this is probably what you are looking for -- > > http://nagios.sourceforge.net/docs/1_0/ > configmain.html#retain_state_info > rmation > > If it's truly sending out notifications for all hosts and services, > that's not normal behavior and is likely caused by some external factor > such as those mentioned by Chris Wilson. Without knowing what's being > reported by nagios as the reason they are down we would only be > speculating. > > -- > Marc > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing > & QA > Security * Process Improvement & Measurement * > http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Chester.Hosey at gianteagle.com Thu Aug 4 17:09:46 2005 From: Chester.Hosey at gianteagle.com (Chester R. Hosey) Date: Thu, 04 Aug 2005 11:09:46 -0400 Subject: email notice floods In-Reply-To: <69959778462c2c7bb7021c44f26d40d1@frontiernet.net> References: <69959778462c2c7bb7021c44f26d40d1@frontiernet.net> Message-ID: <9515.18108272484$1123168384@news.gmane.org> On Thu, 2005-08-04 at 11:06 -0400, Jason Woodson wrote: > Actually I apologize, I did not explain the problem correctly. The > problem is not that the computer is rebooted. The problem is that on > rare occasion, the network switch that the Nagios server is connected > to has gone down. Therefore, the Nagios server thinks that everything > is down, and the email notices begin to pile up, unsent. Eventually > when I realize there is a problem and I power the switch back up, all > of the hundreds of notices finally get emailed out of the Nagios > server. > > Jason > Add a host entry for the router, and use "parent" to let Nagios know that all of the hosts behind the router depend on it. Chet ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Aug 4 17:10:08 2005 From: marc at ena.com (Marc Powell) Date: Thu, 4 Aug 2005 10:10:08 -0500 Subject: log file Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Christophe Mailhebuau > Sent: Thursday, August 04, 2005 4:43 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] log file > > Hi, > > I need to rotate nagios log every day, start at 6am to 6am but default > configuration is 00.00 to 00.00 hours. > > I just need to change hours. I use 1.2 nagios version. > > Can you help me ? You'll need to start hacking code. At the very least you'll need to modify get_next_log_rotation_time() in base/utils.c. It also looks like you'll need to modify the variable start_hour in cgi/avail.c, cgi/histogram.c, cgi/summary,c and cgi/trends.c. *WARNING* Those may not be all the occurrences. I would suggest that you thoroughly test all the reporting and scheduling functions within Nagios to verify that's everything. -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From chris at aidworld.org Thu Aug 4 17:13:32 2005 From: chris at aidworld.org (Chris Wilson) Date: Thu, 04 Aug 2005 16:13:32 +0100 Subject: email notice floods In-Reply-To: <1123168186.18753.2.camel@gc1216-xp-tna1.corp.gianteagle.com.> References: <69959778462c2c7bb7021c44f26d40d1@frontiernet.net> <1123168186.18753.2.camel@gc1216-xp-tna1.corp.gianteagle.com.> Message-ID: <1123168411.22734.16.camel@rocio.int.aidworld.org> Hi Jason, On Thu, 2005-08-04 at 16:09, Chester R. Hosey wrote: > On Thu, 2005-08-04 at 11:06 -0400, Jason Woodson wrote: > > Actually I apologize, I did not explain the problem correctly. The > > problem is not that the computer is rebooted. The problem is that on > > rare occasion, the network switch that the Nagios server is connected > > to has gone down. Therefore, the Nagios server thinks that everything > > is down, and the email notices begin to pile up, unsent. Eventually > > when I realize there is a problem and I power the switch back up, all > > of the hundreds of notices finally get emailed out of the Nagios > > server. > Add a host entry for the router, and use "parent" to let Nagios know > that all of the hosts behind the router depend on it. And then turn off "unreachable" notifications for those hosts. Cheers, Chris. -- (aidworld) chris wilson | chief engineer (chris at aidworld.org) ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Aug 4 17:15:16 2005 From: marc at ena.com (Marc Powell) Date: Thu, 4 Aug 2005 10:15:16 -0500 Subject: email notice floods Message-ID: Yes, that is quite different than 'when the Nagios server needs to be rebooted'. The parents directive is your friend. Make the switch the parent for all your hosts. http://nagios.sourceforge.net/docs/1_0/xodtemplate.html#host http://nagios.sourceforge.net/docs/1_0/networkreachability.html -- Marc > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Jason Woodson > Sent: Thursday, August 04, 2005 10:07 AM > To: users at lists.sourceforge.net> > Subject: Re: [Nagios-users] email notice floods > > Actually I apologize, I did not explain the problem correctly. The > problem is not that the computer is rebooted. The problem is that on > rare occasion, the network switch that the Nagios server is connected > to has gone down. Therefore, the Nagios server thinks that everything > is down, and the email notices begin to pile up, unsent. Eventually > when I realize there is a problem and I power the switch back up, all > of the hundreds of notices finally get emailed out of the Nagios > server. > > Jason > > > > > On Aug 4, 2005, at 10:49 AM, Marc Powell wrote: > > > > > > >> -----Original Message----- > >> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > >> admin at lists.sourceforge.net] On Behalf Of Jason Woodson > >> Sent: Thursday, August 04, 2005 9:35 AM > >> To: nagios-users at lists.sourceforge.net > >> Subject: [Nagios-users] email notice floods > >> > >> On the rare occasion when the Nagios server needs to be rebooted, when > >> it comes back up, it detects that all of the hosts and services are > >> down and sends hundreds of email alerts to my email account and my > >> phone. And once it detects they are all back up, it sends hundreds of > >> "up" notices! Besides being quite annoying, it's also pretty costly > >> considering my cell phone company charges $.05 for each received > >> message. Does anyone have a recommendation for how I can avoid this? > > > > > > If it's sending notifications for only hosts and services that were > > down > > before restart this is probably what you are looking for -- > > > > http://nagios.sourceforge.net/docs/1_0/ > > configmain.html#retain_state_info > > rmation > > > > If it's truly sending out notifications for all hosts and services, > > that's not normal behavior and is likely caused by some external factor > > such as those mentioned by Chris Wilson. Without knowing what's being > > reported by nagios as the reason they are down we would only be > > speculating. > > > > -- > > Marc > > > > > > ------------------------------------------------------- > > SF.Net email is Sponsored by the Better Software Conference & EXPO > > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > > Practices > > Agile & Plan-Driven Development * Managing Projects & Teams * Testing > > & QA > > Security * Process Improvement & Measurement * > > http://www.sqe.com/bsce5sf > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > > reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jwoodson at frontiernet.net Thu Aug 4 17:15:18 2005 From: jwoodson at frontiernet.net (Jason Woodson) Date: Thu, 4 Aug 2005 11:15:18 -0400 Subject: email notice floods In-Reply-To: <1123168186.18753.2.camel@gc1216-xp-tna1.corp.gianteagle.com.> References: <69959778462c2c7bb7021c44f26d40d1@frontiernet.net> <1123168186.18753.2.camel@gc1216-xp-tna1.corp.gianteagle.com.> Message-ID: The switch is not managed, so it has no IP address. On Aug 4, 2005, at 11:09 AM, Chester R. Hosey wrote: > On Thu, 2005-08-04 at 11:06 -0400, Jason Woodson wrote: >> Actually I apologize, I did not explain the problem correctly. The >> problem is not that the computer is rebooted. The problem is that on >> rare occasion, the network switch that the Nagios server is connected >> to has gone down. Therefore, the Nagios server thinks that everything >> is down, and the email notices begin to pile up, unsent. Eventually >> when I realize there is a problem and I power the switch back up, all >> of the hundreds of notices finally get emailed out of the Nagios >> server. >> >> Jason >> > > Add a host entry for the router, and use "parent" to let Nagios know > that all of the hosts behind the router depend on it. > > Chet > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From getbacktome3 at hotmail.com Thu Aug 4 17:16:37 2005 From: getbacktome3 at hotmail.com (HP Geeza) Date: Thu, 04 Aug 2005 16:16:37 +0100 Subject: run a script based on event?? In-Reply-To: References: Message-ID: I know that this isn't the best place to ask this sort of question...but id be greatfull for any advice/help!!! I need a way to shutdown remote windows servers through an event handler in nagios...i dont quiet know how to write a script (whether it be perl or bash) which will allow me to do this. the way i understand it is there currently isnt a way to run a windwos command in linux. I can quiet easily run the shutdown command from a windows box to shutdown a remote windows machine...but becuase nagios runs in linux i need a way to shutdown windows machines from linux. Any ideas???? >From: "Marc Powell" >To: >Subject: [Nagios-users] RE: run a script based on event?? >Date: Wed, 3 Aug 2005 10:08:47 -0500 > > > > > -----Original Message----- > > From: HP Geeza [mailto:getbacktome3 at hotmail.com] > > Sent: Wednesday, August 03, 2005 10:01 AM > > To: Marc Powell; nagios-users at lists.sourceforge.net > > Subject: run a script based on event?? > > > > HI > > > > I was wondering if this is possible and whether anybody has tried it? >- I > > am > > monitoring the temperature probe in our lab via snmp...and as a result >i > > was > > wondering whether it is possible in nagios to run a script of some >sort > > (which will probably contain some sort of shutdown command) when the > > temperature triggers an event i.e when it goes above a certain >threshold. > > > > I would like to do this because if the AC busts and our lab starts to > > overheat then i would like nagios to run a script which will turn off >some > > of the machines? > >Oddly enough they're called event handlers. > >http://nagios.sourceforge.net/docs/1_0/eventhandlers.html > >-- >Marc > >p.s. Please don't e-mail me directly. Even though I participate a lot >here, I'm not dedicated Nagios support ;) > > > > >------------------------------------------------------- >SF.Net email is sponsored by: Discover Easy Linux Migration Strategies >from IBM. Find simple to follow Roadmaps, straightforward articles, >informative Webcasts and more! Get everything you need to get up to >speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS when >reporting any issue. >::: Messages without supporting info will risk being sent to /dev/null _________________________________________________________________ Want to block unwanted pop-ups? Download the free MSN Toolbar now! http://toolbar.msn.co.uk/ ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tinzauro at ha-solutions.net Thu Aug 4 17:21:11 2005 From: tinzauro at ha-solutions.net (Terry L. Inzauro) Date: Thu, 04 Aug 2005 10:21:11 -0500 Subject: email notice floods In-Reply-To: References: <69959778462c2c7bb7021c44f26d40d1@frontiernet.net> <1123168186.18753.2.camel@gc1216-xp-tna1.corp.gianteagle.com.> Message-ID: <42F23267.1030409@ha-solutions.net> Jason Woodson wrote: > The switch is not managed, so it has no IP address. > > > On Aug 4, 2005, at 11:09 AM, Chester R. Hosey wrote: > >> On Thu, 2005-08-04 at 11:06 -0400, Jason Woodson wrote: >> >>> Actually I apologize, I did not explain the problem correctly. The >>> problem is not that the computer is rebooted. The problem is that on >>> rare occasion, the network switch that the Nagios server is connected >>> to has gone down. Therefore, the Nagios server thinks that everything >>> is down, and the email notices begin to pile up, unsent. Eventually >>> when I realize there is a problem and I power the switch back up, all >>> of the hundreds of notices finally get emailed out of the Nagios >>> server. >>> >>> Jason >>> >> >> Add a host entry for the router, and use "parent" to let Nagios know >> that all of the hosts behind the router depend on it. >> >> Chet >> > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. ::: Messages without supporting info will risk > being sent to /dev/null or use one of your other hosts on the same switch as the parent. it will make the map look funny, but it iwll have the same effect. regards, _Terry ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From chris at aidworld.org Thu Aug 4 17:19:12 2005 From: chris at aidworld.org (Chris Wilson) Date: Thu, 04 Aug 2005 16:19:12 +0100 Subject: email notice floods In-Reply-To: References: <69959778462c2c7bb7021c44f26d40d1@frontiernet.net> <1123168186.18753.2.camel@gc1216-xp-tna1.corp.gianteagle.com.> Message-ID: <1123168751.22734.19.camel@rocio.int.aidworld.org> Hi Jason, > The switch is not managed, so it has no IP address. Write a plugin that checks the switch, or use another host on the switch as the parent, and assume that it never goes down. Cheers, Chris. -- (aidworld) chris wilson | chief engineer (chris at aidworld.org) ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Aug 4 17:20:38 2005 From: marc at ena.com (Marc Powell) Date: Thu, 4 Aug 2005 10:20:38 -0500 Subject: email notice floods Message-ID: Then if you have a way to determine an actual major outage from an outage of just that switch, create a plugin and make it the check_command for an arbitrary host that is the parent of all your other hosts. If you can't make that determination, how is nagios supposed to? Obviously this is important to you and is costing you money. I would suggest that you put a managed switch there that you _can_ monitor. It seems to me that your unmanaged switch isn't working out too well on a number of fronts. -- Marc > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Jason Woodson > Sent: Thursday, August 04, 2005 10:15 AM > To: users at lists.sourceforge.net> > Subject: Re: [Nagios-users] email notice floods > > The switch is not managed, so it has no IP address. > > > On Aug 4, 2005, at 11:09 AM, Chester R. Hosey wrote: > > > On Thu, 2005-08-04 at 11:06 -0400, Jason Woodson wrote: > >> Actually I apologize, I did not explain the problem correctly. The > >> problem is not that the computer is rebooted. The problem is that on > >> rare occasion, the network switch that the Nagios server is connected > >> to has gone down. Therefore, the Nagios server thinks that everything > >> is down, and the email notices begin to pile up, unsent. Eventually > >> when I realize there is a problem and I power the switch back up, all > >> of the hundreds of notices finally get emailed out of the Nagios > >> server. > >> > >> Jason > >> > > > > Add a host entry for the router, and use "parent" to let Nagios know > > that all of the hosts behind the router depend on it. > > > > Chet > > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ralph.Grothe at itdz-berlin.de Thu Aug 4 17:37:23 2005 From: Ralph.Grothe at itdz-berlin.de (Ralph.Grothe at itdz-berlin.de) Date: Thu, 4 Aug 2005 17:37:23 +0200 Subject: [Nagiosplug-help] How to interpret CRC32 errors? Message-ID: <6B893C5F2902D311A23F0090272854FB0575B7BB@litex001.lit.verwalt-berlin.de> > You're asking people to help you on their spare time. Most of your > questions so far have been either no-brainers that you would > have been > able to figure out for yourself had you made the effort, or > of the kind > that would take considerable effort to answer properly. I know that I waste the time of people who are willing to help me. Did I know more about Nagios I would happily pay back by answering others' questions. I had the impression that the developpers had left the documentation sketchy in favour of directing people to the nagios-users mailing list (at least that's what every plug-in's help screen suggests) I know what an unpleasant duty it is for developers to document. To someone so much and probably long time involved in the Nagios project as you (only assuming this as I don't know your background or role here) my questions may seem like brain farts. I only wonder why, if you are so pissed off by them, simply don't ignore them. > > On a sidenote, it's considered very rude to cross-post unless you're > making an announcement of some sort, so please refrain from > doing so in > the future. I didn't know I was cross posting. I didn't regard sending my questions to nagios-users and nagiosplug-help simultaniously as real cross postings. I didn't post in other 10 lists or so, and I didn't spam or post off-topic announcements, nor insult someone here. If the mailing list moderators opened this list to the public of all kinds of Nagios users list subscribers have to live with dumb questions of Nagios newbies like me. Having learned that I breached the list netiquette I will only post to one list in the future. > Did you log in as the NRPE user or did you just su? su'ing > maintains the > environment settings of the old user, which will have effect on some > programs. No simple su-ing. Even if I had, I would have taken care to do a full "su -" to also obtain the account's environment. I am and was logged in under the account that I configured inetd to run the nrpe server as (see 5th field, or 4th field for you) [saz at inwo2] $ id uid=102(saz) gid=20(users) groups=102(saz) [saz at inwo2] $ grep nrpe /etc/inetd.conf nrpe stream tcp nowait saz /usr/local/nagios/sbin/nrpe nrpe -c /usr/local/nagios/etc/nrpe.cfg -i > check_hpva.sh prints something to stderr. This causes the > NRPE daemon to > miscalculate the checksum. When the plugin does the same it > arrives at > an invalid result. My script isn't writing anything to stderr, and it's outputting a single line to stdout (which is I think is in accordance to plug-in developer's guidelines) [saz at inwo2] $ /usr/local/nagios/libexec/check_hpva.sh 2>/dev/null | cat -n 1 OK: HP Virtual Array "va" on inwo2 all FRUs State Good ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ssugar at proserveit.com Thu Aug 4 17:39:34 2005 From: ssugar at proserveit.com (Scott Sugar) Date: Thu, 4 Aug 2005 11:39:34 -0400 Subject: GroundWork Monitor Architect Message-ID: I tried to get it running, had some problems, but i didnt try very hard... I also realized that to really understand nagios you should be working with the actual config files... it may be a bit of a steeper learning curve, but i havent seen a gui front end that encompasses in a user friendly manner all of the features that are possible with nagios. Also if ethan releases a new version of nagios you have to hope that groundwork will keep up with him, or that he will make the cfg files backwards compatible... I did use nagat (web based nagios admin tool) however when i worked with nagios 1 until i sorted out the config files so it may help to at least get some stuff up and running Maybe other people use groundwork and it works very well for them tho... Scott ________________________________ From: nagios-users-admin at lists.sourceforge.net on behalf of Danny Russell Sent: Wed 8/3/2005 5:22 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] GroundWork Monitor Architect http://sourceforge.net/projects/monarch http://dev.itgroundwork.com/products/gwma-screenshots.html Has anyone tried this to manage their Nagios? What do people think of this? Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: From ssugar at proserveit.com Thu Aug 4 17:43:45 2005 From: ssugar at proserveit.com (Scott Sugar) Date: Thu, 4 Aug 2005 11:43:45 -0400 Subject: email notice floods Message-ID: Add in an extra service that attempts to ping a host that is always up and is outside of that switch, actually if the switch shuts off, it could even be another machine inside the switch. We will call that service1. Now make every service dependant on service1. Then just set the contact of service1 to be yourself so you know when that switch is down. Although if nagios is behind that switch as well, your notification wont get out until the switch is back up. Scott ________________________________ From: nagios-users-admin at lists.sourceforge.net on behalf of Jason Woodson Sent: Thu 8/4/2005 11:15 AM To: Subject: Re: [Nagios-users] email notice floods The switch is not managed, so it has no IP address. On Aug 4, 2005, at 11:09 AM, Chester R. Hosey wrote: > On Thu, 2005-08-04 at 11:06 -0400, Jason Woodson wrote: >> Actually I apologize, I did not explain the problem correctly. The >> problem is not that the computer is rebooted. The problem is that on >> rare occasion, the network switch that the Nagios server is connected >> to has gone down. Therefore, the Nagios server thinks that everything >> is down, and the email notices begin to pile up, unsent. Eventually >> when I realize there is a problem and I power the switch back up, all >> of the hundreds of notices finally get emailed out of the Nagios >> server. >> >> Jason >> > > Add a host entry for the router, and use "parent" to let Nagios know > that all of the hosts behind the router depend on it. > > Chet > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- An HTML attachment was scrubbed... URL: From sghosh at sghosh.org Thu Aug 4 18:30:32 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Thu, 4 Aug 2005 12:30:32 -0400 (EDT) Subject: How to interpret CRC32 errors? In-Reply-To: <6B893C5F2902D311A23F0090272854FB0575B7B6@litex001.lit.verwalt-berlin.de> References: <6B893C5F2902D311A23F0090272854FB0575B7B6@litex001.lit.verwalt-berlin.de> Message-ID: On Thu, 4 Aug 2005 Ralph.Grothe at itdz-berlin.de wrote: > Hi, > > I'm currently writing a custom shell script plug-in that simply > checks the state of an HP Virtual Array. > > I sourced utils.sh in it and return the proposed > STATE_{OK|CRITICAL|UNKNOWN} return codes > depending on the outcom. > I didn't care for WARNING as I only distinguish between OK and > CRITICAL. > > I would submit the script hadn't I received contemptuous > reactions by some expert here on last occasion. > > The script isn't doing much more than parsing the States of all > FRUs of the array and returning CRITICAL > if something other than state Good is found, OK elsewise. > > The script doesn't require higher privileges than the nrpe daemon > has, > and it doesn't produce any output (apart from the final oneliner > indicating the state), > nor does it attempt to write anywhere. > > If I run it at the shell under the uid of the nrpe daemon it > works fine. > > > $ /usr/local/nagios/libexec/check_hpva.sh > > OK: HP Virtual Array "va" on inwo2 all FRUs State Good > > Whereas when I run it via check_nrpe I receive the to me > meaningless CRC32 error. > > $ /usr/local/nagios/libexec/check_nrpe -H 127.0.0.1 -c > check_hpva_INWO2 > CHECK_NRPE: Response packet had invalid CRC32. > > In nrpe.cfg it's defined as > > $ grep check_hpva /usr/local/nagios/etc/nrpe.cfg > command[check_hpva_INWO2]=/usr/local/nagios/libexec/check_hpva.sh > > > What's going on here? > It looks like check_nrpe's calc of the crc32 on the payload is not matching the crc32 calculated by nrpe. The crc32 is a relatively simple checksum attached to the payload for both requests and responses. Try running "check_nrpe -H host" It should return the version of the nrpe on the remote host - if not verify that it was compiled properly. -- -sg ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ralph.Grothe at itdz-berlin.de Thu Aug 4 18:31:29 2005 From: Ralph.Grothe at itdz-berlin.de (Ralph.Grothe at itdz-berlin.de) Date: Thu, 4 Aug 2005 18:31:29 +0200 Subject: [Nagiosplug-help] How to interpret CRC32 e rrors? Message-ID: <6B893C5F2902D311A23F0090272854FB0575B7BD@litex001.lit.verwalt-berlin.de> Good news (for me). I found the remedy against unruly CRC32 NRPE chokes. When I tested my script at the shell I made sure by redirecting stderr to /dev/null that indeed nothing was sent there. However, when this script got executed (or rather crchecked) by nrpe something must have sneaked to stderr. So I simply put this statement in the beginning of my script: [saz at inwo2] $ grep -n exec\ /usr/local/nagios/libexec/check_hpva.sh 6:exec 2>/dev/null By shutting stderr the a priori crcheck cannot produce differences. Now I can execute through nrpe [saz at inwo2] $ /usr/local/nagios/libexec/check_nrpe -H 127.0.0.1 -c check_hpva_INWO2 OK: HP Virtual Array "va" on inwo2 all FRUs State Good And even from the nagios server remotely this works now [nagios at daisy:~] $ libexec/check_nrpe -H inwo2 -c check_hpva_INWO2 OK: HP Virtual Array "va" on inwo2 all FRUs State Good Lesson learnt, for all own plug-ins you write explicitly close stderr to avoid any CRC32 annoyances. So this conclusion would take only one line to be added to the documentation! I again rechecked the "Nagios plug-in development guidelines" but didn't find such a reference. It would have saved me two hours and you my reduntant noise. Happy NRPEing Ralph > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of > Ralph.Grothe at itdz-berlin.de > Sent: Thursday, August 04, 2005 5:37 PM > To: ae at op5.se > Cc: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] RE: [Nagiosplug-help] How to interpret CRC32 > errors? > > > > You're asking people to help you on their spare time. Most of > your > > questions so far have been either no-brainers that you would > > have been > > able to figure out for yourself had you made the effort, or > > of the kind > > that would take considerable effort to answer properly. > > I know that I waste the time of people who are willing to help > me. > > Did I know more about Nagios I would happily pay back by > answering others' questions. > > I had the impression that the developpers had left the > documentation sketchy in favour of directing people to the > nagios-users mailing list (at least that's what every plug-in's > help screen suggests) > I know what an unpleasant duty it is for developers to document. > > To someone so much and probably long time involved in the Nagios > project as you > (only assuming this as I don't know your background or role here) > my questions may seem like brain farts. > > I only wonder why, if you are so pissed off by them, simply don't > ignore them. > > > > > On a sidenote, it's considered very rude to cross-post unless > you're > > making an announcement of some sort, so please refrain from > > doing so in > > the future. > > I didn't know I was cross posting. > I didn't regard sending my questions to nagios-users and > nagiosplug-help simultaniously > as real cross postings. > I didn't post in other 10 lists or so, and I didn't spam or post > off-topic announcements, nor insult someone here. > > If the mailing list moderators opened this list to the public of > all kinds of Nagios users > list subscribers have to live with dumb questions of Nagios > newbies like me. > > Having learned that I breached the list netiquette I will only > post to one list in the future. > > > Did you log in as the NRPE user or did you just su? su'ing > > maintains the > > environment settings of the old user, which will have effect on > some > > programs. > > No simple su-ing. > Even if I had, I would have taken care to do a full "su -" to > also obtain the account's environment. > I am and was logged in under the account that I configured inetd > to run the nrpe server as > (see 5th field, or 4th field for you) > > [saz at inwo2] > $ id > uid=102(saz) gid=20(users) groups=102(saz) > > [saz at inwo2] > $ grep nrpe /etc/inetd.conf > nrpe stream tcp nowait saz /usr/local/nagios/sbin/nrpe nrpe -c > /usr/local/nagios/etc/nrpe.cfg -i > > > > check_hpva.sh prints something to stderr. This causes the > > NRPE daemon to > > miscalculate the checksum. When the plugin does the same it > > arrives at > > an invalid result. > > > My script isn't writing anything to stderr, and it's outputting a > single line to stdout > (which is I think is in accordance to plug-in developer's > guidelines) > > > [saz at inwo2] > $ /usr/local/nagios/libexec/check_hpva.sh 2>/dev/null | cat -n > 1 OK: HP Virtual Array "va" on inwo2 all FRUs State > Good > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development > Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * > Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Thu Aug 4 19:24:46 2005 From: ae at op5.se (Andreas Ericsson) Date: Thu, 04 Aug 2005 19:24:46 +0200 Subject: [Nagiosplug-help] How to interpret CRC32 errors? In-Reply-To: <6B893C5F2902D311A23F0090272854FB0575B7BB@litex001.lit.verwalt-berlin.de> References: <6B893C5F2902D311A23F0090272854FB0575B7BB@litex001.lit.verwalt-berlin.de> Message-ID: <42F24F5E.5030500@op5.se> Ralph.Grothe at itdz-berlin.de wrote: >>You're asking people to help you on their spare time. Most of > > your > >>questions so far have been either no-brainers that you would >>have been >>able to figure out for yourself had you made the effort, or >>of the kind >>that would take considerable effort to answer properly. > > > I know that I waste the time of people who are willing to help > me. > I wasn't remarking on your questions per se, but the fact that you seemed annoyed about an answer you got. That said, I'll just cut to the chase. > >>Did you log in as the NRPE user or did you just su? su'ing >>maintains the >>environment settings of the old user, which will have effect on > > some > >>programs. > > > No simple su-ing. > Even if I had, I would have taken care to do a full "su -" to > also obtain the account's environment. > I am and was logged in under the account that I configured inetd > to run the nrpe server as > (see 5th field, or 4th field for you) > > [saz at inwo2] > $ id > uid=102(saz) gid=20(users) groups=102(saz) > > [saz at inwo2] > $ grep nrpe /etc/inetd.conf > nrpe stream tcp nowait saz /usr/local/nagios/sbin/nrpe nrpe -c > /usr/local/nagios/etc/nrpe.cfg -i > > > >>check_hpva.sh prints something to stderr. This causes the >>NRPE daemon to >>miscalculate the checksum. When the plugin does the same it >>arrives at >>an invalid result. > > > > My script isn't writing anything to stderr, and it's outputting a > single line to stdout > (which is I think is in accordance to plug-in developer's > guidelines) > Indeed it is. However, one or more of the commands executed may print something to stderr, which will show up as stderr output. > > [saz at inwo2] > $ /usr/local/nagios/libexec/check_hpva.sh 2>/dev/null | cat -n > 1 OK: HP Virtual Array "va" on inwo2 all FRUs State > Good > Not good. Or more accurate; Perhaps good. You're redirecting stderr to /dev/null, so it's impossible to know if the script (or any of its commands) print anything to it. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Thu Aug 4 19:27:38 2005 From: ae at op5.se (Andreas Ericsson) Date: Thu, 04 Aug 2005 19:27:38 +0200 Subject: [Nagiosplug-help] How to interpret CRC32 e rrors? In-Reply-To: <6B893C5F2902D311A23F0090272854FB0575B7BD@litex001.lit.verwalt-berlin.de> References: <6B893C5F2902D311A23F0090272854FB0575B7BD@litex001.lit.verwalt-berlin.de> Message-ID: <42F2500A.1070702@op5.se> Ralph.Grothe at itdz-berlin.de wrote: > Good news (for me). > > I found the remedy against unruly CRC32 NRPE chokes. > > When I tested my script at the shell I made sure by redirecting > stderr to /dev/null > that indeed nothing was sent there. > > However, when this script got executed (or rather crchecked) by > nrpe > something must have sneaked to stderr. > > So I simply put this statement in the beginning of my script: > > [saz at inwo2] > $ grep -n exec\ /usr/local/nagios/libexec/check_hpva.sh > 6:exec 2>/dev/null > > > By shutting stderr the a priori crcheck cannot produce > differences. > > Now I can execute through nrpe > > [saz at inwo2] > $ /usr/local/nagios/libexec/check_nrpe -H 127.0.0.1 -c > check_hpva_INWO2 > OK: HP Virtual Array "va" on inwo2 all FRUs State Good > > > > And even from the nagios server remotely this works now > > > [nagios at daisy:~] > $ libexec/check_nrpe -H inwo2 -c check_hpva_INWO2 > OK: HP Virtual Array "va" on inwo2 all FRUs State Good > > > > Lesson learnt, for all own plug-ins you write explicitly close > stderr > to avoid any CRC32 annoyances. > > So this conclusion would take only one line to be added to the > documentation! > > I again rechecked the "Nagios plug-in development guidelines" but > didn't find such a reference. > It would have saved me two hours and you my reduntant noise. > That's because this is a shortcoming in NRPE and not in the plugins. Nagios (who receives all its checkresults firsthand, in a manner of speaking) doesn't do any checksumming, since it could only relate it to whatever checksum itself would calculate later on. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From wrjacqmein at gmail.com Thu Aug 4 23:20:01 2005 From: wrjacqmein at gmail.com (Bill Jacqmein) Date: Thu, 4 Aug 2005 17:20:01 -0400 Subject: [Nagiosplug-help] How to interpret CRC32 errors? In-Reply-To: <42F24F5E.5030500@op5.se> References: <6B893C5F2902D311A23F0090272854FB0575B7BB@litex001.lit.verwalt-berlin.de> <42F24F5E.5030500@op5.se> Message-ID: <3c9a5bae05080414205bd2d1b2@mail.gmail.com> Just my two cents, but if ssh is available why not just use the check_by_ssh command to run the script and return the result. On 8/4/05, Andreas Ericsson wrote: > > Ralph.Grothe at itdz-berlin.de wrote: > >>You're asking people to help you on their spare time. Most of > > > > your > > > >>questions so far have been either no-brainers that you would > >>have been > >>able to figure out for yourself had you made the effort, or > >>of the kind > >>that would take considerable effort to answer properly. > > > > > > I know that I waste the time of people who are willing to help > > me. > > > > I wasn't remarking on your questions per se, but the fact that you > seemed annoyed about an answer you got. > > That said, I'll just cut to the chase. > > > > >>Did you log in as the NRPE user or did you just su? su'ing > >>maintains the > >>environment settings of the old user, which will have effect on > > > > some > > > >>programs. > > > > > > No simple su-ing. > > Even if I had, I would have taken care to do a full "su -" to > > also obtain the account's environment. > > I am and was logged in under the account that I configured inetd > > to run the nrpe server as > > (see 5th field, or 4th field for you) > > > > [saz at inwo2] > > $ id > > uid=102(saz) gid=20(users) groups=102(saz) > > > > [saz at inwo2] > > $ grep nrpe /etc/inetd.conf > > nrpe stream tcp nowait saz /usr/local/nagios/sbin/nrpe nrpe -c > > /usr/local/nagios/etc/nrpe.cfg -i > > > > > > > >>check_hpva.sh prints something to stderr. This causes the > >>NRPE daemon to > >>miscalculate the checksum. When the plugin does the same it > >>arrives at > >>an invalid result. > > > > > > > > My script isn't writing anything to stderr, and it's outputting a > > single line to stdout > > (which is I think is in accordance to plug-in developer's > > guidelines) > > > > Indeed it is. However, one or more of the commands executed may print > something to stderr, which will show up as stderr output. > > > > > [saz at inwo2] > > $ /usr/local/nagios/libexec/check_hpva.sh 2>/dev/null | cat -n > > 1 OK: HP Virtual Array "va" on inwo2 all FRUs State > > Good > > > > Not good. Or more accurate; Perhaps good. You're redirecting stderr to > /dev/null, so it's impossible to know if the script (or any of its > commands) print anything to it. > > -- > Andreas Ericsson andreas.ericsson at op5.se > OP5 AB www.op5.se > Lead Developer > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -------------- next part -------------- An HTML attachment was scrubbed... URL: From g.vickers at qut.edu.au Fri Aug 5 01:57:16 2005 From: g.vickers at qut.edu.au (Greg Vickers) Date: Fri, 05 Aug 2005 09:57:16 +1000 Subject: How to reduce Host Check rate ? In-Reply-To: <20050804073223.GE22548@poldi.lf.net> References: <20050804073223.GE22548@poldi.lf.net> Message-ID: <42F2AB5C.2010502@qut.edu.au> Martin, The key here is how you have set up your checks. It looks like your service and host checks are set up to alert you too quickly for one of these hosts that has outages. The behavior you observe is a central tenet of Nagios, that as soon as a service enters a non-OK state Nagios will check that host to see if that host is alive. (If that host is not alive, there's no point in alerting for the service, is there?) If you have frequent outages on your hosts then I suggest several methods: 1) Since you are using a ping service check, suppress any host notifications for those hosts and tune your service check so that no service alerts are sent out for x minutes (i.e. three minutes if your outages are two minutes or less) 2) Maintain your alerting regime, implement flapping (RTFM on how to set this up - trickiest of these methods IMHO) 3) Maintain your current setup and use escalations to suppress notifications. HTH, Greg Martin Haller wrote: > Hi, > > Nagios produces some noisy host alerts we want to reduce. The > situation in detail: > > If an host/router goes down for 2 minutes, for example, the PING > service check will notice this and the PING state will go to soft > CRITICAL. > > The host check is fired n times (max_check_attempts in the host > profile) - but - with no delay such as the service checks have one > (retry_check_interval). > > The Problem is that the host state changes to hard critical in a few > seconds and email/sms ist sent out. The result is a huge crowd of > services arpearing for just one or two minutes in state hard > CRITICAL. > > The nagios version we use is 2.0b3. > > My question is: Did I just not find the delay parameter for tuning the > host check retry rate ? How did You tune Your setup to avoid this ? > -- Greg Vickers Project Manager, IT Security Information Technology Services Queensland University of Technology L12, 126 Margaret St, Brisbane Phone: (07) 3864 9536 Email: g.vickers at qut.edu.au IT Security web site: http://www.its.qut.edu.au/itsecurity/ CRICOS No. 00213J ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cmailhebuau at nerim.net Thu Aug 4 11:43:27 2005 From: cmailhebuau at nerim.net (Christophe Mailhebuau) Date: Thu, 4 Aug 2005 11:43:27 +0200 Subject: log file Message-ID: <20050804094327.GA17568@justlinux.org> Hi, I need to rotate nagios log every day, start at 6am to 6am but default configuration is 00.00 to 00.00 hours. I just need to change hours. I use 1.2 nagios version. Can you help me ? Best regards -- Cordialement, Christophe Mailhebuau http://www.justlinux.org Administrateur syst?mes et r?seaux GPG: 1024D/75B07F8D: BD18 2D01 D954 A339 E35B 9EA1 4240 0410 75B0 7F8D -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Digital signature URL: From Erwin.Mascardo at intelsat.com Thu Aug 4 14:25:26 2005 From: Erwin.Mascardo at intelsat.com (Mascardo, Erwin) Date: Thu, 4 Aug 2005 08:25:26 -0400 Subject: Checking of multicasts Message-ID: >-----Original Message----- >From: nagios-users-admin at lists.sourceforge.net >[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of >Joop Jansen >Sent: Tuesday, 02 August, 2005 11:29 >To: nagios-users at lists.sourceforge.net >Subject: [Nagios-users] Checking of multicasts > > >Following setup: > >We are using a network in a multicast setup. > >This means that there are several remote sites under a multicast. >(remotes with inbound connection, and one outbound towards all >the remotes). > >I also would like to monitor the multicast itself, so to receive a >notification >when the whole multicast goes down. > >I was thinking to use check_icmp to ping all the remotes of >that multicast. >However check_icmp has three ways to operate (check_host/check_icmp and >check_all). > >Check_host would be perfect, only I need to have the opposite. >So It should >send >one icmp packet to all the remotes, and only return to the >state critical >when all the remotes are not reachable. > >The check_host just returnes critical when already one site is down. > >Does someone has done something similar? > >Or is using a different approach? > >Thanks in advance > >Joop To take some good advice in a far different context, wrap that rascal. Put check_host/check_icmp in a Perl wrapper (it would take some hairy shell code to interpret the output the way you want to) which breaks apart the output and looks for "lost 100%" for every host. If that is true, then return CRITICAL...otherwise, return OK. --Erwin ############################################################ Intelsat is a global communications provider offering flexible and secure services to customers in over 220 countries and territories. Intelsat has maintained a leadership position for over 40 years by distributing video, voice, and data for television and content providers, government and military entities, major corporations, telecommunications carriers, and Internet service providers. Intelsat's reach, power and expanding solutions portfolio deliver information reliably and quickly to every corner of the globe. For more information, visit www.intelsat.com. ############################################################ This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Intelsat, Ltd. and its subsidiaries. ############################################################ ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Chester.Hosey at gianteagle.com Thu Aug 4 15:42:21 2005 From: Chester.Hosey at gianteagle.com (Chester R. Hosey) Date: Thu, 04 Aug 2005 09:42:21 -0400 Subject: NRPE: Conditional parsing of nrpe.cfg supported? In-Reply-To: <6B893C5F2902D311A23F0090272854FB0575B7B5@litex001.lit.verwalt-berlin.de> References: <6B893C5F2902D311A23F0090272854FB0575B7B5@litex001.lit.verwalt-berlin.de> Message-ID: <8462.29077219523$1123220879@news.gmane.org> On Thu, 2005-08-04 at 13:52 +0200, Ralph.Grothe at itdz-berlin.de wrote: > Hi, > > I wonder if something like this is possible in nrpe.cfg (with > liberal artistic macrolike syntax here) > > > > #if defined dont_blame_nrpe > command[check_tns]=/export/oracle/V9.2.0 > PATH=/usr/bin:/export/oracle/V9.2.0/bin > /usr/local/nagios/libexec/check_oracle --tns $ARG1$ > #else > command[check_tns]=/export/oracle/V9.2.0 > PATH=/usr/bin:/export/oracle/V9.2.0/bin > /usr/local/nagios/libexec/check_oracle --tns MY_SID > #endif > > > > Regards > -- > Ralph Grothe Not that I know of, but if you're looking for a preprocessor, use a preprocessor! I'd cp nrpe.cfg nrpe.cfg.m4, and edit nrpe.cfg.m4 to include something like the following: dnl This is the preprocessor source to nrpe.cfg dnl Run it through m4 with 'm4 nrpe.cfg.m4' to dnl generate usable output. define(`DONT_BLAME_NRPE', `0') # normal stuff... blah blah blah dont_blame_nrpe=DONT_BLAME_NRPE # more stuff... blah blah blah ifelse(DONT_BLAME_NRPE, 0, `command[check_tns]=do_what_i_want', `command[check_tns]=do_what_nrpe_allows'); If you're feeling really ambitious, you could even come up with a makefile: all: nrpe.cfg nrpe.cfg: nrpe.cfg.m4 m4 nrpe.cfg.m4 > nrpe.cfg ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ludo.Bosmans at aureusim.be Fri Aug 5 09:25:33 2005 From: Ludo.Bosmans at aureusim.be (Ludo Bosmans) Date: Fri, 5 Aug 2005 09:25:33 +0200 Subject: run a script based on event?? Message-ID: <02769B432700E649B14C0847840DC83B379011@becompanysrv020.consulting.becompany> Hi, Have a look to following link, it is quiet easy to make a windows bat file with the correct options to reboot. http://windows.about.com/od/schedulingandbatchjobs/l/aa012400a.htm Install nrpe_nt on the windows server and and use check_nrpe to execute the reboot bat file on the win server when it is necessary, f.e. with an eventhandler script. Kind regards, ludo -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of HP Geeza Sent: donderdag 4 augustus 2005 17:17 To: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] RE: run a script based on event?? I know that this isn't the best place to ask this sort of question...but id be greatfull for any advice/help!!! I need a way to shutdown remote windows servers through an event handler in nagios...i dont quiet know how to write a script (whether it be perl or bash) which will allow me to do this. the way i understand it is there currently isnt a way to run a windwos command in linux. I can quiet easily run the shutdown command from a windows box to shutdown a remote windows machine...but becuase nagios runs in linux i need a way to shutdown windows machines from linux. Any ideas???? >From: "Marc Powell" >To: >Subject: [Nagios-users] RE: run a script based on event?? >Date: Wed, 3 Aug 2005 10:08:47 -0500 > > > > > -----Original Message----- > > From: HP Geeza [mailto:getbacktome3 at hotmail.com] > > Sent: Wednesday, August 03, 2005 10:01 AM > > To: Marc Powell; nagios-users at lists.sourceforge.net > > Subject: run a script based on event?? > > > > HI > > > > I was wondering if this is possible and whether anybody has tried it? >- I > > am > > monitoring the temperature probe in our lab via snmp...and as a result >i > > was > > wondering whether it is possible in nagios to run a script of some >sort > > (which will probably contain some sort of shutdown command) when the > > temperature triggers an event i.e when it goes above a certain >threshold. > > > > I would like to do this because if the AC busts and our lab starts to > > overheat then i would like nagios to run a script which will turn off >some > > of the machines? > >Oddly enough they're called event handlers. > >http://nagios.sourceforge.net/docs/1_0/eventhandlers.html > >-- >Marc > >p.s. Please don't e-mail me directly. Even though I participate a lot >here, I'm not dedicated Nagios support ;) > > > > >------------------------------------------------------- >SF.Net email is sponsored by: Discover Easy Linux Migration Strategies >from IBM. Find simple to follow Roadmaps, straightforward articles, >informative Webcasts and more! Get everything you need to get up to >speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS when >reporting any issue. >::: Messages without supporting info will risk being sent to /dev/null _________________________________________________________________ Want to block unwanted pop-ups? Download the free MSN Toolbar now! http://toolbar.msn.co.uk/ ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From del at bytemine.net Thu Aug 4 14:39:53 2005 From: del at bytemine.net (David Elze) Date: Thu, 4 Aug 2005 14:39:53 +0200 Subject: Nagios 2.0b4 install on OpenBSD 3.7 Message-ID: <20050804123953.GA5232@bodomchild.dyndns.org> Hi, just wanted to give 2.0b4 a try but after a error-free configure with the working parameters from previous 2.0b3 'sudo make all' tells me: cd ./base && make gcc -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCORE -c broker.c In file included from ../include/config.h:114, from broker.c:26: /usr/include/sys/resource.h:56: error: field `ru_utime' has incomplete type /usr/include/sys/resource.h:57: error: field `ru_stime' has incomplete type and make breaks with this error. Any ideas? Thanks a lot and best regards, David -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Digital signature URL: From kindy_s at yahoo.fr Fri Aug 5 11:48:39 2005 From: kindy_s at yahoo.fr (Kindy Sylla) Date: Fri, 5 Aug 2005 11:48:39 +0200 (CEST) Subject: Running two nagios instances on same host Message-ID: <20050805094839.41736.qmail@web26906.mail.ukl.yahoo.com> Hi, I am wondering if it is possible / recommended to run two nagios instances on the same host. The idea is two have one instance on production while another instance is running on test where modifications can be made without stopping , restarting the one in production. Anyone has tried it? Any pros/cons? Regards, Kindy Sylla --------------------------------- Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger T?l?chargez le ici ! -------------- next part -------------- An HTML attachment was scrubbed... URL: From dangelo at maxmara.com Fri Aug 5 12:22:06 2005 From: dangelo at maxmara.com (Luca D'Angelo) Date: Fri, 5 Aug 2005 12:22:06 +0200 Subject: Nagios statusmap symbols Message-ID: Hi, I've just finished to install and configure nagios, it works fine. I've defined a mine statusmap layout, anyone knows howto resize circle around symbols? (I mean I would like to resize circle that indicate object's status) I've already resized my own symbols (and created gd2 images), but I can't resize object's status circle. Thank you very much, best regards, Luca D'Angelo. ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From getbacktome3 at hotmail.com Fri Aug 5 12:43:18 2005 From: getbacktome3 at hotmail.com (HP Geeza) Date: Fri, 05 Aug 2005 11:43:18 +0100 Subject: run a script based on event?? In-Reply-To: <02769B432700E649B14C0847840DC83B379011@becompanysrv020.consulting.becompany> References: <02769B432700E649B14C0847840DC83B379011@becompanysrv020.consulting.becompany> Message-ID: Ok im a little confussed now...is the following possible via nagios? Monitor a temp probe in lab (this i know is possible via snmp)...if the temp value goes critical then run check_nrpe (through an event handler)...which will then run a script on the windows machine? --->>> can check_nrpe be run as an event handler once the temp value is critical? I can shutdown the windows machine fine as i have already got the commands to do that. I just need a way to call that script/bat flile when the temp value goes critical. >From: "Ludo Bosmans" >To: "HP Geeza" >, >Subject: RE: [Nagios-users] RE: run a script based on event?? >Date: Fri, 5 Aug 2005 09:25:33 +0200 > >Hi, > >Have a look to following link, it is quiet easy to make a windows bat >file with the correct options to reboot. >http://windows.about.com/od/schedulingandbatchjobs/l/aa012400a.htm > >Install nrpe_nt on the windows server and and use check_nrpe to execute >the reboot bat file on the win server when it is necessary, f.e. with an >eventhandler script. > >Kind regards, > >ludo > > >-----Original Message----- >From: nagios-users-admin at lists.sourceforge.net >[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of HP Geeza >Sent: donderdag 4 augustus 2005 17:17 >To: nagios-users at lists.sourceforge.net >Subject: RE: [Nagios-users] RE: run a script based on event?? > >I know that this isn't the best place to ask this sort of question...but >id >be greatfull for any advice/help!!! > >I need a way to shutdown remote windows servers through an event handler >in >nagios...i dont quiet know how to write a script (whether it be perl or >bash) which will allow me to do this. the way i understand it is there >currently isnt a way to run a windwos command in linux. > >I can quiet easily run the shutdown command from a windows box to >shutdown a >remote windows machine...but becuase nagios runs in linux i need a way >to >shutdown windows machines from linux. > >Any ideas???? > > >From: "Marc Powell" > >To: > >Subject: [Nagios-users] RE: run a script based on event?? > >Date: Wed, 3 Aug 2005 10:08:47 -0500 > > > > > > > > > -----Original Message----- > > > From: HP Geeza [mailto:getbacktome3 at hotmail.com] > > > Sent: Wednesday, August 03, 2005 10:01 AM > > > To: Marc Powell; nagios-users at lists.sourceforge.net > > > Subject: run a script based on event?? > > > > > > HI > > > > > > I was wondering if this is possible and whether anybody has tried >it? > >- I > > > am > > > monitoring the temperature probe in our lab via snmp...and as a >result > >i > > > was > > > wondering whether it is possible in nagios to run a script of some > >sort > > > (which will probably contain some sort of shutdown command) when the > > > temperature triggers an event i.e when it goes above a certain > >threshold. > > > > > > I would like to do this because if the AC busts and our lab starts >to > > > overheat then i would like nagios to run a script which will turn >off > >some > > > of the machines? > > > >Oddly enough they're called event handlers. > > > >http://nagios.sourceforge.net/docs/1_0/eventhandlers.html > > > >-- > >Marc > > > >p.s. Please don't e-mail me directly. Even though I participate a lot > >here, I'm not dedicated Nagios support ;) > > > > > > > > > >------------------------------------------------------- > >SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > >from IBM. Find simple to follow Roadmaps, straightforward articles, > >informative Webcasts and more! Get everything you need to get up to > >speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click > >_______________________________________________ > >Nagios-users mailing list > >Nagios-users at lists.sourceforge.net > >https://lists.sourceforge.net/lists/listinfo/nagios-users > >::: Please include Nagios version, plugin version (-v) and OS when > >reporting any issue. > >::: Messages without supporting info will risk being sent to /dev/null > >_________________________________________________________________ >Want to block unwanted pop-ups? Download the free MSN Toolbar now! >http://toolbar.msn.co.uk/ > > > >------------------------------------------------------- >SF.Net email is Sponsored by the Better Software Conference & EXPO >September 19-22, 2005 * San Francisco, CA * Development Lifecycle >Practices >Agile & Plan-Driven Development * Managing Projects & Teams * Testing & >QA >Security * Process Improvement & Measurement * >http://www.sqe.com/bsce5sf >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS when >reporting any issue. >::: Messages without supporting info will risk being sent to /dev/null > > >------------------------------------------------------- >SF.Net email is Sponsored by the Better Software Conference & EXPO >September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices >Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA >Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS when >reporting any issue. >::: Messages without supporting info will risk being sent to /dev/null _________________________________________________________________ Be the first to hear what's new at MSN - sign up to our free newsletters! http://www.msn.co.uk/newsletters ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From chris at aidworld.org Fri Aug 5 13:17:31 2005 From: chris at aidworld.org (Chris Wilson) Date: Fri, 05 Aug 2005 12:17:31 +0100 Subject: run a script based on event?? In-Reply-To: References: Message-ID: <1123240650.28217.25.camel@ndiyo-server.int.aidworld.org> Hi, > Ok im a little confussed now...is the following possible via nagios? > > Monitor a temp probe in lab (this i know is possible via snmp)...if the temp > value goes critical then run check_nrpe (through an event handler)...which > will then run a script on the windows machine? > > --->>> can check_nrpe be run as an event handler once the temp value is > critical? Yes. You can run any command as an event handler, including NRPE, check_by_ssh, or ssh itself. See the Event Handler documentation link which Marc Powell sent you. But rather than running check_nrpe directly, you probably want to run a shell script as your event handler, because you will need to check the type of event (CRITICAL state, HARD type) before shutting down the machine: #!/bin/sh if [ "$1" = "CRITICAL" -a "$2" = "HARD" ]; then check_nrpe -H windows.box -c shutdown.command.name fi assuming that you pass $SERVICESTATE$ and $STATETYPE$ as the parameters to the event handler in your command definition, as shown in the Event Handlers documentation. Cheers, Chris. -- (aidworld) chris wilson | chief engineer (chris at aidworld.org) ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ludo.Bosmans at aureusim.be Fri Aug 5 13:19:14 2005 From: Ludo.Bosmans at aureusim.be (Ludo Bosmans) Date: Fri, 5 Aug 2005 13:19:14 +0200 Subject: run a script based on event?? Message-ID: <02769B432700E649B14C0847840DC83B379019@becompanysrv020.consulting.becompany> Geeza, Yes of course this is possible. 1) On your winserver install the nrpe service as documented in the README or INSTALL guide and adapt nrpe.cfg as needed. So in your nrpe.cfg file (on the win server) there should be a config entry: command[reboot_server]=c\reboot.bat 2) Make a bat file that contain the shutdown.exe command with the correct parameters. 3) In your checkcommands.cfg file create a command(this is an example): # reboot_win_server define command{ command_name reboot_win_server command line $USER1$/reboot_win_server.sh $HOSTNAME$ $HOSTADDRESS$ } 4) In your plugin directory make a small script(reboot_win_server.sh): This example is just the minimum #bin/sh HOST_NAME=$1 IP_ADDRESS=$2 /usr/lib/nagios/plugins/check_nrpe -H $HOST_ADDRESS -t 5 -c reboot_server 5) Of course there are alternatives, it is possible to define directly in the checkcommands.cfg the check_nrpe instead of calling a script: # reboot_win_server define command{ command_name reboot_win_server command line $USER1$/check_nrpe -H $HOSTADDRESS$ -t 5 -c reboot_server } 6) To test, at least install the win site, try a manual execution of the check_nrpe ... reboot 7) Finally I didn't really test this explanation, so I hope that I didn't have make mistakes in my explanation. Kind regards, Ludo -----Original Message----- From: HP Geeza [mailto:getbacktome3 at hotmail.com] Sent: vrijdag 5 augustus 2005 12:43 To: Ludo Bosmans; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] RE: run a script based on event?? Ok im a little confussed now...is the following possible via nagios? Monitor a temp probe in lab (this i know is possible via snmp)...if the temp value goes critical then run check_nrpe (through an event handler)...which will then run a script on the windows machine? --->>> can check_nrpe be run as an event handler once the temp value is critical? I can shutdown the windows machine fine as i have already got the commands to do that. I just need a way to call that script/bat flile when the temp value goes critical. >From: "Ludo Bosmans" >To: "HP Geeza" >, >Subject: RE: [Nagios-users] RE: run a script based on event?? >Date: Fri, 5 Aug 2005 09:25:33 +0200 > >Hi, > >Have a look to following link, it is quiet easy to make a windows bat >file with the correct options to reboot. >http://windows.about.com/od/schedulingandbatchjobs/l/aa012400a.htm > >Install nrpe_nt on the windows server and and use check_nrpe to execute >the reboot bat file on the win server when it is necessary, f.e. with an >eventhandler script. > >Kind regards, > >ludo > > >-----Original Message----- >From: nagios-users-admin at lists.sourceforge.net >[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of HP Geeza >Sent: donderdag 4 augustus 2005 17:17 >To: nagios-users at lists.sourceforge.net >Subject: RE: [Nagios-users] RE: run a script based on event?? > >I know that this isn't the best place to ask this sort of question...but >id >be greatfull for any advice/help!!! > >I need a way to shutdown remote windows servers through an event handler >in >nagios...i dont quiet know how to write a script (whether it be perl or >bash) which will allow me to do this. the way i understand it is there >currently isnt a way to run a windwos command in linux. > >I can quiet easily run the shutdown command from a windows box to >shutdown a >remote windows machine...but becuase nagios runs in linux i need a way >to >shutdown windows machines from linux. > >Any ideas???? > > >From: "Marc Powell" > >To: > >Subject: [Nagios-users] RE: run a script based on event?? > >Date: Wed, 3 Aug 2005 10:08:47 -0500 > > > > > > > > > -----Original Message----- > > > From: HP Geeza [mailto:getbacktome3 at hotmail.com] > > > Sent: Wednesday, August 03, 2005 10:01 AM > > > To: Marc Powell; nagios-users at lists.sourceforge.net > > > Subject: run a script based on event?? > > > > > > HI > > > > > > I was wondering if this is possible and whether anybody has tried >it? > >- I > > > am > > > monitoring the temperature probe in our lab via snmp...and as a >result > >i > > > was > > > wondering whether it is possible in nagios to run a script of some > >sort > > > (which will probably contain some sort of shutdown command) when the > > > temperature triggers an event i.e when it goes above a certain > >threshold. > > > > > > I would like to do this because if the AC busts and our lab starts >to > > > overheat then i would like nagios to run a script which will turn >off > >some > > > of the machines? > > > >Oddly enough they're called event handlers. > > > >http://nagios.sourceforge.net/docs/1_0/eventhandlers.html > > > >-- > >Marc > > > >p.s. Please don't e-mail me directly. Even though I participate a lot > >here, I'm not dedicated Nagios support ;) > > > > > > > > > >------------------------------------------------------- > >SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > >from IBM. Find simple to follow Roadmaps, straightforward articles, > >informative Webcasts and more! Get everything you need to get up to > >speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click > >_______________________________________________ > >Nagios-users mailing list > >Nagios-users at lists.sourceforge.net > >https://lists.sourceforge.net/lists/listinfo/nagios-users > >::: Please include Nagios version, plugin version (-v) and OS when > >reporting any issue. > >::: Messages without supporting info will risk being sent to /dev/null > >_________________________________________________________________ >Want to block unwanted pop-ups? Download the free MSN Toolbar now! >http://toolbar.msn.co.uk/ > > > >------------------------------------------------------- >SF.Net email is Sponsored by the Better Software Conference & EXPO >September 19-22, 2005 * San Francisco, CA * Development Lifecycle >Practices >Agile & Plan-Driven Development * Managing Projects & Teams * Testing & >QA >Security * Process Improvement & Measurement * >http://www.sqe.com/bsce5sf >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS when >reporting any issue. >::: Messages without supporting info will risk being sent to /dev/null > > >------------------------------------------------------- >SF.Net email is Sponsored by the Better Software Conference & EXPO >September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices >Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA >Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS when >reporting any issue. >::: Messages without supporting info will risk being sent to /dev/null _________________________________________________________________ Be the first to hear what's new at MSN - sign up to our free newsletters! http://www.msn.co.uk/newsletters ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Fri Aug 5 13:27:16 2005 From: ae at op5.se (Andreas Ericsson) Date: Fri, 05 Aug 2005 13:27:16 +0200 Subject: Running two nagios instances on same host In-Reply-To: <20050805094839.41736.qmail@web26906.mail.ukl.yahoo.com> References: <20050805094839.41736.qmail@web26906.mail.ukl.yahoo.com> Message-ID: <42F34D14.6000804@op5.se> Kindy Sylla wrote: > Hi, > > I am wondering if it is possible / recommended to run two nagios > instances on the same host. The idea is two have one instance on > production while another instance is running on test where > modifications can be made without stopping , restarting the one in > production. > > Anyone has tried it? Any pros/cons? > It's certainly possible, and it shouldn't present any problems, provided you make two separate installations. > Regards, > > Kindy Sylla > > --------------------------------- Appel audio GRATUIT partout dans > le monde avec le nouveau Yahoo! Messenger T?l?chargez le ici ! -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Thu Aug 4 15:24:18 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Thu, 4 Aug 2005 09:24:18 -0400 (EDT) Subject: How to load MIBs for a cisco? In-Reply-To: References: Message-ID: Hi Marco Welcome to the snmp world. - Unfortunately Nagios does not "load" any snmp mibs, the same way HP OpenView or others might. Instead check_snmp and other plugins use snmp to retrieve appropriate data for Nagios. SNMP is client-server protocol and you are always at the client end when you are issuing commands like snmpget, snmpwalk. These commands do not need a snmp server to run locally, just on the device you are trying to query. so when you are adding MIBs to the local store, there is no need to restart the local daemon - it doesn't care. By default, the snmp cmds will read an explicit set of MIBs that are specified at compile time. It looks like you add some of the Cisco MIBS to the local store. If you add them individually, you may have missed some dependencies. The easiest way to fix this: "rm CISCO-*" mibs; retrive the SMIv2 version of the cisco mibs in the tarball "ftp.cisco.com/pub/mibs/v2/v2.tar.gz". Then you have to tell the snmpcmds to use all the mibs by using the option "-m ALL" Finally - to retrieve snmp data - they can only be retrieved from "leaf" objects, so .1.3.6.1.4.1 is always going to error as it is not a leaf object. Finally - you may want to read up on some SNMP tutorials on the web, as badly configured SNMP access, can leave you network open to abuse. specially if SNMP is accessible on your firewall. -sg On Thu, 4 Aug 2005, Marco Borsani wrote: > Hi all! > > I am reading many documents about MIB, snmp and so on, but anywhere I found > a way to load other mibs on my nagios server. > > Actually I have installed net-snmp-5.1.1 which have created dir > /usr/local/share/snmp/mibs that contain some MIB files. > > I try to "add" other files to that dir, restart snmpdm daemon , but nothing > happened! > > When I perform the command: > #> ./check_snmp -H 10.212.0.240 -o .1.3.6.1.4.1 > I receive this error message: > SNMP problem - No data recieved from host > CMD: /usr/local/bin/snmpget -t 1 -r 9 -m ALL -v 1 -c public 10.212.0.240:161 > .1.3.6.1.4.1 > > When I perform dircetly the command: > #> /usr/local/bin/snmpget -t 1 -r 9 -m ALL -v 1 -c public 10.212.0.240:161 > .1.3.6.1.4.1 > I receive this error message: > SNMPv2-SMI-v1: Module not found > Cannot find module (SNMPv2-SMI-v1): At line 10 in > /usr/local/share/snmp/mibs/CISCO-SMI-V1SMI.txt > Did not find 'enterprises' in module #-1 > (/usr/local/share/snmp/mibs/CISCO-SMI-V1SMI.txt) > Unlinked OID in CISCO-SMI: cisco ::= { enterprises 9 } > Undefined identifier: enterprises near line 12 of > /usr/local/share/snmp/mibs/CISCO-SMI-V1SMI.txt > Error in packet > Reason: (noSuchName) There is no such variable name in this MIB. > Failed object: SNMPv2-SMI::enterprises > > But, If I run following snmpwalk command I receive some (few) information: > #> snmpwalk -v 1 -c public 10.212.0.240 > SNMPv2-MIB::sysDescr.0 = STRING: Cisco PIX Firewall Version 6.3(4) > > SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.9.1.390 > SNMPv2-MIB::sysUpTime.0 = Timeticks: (140713600) 16 days, 6:52:16.00 > SNMPv2-MIB::sysContact.0 = STRING: > SNMPv2-MIB::sysName.0 = STRING: firewall-vpn.my.org > SNMPv2-MIB::sysLocation.0 = STRING: > SNMPv2-MIB::sysServices.0 = INTEGER: 4 > IF-MIB::ifNumber.0 = INTEGER: 2 > IF-MIB::ifIndex.1 = INTEGER: 1 > IF-MIB::ifIndex.2 = INTEGER: 2 > ................. > > May anyone explain me where is my fault? > > Regards > > M.Borsani > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nagios at ctcministries.org Fri Aug 5 15:02:31 2005 From: nagios at ctcministries.org (Nagios User) Date: Fri, 5 Aug 2005 09:02:31 -0400 (EDT) Subject: Error: Command 'check-host-alive' has already been defined Message-ID: Hello list: I am installing (attempting) Nagios-2.0b4 and this is the problem I am experiencing: ############################### root at athlon:/usr/local/nagios# bin/nagios -v etc/nagios.cfg Nagios 2.0b4 Copyright (c) 1999-2005 Ethan Galstad (http://www.nagios.org) Last Modified: 08-02-2005 License: GPL Reading configuration data... Error: Command 'check-host-alive' has already been defined Error: Could not register command (config file '/usr/local/nagios/etc/minimal.cfg', starting on line 76) ***> One or more problems was encountered while processing the config files... Check your configuration file(s) to ensure that they contain valid directives and data defintions. If you are upgrading from a previous version of Nagios, you should be aware that some variables/definitions may have been removed or modified in this version. Make sure to read the HTML documentation regarding the config files, as well as the 'Whats New' section to find out what has changed. ############################## Was wondering if anyone could shed some light on this issue. Thanks in advance, Ronald Vazquez ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From getbacktome3 at hotmail.com Fri Aug 5 15:16:26 2005 From: getbacktome3 at hotmail.com (HP Geeza) Date: Fri, 05 Aug 2005 14:16:26 +0100 Subject: run a script based on event?? In-Reply-To: <02769B432700E649B14C0847840DC83B379019@becompanysrv020.consulting.becompany> References: <02769B432700E649B14C0847840DC83B379019@becompanysrv020.consulting.becompany> Message-ID: Hi Ludo Thank you very much for your help!! I have done as you suggested however when i run the command mannualy (just to check that things will work i get the following error in my remote windows machine). NRPE_NT: Error: Could not computer SSL handshake 0:1 Could somebody please tell me how to solve this SSL error.....do i even need ssl???? >From: "Ludo Bosmans" >To: "HP Geeza" >, >Subject: RE: [Nagios-users] RE: run a script based on event?? >Date: Fri, 5 Aug 2005 13:19:14 +0200 > >Geeza, >Yes of course this is possible. > >1) On your winserver install the nrpe service as documented in the >README or INSTALL guide and adapt nrpe.cfg as needed. >So in your nrpe.cfg file (on the win server) there should be a config >entry: >command[reboot_server]=c\reboot.bat > >2) Make a bat file that contain the shutdown.exe command with the >correct parameters. > >3) In your checkcommands.cfg file create a command(this is an example): > ># reboot_win_server >define command{ > command_name reboot_win_server > command line $USER1$/reboot_win_server.sh $HOSTNAME$ >$HOSTADDRESS$ >} > >4) In your plugin directory make a small script(reboot_win_server.sh): >This example is just the minimum > >#bin/sh >HOST_NAME=$1 >IP_ADDRESS=$2 >/usr/lib/nagios/plugins/check_nrpe -H $HOST_ADDRESS -t 5 -c >reboot_server > >5) Of course there are alternatives, it is possible to define directly >in the checkcommands.cfg the check_nrpe instead of calling a script: > ># reboot_win_server >define command{ > command_name reboot_win_server > command line $USER1$/check_nrpe -H $HOSTADDRESS$ -t 5 -c >reboot_server >} > >6) To test, at least install the win site, try a manual execution of the >check_nrpe ... reboot > >7) Finally I didn't really test this explanation, so I hope that I >didn't have make mistakes in my explanation. >Kind regards, > >Ludo > > >-----Original Message----- >From: HP Geeza [mailto:getbacktome3 at hotmail.com] >Sent: vrijdag 5 augustus 2005 12:43 >To: Ludo Bosmans; nagios-users at lists.sourceforge.net >Subject: RE: [Nagios-users] RE: run a script based on event?? > >Ok im a little confussed now...is the following possible via nagios? > >Monitor a temp probe in lab (this i know is possible via snmp)...if the >temp >value goes critical then run check_nrpe (through an event >handler)...which >will then run a script on the windows machine? > >--->>> can check_nrpe be run as an event handler once the temp value is >critical? > >I can shutdown the windows machine fine as i have already got the >commands >to do that. I just need a way to call that script/bat flile when the >temp >value goes critical. > > > >From: "Ludo Bosmans" > >To: "HP Geeza" > >, > >Subject: RE: [Nagios-users] RE: run a script based on event?? > >Date: Fri, 5 Aug 2005 09:25:33 +0200 > > > >Hi, > > > >Have a look to following link, it is quiet easy to make a windows bat > >file with the correct options to reboot. > >http://windows.about.com/od/schedulingandbatchjobs/l/aa012400a.htm > > > >Install nrpe_nt on the windows server and and use check_nrpe to execute > >the reboot bat file on the win server when it is necessary, f.e. with >an > >eventhandler script. > > > >Kind regards, > > > >ludo > > > > > >-----Original Message----- > >From: nagios-users-admin at lists.sourceforge.net > >[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of HP Geeza > >Sent: donderdag 4 augustus 2005 17:17 > >To: nagios-users at lists.sourceforge.net > >Subject: RE: [Nagios-users] RE: run a script based on event?? > > > >I know that this isn't the best place to ask this sort of >question...but > >id > >be greatfull for any advice/help!!! > > > >I need a way to shutdown remote windows servers through an event >handler > >in > >nagios...i dont quiet know how to write a script (whether it be perl or > >bash) which will allow me to do this. the way i understand it is there > >currently isnt a way to run a windwos command in linux. > > > >I can quiet easily run the shutdown command from a windows box to > >shutdown a > >remote windows machine...but becuase nagios runs in linux i need a way > >to > >shutdown windows machines from linux. > > > >Any ideas???? > > > > >From: "Marc Powell" > > >To: > > >Subject: [Nagios-users] RE: run a script based on event?? > > >Date: Wed, 3 Aug 2005 10:08:47 -0500 > > > > > > > > > > > > > -----Original Message----- > > > > From: HP Geeza [mailto:getbacktome3 at hotmail.com] > > > > Sent: Wednesday, August 03, 2005 10:01 AM > > > > To: Marc Powell; nagios-users at lists.sourceforge.net > > > > Subject: run a script based on event?? > > > > > > > > HI > > > > > > > > I was wondering if this is possible and whether anybody has tried > >it? > > >- I > > > > am > > > > monitoring the temperature probe in our lab via snmp...and as a > >result > > >i > > > > was > > > > wondering whether it is possible in nagios to run a script of some > > >sort > > > > (which will probably contain some sort of shutdown command) when >the > > > > temperature triggers an event i.e when it goes above a certain > > >threshold. > > > > > > > > I would like to do this because if the AC busts and our lab starts > >to > > > > overheat then i would like nagios to run a script which will turn > >off > > >some > > > > of the machines? > > > > > >Oddly enough they're called event handlers. > > > > > >http://nagios.sourceforge.net/docs/1_0/eventhandlers.html > > > > > >-- > > >Marc > > > > > >p.s. Please don't e-mail me directly. Even though I participate a lot > > >here, I'm not dedicated Nagios support ;) > > > > > > > > > > > > > > >------------------------------------------------------- > > >SF.Net email is sponsored by: Discover Easy Linux Migration >Strategies > > >from IBM. Find simple to follow Roadmaps, straightforward articles, > > >informative Webcasts and more! Get everything you need to get up to > > >speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click > > >_______________________________________________ > > >Nagios-users mailing list > > >Nagios-users at lists.sourceforge.net > > >https://lists.sourceforge.net/lists/listinfo/nagios-users > > >::: Please include Nagios version, plugin version (-v) and OS when > > >reporting any issue. > > >::: Messages without supporting info will risk being sent to >/dev/null > > > >_________________________________________________________________ > >Want to block unwanted pop-ups? Download the free MSN Toolbar now! > >http://toolbar.msn.co.uk/ > > > > > > > >------------------------------------------------------- > >SF.Net email is Sponsored by the Better Software Conference & EXPO > >September 19-22, 2005 * San Francisco, CA * Development Lifecycle > >Practices > >Agile & Plan-Driven Development * Managing Projects & Teams * Testing & > >QA > >Security * Process Improvement & Measurement * > >http://www.sqe.com/bsce5sf > >_______________________________________________ > >Nagios-users mailing list > >Nagios-users at lists.sourceforge.net > >https://lists.sourceforge.net/lists/listinfo/nagios-users > >::: Please include Nagios version, plugin version (-v) and OS when > >reporting any issue. > >::: Messages without supporting info will risk being sent to /dev/null > > > > > >------------------------------------------------------- > >SF.Net email is Sponsored by the Better Software Conference & EXPO > >September 19-22, 2005 * San Francisco, CA * Development Lifecycle >Practices > >Agile & Plan-Driven Development * Managing Projects & Teams * Testing & >QA > >Security * Process Improvement & Measurement * >http://www.sqe.com/bsce5sf > >_______________________________________________ > >Nagios-users mailing list > >Nagios-users at lists.sourceforge.net > >https://lists.sourceforge.net/lists/listinfo/nagios-users > >::: Please include Nagios version, plugin version (-v) and OS when > >reporting any issue. > >::: Messages without supporting info will risk being sent to /dev/null > >_________________________________________________________________ >Be the first to hear what's new at MSN - sign up to our free >newsletters! >http://www.msn.co.uk/newsletters > > > >------------------------------------------------------- >SF.Net email is Sponsored by the Better Software Conference & EXPO >September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices >Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA >Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS when >reporting any issue. >::: Messages without supporting info will risk being sent to /dev/null _________________________________________________________________ Winks & nudges are here - download MSN Messenger 7.0 today! http://messenger.msn.co.uk ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From getbacktome3 at hotmail.com Fri Aug 5 15:36:53 2005 From: getbacktome3 at hotmail.com (HP Geeza) Date: Fri, 05 Aug 2005 14:36:53 +0100 Subject: run a script based on event?? In-Reply-To: <02769B432700E649B14C0847840DC83B379019@becompanysrv020.consulting.becompany> References: <02769B432700E649B14C0847840DC83B379019@becompanysrv020.consulting.becompany> Message-ID: Is there a way to run nrpe checks without using ssl???? arghhhh this nrpe stuff is hard!!! >From: "Ludo Bosmans" >To: "HP Geeza" >, >Subject: RE: [Nagios-users] RE: run a script based on event?? >Date: Fri, 5 Aug 2005 13:19:14 +0200 > >Geeza, >Yes of course this is possible. > >1) On your winserver install the nrpe service as documented in the >README or INSTALL guide and adapt nrpe.cfg as needed. >So in your nrpe.cfg file (on the win server) there should be a config >entry: >command[reboot_server]=c\reboot.bat > >2) Make a bat file that contain the shutdown.exe command with the >correct parameters. > >3) In your checkcommands.cfg file create a command(this is an example): > ># reboot_win_server >define command{ > command_name reboot_win_server > command line $USER1$/reboot_win_server.sh $HOSTNAME$ >$HOSTADDRESS$ >} > >4) In your plugin directory make a small script(reboot_win_server.sh): >This example is just the minimum > >#bin/sh >HOST_NAME=$1 >IP_ADDRESS=$2 >/usr/lib/nagios/plugins/check_nrpe -H $HOST_ADDRESS -t 5 -c >reboot_server > >5) Of course there are alternatives, it is possible to define directly >in the checkcommands.cfg the check_nrpe instead of calling a script: > ># reboot_win_server >define command{ > command_name reboot_win_server > command line $USER1$/check_nrpe -H $HOSTADDRESS$ -t 5 -c >reboot_server >} > >6) To test, at least install the win site, try a manual execution of the >check_nrpe ... reboot > >7) Finally I didn't really test this explanation, so I hope that I >didn't have make mistakes in my explanation. >Kind regards, > >Ludo > > >-----Original Message----- >From: HP Geeza [mailto:getbacktome3 at hotmail.com] >Sent: vrijdag 5 augustus 2005 12:43 >To: Ludo Bosmans; nagios-users at lists.sourceforge.net >Subject: RE: [Nagios-users] RE: run a script based on event?? > >Ok im a little confussed now...is the following possible via nagios? > >Monitor a temp probe in lab (this i know is possible via snmp)...if the >temp >value goes critical then run check_nrpe (through an event >handler)...which >will then run a script on the windows machine? > >--->>> can check_nrpe be run as an event handler once the temp value is >critical? > >I can shutdown the windows machine fine as i have already got the >commands >to do that. I just need a way to call that script/bat flile when the >temp >value goes critical. > > > >From: "Ludo Bosmans" > >To: "HP Geeza" > >, > >Subject: RE: [Nagios-users] RE: run a script based on event?? > >Date: Fri, 5 Aug 2005 09:25:33 +0200 > > > >Hi, > > > >Have a look to following link, it is quiet easy to make a windows bat > >file with the correct options to reboot. > >http://windows.about.com/od/schedulingandbatchjobs/l/aa012400a.htm > > > >Install nrpe_nt on the windows server and and use check_nrpe to execute > >the reboot bat file on the win server when it is necessary, f.e. with >an > >eventhandler script. > > > >Kind regards, > > > >ludo > > > > > >-----Original Message----- > >From: nagios-users-admin at lists.sourceforge.net > >[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of HP Geeza > >Sent: donderdag 4 augustus 2005 17:17 > >To: nagios-users at lists.sourceforge.net > >Subject: RE: [Nagios-users] RE: run a script based on event?? > > > >I know that this isn't the best place to ask this sort of >question...but > >id > >be greatfull for any advice/help!!! > > > >I need a way to shutdown remote windows servers through an event >handler > >in > >nagios...i dont quiet know how to write a script (whether it be perl or > >bash) which will allow me to do this. the way i understand it is there > >currently isnt a way to run a windwos command in linux. > > > >I can quiet easily run the shutdown command from a windows box to > >shutdown a > >remote windows machine...but becuase nagios runs in linux i need a way > >to > >shutdown windows machines from linux. > > > >Any ideas???? > > > > >From: "Marc Powell" > > >To: > > >Subject: [Nagios-users] RE: run a script based on event?? > > >Date: Wed, 3 Aug 2005 10:08:47 -0500 > > > > > > > > > > > > > -----Original Message----- > > > > From: HP Geeza [mailto:getbacktome3 at hotmail.com] > > > > Sent: Wednesday, August 03, 2005 10:01 AM > > > > To: Marc Powell; nagios-users at lists.sourceforge.net > > > > Subject: run a script based on event?? > > > > > > > > HI > > > > > > > > I was wondering if this is possible and whether anybody has tried > >it? > > >- I > > > > am > > > > monitoring the temperature probe in our lab via snmp...and as a > >result > > >i > > > > was > > > > wondering whether it is possible in nagios to run a script of some > > >sort > > > > (which will probably contain some sort of shutdown command) when >the > > > > temperature triggers an event i.e when it goes above a certain > > >threshold. > > > > > > > > I would like to do this because if the AC busts and our lab starts > >to > > > > overheat then i would like nagios to run a script which will turn > >off > > >some > > > > of the machines? > > > > > >Oddly enough they're called event handlers. > > > > > >http://nagios.sourceforge.net/docs/1_0/eventhandlers.html > > > > > >-- > > >Marc > > > > > >p.s. Please don't e-mail me directly. Even though I participate a lot > > >here, I'm not dedicated Nagios support ;) > > > > > > > > > > > > > > >------------------------------------------------------- > > >SF.Net email is sponsored by: Discover Easy Linux Migration >Strategies > > >from IBM. Find simple to follow Roadmaps, straightforward articles, > > >informative Webcasts and more! Get everything you need to get up to > > >speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click > > >_______________________________________________ > > >Nagios-users mailing list > > >Nagios-users at lists.sourceforge.net > > >https://lists.sourceforge.net/lists/listinfo/nagios-users > > >::: Please include Nagios version, plugin version (-v) and OS when > > >reporting any issue. > > >::: Messages without supporting info will risk being sent to >/dev/null > > > >_________________________________________________________________ > >Want to block unwanted pop-ups? Download the free MSN Toolbar now! > >http://toolbar.msn.co.uk/ > > > > > > > >------------------------------------------------------- > >SF.Net email is Sponsored by the Better Software Conference & EXPO > >September 19-22, 2005 * San Francisco, CA * Development Lifecycle > >Practices > >Agile & Plan-Driven Development * Managing Projects & Teams * Testing & > >QA > >Security * Process Improvement & Measurement * > >http://www.sqe.com/bsce5sf > >_______________________________________________ > >Nagios-users mailing list > >Nagios-users at lists.sourceforge.net > >https://lists.sourceforge.net/lists/listinfo/nagios-users > >::: Please include Nagios version, plugin version (-v) and OS when > >reporting any issue. > >::: Messages without supporting info will risk being sent to /dev/null > > > > > >------------------------------------------------------- > >SF.Net email is Sponsored by the Better Software Conference & EXPO > >September 19-22, 2005 * San Francisco, CA * Development Lifecycle >Practices > >Agile & Plan-Driven Development * Managing Projects & Teams * Testing & >QA > >Security * Process Improvement & Measurement * >http://www.sqe.com/bsce5sf > >_______________________________________________ > >Nagios-users mailing list > >Nagios-users at lists.sourceforge.net > >https://lists.sourceforge.net/lists/listinfo/nagios-users > >::: Please include Nagios version, plugin version (-v) and OS when > >reporting any issue. > >::: Messages without supporting info will risk being sent to /dev/null > >_________________________________________________________________ >Be the first to hear what's new at MSN - sign up to our free >newsletters! >http://www.msn.co.uk/newsletters > > > >------------------------------------------------------- >SF.Net email is Sponsored by the Better Software Conference & EXPO >September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices >Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA >Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS when >reporting any issue. >::: Messages without supporting info will risk being sent to /dev/null _________________________________________________________________ It's fast, it's easy and it's free. Get MSN Messenger 7.0 today! http://messenger.msn.co.uk ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lzhong at applimation.com Fri Aug 5 15:58:15 2005 From: lzhong at applimation.com (Lei Zhong) Date: Fri, 5 Aug 2005 09:58:15 -0400 Subject: notify-by-email error Message-ID: Hi, I am new to Nagios. I set up Nagios. Everything seems to be fine, except I am not getting alert emails. I checked nagios.log. Here is what I found: HTTP;CRITICAL;notify-by-epager;Connection refused HTTP;CRITICAL;notify-by-email;Connection refused HTTP;CRITICAL;notify-by-email;Connection refused HTTP;CRITICAL;notify-by-email;Connection refused Processes;WARNING;notify-by-epager;System call sent warnings to stderr Total Processes;WARNING;notify-by-email;System call sent warnings to stderr Can somebody enlighten me on this? Thank you, Lei -------------- next part -------------- An HTML attachment was scrubbed... URL: From Ludo.Bosmans at aureusim.be Fri Aug 5 16:11:50 2005 From: Ludo.Bosmans at aureusim.be (Ludo Bosmans) Date: Fri, 5 Aug 2005 16:11:50 +0200 Subject: run a script based on event?? Message-ID: <02769B432700E649B14C0847840DC83B379026@becompanysrv020.consulting.becompany> Geeza, I'm not quiet sure that you can run without ssl, but on the window site there is an INSTALL( explanation ) file that is saying: If you want to use the SSL enabled service, you also need: ssleay32.dll sibea32.dll These two dll are under the bin and installed and/or used by default. So also at the linux site the check must be compiled with openssl (check_nrpe)included. I know that once the check_nrpe is compiled with openssl, you can give an additional argument to not use the openssl encryption. But I don't known how the client site ( win ), is re-acting. The (hidden) feature is '-n' I thaught. An alternative is to build 2 versions, one with openssl en one without. May be when renaming the 2 dll is sufficient, may be a desinstall and re-install after renaming is necessary on the win server. Principle it is not a good idea to run without encryption. A better solution be, get the openssl libs and recompile with openssl support. Kind regards, Ludo -----Original Message----- From: HP Geeza [mailto:getbacktome3 at hotmail.com] Sent: vrijdag 5 augustus 2005 15:37 To: Ludo Bosmans; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] RE: run a script based on event?? Is there a way to run nrpe checks without using ssl???? arghhhh this nrpe stuff is hard!!! >From: "Ludo Bosmans" >To: "HP Geeza" >, >Subject: RE: [Nagios-users] RE: run a script based on event?? >Date: Fri, 5 Aug 2005 13:19:14 +0200 > >Geeza, >Yes of course this is possible. > >1) On your winserver install the nrpe service as documented in the >README or INSTALL guide and adapt nrpe.cfg as needed. >So in your nrpe.cfg file (on the win server) there should be a config >entry: >command[reboot_server]=c\reboot.bat > >2) Make a bat file that contain the shutdown.exe command with the >correct parameters. > >3) In your checkcommands.cfg file create a command(this is an example): > ># reboot_win_server >define command{ > command_name reboot_win_server > command line $USER1$/reboot_win_server.sh $HOSTNAME$ >$HOSTADDRESS$ >} > >4) In your plugin directory make a small script(reboot_win_server.sh): >This example is just the minimum > >#bin/sh >HOST_NAME=$1 >IP_ADDRESS=$2 >/usr/lib/nagios/plugins/check_nrpe -H $HOST_ADDRESS -t 5 -c >reboot_server > >5) Of course there are alternatives, it is possible to define directly >in the checkcommands.cfg the check_nrpe instead of calling a script: > ># reboot_win_server >define command{ > command_name reboot_win_server > command line $USER1$/check_nrpe -H $HOSTADDRESS$ -t 5 -c >reboot_server >} > >6) To test, at least install the win site, try a manual execution of the >check_nrpe ... reboot > >7) Finally I didn't really test this explanation, so I hope that I >didn't have make mistakes in my explanation. >Kind regards, > >Ludo > > >-----Original Message----- >From: HP Geeza [mailto:getbacktome3 at hotmail.com] >Sent: vrijdag 5 augustus 2005 12:43 >To: Ludo Bosmans; nagios-users at lists.sourceforge.net >Subject: RE: [Nagios-users] RE: run a script based on event?? > >Ok im a little confussed now...is the following possible via nagios? > >Monitor a temp probe in lab (this i know is possible via snmp)...if the >temp >value goes critical then run check_nrpe (through an event >handler)...which >will then run a script on the windows machine? > >--->>> can check_nrpe be run as an event handler once the temp value is >critical? > >I can shutdown the windows machine fine as i have already got the >commands >to do that. I just need a way to call that script/bat flile when the >temp >value goes critical. > > > >From: "Ludo Bosmans" > >To: "HP Geeza" > >, > >Subject: RE: [Nagios-users] RE: run a script based on event?? > >Date: Fri, 5 Aug 2005 09:25:33 +0200 > > > >Hi, > > > >Have a look to following link, it is quiet easy to make a windows bat > >file with the correct options to reboot. > >http://windows.about.com/od/schedulingandbatchjobs/l/aa012400a.htm > > > >Install nrpe_nt on the windows server and and use check_nrpe to execute > >the reboot bat file on the win server when it is necessary, f.e. with >an > >eventhandler script. > > > >Kind regards, > > > >ludo > > > > > >-----Original Message----- > >From: nagios-users-admin at lists.sourceforge.net > >[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of HP Geeza > >Sent: donderdag 4 augustus 2005 17:17 > >To: nagios-users at lists.sourceforge.net > >Subject: RE: [Nagios-users] RE: run a script based on event?? > > > >I know that this isn't the best place to ask this sort of >question...but > >id > >be greatfull for any advice/help!!! > > > >I need a way to shutdown remote windows servers through an event >handler > >in > >nagios...i dont quiet know how to write a script (whether it be perl or > >bash) which will allow me to do this. the way i understand it is there > >currently isnt a way to run a windwos command in linux. > > > >I can quiet easily run the shutdown command from a windows box to > >shutdown a > >remote windows machine...but becuase nagios runs in linux i need a way > >to > >shutdown windows machines from linux. > > > >Any ideas???? > > > > >From: "Marc Powell" > > >To: > > >Subject: [Nagios-users] RE: run a script based on event?? > > >Date: Wed, 3 Aug 2005 10:08:47 -0500 > > > > > > > > > > > > > -----Original Message----- > > > > From: HP Geeza [mailto:getbacktome3 at hotmail.com] > > > > Sent: Wednesday, August 03, 2005 10:01 AM > > > > To: Marc Powell; nagios-users at lists.sourceforge.net > > > > Subject: run a script based on event?? > > > > > > > > HI > > > > > > > > I was wondering if this is possible and whether anybody has tried > >it? > > >- I > > > > am > > > > monitoring the temperature probe in our lab via snmp...and as a > >result > > >i > > > > was > > > > wondering whether it is possible in nagios to run a script of some > > >sort > > > > (which will probably contain some sort of shutdown command) when >the > > > > temperature triggers an event i.e when it goes above a certain > > >threshold. > > > > > > > > I would like to do this because if the AC busts and our lab starts > >to > > > > overheat then i would like nagios to run a script which will turn > >off > > >some > > > > of the machines? > > > > > >Oddly enough they're called event handlers. > > > > > >http://nagios.sourceforge.net/docs/1_0/eventhandlers.html > > > > > >-- > > >Marc > > > > > >p.s. Please don't e-mail me directly. Even though I participate a lot > > >here, I'm not dedicated Nagios support ;) > > > > > > > > > > > > > > >------------------------------------------------------- > > >SF.Net email is sponsored by: Discover Easy Linux Migration >Strategies > > >from IBM. Find simple to follow Roadmaps, straightforward articles, > > >informative Webcasts and more! Get everything you need to get up to > > >speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click > > >_______________________________________________ > > >Nagios-users mailing list > > >Nagios-users at lists.sourceforge.net > > >https://lists.sourceforge.net/lists/listinfo/nagios-users > > >::: Please include Nagios version, plugin version (-v) and OS when > > >reporting any issue. > > >::: Messages without supporting info will risk being sent to >/dev/null > > > >_________________________________________________________________ > >Want to block unwanted pop-ups? Download the free MSN Toolbar now! > >http://toolbar.msn.co.uk/ > > > > > > > >------------------------------------------------------- > >SF.Net email is Sponsored by the Better Software Conference & EXPO > >September 19-22, 2005 * San Francisco, CA * Development Lifecycle > >Practices > >Agile & Plan-Driven Development * Managing Projects & Teams * Testing & > >QA > >Security * Process Improvement & Measurement * > >http://www.sqe.com/bsce5sf > >_______________________________________________ > >Nagios-users mailing list > >Nagios-users at lists.sourceforge.net > >https://lists.sourceforge.net/lists/listinfo/nagios-users > >::: Please include Nagios version, plugin version (-v) and OS when > >reporting any issue. > >::: Messages without supporting info will risk being sent to /dev/null > > > > > >------------------------------------------------------- > >SF.Net email is Sponsored by the Better Software Conference & EXPO > >September 19-22, 2005 * San Francisco, CA * Development Lifecycle >Practices > >Agile & Plan-Driven Development * Managing Projects & Teams * Testing & >QA > >Security * Process Improvement & Measurement * >http://www.sqe.com/bsce5sf > >_______________________________________________ > >Nagios-users mailing list > >Nagios-users at lists.sourceforge.net > >https://lists.sourceforge.net/lists/listinfo/nagios-users > >::: Please include Nagios version, plugin version (-v) and OS when > >reporting any issue. > >::: Messages without supporting info will risk being sent to /dev/null > >_________________________________________________________________ >Be the first to hear what's new at MSN - sign up to our free >newsletters! >http://www.msn.co.uk/newsletters > > > >------------------------------------------------------- >SF.Net email is Sponsored by the Better Software Conference & EXPO >September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices >Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA >Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS when >reporting any issue. >::: Messages without supporting info will risk being sent to /dev/null _________________________________________________________________ It's fast, it's easy and it's free. Get MSN Messenger 7.0 today! http://messenger.msn.co.uk ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From moshesharon at gmail.com Fri Aug 5 16:20:03 2005 From: moshesharon at gmail.com (Moshe Sharon) Date: Fri, 5 Aug 2005 14:20:03 +0000 (UTC) Subject: notify-by-email error References: Message-ID: hello it means you have defined in your configuration the same command twice do grep check-host-alive * on all your config files and find the duplicate line remove it and all should be ok Moshe Sharon ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From getbacktome3 at hotmail.com Fri Aug 5 16:40:09 2005 From: getbacktome3 at hotmail.com (HP Geeza) Date: Fri, 05 Aug 2005 15:40:09 +0100 Subject: nrpe without ssl for windows? In-Reply-To: <6B893C5F2902D311A23F0090272854FB0575B7C3@litex001.lit.verwalt-berlin.de> References: <6B893C5F2902D311A23F0090272854FB0575B7C3@litex001.lit.verwalt-berlin.de> Message-ID: Does anybody know where i can get a compiled version of nrpe without ssl for windows??? >From: Ralph.Grothe at itdz-berlin.de >To: getbacktome3 at hotmail.com >Subject: RE: [Nagios-users] RE: [Nagiosplug-help] How to interpret CRC32 >errors? >Date: Fri, 5 Aug 2005 16:23:52 +0200 > >I'm sorry, I hadn't looked carefully enough at the source. > >In the begining there's a macro conditional > >#ifdef HAVE_SSL >SSL_METHOD *meth; >SSL_CTX *ctx; >SSL *ssl; >int use_ssl=TRUE; >#else >int use_ssl=FALSE; >#endif > > >where they check if the Makefile has the macro HAVE_SSL defined. > >Looks like your binary was built with SSL enabled. > >You would have to compile after a "configure --disable-ssl ..." >without SSL support. > >Maybe you can ask in the mailing list if someone has built a >binary for Win32 >with SSL disabled, or knows a download site? >Have you checked the site where you got this one if there are >different versions? >Or does a README say what to do to suppress SSL? > >If you can only get nrpe for win32 with SSL then you would have >to create SSL certificate >(you can make up your own certification authority) >If you use OpenSSL it's not too difficult because it comes with a >Perl script that will do >that for you. > >But I can't believe that there is no nrpe for windows without >SSL. > > > > > -----Original Message----- > > From: HP Geeza [mailto:getbacktome3 at hotmail.com] > > Sent: Friday, August 05, 2005 4:14 PM > > To: Ralph.Grothe at itdz-berlin.de > > Subject: RE: [Nagios-users] RE: [Nagiosplug-help] How to > > interpret CRC32 > > errors? > > > > > > sorry for being such a pain...but im still stuck!!! > > > > ive tried running: > > > > ./check_nrpe -n -c reboot_server > > > > But that gives me an error: Incorrect command line arguments >supplied > > > > I dont have to re compile or something do i?? - if soo what > > commands will i > > need to run? > > > > Any ideas??? - please help. Yes you are rite this nrpe stuff > > isn't well > > documented at all....im sooo confused > > > > > > >From: Ralph.Grothe at itdz-berlin.de > > >To: getbacktome3 at hotmail.com > > >Subject: RE: [Nagios-users] RE: [Nagiosplug-help] How to > > interpret CRC32 > > >errors? > > >Date: Fri, 5 Aug 2005 16:06:19 +0200 > > > > > >Hm, I've so far disabled SSL altogether with my nrpe builds. > > >SSL/TLS would only complicate things. > > >I will try this when my basic setting works. > > > > > >I guess you used a prebuilt binary? > > > > > >Wait, I've just looked in the source code of check_nrpe.c, > > >and in the switch-case block where the **argv is parsed there >is > > >an entry for option -n > > >where the comment reads that you should use this switch to > > >disable SSL. > > > > > >So I would suggest that you put in your check_nrpe call an > > >additional "-n". > > > > > >That's what nags me about nagios, that many features aren't >well > > >documented. > > >If you run check_nrpe --help they won't tell you anything >about > > >-n. > > > > > > > > > > -----Original Message----- > > > > From: HP Geeza [mailto:getbacktome3 at hotmail.com] > > > > Sent: Friday, August 05, 2005 3:52 PM > > > > To: Ralph.Grothe at itdz-berlin.de > > > > Subject: RE: [Nagios-users] RE: [Nagiosplug-help] How to > > > > interpret CRC32 > > > > errors? > > > > > > > > > > > > Hi Ralph > > > > > > > > Ive managed to install the nrpe service on my windows host > > > > but when i run > > > > the command from my nagios box the event log on the windows > > > > machine says > > > > that the ssl handshake failed....i am not too sure how to > > > > configure ssl... > > > > > > > > is there a way round this problem? > > > > > > > > > > > > >From: Ralph.Grothe at itdz-berlin.de > > > > >To: getbacktome3 at hotmail.com > > > > >Subject: RE: [Nagios-users] RE: [Nagiosplug-help] How to > > > > interpret CRC32 > > > > >errors? > > > > >Date: Fri, 5 Aug 2005 15:35:20 +0200 > > > > > > > > > >Hi Geeza, > > > > > > > > > >you can't run this from your Linux host (I suppose this is > > >your > > > > >Nagios server, whereas the Windows box you want to shut >down > > >is > > > > >your remote host), > > > > >because Win32.pm is not made for Linux. > > > > > > > > > >I think you have to install the Windows version of the >NRPE on > > > > >your Windows host. > > > > >There should be a README or INSTALL file how this is done > > >under > > > > >Windows. > > > > >It should also explain how the nrpe daemon can be started >as a > > > > >Windows service. > > > > > > > > > >On the Windows box you need to define a command in >nrpe.cfg > > >that > > > > >is the same as how you would run your shutdown script. > > > > > > > > > >Then you have to start the nrpe service on the Windows >box. > > > > > > > > > >In the nrpe binaries for Windows should also be a >check_nrpe > > > > >executable. > > > > >You can use this to test if your command gets executed by >nrpe > > > > >service on the Windows localhost. > > > > >Of course for this test I would modify the shutdown script >so > > > > >that it wouldn't really shutdown > > > > >but only display for instance what it would be doing. > > > > >As -H you have to give the localhost IP because you're >running > > > > >this on the same box. > > > > >As -c you have to pass the name of your command you >defined in > > > > >nrpe.cfg above. > > > > > > > > > >Then you must build or get the binary for Linux of >check_nrpe, > > > > >and install it in the libexec directory of your Linux >Nagios > > > > >server. > > > > >You should now be able run check_nrpe -H >IP_of_Windows_Host -c > > > > >Shutdown_Command > > > > >much the same like you have done on the Windows host. > > > > >This time you only have to specify the IP of the Windows >host > > > > >instead of localhost or 127.0.0.1 > > > > > > > > > >If that test also worked you can define a check_command >and a > > > > >service in your nagios config files, > > > > >and restart the nagios server. > > > > > > > > > > > -----Original Message----- > > > > > > From: HP Geeza [mailto:getbacktome3 at hotmail.com] > > > > > > Sent: Thursday, August 04, 2005 7:07 PM > > > > > > To: Ralph.Grothe at itdz-berlin.de > > > > > > Subject: RE: [Nagios-users] RE: [Nagiosplug-help] How >to > > > > > > interpret CRC32 > > > > > > errors? > > > > > > > > > > > > > > > > > > Here's my sample test.pl file: > > > > > > > > > > > > #!/usr/bin/perl > > > > > > > > > > > > use strict; > > > > > > use Win32; > > > > > > > > > > > > Win32::InitiateSystemShutdown("", "BYE", >1, 1, > > >1); > > > > > > > > > > > > > > > > > > I copied the Win32.pm to a location that the system >could > > > > > > seee....however i > > > > > > now get the following error message: > > > > > > > > > > > > Undefined subroutine &Win32::InitiateSystemShutdown >called > > >at > > > > > > ./test.pl line > > > > > > 6. > > > > > > > > > > > > any ideas??? > > > > > > > > > > > > > > > > > > >From: Ralph.Grothe at itdz-berlin.de > > > > > > >To: getbacktome3 at hotmail.com > > > > > > >Subject: RE: [Nagios-users] RE: [Nagiosplug-help] How >to > > > > > > interpret CRC32 > > > > > > >errors? > > > > > > >Date: Thu, 4 Aug 2005 18:48:16 +0200 > > > > > > > > > > > > > >Hi Geeza, > > > > > > > > > > > > > >do you mean your question regarding the remote >shutdown of > > > > > > >Windows boxes? > > > > > > > > > > > > > >I'm sure that this can be accomplished. > > > > > > > > > > > > > >However, I'm absolutely not into Windows. > > > > > > > > > > > > > >If you could wait until tomorrow, or haven't received >a > > >hack > > > > >from > > > > > > >someone else by then, > > > > > > >I could ask our Windows admin what is required on a > > >Windows > > > > >host > > > > > > >to do this. > > > > > > > > > > > > > >I would guess only some tampering with some registry >key > > >or > > > > >so. > > > > > > > > > > > > > >I also don't know the Microsoft interpreters like >Windows > > > > > > >Scripting Host or even the .Net framework. > > > > > > >Anyone familiar with those can quickly script >something > > >that > > > > >will > > > > > > >do what you need. > > > > > > > > > > > > > >I only script in Perl and Unix shells. > > > > > > > > > > > > > >But you can as well install Perl on a Windows box, and >do > > >all > > > > > > >sorts of sysadmin tasks through Perl. > > > > > > >They have special modules that give you access to the > > >Registry > > > > > > >and other Windows typical interfaces. > > > > > > > > > > > > > > > > > > > > >Sorry, for not being of more help > > > > > > > > > > > > > >Ralph > > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > > From: HP Geeza [mailto:getbacktome3 at hotmail.com] > > > > > > > > Sent: Thursday, August 04, 2005 6:40 PM > > > > > > > > To: Ralph.Grothe at itdz-berlin.de > > > > > > > > Subject: RE: [Nagios-users] RE: [Nagiosplug-help] >How > > >to > > > > > > > > interpret CRC32 > > > > > > > > errors? > > > > > > > > > > > > > > > > > > > > > > > > Hi Ralph, > > > > > > > > > > > > > > > > I have just posted an NRPE related >questoin....could > > >you > > > > > > > > please help??? > > > > > > > > > > > > > > > > >From: Ralph.Grothe at itdz-berlin.de > > > > > > > > >To: nagios-users at lists.sourceforge.net > > > > > > > > >CC: cshaffer at gmail.com > > > > > > > > >Subject: RE: [Nagios-users] RE: [Nagiosplug-help] >How > > >to > > > > > > > > interpret CRC32 > > > > > > > > >errors? > > > > > > > > >Date: Thu, 4 Aug 2005 18:31:29 +0200 > > > > > > > > > > > > > > > > > >Good news (for me). > > > > > > > > > > > > > > > > > >I found the remedy against unruly CRC32 NRPE >chokes. > > > > > > > > > > > > > > > > > >When I tested my script at the shell I made sure >by > > > > > > >redirecting > > > > > > > > >stderr to /dev/null > > > > > > > > >that indeed nothing was sent there. > > > > > > > > > > > > > > > > > >However, when this script got executed (or rather > > > > >crchecked) > > > > > > >by > > > > > > > > >nrpe > > > > > > > > >something must have sneaked to stderr. > > > > > > > > > > > > > > > > > >So I simply put this statement in the beginning of >my > > > > >script: > > > > > > > > > > > > > > > > > >[saz at inwo2] > > > > > > > > >$ grep -n exec\ > > >/usr/local/nagios/libexec/check_hpva.sh > > > > > > > > >6:exec 2>/dev/null > > > > > > > > > > > > > > > > > > > > > > > > > > >By shutting stderr the a priori crcheck cannot >produce > > > > > > > > >differences. > > > > > > > > > > > > > > > > > >Now I can execute through nrpe > > > > > > > > > > > > > > > > > >[saz at inwo2] > > > > > > > > >$ /usr/local/nagios/libexec/check_nrpe -H >127.0.0.1 -c > > > > > > > > >check_hpva_INWO2 > > > > > > > > >OK: HP Virtual Array "va" on inwo2 all FRUs >State > > >Good > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >And even from the nagios server remotely this >works > > >now > > > > > > > > > > > > > > > > > > > > > > > > > > >[nagios at daisy:~] > > > > > > > > >$ libexec/check_nrpe -H inwo2 -c check_hpva_INWO2 > > > > > > > > >OK: HP Virtual Array "va" on inwo2 all FRUs >State > > >Good > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >Lesson learnt, for all own plug-ins you write > > >explicitly > > > > >close > > > > > > > > >stderr > > > > > > > > >to avoid any CRC32 annoyances. > > > > > > > > > > > > > > > > > >So this conclusion would take only one line to be > > >added to > > > > >the > > > > > > > > >documentation! > > > > > > > > > > > > > > > > > >I again rechecked the "Nagios plug-in development > > > > >guidelines" > > > > > > >but > > > > > > > > >didn't find such a reference. > > > > > > > > >It would have saved me two hours and you my >reduntant > > > > >noise. > > > > > > > > > > > > > > > > > > > > > > > > > > >Happy NRPEing > > > > > > > > > > > > > > > > > >Ralph > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > > > > From: nagios-users-admin at lists.sourceforge.net > > > > > > > > > > >[mailto:nagios-users-admin at lists.sourceforge.net]On > > > > >Behalf > > > > > > >Of > > > > > > > > > > Ralph.Grothe at itdz-berlin.de > > > > > > > > > > Sent: Thursday, August 04, 2005 5:37 PM > > > > > > > > > > To: ae at op5.se > > > > > > > > > > Cc: nagios-users at lists.sourceforge.net > > > > > > > > > > Subject: [Nagios-users] RE: [Nagiosplug-help] >How > > >to > > > > > > >interpret > > > > > > > > >CRC32 > > > > > > > > > > errors? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > You're asking people to help you on their >spare > > >time. > > > > > > >Most of > > > > > > > > > > your > > > > > > > > > > > questions so far have been either no-brainers > > >that > > > > >you > > > > > > >would > > > > > > > > > > > have been > > > > > > > > > > > able to figure out for yourself had you made >the > > > > >effort, > > > > > > >or > > > > > > > > > > > of the kind > > > > > > > > > > > that would take considerable effort to answer > > > > >properly. > > > > > > > > > > > > > > > > > > > > I know that I waste the time of people who are > > >willing > > > > >to > > > > > > >help > > > > > > > > > > me. > > > > > > > > > > > > > > > > > > > > Did I know more about Nagios I would happily >pay > > >back > > > > >by > > > > > > > > > > answering others' questions. > > > > > > > > > > > > > > > > > > > > I had the impression that the developpers had >left > > >the > > > > > > > > > > documentation sketchy in favour of directing >people > > >to > > > > >the > > > > > > > > > > nagios-users mailing list (at least that's what > > >every > > > > > > >plug-in's > > > > > > > > > > help screen suggests) > > > > > > > > > > I know what an unpleasant duty it is for >developers > > >to > > > > > > > > >document. > > > > > > > > > > > > > > > > > > > > To someone so much and probably long time >involved > > >in > > > > >the > > > > > > > > >Nagios > > > > > > > > > > project as you > > > > > > > > > > (only assuming this as I don't know your >background > > >or > > > > >role > > > > > > > > >here) > > > > > > > > > > my questions may seem like brain farts. > > > > > > > > > > > > > > > > > > > > I only wonder why, if you are so pissed off by > > >them, > > > > >simply > > > > > > > > >don't > > > > > > > > > > ignore them. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On a sidenote, it's considered very rude to > > > > >cross-post > > > > > > >unless > > > > > > > > > > you're > > > > > > > > > > > making an announcement of some sort, so >please > > > > >refrain > > > > > > >from > > > > > > > > > > > doing so in > > > > > > > > > > > the future. > > > > > > > > > > > > > > > > > > > > I didn't know I was cross posting. > > > > > > > > > > I didn't regard sending my questions to > > >nagios-users > > > > >and > > > > > > > > > > nagiosplug-help simultaniously > > > > > > > > > > as real cross postings. > > > > > > > > > > I didn't post in other 10 lists or so, and I >didn't > > > > >spam or > > > > > > > > >post > > > > > > > > > > off-topic announcements, nor insult someone >here. > > > > > > > > > > > > > > > > > > > > If the mailing list moderators opened this list >to > > >the > > > > > > >public > > > > > > > > >of > > > > > > > > > > all kinds of Nagios users > > > > > > > > > > list subscribers have to live with dumb >questions > > >of > > > > >Nagios > > > > > > > > > > newbies like me. > > > > > > > > > > > > > > > > > > > > Having learned that I breached the list >netiquette > > >I > > > > >will > > > > > > >only > > > > > > > > > > post to one list in the future. > > > > > > > > > > > > > > > > > > > > > Did you log in as the NRPE user or did you >just > > >su? > > > > > > >su'ing > > > > > > > > > > > maintains the > > > > > > > > > > > environment settings of the old user, which >will > > >have > > > > > > >effect > > > > > > > > >on > > > > > > > > > > some > > > > > > > > > > > programs. > > > > > > > > > > > > > > > > > > > > No simple su-ing. > > > > > > > > > > Even if I had, I would have taken care to do a >full > > >"su > > > > >-" > > > > > > >to > > > > > > > > > > also obtain the account's environment. > > > > > > > > > > I am and was logged in under the account that I > > > > >configured > > > > > > > > >inetd > > > > > > > > > > to run the nrpe server as > > > > > > > > > > (see 5th field, or 4th field for you) > > > > > > > > > > > > > > > > > > > > [saz at inwo2] > > > > > > > > > > $ id > > > > > > > > > > uid=102(saz) gid=20(users) groups=102(saz) > > > > > > > > > > > > > > > > > > > > [saz at inwo2] > > > > > > > > > > $ grep nrpe /etc/inetd.conf > > > > > > > > > > nrpe stream tcp nowait saz > > > > >/usr/local/nagios/sbin/nrpe > > > > > > >nrpe > > > > > > > > >-c > > > > > > > > > > /usr/local/nagios/etc/nrpe.cfg -i > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > check_hpva.sh prints something to stderr. >This > > >causes > > > > >the > > > > > > > > > > > NRPE daemon to > > > > > > > > > > > miscalculate the checksum. When the plugin >does > > >the > > > > >same > > > > > > >it > > > > > > > > > > > arrives at > > > > > > > > > > > an invalid result. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > My script isn't writing anything to stderr, and > > >it's > > > > > > >outputting > > > > > > > > >a > > > > > > > > > > single line to stdout > > > > > > > > > > (which is I think is in accordance to plug-in > > > > >developer's > > > > > > > > > > guidelines) > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > [saz at inwo2] > > > > > > > > > > $ /usr/local/nagios/libexec/check_hpva.sh > > >2>/dev/null | > > > > >cat > > > > > > >-n > > > > > > > > > > 1 OK: HP Virtual Array "va" on inwo2 >all > > >FRUs > > > > > > >State > > > > > > > > > > Good > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >------------------------------------------------------- > > > > > > > > > > SF.Net email is Sponsored by the Better >Software > > > > >Conference > > > > > > >& > > > > > > > > >EXPO > > > > > > > > > > September 19-22, 2005 * San Francisco, CA * > > >Development > > > > > > > > > > Lifecycle Practices > > > > > > > > > > Agile & Plan-Driven Development * Managing >Projects > > >& > > > > >Teams > > > > > > >* > > > > > > > > > > Testing & QA > > > > > > > > > > Security * Process Improvement & Measurement * > > > > > > > > >http://www.sqe.com/bsce5sf > > > > > > > > >_______________________________________________ > > > > > > > > >Nagios-users mailing list > > > > > > > > >Nagios-users at lists.sourceforge.net > > > > > > > > > > > >https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > >::: Please include Nagios version, plugin version >(-v) > > >and > > > > >OS > > > > > > > > >when reporting any issue. > > > > > > > > >::: Messages without supporting info will risk >being > > >sent > > > > >to > > > > > > > > >/dev/null > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >------------------------------------------------------- > > > > > > > > >SF.Net email is Sponsored by the Better Software > > > > >Conference & > > > > > > >EXPO > > > > > > > > >September 19-22, 2005 * San Francisco, CA * > > >Development > > > > > > > > Lifecycle Practices > > > > > > > > >Agile & Plan-Driven Development * Managing >Projects & > > > > >Teams > > > > > > > > * Testing & QA > > > > > > > > >Security * Process Improvement & Measurement * > > > > > > >http://www.sqe.com/bsce5sf > > > > > > > >_______________________________________________ > > > > > > > >Nagios-users mailing list > > > > > > > >Nagios-users at lists.sourceforge.net > > > > > > > > > > >https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > >::: Please include Nagios version, plugin version >(-v) > > >and > > > > >OS > > > > > > >when > > > > > > > >reporting any issue. > > > > > > > >::: Messages without supporting info will risk being > > >sent to > > > > > > >/dev/null > > > > > > > > > > > > > > > > > > > > > > >________________________________________________________________ > > > > >_ > > > > > > >Be the first to hear what's new at MSN - sign up to >our > > >free > > > > > > >newsletters! > > > > > > >http://www.msn.co.uk/newsletters > > > > > > > > > > > > > > > > > > > > >________________________________________________________________ > > >_ > > > > > > Winks & nudges are here - download MSN Messenger 7.0 >today! > > > > > > http://messenger.msn.co.uk > > > > > > > > > > > > > > > > > >________________________________________________________________ >_ > > > > Be the first to hear what's new at MSN - sign up to our >free > > > > newsletters! > > > > http://www.msn.co.uk/newsletters > > > > > > > > >_________________________________________________________________ > > Be the first to hear what's new at MSN - sign up to our free > > newsletters! > > http://www.msn.co.uk/newsletters > > _________________________________________________________________ Want to block unwanted pop-ups? Download the free MSN Toolbar now! http://toolbar.msn.co.uk/ ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Fri Aug 5 17:15:01 2005 From: marc at ena.com (Marc Powell) Date: Fri, 5 Aug 2005 10:15:01 -0500 Subject: notify-by-email error Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Lei Zhong > Sent: Friday, August 05, 2005 8:58 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] notify-by-email error > > Hi, > > > > I am new to Nagios. I set up Nagios. Everything seems to be fine, except > I am not getting alert emails. I checked nagios.log. Here is what I > found: > > > > HTTP;CRITICAL;notify-by-epager;Connection refused > > HTTP;CRITICAL;notify-by-email;Connection refused > > HTTP;CRITICAL;notify-by-email;Connection refused > > HTTP;CRITICAL;notify-by-email;Connection refused > > Processes;WARNING;notify-by-epager;System call sent warnings to stderr > > Total Processes;WARNING;notify-by-email;System call sent warnings to > stderr This means that when nagios executed your defined notify-by-epager and notify-by-email commands, they spat out text to STDERR. This means that there was an error executing the command or in a command that they execute themselves. Without knowing what those commands are I'm only speculating of course. My best guess is that something about the plugin output for your warnings above isn't being escaped properly when you call your notify-by-* commands. Try running them exactly as they are defined in your command definition as the nagios user and substituting the exact text that Nagios would insert for the various $VARIABLE$'s when a WARNING condition occurs. -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From getbacktome3 at hotmail.com Fri Aug 5 17:19:19 2005 From: getbacktome3 at hotmail.com (HP Geeza) Date: Fri, 05 Aug 2005 16:19:19 +0100 Subject: nrpe on windows?? In-Reply-To: <6B893C5F2902D311A23F0090272854FB0575B7C3@litex001.lit.verwalt-berlin.de> References: <6B893C5F2902D311A23F0090272854FB0575B7C3@litex001.lit.verwalt-berlin.de> Message-ID: HAS ANYBODy managed to get nrpe working on a windows machine??? if so could you please tell me which files i need and where i can get them from....because i still can't overcome this ssl problem >From: Ralph.Grothe at itdz-berlin.de >To: getbacktome3 at hotmail.com >Subject: RE: [Nagios-users] RE: [Nagiosplug-help] How to interpret CRC32 >errors? >Date: Fri, 5 Aug 2005 16:23:52 +0200 > >I'm sorry, I hadn't looked carefully enough at the source. > >In the begining there's a macro conditional > >#ifdef HAVE_SSL >SSL_METHOD *meth; >SSL_CTX *ctx; >SSL *ssl; >int use_ssl=TRUE; >#else >int use_ssl=FALSE; >#endif > > >where they check if the Makefile has the macro HAVE_SSL defined. > >Looks like your binary was built with SSL enabled. > >You would have to compile after a "configure --disable-ssl ..." >without SSL support. > >Maybe you can ask in the mailing list if someone has built a >binary for Win32 >with SSL disabled, or knows a download site? >Have you checked the site where you got this one if there are >different versions? >Or does a README say what to do to suppress SSL? > >If you can only get nrpe for win32 with SSL then you would have >to create SSL certificate >(you can make up your own certification authority) >If you use OpenSSL it's not too difficult because it comes with a >Perl script that will do >that for you. > >But I can't believe that there is no nrpe for windows without >SSL. > > > > > -----Original Message----- > > From: HP Geeza [mailto:getbacktome3 at hotmail.com] > > Sent: Friday, August 05, 2005 4:14 PM > > To: Ralph.Grothe at itdz-berlin.de > > Subject: RE: [Nagios-users] RE: [Nagiosplug-help] How to > > interpret CRC32 > > errors? > > > > > > sorry for being such a pain...but im still stuck!!! > > > > ive tried running: > > > > ./check_nrpe -n -c reboot_server > > > > But that gives me an error: Incorrect command line arguments >supplied > > > > I dont have to re compile or something do i?? - if soo what > > commands will i > > need to run? > > > > Any ideas??? - please help. Yes you are rite this nrpe stuff > > isn't well > > documented at all....im sooo confused > > > > > > >From: Ralph.Grothe at itdz-berlin.de > > >To: getbacktome3 at hotmail.com > > >Subject: RE: [Nagios-users] RE: [Nagiosplug-help] How to > > interpret CRC32 > > >errors? > > >Date: Fri, 5 Aug 2005 16:06:19 +0200 > > > > > >Hm, I've so far disabled SSL altogether with my nrpe builds. > > >SSL/TLS would only complicate things. > > >I will try this when my basic setting works. > > > > > >I guess you used a prebuilt binary? > > > > > >Wait, I've just looked in the source code of check_nrpe.c, > > >and in the switch-case block where the **argv is parsed there >is > > >an entry for option -n > > >where the comment reads that you should use this switch to > > >disable SSL. > > > > > >So I would suggest that you put in your check_nrpe call an > > >additional "-n". > > > > > >That's what nags me about nagios, that many features aren't >well > > >documented. > > >If you run check_nrpe --help they won't tell you anything >about > > >-n. > > > > > > > > > > -----Original Message----- > > > > From: HP Geeza [mailto:getbacktome3 at hotmail.com] > > > > Sent: Friday, August 05, 2005 3:52 PM > > > > To: Ralph.Grothe at itdz-berlin.de > > > > Subject: RE: [Nagios-users] RE: [Nagiosplug-help] How to > > > > interpret CRC32 > > > > errors? > > > > > > > > > > > > Hi Ralph > > > > > > > > Ive managed to install the nrpe service on my windows host > > > > but when i run > > > > the command from my nagios box the event log on the windows > > > > machine says > > > > that the ssl handshake failed....i am not too sure how to > > > > configure ssl... > > > > > > > > is there a way round this problem? > > > > > > > > > > > > >From: Ralph.Grothe at itdz-berlin.de > > > > >To: getbacktome3 at hotmail.com > > > > >Subject: RE: [Nagios-users] RE: [Nagiosplug-help] How to > > > > interpret CRC32 > > > > >errors? > > > > >Date: Fri, 5 Aug 2005 15:35:20 +0200 > > > > > > > > > >Hi Geeza, > > > > > > > > > >you can't run this from your Linux host (I suppose this is > > >your > > > > >Nagios server, whereas the Windows box you want to shut >down > > >is > > > > >your remote host), > > > > >because Win32.pm is not made for Linux. > > > > > > > > > >I think you have to install the Windows version of the >NRPE on > > > > >your Windows host. > > > > >There should be a README or INSTALL file how this is done > > >under > > > > >Windows. > > > > >It should also explain how the nrpe daemon can be started >as a > > > > >Windows service. > > > > > > > > > >On the Windows box you need to define a command in >nrpe.cfg > > >that > > > > >is the same as how you would run your shutdown script. > > > > > > > > > >Then you have to start the nrpe service on the Windows >box. > > > > > > > > > >In the nrpe binaries for Windows should also be a >check_nrpe > > > > >executable. > > > > >You can use this to test if your command gets executed by >nrpe > > > > >service on the Windows localhost. > > > > >Of course for this test I would modify the shutdown script >so > > > > >that it wouldn't really shutdown > > > > >but only display for instance what it would be doing. > > > > >As -H you have to give the localhost IP because you're >running > > > > >this on the same box. > > > > >As -c you have to pass the name of your command you >defined in > > > > >nrpe.cfg above. > > > > > > > > > >Then you must build or get the binary for Linux of >check_nrpe, > > > > >and install it in the libexec directory of your Linux >Nagios > > > > >server. > > > > >You should now be able run check_nrpe -H >IP_of_Windows_Host -c > > > > >Shutdown_Command > > > > >much the same like you have done on the Windows host. > > > > >This time you only have to specify the IP of the Windows >host > > > > >instead of localhost or 127.0.0.1 > > > > > > > > > >If that test also worked you can define a check_command >and a > > > > >service in your nagios config files, > > > > >and restart the nagios server. > > > > > > > > > > > -----Original Message----- > > > > > > From: HP Geeza [mailto:getbacktome3 at hotmail.com] > > > > > > Sent: Thursday, August 04, 2005 7:07 PM > > > > > > To: Ralph.Grothe at itdz-berlin.de > > > > > > Subject: RE: [Nagios-users] RE: [Nagiosplug-help] How >to > > > > > > interpret CRC32 > > > > > > errors? > > > > > > > > > > > > > > > > > > Here's my sample test.pl file: > > > > > > > > > > > > #!/usr/bin/perl > > > > > > > > > > > > use strict; > > > > > > use Win32; > > > > > > > > > > > > Win32::InitiateSystemShutdown("", "BYE", >1, 1, > > >1); > > > > > > > > > > > > > > > > > > I copied the Win32.pm to a location that the system >could > > > > > > seee....however i > > > > > > now get the following error message: > > > > > > > > > > > > Undefined subroutine &Win32::InitiateSystemShutdown >called > > >at > > > > > > ./test.pl line > > > > > > 6. > > > > > > > > > > > > any ideas??? > > > > > > > > > > > > > > > > > > >From: Ralph.Grothe at itdz-berlin.de > > > > > > >To: getbacktome3 at hotmail.com > > > > > > >Subject: RE: [Nagios-users] RE: [Nagiosplug-help] How >to > > > > > > interpret CRC32 > > > > > > >errors? > > > > > > >Date: Thu, 4 Aug 2005 18:48:16 +0200 > > > > > > > > > > > > > >Hi Geeza, > > > > > > > > > > > > > >do you mean your question regarding the remote >shutdown of > > > > > > >Windows boxes? > > > > > > > > > > > > > >I'm sure that this can be accomplished. > > > > > > > > > > > > > >However, I'm absolutely not into Windows. > > > > > > > > > > > > > >If you could wait until tomorrow, or haven't received >a > > >hack > > > > >from > > > > > > >someone else by then, > > > > > > >I could ask our Windows admin what is required on a > > >Windows > > > > >host > > > > > > >to do this. > > > > > > > > > > > > > >I would guess only some tampering with some registry >key > > >or > > > > >so. > > > > > > > > > > > > > >I also don't know the Microsoft interpreters like >Windows > > > > > > >Scripting Host or even the .Net framework. > > > > > > >Anyone familiar with those can quickly script >something > > >that > > > > >will > > > > > > >do what you need. > > > > > > > > > > > > > >I only script in Perl and Unix shells. > > > > > > > > > > > > > >But you can as well install Perl on a Windows box, and >do > > >all > > > > > > >sorts of sysadmin tasks through Perl. > > > > > > >They have special modules that give you access to the > > >Registry > > > > > > >and other Windows typical interfaces. > > > > > > > > > > > > > > > > > > > > >Sorry, for not being of more help > > > > > > > > > > > > > >Ralph > > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > > From: HP Geeza [mailto:getbacktome3 at hotmail.com] > > > > > > > > Sent: Thursday, August 04, 2005 6:40 PM > > > > > > > > To: Ralph.Grothe at itdz-berlin.de > > > > > > > > Subject: RE: [Nagios-users] RE: [Nagiosplug-help] >How > > >to > > > > > > > > interpret CRC32 > > > > > > > > errors? > > > > > > > > > > > > > > > > > > > > > > > > Hi Ralph, > > > > > > > > > > > > > > > > I have just posted an NRPE related >questoin....could > > >you > > > > > > > > please help??? > > > > > > > > > > > > > > > > >From: Ralph.Grothe at itdz-berlin.de > > > > > > > > >To: nagios-users at lists.sourceforge.net > > > > > > > > >CC: cshaffer at gmail.com > > > > > > > > >Subject: RE: [Nagios-users] RE: [Nagiosplug-help] >How > > >to > > > > > > > > interpret CRC32 > > > > > > > > >errors? > > > > > > > > >Date: Thu, 4 Aug 2005 18:31:29 +0200 > > > > > > > > > > > > > > > > > >Good news (for me). > > > > > > > > > > > > > > > > > >I found the remedy against unruly CRC32 NRPE >chokes. > > > > > > > > > > > > > > > > > >When I tested my script at the shell I made sure >by > > > > > > >redirecting > > > > > > > > >stderr to /dev/null > > > > > > > > >that indeed nothing was sent there. > > > > > > > > > > > > > > > > > >However, when this script got executed (or rather > > > > >crchecked) > > > > > > >by > > > > > > > > >nrpe > > > > > > > > >something must have sneaked to stderr. > > > > > > > > > > > > > > > > > >So I simply put this statement in the beginning of >my > > > > >script: > > > > > > > > > > > > > > > > > >[saz at inwo2] > > > > > > > > >$ grep -n exec\ > > >/usr/local/nagios/libexec/check_hpva.sh > > > > > > > > >6:exec 2>/dev/null > > > > > > > > > > > > > > > > > > > > > > > > > > >By shutting stderr the a priori crcheck cannot >produce > > > > > > > > >differences. > > > > > > > > > > > > > > > > > >Now I can execute through nrpe > > > > > > > > > > > > > > > > > >[saz at inwo2] > > > > > > > > >$ /usr/local/nagios/libexec/check_nrpe -H >127.0.0.1 -c > > > > > > > > >check_hpva_INWO2 > > > > > > > > >OK: HP Virtual Array "va" on inwo2 all FRUs >State > > >Good > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >And even from the nagios server remotely this >works > > >now > > > > > > > > > > > > > > > > > > > > > > > > > > >[nagios at daisy:~] > > > > > > > > >$ libexec/check_nrpe -H inwo2 -c check_hpva_INWO2 > > > > > > > > >OK: HP Virtual Array "va" on inwo2 all FRUs >State > > >Good > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >Lesson learnt, for all own plug-ins you write > > >explicitly > > > > >close > > > > > > > > >stderr > > > > > > > > >to avoid any CRC32 annoyances. > > > > > > > > > > > > > > > > > >So this conclusion would take only one line to be > > >added to > > > > >the > > > > > > > > >documentation! > > > > > > > > > > > > > > > > > >I again rechecked the "Nagios plug-in development > > > > >guidelines" > > > > > > >but > > > > > > > > >didn't find such a reference. > > > > > > > > >It would have saved me two hours and you my >reduntant > > > > >noise. > > > > > > > > > > > > > > > > > > > > > > > > > > >Happy NRPEing > > > > > > > > > > > > > > > > > >Ralph > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > > > > From: nagios-users-admin at lists.sourceforge.net > > > > > > > > > > >[mailto:nagios-users-admin at lists.sourceforge.net]On > > > > >Behalf > > > > > > >Of > > > > > > > > > > Ralph.Grothe at itdz-berlin.de > > > > > > > > > > Sent: Thursday, August 04, 2005 5:37 PM > > > > > > > > > > To: ae at op5.se > > > > > > > > > > Cc: nagios-users at lists.sourceforge.net > > > > > > > > > > Subject: [Nagios-users] RE: [Nagiosplug-help] >How > > >to > > > > > > >interpret > > > > > > > > >CRC32 > > > > > > > > > > errors? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > You're asking people to help you on their >spare > > >time. > > > > > > >Most of > > > > > > > > > > your > > > > > > > > > > > questions so far have been either no-brainers > > >that > > > > >you > > > > > > >would > > > > > > > > > > > have been > > > > > > > > > > > able to figure out for yourself had you made >the > > > > >effort, > > > > > > >or > > > > > > > > > > > of the kind > > > > > > > > > > > that would take considerable effort to answer > > > > >properly. > > > > > > > > > > > > > > > > > > > > I know that I waste the time of people who are > > >willing > > > > >to > > > > > > >help > > > > > > > > > > me. > > > > > > > > > > > > > > > > > > > > Did I know more about Nagios I would happily >pay > > >back > > > > >by > > > > > > > > > > answering others' questions. > > > > > > > > > > > > > > > > > > > > I had the impression that the developpers had >left > > >the > > > > > > > > > > documentation sketchy in favour of directing >people > > >to > > > > >the > > > > > > > > > > nagios-users mailing list (at least that's what > > >every > > > > > > >plug-in's > > > > > > > > > > help screen suggests) > > > > > > > > > > I know what an unpleasant duty it is for >developers > > >to > > > > > > > > >document. > > > > > > > > > > > > > > > > > > > > To someone so much and probably long time >involved > > >in > > > > >the > > > > > > > > >Nagios > > > > > > > > > > project as you > > > > > > > > > > (only assuming this as I don't know your >background > > >or > > > > >role > > > > > > > > >here) > > > > > > > > > > my questions may seem like brain farts. > > > > > > > > > > > > > > > > > > > > I only wonder why, if you are so pissed off by > > >them, > > > > >simply > > > > > > > > >don't > > > > > > > > > > ignore them. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On a sidenote, it's considered very rude to > > > > >cross-post > > > > > > >unless > > > > > > > > > > you're > > > > > > > > > > > making an announcement of some sort, so >please > > > > >refrain > > > > > > >from > > > > > > > > > > > doing so in > > > > > > > > > > > the future. > > > > > > > > > > > > > > > > > > > > I didn't know I was cross posting. > > > > > > > > > > I didn't regard sending my questions to > > >nagios-users > > > > >and > > > > > > > > > > nagiosplug-help simultaniously > > > > > > > > > > as real cross postings. > > > > > > > > > > I didn't post in other 10 lists or so, and I >didn't > > > > >spam or > > > > > > > > >post > > > > > > > > > > off-topic announcements, nor insult someone >here. > > > > > > > > > > > > > > > > > > > > If the mailing list moderators opened this list >to > > >the > > > > > > >public > > > > > > > > >of > > > > > > > > > > all kinds of Nagios users > > > > > > > > > > list subscribers have to live with dumb >questions > > >of > > > > >Nagios > > > > > > > > > > newbies like me. > > > > > > > > > > > > > > > > > > > > Having learned that I breached the list >netiquette > > >I > > > > >will > > > > > > >only > > > > > > > > > > post to one list in the future. > > > > > > > > > > > > > > > > > > > > > Did you log in as the NRPE user or did you >just > > >su? > > > > > > >su'ing > > > > > > > > > > > maintains the > > > > > > > > > > > environment settings of the old user, which >will > > >have > > > > > > >effect > > > > > > > > >on > > > > > > > > > > some > > > > > > > > > > > programs. > > > > > > > > > > > > > > > > > > > > No simple su-ing. > > > > > > > > > > Even if I had, I would have taken care to do a >full > > >"su > > > > >-" > > > > > > >to > > > > > > > > > > also obtain the account's environment. > > > > > > > > > > I am and was logged in under the account that I > > > > >configured > > > > > > > > >inetd > > > > > > > > > > to run the nrpe server as > > > > > > > > > > (see 5th field, or 4th field for you) > > > > > > > > > > > > > > > > > > > > [saz at inwo2] > > > > > > > > > > $ id > > > > > > > > > > uid=102(saz) gid=20(users) groups=102(saz) > > > > > > > > > > > > > > > > > > > > [saz at inwo2] > > > > > > > > > > $ grep nrpe /etc/inetd.conf > > > > > > > > > > nrpe stream tcp nowait saz > > > > >/usr/local/nagios/sbin/nrpe > > > > > > >nrpe > > > > > > > > >-c > > > > > > > > > > /usr/local/nagios/etc/nrpe.cfg -i > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > check_hpva.sh prints something to stderr. >This > > >causes > > > > >the > > > > > > > > > > > NRPE daemon to > > > > > > > > > > > miscalculate the checksum. When the plugin >does > > >the > > > > >same > > > > > > >it > > > > > > > > > > > arrives at > > > > > > > > > > > an invalid result. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > My script isn't writing anything to stderr, and > > >it's > > > > > > >outputting > > > > > > > > >a > > > > > > > > > > single line to stdout > > > > > > > > > > (which is I think is in accordance to plug-in > > > > >developer's > > > > > > > > > > guidelines) > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > [saz at inwo2] > > > > > > > > > > $ /usr/local/nagios/libexec/check_hpva.sh > > >2>/dev/null | > > > > >cat > > > > > > >-n > > > > > > > > > > 1 OK: HP Virtual Array "va" on inwo2 >all > > >FRUs > > > > > > >State > > > > > > > > > > Good > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >------------------------------------------------------- > > > > > > > > > > SF.Net email is Sponsored by the Better >Software > > > > >Conference > > > > > > >& > > > > > > > > >EXPO > > > > > > > > > > September 19-22, 2005 * San Francisco, CA * > > >Development > > > > > > > > > > Lifecycle Practices > > > > > > > > > > Agile & Plan-Driven Development * Managing >Projects > > >& > > > > >Teams > > > > > > >* > > > > > > > > > > Testing & QA > > > > > > > > > > Security * Process Improvement & Measurement * > > > > > > > > >http://www.sqe.com/bsce5sf > > > > > > > > >_______________________________________________ > > > > > > > > >Nagios-users mailing list > > > > > > > > >Nagios-users at lists.sourceforge.net > > > > > > > > > > > >https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > >::: Please include Nagios version, plugin version >(-v) > > >and > > > > >OS > > > > > > > > >when reporting any issue. > > > > > > > > >::: Messages without supporting info will risk >being > > >sent > > > > >to > > > > > > > > >/dev/null > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >------------------------------------------------------- > > > > > > > > >SF.Net email is Sponsored by the Better Software > > > > >Conference & > > > > > > >EXPO > > > > > > > > >September 19-22, 2005 * San Francisco, CA * > > >Development > > > > > > > > Lifecycle Practices > > > > > > > > >Agile & Plan-Driven Development * Managing >Projects & > > > > >Teams > > > > > > > > * Testing & QA > > > > > > > > >Security * Process Improvement & Measurement * > > > > > > >http://www.sqe.com/bsce5sf > > > > > > > >_______________________________________________ > > > > > > > >Nagios-users mailing list > > > > > > > >Nagios-users at lists.sourceforge.net > > > > > > > > > > >https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > >::: Please include Nagios version, plugin version >(-v) > > >and > > > > >OS > > > > > > >when > > > > > > > >reporting any issue. > > > > > > > >::: Messages without supporting info will risk being > > >sent to > > > > > > >/dev/null > > > > > > > > > > > > > > > > > > > > > > >________________________________________________________________ > > > > >_ > > > > > > >Be the first to hear what's new at MSN - sign up to >our > > >free > > > > > > >newsletters! > > > > > > >http://www.msn.co.uk/newsletters > > > > > > > > > > > > > > > > > > > > >________________________________________________________________ > > >_ > > > > > > Winks & nudges are here - download MSN Messenger 7.0 >today! > > > > > > http://messenger.msn.co.uk > > > > > > > > > > > > > > > > > >________________________________________________________________ >_ > > > > Be the first to hear what's new at MSN - sign up to our >free > > > > newsletters! > > > > http://www.msn.co.uk/newsletters > > > > > > > > >_________________________________________________________________ > > Be the first to hear what's new at MSN - sign up to our free > > newsletters! > > http://www.msn.co.uk/newsletters > > _________________________________________________________________ Winks & nudges are here - download MSN Messenger 7.0 today! http://messenger.msn.co.uk ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ralph.Grothe at itdz-berlin.de Fri Aug 5 17:22:47 2005 From: Ralph.Grothe at itdz-berlin.de (Ralph.Grothe at itdz-berlin.de) Date: Fri, 5 Aug 2005 17:22:47 +0200 Subject: How to link several checks to one service? Message-ID: <6B893C5F2902D311A23F0090272854FB0575B7C5@litex001.lit.verwalt-berlin.de> Hello Nagios gurus, can I link several check_commands to one service? I don't know quite how to combine servicegroup, service, and command definitions elegantly I know this is quite distorted, but I hope you can gather what I want to achieve e.g. define servicegroup { servicegroup_name silly_appl members SILLY1,...,SILLYN } define service { use generic-service # only to inherit vanilla service settings service_descriptions silly_appl-oracle-check servicegroups silly_appl ... } define service { service_description SILLY1 ... } . . . define service { service_description SILLYN ... } define command { command_name check-tns command_line check-nrpe-ora-tns!$SERVICEDESC$ } define command { command_name check-db command_line check-nrpe-ora-db!$SERVICEDESC$ } define command { command_name check-login command_line check-nrpe-ora-db!$SERVICEDESC$ } ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From getbacktome3 at hotmail.com Fri Aug 5 18:09:43 2005 From: getbacktome3 at hotmail.com (HP Geeza) Date: Fri, 05 Aug 2005 17:09:43 +0100 Subject: [Nagiosplug-help] How to interpret CRC32 errors? In-Reply-To: <6B893C5F2902D311A23F0090272854FB0575B7C3@litex001.lit.verwalt-berlin.de> References: <6B893C5F2902D311A23F0090272854FB0575B7C3@litex001.lit.verwalt-berlin.de> Message-ID: All, I have now started from stracth and tried to setup nrpe...however when i now run the command from my nagios box i see the following error message in the event log on the remote windows machine: NRPE_NT: Error: Request packed has invalid CRC32 NRPE_NT: Client request was invalid, bailing out....... HAS ANY BODY seen this behaviour before??? Ralph was this something you was faced with??? Any help would be much appreciated... >From: Ralph.Grothe at itdz-berlin.de >To: getbacktome3 at hotmail.com >Subject: RE: [Nagios-users] RE: [Nagiosplug-help] How to interpret CRC32 >errors? >Date: Fri, 5 Aug 2005 16:23:52 +0200 > >I'm sorry, I hadn't looked carefully enough at the source. > >In the begining there's a macro conditional > >#ifdef HAVE_SSL >SSL_METHOD *meth; >SSL_CTX *ctx; >SSL *ssl; >int use_ssl=TRUE; >#else >int use_ssl=FALSE; >#endif > > >where they check if the Makefile has the macro HAVE_SSL defined. > >Looks like your binary was built with SSL enabled. > >You would have to compile after a "configure --disable-ssl ..." >without SSL support. > >Maybe you can ask in the mailing list if someone has built a >binary for Win32 >with SSL disabled, or knows a download site? >Have you checked the site where you got this one if there are >different versions? >Or does a README say what to do to suppress SSL? > >If you can only get nrpe for win32 with SSL then you would have >to create SSL certificate >(you can make up your own certification authority) >If you use OpenSSL it's not too difficult because it comes with a >Perl script that will do >that for you. > >But I can't believe that there is no nrpe for windows without >SSL. > > > > > -----Original Message----- > > From: HP Geeza [mailto:getbacktome3 at hotmail.com] > > Sent: Friday, August 05, 2005 4:14 PM > > To: Ralph.Grothe at itdz-berlin.de > > Subject: RE: [Nagios-users] RE: [Nagiosplug-help] How to > > interpret CRC32 > > errors? > > > > > > sorry for being such a pain...but im still stuck!!! > > > > ive tried running: > > > > ./check_nrpe -n -c reboot_server > > > > But that gives me an error: Incorrect command line arguments >supplied > > > > I dont have to re compile or something do i?? - if soo what > > commands will i > > need to run? > > > > Any ideas??? - please help. Yes you are rite this nrpe stuff > > isn't well > > documented at all....im sooo confused > > > > > > >From: Ralph.Grothe at itdz-berlin.de > > >To: getbacktome3 at hotmail.com > > >Subject: RE: [Nagios-users] RE: [Nagiosplug-help] How to > > interpret CRC32 > > >errors? > > >Date: Fri, 5 Aug 2005 16:06:19 +0200 > > > > > >Hm, I've so far disabled SSL altogether with my nrpe builds. > > >SSL/TLS would only complicate things. > > >I will try this when my basic setting works. > > > > > >I guess you used a prebuilt binary? > > > > > >Wait, I've just looked in the source code of check_nrpe.c, > > >and in the switch-case block where the **argv is parsed there >is > > >an entry for option -n > > >where the comment reads that you should use this switch to > > >disable SSL. > > > > > >So I would suggest that you put in your check_nrpe call an > > >additional "-n". > > > > > >That's what nags me about nagios, that many features aren't >well > > >documented. > > >If you run check_nrpe --help they won't tell you anything >about > > >-n. > > > > > > > > > > -----Original Message----- > > > > From: HP Geeza [mailto:getbacktome3 at hotmail.com] > > > > Sent: Friday, August 05, 2005 3:52 PM > > > > To: Ralph.Grothe at itdz-berlin.de > > > > Subject: RE: [Nagios-users] RE: [Nagiosplug-help] How to > > > > interpret CRC32 > > > > errors? > > > > > > > > > > > > Hi Ralph > > > > > > > > Ive managed to install the nrpe service on my windows host > > > > but when i run > > > > the command from my nagios box the event log on the windows > > > > machine says > > > > that the ssl handshake failed....i am not too sure how to > > > > configure ssl... > > > > > > > > is there a way round this problem? > > > > > > > > > > > > >From: Ralph.Grothe at itdz-berlin.de > > > > >To: getbacktome3 at hotmail.com > > > > >Subject: RE: [Nagios-users] RE: [Nagiosplug-help] How to > > > > interpret CRC32 > > > > >errors? > > > > >Date: Fri, 5 Aug 2005 15:35:20 +0200 > > > > > > > > > >Hi Geeza, > > > > > > > > > >you can't run this from your Linux host (I suppose this is > > >your > > > > >Nagios server, whereas the Windows box you want to shut >down > > >is > > > > >your remote host), > > > > >because Win32.pm is not made for Linux. > > > > > > > > > >I think you have to install the Windows version of the >NRPE on > > > > >your Windows host. > > > > >There should be a README or INSTALL file how this is done > > >under > > > > >Windows. > > > > >It should also explain how the nrpe daemon can be started >as a > > > > >Windows service. > > > > > > > > > >On the Windows box you need to define a command in >nrpe.cfg > > >that > > > > >is the same as how you would run your shutdown script. > > > > > > > > > >Then you have to start the nrpe service on the Windows >box. > > > > > > > > > >In the nrpe binaries for Windows should also be a >check_nrpe > > > > >executable. > > > > >You can use this to test if your command gets executed by >nrpe > > > > >service on the Windows localhost. > > > > >Of course for this test I would modify the shutdown script >so > > > > >that it wouldn't really shutdown > > > > >but only display for instance what it would be doing. > > > > >As -H you have to give the localhost IP because you're >running > > > > >this on the same box. > > > > >As -c you have to pass the name of your command you >defined in > > > > >nrpe.cfg above. > > > > > > > > > >Then you must build or get the binary for Linux of >check_nrpe, > > > > >and install it in the libexec directory of your Linux >Nagios > > > > >server. > > > > >You should now be able run check_nrpe -H >IP_of_Windows_Host -c > > > > >Shutdown_Command > > > > >much the same like you have done on the Windows host. > > > > >This time you only have to specify the IP of the Windows >host > > > > >instead of localhost or 127.0.0.1 > > > > > > > > > >If that test also worked you can define a check_command >and a > > > > >service in your nagios config files, > > > > >and restart the nagios server. > > > > > > > > > > > -----Original Message----- > > > > > > From: HP Geeza [mailto:getbacktome3 at hotmail.com] > > > > > > Sent: Thursday, August 04, 2005 7:07 PM > > > > > > To: Ralph.Grothe at itdz-berlin.de > > > > > > Subject: RE: [Nagios-users] RE: [Nagiosplug-help] How >to > > > > > > interpret CRC32 > > > > > > errors? > > > > > > > > > > > > > > > > > > Here's my sample test.pl file: > > > > > > > > > > > > #!/usr/bin/perl > > > > > > > > > > > > use strict; > > > > > > use Win32; > > > > > > > > > > > > Win32::InitiateSystemShutdown("", "BYE", >1, 1, > > >1); > > > > > > > > > > > > > > > > > > I copied the Win32.pm to a location that the system >could > > > > > > seee....however i > > > > > > now get the following error message: > > > > > > > > > > > > Undefined subroutine &Win32::InitiateSystemShutdown >called > > >at > > > > > > ./test.pl line > > > > > > 6. > > > > > > > > > > > > any ideas??? > > > > > > > > > > > > > > > > > > >From: Ralph.Grothe at itdz-berlin.de > > > > > > >To: getbacktome3 at hotmail.com > > > > > > >Subject: RE: [Nagios-users] RE: [Nagiosplug-help] How >to > > > > > > interpret CRC32 > > > > > > >errors? > > > > > > >Date: Thu, 4 Aug 2005 18:48:16 +0200 > > > > > > > > > > > > > >Hi Geeza, > > > > > > > > > > > > > >do you mean your question regarding the remote >shutdown of > > > > > > >Windows boxes? > > > > > > > > > > > > > >I'm sure that this can be accomplished. > > > > > > > > > > > > > >However, I'm absolutely not into Windows. > > > > > > > > > > > > > >If you could wait until tomorrow, or haven't received >a > > >hack > > > > >from > > > > > > >someone else by then, > > > > > > >I could ask our Windows admin what is required on a > > >Windows > > > > >host > > > > > > >to do this. > > > > > > > > > > > > > >I would guess only some tampering with some registry >key > > >or > > > > >so. > > > > > > > > > > > > > >I also don't know the Microsoft interpreters like >Windows > > > > > > >Scripting Host or even the .Net framework. > > > > > > >Anyone familiar with those can quickly script >something > > >that > > > > >will > > > > > > >do what you need. > > > > > > > > > > > > > >I only script in Perl and Unix shells. > > > > > > > > > > > > > >But you can as well install Perl on a Windows box, and >do > > >all > > > > > > >sorts of sysadmin tasks through Perl. > > > > > > >They have special modules that give you access to the > > >Registry > > > > > > >and other Windows typical interfaces. > > > > > > > > > > > > > > > > > > > > >Sorry, for not being of more help > > > > > > > > > > > > > >Ralph > > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > > From: HP Geeza [mailto:getbacktome3 at hotmail.com] > > > > > > > > Sent: Thursday, August 04, 2005 6:40 PM > > > > > > > > To: Ralph.Grothe at itdz-berlin.de > > > > > > > > Subject: RE: [Nagios-users] RE: [Nagiosplug-help] >How > > >to > > > > > > > > interpret CRC32 > > > > > > > > errors? > > > > > > > > > > > > > > > > > > > > > > > > Hi Ralph, > > > > > > > > > > > > > > > > I have just posted an NRPE related >questoin....could > > >you > > > > > > > > please help??? > > > > > > > > > > > > > > > > >From: Ralph.Grothe at itdz-berlin.de > > > > > > > > >To: nagios-users at lists.sourceforge.net > > > > > > > > >CC: cshaffer at gmail.com > > > > > > > > >Subject: RE: [Nagios-users] RE: [Nagiosplug-help] >How > > >to > > > > > > > > interpret CRC32 > > > > > > > > >errors? > > > > > > > > >Date: Thu, 4 Aug 2005 18:31:29 +0200 > > > > > > > > > > > > > > > > > >Good news (for me). > > > > > > > > > > > > > > > > > >I found the remedy against unruly CRC32 NRPE >chokes. > > > > > > > > > > > > > > > > > >When I tested my script at the shell I made sure >by > > > > > > >redirecting > > > > > > > > >stderr to /dev/null > > > > > > > > >that indeed nothing was sent there. > > > > > > > > > > > > > > > > > >However, when this script got executed (or rather > > > > >crchecked) > > > > > > >by > > > > > > > > >nrpe > > > > > > > > >something must have sneaked to stderr. > > > > > > > > > > > > > > > > > >So I simply put this statement in the beginning of >my > > > > >script: > > > > > > > > > > > > > > > > > >[saz at inwo2] > > > > > > > > >$ grep -n exec\ > > >/usr/local/nagios/libexec/check_hpva.sh > > > > > > > > >6:exec 2>/dev/null > > > > > > > > > > > > > > > > > > > > > > > > > > >By shutting stderr the a priori crcheck cannot >produce > > > > > > > > >differences. > > > > > > > > > > > > > > > > > >Now I can execute through nrpe > > > > > > > > > > > > > > > > > >[saz at inwo2] > > > > > > > > >$ /usr/local/nagios/libexec/check_nrpe -H >127.0.0.1 -c > > > > > > > > >check_hpva_INWO2 > > > > > > > > >OK: HP Virtual Array "va" on inwo2 all FRUs >State > > >Good > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >And even from the nagios server remotely this >works > > >now > > > > > > > > > > > > > > > > > > > > > > > > > > >[nagios at daisy:~] > > > > > > > > >$ libexec/check_nrpe -H inwo2 -c check_hpva_INWO2 > > > > > > > > >OK: HP Virtual Array "va" on inwo2 all FRUs >State > > >Good > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >Lesson learnt, for all own plug-ins you write > > >explicitly > > > > >close > > > > > > > > >stderr > > > > > > > > >to avoid any CRC32 annoyances. > > > > > > > > > > > > > > > > > >So this conclusion would take only one line to be > > >added to > > > > >the > > > > > > > > >documentation! > > > > > > > > > > > > > > > > > >I again rechecked the "Nagios plug-in development > > > > >guidelines" > > > > > > >but > > > > > > > > >didn't find such a reference. > > > > > > > > >It would have saved me two hours and you my >reduntant > > > > >noise. > > > > > > > > > > > > > > > > > > > > > > > > > > >Happy NRPEing > > > > > > > > > > > > > > > > > >Ralph > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > > > > From: nagios-users-admin at lists.sourceforge.net > > > > > > > > > > >[mailto:nagios-users-admin at lists.sourceforge.net]On > > > > >Behalf > > > > > > >Of > > > > > > > > > > Ralph.Grothe at itdz-berlin.de > > > > > > > > > > Sent: Thursday, August 04, 2005 5:37 PM > > > > > > > > > > To: ae at op5.se > > > > > > > > > > Cc: nagios-users at lists.sourceforge.net > > > > > > > > > > Subject: [Nagios-users] RE: [Nagiosplug-help] >How > > >to > > > > > > >interpret > > > > > > > > >CRC32 > > > > > > > > > > errors? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > You're asking people to help you on their >spare > > >time. > > > > > > >Most of > > > > > > > > > > your > > > > > > > > > > > questions so far have been either no-brainers > > >that > > > > >you > > > > > > >would > > > > > > > > > > > have been > > > > > > > > > > > able to figure out for yourself had you made >the > > > > >effort, > > > > > > >or > > > > > > > > > > > of the kind > > > > > > > > > > > that would take considerable effort to answer > > > > >properly. > > > > > > > > > > > > > > > > > > > > I know that I waste the time of people who are > > >willing > > > > >to > > > > > > >help > > > > > > > > > > me. > > > > > > > > > > > > > > > > > > > > Did I know more about Nagios I would happily >pay > > >back > > > > >by > > > > > > > > > > answering others' questions. > > > > > > > > > > > > > > > > > > > > I had the impression that the developpers had >left > > >the > > > > > > > > > > documentation sketchy in favour of directing >people > > >to > > > > >the > > > > > > > > > > nagios-users mailing list (at least that's what > > >every > > > > > > >plug-in's > > > > > > > > > > help screen suggests) > > > > > > > > > > I know what an unpleasant duty it is for >developers > > >to > > > > > > > > >document. > > > > > > > > > > > > > > > > > > > > To someone so much and probably long time >involved > > >in > > > > >the > > > > > > > > >Nagios > > > > > > > > > > project as you > > > > > > > > > > (only assuming this as I don't know your >background > > >or > > > > >role > > > > > > > > >here) > > > > > > > > > > my questions may seem like brain farts. > > > > > > > > > > > > > > > > > > > > I only wonder why, if you are so pissed off by > > >them, > > > > >simply > > > > > > > > >don't > > > > > > > > > > ignore them. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On a sidenote, it's considered very rude to > > > > >cross-post > > > > > > >unless > > > > > > > > > > you're > > > > > > > > > > > making an announcement of some sort, so >please > > > > >refrain > > > > > > >from > > > > > > > > > > > doing so in > > > > > > > > > > > the future. > > > > > > > > > > > > > > > > > > > > I didn't know I was cross posting. > > > > > > > > > > I didn't regard sending my questions to > > >nagios-users > > > > >and > > > > > > > > > > nagiosplug-help simultaniously > > > > > > > > > > as real cross postings. > > > > > > > > > > I didn't post in other 10 lists or so, and I >didn't > > > > >spam or > > > > > > > > >post > > > > > > > > > > off-topic announcements, nor insult someone >here. > > > > > > > > > > > > > > > > > > > > If the mailing list moderators opened this list >to > > >the > > > > > > >public > > > > > > > > >of > > > > > > > > > > all kinds of Nagios users > > > > > > > > > > list subscribers have to live with dumb >questions > > >of > > > > >Nagios > > > > > > > > > > newbies like me. > > > > > > > > > > > > > > > > > > > > Having learned that I breached the list >netiquette > > >I > > > > >will > > > > > > >only > > > > > > > > > > post to one list in the future. > > > > > > > > > > > > > > > > > > > > > Did you log in as the NRPE user or did you >just > > >su? > > > > > > >su'ing > > > > > > > > > > > maintains the > > > > > > > > > > > environment settings of the old user, which >will > > >have > > > > > > >effect > > > > > > > > >on > > > > > > > > > > some > > > > > > > > > > > programs. > > > > > > > > > > > > > > > > > > > > No simple su-ing. > > > > > > > > > > Even if I had, I would have taken care to do a >full > > >"su > > > > >-" > > > > > > >to > > > > > > > > > > also obtain the account's environment. > > > > > > > > > > I am and was logged in under the account that I > > > > >configured > > > > > > > > >inetd > > > > > > > > > > to run the nrpe server as > > > > > > > > > > (see 5th field, or 4th field for you) > > > > > > > > > > > > > > > > > > > > [saz at inwo2] > > > > > > > > > > $ id > > > > > > > > > > uid=102(saz) gid=20(users) groups=102(saz) > > > > > > > > > > > > > > > > > > > > [saz at inwo2] > > > > > > > > > > $ grep nrpe /etc/inetd.conf > > > > > > > > > > nrpe stream tcp nowait saz > > > > >/usr/local/nagios/sbin/nrpe > > > > > > >nrpe > > > > > > > > >-c > > > > > > > > > > /usr/local/nagios/etc/nrpe.cfg -i > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > check_hpva.sh prints something to stderr. >This > > >causes > > > > >the > > > > > > > > > > > NRPE daemon to > > > > > > > > > > > miscalculate the checksum. When the plugin >does > > >the > > > > >same > > > > > > >it > > > > > > > > > > > arrives at > > > > > > > > > > > an invalid result. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > My script isn't writing anything to stderr, and > > >it's > > > > > > >outputting > > > > > > > > >a > > > > > > > > > > single line to stdout > > > > > > > > > > (which is I think is in accordance to plug-in > > > > >developer's > > > > > > > > > > guidelines) > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > [saz at inwo2] > > > > > > > > > > $ /usr/local/nagios/libexec/check_hpva.sh > > >2>/dev/null | > > > > >cat > > > > > > >-n > > > > > > > > > > 1 OK: HP Virtual Array "va" on inwo2 >all > > >FRUs > > > > > > >State > > > > > > > > > > Good > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >------------------------------------------------------- > > > > > > > > > > SF.Net email is Sponsored by the Better >Software > > > > >Conference > > > > > > >& > > > > > > > > >EXPO > > > > > > > > > > September 19-22, 2005 * San Francisco, CA * > > >Development > > > > > > > > > > Lifecycle Practices > > > > > > > > > > Agile & Plan-Driven Development * Managing >Projects > > >& > > > > >Teams > > > > > > >* > > > > > > > > > > Testing & QA > > > > > > > > > > Security * Process Improvement & Measurement * > > > > > > > > >http://www.sqe.com/bsce5sf > > > > > > > > >_______________________________________________ > > > > > > > > >Nagios-users mailing list > > > > > > > > >Nagios-users at lists.sourceforge.net > > > > > > > > > > > >https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > >::: Please include Nagios version, plugin version >(-v) > > >and > > > > >OS > > > > > > > > >when reporting any issue. > > > > > > > > >::: Messages without supporting info will risk >being > > >sent > > > > >to > > > > > > > > >/dev/null > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >------------------------------------------------------- > > > > > > > > >SF.Net email is Sponsored by the Better Software > > > > >Conference & > > > > > > >EXPO > > > > > > > > >September 19-22, 2005 * San Francisco, CA * > > >Development > > > > > > > > Lifecycle Practices > > > > > > > > >Agile & Plan-Driven Development * Managing >Projects & > > > > >Teams > > > > > > > > * Testing & QA > > > > > > > > >Security * Process Improvement & Measurement * > > > > > > >http://www.sqe.com/bsce5sf > > > > > > > >_______________________________________________ > > > > > > > >Nagios-users mailing list > > > > > > > >Nagios-users at lists.sourceforge.net > > > > > > > > > > >https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > >::: Please include Nagios version, plugin version >(-v) > > >and > > > > >OS > > > > > > >when > > > > > > > >reporting any issue. > > > > > > > >::: Messages without supporting info will risk being > > >sent to > > > > > > >/dev/null > > > > > > > > > > > > > > > > > > > > > > >________________________________________________________________ > > > > >_ > > > > > > >Be the first to hear what's new at MSN - sign up to >our > > >free > > > > > > >newsletters! > > > > > > >http://www.msn.co.uk/newsletters > > > > > > > > > > > > > > > > > > > > >________________________________________________________________ > > >_ > > > > > > Winks & nudges are here - download MSN Messenger 7.0 >today! > > > > > > http://messenger.msn.co.uk > > > > > > > > > > > > > > > > > >________________________________________________________________ >_ > > > > Be the first to hear what's new at MSN - sign up to our >free > > > > newsletters! > > > > http://www.msn.co.uk/newsletters > > > > > > > > >_________________________________________________________________ > > Be the first to hear what's new at MSN - sign up to our free > > newsletters! > > http://www.msn.co.uk/newsletters > > _________________________________________________________________ Be the first to hear what's new at MSN - sign up to our free newsletters! http://www.msn.co.uk/newsletters ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ralph.Grothe at itdz-berlin.de Fri Aug 5 18:14:34 2005 From: Ralph.Grothe at itdz-berlin.de (Ralph.Grothe at itdz-berlin.de) Date: Fri, 5 Aug 2005 18:14:34 +0200 Subject: [Nagiosplug-help] How to interpret CRC32 errors? Message-ID: <6B893C5F2902D311A23F0090272854FB0575B7C6@litex001.lit.verwalt-berlin.de> When I had these CRC32 errors it was owe to some smut getting written to stderr. Maybe it's the same with your plug-in? I think your plug-in is in Perl, wan't it? Try doing an explicit close of stderr at the to, or better yet in a BEGIN block. e.g. close(STDERR); But if you're plug-in is forking through system() I think this wouldn't help. Then you probably would have to do shell type redirecting. > -----Original Message----- > From: HP Geeza [mailto:getbacktome3 at hotmail.com] > Sent: Friday, August 05, 2005 6:10 PM > To: Ralph.Grothe at itdz-berlin.de; nagios-users at lists.sourceforge.net > Subject: RE: [Nagiosplug-help] How to interpret CRC32 errors? > > > All, > > I have now started from stracth and tried to setup > nrpe...however when i now > run the command from my nagios box i see the following error > message in the > event log on the remote windows machine: > > NRPE_NT: Error: Request packed has invalid CRC32 > NRPE_NT: Client request was invalid, bailing out....... > > HAS ANY BODY seen this behaviour before??? > > Ralph was this something you was faced with??? > > Any help would be much appreciated... > > >From: Ralph.Grothe at itdz-berlin.de > >To: getbacktome3 at hotmail.com > >Subject: RE: [Nagios-users] RE: [Nagiosplug-help] How to > interpret CRC32 > >errors? > >Date: Fri, 5 Aug 2005 16:23:52 +0200 > > > >I'm sorry, I hadn't looked carefully enough at the source. > > > >In the begining there's a macro conditional > > > >#ifdef HAVE_SSL > >SSL_METHOD *meth; > >SSL_CTX *ctx; > >SSL *ssl; > >int use_ssl=TRUE; > >#else > >int use_ssl=FALSE; > >#endif > > > > > >where they check if the Makefile has the macro HAVE_SSL defined. > > > >Looks like your binary was built with SSL enabled. > > > >You would have to compile after a "configure --disable-ssl ..." > >without SSL support. > > > >Maybe you can ask in the mailing list if someone has built a > >binary for Win32 > >with SSL disabled, or knows a download site? > >Have you checked the site where you got this one if there are > >different versions? > >Or does a README say what to do to suppress SSL? > > > >If you can only get nrpe for win32 with SSL then you would have > >to create SSL certificate > >(you can make up your own certification authority) > >If you use OpenSSL it's not too difficult because it comes with a > >Perl script that will do > >that for you. > > > >But I can't believe that there is no nrpe for windows without > >SSL. > > > > > > > > > -----Original Message----- > > > From: HP Geeza [mailto:getbacktome3 at hotmail.com] > > > Sent: Friday, August 05, 2005 4:14 PM > > > To: Ralph.Grothe at itdz-berlin.de > > > Subject: RE: [Nagios-users] RE: [Nagiosplug-help] How to > > > interpret CRC32 > > > errors? > > > > > > > > > sorry for being such a pain...but im still stuck!!! > > > > > > ive tried running: > > > > > > ./check_nrpe -n -c reboot_server > > > > > > But that gives me an error: Incorrect command line arguments > >supplied > > > > > > I dont have to re compile or something do i?? - if soo what > > > commands will i > > > need to run? > > > > > > Any ideas??? - please help. Yes you are rite this nrpe stuff > > > isn't well > > > documented at all....im sooo confused > > > > > > > > > >From: Ralph.Grothe at itdz-berlin.de > > > >To: getbacktome3 at hotmail.com > > > >Subject: RE: [Nagios-users] RE: [Nagiosplug-help] How to > > > interpret CRC32 > > > >errors? > > > >Date: Fri, 5 Aug 2005 16:06:19 +0200 > > > > > > > >Hm, I've so far disabled SSL altogether with my nrpe builds. > > > >SSL/TLS would only complicate things. > > > >I will try this when my basic setting works. > > > > > > > >I guess you used a prebuilt binary? > > > > > > > >Wait, I've just looked in the source code of check_nrpe.c, > > > >and in the switch-case block where the **argv is parsed there > >is > > > >an entry for option -n > > > >where the comment reads that you should use this switch to > > > >disable SSL. > > > > > > > >So I would suggest that you put in your check_nrpe call an > > > >additional "-n". > > > > > > > >That's what nags me about nagios, that many features aren't > >well > > > >documented. > > > >If you run check_nrpe --help they won't tell you anything > >about > > > >-n. > > > > > > > > > > > > > -----Original Message----- > > > > > From: HP Geeza [mailto:getbacktome3 at hotmail.com] > > > > > Sent: Friday, August 05, 2005 3:52 PM > > > > > To: Ralph.Grothe at itdz-berlin.de > > > > > Subject: RE: [Nagios-users] RE: [Nagiosplug-help] How to > > > > > interpret CRC32 > > > > > errors? > > > > > > > > > > > > > > > Hi Ralph > > > > > > > > > > Ive managed to install the nrpe service on my windows host > > > > > but when i run > > > > > the command from my nagios box the event log on the windows > > > > > machine says > > > > > that the ssl handshake failed....i am not too sure how to > > > > > configure ssl... > > > > > > > > > > is there a way round this problem? > > > > > > > > > > > > > > > >From: Ralph.Grothe at itdz-berlin.de > > > > > >To: getbacktome3 at hotmail.com > > > > > >Subject: RE: [Nagios-users] RE: [Nagiosplug-help] How to > > > > > interpret CRC32 > > > > > >errors? > > > > > >Date: Fri, 5 Aug 2005 15:35:20 +0200 > > > > > > > > > > > >Hi Geeza, > > > > > > > > > > > >you can't run this from your Linux host (I suppose this is > > > >your > > > > > >Nagios server, whereas the Windows box you want to shut > >down > > > >is > > > > > >your remote host), > > > > > >because Win32.pm is not made for Linux. > > > > > > > > > > > >I think you have to install the Windows version of the > >NRPE on > > > > > >your Windows host. > > > > > >There should be a README or INSTALL file how this is done > > > >under > > > > > >Windows. > > > > > >It should also explain how the nrpe daemon can be started > >as a > > > > > >Windows service. > > > > > > > > > > > >On the Windows box you need to define a command in > >nrpe.cfg > > > >that > > > > > >is the same as how you would run your shutdown script. > > > > > > > > > > > >Then you have to start the nrpe service on the Windows > >box. > > > > > > > > > > > >In the nrpe binaries for Windows should also be a > >check_nrpe > > > > > >executable. > > > > > >You can use this to test if your command gets executed by > >nrpe > > > > > >service on the Windows localhost. > > > > > >Of course for this test I would modify the shutdown script > >so > > > > > >that it wouldn't really shutdown > > > > > >but only display for instance what it would be doing. > > > > > >As -H you have to give the localhost IP because you're > >running > > > > > >this on the same box. > > > > > >As -c you have to pass the name of your command you > >defined in > > > > > >nrpe.cfg above. > > > > > > > > > > > >Then you must build or get the binary for Linux of > >check_nrpe, > > > > > >and install it in the libexec directory of your Linux > >Nagios > > > > > >server. > > > > > >You should now be able run check_nrpe -H > >IP_of_Windows_Host -c > > > > > >Shutdown_Command > > > > > >much the same like you have done on the Windows host. > > > > > >This time you only have to specify the IP of the Windows > >host > > > > > >instead of localhost or 127.0.0.1 > > > > > > > > > > > >If that test also worked you can define a check_command > >and a > > > > > >service in your nagios config files, > > > > > >and restart the nagios server. > > > > > > > > > > > > > -----Original Message----- > > > > > > > From: HP Geeza [mailto:getbacktome3 at hotmail.com] > > > > > > > Sent: Thursday, August 04, 2005 7:07 PM > > > > > > > To: Ralph.Grothe at itdz-berlin.de > > > > > > > Subject: RE: [Nagios-users] RE: [Nagiosplug-help] How > >to > > > > > > > interpret CRC32 > > > > > > > errors? > > > > > > > > > > > > > > > > > > > > > Here's my sample test.pl file: > > > > > > > > > > > > > > #!/usr/bin/perl > > > > > > > > > > > > > > use strict; > > > > > > > use Win32; > > > > > > > > > > > > > > Win32::InitiateSystemShutdown("", "BYE", > >1, 1, > > > >1); > > > > > > > > > > > > > > > > > > > > > I copied the Win32.pm to a location that the system > >could > > > > > > > seee....however i > > > > > > > now get the following error message: > > > > > > > > > > > > > > Undefined subroutine &Win32::InitiateSystemShutdown > >called > > > >at > > > > > > > ./test.pl line > > > > > > > 6. > > > > > > > > > > > > > > any ideas??? > > > > > > > > > > > > > > > > > > > > > >From: Ralph.Grothe at itdz-berlin.de > > > > > > > >To: getbacktome3 at hotmail.com > > > > > > > >Subject: RE: [Nagios-users] RE: [Nagiosplug-help] How > >to > > > > > > > interpret CRC32 > > > > > > > >errors? > > > > > > > >Date: Thu, 4 Aug 2005 18:48:16 +0200 > > > > > > > > > > > > > > > >Hi Geeza, > > > > > > > > > > > > > > > >do you mean your question regarding the remote > >shutdown of > > > > > > > >Windows boxes? > > > > > > > > > > > > > > > >I'm sure that this can be accomplished. > > > > > > > > > > > > > > > >However, I'm absolutely not into Windows. > > > > > > > > > > > > > > > >If you could wait until tomorrow, or haven't received > >a > > > >hack > > > > > >from > > > > > > > >someone else by then, > > > > > > > >I could ask our Windows admin what is required on a > > > >Windows > > > > > >host > > > > > > > >to do this. > > > > > > > > > > > > > > > >I would guess only some tampering with some registry > >key > > > >or > > > > > >so. > > > > > > > > > > > > > > > >I also don't know the Microsoft interpreters like > >Windows > > > > > > > >Scripting Host or even the .Net framework. > > > > > > > >Anyone familiar with those can quickly script > >something > > > >that > > > > > >will > > > > > > > >do what you need. > > > > > > > > > > > > > > > >I only script in Perl and Unix shells. > > > > > > > > > > > > > > > >But you can as well install Perl on a Windows box, and > >do > > > >all > > > > > > > >sorts of sysadmin tasks through Perl. > > > > > > > >They have special modules that give you access to the > > > >Registry > > > > > > > >and other Windows typical interfaces. > > > > > > > > > > > > > > > > > > > > > > > >Sorry, for not being of more help > > > > > > > > > > > > > > > >Ralph > > > > > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > > > From: HP Geeza [mailto:getbacktome3 at hotmail.com] > > > > > > > > > Sent: Thursday, August 04, 2005 6:40 PM > > > > > > > > > To: Ralph.Grothe at itdz-berlin.de > > > > > > > > > Subject: RE: [Nagios-users] RE: [Nagiosplug-help] > >How > > > >to > > > > > > > > > interpret CRC32 > > > > > > > > > errors? > > > > > > > > > > > > > > > > > > > > > > > > > > > Hi Ralph, > > > > > > > > > > > > > > > > > > I have just posted an NRPE related > >questoin....could > > > >you > > > > > > > > > please help??? > > > > > > > > > > > > > > > > > > >From: Ralph.Grothe at itdz-berlin.de > > > > > > > > > >To: nagios-users at lists.sourceforge.net > > > > > > > > > >CC: cshaffer at gmail.com > > > > > > > > > >Subject: RE: [Nagios-users] RE: [Nagiosplug-help] > >How > > > >to > > > > > > > > > interpret CRC32 > > > > > > > > > >errors? > > > > > > > > > >Date: Thu, 4 Aug 2005 18:31:29 +0200 > > > > > > > > > > > > > > > > > > > >Good news (for me). > > > > > > > > > > > > > > > > > > > >I found the remedy against unruly CRC32 NRPE > >chokes. > > > > > > > > > > > > > > > > > > > >When I tested my script at the shell I made sure > >by > > > > > > > >redirecting > > > > > > > > > >stderr to /dev/null > > > > > > > > > >that indeed nothing was sent there. > > > > > > > > > > > > > > > > > > > >However, when this script got executed (or rather > > > > > >crchecked) > > > > > > > >by > > > > > > > > > >nrpe > > > > > > > > > >something must have sneaked to stderr. > > > > > > > > > > > > > > > > > > > >So I simply put this statement in the beginning of > >my > > > > > >script: > > > > > > > > > > > > > > > > > > > >[saz at inwo2] > > > > > > > > > >$ grep -n exec\ > > > >/usr/local/nagios/libexec/check_hpva.sh > > > > > > > > > >6:exec 2>/dev/null > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >By shutting stderr the a priori crcheck cannot > >produce > > > > > > > > > >differences. > > > > > > > > > > > > > > > > > > > >Now I can execute through nrpe > > > > > > > > > > > > > > > > > > > >[saz at inwo2] > > > > > > > > > >$ /usr/local/nagios/libexec/check_nrpe -H > >127.0.0.1 -c > > > > > > > > > >check_hpva_INWO2 > > > > > > > > > >OK: HP Virtual Array "va" on inwo2 all FRUs > >State > > > >Good > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >And even from the nagios server remotely this > >works > > > >now > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >[nagios at daisy:~] > > > > > > > > > >$ libexec/check_nrpe -H inwo2 -c check_hpva_INWO2 > > > > > > > > > >OK: HP Virtual Array "va" on inwo2 all FRUs > >State > > > >Good > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >Lesson learnt, for all own plug-ins you write > > > >explicitly > > > > > >close > > > > > > > > > >stderr > > > > > > > > > >to avoid any CRC32 annoyances. > > > > > > > > > > > > > > > > > > > >So this conclusion would take only one line to be > > > >added to > > > > > >the > > > > > > > > > >documentation! > > > > > > > > > > > > > > > > > > > >I again rechecked the "Nagios plug-in development > > > > > >guidelines" > > > > > > > >but > > > > > > > > > >didn't find such a reference. > > > > > > > > > >It would have saved me two hours and you my > >reduntant > > > > > >noise. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >Happy NRPEing > > > > > > > > > > > > > > > > > > > >Ralph > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > > > > > From: nagios-users-admin at lists.sourceforge.net > > > > > > > > > > > > >[mailto:nagios-users-admin at lists.sourceforge.net]On > > > > > >Behalf > > > > > > > >Of > > > > > > > > > > > Ralph.Grothe at itdz-berlin.de > > > > > > > > > > > Sent: Thursday, August 04, 2005 5:37 PM > > > > > > > > > > > To: ae at op5.se > > > > > > > > > > > Cc: nagios-users at lists.sourceforge.net > > > > > > > > > > > Subject: [Nagios-users] RE: [Nagiosplug-help] > >How > > > >to > > > > > > > >interpret > > > > > > > > > >CRC32 > > > > > > > > > > > errors? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > You're asking people to help you on their > >spare > > > >time. > > > > > > > >Most of > > > > > > > > > > > your > > > > > > > > > > > > questions so far have been either no-brainers > > > >that > > > > > >you > > > > > > > >would > > > > > > > > > > > > have been > > > > > > > > > > > > able to figure out for yourself had you made > >the > > > > > >effort, > > > > > > > >or > > > > > > > > > > > > of the kind > > > > > > > > > > > > that would take considerable effort to answer > > > > > >properly. > > > > > > > > > > > > > > > > > > > > > > I know that I waste the time of people who are > > > >willing > > > > > >to > > > > > > > >help > > > > > > > > > > > me. > > > > > > > > > > > > > > > > > > > > > > Did I know more about Nagios I would happily > >pay > > > >back > > > > > >by > > > > > > > > > > > answering others' questions. > > > > > > > > > > > > > > > > > > > > > > I had the impression that the developpers had > >left > > > >the > > > > > > > > > > > documentation sketchy in favour of directing > >people > > > >to > > > > > >the > > > > > > > > > > > nagios-users mailing list (at least that's what > > > >every > > > > > > > >plug-in's > > > > > > > > > > > help screen suggests) > > > > > > > > > > > I know what an unpleasant duty it is for > >developers > > > >to > > > > > > > > > >document. > > > > > > > > > > > > > > > > > > > > > > To someone so much and probably long time > >involved > > > >in > > > > > >the > > > > > > > > > >Nagios > > > > > > > > > > > project as you > > > > > > > > > > > (only assuming this as I don't know your > >background > > > >or > > > > > >role > > > > > > > > > >here) > > > > > > > > > > > my questions may seem like brain farts. > > > > > > > > > > > > > > > > > > > > > > I only wonder why, if you are so pissed off by > > > >them, > > > > > >simply > > > > > > > > > >don't > > > > > > > > > > > ignore them. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On a sidenote, it's considered very rude to > > > > > >cross-post > > > > > > > >unless > > > > > > > > > > > you're > > > > > > > > > > > > making an announcement of some sort, so > >please > > > > > >refrain > > > > > > > >from > > > > > > > > > > > > doing so in > > > > > > > > > > > > the future. > > > > > > > > > > > > > > > > > > > > > > I didn't know I was cross posting. > > > > > > > > > > > I didn't regard sending my questions to > > > >nagios-users > > > > > >and > > > > > > > > > > > nagiosplug-help simultaniously > > > > > > > > > > > as real cross postings. > > > > > > > > > > > I didn't post in other 10 lists or so, and I > >didn't > > > > > >spam or > > > > > > > > > >post > > > > > > > > > > > off-topic announcements, nor insult someone > >here. > > > > > > > > > > > > > > > > > > > > > > If the mailing list moderators opened this list > >to > > > >the > > > > > > > >public > > > > > > > > > >of > > > > > > > > > > > all kinds of Nagios users > > > > > > > > > > > list subscribers have to live with dumb > >questions > > > >of > > > > > >Nagios > > > > > > > > > > > newbies like me. > > > > > > > > > > > > > > > > > > > > > > Having learned that I breached the list > >netiquette > > > >I > > > > > >will > > > > > > > >only > > > > > > > > > > > post to one list in the future. > > > > > > > > > > > > > > > > > > > > > > > Did you log in as the NRPE user or did you > >just > > > >su? > > > > > > > >su'ing > > > > > > > > > > > > maintains the > > > > > > > > > > > > environment settings of the old user, which > >will > > > >have > > > > > > > >effect > > > > > > > > > >on > > > > > > > > > > > some > > > > > > > > > > > > programs. > > > > > > > > > > > > > > > > > > > > > > No simple su-ing. > > > > > > > > > > > Even if I had, I would have taken care to do a > >full > > > >"su > > > > > >-" > > > > > > > >to > > > > > > > > > > > also obtain the account's environment. > > > > > > > > > > > I am and was logged in under the account that I > > > > > >configured > > > > > > > > > >inetd > > > > > > > > > > > to run the nrpe server as > > > > > > > > > > > (see 5th field, or 4th field for you) > > > > > > > > > > > > > > > > > > > > > > [saz at inwo2] > > > > > > > > > > > $ id > > > > > > > > > > > uid=102(saz) gid=20(users) groups=102(saz) > > > > > > > > > > > > > > > > > > > > > > [saz at inwo2] > > > > > > > > > > > $ grep nrpe /etc/inetd.conf > > > > > > > > > > > nrpe stream tcp nowait saz > > > > > >/usr/local/nagios/sbin/nrpe > > > > > > > >nrpe > > > > > > > > > >-c > > > > > > > > > > > /usr/local/nagios/etc/nrpe.cfg -i > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > check_hpva.sh prints something to stderr. > >This > > > >causes > > > > > >the > > > > > > > > > > > > NRPE daemon to > > > > > > > > > > > > miscalculate the checksum. When the plugin > >does > > > >the > > > > > >same > > > > > > > >it > > > > > > > > > > > > arrives at > > > > > > > > > > > > an invalid result. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > My script isn't writing anything to stderr, and > > > >it's > > > > > > > >outputting > > > > > > > > > >a > > > > > > > > > > > single line to stdout > > > > > > > > > > > (which is I think is in accordance to plug-in > > > > > >developer's > > > > > > > > > > > guidelines) > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > [saz at inwo2] > > > > > > > > > > > $ /usr/local/nagios/libexec/check_hpva.sh > > > >2>/dev/null | > > > > > >cat > > > > > > > >-n > > > > > > > > > > > 1 OK: HP Virtual Array "va" on inwo2 > >all > > > >FRUs > > > > > > > >State > > > > > > > > > > > Good > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >------------------------------------------------------- > > > > > > > > > > > SF.Net email is Sponsored by the Better > >Software > > > > > >Conference > > > > > > > >& > > > > > > > > > >EXPO > > > > > > > > > > > September 19-22, 2005 * San Francisco, CA * > > > >Development > > > > > > > > > > > Lifecycle Practices > > > > > > > > > > > Agile & Plan-Driven Development * Managing > >Projects > > > >& > > > > > >Teams > > > > > > > >* > > > > > > > > > > > Testing & QA > > > > > > > > > > > Security * Process Improvement & Measurement * > > > > > > > > > >http://www.sqe.com/bsce5sf > > > > > > > > > >_______________________________________________ > > > > > > > > > >Nagios-users mailing list > > > > > > > > > >Nagios-users at lists.sourceforge.net > > > > > > > > > > > > > >https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > >::: Please include Nagios version, plugin version > >(-v) > > > >and > > > > > >OS > > > > > > > > > >when reporting any issue. > > > > > > > > > >::: Messages without supporting info will risk > >being > > > >sent > > > > > >to > > > > > > > > > >/dev/null > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >------------------------------------------------------- > > > > > > > > > >SF.Net email is Sponsored by the Better Software > > > > > >Conference & > > > > > > > >EXPO > > > > > > > > > >September 19-22, 2005 * San Francisco, CA * > > > >Development > > > > > > > > > Lifecycle Practices > > > > > > > > > >Agile & Plan-Driven Development * Managing > >Projects & > > > > > >Teams > > > > > > > > > * Testing & QA > > > > > > > > > >Security * Process Improvement & Measurement * > > > > > > > >http://www.sqe.com/bsce5sf > > > > > > > > >_______________________________________________ > > > > > > > > >Nagios-users mailing list > > > > > > > > >Nagios-users at lists.sourceforge.net > > > > > > > > > > > > >https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > >::: Please include Nagios version, plugin version > >(-v) > > > >and > > > > > >OS > > > > > > > >when > > > > > > > > >reporting any issue. > > > > > > > > >::: Messages without supporting info will risk being > > > >sent to > > > > > > > >/dev/null > > > > > > > > > > > > > > > > > > > > > > > > > > > >________________________________________________________________ > > > > > >_ > > > > > > > >Be the first to hear what's new at MSN - sign up to > >our > > > >free > > > > > > > >newsletters! > > > > > > > >http://www.msn.co.uk/newsletters > > > > > > > > > > > > > > > > > > > > > > > > > >________________________________________________________________ > > > >_ > > > > > > > Winks & nudges are here - download MSN Messenger 7.0 > >today! > > > > > > > http://messenger.msn.co.uk > > > > > > > > > > > > > > > > > > > > > > >________________________________________________________________ > >_ > > > > > Be the first to hear what's new at MSN - sign up to our > >free > > > > > newsletters! > > > > > http://www.msn.co.uk/newsletters > > > > > > > > > > > > >________________________________________________________________ _ > > > Be the first to hear what's new at MSN - sign up to our free > > > newsletters! > > > http://www.msn.co.uk/newsletters > > > > > _________________________________________________________________ > Be the first to hear what's new at MSN - sign up to our free > newsletters! > http://www.msn.co.uk/newsletters > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From getbacktome3 at hotmail.com Fri Aug 5 18:22:42 2005 From: getbacktome3 at hotmail.com (HP Geeza) Date: Fri, 05 Aug 2005 17:22:42 +0100 Subject: [Nagiosplug-help] How to interpret CRC32 errors? In-Reply-To: <6B893C5F2902D311A23F0090272854FB0575B7C6@litex001.lit.verwalt-berlin.de> References: <6B893C5F2902D311A23F0090272854FB0575B7C6@litex001.lit.verwalt-berlin.de> Message-ID: my plugin is a simple cmd file on the remote windows machine which i am trying to run via check_nrpe shutdown.cmd contains the following code: c:\windows\system32\shutdown.exe -r Here's the command in the nrpe.cfg file: command[reboot_server]=C:\source\psshutdown\shutdown.cmd and here's the command im running from my nagios box: ./check_nrpe -p 5666 -H -c reboot_server >From: Ralph.Grothe at itdz-berlin.de >To: getbacktome3 at hotmail.com, nagios-users at lists.sourceforge.net >Subject: [Nagios-users] RE: [Nagiosplug-help] How to interpret CRC32 >errors? >Date: Fri, 5 Aug 2005 18:14:34 +0200 > >When I had these CRC32 errors it was owe to some smut getting >written to stderr. > >Maybe it's the same with your plug-in? > >I think your plug-in is in Perl, wan't it? > >Try doing an explicit close of stderr at the to, or better yet in >a BEGIN block. > >e.g. > >close(STDERR); > >But if you're plug-in is forking through system() I think this >wouldn't help. >Then you probably would have to do shell type redirecting. > > > > > > > -----Original Message----- > > From: HP Geeza [mailto:getbacktome3 at hotmail.com] > > Sent: Friday, August 05, 2005 6:10 PM > > To: Ralph.Grothe at itdz-berlin.de; >nagios-users at lists.sourceforge.net > > Subject: RE: [Nagiosplug-help] How to interpret CRC32 errors? > > > > > > All, > > > > I have now started from stracth and tried to setup > > nrpe...however when i now > > run the command from my nagios box i see the following error > > message in the > > event log on the remote windows machine: > > > > NRPE_NT: Error: Request packed has invalid CRC32 > > NRPE_NT: Client request was invalid, bailing out....... > > > > HAS ANY BODY seen this behaviour before??? > > > > Ralph was this something you was faced with??? > > > > Any help would be much appreciated... > > > > >From: Ralph.Grothe at itdz-berlin.de > > >To: getbacktome3 at hotmail.com > > >Subject: RE: [Nagios-users] RE: [Nagiosplug-help] How to > > interpret CRC32 > > >errors? > > >Date: Fri, 5 Aug 2005 16:23:52 +0200 > > > > > >I'm sorry, I hadn't looked carefully enough at the source. > > > > > >In the begining there's a macro conditional > > > > > >#ifdef HAVE_SSL > > >SSL_METHOD *meth; > > >SSL_CTX *ctx; > > >SSL *ssl; > > >int use_ssl=TRUE; > > >#else > > >int use_ssl=FALSE; > > >#endif > > > > > > > > >where they check if the Makefile has the macro HAVE_SSL >defined. > > > > > >Looks like your binary was built with SSL enabled. > > > > > >You would have to compile after a "configure --disable-ssl >..." > > >without SSL support. > > > > > >Maybe you can ask in the mailing list if someone has built a > > >binary for Win32 > > >with SSL disabled, or knows a download site? > > >Have you checked the site where you got this one if there are > > >different versions? > > >Or does a README say what to do to suppress SSL? > > > > > >If you can only get nrpe for win32 with SSL then you would >have > > >to create SSL certificate > > >(you can make up your own certification authority) > > >If you use OpenSSL it's not too difficult because it comes >with a > > >Perl script that will do > > >that for you. > > > > > >But I can't believe that there is no nrpe for windows without > > >SSL. > > > > > > > > > > > > > -----Original Message----- > > > > From: HP Geeza [mailto:getbacktome3 at hotmail.com] > > > > Sent: Friday, August 05, 2005 4:14 PM > > > > To: Ralph.Grothe at itdz-berlin.de > > > > Subject: RE: [Nagios-users] RE: [Nagiosplug-help] How to > > > > interpret CRC32 > > > > errors? > > > > > > > > > > > > sorry for being such a pain...but im still stuck!!! > > > > > > > > ive tried running: > > > > > > > > ./check_nrpe -n -c >reboot_server > > > > > > > > But that gives me an error: Incorrect command line >arguments > > >supplied > > > > > > > > I dont have to re compile or something do i?? - if soo what > > > > commands will i > > > > need to run? > > > > > > > > Any ideas??? - please help. Yes you are rite this nrpe >stuff > > > > isn't well > > > > documented at all....im sooo confused > > > > > > > > > > > > >From: Ralph.Grothe at itdz-berlin.de > > > > >To: getbacktome3 at hotmail.com > > > > >Subject: RE: [Nagios-users] RE: [Nagiosplug-help] How to > > > > interpret CRC32 > > > > >errors? > > > > >Date: Fri, 5 Aug 2005 16:06:19 +0200 > > > > > > > > > >Hm, I've so far disabled SSL altogether with my nrpe >builds. > > > > >SSL/TLS would only complicate things. > > > > >I will try this when my basic setting works. > > > > > > > > > >I guess you used a prebuilt binary? > > > > > > > > > >Wait, I've just looked in the source code of check_nrpe.c, > > > > >and in the switch-case block where the **argv is parsed >there > > >is > > > > >an entry for option -n > > > > >where the comment reads that you should use this switch to > > > > >disable SSL. > > > > > > > > > >So I would suggest that you put in your check_nrpe call an > > > > >additional "-n". > > > > > > > > > >That's what nags me about nagios, that many features >aren't > > >well > > > > >documented. > > > > >If you run check_nrpe --help they won't tell you anything > > >about > > > > >-n. > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > From: HP Geeza [mailto:getbacktome3 at hotmail.com] > > > > > > Sent: Friday, August 05, 2005 3:52 PM > > > > > > To: Ralph.Grothe at itdz-berlin.de > > > > > > Subject: RE: [Nagios-users] RE: [Nagiosplug-help] How >to > > > > > > interpret CRC32 > > > > > > errors? > > > > > > > > > > > > > > > > > > Hi Ralph > > > > > > > > > > > > Ive managed to install the nrpe service on my windows >host > > > > > > but when i run > > > > > > the command from my nagios box the event log on the >windows > > > > > > machine says > > > > > > that the ssl handshake failed....i am not too sure how >to > > > > > > configure ssl... > > > > > > > > > > > > is there a way round this problem? > > > > > > > > > > > > > > > > > > >From: Ralph.Grothe at itdz-berlin.de > > > > > > >To: getbacktome3 at hotmail.com > > > > > > >Subject: RE: [Nagios-users] RE: [Nagiosplug-help] How >to > > > > > > interpret CRC32 > > > > > > >errors? > > > > > > >Date: Fri, 5 Aug 2005 15:35:20 +0200 > > > > > > > > > > > > > >Hi Geeza, > > > > > > > > > > > > > >you can't run this from your Linux host (I suppose >this is > > > > >your > > > > > > >Nagios server, whereas the Windows box you want to >shut > > >down > > > > >is > > > > > > >your remote host), > > > > > > >because Win32.pm is not made for Linux. > > > > > > > > > > > > > >I think you have to install the Windows version of the > > >NRPE on > > > > > > >your Windows host. > > > > > > >There should be a README or INSTALL file how this is >done > > > > >under > > > > > > >Windows. > > > > > > >It should also explain how the nrpe daemon can be >started > > >as a > > > > > > >Windows service. > > > > > > > > > > > > > >On the Windows box you need to define a command in > > >nrpe.cfg > > > > >that > > > > > > >is the same as how you would run your shutdown script. > > > > > > > > > > > > > >Then you have to start the nrpe service on the Windows > > >box. > > > > > > > > > > > > > >In the nrpe binaries for Windows should also be a > > >check_nrpe > > > > > > >executable. > > > > > > >You can use this to test if your command gets executed >by > > >nrpe > > > > > > >service on the Windows localhost. > > > > > > >Of course for this test I would modify the shutdown >script > > >so > > > > > > >that it wouldn't really shutdown > > > > > > >but only display for instance what it would be doing. > > > > > > >As -H you have to give the localhost IP because you're > > >running > > > > > > >this on the same box. > > > > > > >As -c you have to pass the name of your command you > > >defined in > > > > > > >nrpe.cfg above. > > > > > > > > > > > > > >Then you must build or get the binary for Linux of > > >check_nrpe, > > > > > > >and install it in the libexec directory of your Linux > > >Nagios > > > > > > >server. > > > > > > >You should now be able run check_nrpe -H > > >IP_of_Windows_Host -c > > > > > > >Shutdown_Command > > > > > > >much the same like you have done on the Windows host. > > > > > > >This time you only have to specify the IP of the >Windows > > >host > > > > > > >instead of localhost or 127.0.0.1 > > > > > > > > > > > > > >If that test also worked you can define a >check_command > > >and a > > > > > > >service in your nagios config files, > > > > > > >and restart the nagios server. > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > > From: HP Geeza [mailto:getbacktome3 at hotmail.com] > > > > > > > > Sent: Thursday, August 04, 2005 7:07 PM > > > > > > > > To: Ralph.Grothe at itdz-berlin.de > > > > > > > > Subject: RE: [Nagios-users] RE: [Nagiosplug-help] >How > > >to > > > > > > > > interpret CRC32 > > > > > > > > errors? > > > > > > > > > > > > > > > > > > > > > > > > Here's my sample test.pl file: > > > > > > > > > > > > > > > > #!/usr/bin/perl > > > > > > > > > > > > > > > > use strict; > > > > > > > > use Win32; > > > > > > > > > > > > > > > > Win32::InitiateSystemShutdown("", >"BYE", > > >1, 1, > > > > >1); > > > > > > > > > > > > > > > > > > > > > > > > I copied the Win32.pm to a location that the system > > >could > > > > > > > > seee....however i > > > > > > > > now get the following error message: > > > > > > > > > > > > > > > > Undefined subroutine &Win32::InitiateSystemShutdown > > >called > > > > >at > > > > > > > > ./test.pl line > > > > > > > > 6. > > > > > > > > > > > > > > > > any ideas??? > > > > > > > > > > > > > > > > > > > > > > > > >From: Ralph.Grothe at itdz-berlin.de > > > > > > > > >To: getbacktome3 at hotmail.com > > > > > > > > >Subject: RE: [Nagios-users] RE: [Nagiosplug-help] >How > > >to > > > > > > > > interpret CRC32 > > > > > > > > >errors? > > > > > > > > >Date: Thu, 4 Aug 2005 18:48:16 +0200 > > > > > > > > > > > > > > > > > >Hi Geeza, > > > > > > > > > > > > > > > > > >do you mean your question regarding the remote > > >shutdown of > > > > > > > > >Windows boxes? > > > > > > > > > > > > > > > > > >I'm sure that this can be accomplished. > > > > > > > > > > > > > > > > > >However, I'm absolutely not into Windows. > > > > > > > > > > > > > > > > > >If you could wait until tomorrow, or haven't >received > > >a > > > > >hack > > > > > > >from > > > > > > > > >someone else by then, > > > > > > > > >I could ask our Windows admin what is required on >a > > > > >Windows > > > > > > >host > > > > > > > > >to do this. > > > > > > > > > > > > > > > > > >I would guess only some tampering with some >registry > > >key > > > > >or > > > > > > >so. > > > > > > > > > > > > > > > > > >I also don't know the Microsoft interpreters like > > >Windows > > > > > > > > >Scripting Host or even the .Net framework. > > > > > > > > >Anyone familiar with those can quickly script > > >something > > > > >that > > > > > > >will > > > > > > > > >do what you need. > > > > > > > > > > > > > > > > > >I only script in Perl and Unix shells. > > > > > > > > > > > > > > > > > >But you can as well install Perl on a Windows box, >and > > >do > > > > >all > > > > > > > > >sorts of sysadmin tasks through Perl. > > > > > > > > >They have special modules that give you access to >the > > > > >Registry > > > > > > > > >and other Windows typical interfaces. > > > > > > > > > > > > > > > > > > > > > > > > > > >Sorry, for not being of more help > > > > > > > > > > > > > > > > > >Ralph > > > > > > > > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > > > > From: HP Geeza >[mailto:getbacktome3 at hotmail.com] > > > > > > > > > > Sent: Thursday, August 04, 2005 6:40 PM > > > > > > > > > > To: Ralph.Grothe at itdz-berlin.de > > > > > > > > > > Subject: RE: [Nagios-users] RE: >[Nagiosplug-help] > > >How > > > > >to > > > > > > > > > > interpret CRC32 > > > > > > > > > > errors? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Hi Ralph, > > > > > > > > > > > > > > > > > > > > I have just posted an NRPE related > > >questoin....could > > > > >you > > > > > > > > > > please help??? > > > > > > > > > > > > > > > > > > > > >From: Ralph.Grothe at itdz-berlin.de > > > > > > > > > > >To: nagios-users at lists.sourceforge.net > > > > > > > > > > >CC: cshaffer at gmail.com > > > > > > > > > > >Subject: RE: [Nagios-users] RE: >[Nagiosplug-help] > > >How > > > > >to > > > > > > > > > > interpret CRC32 > > > > > > > > > > >errors? > > > > > > > > > > >Date: Thu, 4 Aug 2005 18:31:29 +0200 > > > > > > > > > > > > > > > > > > > > > >Good news (for me). > > > > > > > > > > > > > > > > > > > > > >I found the remedy against unruly CRC32 NRPE > > >chokes. > > > > > > > > > > > > > > > > > > > > > >When I tested my script at the shell I made >sure > > >by > > > > > > > > >redirecting > > > > > > > > > > >stderr to /dev/null > > > > > > > > > > >that indeed nothing was sent there. > > > > > > > > > > > > > > > > > > > > > >However, when this script got executed (or >rather > > > > > > >crchecked) > > > > > > > > >by > > > > > > > > > > >nrpe > > > > > > > > > > >something must have sneaked to stderr. > > > > > > > > > > > > > > > > > > > > > >So I simply put this statement in the >beginning of > > >my > > > > > > >script: > > > > > > > > > > > > > > > > > > > > > >[saz at inwo2] > > > > > > > > > > >$ grep -n exec\ > > > > >/usr/local/nagios/libexec/check_hpva.sh > > > > > > > > > > >6:exec 2>/dev/null > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >By shutting stderr the a priori crcheck cannot > > >produce > > > > > > > > > > >differences. > > > > > > > > > > > > > > > > > > > > > >Now I can execute through nrpe > > > > > > > > > > > > > > > > > > > > > >[saz at inwo2] > > > > > > > > > > >$ /usr/local/nagios/libexec/check_nrpe -H > > >127.0.0.1 -c > > > > > > > > > > >check_hpva_INWO2 > > > > > > > > > > >OK: HP Virtual Array "va" on inwo2 all >FRUs > > >State > > > > >Good > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >And even from the nagios server remotely this > > >works > > > > >now > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >[nagios at daisy:~] > > > > > > > > > > >$ libexec/check_nrpe -H inwo2 -c >check_hpva_INWO2 > > > > > > > > > > >OK: HP Virtual Array "va" on inwo2 all >FRUs > > >State > > > > >Good > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >Lesson learnt, for all own plug-ins you write > > > > >explicitly > > > > > > >close > > > > > > > > > > >stderr > > > > > > > > > > >to avoid any CRC32 annoyances. > > > > > > > > > > > > > > > > > > > > > >So this conclusion would take only one line to >be > > > > >added to > > > > > > >the > > > > > > > > > > >documentation! > > > > > > > > > > > > > > > > > > > > > >I again rechecked the "Nagios plug-in >development > > > > > > >guidelines" > > > > > > > > >but > > > > > > > > > > >didn't find such a reference. > > > > > > > > > > >It would have saved me two hours and you my > > >reduntant > > > > > > >noise. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >Happy NRPEing > > > > > > > > > > > > > > > > > > > > > >Ralph > > > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > > > > > > From: >nagios-users-admin at lists.sourceforge.net > > > > > > > > > > > > > > >[mailto:nagios-users-admin at lists.sourceforge.net]On > > > > > > >Behalf > > > > > > > > >Of > > > > > > > > > > > > Ralph.Grothe at itdz-berlin.de > > > > > > > > > > > > Sent: Thursday, August 04, 2005 5:37 PM > > > > > > > > > > > > To: ae at op5.se > > > > > > > > > > > > Cc: nagios-users at lists.sourceforge.net > > > > > > > > > > > > Subject: [Nagios-users] RE: >[Nagiosplug-help] > > >How > > > > >to > > > > > > > > >interpret > > > > > > > > > > >CRC32 > > > > > > > > > > > > errors? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > You're asking people to help you on their > > >spare > > > > >time. > > > > > > > > >Most of > > > > > > > > > > > > your > > > > > > > > > > > > > questions so far have been either >no-brainers > > > > >that > > > > > > >you > > > > > > > > >would > > > > > > > > > > > > > have been > > > > > > > > > > > > > able to figure out for yourself had you >made > > >the > > > > > > >effort, > > > > > > > > >or > > > > > > > > > > > > > of the kind > > > > > > > > > > > > > that would take considerable effort to >answer > > > > > > >properly. > > > > > > > > > > > > > > > > > > > > > > > > I know that I waste the time of people who >are > > > > >willing > > > > > > >to > > > > > > > > >help > > > > > > > > > > > > me. > > > > > > > > > > > > > > > > > > > > > > > > Did I know more about Nagios I would >happily > > >pay > > > > >back > > > > > > >by > > > > > > > > > > > > answering others' questions. > > > > > > > > > > > > > > > > > > > > > > > > I had the impression that the developpers >had > > >left > > > > >the > > > > > > > > > > > > documentation sketchy in favour of >directing > > >people > > > > >to > > > > > > >the > > > > > > > > > > > > nagios-users mailing list (at least that's >what > > > > >every > > > > > > > > >plug-in's > > > > > > > > > > > > help screen suggests) > > > > > > > > > > > > I know what an unpleasant duty it is for > > >developers > > > > >to > > > > > > > > > > >document. > > > > > > > > > > > > > > > > > > > > > > > > To someone so much and probably long time > > >involved > > > > >in > > > > > > >the > > > > > > > > > > >Nagios > > > > > > > > > > > > project as you > > > > > > > > > > > > (only assuming this as I don't know your > > >background > > > > >or > > > > > > >role > > > > > > > > > > >here) > > > > > > > > > > > > my questions may seem like brain farts. > > > > > > > > > > > > > > > > > > > > > > > > I only wonder why, if you are so pissed off >by > > > > >them, > > > > > > >simply > > > > > > > > > > >don't > > > > > > > > > > > > ignore them. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On a sidenote, it's considered very rude >to > > > > > > >cross-post > > > > > > > > >unless > > > > > > > > > > > > you're > > > > > > > > > > > > > making an announcement of some sort, so > > >please > > > > > > >refrain > > > > > > > > >from > > > > > > > > > > > > > doing so in > > > > > > > > > > > > > the future. > > > > > > > > > > > > > > > > > > > > > > > > I didn't know I was cross posting. > > > > > > > > > > > > I didn't regard sending my questions to > > > > >nagios-users > > > > > > >and > > > > > > > > > > > > nagiosplug-help simultaniously > > > > > > > > > > > > as real cross postings. > > > > > > > > > > > > I didn't post in other 10 lists or so, and >I > > >didn't > > > > > > >spam or > > > > > > > > > > >post > > > > > > > > > > > > off-topic announcements, nor insult someone > > >here. > > > > > > > > > > > > > > > > > > > > > > > > If the mailing list moderators opened this >list > > >to > > > > >the > > > > > > > > >public > > > > > > > > > > >of > > > > > > > > > > > > all kinds of Nagios users > > > > > > > > > > > > list subscribers have to live with dumb > > >questions > > > > >of > > > > > > >Nagios > > > > > > > > > > > > newbies like me. > > > > > > > > > > > > > > > > > > > > > > > > Having learned that I breached the list > > >netiquette > > > > >I > > > > > > >will > > > > > > > > >only > > > > > > > > > > > > post to one list in the future. > > > > > > > > > > > > > > > > > > > > > > > > > Did you log in as the NRPE user or did >you > > >just > > > > >su? > > > > > > > > >su'ing > > > > > > > > > > > > > maintains the > > > > > > > > > > > > > environment settings of the old user, >which > > >will > > > > >have > > > > > > > > >effect > > > > > > > > > > >on > > > > > > > > > > > > some > > > > > > > > > > > > > programs. > > > > > > > > > > > > > > > > > > > > > > > > No simple su-ing. > > > > > > > > > > > > Even if I had, I would have taken care to >do a > > >full > > > > >"su > > > > > > >-" > > > > > > > > >to > > > > > > > > > > > > also obtain the account's environment. > > > > > > > > > > > > I am and was logged in under the account >that I > > > > > > >configured > > > > > > > > > > >inetd > > > > > > > > > > > > to run the nrpe server as > > > > > > > > > > > > (see 5th field, or 4th field for you) > > > > > > > > > > > > > > > > > > > > > > > > [saz at inwo2] > > > > > > > > > > > > $ id > > > > > > > > > > > > uid=102(saz) gid=20(users) groups=102(saz) > > > > > > > > > > > > > > > > > > > > > > > > [saz at inwo2] > > > > > > > > > > > > $ grep nrpe /etc/inetd.conf > > > > > > > > > > > > nrpe stream tcp nowait saz > > > > > > >/usr/local/nagios/sbin/nrpe > > > > > > > > >nrpe > > > > > > > > > > >-c > > > > > > > > > > > > /usr/local/nagios/etc/nrpe.cfg -i > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > check_hpva.sh prints something to stderr. > > >This > > > > >causes > > > > > > >the > > > > > > > > > > > > > NRPE daemon to > > > > > > > > > > > > > miscalculate the checksum. When the >plugin > > >does > > > > >the > > > > > > >same > > > > > > > > >it > > > > > > > > > > > > > arrives at > > > > > > > > > > > > > an invalid result. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > My script isn't writing anything to stderr, >and > > > > >it's > > > > > > > > >outputting > > > > > > > > > > >a > > > > > > > > > > > > single line to stdout > > > > > > > > > > > > (which is I think is in accordance to >plug-in > > > > > > >developer's > > > > > > > > > > > > guidelines) > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > [saz at inwo2] > > > > > > > > > > > > $ /usr/local/nagios/libexec/check_hpva.sh > > > > >2>/dev/null | > > > > > > >cat > > > > > > > > >-n > > > > > > > > > > > > 1 OK: HP Virtual Array "va" on >inwo2 > > >all > > > > >FRUs > > > > > > > > >State > > > > > > > > > > > > Good > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >------------------------------------------------------- > > > > > > > > > > > > SF.Net email is Sponsored by the Better > > >Software > > > > > > >Conference > > > > > > > > >& > > > > > > > > > > >EXPO > > > > > > > > > > > > September 19-22, 2005 * San Francisco, CA * > > > > >Development > > > > > > > > > > > > Lifecycle Practices > > > > > > > > > > > > Agile & Plan-Driven Development * Managing > > >Projects > > > > >& > > > > > > >Teams > > > > > > > > >* > > > > > > > > > > > > Testing & QA > > > > > > > > > > > > Security * Process Improvement & >Measurement * > > > > > > > > > > >http://www.sqe.com/bsce5sf > > > > > > > > > > > >_______________________________________________ > > > > > > > > > > >Nagios-users mailing list > > > > > > > > > > >Nagios-users at lists.sourceforge.net > > > > > > > > > > > > > > > > >https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > > >::: Please include Nagios version, plugin >version > > >(-v) > > > > >and > > > > > > >OS > > > > > > > > > > >when reporting any issue. > > > > > > > > > > >::: Messages without supporting info will risk > > >being > > > > >sent > > > > > > >to > > > > > > > > > > >/dev/null > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >------------------------------------------------------- > > > > > > > > > > >SF.Net email is Sponsored by the Better >Software > > > > > > >Conference & > > > > > > > > >EXPO > > > > > > > > > > >September 19-22, 2005 * San Francisco, CA * > > > > >Development > > > > > > > > > > Lifecycle Practices > > > > > > > > > > >Agile & Plan-Driven Development * Managing > > >Projects & > > > > > > >Teams > > > > > > > > > > * Testing & QA > > > > > > > > > > >Security * Process Improvement & Measurement * > > > > > > > > >http://www.sqe.com/bsce5sf > > > > > > > > > >_______________________________________________ > > > > > > > > > >Nagios-users mailing list > > > > > > > > > >Nagios-users at lists.sourceforge.net > > > > > > > > > > > > > > > >https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > >::: Please include Nagios version, plugin >version > > >(-v) > > > > >and > > > > > > >OS > > > > > > > > >when > > > > > > > > > >reporting any issue. > > > > > > > > > >::: Messages without supporting info will risk >being > > > > >sent to > > > > > > > > >/dev/null > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >________________________________________________________________ > > > > > > >_ > > > > > > > > >Be the first to hear what's new at MSN - sign up >to > > >our > > > > >free > > > > > > > > >newsletters! > > > > > > > > >http://www.msn.co.uk/newsletters > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >________________________________________________________________ > > > > >_ > > > > > > > > Winks & nudges are here - download MSN Messenger >7.0 > > >today! > > > > > > > > http://messenger.msn.co.uk > > > > > > > > > > > > > > > > > > > > > > > > > > > > >________________________________________________________________ > > >_ > > > > > > Be the first to hear what's new at MSN - sign up to our > > >free > > > > > > newsletters! > > > > > > http://www.msn.co.uk/newsletters > > > > > > > > > > > > > > > > > >________________________________________________________________ >_ > > > > Be the first to hear what's new at MSN - sign up to our >free > > > > newsletters! > > > > http://www.msn.co.uk/newsletters > > > > > > > > >_________________________________________________________________ > > Be the first to hear what's new at MSN - sign up to our free > > newsletters! > > http://www.msn.co.uk/newsletters > > > > >------------------------------------------------------- >SF.Net email is Sponsored by the Better Software Conference & EXPO >September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices >Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA >Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS when >reporting any issue. >::: Messages without supporting info will risk being sent to /dev/null _________________________________________________________________ Be the first to hear what's new at MSN - sign up to our free newsletters! http://www.msn.co.uk/newsletters ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From m.borsani at it.net Thu Aug 4 15:02:24 2005 From: m.borsani at it.net (Marco Borsani) Date: Thu, 4 Aug 2005 15:02:24 +0200 Subject: How to load MIBs for a cisco? Message-ID: Hi all! I am reading many documents about MIB, snmp and so on, but anywhere I found a way to load other mibs on my nagios server. Actually I have installed net-snmp-5.1.1 which have created dir /usr/local/share/snmp/mibs that contain some MIB files. I try to "add" other files to that dir, restart snmpdm daemon , but nothing happened! When I perform the command: #> ./check_snmp -H 10.212.0.240 -o .1.3.6.1.4.1 I receive this error message: SNMP problem - No data recieved from host CMD: /usr/local/bin/snmpget -t 1 -r 9 -m ALL -v 1 -c public 10.212.0.240:161 .1.3.6.1.4.1 When I perform dircetly the command: #> /usr/local/bin/snmpget -t 1 -r 9 -m ALL -v 1 -c public 10.212.0.240:161 .1.3.6.1.4.1 I receive this error message: SNMPv2-SMI-v1: Module not found Cannot find module (SNMPv2-SMI-v1): At line 10 in /usr/local/share/snmp/mibs/CISCO-SMI-V1SMI.txt Did not find 'enterprises' in module #-1 (/usr/local/share/snmp/mibs/CISCO-SMI-V1SMI.txt) Unlinked OID in CISCO-SMI: cisco ::= { enterprises 9 } Undefined identifier: enterprises near line 12 of /usr/local/share/snmp/mibs/CISCO-SMI-V1SMI.txt Error in packet Reason: (noSuchName) There is no such variable name in this MIB. Failed object: SNMPv2-SMI::enterprises But, If I run following snmpwalk command I receive some (few) information: #> snmpwalk -v 1 -c public 10.212.0.240 SNMPv2-MIB::sysDescr.0 = STRING: Cisco PIX Firewall Version 6.3(4) SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.9.1.390 SNMPv2-MIB::sysUpTime.0 = Timeticks: (140713600) 16 days, 6:52:16.00 SNMPv2-MIB::sysContact.0 = STRING: SNMPv2-MIB::sysName.0 = STRING: firewall-vpn.my.org SNMPv2-MIB::sysLocation.0 = STRING: SNMPv2-MIB::sysServices.0 = INTEGER: 4 IF-MIB::ifNumber.0 = INTEGER: 2 IF-MIB::ifIndex.1 = INTEGER: 1 IF-MIB::ifIndex.2 = INTEGER: 2 ................. May anyone explain me where is my fault? Regards M.Borsani ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ralph.Grothe-YpEHkxAi6oMehzHBf2RrnA at public.gmane.org Thu Aug 4 16:05:00 2005 From: Ralph.Grothe-YpEHkxAi6oMehzHBf2RrnA at public.gmane.org (Ralph.Grothe-YpEHkxAi6oMehzHBf2RrnA at public.gmane.org) Date: Thu, 4 Aug 2005 16:05:00 +0200 Subject: How to interpret CRC32 errors? Message-ID: <6B893C5F2902D311A23F0090272854FB0575B7B6@litex001.lit.verwalt-berlin.de> Hi, I'm currently writing a custom shell script plug-in that simply checks the state of an HP Virtual Array. I sourced utils.sh in it and return the proposed STATE_{OK|CRITICAL|UNKNOWN} return codes depending on the outcom. I didn't care for WARNING as I only distinguish between OK and CRITICAL. I would submit the script hadn't I received contemptuous reactions by some expert here on last occasion. The script isn't doing much more than parsing the States of all FRUs of the array and returning CRITICAL if something other than state Good is found, OK elsewise. The script doesn't require higher privileges than the nrpe daemon has, and it doesn't produce any output (apart from the final oneliner indicating the state), nor does it attempt to write anywhere. If I run it at the shell under the uid of the nrpe daemon it works fine. $ /usr/local/nagios/libexec/check_hpva.sh OK: HP Virtual Array "va" on inwo2 all FRUs State Good Whereas when I run it via check_nrpe I receive the to me meaningless CRC32 error. $ /usr/local/nagios/libexec/check_nrpe -H 127.0.0.1 -c check_hpva_INWO2 CHECK_NRPE: Response packet had invalid CRC32. In nrpe.cfg it's defined as $ grep check_hpva /usr/local/nagios/etc/nrpe.cfg command[check_hpva_INWO2]=/usr/local/nagios/libexec/check_hpva.sh What's going on here? Regards -- Ralph Grothe ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagiosplug-help mailing list Nagiosplug-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f at public.gmane.org https://lists.sourceforge.net/lists/listinfo/nagiosplug-help ::: Please include plugins version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rodney.caston at match.com Thu Aug 4 15:45:01 2005 From: rodney.caston at match.com (Rodney Caston) Date: Thu, 4 Aug 2005 08:45:01 -0500 Subject: correct notify definition to allow for check_nt_disk output to not be blanked. Message-ID: <573F1E2597A7974E924A5F814CAC166D13E61841@da0shme010.match.corp> I have the following issue with check_nt_disk, it outputs to nagios the following status information: C:\ - total: 203.50 Gb - used: 87.55 Gb (43%) - free 115.95 Gb (57%) However, when we receive notifications for this alert, our $SERVICEOUTPUT$ only gives us the following information on this alert. ... Service: DISK Host: hostname Address: 10.0.2.1 State: WARNING Info: C: ... Everything after the ":" for "C:\" is being truncated, I'm sure this is due to the "\" being seen as an escape character somehow. In misccommands.cfg our pager definition for these alerts is defined as followed. ... # 'notify-by-epagerusingmutt' command definition (short form) define command{ command_name notify-by-muttpager-short command_line /usr/bin/printf "%b" "Service: $SERVICEDESC$\nHost: $HOSTNAME$\n$HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\nInfo: $SERVICEOUTPUT$\nDate: $LONGDATETIME$\n\n\nUser:$CONTACTNAME$" | /usr/bin/mutt -F /etc/nagios/muttrc.cfg -e 'set realname=""' -s "`echo $NOTIFICATIONTYPE$ | /usr/bin/cut -c '1-3'`: $HOSTNAME$/$SERVICEDESC$ $SERVICESTATE$" $CONTACTPAGER$ 2>&1 | logger -p mail.info } ... Should we be putting $SERVICEOUPUT$ in some escaped form or inside quotes to prevent this problem? Rodney Caston Match.com ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ladams at cloudmark.com Fri Aug 5 20:12:30 2005 From: ladams at cloudmark.com (Lori Adams) Date: Fri, 5 Aug 2005 11:12:30 -0700 Subject: Error: Command 'check-host-alive' has already been defined Message-ID: Do you have check-host-alive defined twice throughout your configs? It can only be defined once. -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Nagios User Sent: Friday, August 05, 2005 6:03 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Error: Command 'check-host-alive' has already been defined Hello list: I am installing (attempting) Nagios-2.0b4 and this is the problem I am experiencing: ############################### root at athlon:/usr/local/nagios# bin/nagios -v etc/nagios.cfg Nagios 2.0b4 Copyright (c) 1999-2005 Ethan Galstad (http://www.nagios.org) Last Modified: 08-02-2005 License: GPL Reading configuration data... Error: Command 'check-host-alive' has already been defined Error: Could not register command (config file '/usr/local/nagios/etc/minimal.cfg', starting on line 76) ***> One or more problems was encountered while processing the config files... Check your configuration file(s) to ensure that they contain valid directives and data defintions. If you are upgrading from a previous version of Nagios, you should be aware that some variables/definitions may have been removed or modified in this version. Make sure to read the HTML documentation regarding the config files, as well as the 'Whats New' section to find out what has changed. ############################## Was wondering if anyone could shed some light on this issue. Thanks in advance, Ronald Vazquez ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ladams at cloudmark.com Fri Aug 5 20:16:21 2005 From: ladams at cloudmark.com (Lori Adams) Date: Fri, 5 Aug 2005 11:16:21 -0700 Subject: nrpe on windows?? Message-ID: I retrieved nrpe_nt from nagiosexchange.com. I am using ssl, but there's an installation command to configure without it. http://www.nagiosexchange.org/Windows.49.0.html?&tx_netnagext_pi1[p_view ]=64 -Lori -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of HP Geeza Sent: Friday, August 05, 2005 8:19 AM To: Ralph.Grothe at itdz-berlin.de; nagios-users at lists.sourceforge.net Subject: [Nagios-users] RE: nrpe on windows?? HAS ANYBODy managed to get nrpe working on a windows machine??? if so could you please tell me which files i need and where i can get them from....because i still can't overcome this ssl problem >From: Ralph.Grothe at itdz-berlin.de >To: getbacktome3 at hotmail.com >Subject: RE: [Nagios-users] RE: [Nagiosplug-help] How to interpret CRC32 >errors? >Date: Fri, 5 Aug 2005 16:23:52 +0200 > >I'm sorry, I hadn't looked carefully enough at the source. > >In the begining there's a macro conditional > >#ifdef HAVE_SSL >SSL_METHOD *meth; >SSL_CTX *ctx; >SSL *ssl; >int use_ssl=TRUE; >#else >int use_ssl=FALSE; >#endif > > >where they check if the Makefile has the macro HAVE_SSL defined. > >Looks like your binary was built with SSL enabled. > >You would have to compile after a "configure --disable-ssl ..." >without SSL support. > >Maybe you can ask in the mailing list if someone has built a >binary for Win32 >with SSL disabled, or knows a download site? >Have you checked the site where you got this one if there are >different versions? >Or does a README say what to do to suppress SSL? > >If you can only get nrpe for win32 with SSL then you would have >to create SSL certificate >(you can make up your own certification authority) >If you use OpenSSL it's not too difficult because it comes with a >Perl script that will do >that for you. > >But I can't believe that there is no nrpe for windows without >SSL. > > > > > -----Original Message----- > > From: HP Geeza [mailto:getbacktome3 at hotmail.com] > > Sent: Friday, August 05, 2005 4:14 PM > > To: Ralph.Grothe at itdz-berlin.de > > Subject: RE: [Nagios-users] RE: [Nagiosplug-help] How to > > interpret CRC32 > > errors? > > > > > > sorry for being such a pain...but im still stuck!!! > > > > ive tried running: > > > > ./check_nrpe -n -c reboot_server > > > > But that gives me an error: Incorrect command line arguments >supplied > > > > I dont have to re compile or something do i?? - if soo what > > commands will i > > need to run? > > > > Any ideas??? - please help. Yes you are rite this nrpe stuff > > isn't well > > documented at all....im sooo confused > > > > > > >From: Ralph.Grothe at itdz-berlin.de > > >To: getbacktome3 at hotmail.com > > >Subject: RE: [Nagios-users] RE: [Nagiosplug-help] How to > > interpret CRC32 > > >errors? > > >Date: Fri, 5 Aug 2005 16:06:19 +0200 > > > > > >Hm, I've so far disabled SSL altogether with my nrpe builds. > > >SSL/TLS would only complicate things. > > >I will try this when my basic setting works. > > > > > >I guess you used a prebuilt binary? > > > > > >Wait, I've just looked in the source code of check_nrpe.c, > > >and in the switch-case block where the **argv is parsed there >is > > >an entry for option -n > > >where the comment reads that you should use this switch to > > >disable SSL. > > > > > >So I would suggest that you put in your check_nrpe call an > > >additional "-n". > > > > > >That's what nags me about nagios, that many features aren't >well > > >documented. > > >If you run check_nrpe --help they won't tell you anything >about > > >-n. > > > > > > > > > > -----Original Message----- > > > > From: HP Geeza [mailto:getbacktome3 at hotmail.com] > > > > Sent: Friday, August 05, 2005 3:52 PM > > > > To: Ralph.Grothe at itdz-berlin.de > > > > Subject: RE: [Nagios-users] RE: [Nagiosplug-help] How to > > > > interpret CRC32 > > > > errors? > > > > > > > > > > > > Hi Ralph > > > > > > > > Ive managed to install the nrpe service on my windows host > > > > but when i run > > > > the command from my nagios box the event log on the windows > > > > machine says > > > > that the ssl handshake failed....i am not too sure how to > > > > configure ssl... > > > > > > > > is there a way round this problem? > > > > > > > > > > > > >From: Ralph.Grothe at itdz-berlin.de > > > > >To: getbacktome3 at hotmail.com > > > > >Subject: RE: [Nagios-users] RE: [Nagiosplug-help] How to > > > > interpret CRC32 > > > > >errors? > > > > >Date: Fri, 5 Aug 2005 15:35:20 +0200 > > > > > > > > > >Hi Geeza, > > > > > > > > > >you can't run this from your Linux host (I suppose this is > > >your > > > > >Nagios server, whereas the Windows box you want to shut >down > > >is > > > > >your remote host), > > > > >because Win32.pm is not made for Linux. > > > > > > > > > >I think you have to install the Windows version of the >NRPE on > > > > >your Windows host. > > > > >There should be a README or INSTALL file how this is done > > >under > > > > >Windows. > > > > >It should also explain how the nrpe daemon can be started >as a > > > > >Windows service. > > > > > > > > > >On the Windows box you need to define a command in >nrpe.cfg > > >that > > > > >is the same as how you would run your shutdown script. > > > > > > > > > >Then you have to start the nrpe service on the Windows >box. > > > > > > > > > >In the nrpe binaries for Windows should also be a >check_nrpe > > > > >executable. > > > > >You can use this to test if your command gets executed by >nrpe > > > > >service on the Windows localhost. > > > > >Of course for this test I would modify the shutdown script >so > > > > >that it wouldn't really shutdown > > > > >but only display for instance what it would be doing. > > > > >As -H you have to give the localhost IP because you're >running > > > > >this on the same box. > > > > >As -c you have to pass the name of your command you >defined in > > > > >nrpe.cfg above. > > > > > > > > > >Then you must build or get the binary for Linux of >check_nrpe, > > > > >and install it in the libexec directory of your Linux >Nagios > > > > >server. > > > > >You should now be able run check_nrpe -H >IP_of_Windows_Host -c > > > > >Shutdown_Command > > > > >much the same like you have done on the Windows host. > > > > >This time you only have to specify the IP of the Windows >host > > > > >instead of localhost or 127.0.0.1 > > > > > > > > > >If that test also worked you can define a check_command >and a > > > > >service in your nagios config files, > > > > >and restart the nagios server. > > > > > > > > > > > -----Original Message----- > > > > > > From: HP Geeza [mailto:getbacktome3 at hotmail.com] > > > > > > Sent: Thursday, August 04, 2005 7:07 PM > > > > > > To: Ralph.Grothe at itdz-berlin.de > > > > > > Subject: RE: [Nagios-users] RE: [Nagiosplug-help] How >to > > > > > > interpret CRC32 > > > > > > errors? > > > > > > > > > > > > > > > > > > Here's my sample test.pl file: > > > > > > > > > > > > #!/usr/bin/perl > > > > > > > > > > > > use strict; > > > > > > use Win32; > > > > > > > > > > > > Win32::InitiateSystemShutdown("", "BYE", >1, 1, > > >1); > > > > > > > > > > > > > > > > > > I copied the Win32.pm to a location that the system >could > > > > > > seee....however i > > > > > > now get the following error message: > > > > > > > > > > > > Undefined subroutine &Win32::InitiateSystemShutdown >called > > >at > > > > > > ./test.pl line > > > > > > 6. > > > > > > > > > > > > any ideas??? > > > > > > > > > > > > > > > > > > >From: Ralph.Grothe at itdz-berlin.de > > > > > > >To: getbacktome3 at hotmail.com > > > > > > >Subject: RE: [Nagios-users] RE: [Nagiosplug-help] How >to > > > > > > interpret CRC32 > > > > > > >errors? > > > > > > >Date: Thu, 4 Aug 2005 18:48:16 +0200 > > > > > > > > > > > > > >Hi Geeza, > > > > > > > > > > > > > >do you mean your question regarding the remote >shutdown of > > > > > > >Windows boxes? > > > > > > > > > > > > > >I'm sure that this can be accomplished. > > > > > > > > > > > > > >However, I'm absolutely not into Windows. > > > > > > > > > > > > > >If you could wait until tomorrow, or haven't received >a > > >hack > > > > >from > > > > > > >someone else by then, > > > > > > >I could ask our Windows admin what is required on a > > >Windows > > > > >host > > > > > > >to do this. > > > > > > > > > > > > > >I would guess only some tampering with some registry >key > > >or > > > > >so. > > > > > > > > > > > > > >I also don't know the Microsoft interpreters like >Windows > > > > > > >Scripting Host or even the .Net framework. > > > > > > >Anyone familiar with those can quickly script >something > > >that > > > > >will > > > > > > >do what you need. > > > > > > > > > > > > > >I only script in Perl and Unix shells. > > > > > > > > > > > > > >But you can as well install Perl on a Windows box, and >do > > >all > > > > > > >sorts of sysadmin tasks through Perl. > > > > > > >They have special modules that give you access to the > > >Registry > > > > > > >and other Windows typical interfaces. > > > > > > > > > > > > > > > > > > > > >Sorry, for not being of more help > > > > > > > > > > > > > >Ralph > > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > > From: HP Geeza [mailto:getbacktome3 at hotmail.com] > > > > > > > > Sent: Thursday, August 04, 2005 6:40 PM > > > > > > > > To: Ralph.Grothe at itdz-berlin.de > > > > > > > > Subject: RE: [Nagios-users] RE: [Nagiosplug-help] >How > > >to > > > > > > > > interpret CRC32 > > > > > > > > errors? > > > > > > > > > > > > > > > > > > > > > > > > Hi Ralph, > > > > > > > > > > > > > > > > I have just posted an NRPE related >questoin....could > > >you > > > > > > > > please help??? > > > > > > > > > > > > > > > > >From: Ralph.Grothe at itdz-berlin.de > > > > > > > > >To: nagios-users at lists.sourceforge.net > > > > > > > > >CC: cshaffer at gmail.com > > > > > > > > >Subject: RE: [Nagios-users] RE: [Nagiosplug-help] >How > > >to > > > > > > > > interpret CRC32 > > > > > > > > >errors? > > > > > > > > >Date: Thu, 4 Aug 2005 18:31:29 +0200 > > > > > > > > > > > > > > > > > >Good news (for me). > > > > > > > > > > > > > > > > > >I found the remedy against unruly CRC32 NRPE >chokes. > > > > > > > > > > > > > > > > > >When I tested my script at the shell I made sure >by > > > > > > >redirecting > > > > > > > > >stderr to /dev/null > > > > > > > > >that indeed nothing was sent there. > > > > > > > > > > > > > > > > > >However, when this script got executed (or rather > > > > >crchecked) > > > > > > >by > > > > > > > > >nrpe > > > > > > > > >something must have sneaked to stderr. > > > > > > > > > > > > > > > > > >So I simply put this statement in the beginning of >my > > > > >script: > > > > > > > > > > > > > > > > > >[saz at inwo2] > > > > > > > > >$ grep -n exec\ > > >/usr/local/nagios/libexec/check_hpva.sh > > > > > > > > >6:exec 2>/dev/null > > > > > > > > > > > > > > > > > > > > > > > > > > >By shutting stderr the a priori crcheck cannot >produce > > > > > > > > >differences. > > > > > > > > > > > > > > > > > >Now I can execute through nrpe > > > > > > > > > > > > > > > > > >[saz at inwo2] > > > > > > > > >$ /usr/local/nagios/libexec/check_nrpe -H >127.0.0.1 -c > > > > > > > > >check_hpva_INWO2 > > > > > > > > >OK: HP Virtual Array "va" on inwo2 all FRUs >State > > >Good > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >And even from the nagios server remotely this >works > > >now > > > > > > > > > > > > > > > > > > > > > > > > > > >[nagios at daisy:~] > > > > > > > > >$ libexec/check_nrpe -H inwo2 -c check_hpva_INWO2 > > > > > > > > >OK: HP Virtual Array "va" on inwo2 all FRUs >State > > >Good > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >Lesson learnt, for all own plug-ins you write > > >explicitly > > > > >close > > > > > > > > >stderr > > > > > > > > >to avoid any CRC32 annoyances. > > > > > > > > > > > > > > > > > >So this conclusion would take only one line to be > > >added to > > > > >the > > > > > > > > >documentation! > > > > > > > > > > > > > > > > > >I again rechecked the "Nagios plug-in development > > > > >guidelines" > > > > > > >but > > > > > > > > >didn't find such a reference. > > > > > > > > >It would have saved me two hours and you my >reduntant > > > > >noise. > > > > > > > > > > > > > > > > > > > > > > > > > > >Happy NRPEing > > > > > > > > > > > > > > > > > >Ralph > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > > > > From: nagios-users-admin at lists.sourceforge.net > > > > > > > > > > >[mailto:nagios-users-admin at lists.sourceforge.net]On > > > > >Behalf > > > > > > >Of > > > > > > > > > > Ralph.Grothe at itdz-berlin.de > > > > > > > > > > Sent: Thursday, August 04, 2005 5:37 PM > > > > > > > > > > To: ae at op5.se > > > > > > > > > > Cc: nagios-users at lists.sourceforge.net > > > > > > > > > > Subject: [Nagios-users] RE: [Nagiosplug-help] >How > > >to > > > > > > >interpret > > > > > > > > >CRC32 > > > > > > > > > > errors? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > You're asking people to help you on their >spare > > >time. > > > > > > >Most of > > > > > > > > > > your > > > > > > > > > > > questions so far have been either no-brainers > > >that > > > > >you > > > > > > >would > > > > > > > > > > > have been > > > > > > > > > > > able to figure out for yourself had you made >the > > > > >effort, > > > > > > >or > > > > > > > > > > > of the kind > > > > > > > > > > > that would take considerable effort to answer > > > > >properly. > > > > > > > > > > > > > > > > > > > > I know that I waste the time of people who are > > >willing > > > > >to > > > > > > >help > > > > > > > > > > me. > > > > > > > > > > > > > > > > > > > > Did I know more about Nagios I would happily >pay > > >back > > > > >by > > > > > > > > > > answering others' questions. > > > > > > > > > > > > > > > > > > > > I had the impression that the developpers had >left > > >the > > > > > > > > > > documentation sketchy in favour of directing >people > > >to > > > > >the > > > > > > > > > > nagios-users mailing list (at least that's what > > >every > > > > > > >plug-in's > > > > > > > > > > help screen suggests) > > > > > > > > > > I know what an unpleasant duty it is for >developers > > >to > > > > > > > > >document. > > > > > > > > > > > > > > > > > > > > To someone so much and probably long time >involved > > >in > > > > >the > > > > > > > > >Nagios > > > > > > > > > > project as you > > > > > > > > > > (only assuming this as I don't know your >background > > >or > > > > >role > > > > > > > > >here) > > > > > > > > > > my questions may seem like brain farts. > > > > > > > > > > > > > > > > > > > > I only wonder why, if you are so pissed off by > > >them, > > > > >simply > > > > > > > > >don't > > > > > > > > > > ignore them. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On a sidenote, it's considered very rude to > > > > >cross-post > > > > > > >unless > > > > > > > > > > you're > > > > > > > > > > > making an announcement of some sort, so >please > > > > >refrain > > > > > > >from > > > > > > > > > > > doing so in > > > > > > > > > > > the future. > > > > > > > > > > > > > > > > > > > > I didn't know I was cross posting. > > > > > > > > > > I didn't regard sending my questions to > > >nagios-users > > > > >and > > > > > > > > > > nagiosplug-help simultaniously > > > > > > > > > > as real cross postings. > > > > > > > > > > I didn't post in other 10 lists or so, and I >didn't > > > > >spam or > > > > > > > > >post > > > > > > > > > > off-topic announcements, nor insult someone >here. > > > > > > > > > > > > > > > > > > > > If the mailing list moderators opened this list >to > > >the > > > > > > >public > > > > > > > > >of > > > > > > > > > > all kinds of Nagios users > > > > > > > > > > list subscribers have to live with dumb >questions > > >of > > > > >Nagios > > > > > > > > > > newbies like me. > > > > > > > > > > > > > > > > > > > > Having learned that I breached the list >netiquette > > >I > > > > >will > > > > > > >only > > > > > > > > > > post to one list in the future. > > > > > > > > > > > > > > > > > > > > > Did you log in as the NRPE user or did you >just > > >su? > > > > > > >su'ing > > > > > > > > > > > maintains the > > > > > > > > > > > environment settings of the old user, which >will > > >have > > > > > > >effect > > > > > > > > >on > > > > > > > > > > some > > > > > > > > > > > programs. > > > > > > > > > > > > > > > > > > > > No simple su-ing. > > > > > > > > > > Even if I had, I would have taken care to do a >full > > >"su > > > > >-" > > > > > > >to > > > > > > > > > > also obtain the account's environment. > > > > > > > > > > I am and was logged in under the account that I > > > > >configured > > > > > > > > >inetd > > > > > > > > > > to run the nrpe server as > > > > > > > > > > (see 5th field, or 4th field for you) > > > > > > > > > > > > > > > > > > > > [saz at inwo2] > > > > > > > > > > $ id > > > > > > > > > > uid=102(saz) gid=20(users) groups=102(saz) > > > > > > > > > > > > > > > > > > > > [saz at inwo2] > > > > > > > > > > $ grep nrpe /etc/inetd.conf > > > > > > > > > > nrpe stream tcp nowait saz > > > > >/usr/local/nagios/sbin/nrpe > > > > > > >nrpe > > > > > > > > >-c > > > > > > > > > > /usr/local/nagios/etc/nrpe.cfg -i > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > check_hpva.sh prints something to stderr. >This > > >causes > > > > >the > > > > > > > > > > > NRPE daemon to > > > > > > > > > > > miscalculate the checksum. When the plugin >does > > >the > > > > >same > > > > > > >it > > > > > > > > > > > arrives at > > > > > > > > > > > an invalid result. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > My script isn't writing anything to stderr, and > > >it's > > > > > > >outputting > > > > > > > > >a > > > > > > > > > > single line to stdout > > > > > > > > > > (which is I think is in accordance to plug-in > > > > >developer's > > > > > > > > > > guidelines) > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > [saz at inwo2] > > > > > > > > > > $ /usr/local/nagios/libexec/check_hpva.sh > > >2>/dev/null | > > > > >cat > > > > > > >-n > > > > > > > > > > 1 OK: HP Virtual Array "va" on inwo2 >all > > >FRUs > > > > > > >State > > > > > > > > > > Good > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >------------------------------------------------------- > > > > > > > > > > SF.Net email is Sponsored by the Better >Software > > > > >Conference > > > > > > >& > > > > > > > > >EXPO > > > > > > > > > > September 19-22, 2005 * San Francisco, CA * > > >Development > > > > > > > > > > Lifecycle Practices > > > > > > > > > > Agile & Plan-Driven Development * Managing >Projects > > >& > > > > >Teams > > > > > > >* > > > > > > > > > > Testing & QA > > > > > > > > > > Security * Process Improvement & Measurement * > > > > > > > > >http://www.sqe.com/bsce5sf > > > > > > > > >_______________________________________________ > > > > > > > > >Nagios-users mailing list > > > > > > > > >Nagios-users at lists.sourceforge.net > > > > > > > > > > > >https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > >::: Please include Nagios version, plugin version >(-v) > > >and > > > > >OS > > > > > > > > >when reporting any issue. > > > > > > > > >::: Messages without supporting info will risk >being > > >sent > > > > >to > > > > > > > > >/dev/null > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >------------------------------------------------------- > > > > > > > > >SF.Net email is Sponsored by the Better Software > > > > >Conference & > > > > > > >EXPO > > > > > > > > >September 19-22, 2005 * San Francisco, CA * > > >Development > > > > > > > > Lifecycle Practices > > > > > > > > >Agile & Plan-Driven Development * Managing >Projects & > > > > >Teams > > > > > > > > * Testing & QA > > > > > > > > >Security * Process Improvement & Measurement * > > > > > > >http://www.sqe.com/bsce5sf > > > > > > > >_______________________________________________ > > > > > > > >Nagios-users mailing list > > > > > > > >Nagios-users at lists.sourceforge.net > > > > > > > > > > >https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > >::: Please include Nagios version, plugin version >(-v) > > >and > > > > >OS > > > > > > >when > > > > > > > >reporting any issue. > > > > > > > >::: Messages without supporting info will risk being > > >sent to > > > > > > >/dev/null > > > > > > > > > > > > > > > > > > > > > > >________________________________________________________________ > > > > >_ > > > > > > >Be the first to hear what's new at MSN - sign up to >our > > >free > > > > > > >newsletters! > > > > > > >http://www.msn.co.uk/newsletters > > > > > > > > > > > > > > > > > > > > >________________________________________________________________ > > >_ > > > > > > Winks & nudges are here - download MSN Messenger 7.0 >today! > > > > > > http://messenger.msn.co.uk > > > > > > > > > > > > > > > > > >________________________________________________________________ >_ > > > > Be the first to hear what's new at MSN - sign up to our >free > > > > newsletters! > > > > http://www.msn.co.uk/newsletters > > > > > > > > >_________________________________________________________________ > > Be the first to hear what's new at MSN - sign up to our free > > newsletters! > > http://www.msn.co.uk/newsletters > > _________________________________________________________________ Winks & nudges are here - download MSN Messenger 7.0 today! http://messenger.msn.co.uk ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From reross at cirma.org.gt Fri Aug 5 20:46:01 2005 From: reross at cirma.org.gt (Robin Ross) Date: Fri, 05 Aug 2005 12:46:01 -0600 Subject: nagat warning Message-ID: <42F3B3E9.7020106@cirma.org.gt> hi everyone. i am new on this list and nagios too, i have installed a nagios on my debian testing, by aptitude method, when i inn on nagat: localhost/nagat/, show this: *Warning*: fread(): Length parameter must be greater than 0. in */usr/share/nagat/plugin_default.inc* on line *80 *anyone knows about this and how to resolve?, i am sorry my english is not so good, thanks for everything, regards, robin* * ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jmwalker at itgroundwork.com Fri Aug 5 20:55:49 2005 From: jmwalker at itgroundwork.com (John Mark Walker) Date: Fri, 05 Aug 2005 11:55:49 -0700 Subject: Invitation to Nagios BoF at Linux World Message-ID: <42F3B635.30705@itgroundwork.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, If anyone here is heading for LinuxWorld next week, there will be a Nagios birds-of-a-feather on Wednesday. You can find the details at http://linuxworldexpo.com/live/12/events/12SFO05A/conference/tracksessions//QMONYA04O8Z3 Come and discuss everyone's favorite monitoring tool. GroundWork engineers will be on hand to discuss new software that works with Nagios and challenges we've faced out in the IT wilderness. See you there, John Mark Walker Developer Relations GroundWork Open Source Solutions -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (Cygwin) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFC87Y1Y1Kn31QQj6sRAjcTAJ9+0QfZgFeLAQ+izD+P4Bkqbwu91wCfYJ8+ BbK0A8ZRrXS0o4gVbmGp0t0= =/z0o -----END PGP SIGNATURE----- ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jessed at 180solutions.com Fri Aug 5 23:07:14 2005 From: jessed at 180solutions.com (Jesse Driskill) Date: Fri, 5 Aug 2005 14:07:14 -0700 Subject: email notifications not being kicked off. Message-ID: <3C7A1801D550F14B96C2EB6D2C8B989B08EFF3B2@seaex01.180solutions.com> Hi all, I've been stuck on this problem for several days and haven't; made much headway. None of the email alerts from any of my systems work at all. I've confirmed that I can send mail from the systems, and that if I copy/paste the 'notify-by-email' command contents is the screen (substituting macros of course), that the email comes. The log file does not have any email errors at all... it notes the host go down soft, then hard, but no action is taken. The problem seems to be that nagios isn't trying to send the notifications at all. I've confirmed that _all _ notifications are on wherever they are defined (hosts and services as well as in the nagios.cfg) The contact_groups are correct contacts have everything defined for notification except the 'n'. notification timeperiods are correct. (24x7) log_notification is enabled I don't know where else to look. Is there a debugging setting I can enable to see what notification filter is failing? Or if one's failing at all? Thanks, --jesse -------------- next part -------------- An HTML attachment was scrubbed... URL: From eford at nexusenergy.com Fri Aug 5 23:19:14 2005 From: eford at nexusenergy.com (Edward Ford) Date: Fri, 5 Aug 2005 17:19:14 -0400 Subject: email notifications not being kicked off. Message-ID: I had the same issue and fixed it using this forum. The answer is within the forum. I do remember editing a file to add the smtp server to it, the smtp server for the company on the Linux Box. Eddie -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Jesse Driskill Sent: Friday, August 05, 2005 5:07 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] email notifications not being kicked off. Hi all, I've been stuck on this problem for several days and haven't; made much headway. None of the email alerts from any of my systems work at all. I've confirmed that I can send mail from the systems, and that if I copy/paste the 'notify-by-email' command contents is the screen (substituting macros of course), that the email comes. The log file does not have any email errors at all. it notes the host go down soft, then hard, but no action is taken. The problem seems to be that nagios isn't trying to send the notifications at all. I've confirmed that _all _ notifications are on wherever they are defined (hosts and services as well as in the nagios.cfg) The contact_groups are correct contacts have everything defined for notification except the 'n'. notification timeperiods are correct. (24x7) log_notification is enabled I don't know where else to look. Is there a debugging setting I can enable to see what notification filter is failing? Or if one's failing at all? Thanks, --jesse -------------- next part -------------- An HTML attachment was scrubbed... URL: From matt at atopia.net Fri Aug 5 23:20:51 2005 From: matt at atopia.net (Matt Juszczak) Date: Fri, 5 Aug 2005 17:20:51 -0400 (EDT) Subject: email notifications not being kicked off. In-Reply-To: <3C7A1801D550F14B96C2EB6D2C8B989B08EFF3B2@seaex01.180solutions.com> References: <3C7A1801D550F14B96C2EB6D2C8B989B08EFF3B2@seaex01.180solutions.com> Message-ID: <20050805172019.X26690@neptune.atopia.net> > I've been stuck on this problem for several days and > haven't; made much headway. None of the email alerts from any of my > systems work at all. I've confirmed that I can send mail from the > systems, and that if I copy/paste the 'notify-by-email' command contents > is the screen (substituting macros of course), that the email comes. The > log file does not have any email errors at all... it notes the host go > down soft, then hard, but no action is taken. The problem seems to be > that nagios isn't trying to send the notifications at all. I've had this problem recently too, except that my services alerts aren't working, only my host down alerts. Have you tried taking a host down and seeing if those alerts come through? Or just services? -Matt ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jessed at 180solutions.com Fri Aug 5 23:41:17 2005 From: jessed at 180solutions.com (Jesse Driskill) Date: Fri, 5 Aug 2005 14:41:17 -0700 Subject: email notifications not being kicked off. Message-ID: <3C7A1801D550F14B96C2EB6D2C8B989B08EFF46A@seaex01.180solutions.com> I've only tested services... I'll have to setup a test for a workstation or something. I'll try that out. --jesse -----Original Message----- From: Matt Juszczak [mailto:matt at atopia.net] Sent: Friday, August 05, 2005 2:21 PM To: Jesse Driskill Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] email notifications not being kicked off. > I've been stuck on this problem for several days and > haven't; made much headway. None of the email alerts from any of my > systems work at all. I've confirmed that I can send mail from the > systems, and that if I copy/paste the 'notify-by-email' command contents > is the screen (substituting macros of course), that the email comes. The > log file does not have any email errors at all... it notes the host go > down soft, then hard, but no action is taken. The problem seems to be > that nagios isn't trying to send the notifications at all. I've had this problem recently too, except that my services alerts aren't working, only my host down alerts. Have you tried taking a host down and seeing if those alerts come through? Or just services? -Matt ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Sat Aug 6 00:25:13 2005 From: marc at ena.com (Marc Powell) Date: Fri, 5 Aug 2005 17:25:13 -0500 Subject: email notifications not being kicked off. Message-ID: Providing specific host/service/template/command definitions would also be useful for us in troubleshooting. You can go ahead and censor private information but leave as much as you can. -- Marc > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Jesse Driskill > Sent: Friday, August 05, 2005 4:41 PM > To: Matt Juszczak > Cc: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] email notifications not being kicked off. > > > I've only tested services... I'll have to setup a test for a > workstation or something. I'll try that out. > > --jesse > > -----Original Message----- > From: Matt Juszczak [mailto:matt at atopia.net] > Sent: Friday, August 05, 2005 2:21 PM > To: Jesse Driskill > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] email notifications not being kicked off. > > > I've been stuck on this problem for several days and > > haven't; made much headway. None of the email alerts from any of my > > systems work at all. I've confirmed that I can send mail from the > > systems, and that if I copy/paste the 'notify-by-email' command > contents > > is the screen (substituting macros of course), that the email comes. > The > > log file does not have any email errors at all... it notes the host go > > down soft, then hard, but no action is taken. The problem seems to be > > that nagios isn't trying to send the notifications at all. > > > I've had this problem recently too, except that my services alerts > aren't > working, only my host down alerts. > > Have you tried taking a host down and seeing if those alerts come > through? > Or just services? > > -Matt > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jessed at 180solutions.com Sat Aug 6 00:50:56 2005 From: jessed at 180solutions.com (Jesse Driskill) Date: Fri, 5 Aug 2005 15:50:56 -0700 Subject: email notifications not being kicked off. Message-ID: <3C7A1801D550F14B96C2EB6D2C8B989B08F44A3E@seaex01.180solutions.com> Ahhh... got it. I didn't realize that notification_options were necessary for hosts & sevices... I just thought they were used for only for contacts and contact groups. Oops. I rechecked the documentation after getting the 'forum' suggestion and finding a long string about this on the first page. Thanks for the assist. --jesse -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Marc Powell Sent: Friday, August 05, 2005 3:25 PM To: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] email notifications not being kicked off. Providing specific host/service/template/command definitions would also be useful for us in troubleshooting. You can go ahead and censor private information but leave as much as you can. -- Marc > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Jesse Driskill > Sent: Friday, August 05, 2005 4:41 PM > To: Matt Juszczak > Cc: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] email notifications not being kicked off. > > > I've only tested services... I'll have to setup a test for a > workstation or something. I'll try that out. > > --jesse > > -----Original Message----- > From: Matt Juszczak [mailto:matt at atopia.net] > Sent: Friday, August 05, 2005 2:21 PM > To: Jesse Driskill > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] email notifications not being kicked off. > > > I've been stuck on this problem for several days and > > haven't; made much headway. None of the email alerts from any of my > > systems work at all. I've confirmed that I can send mail from the > > systems, and that if I copy/paste the 'notify-by-email' command > contents > > is the screen (substituting macros of course), that the email comes. > The > > log file does not have any email errors at all... it notes the host go > > down soft, then hard, but no action is taken. The problem seems to be > > that nagios isn't trying to send the notifications at all. > > > I've had this problem recently too, except that my services alerts > aren't > working, only my host down alerts. > > Have you tried taking a host down and seeing if those alerts come > through? > Or just services? > > -Matt > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From davea at support.kcm.org Sat Aug 6 00:59:19 2005 From: davea at support.kcm.org (Dave Augustus) Date: Fri, 05 Aug 2005 17:59:19 -0500 Subject: check_dns plugin failures Message-ID: <1123282759.19398.8.camel@kcm40202> Hello fellow listers! I am having difficulty getting valid responses from the check_dns plugin. Using both the 1.3 and the new 1.4 series plugins, I get a valid response one out of every 10 times, making the whole reason for monitoring useless. Any ideas? Specs: nagios-plugins-1.4-1 on CentOS 4 (RHEL 4) checking a BIND 9 server on CentOS 4 (RHEL 4) --check command is : ./check_dns -H mail.kcm.org -s 67.18.139.41 -s 67.18.139.104 TIA -- Dave Augustus ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ladams at cloudmark.com Sat Aug 6 01:29:17 2005 From: ladams at cloudmark.com (Lori Adams) Date: Fri, 5 Aug 2005 16:29:17 -0700 Subject: Solution: Exclamation Point Workaround Message-ID: So I have tried both of these tests to no avail. my password has an exclamation in it: pass!word I've tried escaping it. I've put quotes around the $ARG$. I've done both things listed in this thread. Has anyone else had luck with arguments having an exclamation point? -Lori -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Andreas Ericsson Sent: Sunday, June 19, 2005 2:09 PM To: Brandon Knitter Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Solution: Exclamation Point Workaround Brandon Knitter wrote: > I'm not sure if this has been mentioned before, but I was having an issue where > my password to a database had a "!" in it. So the service had the following: > > check_command check_database host!port!user!password! > > Where the password was "password!". Of course you can't do that cause the > exclamation is a separator and a reserved character. So I changed my commmand > from: > > command /path/to/check_database.sh $ARG1$ $ARG2$ $ARG3$ $ARG4$ > > to the following: > > command printf "$ARG3$ $ARG4$" | xargs /path/to/check_database.sh $ARG1$ > $ARG2$ > A simpler solution is ofcourse to define the command as check_database.sh '$ARG1$' '$ARG2$' '$ARG3$' '$ARG4$' and the service as check_command check_database!host!port!user!password\! > and then in my object definition, I changed my check command to: > > check_command check_database host!port!user!password\x21 > > The printf command will expand the "\x21" to a "!" when executing things. It's > a nice little workaround that I found and figured I'd share. :) Hope this > helps y'all. > > Cheers, > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ladams at cloudmark.com Sat Aug 6 01:32:32 2005 From: ladams at cloudmark.com (Lori Adams) Date: Fri, 5 Aug 2005 16:32:32 -0700 Subject: Solution: Exclamation Point Workaround Message-ID: Sorry, meant to post more info. when checking what the command is running, it cuts off at the exclamation. In my example, nagios thinks the argument is "pass". -L -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Lori Adams Sent: Friday, August 05, 2005 4:29 PM To: Andreas Ericsson; Brandon Knitter Cc: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Solution: Exclamation Point Workaround So I have tried both of these tests to no avail. my password has an exclamation in it: pass!word I've tried escaping it. I've put quotes around the $ARG$. I've done both things listed in this thread. Has anyone else had luck with arguments having an exclamation point? -Lori -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Andreas Ericsson Sent: Sunday, June 19, 2005 2:09 PM To: Brandon Knitter Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Solution: Exclamation Point Workaround Brandon Knitter wrote: > I'm not sure if this has been mentioned before, but I was having an issue where > my password to a database had a "!" in it. So the service had the following: > > check_command check_database host!port!user!password! > > Where the password was "password!". Of course you can't do that cause the > exclamation is a separator and a reserved character. So I changed my commmand > from: > > command /path/to/check_database.sh $ARG1$ $ARG2$ $ARG3$ $ARG4$ > > to the following: > > command printf "$ARG3$ $ARG4$" | xargs /path/to/check_database.sh $ARG1$ > $ARG2$ > A simpler solution is ofcourse to define the command as check_database.sh '$ARG1$' '$ARG2$' '$ARG3$' '$ARG4$' and the service as check_command check_database!host!port!user!password\! > and then in my object definition, I changed my check command to: > > check_command check_database host!port!user!password\x21 > > The printf command will expand the "\x21" to a "!" when executing things. It's > a nice little workaround that I found and figured I'd share. :) Hope this > helps y'all. > > Cheers, > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From justdave at bugzilla.org Sat Aug 6 03:54:01 2005 From: justdave at bugzilla.org (David Miller) Date: Fri, 05 Aug 2005 21:54:01 -0400 Subject: run a script based on event?? In-Reply-To: References: Message-ID: <42F41839.5080803@bugzilla.org> HP Geeza wrote: > I have done as you suggested however when i run the command mannualy > (just to check that things will work i get the following error in my > remote windows machine). > > NRPE_NT: Error: Could not computer SSL handshake 0:1 > > Could somebody please tell me how to solve this SSL error.....do i even > need ssl???? With the Linux version of NRPE, I've gotten that error before when the "allowed_hosts" parameter in the nrpe.cfg file wasn't set to allow the nagios host to connect to it. -- Dave Miller http://www.justdave.net/ System Administrator, Mozilla Foundation http://www.mozilla.org/ Project Leader, Bugzilla Bug Tracking System http://www.bugzilla.org/ ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From prosolutions at gmx.net Sat Aug 6 05:27:33 2005 From: prosolutions at gmx.net (prosolutions at gmx.net) Date: Fri, 5 Aug 2005 20:27:33 -0700 Subject: how to wrap long lines in config? Message-ID: <20050806032732.GX2742@localdomain> some of the config lines look real ugly. like: command_line /usr/bin/printf "%b" "Nagios System\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ is it possible to wrap these ala bash to make them look sane? e.g.: command_line /usr/bin/printf "%b" \ "Nagios System\n\n\ Notification Type: $NOTIFICATIONTYPE$\n\n\ Service: $SERVICEDESC$\n\ Host: $HOSTALIAS$\n\ Address: $HOSTADDRESS$\n\ State: $SERVICESTATE$\n\n\ Date/Time: $LONGDATETIME$\n\n\ Additional Info:\n\n\ $SERVICEOUTPUT$" \ | /usr/bin/mail -s \ "** $NOTIFICATIONTYPE$ alert - \ $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" \ $CONTACTEMAIL$ ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Sat Aug 6 14:01:26 2005 From: marc at ena.com (Marc Powell) Date: Sat, 6 Aug 2005 07:01:26 -0500 Subject: how to wrap long lines in config? Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of prosolutions at gmx.net > Sent: Friday, August 05, 2005 10:28 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] how to wrap long lines in config? > > some of the config lines look real ugly. like: > > command_line /usr/bin/printf "%b" "Nagios System\n\nNotification > Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: > $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: > $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /usr/bin/mail -s > "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ > **" $CONTACTEMAIL$ > > > is it possible to wrap these ala bash to make them look sane? e.g.: No. The parser isn't able to do that. -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From teng at dataway.com Sun Aug 7 10:08:41 2005 From: teng at dataway.com (Tedman Eng) Date: Sun, 7 Aug 2005 01:08:41 -0700 Subject: how to wrap long lines in config? Message-ID: <37ED92F9890FAF4BB947613C66FF8B1A08BB2B44@dw-mail.dataway.com> Yes, you can wrap them in bash: command_line notify_host.sh notify_host.sh: --------------- #!/bin/bash /usr/bin/printf "%b" \ "Nagios System\n\n\ Notification Type: $NOTIFICATIONTYPE$\n\n\ Service: $SERVICEDESC$\n\ Host: $HOSTALIAS$\n\ Address: $HOSTADDRESS$\n\ State: $SERVICESTATE$\n\n\ Date/Time: $LONGDATETIME$\n\n\ Additional Info:\n\n\ $SERVICEOUTPUT$" \ | /usr/bin/mail -s \ "** $NOTIFICATIONTYPE$ alert - \ $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" \ $CONTACTEMAIL$ --------------- -----Original Message----- From: prosolutions at gmx.net [mailto:prosolutions at gmx.net] Sent: Friday, August 05, 2005 8:28 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] how to wrap long lines in config? some of the config lines look real ugly. like: command_line /usr/bin/printf "%b" "Nagios System\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ is it possible to wrap these ala bash to make them look sane? e.g.: command_line /usr/bin/printf "%b" \ "Nagios System\n\n\ Notification Type: $NOTIFICATIONTYPE$\n\n\ Service: $SERVICEDESC$\n\ Host: $HOSTALIAS$\n\ Address: $HOSTADDRESS$\n\ State: $SERVICESTATE$\n\n\ Date/Time: $LONGDATETIME$\n\n\ Additional Info:\n\n\ $SERVICEOUTPUT$" \ | /usr/bin/mail -s \ "** $NOTIFICATIONTYPE$ alert - \ $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" \ $CONTACTEMAIL$ ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From teng at dataway.com Sun Aug 7 10:36:32 2005 From: teng at dataway.com (Tedman Eng) Date: Sun, 7 Aug 2005 01:36:32 -0700 Subject: how to wrap long lines in config? Message-ID: <37ED92F9890FAF4BB947613C66FF8B1A08BB2B45@dw-mail.dataway.com> I forgot to mention though, the macros have to be passed in some fashion: For example, append them to the command_line and then read in as an argument to your "notification handler" (here we append as one argument and split on ~ within the script, since some values may contain spaces). command_line notify_host.sh $NOTIFICATIONTYPE$~$SERVICEDESC$~$HOSTALIAS$ Nagios 2.0 lets you access these macros as $NAGIOS_ environment variables (consult the documentation for more info). -----Original Message----- From: Tedman Eng Sent: Sunday, August 07, 2005 1:09 AM To: 'prosolutions at gmx.net' Cc: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] how to wrap long lines in config? Yes, you can wrap them in bash: command_line notify_host.sh notify_host.sh: --------------- #!/bin/bash /usr/bin/printf "%b" \ "Nagios System\n\n\ Notification Type: $NOTIFICATIONTYPE$\n\n\ Service: $SERVICEDESC$\n\ Host: $HOSTALIAS$\n\ Address: $HOSTADDRESS$\n\ State: $SERVICESTATE$\n\n\ Date/Time: $LONGDATETIME$\n\n\ Additional Info:\n\n\ $SERVICEOUTPUT$" \ | /usr/bin/mail -s \ "** $NOTIFICATIONTYPE$ alert - \ $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" \ $CONTACTEMAIL$ --------------- -----Original Message----- From: prosolutions at gmx.net [mailto:prosolutions at gmx.net] Sent: Friday, August 05, 2005 8:28 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] how to wrap long lines in config? some of the config lines look real ugly. like: command_line /usr/bin/printf "%b" "Nagios System\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ is it possible to wrap these ala bash to make them look sane? e.g.: command_line /usr/bin/printf "%b" \ "Nagios System\n\n\ Notification Type: $NOTIFICATIONTYPE$\n\n\ Service: $SERVICEDESC$\n\ Host: $HOSTALIAS$\n\ Address: $HOSTADDRESS$\n\ State: $SERVICESTATE$\n\n\ Date/Time: $LONGDATETIME$\n\n\ Additional Info:\n\n\ $SERVICEOUTPUT$" \ | /usr/bin/mail -s \ "** $NOTIFICATIONTYPE$ alert - \ $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" \ $CONTACTEMAIL$ ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From frederik.vanhee at perso.be Sun Aug 7 22:03:42 2005 From: frederik.vanhee at perso.be (Frederik Vanhee) Date: Sun, 07 Aug 2005 22:03:42 +0200 Subject: nrpe_nt versus nsclient versus nsclient++ In-Reply-To: References: Message-ID: <42F6691E.4060402@perso.be> Lori Adams wrote: > Hi folks, > > I?m curious about people?s opinions regarding nrpe_nt, nsclient, and > nsclient++. I?m interested in advantages or disadvantages of using one > and not the other. I?ll be using these on Windows 2000 servers. > > Thanks, > > Lori > In the future, I want to do some monitoring on windows hosts. Therefore, I do some testing on 2 windows-boxes. One with nrpe_nt and nsclient and the other with nsclient++. One big advantage of nsclient++ is the fact that it replaces nrpe_nt and nsclient, so you don't need to manage two programs and two config-files. I had some compatibility issues with nsclient++ first (on old NT-boxes), but the developer, Michael Medin, is very helpful in case of a problem and fixes the program as soon as possible. The current version of nsclient++ works very well AND has performance data ! (which interests me). Frederik ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ssugar at proserveit.com Mon Aug 8 02:48:32 2005 From: ssugar at proserveit.com (Scott Sugar) Date: Sun, 7 Aug 2005 20:48:32 -0400 Subject: email notifications not being kicked off. Message-ID: Im not sure if this might help, but try switching to the nagios user and running the copied notify-by-email command to ensure that the permissions for the nagios user will allow you to use the mail program. Scott ________________________________ From: nagios-users-admin at lists.sourceforge.net on behalf of Edward Ford Sent: Fri 8/5/2005 5:19 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] email notifications not being kicked off. I had the same issue and fixed it using this forum. The answer is within the forum. I do remember editing a file to add the smtp server to it, the smtp server for the company on the Linux Box. Eddie -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Jesse Driskill Sent: Friday, August 05, 2005 5:07 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] email notifications not being kicked off. Hi all, I've been stuck on this problem for several days and haven't; made much headway. None of the email alerts from any of my systems work at all. I've confirmed that I can send mail from the systems, and that if I copy/paste the 'notify-by-email' command contents is the screen (substituting macros of course), that the email comes. The log file does not have any email errors at all... it notes the host go down soft, then hard, but no action is taken. The problem seems to be that nagios isn't trying to send the notifications at all. I've confirmed that _all _ notifications are on wherever they are defined (hosts and services as well as in the nagios.cfg) The contact_groups are correct contacts have everything defined for notification except the 'n'. notification timeperiods are correct. (24x7) log_notification is enabled I don't know where else to look. Is there a debugging setting I can enable to see what notification filter is failing? Or if one's failing at all? Thanks, --jesse -------------- next part -------------- An HTML attachment was scrubbed... URL: From getbacktome3 at hotmail.com Mon Aug 8 11:37:41 2005 From: getbacktome3 at hotmail.com (HP Geeza) Date: Mon, 08 Aug 2005 10:37:41 +0100 Subject: run a script based on event?? In-Reply-To: <02769B432700E649B14C0847840DC83B379019@becompanysrv020.consulting.becompany> References: <02769B432700E649B14C0847840DC83B379019@becompanysrv020.consulting.becompany> Message-ID: All, I have managed to install nrpe on the windows machine and nagios box. I can run a command such as: ./check_nrpe -H -c check_cmd which returns "hello from cmd" to my nagios box. The check_cmd command looks like: command[check_cmd]=C:\source\nrpe\NoSSLbin\bin\test.cmd the contents of the test.cmd file looks like: @echo off echo hallo from cmd exit 1 This proves that nrpe is working. However i am a little stuck when it comes to executing the reboot_server command which in turn calls a shutdown.cmd file which will reboot my remote windows server. I would be greatfully for any comments on what i am doing wrong and how i can solve this problem: command[reboot_server]=C:\source\psshutdown\shutdown.cmd the contents of the shutdown.cmd file is: C:\WINDOWS\system32\shutdown.exe -r echo system shutting down from cmd exit 1 the command im running from my nagios box is: ./check_nrpe -H 10.30.128.254 -c reboot_server BUT i then get a message saying: : The system could not find the environment option that was entered.(203) However when i double click on the shutdown.cmd file on my remote windows machine the machine reboots itself.... >From: "Ludo Bosmans" >To: "HP Geeza" >, >Subject: RE: [Nagios-users] RE: run a script based on event?? >Date: Fri, 5 Aug 2005 13:19:14 +0200 > >Geeza, >Yes of course this is possible. > >1) On your winserver install the nrpe service as documented in the >README or INSTALL guide and adapt nrpe.cfg as needed. >So in your nrpe.cfg file (on the win server) there should be a config >entry: >command[reboot_server]=c\reboot.bat > >2) Make a bat file that contain the shutdown.exe command with the >correct parameters. > >3) In your checkcommands.cfg file create a command(this is an example): > ># reboot_win_server >define command{ > command_name reboot_win_server > command line $USER1$/reboot_win_server.sh $HOSTNAME$ >$HOSTADDRESS$ >} > >4) In your plugin directory make a small script(reboot_win_server.sh): >This example is just the minimum > >#bin/sh >HOST_NAME=$1 >IP_ADDRESS=$2 >/usr/lib/nagios/plugins/check_nrpe -H $HOST_ADDRESS -t 5 -c >reboot_server > >5) Of course there are alternatives, it is possible to define directly >in the checkcommands.cfg the check_nrpe instead of calling a script: > ># reboot_win_server >define command{ > command_name reboot_win_server > command line $USER1$/check_nrpe -H $HOSTADDRESS$ -t 5 -c >reboot_server >} > >6) To test, at least install the win site, try a manual execution of the >check_nrpe ... reboot > >7) Finally I didn't really test this explanation, so I hope that I >didn't have make mistakes in my explanation. >Kind regards, > >Ludo > > >-----Original Message----- >From: HP Geeza [mailto:getbacktome3 at hotmail.com] >Sent: vrijdag 5 augustus 2005 12:43 >To: Ludo Bosmans; nagios-users at lists.sourceforge.net >Subject: RE: [Nagios-users] RE: run a script based on event?? > >Ok im a little confussed now...is the following possible via nagios? > >Monitor a temp probe in lab (this i know is possible via snmp)...if the >temp >value goes critical then run check_nrpe (through an event >handler)...which >will then run a script on the windows machine? > >--->>> can check_nrpe be run as an event handler once the temp value is >critical? > >I can shutdown the windows machine fine as i have already got the >commands >to do that. I just need a way to call that script/bat flile when the >temp >value goes critical. > > > >From: "Ludo Bosmans" > >To: "HP Geeza" > >, > >Subject: RE: [Nagios-users] RE: run a script based on event?? > >Date: Fri, 5 Aug 2005 09:25:33 +0200 > > > >Hi, > > > >Have a look to following link, it is quiet easy to make a windows bat > >file with the correct options to reboot. > >http://windows.about.com/od/schedulingandbatchjobs/l/aa012400a.htm > > > >Install nrpe_nt on the windows server and and use check_nrpe to execute > >the reboot bat file on the win server when it is necessary, f.e. with >an > >eventhandler script. > > > >Kind regards, > > > >ludo > > > > > >-----Original Message----- > >From: nagios-users-admin at lists.sourceforge.net > >[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of HP Geeza > >Sent: donderdag 4 augustus 2005 17:17 > >To: nagios-users at lists.sourceforge.net > >Subject: RE: [Nagios-users] RE: run a script based on event?? > > > >I know that this isn't the best place to ask this sort of >question...but > >id > >be greatfull for any advice/help!!! > > > >I need a way to shutdown remote windows servers through an event >handler > >in > >nagios...i dont quiet know how to write a script (whether it be perl or > >bash) which will allow me to do this. the way i understand it is there > >currently isnt a way to run a windwos command in linux. > > > >I can quiet easily run the shutdown command from a windows box to > >shutdown a > >remote windows machine...but becuase nagios runs in linux i need a way > >to > >shutdown windows machines from linux. > > > >Any ideas???? > > > > >From: "Marc Powell" > > >To: > > >Subject: [Nagios-users] RE: run a script based on event?? > > >Date: Wed, 3 Aug 2005 10:08:47 -0500 > > > > > > > > > > > > > -----Original Message----- > > > > From: HP Geeza [mailto:getbacktome3 at hotmail.com] > > > > Sent: Wednesday, August 03, 2005 10:01 AM > > > > To: Marc Powell; nagios-users at lists.sourceforge.net > > > > Subject: run a script based on event?? > > > > > > > > HI > > > > > > > > I was wondering if this is possible and whether anybody has tried > >it? > > >- I > > > > am > > > > monitoring the temperature probe in our lab via snmp...and as a > >result > > >i > > > > was > > > > wondering whether it is possible in nagios to run a script of some > > >sort > > > > (which will probably contain some sort of shutdown command) when >the > > > > temperature triggers an event i.e when it goes above a certain > > >threshold. > > > > > > > > I would like to do this because if the AC busts and our lab starts > >to > > > > overheat then i would like nagios to run a script which will turn > >off > > >some > > > > of the machines? > > > > > >Oddly enough they're called event handlers. > > > > > >http://nagios.sourceforge.net/docs/1_0/eventhandlers.html > > > > > >-- > > >Marc > > > > > >p.s. Please don't e-mail me directly. Even though I participate a lot > > >here, I'm not dedicated Nagios support ;) > > > > > > > > > > > > > > >------------------------------------------------------- > > >SF.Net email is sponsored by: Discover Easy Linux Migration >Strategies > > >from IBM. Find simple to follow Roadmaps, straightforward articles, > > >informative Webcasts and more! Get everything you need to get up to > > >speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click > > >_______________________________________________ > > >Nagios-users mailing list > > >Nagios-users at lists.sourceforge.net > > >https://lists.sourceforge.net/lists/listinfo/nagios-users > > >::: Please include Nagios version, plugin version (-v) and OS when > > >reporting any issue. > > >::: Messages without supporting info will risk being sent to >/dev/null > > > >_________________________________________________________________ > >Want to block unwanted pop-ups? Download the free MSN Toolbar now! > >http://toolbar.msn.co.uk/ > > > > > > > >------------------------------------------------------- > >SF.Net email is Sponsored by the Better Software Conference & EXPO > >September 19-22, 2005 * San Francisco, CA * Development Lifecycle > >Practices > >Agile & Plan-Driven Development * Managing Projects & Teams * Testing & > >QA > >Security * Process Improvement & Measurement * > >http://www.sqe.com/bsce5sf > >_______________________________________________ > >Nagios-users mailing list > >Nagios-users at lists.sourceforge.net > >https://lists.sourceforge.net/lists/listinfo/nagios-users > >::: Please include Nagios version, plugin version (-v) and OS when > >reporting any issue. > >::: Messages without supporting info will risk being sent to /dev/null > > > > > >------------------------------------------------------- > >SF.Net email is Sponsored by the Better Software Conference & EXPO > >September 19-22, 2005 * San Francisco, CA * Development Lifecycle >Practices > >Agile & Plan-Driven Development * Managing Projects & Teams * Testing & >QA > >Security * Process Improvement & Measurement * >http://www.sqe.com/bsce5sf > >_______________________________________________ > >Nagios-users mailing list > >Nagios-users at lists.sourceforge.net > >https://lists.sourceforge.net/lists/listinfo/nagios-users > >::: Please include Nagios version, plugin version (-v) and OS when > >reporting any issue. > >::: Messages without supporting info will risk being sent to /dev/null > >_________________________________________________________________ >Be the first to hear what's new at MSN - sign up to our free >newsletters! >http://www.msn.co.uk/newsletters > _________________________________________________________________ It's fast, it's easy and it's free. Get MSN Messenger 7.0 today! http://messenger.msn.co.uk ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ralph.Grothe at itdz-berlin.de Mon Aug 8 13:14:34 2005 From: Ralph.Grothe at itdz-berlin.de (Ralph.Grothe at itdz-berlin.de) Date: Mon, 8 Aug 2005 13:14:34 +0200 Subject: Passive service checks via NSCA and required check command defini tion Message-ID: <6B893C5F2902D311A23F0090272854FB0575B7CA@litex001.lit.verwalt-berlin.de> Hello, I have a question regarding the nagios server configuration for passive checks. I built NSCA for both the OS of my Nagios server (i.e. AIX 4.3.3) and the remote servers' OS where I wish to run passive checks on (i.e. mainly HP-UX 11.11) I also made sure to compile and link against libmcrypt after having read the security note. On the remote host I configured NSCA to be started by inetd, and configured nsca.cfg with a password and tripple DES. (btw, which cipher would be more suited in relating security vs. performance?) Running a few passive checks manually I could verify by doing a cat on the FIFO ~nagios/var/rw/nagios.cmd of the Nagios server that the passive check result got written to the FIFO. Then I was a bit puzzled what to define as check_command for the asynchronous service, as the pre-flight check correctly objected that this was attribute (as a required one) was missing. I came up with the following hack that seems to be working well, but I'm unsure if this was also the officially "supported" way since I haven't found this point being treated in the doc. After having searched the libexec dir for appropiate sounding plug-ins I came accross check_dummy, which I thought was for cases like this. (the help screen of check_dummy wasn't too revealing about its intended usage, as usual) Thus I defined this in checkcommands.cfg # Placeholder for Passive Checks define command { command_name passive-check-pad command_line $USR1$/check_dummy 0 "won't do active checks" } and it is called from this service definition define service { use generic-service service_description samos-hpva-state host_name samos passive_checks_enabled 1 active_checks_enabled 0 check_command passive-check-pad contact_groups samosadmin } I have the passive check feeding the Nagios FIFO every hour by a cronjob from the remote host. Looking at the Nagios webinterface everything seems to be working perfectly, but I have this sneaking suspicion that I missed something. ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Mon Aug 8 13:51:22 2005 From: pla at softflare.com (Paul L. Allen) Date: Mon, 08 Aug 2005 12:51:22 +0100 Subject: Passive service checks via NSCA and required check command defini tion In-Reply-To: <6B893C5F2902D311A23F0090272854FB0575B7CA@litex001.lit.verwalt-berlin.de> References: <6B893C5F2902D311A23F0090272854FB0575B7CA@litex001.lit.verwalt-berlin.de> Message-ID: <20050808115122.17483.qmail@mullet.softflare.net> Ralph.Grothe at itdz-berlin.de writes: > I came up with the following hack that seems to be working well, > but I'm unsure if this was also the officially "supported" way > since I haven't found this point being treated in the doc. I think it's in the docs, somewhere. But, IIRC, it's a bit of a pain to find. > After having searched the libexec dir for appropiate sounding > plug-ins I came accross > check_dummy, which I thought was for cases like this. > (the help screen of check_dummy wasn't too revealing about its > intended usage, as usual) It can be used in cases like this. > Thus I defined this in checkcommands.cfg > > # Placeholder for Passive Checks > > define command { > command_name passive-check-pad > command_line $USR1$/check_dummy 0 "won't do active > checks" > } > I have the passive check feeding the Nagios FIFO every hour by a > cronjob from the remote host. > > Looking at the Nagios webinterface everything seems to be working > perfectly, but I have this sneaking suspicion that I missed something. You have missed something. :) Turn off the cron job. Nagios will be blissfully unaware and return OK for the service even if the service is down. The text of the check result will be different, so if you look carefully you'll be able to tell that check_dummy is returning OK rather than the passive check returning OK, but most people just check that everything is green without reading the text. At the very least you should call check_dummy with 3 rather than 0 so that it returns an unknown state. You may also find it useful to replace it with a simple shell script that prints "Passive check is stale" and exits with 3 so that you can distinguish between Unknown being returned by the passive check and Unknown because the passive check is stale. Again, the fact that the check_dummy output differs from the passive check output when the passive check is unknown will let you distinguish between the two but life is a little simpler if the text makes it clear what the problem is. -- Paul Allen Softflare Support ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ralph.Grothe at itdz-berlin.de Mon Aug 8 14:51:36 2005 From: Ralph.Grothe at itdz-berlin.de (Ralph.Grothe at itdz-berlin.de) Date: Mon, 8 Aug 2005 14:51:36 +0200 Subject: Passive service checks via NSCA and requir ed check command defini tion Message-ID: <6B893C5F2902D311A23F0090272854FB0575B7CE@litex001.lit.verwalt-berlin.de> Hello Paul, > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Paul L. > Allen > Sent: Monday, August 08, 2005 1:51 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Re: Passive service checks via NSCA > and required > check command defini tion > > > Ralph.Grothe at itdz-berlin.de writes: > > > I came up with the following hack that seems to be working well, > > but I'm unsure if this was also the officially "supported" way > > since I haven't found this point being treated in the doc. > > I think it's in the docs, somewhere. But, IIRC, it's a bit > of a pain to > find. What is IIRC? (you don't mean release candidate 2, do you?) Where would I find it? > > > After having searched the libexec dir for appropiate sounding > > plug-ins I came accross > > check_dummy, which I thought was for cases like this. > > (the help screen of check_dummy wasn't too revealing about its > > intended usage, as usual) > > It can be used in cases like this. > > > Thus I defined this in checkcommands.cfg > > > > # Placeholder for Passive Checks > > > > define command { > > command_name passive-check-pad > > command_line $USR1$/check_dummy 0 "won't do active > > checks" > > } > > > I have the passive check feeding the Nagios FIFO every hour by a > > cronjob from the remote host. > > > > Looking at the Nagios webinterface everything seems to be working > > perfectly, but I have this sneaking suspicion that I missed > something. > > You have missed something. :) > > Turn off the cron job. Nagios will be blissfully unaware and > return OK > for the service even if the service is down. Disabling the cronjob on the remote host? I can't imagine how the feed should work then. Could you explain? SSHing from my Nagios server to the nsca-enabled remote host $ ssh saz at samos crontab -l # Passive NSCA Check of HP Virtual Array for nagios @ daisy 07 00-23 * * * /usr/local/nagios/libexec/check_hpva.sh nsca >/dev/null Maybe I have to explain. The script check_hpva.sh I first had written as a mere plug-in run via check_nrpe. Because I wanted to give NSCA a try and I found it a bit silly to check the Virtula Array's state every 5 mins. or so, I thought turning it into a NSCA script. To this end I only needed to add a few lines and made the distinction by an extra parameter it takes (i.e. nsca if run as NSCA script, no arg if run as NRPE) Here's how it works invoked as nsca [nagios at daisy:~/etc] $ ssh saz at samos /usr/local/nagios/libexec/check_hpva.sh nsca;sleep 5;tail -1 ~nagios/var/rw/nagios.cmd 1 data packet(s) sent to host successfully. [1123505316] PROCESS_SERVICE_CHECK_RESULT;samos;samos-hpva-state;0;OK: HP Virtual Array "va" on samos FRU State OK, failed: none > The text of the > check result > will be different, so if you look carefully you'll be able to > tell that > check_dummy is returning OK rather than the passive check > returning OK, So far I could read the status line as what got written to the FIFO above. What difference do you mean? > but most people just check that everything is green without > reading the > text. > > At the very least you should call check_dummy with 3 rather > than 0 so that > it returns an unknown state. I will change to UNKNOWN. > You may also find it useful to > replace it > with a simple shell script that prints "Passive check is > stale" and exits > with 3 so that you can distinguish between Unknown being > returned by the > passive check and Unknown because the passive check is stale. > Again, the > fact that the check_dummy output differs from the passive > check output when > the passive check is unknown will let you distinguish between > the two but > life is a little simpler if the text makes it clear what the > problem is. Yes, I should also change it that way. ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Mon Aug 8 15:03:53 2005 From: ae at op5.se (Andreas Ericsson) Date: Mon, 08 Aug 2005 15:03:53 +0200 Subject: Passive service checks via NSCA and requir ed check command defini tion In-Reply-To: <6B893C5F2902D311A23F0090272854FB0575B7CE@litex001.lit.verwalt-berlin.de> References: <6B893C5F2902D311A23F0090272854FB0575B7CE@litex001.lit.verwalt-berlin.de> Message-ID: <42F75839.1080109@op5.se> > > What is IIRC? (you don't mean release candidate 2, do you?) > Where would I find it? > http://www.acronymfinder.com/af-query.asp?String=exact&Acronym=iirc&Find=Find -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ralph.Grothe at itdz-berlin.de Mon Aug 8 15:15:51 2005 From: Ralph.Grothe at itdz-berlin.de (Ralph.Grothe at itdz-berlin.de) Date: Mon, 8 Aug 2005 15:15:51 +0200 Subject: Passive service checks via NSCA and requir ed check command defini tion Message-ID: <6B893C5F2902D311A23F0090272854FB0575B7CF@litex001.lit.verwalt-berlin.de> > > > > What is IIRC? (you don't mean release candidate 2, do you?) > > Where would I find it? > > > > http://www.acronymfinder.com/af-query.asp?String=exact&Acronym > =iirc&Find=Find Thanks for providing the URL. My ignorance for those acronyms shows I'm no frequent visitor in forums/lists/chats/blogs etc. But the result of the finder being more than ambiguous also shows one should avoid esoteric terms when talking to unitiated ;-) > > -- > Andreas Ericsson andreas.ericsson at op5.se > OP5 AB www.op5.se > Lead Developer > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development > Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * > Testing & QA > Security * Process Improvement & Measurement * > http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Mon Aug 8 15:24:33 2005 From: pla at softflare.com (Paul L. Allen) Date: Mon, 08 Aug 2005 14:24:33 +0100 Subject: Passive service checks via NSCA and requir ed check command defini tion In-Reply-To: <6B893C5F2902D311A23F0090272854FB0575B7CE@litex001.lit.verwalt-berlin.de> References: <6B893C5F2902D311A23F0090272854FB0575B7CE@litex001.lit.verwalt-berlin.de> Message-ID: <20050808132433.7698.qmail@mullet.softflare.net> Ralph.Grothe at itdz-berlin.de writes: >> Turn off the cron job. Nagios will be blissfully unaware and >> return OK for the service even if the service is down. > > Disabling the cronjob on the remote host? > I can't imagine how the feed should work then. It doesn't work if you turn off the cron job. The point is to simulate what happens if the cron job fails, or that remote host locks up, or... In that situation you won't be getting any passive checks. So the active check kicks in and says everything is OK. That isn't what you want. > So far I could read the status line as what got written to the > FIFO above. What difference do you mean? I mean that check_dummy returns "Status is OK" and your plugin probably returns something different. So you can tell whether the passive check is working or if the active check kicked in but only if you read carefully. Which you're unlikely to do if the service is green. -- Paul Allen Softflare Support ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ralph.Grothe at itdz-berlin.de Mon Aug 8 15:38:20 2005 From: Ralph.Grothe at itdz-berlin.de (Ralph.Grothe at itdz-berlin.de) Date: Mon, 8 Aug 2005 15:38:20 +0200 Subject: Passive service checks via NSCA and requir ed check command defini tion Message-ID: <6B893C5F2902D311A23F0090272854FB0575B7D1@litex001.lit.verwalt-berlin.de> > >> Turn off the cron job. Nagios will be blissfully unaware and > >> return OK for the service even if the service is down. > > > > Disabling the cronjob on the remote host? > > I can't imagine how the feed should work then. > > It doesn't work if you turn off the cron job. The point is > to simulate > what happens if the cron job fails, or that remote host locks > up, or... > > In that situation you won't be getting any passive checks. > So the active > check kicks in and says everything is OK. That isn't what you want. Wait as far as I understood, the active check couldn't kick in because I disabled it in the service's definition (you may have missed in my thread starting posting) Or is this a too optimistic expectation from nagios? define service { use generic-service service_description samos-hpva-state host_name samos passive_checks_enabled 1 active_checks_enabled 0 check_command passive-check-pad contact_groups samosadmin } > > > So far I could read the status line as what got written to the > > FIFO above. What difference do you mean? > > I mean that check_dummy returns "Status is OK" and your > plugin probably > returns something different. So you can tell whether the > passive check > is working or if the active check kicked in but only if you > read carefully. > Which you're unlikely to do if the service is green. I understood. ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ralph.Grothe at itdz-berlin.de Mon Aug 8 15:51:44 2005 From: Ralph.Grothe at itdz-berlin.de (Ralph.Grothe at itdz-berlin.de) Date: Mon, 8 Aug 2005 15:51:44 +0200 Subject: Passive service checks via NSCA and requir ed check command defini tion Message-ID: <6B893C5F2902D311A23F0090272854FB0575B7D2@litex001.lit.verwalt-berlin.de> I missed this thought before sending my last reply. Would you suggest I enabled active checks for the service and provided the dummy_check returning state UNKNOWN in order to get these states whenever the passive checks didn't take place, for whatever reason? Well the only reason I can think off is that the remote host crashed (or the route thereto). But I covered this already by host icmp checks. Another thing strikes me if I enabled active checks. How should I space them, meaning how to size the intervals? You see, I could think of a, to me typical seeming, application of passive checks, viz. a service that probably is only checked once a day like the success of the daily backup. How would I provide an active dummy check for such a situation? Maybe my thinking is a bit far-fetched? > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of > Ralph.Grothe at itdz-berlin.de > Sent: Monday, August 08, 2005 3:38 PM > To: pla at softflare.com; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Re: Passive service checks via NSCA and > requir ed check command defini tion > > > > >> Turn off the cron job. Nagios will be blissfully unaware > and > > >> return OK for the service even if the service is down. > > > > > > Disabling the cronjob on the remote host? > > > I can't imagine how the feed should work then. > > > > It doesn't work if you turn off the cron job. The point is > > to simulate > > what happens if the cron job fails, or that remote host locks > > up, or... > > > > In that situation you won't be getting any passive checks. > > So the active > > check kicks in and says everything is OK. That isn't what you > want. > > Wait as far as I understood, the active check couldn't kick in > because I disabled it in the service's definition > (you may have missed in my thread starting posting) > Or is this a too optimistic expectation from nagios? > > > define service { > use generic-service > service_description samos-hpva-state > host_name samos > passive_checks_enabled 1 > active_checks_enabled 0 > check_command passive-check-pad > contact_groups samosadmin > } > > > > > > > > > So far I could read the status line as what got written to > the > > > FIFO above. What difference do you mean? > > > > I mean that check_dummy returns "Status is OK" and your > > plugin probably > > returns something different. So you can tell whether the > > passive check > > is working or if the active check kicked in but only if you > > read carefully. > > Which you're unlikely to do if the service is green. > > > I understood. > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development > Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * > Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ralph.Grothe at itdz-berlin.de Mon Aug 8 16:07:17 2005 From: Ralph.Grothe at itdz-berlin.de (Ralph.Grothe at itdz-berlin.de) Date: Mon, 8 Aug 2005 16:07:17 +0200 Subject: how to wrap long lines in config? Message-ID: <6B893C5F2902D311A23F0090272854FB0575B7D3@litex001.lit.verwalt-berlin.de> You are to aggree to. I too was turned off by command_line attribute lines that incorporate many arguments thus becoming far too long and defeating readabilty. I got the reply that the nagios config file parser wasn't yet ready to handle backslash escaped newline chars. (if Nagios can be run on many OSs that have a deviating notion about line breaks (e.g. MS \015\012 vs. Unix \012 this could be the reason, I guess) We should put line break issue on the developers' TODO list. Who should be given notice? > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of > prosolutions at gmx.net > Sent: Saturday, August 06, 2005 5:28 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] how to wrap long lines in config? > > > some of the config lines look real ugly. like: > > command_line /usr/bin/printf "%b" "Nagios > System\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: > $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: > $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: > $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | > /usr/bin/mail -s "** $NOTIFICATIONTYPE$ alert - > $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ > > > is it possible to wrap these ala bash to make them look sane? e.g.: > > command_line /usr/bin/printf "%b" \ > "Nagios System\n\n\ > Notification Type: $NOTIFICATIONTYPE$\n\n\ > Service: $SERVICEDESC$\n\ > Host: $HOSTALIAS$\n\ > Address: $HOSTADDRESS$\n\ > State: $SERVICESTATE$\n\n\ > Date/Time: $LONGDATETIME$\n\n\ > Additional Info:\n\n\ > $SERVICEOUTPUT$" \ > | /usr/bin/mail -s \ > "** $NOTIFICATIONTYPE$ alert - \ > $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" \ > $CONTACTEMAIL$ > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development > Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * > Testing & QA > Security * Process Improvement & Measurement * > http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Mon Aug 8 16:34:59 2005 From: pla at softflare.com (Paul L. Allen) Date: Mon, 08 Aug 2005 15:34:59 +0100 Subject: Passive service checks via NSCA and requir ed check command defini tion In-Reply-To: <6B893C5F2902D311A23F0090272854FB0575B7D2@litex001.lit.verwalt-berlin.de> References: <6B893C5F2902D311A23F0090272854FB0575B7D2@litex001.lit.verwalt-berlin.de> Message-ID: <20050808143459.24187.qmail@mullet.softflare.net> Ralph.Grothe at itdz-berlin.de writes: > I missed this thought before sending my last reply. > > Would you suggest I enabled active checks for the service No. If you do that then both active and passive checks will occur on that service. You need to disable active checks on any service that accepts passive check results. The active check is triggered if the passive check is stale. Read the documentation because there are other things you need to get right for staleness checking to happen. > and provided the dummy_check returning state UNKNOWN > in order to get these states whenever the passive checks didn't > take place, for whatever reason? Yes. > Well the only reason I can think off is that the remote host > crashed (or the route thereto). I can think of other possibilities. Crond is started late in the init sequence, after network services. If there is a problem with something prior to crond starting crond may not get started but everything you're monitoring on that server is started. > But I covered this already by host icmp checks. Which won't occur if all the network services are running but crond isn't. I've also seen machines that run out of resources able to respond to pings but nothing else. If whatever it is you're monitoring is on that same machine then you'll probably know there's a problem because its network services go down. But if it's a firewall submitting passive check results about machines behind the firewall (for scaleability or because those machines are not reachable from the outside) then the icmp checks are not necessarily going to tell you that there really is a problem. > Another thing strikes me if I enabled active checks. > > How should I space them, meaning how to size the intervals? The interval doesn't matter because you don't enable active checks. > Maybe my thinking is a bit far-fetched? I think you need to read the docs some more. Unfortunately the information you want is scattered around several different pages. -- Paul Allen Softflare Support ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Joe.Hoot at itec.suny.edu Mon Aug 8 16:34:43 2005 From: Joe.Hoot at itec.suny.edu (Joe.Hoot at itec.suny.edu) Date: Mon, 8 Aug 2005 10:34:43 -0400 Subject: servicedependencies and all services being dependent on PING Message-ID: <15787.424791097$1123511933@news.gmane.org> I'm trying to do the following: define servicedependency{ host_name admoraprod service_description PING dependent_host_name admoraprod dependent_service_description * execution_failure_criteria n notification_failure_criteria w,u,c } This complains about a loop being created by this, wheras PING is now dependent on PING. Well, basically what I want is to say that if the host goes down(can't be pinged) then don't report on any other services. Does anyone know a good way to do this? Previously I was creating a servicedependency definition for every server for every host. This was becoming a lot of work to do. Any suggestions are welcome. Thanks, Joe _____________________________ SUNY - ITEC Information Technology Exchange Center Systems Programmer/Analyst E-mail: Joe.Hoot at itec.suny.edu Office: (716)878-4644 Cell: (716)908-6292 Fax: (716)878-3485 _____________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From marc at ena.com Mon Aug 8 16:41:54 2005 From: marc at ena.com (Marc Powell) Date: Mon, 8 Aug 2005 09:41:54 -0500 Subject: how to wrap long lines in config? Message-ID: Taking this to nagios-devel would probably be a good start. I would say however that since there hasn't been much call for this feature in the past and that we're close to a release candidate for 2.0 it's unlikely that it'll be implemented right away unless you have some working code to contribute. -- Marc > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Ralph.Grothe at itdz-berlin.de > Sent: Monday, August 08, 2005 9:07 AM > To: prosolutions at gmx.net; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] how to wrap long lines in config? > > You are to aggree to. > > I too was turned off by command_line attribute lines that > incorporate many arguments thus > becoming far too long and defeating readabilty. > > I got the reply that the nagios config file parser wasn't yet > ready to handle backslash escaped newline chars. > (if Nagios can be run on many OSs that have a deviating notion > about line breaks (e.g. MS \015\012 vs. Unix \012 > this could be the reason, I guess) > > We should put line break issue on the developers' TODO list. > Who should be given notice? > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net > > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of > > prosolutions at gmx.net > > Sent: Saturday, August 06, 2005 5:28 AM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] how to wrap long lines in config? > > > > > > some of the config lines look real ugly. like: > > > > command_line /usr/bin/printf "%b" "Nagios > > System\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: > > $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: > > $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: > > $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | > > /usr/bin/mail -s "** $NOTIFICATIONTYPE$ alert - > > $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ > > > > > > is it possible to wrap these ala bash to make them look sane? > e.g.: > > > > command_line /usr/bin/printf "%b" \ > > "Nagios System\n\n\ > > Notification Type: $NOTIFICATIONTYPE$\n\n\ > > Service: $SERVICEDESC$\n\ > > Host: $HOSTALIAS$\n\ > > Address: $HOSTADDRESS$\n\ > > State: $SERVICESTATE$\n\n\ > > Date/Time: $LONGDATETIME$\n\n\ > > Additional Info:\n\n\ > > $SERVICEOUTPUT$" \ > > | /usr/bin/mail -s \ > > "** $NOTIFICATIONTYPE$ alert - \ > > $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" \ > > $CONTACTEMAIL$ > > > > > > > > ------------------------------------------------------- > > SF.Net email is Sponsored by the Better Software Conference & > EXPO > > September 19-22, 2005 * San Francisco, CA * Development > > Lifecycle Practices > > Agile & Plan-Driven Development * Managing Projects & Teams * > > Testing & QA > > Security * Process Improvement & Measurement * > > http://www.sqe.com/bsce5sf > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS > > when reporting any issue. > > ::: Messages without supporting info will risk being sent to > /dev/null > > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Mon Aug 8 16:49:58 2005 From: marc at ena.com (Marc Powell) Date: Mon, 8 Aug 2005 09:49:58 -0500 Subject: check_dns plugin failures Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Dave Augustus > Sent: Friday, August 05, 2005 5:59 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] check_dns plugin failures > > Hello fellow listers! > > I am having difficulty getting valid responses from the check_dns > plugin. Using both the 1.3 and the new 1.4 series plugins, I get a valid > response one out of every 10 times, making the whole reason for > monitoring useless. > > Any ideas? > > Specs: > nagios-plugins-1.4-1 on CentOS 4 (RHEL 4) > checking a BIND 9 server on CentOS 4 (RHEL 4) > > > --check command is : > ./check_dns -H mail.kcm.org -s 67.18.139.41 -s 67.18.139.104 If I missed a response to this already I apologize. I think you mean to be using -- ./check_dns -H mail.kcm.org -s 67.18.139.41 -a 67.18.139.104 Only 1 -s parameter is honored. -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Chester.Hosey at gianteagle.com Mon Aug 8 16:59:11 2005 From: Chester.Hosey at gianteagle.com (Chester R. Hosey) Date: Mon, 08 Aug 2005 10:59:11 -0400 Subject: servicedependencies and all services being dependent on PING In-Reply-To: References: Message-ID: <16582.2348128588$1123513428@news.gmane.org> On Mon, 2005-08-08 at 10:34 -0400, Joe.Hoot at itec.suny.edu wrote: > > I'm trying to do the following: > > define servicedependency{ > host_name admoraprod > service_description PING > dependent_host_name admoraprod > dependent_service_description * > execution_failure_criteria n > notification_failure_criteria w,u,c > } > > This complains about a loop being created by this, wheras PING is now > dependent on PING. > > Well, basically what I want is to say that if the host goes down(can't > be pinged) then don't report on any other services. Does anyone know > a good way to do this? Previously I was creating a servicedependency > definition for every server for every host. This was becoming a lot > of work to do. > > Any suggestions are welcome. > > Thanks, > Joe Curse Evolution's reply behavior. Now with cc-list goodness. Have you specified a check_command in the host definition? If one is specified, when a service check fails, Nagios will run the host check_command and suppress reporting failures of other service checks on the host. define host{ name generic-host notifications_enabled 1 event_handler_enabled 1 flap_detection_enabled 1 failure_prediction_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 0 register 0 check_command check-host-alive } define command { command_name check-host-alive command_line $USER1$/check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 1 } All of my hosts inherit ("use") generic-host. If you're not into templates, specify "check_command check-host-alive" in each host definition. Or am I missing your intent? ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ralph.Grothe at itdz-berlin.de Mon Aug 8 16:59:42 2005 From: Ralph.Grothe at itdz-berlin.de (Ralph.Grothe at itdz-berlin.de) Date: Mon, 8 Aug 2005 16:59:42 +0200 Subject: Passive service checks via NSCA and requir ed check command defini tion Message-ID: <6B893C5F2902D311A23F0090272854FB0575B7D4@litex001.lit.verwalt-berlin.de> > > I missed this thought before sending my last reply. > > > > Would you suggest I enabled active checks for the service > > No. If you do that then both active and passive checks will occur on > that service. You need to disable active checks on any service that > accepts passive check results. The active check is triggered if the > passive check is stale. Read the documentation because there > are other > things you need to get right for staleness checking to happen. You got me, I so far skipped the chapter on staleness checking because I considered it to be an advanced topic, and I'm still in my Nagios initiation/infancy. But one runs pretty soon into those topics if one wants to do some "real world" monitoring. I will revisit the docs tonight. > > > and provided the dummy_check returning state UNKNOWN > > in order to get these states whenever the passive checks didn't > > take place, for whatever reason? > > Yes. > > > Well the only reason I can think off is that the remote host > > crashed (or the route thereto). > > I can think of other possibilities. Crond is started late in the init > sequence, after network services. If there is a problem with > something > prior to crond starting crond may not get started but > everything you're > monitoring on that server is started. You're absolutely right. It was a bit short sighted by me. > > > But I covered this already by host icmp checks. > > Which won't occur if all the network services are running but > crond isn't. > I've also seen machines that run out of resources able to respond to > pings but nothing else. Beleive it or not, I myself already experienced that a server was, what they call in memory management terms, "thrashing". The application (database monster with probably ill-fit queries, indexes, params etc.) was consuming so much memory (viz. desperation swapping) that even crond demised. I surely will have to set up a monitor for things like that. > > If whatever it is you're monitoring is on that same machine > then you'll > probably know there's a problem because its network services go down. > But if it's a firewall submitting passive check results about machines > behind the firewall (for scaleability or because those > machines are not > reachable from the outside) then the icmp checks are not necessarily > going to tell you that there really is a problem. Ah firewalls, another of my monitoring intentions oponents. Even worse with ours. Firewall admins seem (for paranoia reasons?) to silently drop all ICMP packets from even ingress (no not the database ;-) traffic, what to me seems counterproductive to ICMP's original objective. > > > Another thing strikes me if I enabled active checks. > > > > How should I space them, meaning how to size the intervals? > > The interval doesn't matter because you don't enable active checks. > > > Maybe my thinking is a bit far-fetched? > > I think you need to read the docs some more. Unfortunately the > information you want is scattered around several different pages. very scattered and disjoint indeed ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Joe.Hoot at itec.suny.edu Mon Aug 8 17:20:34 2005 From: Joe.Hoot at itec.suny.edu (Joe.Hoot at itec.suny.edu) Date: Mon, 8 Aug 2005 11:20:34 -0400 Subject: servicedependencies and all services being dependent on PING In-Reply-To: <1123513151.12514.20.camel@gc1216-xp-tna1.corp.gianteagle.com.> References: <1123513151.12514.20.camel@gc1216-xp-tna1.corp.gianteagle.com.> Message-ID: <22017.7360381514$1123514623@news.gmane.org> You hit it on the nose.. I am using host templates, so I'll just leave it like that. I forgot that it checks in that fashion. _____________________________ SUNY - ITEC Information Technology Exchange Center Systems Programmer/Analyst E-mail: Joe.Hoot at itec.suny.edu Office: (716)878-4644 Cell: (716)908-6292 Fax: (716)878-3485 _____________________________ "Chester R. Hosey" 08/08/2005 10:59 AM To Joe.Hoot at itec.suny.edu cc nagios-users at lists.sourceforge.net Subject Re: [Nagios-users] servicedependencies and all services being dependent on PING On Mon, 2005-08-08 at 10:34 -0400, Joe.Hoot at itec.suny.edu wrote: > > I'm trying to do the following: > > define servicedependency{ > host_name admoraprod > service_description PING > dependent_host_name admoraprod > dependent_service_description * > execution_failure_criteria n > notification_failure_criteria w,u,c > } > > This complains about a loop being created by this, wheras PING is now > dependent on PING. > > Well, basically what I want is to say that if the host goes down(can't > be pinged) then don't report on any other services. Does anyone know > a good way to do this? Previously I was creating a servicedependency > definition for every server for every host. This was becoming a lot > of work to do. > > Any suggestions are welcome. > > Thanks, > Joe Curse Evolution's reply behavior. Now with cc-list goodness. Have you specified a check_command in the host definition? If one is specified, when a service check fails, Nagios will run the host check_command and suppress reporting failures of other service checks on the host. define host{ name generic-host notifications_enabled 1 event_handler_enabled 1 flap_detection_enabled 1 failure_prediction_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 0 register 0 check_command check-host-alive } define command { command_name check-host-alive command_line $USER1$/check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 1 } All of my hosts inherit ("use") generic-host. If you're not into templates, specify "check_command check-host-alive" in each host definition. Or am I missing your intent? ForwardSourceID:NT000183E2 -------------- next part -------------- An HTML attachment was scrubbed... URL: From pla at softflare.com Mon Aug 8 17:54:45 2005 From: pla at softflare.com (Paul L. Allen) Date: Mon, 08 Aug 2005 16:54:45 +0100 Subject: Passive service checks via NSCA and requir ed check command defini tion In-Reply-To: <6B893C5F2902D311A23F0090272854FB0575B7D4@litex001.lit.verwalt-berlin.de> References: <6B893C5F2902D311A23F0090272854FB0575B7D4@litex001.lit.verwalt-berlin.de> Message-ID: <20050808155445.8187.qmail@mullet.softflare.net> Ralph.Grothe at itdz-berlin.de writes: >> If there is a problem with something prior to crond starting crond may >> not get started but everything you're monitoring on that server is >> started. > > You're absolutely right. > It was a bit short sighted by me. Of course, you can use check_procs to monitor that crond is running. But there are probably even more exotic scenarios where crond is running but you're not getting check results from the plugin (such as an error in the plugin which means it always returns OK, to name but one). > Ah firewalls, another of my monitoring intentions oponents. That's the main reason NSCA exists - so you can install nagios on the firewall or on one of the machines behind the firewall instead of trying to persuade the firewall admin to open up various ports. Check_by_ssh is an alternative, if you can ssh onto the firewall or one of the machines behind the firewall. > Even worse with ours. Firewall admins seem (for paranoia reasons?) to > silently drop all ICMP packets from even ingress (no not the database ;-) > traffic, what to me seems counterproductive to ICMP's original objective. Dropping all ICMP may cause problems with MTU path discovery, but that's their problem. Dropping pings means you can't check the firewall or the hosts behind it to see if they're up. I believe nagios 2.x supports passive host checks but 1.x doesn't. Well, one bit of the docs says it's impossible but another bit says it's possible but too complicated to explain. > very scattered and disjoint indeed Feel free to write a "HOWTO" on setting up passive monitoring that gathers it all in one place. Even if you can't persuade Ethan to add it to the docs I imagine nagiosexchange would accept it. -- Paul Allen Softflare Support ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From admin-8HhbhUUgcXnCXR85Y8Hu3Q at public.gmane.org Mon Aug 8 18:16:09 2005 From: admin-8HhbhUUgcXnCXR85Y8Hu3Q at public.gmane.org (Server Admin) Date: Tue, 09 Aug 2005 04:16:09 +1200 Subject: Usage of check_log In-Reply-To: <6B893C5F2902D311A23F0090272854FB0575B7B4-SOfvMOfJz/6FzsVCTuPIzRRxwEygFqSQHocxwX9ka5w@public.gmane.org> References: <6B893C5F2902D311A23F0090272854FB0575B7B4@litex001.lit.verwalt-berlin.de> Message-ID: <42F78549.9060602@treenetnz.com> Ralph.Grothe-YpEHkxAi6oMehzHBf2RrnA at public.gmane.org wrote: > Hello, > > this may all be pretty obvious and self-explanatory to long time > Nagios veterans. > > But I beg your pardon, this ultra terse help screen doesn't > instruct me at all on the correct usage of this particular > plug-in. > Does it cause the plug-in authors such hardship to spare the > extra 80 chars or so for a lucid example line? > > > # libexec/check_log --help > check_log (nagios-plugins 1.4) 1.4 > 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. > > Usage: check_log -F logfile -O oldlog -q query > Usage: check_log --help > Usage: check_log --version > > Log file pattern detector plugin for Nagios > > Send email to nagios-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f at public.gmane.org if you have > questions > regarding use of this software. To submit patches or suggest > improvements, > send email to nagiosplug-devel-5NWGOfrQmneRv+LV9MX5uti2KpX7p8Fi at public.gmane.org > Please include version information with all correspondence (when > possible, > use output from the --version option of the plugin itself). > > > > For instance I'm after kernel Oops and similar utters from the > kernel that are marked on my host's OS > as vmunix in syslogd's main log, and almost always (except during > system startup) indicate a critical condition. > > e.g. > > # grep vmunix /var/adm/syslog/syslog.log|tail -1 > Apr 29 09:44:20 terra vmunix: vxfs: mesg 001: vx_nospace - > /dev/vg03/lvol1 file system full (1 block extent) > > > > Now I would want check_nrpe to run something like > > $libexec_dir/check_log -F /var/adm/syslog/syslog.log -q /vmunix/ > > > But according to the above usage synopsis this was wrong syntax > because the -O option was lacking. > But then I wouldn't know what -O was good for. > Intuitively I would assosiate it with some intended output file. > But the "oldlog" would be a bit of a misnomer. > Or does it relate to also parsing some older, probably already > rotated logfile. > > You see, this is all highly speculative and leaves ample space > for wild guesses. > RTFM. It is in there somewhere. I found it after the same problem. check_log is a special case in plugins being a stateful check and -O is part of the solution. You see in order to check the log ofr updates it needs to keep a record of what the log looked like last time it checked. -O indicates the filename each instance of check_log needs to keep this record. There are two catches here: - first, you need a unique -O and thus command for every log being checked. - second, two consecutive checks will provide different results. ie. the first may find entries for a WARNING/CRITICAL, further checks after will find none and report OKAY until a new matching log entry is added. AYJ ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagiosplug-help mailing list Nagiosplug-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f at public.gmane.org https://lists.sourceforge.net/lists/listinfo/nagiosplug-help ::: Please include plugins version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dixiep at library.ucsd.edu Mon Aug 8 19:51:48 2005 From: dixiep at library.ucsd.edu (Dixie Peterson) Date: Mon, 08 Aug 2005 10:51:48 -0700 Subject: Running Nagios under HTTPS In-Reply-To: <20050804154206.C15E013B42@sc8-sf-spam2.sourceforge.net> References: <20050804154206.C15E013B42@sc8-sf-spam2.sourceforge.net> Message-ID: <1123523509.21217.14.camel@tinman.ucsd.edu> Hello! I have a pretty decent Nagios 1.2 system up and running. However, my manager would like to know if Nagios can run under https. Can it? If so, how would I go about setting it up? Thanks! Dixie ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From eford at nexusenergy.com Mon Aug 8 19:58:01 2005 From: eford at nexusenergy.com (Edward Ford) Date: Mon, 8 Aug 2005 13:58:01 -0400 Subject: Running Nagios under HTTPS Message-ID: If you get the answer to this watch out for DES3. I can't reboot my Nagios without logging into the box, it will not come up all the way without a passphrase. Don't do the DES3.. Eddie -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Dixie Peterson Sent: Monday, August 08, 2005 1:52 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Running Nagios under HTTPS Hello! I have a pretty decent Nagios 1.2 system up and running. However, my manager would like to know if Nagios can run under https. Can it? If so, how would I go about setting it up? Thanks! Dixie ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Mon Aug 8 20:01:36 2005 From: marc at ena.com (Marc Powell) Date: Mon, 8 Aug 2005 13:01:36 -0500 Subject: Running Nagios under HTTPS Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Dixie Peterson > Sent: Monday, August 08, 2005 12:52 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Running Nagios under HTTPS > > Hello! > > I have a pretty decent Nagios 1.2 system up and running. However, my > manager would like to know if Nagios can run under https. Can it? If > so, how would I go about setting it up? There's nothing special about the Nagios CGI's that would prevent them from running under a standard HTTPS [v]host. HTTPS simply defines that the communication from the client to the server is encrypted. I'm sure that there is plenty of documentation online on how to set up an HTTPS host for whatever your web server is. The general steps are to create a signed certificate either through a vendor like verisign/thawte or sign one yourself, Listen on :443, turn SSLEngine on and set the rest of the required parameters. If you're using apache this site might be useful - http://slacksite.com/apache/certificate.html -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Mon Aug 8 20:06:06 2005 From: marc at ena.com (Marc Powell) Date: Mon, 8 Aug 2005 13:06:06 -0500 Subject: Running Nagios under HTTPS Message-ID: http://slacksite.com/apache/certificate.html "One unfortunate side-effect of the pass-phrased private key is that Apache will ask for the pass-phrase each time the web server is started. Obviously this is not necessarily convenient as someone will not always be around to type in the pass-phrase, such as after a reboot or crash. mod_ssl includes the ability to use an external program in place of the built-in pass-phrase dialog, however, this is not necessarily the most secure option either. It is possible to remove the Triple-DES encryption from the key, thereby no longer needing to type in a pass-phrase. If the private key is no longer encrypted, it is critical that this file only be readable by the root user! If your system is ever compromised and a third party obtains your unencrypted private key, the corresponding certificate will need to be revoked. With that being said, use the following command to remove the pass-phrase from the key: $ openssl rsa -in server.key -out server.pem " You then use server.pem for SSLCertificateKeyFile. Works like a charm for me. -- Marc > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Edward Ford > Sent: Monday, August 08, 2005 12:58 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Running Nagios under HTTPS > > If you get the answer to this watch out for DES3. I can't reboot my Nagios > without logging into the box, it will not come up all the way without a > passphrase. Don't do the DES3.. > > Eddie > > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Dixie > Peterson > Sent: Monday, August 08, 2005 1:52 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Running Nagios under HTTPS > > Hello! > > I have a pretty decent Nagios 1.2 system up and running. However, my > manager would like to know if Nagios can run under https. Can it? If > so, how would I go about setting it up? > > Thanks! > > Dixie > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lanning at lanning.cc Mon Aug 8 20:10:30 2005 From: lanning at lanning.cc (Robert Hajime Lanning) Date: Mon, 8 Aug 2005 11:10:30 -0700 (PDT) Subject: Running Nagios under HTTPS In-Reply-To: References: Message-ID: <41878.192.168.128.67.1123524630.squirrel@ssl.monsoonwind.com> > If you get the answer to this watch out for DES3. I can't reboot my > Nagios without logging into the box, it will not come up all the way > without a passphrase. Don't do the DES3.. This is not a DES3 (actually called 3DES) issue. You need to remove the passphrase from the private key. If you are using Apache with OpenSSL, then this can easily be done with the "openssl" utility. Just change the passphrase. When it asks you for the new passphrase, just hit Enter. This is the way most people do it, becuase they need the services to start on boot. -- And, did Guloka think the Ulus were too ugly to save? -Centauri ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From getbacktome3 at hotmail.com Mon Aug 8 20:31:38 2005 From: getbacktome3 at hotmail.com (HP Geeza) Date: Mon, 08 Aug 2005 19:31:38 +0100 Subject: cmd/bat file help plz...running it via check_nrpe In-Reply-To: References: Message-ID: Can somebody help me write a cmd/bat file please.... >From: "HP Geeza" >To: Ludo.Bosmans at aureusim.be, nagios-users at lists.sourceforge.net >Subject: RE: [Nagios-users] RE: run a script based on event?? >Date: Mon, 08 Aug 2005 10:37:41 +0100 > >All, > >I have managed to install nrpe on the windows machine and nagios box. I >can run a command such as: > >./check_nrpe -H -c check_cmd > >which returns "hello from cmd" to my nagios box. The check_cmd command >looks like: > >command[check_cmd]=C:\source\nrpe\NoSSLbin\bin\test.cmd > >the contents of the test.cmd file looks like: > >@echo off >echo hallo from cmd >exit 1 > >This proves that nrpe is working. However i am a little stuck when it >comes to executing the reboot_server command which in turn calls a >shutdown.cmd file which will reboot my remote windows server. I would be >greatfully for any comments on what i am doing wrong and how i can solve >this problem: > >command[reboot_server]=C:\source\psshutdown\shutdown.cmd > >the contents of the shutdown.cmd file is: > >C:\WINDOWS\system32\shutdown.exe -r >echo system shutting down from cmd >exit 1 > >the command im running from my nagios box is: > >./check_nrpe -H 10.30.128.254 -c reboot_server > >BUT i then get a message saying: > >: The system could not find the >environment option that was entered.(203) > >However when i double click on the shutdown.cmd file on my remote windows >machine the machine reboots itself.... > > >>From: "Ludo Bosmans" >>To: "HP Geeza" >>, >>Subject: RE: [Nagios-users] RE: run a script based on event?? >>Date: Fri, 5 Aug 2005 13:19:14 +0200 >> >>Geeza, >>Yes of course this is possible. >> >>1) On your winserver install the nrpe service as documented in the >>README or INSTALL guide and adapt nrpe.cfg as needed. >>So in your nrpe.cfg file (on the win server) there should be a config >>entry: >>command[reboot_server]=c\reboot.bat >> >>2) Make a bat file that contain the shutdown.exe command with the >>correct parameters. >> >>3) In your checkcommands.cfg file create a command(this is an example): >> >># reboot_win_server >>define command{ >> command_name reboot_win_server >> command line $USER1$/reboot_win_server.sh $HOSTNAME$ >>$HOSTADDRESS$ >>} >> >>4) In your plugin directory make a small script(reboot_win_server.sh): >>This example is just the minimum >> >>#bin/sh >>HOST_NAME=$1 >>IP_ADDRESS=$2 >>/usr/lib/nagios/plugins/check_nrpe -H $HOST_ADDRESS -t 5 -c >>reboot_server >> >>5) Of course there are alternatives, it is possible to define directly >>in the checkcommands.cfg the check_nrpe instead of calling a script: >> >># reboot_win_server >>define command{ >> command_name reboot_win_server >> command line $USER1$/check_nrpe -H $HOSTADDRESS$ -t 5 -c >>reboot_server >>} >> >>6) To test, at least install the win site, try a manual execution of the >>check_nrpe ... reboot >> >>7) Finally I didn't really test this explanation, so I hope that I >>didn't have make mistakes in my explanation. >>Kind regards, >> >>Ludo >> >> >>-----Original Message----- >>From: HP Geeza [mailto:getbacktome3 at hotmail.com] >>Sent: vrijdag 5 augustus 2005 12:43 >>To: Ludo Bosmans; nagios-users at lists.sourceforge.net >>Subject: RE: [Nagios-users] RE: run a script based on event?? >> >>Ok im a little confussed now...is the following possible via nagios? >> >>Monitor a temp probe in lab (this i know is possible via snmp)...if the >>temp >>value goes critical then run check_nrpe (through an event >>handler)...which >>will then run a script on the windows machine? >> >>--->>> can check_nrpe be run as an event handler once the temp value is >>critical? >> >>I can shutdown the windows machine fine as i have already got the >>commands >>to do that. I just need a way to call that script/bat flile when the >>temp >>value goes critical. >> >> >> >From: "Ludo Bosmans" >> >To: "HP Geeza" >> >, >> >Subject: RE: [Nagios-users] RE: run a script based on event?? >> >Date: Fri, 5 Aug 2005 09:25:33 +0200 >> > >> >Hi, >> > >> >Have a look to following link, it is quiet easy to make a windows bat >> >file with the correct options to reboot. >> >http://windows.about.com/od/schedulingandbatchjobs/l/aa012400a.htm >> > >> >Install nrpe_nt on the windows server and and use check_nrpe to execute >> >the reboot bat file on the win server when it is necessary, f.e. with >>an >> >eventhandler script. >> > >> >Kind regards, >> > >> >ludo >> > >> > >> >-----Original Message----- >> >From: nagios-users-admin at lists.sourceforge.net >> >[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of HP Geeza >> >Sent: donderdag 4 augustus 2005 17:17 >> >To: nagios-users at lists.sourceforge.net >> >Subject: RE: [Nagios-users] RE: run a script based on event?? >> > >> >I know that this isn't the best place to ask this sort of >>question...but >> >id >> >be greatfull for any advice/help!!! >> > >> >I need a way to shutdown remote windows servers through an event >>handler >> >in >> >nagios...i dont quiet know how to write a script (whether it be perl or >> >bash) which will allow me to do this. the way i understand it is there >> >currently isnt a way to run a windwos command in linux. >> > >> >I can quiet easily run the shutdown command from a windows box to >> >shutdown a >> >remote windows machine...but becuase nagios runs in linux i need a way >> >to >> >shutdown windows machines from linux. >> > >> >Any ideas???? >> > >> > >From: "Marc Powell" >> > >To: >> > >Subject: [Nagios-users] RE: run a script based on event?? >> > >Date: Wed, 3 Aug 2005 10:08:47 -0500 >> > > >> > > >> > > >> > > > -----Original Message----- >> > > > From: HP Geeza [mailto:getbacktome3 at hotmail.com] >> > > > Sent: Wednesday, August 03, 2005 10:01 AM >> > > > To: Marc Powell; nagios-users at lists.sourceforge.net >> > > > Subject: run a script based on event?? >> > > > >> > > > HI >> > > > >> > > > I was wondering if this is possible and whether anybody has tried >> >it? >> > >- I >> > > > am >> > > > monitoring the temperature probe in our lab via snmp...and as a >> >result >> > >i >> > > > was >> > > > wondering whether it is possible in nagios to run a script of some >> > >sort >> > > > (which will probably contain some sort of shutdown command) when >>the >> > > > temperature triggers an event i.e when it goes above a certain >> > >threshold. >> > > > >> > > > I would like to do this because if the AC busts and our lab starts >> >to >> > > > overheat then i would like nagios to run a script which will turn >> >off >> > >some >> > > > of the machines? >> > > >> > >Oddly enough they're called event handlers. >> > > >> > >http://nagios.sourceforge.net/docs/1_0/eventhandlers.html >> > > >> > >-- >> > >Marc >> > > >> > >p.s. Please don't e-mail me directly. Even though I participate a lot >> > >here, I'm not dedicated Nagios support ;) >> > > >> > > >> > > >> > > >> > >------------------------------------------------------- >> > >SF.Net email is sponsored by: Discover Easy Linux Migration >>Strategies >> > >from IBM. Find simple to follow Roadmaps, straightforward articles, >> > >informative Webcasts and more! Get everything you need to get up to >> > >speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click >> > >_______________________________________________ >> > >Nagios-users mailing list >> > >Nagios-users at lists.sourceforge.net >> > >https://lists.sourceforge.net/lists/listinfo/nagios-users >> > >::: Please include Nagios version, plugin version (-v) and OS when >> > >reporting any issue. >> > >::: Messages without supporting info will risk being sent to >>/dev/null >> > >> >_________________________________________________________________ >> >Want to block unwanted pop-ups? Download the free MSN Toolbar now! >> >http://toolbar.msn.co.uk/ >> > >> > >> > >> >------------------------------------------------------- >> >SF.Net email is Sponsored by the Better Software Conference & EXPO >> >September 19-22, 2005 * San Francisco, CA * Development Lifecycle >> >Practices >> >Agile & Plan-Driven Development * Managing Projects & Teams * Testing & >> >QA >> >Security * Process Improvement & Measurement * >> >http://www.sqe.com/bsce5sf >> >_______________________________________________ >> >Nagios-users mailing list >> >Nagios-users at lists.sourceforge.net >> >https://lists.sourceforge.net/lists/listinfo/nagios-users >> >::: Please include Nagios version, plugin version (-v) and OS when >> >reporting any issue. >> >::: Messages without supporting info will risk being sent to /dev/null >> > >> > >> >------------------------------------------------------- >> >SF.Net email is Sponsored by the Better Software Conference & EXPO >> >September 19-22, 2005 * San Francisco, CA * Development Lifecycle >>Practices >> >Agile & Plan-Driven Development * Managing Projects & Teams * Testing & >>QA >> >Security * Process Improvement & Measurement * >>http://www.sqe.com/bsce5sf >> >_______________________________________________ >> >Nagios-users mailing list >> >Nagios-users at lists.sourceforge.net >> >https://lists.sourceforge.net/lists/listinfo/nagios-users >> >::: Please include Nagios version, plugin version (-v) and OS when >> >reporting any issue. >> >::: Messages without supporting info will risk being sent to /dev/null >> >>_________________________________________________________________ >>Be the first to hear what's new at MSN - sign up to our free >>newsletters! >>http://www.msn.co.uk/newsletters >> > >_________________________________________________________________ >It's fast, it's easy and it's free. Get MSN Messenger 7.0 today! >http://messenger.msn.co.uk > > > >------------------------------------------------------- >SF.Net email is Sponsored by the Better Software Conference & EXPO >September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices >Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA >Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS when >reporting any issue. ::: Messages without supporting info will risk being >sent to /dev/null _________________________________________________________________ Use MSN Messenger to send music and pics to your friends http://messenger.msn.co.uk ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From chris at aidworld.org Mon Aug 8 20:41:50 2005 From: chris at aidworld.org (Chris Wilson) Date: Mon, 08 Aug 2005 19:41:50 +0100 Subject: cmd/bat file help plz...running it via check_nrpe In-Reply-To: References: Message-ID: <1123526510.964.52.camel@localhost> Hi, > Can somebody help me write a cmd/bat file please.... I assume that you have already written it, and are still getting this error: > >./check_nrpe -H 10.30.128.254 -c reboot_server > > > >BUT i then get a message saying: > > > >: The system could not find the > >environment option that was entered.(203) This sounds like the Windows user that NRPE runs as does not have permissions to shut down the machine, or is not set up correctly. I've never used NRPE on Windows, but I assume it runs as a system service. If not, this advice won't help you. >From the services control panel, go to properties for the NRPE service. Find the option for "run as user". Try changing it to either LocalSystem or an account in the Administrators group. (if one doesn't work, try the other, they are not the same). If that doesn't help, you might want to try an alternative shutdown command, like the one that comes with Cygwin. Cheers, Chris. -- (aidworld) chris wilson | chief engineer (chris at aidworld.org) ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tr_rajeshkanna at yahoo.com Tue Aug 9 07:20:26 2005 From: tr_rajeshkanna at yahoo.com (Rajesh kanna) Date: Mon, 8 Aug 2005 22:20:26 -0700 (PDT) Subject: check_by_ssh + cpu usage + Threads + paging etc. Message-ID: <20050809052026.53726.qmail@web51703.mail.yahoo.com> Hi, I have installed nagios 2.x version of nagios on a linux box. I used NSCLIENT plugin to get CPU, Disk I/O, Paging etc. I am having problem in implementing the same with check_by_ssh ( i checked for ssh public key from comand line it works for check_disk plugin). on unix/linux machnies. Can some one help in this regard. thanks, Rajesh > > > > > > ____________________________________________________ > Start your day with Yahoo! - make it your home page > http://www.yahoo.com/r/hs > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Tue Aug 9 14:37:48 2005 From: pla at softflare.com (Paul L. Allen) Date: Tue, 09 Aug 2005 13:37:48 +0100 Subject: Passive service checks via NSCA and requir ed check command defini tion In-Reply-To: <6B893C5F2902D311A23F0090272854FB0575B7D5@litex001.lit.verwalt-berlin.de> References: <6B893C5F2902D311A23F0090272854FB0575B7D5@litex001.lit.verwalt-berlin.de> Message-ID: <20050809123748.26612.qmail@mullet.softflare.net> Ralph.Grothe at itdz-berlin.de writes: > Though it might not be perfect and a catch-all, > I think running check_procs on important daemons is yet better > than nothing. I use it to check crond is running. And on some boxes to check that hylafax is running and that the number of faxgetty processes matches the number of fax ports on the box. These aren't perfect tests because the processes could be present but not doing what they should. But it's better than no test at all. > As a Nagios newbie I haven't yet thought about writing > supplementary documentation. > But I will be doing so for my colleagues at my working place. > Maybe if it is of any use to them I later can submit it to Nagios > Exchange. That sounds good to me. The existing docs do give the information you need but for your particular scenario you have to read and understand a lot of pages. A simple HOWTO might be useful to a lot of people in a similar situation to you. > I discovered what you were mentioning last time as staleness > checking, i.e. freshness checking. Stale = !fresh. :) > Now I think I'm set and done with this service. > Or do you see any still controversial settings? I see the sort of things I'd expect. Since I'm still on the 1.x release I can't say for sure that it's correct, but it looks a lot better than it did. :) -- Paul Allen Softflare Support ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ralph.Grothe at itdz-berlin.de Tue Aug 9 14:54:09 2005 From: Ralph.Grothe at itdz-berlin.de (Ralph.Grothe at itdz-berlin.de) Date: Tue, 9 Aug 2005 14:54:09 +0200 Subject: check_log deficiencies Message-ID: <6B893C5F2902D311A23F0090272854FB0575B7DB@litex001.lit.verwalt-berlin.de> Hello, I'm not sure whether this one should not better be posted to Nagiosplug-Help. But then I'd also want to avoid x-posts. I already arose scorn because of unaware misdemeanor by parallel postings to two Nagios mailing lists. I also know that I could overcome the spelled out deficiencies by writing my own plug-in. But I would like to avoid reinvention of the wheel someone else already might have invented. First a minor flaw which to correct only needs to change an option to tail (just wanted to notify the plug-in developer). I intend to run the plug-in on HP-UX 11.00 whose tail command does lack the neat GNUish long options. So this is what happens. $ libexec/check_log -F /var/adm/syslog/syslog.log -O /tmp/syslog.log_vmunix_msg.log -q vmunix Usage: tail [-f] [-b number] [file] tail [-f] [-c number] [file] tail [-f] [-n number] [file] Obsolescent usage: tail [+-[n][l|b|c]] [-f] [file] Log check ok - 0 pattern matches found Here's the wrong call of tail made visible $ PS4=\$LINENO\ \> sh -x /usr/local/nagios/libexec/check_log -F /var/adm/syslog/syslog.log -O /tmp/syslog.log_vmunix_msg.log -q vmunix 2>&1|tail -15 < 204 >204 >/bin/tail --lines=1 204 >/bin/grep vmunix /tmp/saza07703 Usage: tail [-f] [-b number] [file] tail [-f] [-c number] [file] tail [-f] [-n number] [file] Obsolescent usage: tail [+-[n][l|b|c]] [-f] [file] lastentry= 206 >/bin/rm -f /tmp/saza07703 207 >/bin/cat /var/adm/syslog/syslog.log 207 >1> /tmp/syslog.log_vmunix_msg.log 209 >[ 0 = 0 ] 210 >/usr/bin/printf Log check ok - 0 pattern matches found\n Log check ok - 0 pattern matches found 211 >exitstatus=0 217 >exit 0 As said, to make HP-UX happy all it requires is to change --line into -n $ vi +204 /usr/local/nagios/libexec/check_log $ sed -n 204p /usr/local/nagios/libexec/check_log lastentry=`$GREP "$query" $tempdiff | $TAIL -n 1` $ /usr/local/nagios/libexec/check_log -F /var/adm/syslog/syslog.log -O /tmp/syslog.log_vmunix_msg.log_vmunix_msg.log -q vmunix Log check ok - 0 pattern matches found $ logger -t vmunix -p kern.notice BlahBlah $ /usr/local/nagios/libexec/check_log -F /var/adm/syslog/syslog.log -O /tmp/syslog.log_vmunix_msg.log_vmunix_msg.log -q vmunix (1) < Aug 9 14:39:08 terra vmunix: BlahBlah $ echo $? 2 Ok, now it's working as expected. However, what I don't like about check_log is that it dumps a whole working copy of the sysd log for diff-ing. $ ll /var/adm/syslog/syslog.log /tmp/syslog.log_vmunix_msg.log -rw-r--r-- 1 saz users 214069 Aug 9 14:39 /tmp/syslog.log_vmunix_msg.log -rw-r--r-- 1 root root 214069 Aug 9 14:39 /var/adm/syslog/syslog.log Well, on this test box that doesn't really matter. But we do have a few servers that have an uptime over a year. And some of them don't run the nifty logrotate tool you are used to from Linux. One of HP-UX's RC script would rotate syslog.log on each system reboot per default. My concern is that I wouldn't want to waste the space in /tmp (or whatever other filesystem) for a mere working copy of a logfile under inspection by check_log. So I wonder if someone already has come up with another solution, possibly by simply storing checksum digests or similar? Regards Ralph ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From andy.kriger at gmail.com Tue Aug 9 20:46:50 2005 From: andy.kriger at gmail.com (Andy Kriger) Date: Tue, 9 Aug 2005 14:46:50 -0400 Subject: problem setting up contact Message-ID: <207fa8f05080911465abf5856@mail.gmail.com> I'm trying to get Nagios 2.0b4 running on Apache 1.3.33 under Solaris 9.x but nagios -v nagios.cfg is failing on my contact definition. >From nagios.log... [1123612753] Error: Contact name, alias, or email address and pager number are NULL [1123612753] Error: Could not register contact (config file '/usr/local/nagios/etc/minimal.cfg', starting on line 60) This is my single contact... define contact{ contact_name nagios alias Nagios Admin host_notification_period 24x7 service_notification_period 24x7 host_notification_options n service_notification_options n } Since I just want to get things running for now, I have notifications turned off and no email (which is not a required field according to the docs). However, this fails. When I add an email entry, I get a segfault in add_contact (so the verification still fails). We don't have sendmail or any mailserver running on the box (haven't needed one up to now) so that could be causing the segfault (though I don't know if/why nagios would check the email). I'm new to Nagios and just want to get this running. Can anyone point me in the right direction? -a ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gpadilla at cbct.com Tue Aug 9 20:57:12 2005 From: gpadilla at cbct.com (Guillermo Padilla) Date: Tue, 9 Aug 2005 14:57:12 -0400 Subject: weird cgi problem Message-ID: <097D3590441CB345A836C4B3F7F813DC65E905@mailsrv.cbct.com> Nagios has been working great for the last past months (v 1.2) Now when I try to access the site I get the the user/pass window over and over again. I disabled authentication to see if I could access without uid/pass and I get the following error: Error: Could not open CGI config file '/usr/local/nagios/etc/cgi.cfg' for reading! Nagios is running fine and doing its checks but I just cant access the webpage, I'm sure its something to do with apache, I'm able restart nagios without a problem and in /var/rw the nagios.cmd file has the correct ownership uid nagios gid nagiocmd. Any ideas on what this could be? Thx -------------- next part -------------- An HTML attachment was scrubbed... URL: From Chester.Hosey at gianteagle.com Tue Aug 9 20:58:03 2005 From: Chester.Hosey at gianteagle.com (Hosey, Chester) Date: Tue, 9 Aug 2005 14:58:03 -0400 Subject: weird cgi problem Message-ID: <73BB3A1D374DA64F98E8EA9C37FB3F5F017A31B3@exchmail1.corp.gianteagle.com> Have you checked your Apache logs? -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Guillermo Padilla Sent: Tuesday, August 09, 2005 2:57 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] weird cgi problem Nagios has been working great for the last past months (v 1.2) Now when I try to access the site I get the the user/pass window over and over again. I disabled authentication to see if I could access without uid/pass and I get the following error: Error: Could not open CGI config file '/usr/local/nagios/etc/cgi.cfg' for reading! Nagios is running fine and doing its checks but I just cant access the webpage, I'm sure its something to do with apache, I'm able restart nagios without a problem and in /var/rw the nagios.cmd file has the correct ownership uid nagios gid nagiocmd. Any ideas on what this could be? Thx -------------- next part -------------- An HTML attachment was scrubbed... URL: From marc at ena.com Tue Aug 9 21:02:58 2005 From: marc at ena.com (Marc Powell) Date: Tue, 9 Aug 2005 14:02:58 -0500 Subject: problem setting up contact Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Andy Kriger > Sent: Tuesday, August 09, 2005 1:47 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] problem setting up contact > > I'm trying to get Nagios 2.0b4 running on Apache 1.3.33 under Solaris > 9.x but nagios -v nagios.cfg is failing on my contact definition. > > From nagios.log... > [1123612753] Error: Contact name, alias, or email address and pager > number are NULL > [1123612753] Error: Could not register contact (config file > '/usr/local/nagios/etc/minimal.cfg', starting on line 60) > > This is my single contact... > define contact{ > contact_name nagios > alias Nagios Admin > host_notification_period 24x7 > service_notification_period 24x7 > host_notification_options n > service_notification_options n > } > > Since I just want to get things running for now, I have notifications > turned off and no email (which is not a required field according to > the docs). However, this fails. When I add an email entry, I get a While not required in the strictest sense that every contact must have an email definition and a pager definition, I believe that either email _or_ pager must be defined (otherwise the contact isn't really a contact ;) ). > segfault in add_contact (so the verification still fails). We don't > have sendmail or any mailserver running on the box (haven't needed one > up to now) so that could be causing the segfault (though I don't know > if/why nagios would check the email). It only parses the config and doesn't try to verify that your mail program actually works. You should probably post the contact definition after you add the email definition and the output leading up to the segfault and/or additional information you might have about it (truss output at the end, etc). Sounds like a potential bug. > > I'm new to Nagios and just want to get this running. Can anyone point > me in the right direction? For your testing, I'd recommend defining an email address and just setting your *_notification_periods to 'none' which should be a pre-defined timeperiod. -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From formy-duval_alan at bah.com Tue Aug 9 21:04:27 2005 From: formy-duval_alan at bah.com (Formy-Duval Alan) Date: Tue, 9 Aug 2005 15:04:27 -0400 Subject: Transferring Data between installs Message-ID: <70F40B6058284248BEAB168BF640CC59A2F939@MCLNEXVS03.resource.ds.bah.com> All, I want to transfer all logs and data from an older nagios install to a newer install on another server. What do I need to do? Can I just copy the contents of the nagios/var directory? Thanks Alan Formy-Duval, CISSP Booz | Allen | Hamilton (202)508-6827 ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gpadilla at cbct.com Tue Aug 9 21:10:01 2005 From: gpadilla at cbct.com (Guillermo Padilla) Date: Tue, 9 Aug 2005 15:10:01 -0400 Subject: weird cgi problem Message-ID: <097D3590441CB345A836C4B3F7F813DC65E908@mailsrv.cbct.com> Yep.. and the logs show everything as being normal, below is part of my access log - - [09/Aug/2005:15:04:12 -0400] "GET /nagios/cgi-bin/status.cgi?hostgroup=all&style=hostdetail HTTP/1.1" 200 1237 - - [09/Aug/2005:15:04:24 -0400] "GET /nagios/cgi-bin/status.cgi?host=all HTTP/1.1" 200 1237 - - [09/Aug/2005:15:04:54 -0400] "GET /nagios/cgi-bin/status.cgi?hostgroup=all HTTP/1.1" 200 1237 - - [09/Aug/2005:15:04:55 -0400] "GET /nagios/cgi-bin/status.cgi?host=all HTTP/1.1" 200 1237 - - [09/Aug/2005:15:04:55 -0400] "GET /nagios/cgi-bin/status.cgi?host=all HTTP/1.1" 200 1237 - - [09/Aug/2005:15:04:56 -0400] "GET /nagios/cgi-bin/tac.cgi HTTP/1.1" 200 1315 And this is part of my error log when i tried going via authentication which I disabled Permission denied: Could not open password file: /usr/local/nagios/etc/htpasswd.users, referer: Htpasswd.users exists in that dir with chmod 777 on the file itself. ________________________________ From: Hosey, Chester [mailto:Chester.Hosey at gianteagle.com] Sent: Tuesday, August 09, 2005 2:58 PM To: Guillermo Padilla; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] weird cgi problem Have you checked your Apache logs? -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Guillermo Padilla Sent: Tuesday, August 09, 2005 2:57 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] weird cgi problem Nagios has been working great for the last past months (v 1.2) Now when I try to access the site I get the the user/pass window over and over again. I disabled authentication to see if I could access without uid/pass and I get the following error: Error: Could not open CGI config file '/usr/local/nagios/etc/cgi.cfg' for reading! Nagios is running fine and doing its checks but I just cant access the webpage, I'm sure its something to do with apache, I'm able restart nagios without a problem and in /var/rw the nagios.cmd file has the correct ownership uid nagios gid nagiocmd. Any ideas on what this could be? Thx -------------- next part -------------- An HTML attachment was scrubbed... URL: From ae at op5.se Tue Aug 9 21:17:17 2005 From: ae at op5.se (Andreas Ericsson) Date: Tue, 09 Aug 2005 21:17:17 +0200 Subject: weird cgi problem In-Reply-To: <097D3590441CB345A836C4B3F7F813DC65E908@mailsrv.cbct.com> References: <097D3590441CB345A836C4B3F7F813DC65E908@mailsrv.cbct.com> Message-ID: <42F9013D.7060601@op5.se> Guillermo Padilla wrote: > Yep.. and the logs show everything as being normal, below is part of my > access log > su - to the apache user and fix permissions until you can successfully cat your cgi.cfg. If you installed it in the default directory (or the directory where you told it to be during compilation), it will work when you manage to do that. > > > - - [09/Aug/2005:15:04:12 -0400] "GET > /nagios/cgi-bin/status.cgi?hostgroup=all&style=hostdetail HTTP/1.1" 200 > 1237 > > - - [09/Aug/2005:15:04:24 -0400] "GET > /nagios/cgi-bin/status.cgi?host=all HTTP/1.1" 200 1237 > > - - [09/Aug/2005:15:04:54 -0400] "GET > /nagios/cgi-bin/status.cgi?hostgroup=all HTTP/1.1" 200 1237 > > - - [09/Aug/2005:15:04:55 -0400] "GET > /nagios/cgi-bin/status.cgi?host=all HTTP/1.1" 200 1237 > > - - [09/Aug/2005:15:04:55 -0400] "GET > /nagios/cgi-bin/status.cgi?host=all HTTP/1.1" 200 1237 > > - - [09/Aug/2005:15:04:56 -0400] "GET /nagios/cgi-bin/tac.cgi HTTP/1.1" > 200 1315 > > > > And this is part of my error log when i tried going via authentication > which I disabled > > > > Permission denied: Could not open password file: > /usr/local/nagios/etc/htpasswd.users, referer: > > > > Htpasswd.users exists in that dir with chmod 777 on the file itself. > > > > > > > > > > ________________________________ > > From: Hosey, Chester [mailto:Chester.Hosey at gianteagle.com] > Sent: Tuesday, August 09, 2005 2:58 PM > To: Guillermo Padilla; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] weird cgi problem > > > > Have you checked your Apache logs? > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Guillermo > Padilla > Sent: Tuesday, August 09, 2005 2:57 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] weird cgi problem > > Nagios has been working great for the last past months (v 1.2) > > > > Now when I try to access the site I get the the user/pass window > over and over again. I disabled authentication to see if I could access > without uid/pass and I get the following error: > > > > Error: Could not open CGI config file > '/usr/local/nagios/etc/cgi.cfg' for reading! > > Nagios is running fine and doing its checks but I just cant > access the webpage, I'm sure its something to do with apache, I'm able > restart nagios without a problem and in /var/rw the nagios.cmd file has > the correct ownership uid nagios gid nagiocmd. > > > > Any ideas on what this could be? > > > > Thx > > > > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Tue Aug 9 21:18:45 2005 From: marc at ena.com (Marc Powell) Date: Tue, 9 Aug 2005 14:18:45 -0500 Subject: Transferring Data between installs Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Formy-Duval Alan > Sent: Tuesday, August 09, 2005 2:04 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Transferring Data between installs > > All, > > I want to transfer all logs and data from an older nagios install to a > newer install on another server. What do I need to do? Can I just copy > the contents of the nagios/var directory? Well, as long as your config's are the same and your log rotation period is the same, all you really need for historical data is var/nagios.log (log_file in nagios.cfg) and var/archives/* (log_archive_path in nagios.cfg). If you have state retention enabled you might want to also copy over your state_retention_file (probably var/status.sav). -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Tue Aug 9 21:21:11 2005 From: marc at ena.com (Marc Powell) Date: Tue, 9 Aug 2005 14:21:11 -0500 Subject: weird cgi problem Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Guillermo Padilla > Sent: Tuesday, August 09, 2005 2:10 PM > To: Hosey, Chester; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] weird cgi problem > > Yep.. and the logs show everything as being normal, below is part of my > access log > [snip] > > And this is part of my error log when i tried going via authentication > which I disabled > > > > Permission denied: Could not open password file: > /usr/local/nagios/etc/htpasswd.users, referer: > > > > Htpasswd.users exists in that dir with chmod 777 on the file itself. Is the directory readable by the web server (i.e. +rx)? It's clearly a permissions issue, not a nagios issue. What OS is this running on? Could it be an SELinux issue? -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kevin at mica.net Tue Aug 9 21:25:21 2005 From: kevin at mica.net (Kevin Hanser) Date: Tue, 09 Aug 2005 15:25:21 -0400 Subject: No service notifications Message-ID: <1123615521.7076.51.camel@timmy.hq.mica.net> Hello, I have searched the list and found similar problems to what I'm experiencing, but no solution yet.... I have recently installed Nagios v2.0b4 (this is my first Nagios install BTW) and have it configured to monitor some hosts, and services on those hosts. Everything that I see in the configuration seems to indicate that service notifications are enabled, as does the GUI interface. However, I never get service notifications. I set up a bogus host with a ping service to ping an IP address that I know isn't in use in our network. I get a host notification that the host itself is down, but I receive no notification on the ping service... In addition, I have other hosts (routers) that have interfaces down, but don't receive notification from that either. Here's how my config looks for the bogus service I set up: nagios.cfg has enable_notifications=1 I'm using the generic-service template from minimal.cfg, but have put it into servers.cfg: (I'm not using minimal.cfg, I just took some parts from it) # Generic service definition template - This is NOT a real service, just a template! define service{ name generic-service ; The 'name' of this service template active_checks_enabled 1 ; Active service checks are enabled passive_checks_enabled 1 ; Passive service checks are enabled/accepted parallelize_check 1 ; Active service checks should be parallelized (disabling this can lead to major performance problems) obsess_over_service 1 ; We should obsess over this service (if necessary) check_freshness 0 ; Default is to NOT check service 'freshness' notifications_enabled 1 ; Service notifications are enabled event_handler_enabled 1 ; Service event handler is enabled flap_detection_enabled 1 ; Flap detection is enabled failure_prediction_enabled 1 ; Failure prediction is enabled process_perf_data 1 ; Process performance data retain_status_information 1 ; Retain status information across program restarts retain_nonstatus_information 1 ; Retain non-status information across program restarts register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE! } my host template is also the one from minimal.cfg: define host{ name generic-host ; The name of this host template notifications_enabled 1 ; Host notifications are enabled event_handler_enabled 1 ; Host event handler is enabled flap_detection_enabled 1 ; Flap detection is enabled failure_prediction_enabled 1 ; Failure prediction is enabled process_perf_data 1 ; Process performance data retain_status_information 1 ; Retain status information across program restarts retain_nonstatus_information 1 ; Retain non-status information across program restarts register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE! } And my bogus host definintion looks like this: define host{ use generic-host ; Name of host template to use host_name bogus alias bogus host address 207.91.195.242 check_command check-host-alive max_check_attempts 10 notification_interval 120 notification_period 24x7 notification_options d,r contact_groups admins } (I receive host down notifications...) The ping service for the bogus host looks like this: define service{ use generic-service ; Name of service template to use host_name bogus service_description Ping is_volatile 0 check_period 24x7 max_check_attempts 4 normal_check_interval 5 retry_check_interval 1 contact_groups admins notification_interval 120 notification_period 24x7 notifications_enabled 1 check_command check_ping!100.0,20%!500.0,60% } I tried adding notification_options w,u,c,r in the ping service definition as well, but still no notifications... What else can I check to get my service notifications working? I'm really starting to like the interface and monitoring capabilities, but if I can't make notifications work that kind of defeats the point :) thanx! k ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gpadilla at cbct.com Tue Aug 9 21:31:57 2005 From: gpadilla at cbct.com (Guillermo Padilla) Date: Tue, 9 Aug 2005 15:31:57 -0400 Subject: weird cgi problem Message-ID: <097D3590441CB345A836C4B3F7F813DC65E911@mailsrv.cbct.com> Its the little things... for some reason the /etc dir had only root rights. -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Marc Powell Sent: Tuesday, August 09, 2005 3:21 PM To: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] weird cgi problem > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Guillermo Padilla > Sent: Tuesday, August 09, 2005 2:10 PM > To: Hosey, Chester; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] weird cgi problem > > Yep.. and the logs show everything as being normal, below is part of my > access log > [snip] > > And this is part of my error log when i tried going via authentication > which I disabled > > > > Permission denied: Could not open password file: > /usr/local/nagios/etc/htpasswd.users, referer: > > > > Htpasswd.users exists in that dir with chmod 777 on the file itself. Is the directory readable by the web server (i.e. +rx)? It's clearly a permissions issue, not a nagios issue. What OS is this running on? Could it be an SELinux issue? -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From m.borsani at it.net Tue Aug 9 16:16:00 2005 From: m.borsani at it.net (Marco Borsani) Date: Tue, 9 Aug 2005 16:16:00 +0200 Subject: MIBs not found Message-ID: Hi. I still try to wok with check_snmp, but problems persists. I am testing snmpget commands (that is used from check_snmp), but I see this error: #> snmpget -M /usr/local/share/snmp/mibs:/usr/local/share/snmp/CISCO:/usr/local/share/snmp /CISCO/dipendenze -c public 10.212.0.240 1.3.6.1.4.1.9.9.48.1.1.1.2 Error in packet Reason: (noSuchName) There is no such variable name in this MIB. Failed object: SNMPv2-SMI::enterprises.9.9.48.1.1.1.2 I have mibs inside the dirs mentioned in the command line. In the first dir I have mibs installed by net-snmp 5.1.3.1, in the other 2 dirs I have following mibs: #> ls CISCO CISCO-FIREWALL-MIB-V1SMI.my CISCO-GENERAL-TRAPS.my CISCO-MEMORY-POOL-MIB-V1SM1.my CISCO-PROCESS-MIB-V1SMI.my CISCO-SYSLOG-MIB-V1SMI.my RFC1213-MIB.my #> ls dipendenze SNMP-TARGET-MIB.txt SNMP-NOTIFICATION-MIB.txt HOST-RESOURCES-MIB.txt SNMP-USER-BASED-SM-MIB.txt IANAifType-MIB.txt SNMP-VIEW-BASED-ACM-MIB.txt IF-MIB.txt SNMPv2-MIB.txt IP-MIB.txt SNMPv2-SMI.txt NET-SNMP-AGENT-MIB.txt SNMPv2-TC.txt NET-SNMP-MIB.txt SNMPv2-TM.txt NOTIFICATION-LOG-MIB.txt TCP-MIB.txt RFC1155-SMI.txt UCD-DEMO-MIB.txt SNMP-COMMUNITY-MIB.txt UCD-DLMOD-MIB.txt SNMP-FRAMEWORK-MIB.txt UCD-SNMP-MIB.txt SNMP-MPD-MIB.txt UDP-MIB.txt May anyone help me ? Regards M.Borsani ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cguo at at-sd.com Tue Aug 9 22:35:03 2005 From: cguo at at-sd.com (Chris Guo) Date: Tue, 9 Aug 2005 13:35:03 -0700 Subject: How to run nrpe daemon ? Message-ID: <000401c59d21$d24165b0$df03a8c0@archnet2.atgsd.com> Hi, all, I am new to the nagios, does anybody know how to run NRPE daemon on the remote host? Thanks in advance. Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: From andy.kriger at gmail.com Tue Aug 9 22:04:48 2005 From: andy.kriger at gmail.com (Andy Kriger) Date: Tue, 9 Aug 2005 16:04:48 -0400 Subject: problem setting up contact In-Reply-To: <207fa8f05080913007e1a1fbc@mail.gmail.com> References: <207fa8f05080913007e1a1fbc@mail.gmail.com> Message-ID: <207fa8f050809130455339b99@mail.gmail.com> Accidentally sent that last mail to Marc only but he followed up with me... Line 2409 in objects.c is -- #ifdef DEBUG1 printf("\tContact Name: %s\n",new_contact->name); printf("\tContact Alias: %s\n",new_contact->alias); printf("\tContact Email Address: %s\n",new_contact->email); ---> printf("\tContact Pager Address/Number: %s\n",new_contact->pager); printf("\tSvc Notification Time Period: %s\n",new_contact->service_notification_period); printf("\tHost Notification Time Period: %s\n",new_contact->host_notification_period); #endif It would appear to my laypersons eyes that printf is having difficulty with the NULL value for new_contact->pager. I would also hazard that if you compile nagios without the debug flags you might not see this issue since that line is only called when DEBUG1 is enabled (oh the irony). ---- Setting a pager value eliminated the segfault. So to sum-up, if you compile with DEBUG you need to set an email and pager (even though they are not technically required) to avoid a segfault from the debug info. On 8/9/05, Andy Kriger wrote: > Here's the contact info... > > define contact{ > contact_name nagios > alias Nagios Admin > host_notification_period 24x7 > service_notification_period 24x7 > host_notification_options n > service_notification_options n > email andy.kriger at gmail.com > } > > define contactgroup{ > contactgroup_name admins > alias Nagios Administrators > members nagios > } > > Here's the relevant part of the full debug output from running nagios > -v nagios.cfg... > > add_contact() start > find_contact() start > Contact Name: nagios > Contact Alias: Nagios Admin > Contact Email Address: andy.kriger at gmail.com > Segmentation Fault (core dumped) > > Here's the stacktrace from gdb... > > #0 0xff2344e4 in strlen () from /usr/lib/libc.so.1 > #1 0xff286c30 in _doprnt () from /usr/lib/libc.so.1 > #2 0xff2887f0 in printf () from /usr/lib/libc.so.1 > #3 0x00041ec4 in add_contact (name=0xff2bfdf8 "", alias=0x0, > email=0x0, pager=0x0, > addresses=0x0, svc_notification_period=0x8cc00 "", > host_notification_period=0x8ce20 "", > notify_service_ok=50, notify_service_critical=4, > notify_service_warning=577056, > notify_service_unknown=-13879868, notify_service_flapping=1, > notify_host_up=577040, > notify_host_down=0, notify_host_unreachable=0, notify_host_flapping=576512) > at ../common/objects.c:2409 > > It looks like the alias and email are not being passed to add_contact > correctly (not sure why though). > > I can provide more info as needed, but if it's something about lib > version, I'll need some direction on how to produce what you need (I'm > unix saavy but not that saavy when it comes to library conflicts). > > thx for the help so far > andy > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Wed Aug 10 00:03:41 2005 From: marc at ena.com (Marc Powell) Date: Tue, 9 Aug 2005 17:03:41 -0500 Subject: How to run nrpe daemon ? Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Chris Guo > Sent: Tuesday, August 09, 2005 3:35 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] How to run nrpe daemon ? > > Hi, all, > > > > I am new to the nagios, does anybody know how to run NRPE daemon on the > remote host? Beyond the detailed instructions in the NRPE README? What problem are you having? -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From chris.stankaitis at datawire.net Tue Aug 9 21:59:25 2005 From: chris.stankaitis at datawire.net (Chris Stankaitis) Date: Tue, 09 Aug 2005 15:59:25 -0400 Subject: check_cpu In-Reply-To: <42F906F9.8070909@datawire.net> References: <42F906F9.8070909@datawire.net> Message-ID: <42F90B1D.4030005@datawire.net> Chris Stankaitis wrote: > Hello I am trying to get Nemir's check_cpu python script running... I > had to tweak it a bit to get it to report the right CPU idle reading > under RHEL3, and Solaris, and it's working great with one exception... > > when I try and run the program from cmd line it's saying it can't find > the python interperter. > disregard.. I upgraded to the newest 0.4.0a and my problem has been solved. --Chris ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From getbacktome3 at hotmail.com Tue Aug 9 23:25:35 2005 From: getbacktome3 at hotmail.com (HP Geeza) Date: Tue, 09 Aug 2005 22:25:35 +0100 Subject: MIBs not found In-Reply-To: References: Message-ID: I remember something vagualey similar to this...i think it may be something to do with the variable which you are trying to get not existing in the mib itself. Try just doing an snmpwalk at the enterprise level OID and then try to drill down further try running snmp v1 AHHH im not sure if this is a typo but you have missed out a . in front of 1.3.6.1.4.1.9.9.48.1.1.1.2 i cant remember if you need a . infront of the oid or not >From: "Marco Borsani" >To: "NAGIOS" >Subject: [Nagios-users] MIBs not found >Date: Tue, 9 Aug 2005 16:16:00 +0200 > > >Hi. > >I still try to wok with check_snmp, but problems persists. > >I am testing snmpget commands (that is used from check_snmp), but I see >this >error: >#> snmpget -M >/usr/local/share/snmp/mibs:/usr/local/share/snmp/CISCO:/usr/local/share/snmp >/CISCO/dipendenze -c public 10.212.0.240 1.3.6.1.4.1.9.9.48.1.1.1.2 > >Error in packet >Reason: (noSuchName) There is no such variable name in this MIB. >Failed object: SNMPv2-SMI::enterprises.9.9.48.1.1.1.2 > >I have mibs inside the dirs mentioned in the command line. >In the first dir I have mibs installed by net-snmp 5.1.3.1, in the other 2 >dirs I have following mibs: >#> ls CISCO >CISCO-FIREWALL-MIB-V1SMI.my CISCO-GENERAL-TRAPS.my >CISCO-MEMORY-POOL-MIB-V1SM1.my CISCO-PROCESS-MIB-V1SMI.my >CISCO-SYSLOG-MIB-V1SMI.my RFC1213-MIB.my >#> ls dipendenze >SNMP-TARGET-MIB.txt SNMP-NOTIFICATION-MIB.txt >HOST-RESOURCES-MIB.txt SNMP-USER-BASED-SM-MIB.txt >IANAifType-MIB.txt SNMP-VIEW-BASED-ACM-MIB.txt >IF-MIB.txt SNMPv2-MIB.txt >IP-MIB.txt SNMPv2-SMI.txt >NET-SNMP-AGENT-MIB.txt SNMPv2-TC.txt >NET-SNMP-MIB.txt SNMPv2-TM.txt >NOTIFICATION-LOG-MIB.txt TCP-MIB.txt >RFC1155-SMI.txt UCD-DEMO-MIB.txt >SNMP-COMMUNITY-MIB.txt UCD-DLMOD-MIB.txt >SNMP-FRAMEWORK-MIB.txt UCD-SNMP-MIB.txt >SNMP-MPD-MIB.txt UDP-MIB.txt > >May anyone help me ? > >Regards > >M.Borsani > > > >------------------------------------------------------- >SF.Net email is Sponsored by the Better Software Conference & EXPO >September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices >Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA >Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS when >reporting any issue. >::: Messages without supporting info will risk being sent to /dev/null _________________________________________________________________ Winks & nudges are here - download MSN Messenger 7.0 today! http://messenger.msn.co.uk ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Tue Aug 9 21:42:02 2005 From: marc at ena.com (Marc Powell) Date: Tue, 9 Aug 2005 14:42:02 -0500 Subject: No service notifications Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Kevin Hanser > Sent: Tuesday, August 09, 2005 2:25 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] No service notifications > > Hello, > > I have searched the list and found similar problems to what I'm > experiencing, but no solution yet.... I have recently installed Nagios > v2.0b4 (this is my first Nagios install BTW) and have it configured to > monitor some hosts, and services on those hosts. Everything that I see > in the configuration seems to indicate that service notifications are > enabled, as does the GUI interface. However, I never get service > notifications. > > I set up a bogus host with a ping service to ping an IP address that I > know isn't in use in our network. I get a host notification that the > host itself is down, but I receive no notification on the ping > service... In addition, I have other hosts (routers) that have > interfaces down, but don't receive notification from that either. > > Here's how my config looks for the bogus service I set up: > > nagios.cfg has enable_notifications=1 > > I'm using the generic-service template from minimal.cfg, but have put it > into servers.cfg: (I'm not using minimal.cfg, I just took some parts > from it) > [snip] > The ping service for the bogus host looks like this: > > define service{ > use generic-service ; Name > of service template to use > host_name bogus > service_description Ping > is_volatile 0 > check_period 24x7 > max_check_attempts 4 > normal_check_interval 5 > retry_check_interval 1 > contact_groups admins > notification_interval 120 > notification_period 24x7 > notifications_enabled 1 > check_command check_ping!100.0,20%!500.0,60% > } > > I tried adding notification_options w,u,c,r in the ping service > definition as well, but still no notifications... You do need at least some notification_options defined either in the service template or the definition itself. I'm surprised verification didn't fail with that left out as it's a required parameter. When you add that and restart nagios, do you see a notification attempt in nagios.log? If so, there's probably something wrong with your contact's notification command. Try running it from the command line exactly as it's defined, substituting the appropriate macro values of course, as the nagios user and see if it goes through. > What else can I check to get my service notifications working? I'm > really starting to like the interface and monitoring capabilities, but > if I can't make notifications work that kind of defeats the point :) Barring you hitting some new bug in beta4, many of us have had notifications working for years and years ;) -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From andy.kriger at gmail.com Tue Aug 9 22:00:22 2005 From: andy.kriger at gmail.com (Andy Kriger) Date: Tue, 9 Aug 2005 16:00:22 -0400 Subject: problem setting up contact Message-ID: <207fa8f05080913007e1a1fbc@mail.gmail.com> Here's the contact info... define contact{ contact_name nagios alias Nagios Admin host_notification_period 24x7 service_notification_period 24x7 host_notification_options n service_notification_options n email andy.kriger at gmail.com } define contactgroup{ contactgroup_name admins alias Nagios Administrators members nagios } Here's the relevant part of the full debug output from running nagios -v nagios.cfg... add_contact() start find_contact() start Contact Name: nagios Contact Alias: Nagios Admin Contact Email Address: andy.kriger at gmail.com Segmentation Fault (core dumped) Here's the stacktrace from gdb... #0 0xff2344e4 in strlen () from /usr/lib/libc.so.1 #1 0xff286c30 in _doprnt () from /usr/lib/libc.so.1 #2 0xff2887f0 in printf () from /usr/lib/libc.so.1 #3 0x00041ec4 in add_contact (name=0xff2bfdf8 "", alias=0x0, email=0x0, pager=0x0, addresses=0x0, svc_notification_period=0x8cc00 "", host_notification_period=0x8ce20 "", notify_service_ok=50, notify_service_critical=4, notify_service_warning=577056, notify_service_unknown=-13879868, notify_service_flapping=1, notify_host_up=577040, notify_host_down=0, notify_host_unreachable=0, notify_host_flapping=576512) at ../common/objects.c:2409 It looks like the alias and email are not being passed to add_contact correctly (not sure why though). I can provide more info as needed, but if it's something about lib version, I'll need some direction on how to produce what you need (I'm unix saavy but not that saavy when it comes to library conflicts). thx for the help so far andy ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From chris.stankaitis at datawire.net Tue Aug 9 21:41:45 2005 From: chris.stankaitis at datawire.net (Chris Stankaitis) Date: Tue, 09 Aug 2005 15:41:45 -0400 Subject: check_cpu Message-ID: <42F906F9.8070909@datawire.net> Hello I am trying to get Nemir's check_cpu python script running... I had to tweak it a bit to get it to report the right CPU idle reading under RHEL3, and Solaris, and it's working great with one exception... when I try and run the program from cmd line it's saying it can't find the python interperter. [root at netops.dw plugins]# which python /usr/bin/python [root at netops.dw plugins]# head check_cpu.py #!/usr/bin/python import string, os, sys, re ##from optik import OptionParser from optparse import OptionParser ####################################### ### Define a set of strings to handle ### any info output requirements. [root at netops.dw plugins]# ll check_cpu.py -rwxr-xr-x 1 root root 5566 Aug 9 19:35 check_cpu.py [root at netops.dw plugins]# ./check_cpu.py -w 10 -c 5 : bad interpreter: No such file or directory [root at netops.dw plugins]# if I run it wrapped around python it works fine.. # python check_cpu.py -w 10 -c 5 OK: CPU is 57% idle any thoughts on where I am going wrong? --Chris ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From JasonFrank at srcp.com Wed Aug 10 00:40:11 2005 From: JasonFrank at srcp.com (Frank, Jason) Date: Tue, 9 Aug 2005 17:40:11 -0500 Subject: check_cpu Message-ID: <741E24F735AED141B61948AC155E7DAA338397@CORPDALLMSG05.na.srcp.net> Check out the #! line and make sure it points to the right program (i.e. /usr/bin/python exists), and that there's not any white space (including pesky ^M's from Windows...) Jason -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Chris Stankaitis Sent: Tuesday, August 09, 2005 2:42 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] check_cpu Hello I am trying to get Nemir's check_cpu python script running... I had to tweak it a bit to get it to report the right CPU idle reading under RHEL3, and Solaris, and it's working great with one exception... when I try and run the program from cmd line it's saying it can't find the python interperter. [root at netops.dw plugins]# which python /usr/bin/python [root at netops.dw plugins]# head check_cpu.py #!/usr/bin/python import string, os, sys, re ##from optik import OptionParser from optparse import OptionParser ####################################### ### Define a set of strings to handle ### any info output requirements. [root at netops.dw plugins]# ll check_cpu.py -rwxr-xr-x 1 root root 5566 Aug 9 19:35 check_cpu.py [root at netops.dw plugins]# ./check_cpu.py -w 10 -c 5 : bad interpreter: No such file or directory [root at netops.dw plugins]# if I run it wrapped around python it works fine.. # python check_cpu.py -w 10 -c 5 OK: CPU is 57% idle any thoughts on where I am going wrong? --Chris ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Tue Aug 9 15:22:56 2005 From: marc at ena.com (Marc Powell) Date: Tue, 9 Aug 2005 08:22:56 -0500 Subject: check_by_ssh + cpu usage + Threads + paging etc. Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Rajesh kanna > Sent: Tuesday, August 09, 2005 12:20 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] check_by_ssh + cpu usage + Threads + paging etc. > > > > > Hi, > > I have installed nagios 2.x version of nagios on > a linux box. I used NSCLIENT plugin to get CPU, Disk > I/O, Paging etc. > > I am having problem in implementing the same with > check_by_ssh ( i checked for ssh public key from > comand line it works for check_disk plugin). on > unix/linux machnies. > > Can some one help in this regard. What exactly is the problem? You neglected to say. Also, appropriate config sections as well as an example test run as the nagios user would be useful. -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From teng at dataway.com Wed Aug 10 01:33:44 2005 From: teng at dataway.com (Tedman Eng) Date: Tue, 9 Aug 2005 16:33:44 -0700 Subject: Sending passive host checks - OCHP vs Notification Message-ID: <37ED92F9890FAF4BB947613C66FF8B1A08BB2B4B@dw-mail.dataway.com> I'm in the process of setting up a new distributed 2.0 installation. The central server in this setup will perform no active checks, and no freshness checks. (sometimes parents have to just trust their children) My question is this: Is it possible to use the host_notification_command instead of the obsess_host_command to send hoststates to the central server? My reasoning is that notifications are only sent when the hoststate changes, versus OCHP sending hoststate after every host check. This may save some bandwidth, especially when one of the child servers has many problem hosts to check/re-check. Though this is not the offically sanctioned method, are there any problems with using this method? ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tdondich at gmail.com Mon Aug 8 20:55:34 2005 From: tdondich at gmail.com (Taylor Dondich) Date: Mon, 8 Aug 2005 11:55:34 -0700 Subject: New Nagios UI Released! Message-ID: <3d2eb72a0508081155a2299bd@mail.gmail.com> Just wanted everyone to know that Groundwork (the company I work for) has released Status Viewer. This is built of Groundwork Foundation, and is a complete UI replacement for Nagios. :) http://www.itgroundwork.com/products/gw_status-viewer.html Take a look and get some feedback to us. Email me at tdondich at itgroundwork.com, and I'll help you with all your needs. Taylor ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From emkeyser at gmail.com Wed Aug 10 02:49:49 2005 From: emkeyser at gmail.com (Emmett Keyser) Date: Tue, 9 Aug 2005 17:49:49 -0700 Subject: No service notifications In-Reply-To: References: Message-ID: <983f22fa05080917496ab6b5d7@mail.gmail.com> posting near bottom..... [snip] > > > The ping service for the bogus host looks like this: > > > > define service{ > > use generic-service ; Name > > of service template to use > > host_name bogus > > service_description Ping > > is_volatile 0 > > check_period 24x7 > > max_check_attempts 4 > > normal_check_interval 5 > > retry_check_interval 1 > > contact_groups admins > > notification_interval 120 > > notification_period 24x7 > > notifications_enabled 1 > > check_command check_ping!100.0,20%!500.0,60% > > } > > > > I tried adding notification_options w,u,c,r in the ping service > > definition as well, but still no notifications... > > You do need at least some notification_options defined either in the > service template or the definition itself. I'm surprised verification > didn't fail with that left out as it's a required parameter. When you > add that and restart nagios, do you see a notification attempt in > nagios.log? If so, there's probably something wrong with your contact's > notification command. Try running it from the command line exactly as > it's defined, substituting the appropriate macro values of course, as > the nagios user and see if it goes through. > > > What else can I check to get my service notifications working? I'm > > really starting to like the interface and monitoring capabilities, but > > if I can't make notifications work that kind of defeats the point :) > > Barring you hitting some new bug in beta4, many of us have had > notifications working for years and years ;) > > -- > Marc > this... notification_options w,u,c,r was missing in my minimal.cfg Now I'm the first one to admit that I may have messed up my configs or commented out a config that included notification_options for services. But by just using the default config files I was not able to receive service notifications. I will mention that bigger.cfg DOES include the notification_options directive in the service checks. I commented this file out when I started to build my config so I didn't really take a look at it. I just used minimal.cfg. But that's just my experience which seems to be similar to the original posting. I was using 2b3. Thanks ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ralph.Grothe at itdz-berlin.de Tue Aug 9 10:04:15 2005 From: Ralph.Grothe at itdz-berlin.de (Ralph.Grothe at itdz-berlin.de) Date: Tue, 9 Aug 2005 10:04:15 +0200 Subject: Passive service checks via NSCA and requir ed check command defini tion Message-ID: <6B893C5F2902D311A23F0090272854FB0575B7D5@litex001.lit.verwalt-berlin.de> Hello Paul (et alii), > Of course, you can use check_procs to monitor that crond is > running. But > there are probably even more exotic scenarios where crond is > running but > you're not getting check results from the plugin (such as an error in > the plugin which means it always returns OK, to name but one). Though it might not be perfect and a catch-all, I think running check_procs on important daemons is yet better than nothing. > > > Ah firewalls, another of my monitoring intentions oponents. > > That's the main reason NSCA exists - so you can install nagios on the > firewall or on one of the machines behind the firewall instead of > trying to persuade the firewall admin to open up various ports. > Check_by_ssh is an alternative, if you can ssh onto the > firewall or one > of the machines behind the firewall. That was what I did before discovering NSCA because the least we get is an open 22/tcp port. I have no access to the firewalls, and they don't respond on ICMP echo requests either. So there's no way to check the firewalls' state for me. The same is sadly true for most of our routers, which is a very bad fact for us as it hinders us from seriously discovering and identifying outages of LAN segments. Traceroutes almost never work because of the ICMP ignorance of most routers/packet filters, and the sender doesn't receive a TIME_EXCEEDED or PORT_UNREACHABLE. I really would like to set up my Nagios with node dependencies (sorry, I lack the term the docs used for describing LAN hirarchies) but with most routers being black holes I can't figure out how. > Dropping all ICMP may cause problems with MTU path discovery, > but that's > their problem. Very true, but unfortunately it's not quite alone their problem because the users of our servers' services come and complain at us, although the services are usually set and running to best practicies very well. The same goes for the server settings in their TCP/IP stack. Whereas the firewall and black hole router folks usually act like black magicians concealed in the background, often reluctant to sort out the cause, or pass sufficient information. (you see I'm getting a bit carried away because I've had some bad experience with unsupported PMTU) > Dropping pings means you can't check the firewall or > the hosts behind it to see if they're up. I believe nagios > 2.x supports > passive host checks but 1.x doesn't. Well, one bit of the > docs says it's > impossible but another bit says it's possible but too complicated to > explain. Yes, as a user of the recent 2.0b version I also read in the docs that passive host checks were possible. > Feel free to write a "HOWTO" on setting up passive monitoring > that gathers > it all in one place. Even if you can't persuade Ethan to add > it to the > docs I imagine nagiosexchange would accept it. As a Nagios newbie I haven't yet thought about writing supplementary documentation. But I will be doing so for my colleagues at my working place. Maybe if it is of any use to them I later can submit it to Nagios Exchange. But now back to my (seemingly solved) problem I started this thread for. Yesterday evening I had another read of the documentation. There, very concealed within the chapter on distributed Distributed Monitoring, I discovered what you were mentioning last time as staleness checking, i.e. freshness checking. http://nagios.sourceforge.net/docs/2_0/freshness.html So I reconfigured my service, this time adding the two freshness attributes. Since I wrote my check script (in wise foresight?) that it could act as both an NRPE as well as an NSCA check I even didn't need to think much about the check_command. Thus my service's definition now reads like this define service { use generic-service service_description samos-hpva-state host_name samos passive_checks_enabled 1 active_checks_enabled 0 check_freshness 1 freshness_threshold 4000 check_command check-nrpe!check_hpva_INWO2 contact_groups samosadmin } Because my remote host's cronjob runs the passive check hourly I decided a check result as stale after 4000 secs (i.e. freshness_threshold). Now I think I'm set and done with this service. Or do you see any still controversial settings? Regards -- Ralph > > -- > Paul Allen > Softflare Support > > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development > Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * > Testing & QA > Security * Process Improvement & Measurement * > http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Wed Aug 10 03:07:33 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 9 Aug 2005 21:07:33 -0400 (EDT) Subject: MIBs not found In-Reply-To: References: Message-ID: On Tue, 9 Aug 2005, Marco Borsani wrote: > > Hi. > > I still try to wok with check_snmp, but problems persists. > > I am testing snmpget commands (that is used from check_snmp), but I see this > error: > #> snmpget -M > /usr/local/share/snmp/mibs:/usr/local/share/snmp/CISCO:/usr/local/share/snmp > /CISCO/dipendenze -c public 10.212.0.240 1.3.6.1.4.1.9.9.48.1.1.1.2 > > Error in packet > Reason: (noSuchName) There is no such variable name in this MIB. > Failed object: SNMPv2-SMI::enterprises.9.9.48.1.1.1.2 This is a column object - not leaf object. You need to append the table index value to the above OID. In this case the index is CiscoMemoryPoolTypes 1: processor memory 2: i/o memory 3: pci memory 4: fast memory 5: multibus memory -sg > > I have mibs inside the dirs mentioned in the command line. > In the first dir I have mibs installed by net-snmp 5.1.3.1, in the other 2 > dirs I have following mibs: > #> ls CISCO > CISCO-FIREWALL-MIB-V1SMI.my CISCO-GENERAL-TRAPS.my > CISCO-MEMORY-POOL-MIB-V1SM1.my CISCO-PROCESS-MIB-V1SMI.my > CISCO-SYSLOG-MIB-V1SMI.my RFC1213-MIB.my > #> ls dipendenze > SNMP-TARGET-MIB.txt SNMP-NOTIFICATION-MIB.txt > HOST-RESOURCES-MIB.txt SNMP-USER-BASED-SM-MIB.txt > IANAifType-MIB.txt SNMP-VIEW-BASED-ACM-MIB.txt > IF-MIB.txt SNMPv2-MIB.txt > IP-MIB.txt SNMPv2-SMI.txt > NET-SNMP-AGENT-MIB.txt SNMPv2-TC.txt > NET-SNMP-MIB.txt SNMPv2-TM.txt > NOTIFICATION-LOG-MIB.txt TCP-MIB.txt > RFC1155-SMI.txt UCD-DEMO-MIB.txt > SNMP-COMMUNITY-MIB.txt UCD-DLMOD-MIB.txt > SNMP-FRAMEWORK-MIB.txt UCD-SNMP-MIB.txt > SNMP-MPD-MIB.txt UDP-MIB.txt > > May anyone help me ? > > Regards > > M.Borsani > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ralph.Grothe at itdz-berlin.de Tue Aug 9 11:37:52 2005 From: Ralph.Grothe at itdz-berlin.de (Ralph.Grothe at itdz-berlin.de) Date: Tue, 9 Aug 2005 11:37:52 +0200 Subject: [Nagiosplug-help] Usage of check_log Message-ID: <6B893C5F2902D311A23F0090272854FB0575B7DA@litex001.lit.verwalt-berlin.de> Hello, I do have to apologize! I didn't realize that check_log is a commented mere shell script. I have to admit that even if it was a binary built from a C source file, I still could look up the source code from the Plug-ins tarball. That's the advantage of open source, that you don't have to base guesses on some reverse engineering. I think I will figure out myself how it is meant to be employed. This should give me enough to get started with this particular plug-in $ file /usr/local/nagios/libexec/check_log /usr/local/nagios/libexec/check_log: commands text $ head -56 /usr/local/nagios/libexec/check_log #! /bin/sh # # Log file pattern detector plugin for Nagios # Written by Ethan Galstad (nagios at nagios.org) # Last Modified: 07-31-1999 # # Usage: ./check_log # # Description: # # This plugin will scan a log file (specified by the option) # for a specific pattern (specified by the option). Successive # calls to the plugin script will only report *new* pattern matches in the # log file, since an copy of the log file from the previous run is saved # to . # # Output: # # On the first run of the plugin, it will return an OK state with a message # of "Log check data initialized". On successive runs, it will return an OK # state if *no* pattern matches have been found in the *difference* between the # log file and the older copy of the log file. If the plugin detects any # pattern matches in the log diff, it will return a CRITICAL state and print # out a message is the following format: "(x) last_match", where "x" is the # total number of pattern matches found in the file and "last_match" is the # last entry in the log file which matches the pattern. # # Notes: # # If you use this plugin make sure to keep the following in mind: # # 1. The "max_attempts" value for the service should be 1, as this # will prevent Nagios from retrying the service check (the # next time the check is run it will not produce the same results). # # 2. The "notify_recovery" value for the service should be 0, so that # Nagios does not notify you of "recoveries" for the check. Since # pattern matches in the log file will only be reported once and not # the next time, there will always be "recoveries" for the service, even # though recoveries really don't apply to this type of check. # # 3. You *must* supply a different for each service that # you define to use this plugin script - even if the different services # check the same for pattern matches. This is necessary # because of the way the script operates. # # Examples: # # Check for login failures in the syslog... # # check_log /var/log/messages ./check_log.badlogins.old "LOGIN FAILURE" # # Check for port scan alerts generated by Psionic's PortSentry software... # # check_log /var/log/message ./check_log.portscan.old "attackalert" # > -----Original Message----- > From: Server Admin [mailto:admin at treenetnz.com] > Sent: Monday, August 08, 2005 6:16 PM > To: Ralph.Grothe at itdz-berlin.de > Cc: nagios-users at lists.sourceforge.net; > nagiosplug-help at lists.sourceforge.net > Subject: Re: [Nagiosplug-help] Usage of check_log > > > Ralph.Grothe at itdz-berlin.de wrote: > > Hello, > > > > this may all be pretty obvious and self-explanatory to long time > > Nagios veterans. > > > > But I beg your pardon, this ultra terse help screen doesn't > > instruct me at all on the correct usage of this particular > > plug-in. > > Does it cause the plug-in authors such hardship to spare the > > extra 80 chars or so for a lucid example line? > > > > > > # libexec/check_log --help > > check_log (nagios-plugins 1.4) 1.4 > > 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. > > > > Usage: check_log -F logfile -O oldlog -q query > > Usage: check_log --help > > Usage: check_log --version > > > > Log file pattern detector plugin for Nagios > > > > 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. > > Please include version information with all correspondence (when > > possible, > > use output from the --version option of the plugin itself). > > > > > > > > For instance I'm after kernel Oops and similar utters from the > > kernel that are marked on my host's OS > > as vmunix in syslogd's main log, and almost always (except during > > system startup) indicate a critical condition. > > > > e.g. > > > > # grep vmunix /var/adm/syslog/syslog.log|tail -1 > > Apr 29 09:44:20 terra vmunix: vxfs: mesg 001: vx_nospace - > > /dev/vg03/lvol1 file system full (1 block extent) > > > > > > > > Now I would want check_nrpe to run something like > > > > $libexec_dir/check_log -F /var/adm/syslog/syslog.log -q /vmunix/ > > > > > > But according to the above usage synopsis this was wrong syntax > > because the -O option was lacking. > > But then I wouldn't know what -O was good for. > > Intuitively I would assosiate it with some intended output file. > > But the "oldlog" would be a bit of a misnomer. > > Or does it relate to also parsing some older, probably already > > rotated logfile. > > > > You see, this is all highly speculative and leaves ample space > > for wild guesses. > > > > RTFM. It is in there somewhere. I found it after the same problem. > > check_log is a special case in plugins being a stateful check > and -O is > part of the solution. > You see in order to check the log ofr updates it needs to > keep a record > of what the log looked like last time it checked. -O indicates the > filename each instance of check_log needs to keep this record. > > There are two catches here: > - first, you need a unique -O and thus command for every log > being checked. > - second, two consecutive checks will provide different results. > ie. the first may find entries for a WARNING/CRITICAL, > further checks > after will find none and report OKAY until a new matching log > entry is > added. > > > AYJ > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From chris at aidworld.org Mon Aug 8 23:41:02 2005 From: chris at aidworld.org (Chris Wilson) Date: Mon, 08 Aug 2005 22:41:02 +0100 Subject: cmd/bat file help plz...running it viacheck_nrpe In-Reply-To: References: Message-ID: <1123537262.3089.1.camel@localhost> Hi, > Yes i am still having problems. Which other command from Cygwin do you > mean?? i have never come accross cygwin. I dont mind trying another other > method/shutdown command....aslong as i dont hopefully have to install lots > off different utilites/3rd party software.... www.cygwin.com. Unix tools for Windows. I think it comes with a shutdown command, similar to the one from NT resource kit which I imagine is the one you're using now. But you will have to install some software, and it is third party, and it may not help. Please try my other suggestion before trying Cygwin. Cheers, Chris. -- (aidworld) chris wilson | chief engineer (chris at aidworld.org) ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ralph.Grothe at itdz-berlin.de Wed Aug 10 10:14:55 2005 From: Ralph.Grothe at itdz-berlin.de (Ralph.Grothe at itdz-berlin.de) Date: Wed, 10 Aug 2005 10:14:55 +0200 Subject: How to run nrpe daemon ? Message-ID: <6B893C5F2902D311A23F0090272854FB0575B7DF@litex001.lit.verwalt-berlin.de> Hi Chris, I'm also new to Nagios, so probably not being the right person to advise you. However, I've only recently set up my Nagios server (and still am fumbling with its configuration), and Nagios managed hosts of which some have an NRPE daemon running. What needs to be done is lined out (tersely) in the README of the NRPE source tarball, and even after you have run "make all" (or even "make install" errenously) there is a screen displayed that says what next needs to be done on the managed host that runs the nrpe daemon, as well as in your Nagios server's config. What is your target OS? (I could only help with Unix like since I'm not into Win32, MAC etc.) Basically, - Get the source tarball from Nagios Exchange (if you don't need specific compile switches you could even download pre-built binaries for your OS) - Unpack into a staging directory - change into the staging dir, and read the README, INSTALL, OS specific addendums etc. - run the configure script with --help, and study possible options - decide where you want nrpe reside (i.e. --prefix=), what user and group the NRPE daemon should run as (i.e. --with-nrpe-user=, --with-nrpe-group=), what port it should be listening on for connects from your Nagios server (i.e. --with-nrpe-port=), if you wish the NRPE daemon to accept arguments (--enable-cmd-args, consider the security implications), if you require SSL/TLS connection (--enable-ssl), and on a few other options --help would display - run "make all", and read the final screen on success. - copy the binary /src/nrpe somewhere appropiate (e.g. /usr/local/nagios/sbin) this is the NRPE daemon - copy the file /nrpe.cfg, that already got populated with the values you passed to configure, into another appropiate place (e.g. /usr/local/nagios/etc) - decide whether your NRPE daemon should be running stand-alone, or run through (x)inetd As I decided on the latter I then extended inetd's config by a line like such # tail -3 /etc/inetd.conf # # Nagios Remote Plug-In Executor nrpe stream tcp nowait nagios /usr/local/nagios/sbin/nrpe nrpe -c /usr/local/nagios/etc/nrpe.cfg -i Beware, if your OS is Linux chances are you are already running inetd successor xinetd whose configuration is slightly more involved (I think you usually will find its config in /etc/xinetd.d or similar) Send your inetd a SIGHUP e.g. on Linux either # pkill -s HUP -P 1 -x xinetd # service xinetd restart On other Unices grep the PID from the process table e.g. on HP-UX I would do # kill -1 $(UNIX95= ps -o pid= -C inetd) or # /usr/sbin/inetd -c Then check your syslogd's logfile for facility daemon (usually, if default was used, /var/log/messages, /var/adm/syslog/syslog.log etc) if inetd successfully reinitialized (sometimes it remained silent if no extended logging was configured) - Check for the new listening port (the one you specified in --with-nrpe-port, per default 5666/tcp) On most Unices # netstat -an | grep LISTEN | grep \.5666 or on Linux # lsof -i tcp:5666 - Now revisit nrpe.cfg and add or customize some check commands you wish to be executed indirectly through NRPE. - Then first check locally if nrpe daemon is executing the check e.g. a mere filesystem free space check (<10% WARNING, <5% CRITICAL) I defined like this # grep ^command\\[check_disk_LOCPCT_W10C5 /usr/local/nagios/etc/nrpe.cfg command[check_disk_LOCPCT_W10C5]=/usr/local/nagios/libexec/check_ disk -e -l -X cdfs -X nfs -x /cdrom -w 5% -c 2% and run as # su - nrpe_user -c "/usr/local/nagios/libexec/check_nrpe -H 127.0.0.1 -c check_disk_LOCPCT_W10C5" DISK OK - free space:| /=185MB;190;196;0;200 /stand=87MB;110;113;0;116 /var=1082MB;1375;1419;0;1448 /v ar/adm/crash=2496MB;3657;3773;0;3850 /usr=814MB;858;885;0;904 /tmp=120MB;190;196;0;200 /ora_save=757MB ;2850;2940;0;3000 /opt=709MB;731;754;0;770 /opt/gnu=267MB;288;297;0;304 /home=78MB;98;101;0;104 /app=8 969MB;9500;9800;0;10000 /vb=3418MB;6688;6899;0;7040 /zlb=1845MB;6688;6899;0;7040 logout Fill up some unneeded filesystem to provoke a WARNING or CRITICAL return code, and recheck. - Finally do the same checks from your Nagios server over your LAN. However, before you can do this you need to build the binary check_nrpe for the target OS of the host that runs your Nagios server (but you know by now how this is done) Then define a service in your Nagios server's services.cfg (and if needed a check command definition for check_nrpe) That's usually all that is required to setup NRPE. Regards Ralph -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Chris Guo Sent: Tuesday, August 09, 2005 10:35 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] How to run nrpe daemon ? Hi, all, I am new to the nagios, does anybody know how to run NRPE daemon on the remote host? Thanks in advance. Chris ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ladams at cloudmark.com Tue Aug 9 00:55:10 2005 From: ladams at cloudmark.com (Lori Adams) Date: Mon, 8 Aug 2005 15:55:10 -0700 Subject: cmd/bat file help plz...running it via check_nrpe Message-ID: I think the problem is that you're trying to use nrpe to run the reboot-server script. If you can run your cmd/bat file on your remote machine by hand, then you know that is written correctly. Once that works then you can set up an event handler on your service check definition. Using nrpe to shutdown your machine, you'll not get a response back, as the machine will have been rebooted. Is there a way for you to use ssh, or some other method to reboot. -Lori -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of HP Geeza Sent: Monday, August 08, 2005 11:32 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] cmd/bat file help plz...running it via check_nrpe Can somebody help me write a cmd/bat file please.... >From: "HP Geeza" >To: Ludo.Bosmans at aureusim.be, nagios-users at lists.sourceforge.net >Subject: RE: [Nagios-users] RE: run a script based on event?? >Date: Mon, 08 Aug 2005 10:37:41 +0100 > >All, > >I have managed to install nrpe on the windows machine and nagios box. I >can run a command such as: > >./check_nrpe -H -c check_cmd > >which returns "hello from cmd" to my nagios box. The check_cmd command >looks like: > >command[check_cmd]=C:\source\nrpe\NoSSLbin\bin\test.cmd > >the contents of the test.cmd file looks like: > >@echo off >echo hallo from cmd >exit 1 > >This proves that nrpe is working. However i am a little stuck when it >comes to executing the reboot_server command which in turn calls a >shutdown.cmd file which will reboot my remote windows server. I would be >greatfully for any comments on what i am doing wrong and how i can solve >this problem: > >command[reboot_server]=C:\source\psshutdown\shutdown.cmd > >the contents of the shutdown.cmd file is: > >C:\WINDOWS\system32\shutdown.exe -r >echo system shutting down from cmd >exit 1 > >the command im running from my nagios box is: > >./check_nrpe -H 10.30.128.254 -c reboot_server > >BUT i then get a message saying: > >: The system could not find the >environment option that was entered.(203) > >However when i double click on the shutdown.cmd file on my remote windows >machine the machine reboots itself.... > > >>From: "Ludo Bosmans" >>To: "HP Geeza" >>, >>Subject: RE: [Nagios-users] RE: run a script based on event?? >>Date: Fri, 5 Aug 2005 13:19:14 +0200 >> >>Geeza, >>Yes of course this is possible. >> >>1) On your winserver install the nrpe service as documented in the >>README or INSTALL guide and adapt nrpe.cfg as needed. >>So in your nrpe.cfg file (on the win server) there should be a config >>entry: >>command[reboot_server]=c\reboot.bat >> >>2) Make a bat file that contain the shutdown.exe command with the >>correct parameters. >> >>3) In your checkcommands.cfg file create a command(this is an example): >> >># reboot_win_server >>define command{ >> command_name reboot_win_server >> command line $USER1$/reboot_win_server.sh $HOSTNAME$ >>$HOSTADDRESS$ >>} >> >>4) In your plugin directory make a small script(reboot_win_server.sh): >>This example is just the minimum >> >>#bin/sh >>HOST_NAME=$1 >>IP_ADDRESS=$2 >>/usr/lib/nagios/plugins/check_nrpe -H $HOST_ADDRESS -t 5 -c >>reboot_server >> >>5) Of course there are alternatives, it is possible to define directly >>in the checkcommands.cfg the check_nrpe instead of calling a script: >> >># reboot_win_server >>define command{ >> command_name reboot_win_server >> command line $USER1$/check_nrpe -H $HOSTADDRESS$ -t 5 -c >>reboot_server >>} >> >>6) To test, at least install the win site, try a manual execution of the >>check_nrpe ... reboot >> >>7) Finally I didn't really test this explanation, so I hope that I >>didn't have make mistakes in my explanation. >>Kind regards, >> >>Ludo >> >> >>-----Original Message----- >>From: HP Geeza [mailto:getbacktome3 at hotmail.com] >>Sent: vrijdag 5 augustus 2005 12:43 >>To: Ludo Bosmans; nagios-users at lists.sourceforge.net >>Subject: RE: [Nagios-users] RE: run a script based on event?? >> >>Ok im a little confussed now...is the following possible via nagios? >> >>Monitor a temp probe in lab (this i know is possible via snmp)...if the >>temp >>value goes critical then run check_nrpe (through an event >>handler)...which >>will then run a script on the windows machine? >> >>--->>> can check_nrpe be run as an event handler once the temp value is >>critical? >> >>I can shutdown the windows machine fine as i have already got the >>commands >>to do that. I just need a way to call that script/bat flile when the >>temp >>value goes critical. >> >> >> >From: "Ludo Bosmans" >> >To: "HP Geeza" >> >, >> >Subject: RE: [Nagios-users] RE: run a script based on event?? >> >Date: Fri, 5 Aug 2005 09:25:33 +0200 >> > >> >Hi, >> > >> >Have a look to following link, it is quiet easy to make a windows bat >> >file with the correct options to reboot. >> >http://windows.about.com/od/schedulingandbatchjobs/l/aa012400a.htm >> > >> >Install nrpe_nt on the windows server and and use check_nrpe to execute >> >the reboot bat file on the win server when it is necessary, f.e. with >>an >> >eventhandler script. >> > >> >Kind regards, >> > >> >ludo >> > >> > >> >-----Original Message----- >> >From: nagios-users-admin at lists.sourceforge.net >> >[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of HP Geeza >> >Sent: donderdag 4 augustus 2005 17:17 >> >To: nagios-users at lists.sourceforge.net >> >Subject: RE: [Nagios-users] RE: run a script based on event?? >> > >> >I know that this isn't the best place to ask this sort of >>question...but >> >id >> >be greatfull for any advice/help!!! >> > >> >I need a way to shutdown remote windows servers through an event >>handler >> >in >> >nagios...i dont quiet know how to write a script (whether it be perl or >> >bash) which will allow me to do this. the way i understand it is there >> >currently isnt a way to run a windwos command in linux. >> > >> >I can quiet easily run the shutdown command from a windows box to >> >shutdown a >> >remote windows machine...but becuase nagios runs in linux i need a way >> >to >> >shutdown windows machines from linux. >> > >> >Any ideas???? >> > >> > >From: "Marc Powell" >> > >To: >> > >Subject: [Nagios-users] RE: run a script based on event?? >> > >Date: Wed, 3 Aug 2005 10:08:47 -0500 >> > > >> > > >> > > >> > > > -----Original Message----- >> > > > From: HP Geeza [mailto:getbacktome3 at hotmail.com] >> > > > Sent: Wednesday, August 03, 2005 10:01 AM >> > > > To: Marc Powell; nagios-users at lists.sourceforge.net >> > > > Subject: run a script based on event?? >> > > > >> > > > HI >> > > > >> > > > I was wondering if this is possible and whether anybody has tried >> >it? >> > >- I >> > > > am >> > > > monitoring the temperature probe in our lab via snmp...and as a >> >result >> > >i >> > > > was >> > > > wondering whether it is possible in nagios to run a script of some >> > >sort >> > > > (which will probably contain some sort of shutdown command) when >>the >> > > > temperature triggers an event i.e when it goes above a certain >> > >threshold. >> > > > >> > > > I would like to do this because if the AC busts and our lab starts >> >to >> > > > overheat then i would like nagios to run a script which will turn >> >off >> > >some >> > > > of the machines? >> > > >> > >Oddly enough they're called event handlers. >> > > >> > >http://nagios.sourceforge.net/docs/1_0/eventhandlers.html >> > > >> > >-- >> > >Marc >> > > >> > >p.s. Please don't e-mail me directly. Even though I participate a lot >> > >here, I'm not dedicated Nagios support ;) >> > > >> > > >> > > >> > > >> > >------------------------------------------------------- >> > >SF.Net email is sponsored by: Discover Easy Linux Migration >>Strategies >> > >from IBM. Find simple to follow Roadmaps, straightforward articles, >> > >informative Webcasts and more! Get everything you need to get up to >> > >speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click >> > >_______________________________________________ >> > >Nagios-users mailing list >> > >Nagios-users at lists.sourceforge.net >> > >https://lists.sourceforge.net/lists/listinfo/nagios-users >> > >::: Please include Nagios version, plugin version (-v) and OS when >> > >reporting any issue. >> > >::: Messages without supporting info will risk being sent to >>/dev/null >> > >> >_________________________________________________________________ >> >Want to block unwanted pop-ups? Download the free MSN Toolbar now! >> >http://toolbar.msn.co.uk/ >> > >> > >> > >> >------------------------------------------------------- >> >SF.Net email is Sponsored by the Better Software Conference & EXPO >> >September 19-22, 2005 * San Francisco, CA * Development Lifecycle >> >Practices >> >Agile & Plan-Driven Development * Managing Projects & Teams * Testing & >> >QA >> >Security * Process Improvement & Measurement * >> >http://www.sqe.com/bsce5sf >> >_______________________________________________ >> >Nagios-users mailing list >> >Nagios-users at lists.sourceforge.net >> >https://lists.sourceforge.net/lists/listinfo/nagios-users >> >::: Please include Nagios version, plugin version (-v) and OS when >> >reporting any issue. >> >::: Messages without supporting info will risk being sent to /dev/null >> > >> > >> >------------------------------------------------------- >> >SF.Net email is Sponsored by the Better Software Conference & EXPO >> >September 19-22, 2005 * San Francisco, CA * Development Lifecycle >>Practices >> >Agile & Plan-Driven Development * Managing Projects & Teams * Testing & >>QA >> >Security * Process Improvement & Measurement * >>http://www.sqe.com/bsce5sf >> >_______________________________________________ >> >Nagios-users mailing list >> >Nagios-users at lists.sourceforge.net >> >https://lists.sourceforge.net/lists/listinfo/nagios-users >> >::: Please include Nagios version, plugin version (-v) and OS when >> >reporting any issue. >> >::: Messages without supporting info will risk being sent to /dev/null >> >>_________________________________________________________________ >>Be the first to hear what's new at MSN - sign up to our free >>newsletters! >>http://www.msn.co.uk/newsletters >> > >_________________________________________________________________ >It's fast, it's easy and it's free. Get MSN Messenger 7.0 today! >http://messenger.msn.co.uk > > > >------------------------------------------------------- >SF.Net email is Sponsored by the Better Software Conference & EXPO >September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices >Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA >Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS when >reporting any issue. ::: Messages without supporting info will risk being >sent to /dev/null _________________________________________________________________ Use MSN Messenger to send music and pics to your friends http://messenger.msn.co.uk ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tdondich at gmail.com Tue Aug 9 04:39:31 2005 From: tdondich at gmail.com (Taylor Dondich) Date: Mon, 8 Aug 2005 19:39:31 -0700 Subject: LinuxExpo, anyone there? Message-ID: <3d2eb72a05080819392b3d7a25@mail.gmail.com> I'll be at LinuxExpo all day Tuesday and Wednesday, and part of Friday. Was wondering if there was anyone on the list that wanted to get together. I'll be speaking at the Nagios BoF meeting, and I'll be taking question on Fruity and regarding the new Status Viewer project we released. But it'd be great to just talk to some people and hang out. Taylor ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From getbacktome3 at hotmail.com Mon Aug 8 21:01:19 2005 From: getbacktome3 at hotmail.com (HP Geeza) Date: Mon, 08 Aug 2005 20:01:19 +0100 Subject: cmd/bat file help plz...running it viacheck_nrpe In-Reply-To: <1123526510.964.52.camel@localhost> References: <1123526510.964.52.camel@localhost> Message-ID: hi Chris Yes i am still having problems. Which other command from Cygwin do you mean?? i have never come accross cygwin. I dont mind trying another other method/shutdown command....aslong as i dont hopefully have to install lots off different utilites/3rd party software.... >From: Chris Wilson >To: HP Geeza >CC: Nagios Users >Subject: Re: [Nagios-users] cmd/bat file help plz...running it >viacheck_nrpe >Date: Mon, 08 Aug 2005 19:41:50 +0100 > >Hi, > > > Can somebody help me write a cmd/bat file please.... > >I assume that you have already written it, and are still getting this >error: > > > >./check_nrpe -H 10.30.128.254 -c reboot_server > > > > > >BUT i then get a message saying: > > > > > >: The system could not find the > > >environment option that was entered.(203) > >This sounds like the Windows user that NRPE runs as does not have >permissions to shut down the machine, or is not set up correctly. > >I've never used NRPE on Windows, but I assume it runs as a system >service. If not, this advice won't help you. > > >From the services control panel, go to properties for the NRPE service. >Find the option for "run as user". Try changing it to either LocalSystem >or an account in the Administrators group. (if one doesn't work, try the >other, they are not the same). > >If that doesn't help, you might want to try an alternative shutdown >command, like the one that comes with Cygwin. > >Cheers, Chris. >-- >(aidworld) chris wilson | chief engineer (chris at aidworld.org) > _________________________________________________________________ Be the first to hear what's new at MSN - sign up to our free newsletters! http://www.msn.co.uk/newsletters ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From m.borsani at it.net Wed Aug 10 09:24:34 2005 From: m.borsani at it.net (Marco Borsani) Date: Wed, 10 Aug 2005 09:24:34 +0200 Subject: R: MIBs not found In-Reply-To: References: Message-ID: Well, I use OID mentioned in last mail because I found it in CISCO web site http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Trans late&objectInput=ciscoMemoryPoolName Using 1.3.6.1.4.1.9.9.48.1.1.1.2.5 I get an error message like: "Unfortunately we could not translate the object 1.3.6.1.4.1.9.9.48.1.1.1.2.5 you were looking for. We could however translate a part of your object..." Using the index for CiscoMemoryPoolTypes that you suggest me I still receive same error, using "numbers" from 2 to 5, but I received a "good answer" with 1. ERROR ANSWER: Error in packet Reason: (noSuchName) There is no such variable name in this MIB. Failed object: SNMPv2-SMI::enterprises.9.9.48.1.1.1.2.5 GOOD ANSWER: SNMPv2-SMI::enterprises.9.9.48.1.1.1.2.1 = STRING: "PIX system memory" ????? Marco -}-----Messaggio originale----- -}Da: Subhendu Ghosh [mailto:sghosh at sghosh.org] -}Inviato: mercoledi 10 agosto 2005 3.08 -}A: Marco Borsani -}Cc: NAGIOS -}Oggetto: Re: [Nagios-users] MIBs not found -} -} -}On Tue, 9 Aug 2005, Marco Borsani wrote: -} -}> -}> Hi. -}> -}> I still try to wok with check_snmp, but problems persists. -}> -}> I am testing snmpget commands (that is used from check_snmp), -}but I see this -}> error: -}> #> snmpget -M -}> -}/usr/local/share/snmp/mibs:/usr/local/share/snmp/CISCO:/usr/local/ -}share/snmp -}> /CISCO/dipendenze -c public 10.212.0.240 1.3.6.1.4.1.9.9.48.1.1.1.2 -}> -}> Error in packet -}> Reason: (noSuchName) There is no such variable name in this MIB. -}> Failed object: SNMPv2-SMI::enterprises.9.9.48.1.1.1.2 -} -}This is a column object - not leaf object. -} -}You need to append the table index value to the above OID. -}In this case the index is CiscoMemoryPoolTypes -} -} 1: processor memory -} 2: i/o memory -} 3: pci memory -} 4: fast memory -} 5: multibus memory -} -}-sg -} -}> -}> I have mibs inside the dirs mentioned in the command line. -}> In the first dir I have mibs installed by net-snmp 5.1.3.1, in -}the other 2 -}> dirs I have following mibs: -}> #> ls CISCO -}> CISCO-FIREWALL-MIB-V1SMI.my CISCO-GENERAL-TRAPS.my -}> CISCO-MEMORY-POOL-MIB-V1SM1.my CISCO-PROCESS-MIB-V1SMI.my -}> CISCO-SYSLOG-MIB-V1SMI.my RFC1213-MIB.my -}> #> ls dipendenze -}> SNMP-TARGET-MIB.txt SNMP-NOTIFICATION-MIB.txt -}> HOST-RESOURCES-MIB.txt SNMP-USER-BASED-SM-MIB.txt -}> IANAifType-MIB.txt SNMP-VIEW-BASED-ACM-MIB.txt -}> IF-MIB.txt SNMPv2-MIB.txt -}> IP-MIB.txt SNMPv2-SMI.txt -}> NET-SNMP-AGENT-MIB.txt SNMPv2-TC.txt -}> NET-SNMP-MIB.txt SNMPv2-TM.txt -}> NOTIFICATION-LOG-MIB.txt TCP-MIB.txt -}> RFC1155-SMI.txt UCD-DEMO-MIB.txt -}> SNMP-COMMUNITY-MIB.txt UCD-DLMOD-MIB.txt -}> SNMP-FRAMEWORK-MIB.txt UCD-SNMP-MIB.txt -}> SNMP-MPD-MIB.txt UDP-MIB.txt -}> -}> May anyone help me ? -}> -}> Regards -}> -}> M.Borsani -}> -}> -}> -}> ------------------------------------------------------- -}> SF.Net email is Sponsored by the Better Software Conference & EXPO -}> September 19-22, 2005 * San Francisco, CA * Development -}Lifecycle Practices -}> Agile & Plan-Driven Development * Managing Projects & Teams * -}Testing & QA -}> Security * Process Improvement & Measurement * -}http://www.sqe.com/bsce5sf -}> _______________________________________________ -}> Nagios-users mailing list -}> Nagios-users at lists.sourceforge.net -}> https://lists.sourceforge.net/lists/listinfo/nagios-users -}> ::: Please include Nagios version, plugin version (-v) and OS -}when reporting any issue. -}> ::: Messages without supporting info will risk being sent to /dev/null -}> -} -}-- -} ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From srunschke at abit.de Wed Aug 10 09:42:15 2005 From: srunschke at abit.de (srunschke at abit.de) Date: Wed, 10 Aug 2005 09:42:15 +0200 Subject: Antwort: R: MIBs not found In-Reply-To: References: Message-ID: nagios-users-admin at lists.sourceforge.net schrieb am 10.08.2005 09:24:34: > I use OID mentioned in last mail because I found it in CISCO web site > http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Trans > late&objectInput=ciscoMemoryPoolName > > Using 1.3.6.1.4.1.9.9.48.1.1.1.2.5 I get an error message like: > "Unfortunately we could not translate the object > 1.3.6.1.4.1.9.9.48.1.1.1.2.5 you were looking for. We could however > translate a part of your object..." Well, the error message should tell you: The object you request does not exist, please review the OID you supplied. And ideally at this point you should have noticed that your OID is incorrect - it is too long ;) > Using the index for CiscoMemoryPoolTypes that you suggest me I still receive > same error, using "numbers" from 2 to 5, but I received a "good answer" with > 1. That's just because snmpget is probing a cut OID of the one you supplied and ends up at ciscoMemoryPoolName. > ERROR ANSWER: > Error in packet > Reason: (noSuchName) There is no such variable name in this MIB. > Failed object: SNMPv2-SMI::enterprises.9.9.48.1.1.1.2.5 > > GOOD ANSWER: > SNMPv2-SMI::enterprises.9.9.48.1.1.1.2.1 = STRING: "PIX system memory" Try 1.3.6.1.4.1.9.9.48.1.1.1.5 as OID ciscoMemoryPoolUsed (5) is not an attribute of ciscoMemoryPoolName (2), but of it's parent ciscoMemoryPoolEntry (1). sash -------------------------------------------------- Sascha Runschke Netzwerk Administration IT-Services ABIT AG Robert-Bosch-Str. 1 40668 Meerbusch Tel.:+49 (0) 2150.9153.226 Mobil:+49 (0) 173.5419665 mailto:SRunschke at abit.de http://www.abit.net http://www.abit-epos.net --------------------------------- Sicherheitshinweis zur E-Mail Kommunikation / Security note regarding email communication: http://www.abit.net/sicherheitshinweis.html ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ralph.Grothe at itdz-berlin.de Wed Aug 10 10:35:32 2005 From: Ralph.Grothe at itdz-berlin.de (Ralph.Grothe at itdz-berlin.de) Date: Wed, 10 Aug 2005 10:35:32 +0200 Subject: check_log deficiencies Message-ID: <6B893C5F2902D311A23F0090272854FB0575B7E0@litex001.lit.verwalt-berlin.de> Hi Subhendu, > most people subscribe to both lists and with a properly configigured > procmail discarding duplicates, x-posts are not a issue. Hm, can really every subscriber here be considered running procmail? But I would assume the majority of Nagios users being Unix-centric and thus accustomed to procmail-like configuration ;-) > Try the check_log2.pl in the contrib dir from the source > > It uses file position instead of diff. Great, this seems to be what I've been looking for. I should have been more adventurous exploring the stuff in contrib Also it seems more to my liking as it is implemented in Perl. Have a nice day Ralph ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ralph.Grothe at itdz-berlin.de Wed Aug 10 11:15:38 2005 From: Ralph.Grothe at itdz-berlin.de (Ralph.Grothe at itdz-berlin.de) Date: Wed, 10 Aug 2005 11:15:38 +0200 Subject: check_nsca Message-ID: <6B893C5F2902D311A23F0090272854FB0575B7E1@litex001.lit.verwalt-berlin.de> Hi, I've also set up a remote host to send passive checks (i.e. from Nagios server's persective I guess) to the Nagios server via send_nsca. This didn't require another Nagios instance on that remote host at all. But it required additional compilation of libmcrypt if you needed to do code authentication against common crypto systems, which I think is sensible. What needs to be done is written in the README of the source tarball of nsca. You also must make sure that the password string (cleartext, thus be restrictive with ownership and mode bits of that file) in send_nsca.cfg is the same as in nsca.cfg of the nsca daemon on your Nagios server. The same aggreement of course has to exist on the encryption algorithm. As for checking if things are working (before having set up a passive checking service in Nagios) it is quite easy. With my Nagios installation the command file is actually a FIFO (special file on Unix, don't know how this is handled on non-Unix OSes?), indicated by the leading "p" in the long listing's 1st field. $ ls -l /opt/sw/nagios/var/rw/nagios.cmd prw-rw---- 1 nagios nagcmd 0 Aug 10 11:07 /opt/sw/nagios/var/rw/nagios.cmd The IPC over FIFOs works that one process is writing into the FIFO while another is reading from it. The drawback is the blocking issue. If there is now writer the reader is blocked until something got written to the FIFO. So for a mere check, even while nagios isn't running, only the nsca daemon is required to be run (usually through inetd on the Nagios server), you could just do a cat or tail (or other reading command) on the FIFO. The format of what send_nsca reads from stdin on the remote host is also documented on the help screen of send_nsca. If it is correctly formated (i.e. No. of fields, field delimiter), and if IPC works between send_nsca and nsca on your Nagios server (i.e. cryptography as mentioned above is working) then the cat should output the check result. But maybe I'm totally wrong because I only recently started using Nagios and still may have a misconception of its working. Better trust on the gurus' answers. Regards Ralph > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Dj > kavanski > Sent: Monday, July 18, 2005 3:24 PM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] check_nsca > > > Hi D > > > > Does Nagios(ie 2.0b3) need to be installed on the remote system > running the send_nsca daemon? > > > > If you are using nsca does that mean you are also > implementing distribute > d monitoring? > > > > Thanks, > > ~DjK > > > > > > - Dj kavanski (bitsandbytes) > > > > ----------------------- > > This thread is located in the archive at this URL: > > http://www.nagiosexchange.org/nagios-users.34.0.html?&tx_maill > isttofaq_pi > 1[showUid]=8720 > > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Wed Aug 10 12:55:56 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Wed, 10 Aug 2005 06:55:56 -0400 (EDT) Subject: R: MIBs not found In-Reply-To: References: Message-ID: On Wed, 10 Aug 2005, Marco Borsani wrote: > Well, > > I use OID mentioned in last mail because I found it in CISCO web site > http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Trans > late&objectInput=ciscoMemoryPoolName > > Using 1.3.6.1.4.1.9.9.48.1.1.1.2.5 I get an error message like: > "Unfortunately we could not translate the object > 1.3.6.1.4.1.9.9.48.1.1.1.2.5 you were looking for. We could however > translate a part of your object..." > > Using the index for CiscoMemoryPoolTypes that you suggest me I still receive > same error, using "numbers" from 2 to 5, but I received a "good answer" with > 1. > > ERROR ANSWER: > Error in packet > Reason: (noSuchName) There is no such variable name in this MIB. > Failed object: SNMPv2-SMI::enterprises.9.9.48.1.1.1.2.5 > > GOOD ANSWER: > SNMPv2-SMI::enterprises.9.9.48.1.1.1.2.1 = STRING: "PIX system memory" > > ????? > That means that PIX does not track other memory types, just the system memory. Just because it is in a MIB does not mean it is always implemented. -- -sg ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jhardeman at clacorp.com Wed Aug 10 14:08:42 2005 From: jhardeman at clacorp.com (Joseph Hardeman) Date: Wed, 10 Aug 2005 08:08:42 -0400 Subject: Service State Latency Message-ID: <42F9EE4A.3060207@clacorp.com> An HTML attachment was scrubbed... URL: From nagios-user at proy.org Wed Aug 10 14:40:24 2005 From: nagios-user at proy.org (Patrick Proy) Date: Wed, 10 Aug 2005 14:40:24 +0200 Subject: MIBs not found In-Reply-To: References: Message-ID: <20050810124022.3564FACB3D@www.manubulon.com> Hi, In Cisco MIB, you have a TABLE entry at '1.3.6.1.4.1.9.9.48.1.1.1' In this table, you can have 1 or more 'memory pool' entries. On Cisco routers, you have 2 (IO mem and processor mem), on Pix (presumably ASA also), you only have one. For example to check memory on a router/pix : 1) Get all the OIDs starting by 1.3.6.1.4.1.9.9.48.1.1.1.2 (with snmpwalk for ex): you will get the name of memory pool(s), the index for them, and their numbers. Ex : the index for 'PIX Memory' would be '1' if you have the following entry : '1.3.6.1.4.1.9.9.48.1.1.1.2.1=PIX Memory' Don't think the index will always start by '1' : it's true in most cases, but the MIB doesn't say is HAS to be like that. 2) Check if memory is valid (index search in '1.3.6.1.4.1.9.9.48.1.1.1.4') Ex : with last example, would be '1.3.6.1.4.1.9.9.48.1.1.1.4.1' 3) get the used and free mem with the .5 and .6 entry. You can make additionnal checks with alternate/maxfree entries. On routers, you will have 2 values (IO & processor) with 2 indexes : you can add them or check them individually. OID list : http://www.manubulon.com/nagios/index_info.html#cisco Perl script for this : http://www.manubulon.com/nagios/snmp_mem.html ------------- You don't NEED to have the Cisco mibs to do a snmpwalk/snmpget with numeric OIDs, so either you get a coherent list of MIB files, or just erase them all ! (I don't use any except for reference). Patrick Nagios at proy DOT org http://www.manubulon.com/nagios/ -----Message d'origine----- De : nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] De la part de Marco Borsani Envoy? : mercredi 10 ao?t 2005 09:25 ? : Subhendu Ghosh Cc : NAGIOS Objet : R: [Nagios-users] MIBs not found Well, I use OID mentioned in last mail because I found it in CISCO web site http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Trans late&objectInput=ciscoMemoryPoolName Using 1.3.6.1.4.1.9.9.48.1.1.1.2.5 I get an error message like: "Unfortunately we could not translate the object 1.3.6.1.4.1.9.9.48.1.1.1.2.5 you were looking for. We could however translate a part of your object..." Using the index for CiscoMemoryPoolTypes that you suggest me I still receive same error, using "numbers" from 2 to 5, but I received a "good answer" with 1. ERROR ANSWER: Error in packet Reason: (noSuchName) There is no such variable name in this MIB. Failed object: SNMPv2-SMI::enterprises.9.9.48.1.1.1.2.5 GOOD ANSWER: SNMPv2-SMI::enterprises.9.9.48.1.1.1.2.1 = STRING: "PIX system memory" ????? Marco -}-----Messaggio originale----- -}Da: Subhendu Ghosh [mailto:sghosh at sghosh.org] -}Inviato: mercoledi 10 agosto 2005 3.08 -}A: Marco Borsani -}Cc: NAGIOS -}Oggetto: Re: [Nagios-users] MIBs not found -} -} -}On Tue, 9 Aug 2005, Marco Borsani wrote: -} -}> -}> Hi. -}> -}> I still try to wok with check_snmp, but problems persists. -}> -}> I am testing snmpget commands (that is used from check_snmp), -}but I see this -}> error: -}> #> snmpget -M -}> -}/usr/local/share/snmp/mibs:/usr/local/share/snmp/CISCO:/usr/local/ -}share/snmp -}> /CISCO/dipendenze -c public 10.212.0.240 1.3.6.1.4.1.9.9.48.1.1.1.2 -}> -}> Error in packet -}> Reason: (noSuchName) There is no such variable name in this MIB. -}> Failed object: SNMPv2-SMI::enterprises.9.9.48.1.1.1.2 -} -}This is a column object - not leaf object. -} -}You need to append the table index value to the above OID. -}In this case the index is CiscoMemoryPoolTypes -} -} 1: processor memory -} 2: i/o memory -} 3: pci memory -} 4: fast memory -} 5: multibus memory -} -}-sg -} -}> -}> I have mibs inside the dirs mentioned in the command line. -}> In the first dir I have mibs installed by net-snmp 5.1.3.1, in -}the other 2 -}> dirs I have following mibs: -}> #> ls CISCO -}> CISCO-FIREWALL-MIB-V1SMI.my CISCO-GENERAL-TRAPS.my -}> CISCO-MEMORY-POOL-MIB-V1SM1.my CISCO-PROCESS-MIB-V1SMI.my -}> CISCO-SYSLOG-MIB-V1SMI.my RFC1213-MIB.my -}> #> ls dipendenze -}> SNMP-TARGET-MIB.txt SNMP-NOTIFICATION-MIB.txt -}> HOST-RESOURCES-MIB.txt SNMP-USER-BASED-SM-MIB.txt -}> IANAifType-MIB.txt SNMP-VIEW-BASED-ACM-MIB.txt -}> IF-MIB.txt SNMPv2-MIB.txt -}> IP-MIB.txt SNMPv2-SMI.txt -}> NET-SNMP-AGENT-MIB.txt SNMPv2-TC.txt -}> NET-SNMP-MIB.txt SNMPv2-TM.txt -}> NOTIFICATION-LOG-MIB.txt TCP-MIB.txt -}> RFC1155-SMI.txt UCD-DEMO-MIB.txt -}> SNMP-COMMUNITY-MIB.txt UCD-DLMOD-MIB.txt -}> SNMP-FRAMEWORK-MIB.txt UCD-SNMP-MIB.txt -}> SNMP-MPD-MIB.txt UDP-MIB.txt -}> -}> May anyone help me ? -}> -}> Regards -}> -}> M.Borsani -}> -}> -}> -}> ------------------------------------------------------- -}> SF.Net email is Sponsored by the Better Software Conference & EXPO -}> September 19-22, 2005 * San Francisco, CA * Development -}Lifecycle Practices -}> Agile & Plan-Driven Development * Managing Projects & Teams * -}Testing & QA -}> Security * Process Improvement & Measurement * -}http://www.sqe.com/bsce5sf -}> _______________________________________________ -}> Nagios-users mailing list -}> Nagios-users at lists.sourceforge.net -}> https://lists.sourceforge.net/lists/listinfo/nagios-users -}> ::: Please include Nagios version, plugin version (-v) and OS -}when reporting any issue. -}> ::: Messages without supporting info will risk being sent to /dev/null -}> -} -}-- -} ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From administration at cultuzz.de Wed Aug 10 15:48:47 2005 From: administration at cultuzz.de (Frank Fuhrmann) Date: Wed, 10 Aug 2005 15:48:47 +0200 Subject: strange error Message-ID: <1123681727.7104.32.camel@localhost.localdomain> When I try to enable notification for all hosts in a particular hostgroup, I get the following errors: ----------------------------------------------------------------------- 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. ----------------------------------------------------------------------- The command file exists: $ ls -l /opt/nagios/var/rw/ insgesamt 8 drwxrws--- 2 nagios nogroup 4096 2005-08-10 13:26 . drwxrwxr-x 4 nagios nogroup 4096 2005-08-10 13:40 .. prw-rw---- 1 nagios nogroup 0 2005-08-10 13:26 nagios.cmd Nagios is running and check_external_commands is set to 1 in nagios.cfg. $ ps ax | grep nagios 23160 ? Ss 0:00 /opt/nagios/bin/nsca -c /opt/nagios/etc/nsca.cfg 2856 ? Ss 0:00 /opt/nagios/bin/nagios -d /opt/nagios/etc/nagios.cfg What is the problem here? Frank -- Frank Fuhrmann Cultuzz Digital Media GmbH ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pete at stuff-done.co.uk Wed Aug 10 15:56:13 2005 From: pete at stuff-done.co.uk (Pete Dewell) Date: Wed, 10 Aug 2005 14:56:13 +0100 Subject: strange error In-Reply-To: <1123681727.7104.32.camel@localhost.localdomain> References: <1123681727.7104.32.camel@localhost.localdomain> Message-ID: <42FA077D.1050804@stuff-done.co.uk> Change the permissions on the nagios.cmd file to 666. Or change the user/group that your nagios dameon is running as to nagios:nogroup. I find that changing the permissions is a quick'n'dirty fix for this problem Pete Dewell Frank Fuhrmann wrote: > When I try to enable notification for all hosts in a particular > hostgroup, I get the following errors: > > ----------------------------------------------------------------------- > 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. > ----------------------------------------------------------------------- > > The command file exists: > > $ ls -l /opt/nagios/var/rw/ > insgesamt 8 > drwxrws--- 2 nagios nogroup 4096 2005-08-10 13:26 . > drwxrwxr-x 4 nagios nogroup 4096 2005-08-10 13:40 .. > prw-rw---- 1 nagios nogroup 0 2005-08-10 13:26 nagios.cmd > > Nagios is running and check_external_commands is set to 1 in nagios.cfg. > > $ ps ax | grep nagios > 23160 ? Ss 0:00 /opt/nagios/bin/nsca > -c /opt/nagios/etc/nsca.cfg > 2856 ? Ss 0:00 /opt/nagios/bin/nagios > -d /opt/nagios/etc/nagios.cfg > > > What is the problem here? > > Frank > -- Pete Dewell | Stuff Done pete at stuff-done.co.uk ** The information contained in this message, including any attachment, is confidential and may be privileged or otherwise protected from disclosure. The information is intended only for the person or entity to which it is addressed. If you are not the intended recipient, please contact the sender and delete this message from your system. Any review, re-transmission, distribution or other use of this information by persons or entities other than the intended recipient is prohibited. * ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Wed Aug 10 16:31:33 2005 From: marc at ena.com (Marc Powell) Date: Wed, 10 Aug 2005 09:31:33 -0500 Subject: strange error Message-ID: Changing the permissions is only a temporary fix. The next time you restart nagios they're just going to go back to what they were. One correct solution is to use group permissions as you touched on although 'nogroup' might not be appropriate depending on what that's indicating -- http://nagios.sourceforge.net/docs/1_0/commandfile.html -- Marc > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Pete Dewell > Sent: Wednesday, August 10, 2005 8:56 AM > To: Frank Fuhrmann > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] strange error > > Change the permissions on the nagios.cmd file to 666. > > Or change the user/group that your nagios dameon is running as to > nagios:nogroup. > > I find that changing the permissions is a quick'n'dirty fix for this > problem > > Pete Dewell > > Frank Fuhrmann wrote: > > When I try to enable notification for all hosts in a particular > > hostgroup, I get the following errors: > > > > ----------------------------------------------------------------------- > > 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. > > ----------------------------------------------------------------------- > > > > The command file exists: > > > > $ ls -l /opt/nagios/var/rw/ > > insgesamt 8 > > drwxrws--- 2 nagios nogroup 4096 2005-08-10 13:26 . > > drwxrwxr-x 4 nagios nogroup 4096 2005-08-10 13:40 .. > > prw-rw---- 1 nagios nogroup 0 2005-08-10 13:26 nagios.cmd > > > > Nagios is running and check_external_commands is set to 1 in nagios.cfg. > > > > $ ps ax | grep nagios > > 23160 ? Ss 0:00 /opt/nagios/bin/nsca > > -c /opt/nagios/etc/nsca.cfg > > 2856 ? Ss 0:00 /opt/nagios/bin/nagios > > -d /opt/nagios/etc/nagios.cfg > > > > > > What is the problem here? ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Wed Aug 10 16:40:55 2005 From: marc at ena.com (Marc Powell) Date: Wed, 10 Aug 2005 09:40:55 -0500 Subject: No service notifications Message-ID: [snip] > this... > > notification_options w,u,c,r > > was missing in my minimal.cfg > > Now I'm the first one to admit that I may have messed up my configs or > commented out a config that included notification_options for > services. But by just using the default config files I was not able to > receive service notifications. I will mention that bigger.cfg DOES > include the notification_options directive in the service checks. I > commented this file out when I started to build my config so I didn't > really take a look at it. I just used minimal.cfg. But that's just my > experience which seems to be similar to the original posting. I was > using 2b3. I've submitted a patch to add it to minimal.cfg. -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ralph.Grothe at itdz-berlin.de Wed Aug 10 16:49:20 2005 From: Ralph.Grothe at itdz-berlin.de (Ralph.Grothe at itdz-berlin.de) Date: Wed, 10 Aug 2005 16:49:20 +0200 Subject: On usage of check_procs Message-ID: <6B893C5F2902D311A23F0090272854FB0575B7E5@litex001.lit.verwalt-berlin.de> Hello, I have a little question regarding the usage of check_procs. Somehow I feel the usage of check_procs could well be overkill because I only want to monitor if a certain single process (that doesn't fork) is still running. I know that writing a minimal "plug-in" for this purpose would be rediculously simple, like e.g. it wouldn't need much more than these two shell lines (n.b. platform being hpux, that's why the setting of env UNIX95 here, which might look odd to you): set -- $(UNIX95= ps -o pid= -o ppid= -C cron) ( if [[ $2 -eq 1 ]] && kill -0 $1; then rc=0; echo OK; else rc=2; echo CRITICAL; fi; return $rc ) OK 0 Nevertheless I'd like to use the ready made check_procs. But I'm unsure about the correct usage of the ranges type of arguments for the options -w and -c. Since either the process to monitor is running (which would be OK), or otherwise is not running (which would be CRITICLA), it doesn't make much sense to me to specify ranges (of numbers of processes) I thought I could use the check_procs for my purpose in such a (silly?) manner. Would that be one possible way how to check a single process for existence in the proc table? (well, if it was an un-wait-ed for child it could well be a zombie, so maybe a more sophisticated state check too was necessary?) # id uid=0(root) gid=3(sys) # sleep 1000 & [1] 24590 # /usr/local/nagios/libexec/check_procs -m PROCS -w 1:1 -c 1:1 -p $$ -u 0 -C sleep PROCS OK: 1 process with PPID = 23629, UID = 0 (root), command name 'sleep' # echo $? 0 # kill %1 # /usr/local/nagios/libexec/check_procs -m PROCS -w 1:1 -c 1:1 -p $$ -u 0 -C sleep PROCS CRITICAL: 0 processes with PPID = 23629, UID = 0 (root), command name 'sleep' [1] + Terminated sleep 1000 & # echo $? 2 Regards Ralph ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Wed Aug 10 17:11:02 2005 From: ae at op5.se (Andreas Ericsson) Date: Wed, 10 Aug 2005 17:11:02 +0200 Subject: On usage of check_procs In-Reply-To: <6B893C5F2902D311A23F0090272854FB0575B7E5@litex001.lit.verwalt-berlin.de> References: <6B893C5F2902D311A23F0090272854FB0575B7E5@litex001.lit.verwalt-berlin.de> Message-ID: <42FA1906.2070203@op5.se> Ralph.Grothe at itdz-berlin.de wrote: > Hello, > > I have a little question regarding the usage of check_procs. > > Somehow I feel the usage of check_procs could well be overkill > because I only want to monitor if a certain single process (that > doesn't fork) is still running. > check_procs will do this for you. > I know that writing a minimal "plug-in" for this purpose would be > rediculously simple, like > > e.g. it wouldn't need much more than these two shell lines > (n.b. platform being hpux, that's why the setting of env UNIX95 > here, which might look odd to you): > > > > set -- $(UNIX95= ps -o pid= -o ppid= -C cron) > ( if [[ $2 -eq 1 ]] && kill -0 $1; then rc=0; echo OK; else rc=2; > echo CRITICAL; fi; return $rc ) > OK > 0 > This 2-line shell-script will actually consume a great deal more CPU cycles than simply using check_procs, because it needs to invoke several subshells. > > > Nevertheless I'd like to use the ready made check_procs. > > But I'm unsure about the correct usage of the ranges type of > arguments for the options -w and -c. > > Since either the process to monitor is running (which would be > OK), > or otherwise is not running (which would be CRITICLA), > it doesn't make much sense to me to specify ranges (of numbers of > processes) > > I thought I could use the check_procs for my purpose in such a > (silly?) manner. > Would that be one possible way how to check a single process for > existence in the proc table? > (well, if it was an un-wait-ed for child it could well be a > zombie, so maybe a more sophisticated state check too was > necessary?) > check_procs -m PROCS -w 1:1 -c 1:1 -s RDS -C sleep will show only the 'sleep' processes in Running (or Runnable), D (Dormant, uninterruptable IO), S (Sleeping, interruptable IO) mode, which is more or less the states that aren't crashed. Some systems have the W (Paging) state as well, but I'm not sure about AIX. > > > # id > uid=0(root) gid=3(sys) > # sleep 1000 & > [1] 24590 > # /usr/local/nagios/libexec/check_procs -m PROCS -w 1:1 -c 1:1 -p > $$ -u 0 -C sleep > PROCS OK: 1 process with PPID = 23629, UID = 0 (root), command > name 'sleep' > # echo $? > 0 > # kill %1 > # /usr/local/nagios/libexec/check_procs -m PROCS -w 1:1 -c 1:1 -p > $$ -u 0 -C sleep > PROCS CRITICAL: 0 processes with PPID = 23629, UID = 0 (root), > command name 'sleep' > [1] + Terminated sleep 1000 & > # echo $? > 2 > > > > Regards > Ralph > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tom.brown at goodtechnology.com Wed Aug 10 17:36:40 2005 From: tom.brown at goodtechnology.com (Tom Brown) Date: Wed, 10 Aug 2005 16:36:40 +0100 Subject: NRPE - Formatting Issue Message-ID: <42FA1F08.5080400@goodtechnology.com> Hi If i run a script locally i get the following output ./check_chassis.sh Health SEVERITY;COMPONENT Ok;Fans Ok;Intrusion Ok;Memory Ok;Power Supplies Ok;Processors Ok;Temperatures Ok;Voltages Ok;Hardware Log however if i run that using nrpe i get the following # ../libexec/check_nrpe xxxxss1 -c check_chassis Health and thats it - Is there anyway to get nrpe to parse more than the first line as output? Or Is there another way to have the first result executed remotely? thanks ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Wed Aug 10 17:44:22 2005 From: marc at ena.com (Marc Powell) Date: Wed, 10 Aug 2005 10:44:22 -0500 Subject: On usage of check_procs Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Ralph.Grothe at itdz-berlin.de > Sent: Wednesday, August 10, 2005 9:49 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] On usage of check_procs > > Hello, > > I have a little question regarding the usage of check_procs. > > Somehow I feel the usage of check_procs could well be overkill > because I only want to monitor if a certain single process (that > doesn't fork) is still running. > [snip] > Nevertheless I'd like to use the ready made check_procs. > > But I'm unsure about the correct usage of the ranges type of > arguments for the options -w and -c. > > Since either the process to monitor is running (which would be > OK), > or otherwise is not running (which would be CRITICLA), > it doesn't make much sense to me to specify ranges (of numbers of > processes) Of course not in this specific usage. If you had a process that spawned a number of children (ala apache) then ranges make sense. > I thought I could use the check_procs for my purpose in such a > (silly?) manner. > Would that be one possible way how to check a single process for > existence in the proc table? By example -- ./check_procs -c 1:1 -C init OK - 1 processes running with command name init > (well, if it was an un-wait-ed for child it could well be a > zombie, so maybe a more sophisticated state check too was > necessary?) > Use the -s flag as appropriate. [mpowell at gemini libexec]$ ./check_procs -c 1:1 -C init -s Z CRITICAL - 0 processes running with command name init, STATE = Z [mpowell at gemini libexec]$ ./check_procs -c 1:1 -C init -s S OK - 1 processes running with command name init, STATE = S -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Wed Aug 10 17:50:01 2005 From: marc at ena.com (Marc Powell) Date: Wed, 10 Aug 2005 10:50:01 -0500 Subject: NRPE - Formatting Issue Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Tom Brown > Sent: Wednesday, August 10, 2005 10:37 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] NRPE - Formatting Issue > > Hi > > If i run a script locally i get the following output > > ./check_chassis.sh > Health > > > SEVERITY;COMPONENT > Ok;Fans > Ok;Intrusion > Ok;Memory > Ok;Power Supplies > Ok;Processors > Ok;Temperatures > Ok;Voltages > Ok;Hardware Log > > however if i run that using nrpe i get the following > > # ../libexec/check_nrpe xxxxss1 -c check_chassis > Health > > and thats it - Is there anyway to get nrpe to parse more than the first > line as output? Or Is there another way to have the first result > executed remotely? One line of output is the nagios standard. This appears to be a custom plugin so you'll need change your output to be all on one line. You could use '
's between the objects if you like the multi-line display in the web interface and/or substitute them with \n's when sending notifications. http://nagiosplug.sourceforge.net/developer-guidelines.html#AEN32 Alternately, you could hack NRPE, the nagios daemon and the CGI's to handle multi-line output. The first method is more practical IMHO. -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jnichols at pbp.net Wed Aug 10 18:04:40 2005 From: jnichols at pbp.net (Jonathan Nichols) Date: Wed, 10 Aug 2005 09:04:40 -0700 Subject: LinuxExpo, anyone there? In-Reply-To: <3d2eb72a05080819392b3d7a25@mail.gmail.com> References: <3d2eb72a05080819392b3d7a25@mail.gmail.com> Message-ID: <42FA2598.7030303@pbp.net> Taylor Dondich wrote: > I'll be at LinuxExpo all day Tuesday and Wednesday, and part of > Friday. Was wondering if there was anyone on the list that wanted to > get together. I'll be speaking at the Nagios BoF meeting, and I'll be > taking question on Fruity and regarding the new Status Viewer project > we released. > > But it'd be great to just talk to some people and hang out. > I'm going to be up there, but I don't know if I'll be able to stay for the BoF sessions. I have no idea why they scheduled those so late. Caltrain runs only about every hour or so after 7pm. :( ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Wed Aug 10 18:28:47 2005 From: marc at ena.com (Marc Powell) Date: Wed, 10 Aug 2005 11:28:47 -0500 Subject: NRPE - Formatting Issue Message-ID: > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > > admin at lists.sourceforge.net] On Behalf Of Tom Brown > > Sent: Wednesday, August 10, 2005 10:37 AM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] NRPE - Formatting Issue > > > > Hi > > > > If i run a script locally i get the following output > > > > ./check_chassis.sh > > Health > > > > > > SEVERITY;COMPONENT > > Ok;Fans > > Ok;Intrusion > > Ok;Memory > > Ok;Power Supplies > > Ok;Processors > > Ok;Temperatures > > Ok;Voltages > > Ok;Hardware Log > > > > however if i run that using nrpe i get the following > > > > # ../libexec/check_nrpe xxxxss1 -c check_chassis > > Health > > > > and thats it - Is there anyway to get nrpe to parse more than the > first > > line as output? Or Is there another way to have the first result > > executed remotely? > > One line of output is the nagios standard. This appears to be a custom > plugin so you'll need change your output to be all on one line. You > could use '
's between the objects if you like the multi-line display > in the web interface and/or substitute them with \n's when sending > notifications. > > http://nagiosplug.sourceforge.net/developer-guidelines.html#AEN32 > > Alternately, you could hack NRPE, the nagios daemon and the CGI's to > handle multi-line output. The first method is more practical IMHO. Sorry to chase my own post but you could also think about it differently. If they're all OK, you really don't need to see all that output, just write out 'All OK' or whatever. IFF something is critical or warning, only output thost specific items 'CRITICAL: One Processor Missing; Intrusion Detected'. -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From matthias at waltsgott.de Wed Aug 10 18:40:25 2005 From: matthias at waltsgott.de (Matthias Waltsgott) Date: Wed, 10 Aug 2005 18:40:25 +0200 Subject: Timeout issue with check_mysql Message-ID: <200508101640.j7AGeIrh021407@l3-7.domainxyz.de> Hi all, it seems there is no timeout option with the check_mysql plugin like the option -t used by other plugins. If you check a mysql service on a server which is offline the process hangs until the service check times out from nagios. Is there any other check_mysql version which supports a timeout parameter? Any idea how to deal with that problem? Regards, Matthias ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From aaronhcarr at gmail.com Wed Aug 10 19:36:04 2005 From: aaronhcarr at gmail.com (Aaron Carr) Date: Wed, 10 Aug 2005 13:36:04 -0400 Subject: check_by_ssh banner bug? Message-ID: I've searched the archives, and I found that someone asked on 2004-09-17 and again on 2004-09-23 if there is a fix for check_by_ssh not working if there is a banner set. I didn't however see any answer whatsoever. So I'd like to know if anyone knows any workarounds to removing/disabling the sshd banner (since company policy will not allow me to do so). I tried multiple variations of clearing the screen, then piping to the check command, but when I tried those, the plugin would ust timeout. The only way I got them to work was when I moved /etc/issue to some alternate filename. Any help with this would be greatly appreciated. Aaron ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kevin at mica.net Wed Aug 10 19:46:57 2005 From: kevin at mica.net (Kevin Hanser) Date: Wed, 10 Aug 2005 13:46:57 -0400 Subject: [Fwd: RE: No service notifications] Message-ID: <1123696017.26419.7.camel@timmy.hq.mica.net> Yep, as many have pointed out, I was missing my notification_options. I replied back to Chester's message yesterday but apparently forgot to cc: the list. thanx for all the quick responses! k -------- Forwarded Message -------- > From: Kevin Hanser > To: Hosey, Chester > Subject: RE: [Nagios-users] No service notifications > Date: Tue, 09 Aug 2005 16:14:34 -0400 > > Ok, that explains why my bogus host wasn't giving notifications for the > service... Makes sense :) > > I wasn't receiving notifications on any other services for hosts that > were up though as well, but apparently I didn't have any > notification_options set (I had tried adding that on the bogus host w/no > effect, but not on a host that was actually up..). > > Once I added notification_options to my service definitions, I am now > receiving notifications! > > thanx!!! > > k > > On Tue, 2005-08-09 at 15:45 -0400, Hosey, Chester wrote: > > If you receive host down notifications (you say you do), you won't get > > notifications for individual service failures. Read the Nagios docs for > > more information. > > > > Besides, if you have HTTP, SSH, FTP, time, rsh, Samba, and NFS running > > on the machine, if the power cord gets kicked out do you REALLY want > > notifications for each of those services, or do you just want to know > > whether the host is down? > > > > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net > > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Kevin > > Hanser > > Sent: Tuesday, August 09, 2005 3:25 PM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] No service notifications > > > > > > Hello, > > > > I have searched the list and found similar problems to what I'm > > experiencing, but no solution yet.... I have recently installed Nagios > > v2.0b4 (this is my first Nagios install BTW) and have it configured to > > monitor some hosts, and services on those hosts. Everything that I see > > in the configuration seems to indicate that service notifications are > > enabled, as does the GUI interface. However, I never get service > > notifications. > > > > I set up a bogus host with a ping service to ping an IP address that I > > know isn't in use in our network. I get a host notification that the > > host itself is down, but I receive no notification on the ping > > service... In addition, I have other hosts (routers) that have > > interfaces down, but don't receive notification from that either. > > > > Here's how my config looks for the bogus service I set up: > > > > nagios.cfg has enable_notifications=1 > > > > I'm using the generic-service template from minimal.cfg, but have put it > > into servers.cfg: (I'm not using minimal.cfg, I just took some parts > > from it) > > > > # Generic service definition template - This is NOT a real service, just > > a template! > > > > define service{ > > name generic-service ; The 'name' of > > this service template > > active_checks_enabled 1 ; Active service checks > > are enabled > > passive_checks_enabled 1 ; Passive service checks > > are enabled/accepted > > parallelize_check 1 ; Active service checks > > should be parallelized (disabling this can lead to major performance > > problems) > > obsess_over_service 1 ; We should obsess over > > this service (if necessary) > > check_freshness 0 ; Default is to NOT > > check service 'freshness' > > notifications_enabled 1 ; Service notifications > > are enabled > > event_handler_enabled 1 ; Service event handler > > is enabled > > flap_detection_enabled 1 ; Flap detection is > > enabled > > failure_prediction_enabled 1 ; Failure prediction is > > enabled > > process_perf_data 1 ; Process performance > > data > > retain_status_information 1 ; Retain status > > information across program restarts > > retain_nonstatus_information 1 ; Retain non-status > > information across program restarts > > register 0 ; DONT REGISTER THIS > > DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE! > > } > > > > > > my host template is also the one from minimal.cfg: > > > > define host{ > > name generic-host ; The name of > > this host template > > notifications_enabled 1 ; Host notifications are > > enabled > > event_handler_enabled 1 ; Host event handler is > > enabled > > flap_detection_enabled 1 ; Flap detection is > > enabled > > failure_prediction_enabled 1 ; Failure prediction is > > enabled > > process_perf_data 1 ; Process performance > > data > > retain_status_information 1 ; Retain status > > information across program restarts > > retain_nonstatus_information 1 ; Retain non-status > > information across program restarts > > register 0 ; DONT REGISTER THIS > > DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE! > > } > > > > > > And my bogus host definintion looks like this: > > > > define host{ > > use generic-host ; Name of host > > template to use > > host_name bogus > > alias bogus host > > address 207.91.195.242 > > check_command check-host-alive > > max_check_attempts 10 > > notification_interval 120 > > notification_period 24x7 > > notification_options d,r > > contact_groups admins > > } > > > > (I receive host down notifications...) > > > > The ping service for the bogus host looks like this: > > > > define service{ > > use generic-service ; Name > > of service template to use > > host_name bogus > > service_description Ping > > is_volatile 0 > > check_period 24x7 > > max_check_attempts 4 > > normal_check_interval 5 > > retry_check_interval 1 > > contact_groups admins > > notification_interval 120 > > notification_period 24x7 > > notifications_enabled 1 > > check_command check_ping!100.0,20%!500.0,60% > > } > > > > I tried adding notification_options w,u,c,r in the ping service > > definition as well, but still no notifications... > > > > > > What else can I check to get my service notifications working? I'm > > really starting to like the interface and monitoring capabilities, but > > if I can't make notifications work that kind of defeats the point :) > > > > thanx! > > > > k > > > > > > > > > > > > > > ------------------------------------------------------- > > SF.Net email is Sponsored by the Better Software Conference & EXPO > > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > > Practices Agile & Plan-Driven Development * Managing Projects & Teams * > > Testing & QA Security * Process Improvement & Measurement * > > http://www.sqe.com/bsce5sf > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > > reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nuffers at tsainc.com Wed Aug 10 20:57:14 2005 From: nuffers at tsainc.com (nuffers at tsainc.com) Date: Wed, 10 Aug 2005 13:57:14 -0500 Subject: New Nagios UI Released! In-Reply-To: <20050810031634.2971E88B86@sc8-sf-spam1.sourceforge.net> References: <20050810031634.2971E88B86@sc8-sf-spam1.sourceforge.net> Message-ID: I downloaded the files and read some of the documentation. The documentation states that it supports Nagios 1.x and not for Nagios 2.x Any ETA on Nagios 2.x support? Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From Millard.Matt at principal.com Wed Aug 10 21:23:38 2005 From: Millard.Matt at principal.com (Millard, Matt) Date: Wed, 10 Aug 2005 14:23:38 -0500 Subject: check_by_ssh banner bug? Message-ID: <6201DF063335254BA0D6AA7053D101170A62A681@pfgdsmmbx006.principalusa.corp.principal.com> We had to actually modify the source of check_by_ssh to ignore anything in the banner. We wrap our banner with a standard couple of lines so it wasn't too difficult. ******************************** N O T I C E ********************************* the rest of the banner goes here ************************************************************************ ****** Attached is the patch that we used with the hardcoded banner lines in it if it will help you out. It's not too elegant, but it got the job done for us. Matt -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Aaron Carr Sent: Wednesday, August 10, 2005 12:36 PM To: nagiosplug-help at lists.sourceforge.net Cc: Nagios User List Subject: [Nagios-users] check_by_ssh banner bug? I've searched the archives, and I found that someone asked on 2004-09-17 and again on 2004-09-23 if there is a fix for check_by_ssh not working if there is a banner set. I didn't however see any answer whatsoever. So I'd like to know if anyone knows any workarounds to removing/disabling the sshd banner (since company policy will not allow me to do so). I tried multiple variations of clearing the screen, then piping to the check command, but when I tried those, the plugin would ust timeout. The only way I got them to work was when I moved /etc/issue to some alternate filename. Any help with this would be greatly appreciated. Aaron ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -----Message Disclaimer----- This e-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 and exempt from disclosure under applicable law. If you are not the intended recipient, any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by reply email to Connect at principal.com and delete or destroy all copies of the original message and attachments thereto. Email sent to or from the Principal Financial Group or any of its member companies may be retained as required by law or regulation. Nothing in this message is intended to constitute an Electronic signature for purposes of the Uniform Electronic Transactions Act (UETA) or the Electronic Signatures in Global and National Commerce Act ("E-Sign") unless a specific statement to the contrary is included in this message. -------------- next part -------------- A non-text attachment was scrubbed... Name: check_by_ssh.c.patch0 Type: application/octet-stream Size: 2242 bytes Desc: check_by_ssh.c.patch0 URL: From jstork at pbco.ca Wed Aug 10 21:25:44 2005 From: jstork at pbco.ca (Johnny Stork) Date: Wed, 10 Aug 2005 12:25:44 -0700 Subject: Problem with check_mailq script and nrpe Message-ID: <"H000006700092758.1123701943.pbco-server2.pbco.ca*"@MHS> I have s strange problem where I can run the following command on SERVER2 (192.168.101.12) ./check_mailq -w 1 -c 5 WARNING: mailq is 1 (threshold w = 1)|unsent=1;1;5;0 Which correctly shows 1 message in ther sendmail que. SERVER2 is running NRPE with the following nrpe.cfg entry... command[check_mailq]=/usr/local/nagios/libexec/check_mailq -w 2 -c 5 Nagios is actually running on SERVER4 (192.168.101.14). Below is the command I run and its output from SERVER4, the Nagios Server. ./check_nrpe -H 192.168.101.12 -c check_mailq OK: mailq is empty|unsent=0;2;5;0 Which does not coincide with the output of check_mailq run directly on SERVER2? Any suggestions? Systems: SERVER4 RH 9 Nagios 1.2 SERVER2 RHEL 4 ----------------------------------------------------------- Johnny Stork Information & Technology Manager Provincial Blood Coordinating Office #301 - 1190 Hornby St. Vancouver, BC (V6Z-2K5) 604-806-8840 -------------- next part -------------- An HTML attachment was scrubbed... URL: From ae at op5.se Wed Aug 10 22:26:38 2005 From: ae at op5.se (Andreas Ericsson) Date: Wed, 10 Aug 2005 22:26:38 +0200 Subject: Timeout issue with check_mysql In-Reply-To: <200508101640.j7AGeIrh021407@l3-7.domainxyz.de> References: <200508101640.j7AGeIrh021407@l3-7.domainxyz.de> Message-ID: <42FA62FE.9020403@op5.se> Matthias Waltsgott wrote: > Hi all, > > it seems there is no timeout option with the check_mysql plugin like the > option -t used by other plugins. > If you check a mysql service on a server which is offline the process hangs > until the service check times out from nagios. > > Is there any other check_mysql version which supports a timeout parameter? > I've made some fair few modifications to the plugins, making them smaller, more efficient, less buggy, and more feature-rich. The check_mysql in that package supports the --timeout argument. > Any idea how to deal with that problem? > You can download it at http://oss.op5.se/nagios If the build-process fails, you should try running sh tools/setup If that doesn't work, gimme a holler and I'll fix it. Cheers. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Wed Aug 10 22:36:35 2005 From: marc at ena.com (Marc Powell) Date: Wed, 10 Aug 2005 15:36:35 -0500 Subject: Problem with check_mailq script and nrpe Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Johnny Stork > Sent: Wednesday, August 10, 2005 2:26 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Problem with check_mailq script and nrpe > > > I have s strange problem where I can run the following command on SERVER2 > (192.168.101.12) > > ./check_mailq -w 1 -c 5 > WARNING: mailq is 1 (threshold w = 1)|unsent=1;1;5;0 > > Which correctly shows 1 message in ther sendmail que. > > SERVER2 is running NRPE with the following nrpe.cfg entry... > > command[check_mailq]=/usr/local/nagios/libexec/check_mailq -w 2 -c 5 > > Nagios is actually running on SERVER4 (192.168.101.14). Below is the > command I run and its output from SERVER4, the Nagios Server. > > ./check_nrpe -H 192.168.101.12 -c check_mailq > OK: mailq is empty|unsent=0;2;5;0 > > Which does not coincide with the output of check_mailq run directly on > SERVER2? Were you performing your tests on SERVER2 as the user that NRPE is running as or as root? I'm almost certain that the mailqueue is not readable by non-root users with a default install, especially with a possibly SELinux enabled OS. -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lists at localguru.de Wed Aug 10 22:46:15 2005 From: lists at localguru.de (Marcus Sobchak) Date: Wed, 10 Aug 2005 22:46:15 +0200 Subject: nagios and sendmail log entries (did not issue MAIL/EXPN/VRFY/ETRN) Message-ID: <200508102246.16879.lists@localguru.de> Hi, nagios generates the follwing maillog entry each time it checks my sendmail (8.12.3): Aug 10 21:03:28 walter sm-mta[24243]: j7AJ3SoQ024243: nagios at urps.uni-bielefeld.de [129.70.12.152] did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA # 'check_smtp' command definition define command { ? ? ? ? command_name ? ?check_smtp ? ? ? ? command_line ? ?/usr/lib/nagios/plugins/check_smtp -H $HOSTADDRESS$ } using nagios 2:1.3-cvs.20050402-2.sarge.1 (debian sarge on sparc20) Any ideas how to disable this and make nagios doing a quite and silent job? Thanks, Marcus ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Wed Aug 10 23:04:10 2005 From: ae at op5.se (Andreas Ericsson) Date: Wed, 10 Aug 2005 23:04:10 +0200 Subject: nagios and sendmail log entries (did not issue MAIL/EXPN/VRFY/ETRN) In-Reply-To: <200508102246.16879.lists@localguru.de> References: <200508102246.16879.lists@localguru.de> Message-ID: <42FA6BCA.2040905@op5.se> Marcus Sobchak wrote: > Hi, > > nagios generates the follwing maillog entry each time it checks my sendmail > (8.12.3): > > Aug 10 21:03:28 walter sm-mta[24243]: j7AJ3SoQ024243: > nagios at urps.uni-bielefeld.de [129.70.12.152] did not issue > MAIL/EXPN/VRFY/ETRN during connection to MTA > > # 'check_smtp' command definition > define command { > command_name check_smtp > command_line /usr/lib/nagios/plugins/check_smtp -H $HOSTADDRESS$ > } > > > using nagios 2:1.3-cvs.20050402-2.sarge.1 (debian sarge on sparc20) > > Any ideas how to disable this and make nagios doing a quite and silent job? > You could do some magic with check_tcp and adding several SEND strings, or you could change your MTA daemon to something that follows the RFC. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Wed Aug 10 23:12:41 2005 From: marc at ena.com (Marc Powell) Date: Wed, 10 Aug 2005 16:12:41 -0500 Subject: nagios and sendmail log entries (did not issue MAIL/EXPN/VRFY/ETRN) Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Marcus Sobchak > Sent: Wednesday, August 10, 2005 3:46 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] nagios and sendmail log entries (did not issue > MAIL/EXPN/VRFY/ETRN) > > Hi, > > nagios generates the follwing maillog entry each time it checks my > sendmail > (8.12.3): > > Aug 10 21:03:28 walter sm-mta[24243]: j7AJ3SoQ024243: > nagios at urps.uni-bielefeld.de [129.70.12.152] did not issue > MAIL/EXPN/VRFY/ETRN during connection to MTA > > # 'check_smtp' command definition > define command { > ? ? ? ? command_name ? ?check_smtp > ? ? ? ? command_line ? ?/usr/lib/nagios/plugins/check_smtp -H > $HOSTADDRESS$ > } > > > using nagios 2:1.3-cvs.20050402-2.sarge.1 (debian sarge on sparc20) > > Any ideas how to disable this and make nagios doing a quite and silent > job? The check_smtp plugin in that release is a pretty simple plugin that connects to the SMTP server, looks for the banner then disconnects, that's it. It doesn't have any functionality to actually begin or complete an SMTP transaction, which would be required to avoid that error. Those errors are harmless and informational only as far as sendmail is concerned. If you're really concerned about them the same plugin in the 1.4 release has enhanced functionality to start an SMTP session or you might want to look at the check_email_loop.pl plugin in the contrib directory. -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kevin at mica.net Wed Aug 10 23:14:32 2005 From: kevin at mica.net (Kevin Hanser) Date: Wed, 10 Aug 2005 17:14:32 -0400 Subject: why can't a servicegroup have no members? Message-ID: <1123708472.12879.14.camel@timmy.hq.mica.net> I am running Nagios 2.0b4, and I'm trying to create some servicegroups for nice display and whatnot. I can get them to work fine, as long as I specify at least one member in the servicegroups definition... However, I'd like to create a servicegroup for "router interfaces", and I don't really want to type in every description for every router interface I have on every router, when I've already put it into the service definition. I see that I can specify servicegroups in the service definition and that would be perfect for me, except for one thing: nagios won't let me create a servicegroup w/out any members. I would like to create the servicegroup w/no members in its definition, and then use the "servicegroups" directive w/in the service definition to make each interface a member of the servicegroup. So I guess my question is... Why is the "members" directive required when defining a servicegroup? Thx! k ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Wed Aug 10 23:17:25 2005 From: marc at ena.com (Marc Powell) Date: Wed, 10 Aug 2005 16:17:25 -0500 Subject: nagios and sendmail log entries (did not issue MAIL/EXPN/VRFY/ETRN) Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Andreas Ericsson > Sent: Wednesday, August 10, 2005 4:04 PM > To: Marcus Sobchak > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] nagios and sendmail log entries (did not issue > MAIL/EXPN/VRFY/ETRN) > > Marcus Sobchak wrote: > > Hi, > > > > nagios generates the follwing maillog entry each time it checks my > sendmail > > (8.12.3): > > > > Aug 10 21:03:28 walter sm-mta[24243]: j7AJ3SoQ024243: > > nagios at urps.uni-bielefeld.de [129.70.12.152] did not issue > > MAIL/EXPN/VRFY/ETRN during connection to MTA > > [snip] > You could do some magic with check_tcp and adding several SEND strings, > or you could change your MTA daemon to something that follows the RFC. I'm curious. How is it that an e-mail server logging the fact that a connecting client didn't issue SMTP transaction commands against RFC? Which RFC is this disallowed in or are you generally saying that Sendmail isn't RFC compliant? -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lists at localguru.de Wed Aug 10 23:39:54 2005 From: lists at localguru.de (Marcus Sobchak) Date: Wed, 10 Aug 2005 23:39:54 +0200 Subject: nagios and sendmail log entries (did not issue MAIL/EXPN/VRFY/ETRN) In-Reply-To: References: Message-ID: <200508102339.55788.lists@localguru.de> Hi, On Wednesday 10 August 2005 23:12, Marc Powell wrote: > The check_smtp plugin in that release is a pretty simple plugin that > connects to the SMTP server, looks for the banner then disconnects, that's > it. It doesn't have any functionality to actually begin or complete an SMTP > transaction, which would be required to avoid that error. Those errors are > harmless and informational only as far as sendmail is concerned. If you're > really concerned about them the same plugin in the 1.4 release has enhanced > functionality to start an SMTP session okay, but which parameters do I have to set?! I just checked one of my old check_smtp binaries: /usr/local/bin$ ./check_smtp --version check_smtp (nagios-plugins 1.3.1) 1.9.2.2 This binary does NOT produce those sendmail logfile entries. Strange!!! > or you might want to look at the > check_email_loop.pl plugin in the contrib directory. seems not to be part of the debian package. Cheers, Marcus ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Wed Aug 10 23:56:52 2005 From: marc at ena.com (Marc Powell) Date: Wed, 10 Aug 2005 16:56:52 -0500 Subject: nagios and sendmail log entries (did not issue MAIL/EXPN/VRFY/ETRN) Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Marcus Sobchak > Sent: Wednesday, August 10, 2005 4:40 PM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] nagios and sendmail log entries (did not issue > MAIL/EXPN/VRFY/ETRN) > > Hi, > > On Wednesday 10 August 2005 23:12, Marc Powell wrote: > > The check_smtp plugin in that release is a pretty simple plugin that > > connects to the SMTP server, looks for the banner then disconnects, > that's > > it. It doesn't have any functionality to actually begin or complete an > SMTP > > transaction, which would be required to avoid that error. Those errors > are > > harmless and informational only as far as sendmail is concerned. If > you're > > really concerned about them the same plugin in the 1.4 release has > enhanced > > functionality to start an SMTP session > > okay, but which parameters do I have to set?! ./check_smtp -H my.mail.server -f marc at ena.com -w 10 -c 15 Worked just fine for me. Use --help to tailor it to your specific needs. > I just checked one of my old check_smtp binaries: > > /usr/local/bin$ ./check_smtp --version > check_smtp (nagios-plugins 1.3.1) 1.9.2.2 > > This binary does NOT produce those sendmail logfile entries. Strange!!! If it works, use it then. There's no reason you can't unless you were experiencing some specific bug or issue. > > or you might want to look at the > > check_email_loop.pl plugin in the contrib directory. > > seems not to be part of the debian package. I would hope that's not a limitation for you. Download the plugins package from sourceforge and get it from there. I'd hate to have to abide or be limited by what some random package maintainer thought was good for me. Maybe there's a separate plugins contrib package that you haven't installed? -extra maybe? *shrug* -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dave at thefranchisebuilders.com Thu Aug 11 00:01:36 2005 From: dave at thefranchisebuilders.com (David Millet) Date: Wed, 10 Aug 2005 15:01:36 -0700 Subject: testing URLs hosted locally Message-ID: <1123711296.13545.20.camel@localhost.localdomain> Hi everybody, I have a nagios server running on the same local network as some webservers. I'd like to set nagios up to check the websites as if checking from outside the network, but im not sure how to do that... I do have access to other hosts outside the network, so perhaps there's a way to set those outside hosts up to check the websites and report to nagios? has anybody found a way to check locally hosted websites from a nagios server that is on the same network? Thanks, David Millet -------------- next part -------------- An HTML attachment was scrubbed... URL: From marc at ena.com Thu Aug 11 00:09:05 2005 From: marc at ena.com (Marc Powell) Date: Wed, 10 Aug 2005 17:09:05 -0500 Subject: testing URLs hosted locally Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of David Millet > Sent: Wednesday, August 10, 2005 5:02 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] testing URLs hosted locally > > Hi everybody, > > I have a nagios server running on the same local network as some > webservers. I'd like to set nagios up to check the websites as if > checking from outside the network, but im not sure how to do that... I do > have access to other hosts outside the network, so perhaps there's a way > to set those outside hosts up to check the websites and report to nagios? > has anybody found a way to check locally hosted websites from a nagios > server that is on the same network? If you don't feel that testing them directly from your nagios box is sufficient (maybe you have a firewall you don't trust) then you have a few options available to you but they'll make you dependent on some external machine. First, if you had a proxy available you (squid or other) could use check_http from your nagios box to request the page through the proxy. You could also install NRPE on one of your remote boxes and run the check_http plugin from there. You could also use check_by_ssh to do the same. You could also use cron and send_nsca to run the plugin on the remote host and send the results to NSCA on your nagios host. Finally, you could install an instance of nagios on your remote host and do a minimal version of Distributed Monitoring. There are other ways but the above would be the easy options. -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lists at localguru.de Thu Aug 11 00:15:27 2005 From: lists at localguru.de (Marcus Sobchak) Date: Thu, 11 Aug 2005 00:15:27 +0200 Subject: nagios and sendmail log entries (did not issue MAIL/EXPN/VRFY/ETRN) In-Reply-To: References: Message-ID: <200508110015.28901.lists@localguru.de> Hi, On Wednesday 10 August 2005 23:56, Marc Powell wrote: > > okay, but which parameters do I have to set?! > > ./check_smtp -H my.mail.server -f marc at ena.com -w 10 -c 15 > > Worked just fine for me. Use --help to tailor it to your specific needs. Ah, great :-) I just figured that out myself: ?/usr/lib/nagios/plugins/check_smtp --from=<> -H mx.server.tdl I set sendmail's loglevel to 15 and checked what the old binary did: Aug 10 23:54:01 blacky sendmail[24911]: j7ALs1Ei024911: <-- MAIL FROM: Aug 10 23:54:01 blacky sendmail[24911]: j7ALs1Ei024911: --- 501 5.5.2 Syntax error in parameters scanning "FROM" Aug 10 23:54:01 blacky sendmail[24911]: j7ALs1Ei024911: <-- QUIT I seems that the old version did a -f by default and the forced syntax error is responsible for not logging, hehe funny! Thanks, Marcus ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From aloclarit at aol.com Thu Aug 11 02:11:57 2005 From: aloclarit at aol.com (aloclarit at aol.com) Date: Wed, 10 Aug 2005 20:11:57 -0400 Subject: service checks randomly disappear Message-ID: <8C76C206BEE2C93-A48-2E33@MBLK-M06.sysops.aol.com> guys I have a really weird problem. I've been running nagios 2.0b3 for months without hickups (except that it never remembers host acknowledgements/disabled host notifications after a restart..and yes I have that set in nagios.cfg!) But here is the big problem : I added 2 services for 2 databases and for some reason nagios has trouble being consistent with those 2 services. After I first added them the webinterface didn't show them.I had to refresh the page a few times then it showed up - only to disappear again a second later. It keeps doing that. One moment it have 15 services and after a page refresh it shows 17 services. Sometimes it shows 16 then 17 or 15 again. This is really driving me nuts. I upgraded to 2.04b today but no luck. the funny thing is that this ONLY happens to those 2 services but I cannot see how they are different. I'm also checking these 2 services on another box - no problem at all. Then again, all other services on those2 boxes run fine too. I tried defining them seperately by box as well as in a hostgroup - no difference. Here are the 2 services: define service{ use generic-service hostgroup_name sdatabases service_description CONCURRENT TRANSACTIONS IN WAIT QUEUE check_command check_oracle_queue!--service-waits!bspstg!nagios!nagios!20!30 max_check_attempts 5 normal_check_interval 5 contact_groups admins,managers } define service{ use generic-service hostgroup_name sdatabases service_description CONCURRENT TRANSACTIONS check_command check_oracle_requests!--requests!bspstg!nagios!nagios!1!700!1000 max_check_attempts 5 normal_check_interval 5 contact_groups admins,managers } As I said these 2 are also defined on a devbox so instead of hostgroup_name it says host_name and instead of 'bspstg' it says 'bspdev' but none of that should matter. Here the services are totally consistent whereas in the sdatabases group they keep dis- and re-appearing. Anyone seen this ?? ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From aloclarit at aol.com Thu Aug 11 02:27:06 2005 From: aloclarit at aol.com (aloclarit at aol.com) Date: Wed, 10 Aug 2005 20:27:06 -0400 Subject: service checks randomly disappear In-Reply-To: <8C76C206BEE2C93-A48-2E33@MBLK-M06.sysops.aol.com> References: <8C76C206BEE2C93-A48-2E33@MBLK-M06.sysops.aol.com> Message-ID: <8C76C2289B605E3-A48-2EA3@MBLK-M06.sysops.aol.com> forgot to mention that whenever the service DOES show up and I click on it I usually get this error : Error: Service Status Not Found! however, if I keep refreshing the proper page will show up and then change back to the error again. Looks like it keeps loosing the service status info for these 2 services. -----Original Message----- From: aloclarit at aol.com To: nagios-users at lists.sourceforge.net Sent: Wed, 10 Aug 2005 20:11:57 -0400 Subject: [Nagios-users] service checks randomly disappear guys I have a really weird problem. I've been running nagios 2.0b3 for months without hickups (except that it never remembers host acknowledgements/disabled host notifications after a restart..and yes I have that set in nagios.cfg!) But here is the big problem : I added 2 services for 2 databases and for some reason nagios has trouble being consistent with those 2 services. After I first added them the webinterface didn't show them.I had to refresh the page a few times then it showed up - only to disappear again a second later. It keeps doing that. One moment it have 15 services and after a page refresh it shows 17 services. Sometimes it shows 16 then 17 or 15 again. This is really driving me nuts. I upgraded to 2.04b today but no luck. the funny thing is that this ONLY happens to those 2 services but I cannot see how they are different. I'm also checking these 2 services on another box - no problem at all. Then again, all other services on those2 boxes run fine too. I tried defining them seperately by box as well as in a hostgroup - no difference. Here are the 2 services: define service{ use generic-service hostgroup_name sdatabases service_description CONCURRENT TRANSACTIONS IN WAIT QUEUE check_command check_oracle_queue!--service-waits!bspstg!nagios!nagios!20!30 max_check_attempts 5 normal_check_interval 5 contact_groups admins,managers } define service{ use generic-service hostgroup_name sdatabases service_description CONCURRENT TRANSACTIONS check_command check_oracle_requests!--requests!bspstg!nagios!nagios!1!700!1000 max_check_attempts 5 normal_check_interval 5 contact_groups admins,managers } As I said these 2 are also defined on a devbox so instead of hostgroup_name it says host_name and instead of 'bspstg' it says 'bspdev' but none of that should matter. Here the services are totally consistent whereas in the sdatabases group they keep dis- and re-appearing. Anyone seen this ?? ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From aloclarit at aol.com Thu Aug 11 02:38:48 2005 From: aloclarit at aol.com (aloclarit at aol.com) Date: Wed, 10 Aug 2005 20:38:48 -0400 Subject: service checks randomly disappear In-Reply-To: <8C76C2289B605E3-A48-2EA3@MBLK-M06.sysops.aol.com> References: <8C76C206BEE2C93-A48-2E33@MBLK-M06.sysops.aol.com> <8C76C2289B605E3-A48-2EA3@MBLK-M06.sysops.aol.com> Message-ID: <8C76C242C6AED46-A7C-7C3@MBLK-M21.sysops.aol.com> did some more digging and indeed it apeears the status.dat file does not get updated most of the time. Whenever i get the error below I check status.dat and there is no entry for the service. If i keep refreshing till it shows up and then check status.dat the service appears in there. Makes sense i guess cause the webinterface relies on status.dat to display the stuff but why is status.dat not properly updated ? btw. just tried latest CVS - same prob. -----Original Message----- From: aloclarit at aol.com To: aloclarit at aol.com; nagios-users at lists.sourceforge.net Sent: Wed, 10 Aug 2005 20:27:06 -0400 Subject: Re: [Nagios-users] service checks randomly disappear forgot to mention that whenever the service DOES show up and I click on it I usually get this error : Error: Service Status Not Found! however, if I keep refreshing the proper page will show up and then change back to the error again. Looks like it keeps loosing the service status info for these 2 services. -----Original Message----- From: aloclarit at aol.com To: nagios-users at lists.sourceforge.net Sent: Wed, 10 Aug 2005 20:11:57 -0400 Subject: [Nagios-users] service checks randomly disappear guys I have a really weird problem. I've been running nagios 2.0b3 for months without hickups (except that it never remembers host acknowledgements/disabled host notifications after a restart..and yes I have that set in nagios.cfg!) But here is the big problem : I added 2 services for 2 databases and for some reason nagios has trouble being consistent with those 2 services. After I first added them the webinterface didn't show them.I had to refresh the page a few times then it showed up - only to disappear again a second later. It keeps doing that. One moment it have 15 services and after a page refresh it shows 17 services. Sometimes it shows 16 then 17 or 15 again. This is really driving me nuts. I upgraded to 2.04b today but no luck. the funny thing is that this ONLY happens to those 2 services but I cannot see how they are different. I'm also checking these 2 services on another box - no problem at all. Then again, all other services on those2 boxes run fine too. I tried defining them seperately by box as well as in a hostgroup - no difference. Here are the 2 services: define service{ use generic-service hostgroup_name sdatabases service_description CONCURRENT TRANSACTIONS IN WAIT QUEUE check_command check_oracle_queue!--service-waits!bspstg!nagios!nagios!20!30 max_check_attempts 5 normal_check_interval 5 contact_groups admins,managers } define service{ use generic-service hostgroup_name sdatabases service_description CONCURRENT TRANSACTIONS check_command check_oracle_requests!--requests!bspstg!nagios!nagios!1!700!1000 max_check_attempts 5 normal_check_interval 5 contact_groups admins,managers } As I said these 2 are also defined on a devbox so instead of hostgroup_name it says host_name and instead of 'bspstg' it says 'bspdev' but none of that should matter. Here the services are totally consistent whereas in the sdatabases group they keep dis- and re-appearing. Anyone seen this ?? ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Thu Aug 11 02:49:00 2005 From: pla at softflare.com (Paul L. Allen) Date: Thu, 11 Aug 2005 01:49:00 +0100 Subject: service checks randomly disappear In-Reply-To: <8C76C2289B605E3-A48-2EA3@MBLK-M06.sysops.aol.com> References: <8C76C206BEE2C93-A48-2E33@MBLK-M06.sysops.aol.com> <8C76C2289B605E3-A48-2EA3@MBLK-M06.sysops.aol.com> Message-ID: <20050811004900.12545.qmail@mullet.softflare.net> aloclarit at aol.com writes: > forgot to mention that whenever the service DOES show up and I click on it > I usually get this error : > > Error: Service Status Not Found! > > however, if I keep refreshing the proper page will show up and then change > back to the error again. Looks like it keeps loosing > the service status info for these 2 services. This is an FAQ. The answer can be found, not surprisingly, in the FAQs. It is a good idea, when you have problems, to read the documentation, then read the FAQs, then google for that problem, then search the list archives, then (if you have the ability) look at the source and finally, WHEN ALL ELSE FAILS, ask here. You're better than most of the people who ask this question because you did give a lot of detail about what was happening, what you'd tried, etc. But you didn't look at the FAQs or you'd have found the answer. You didn't google for the problem or you'd have found a gazillion hits. You didn't search the list archives or you'd have seen that this question gets asked at least once a week. You might have looked at the source, although you'd have to do a lot of digging to figure out why this problem occurs, so I won't fault you if you didn't. Here's a hint. It's such a frequently-asked FAQ that people have seriously suggested giving the details in the message that greets you when you join this list. It is a defect in Nagios but there are workarounds. See the FAQs... -- Paul Allen Softflare Support ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Thu Aug 11 04:07:31 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Wed, 10 Aug 2005 22:07:31 -0400 (EDT) Subject: service checks randomly disappear In-Reply-To: <8C76C242C6AED46-A7C-7C3@MBLK-M21.sysops.aol.com> References: <8C76C206BEE2C93-A48-2E33@MBLK-M06.sysops.aol.com> <8C76C2289B605E3-A48-2EA3@MBLK-M06.sysops.aol.com> <8C76C242C6AED46-A7C-7C3@MBLK-M21.sysops.aol.com> Message-ID: You probably have multiple daemons updating the same file. Only run one nagios daemon at a time... On Wed, 10 Aug 2005 aloclarit at aol.com wrote: > did some more digging and indeed it apeears the status.dat file does not get > updated most of the time. > Whenever i get the error below I check status.dat and there is no entry for > the service. If i keep refreshing till it shows up and then check status.dat > the service appears in there. Makes sense i guess cause the webinterface > relies on status.dat to display the stuff but why is status.dat not properly > updated ? > btw. just tried latest CVS - same prob. > > -----Original Message----- > From: aloclarit at aol.com > To: aloclarit at aol.com; nagios-users at lists.sourceforge.net > Sent: Wed, 10 Aug 2005 20:27:06 -0400 > Subject: Re: [Nagios-users] service checks randomly disappear > > forgot to mention that whenever the service DOES show up and I click on it > I usually get this error : > > Error: Service Status Not Found! > > however, if I keep refreshing the proper page will show up and then change > back to the error again. Looks like it keeps loosing > the service status info for these 2 services. > > -----Original Message----- > From: aloclarit at aol.com > To: nagios-users at lists.sourceforge.net > Sent: Wed, 10 Aug 2005 20:11:57 -0400 > Subject: [Nagios-users] service checks randomly disappear > > guys > > I have a really weird problem. I've been running nagios 2.0b3 for months > without hickups (except that it never remembers > host acknowledgements/disabled host notifications after a restart..and yes I > have that set in nagios.cfg!) > > But here is the big problem : > I added 2 services for 2 databases and for some reason nagios has trouble > being consistent with those 2 services. > After I first added them the webinterface didn't show them.I had to refresh > the page a few times then it showed up - only to disappear again a second > later. It keeps doing that. One moment it have 15 services and after a page > refresh it shows 17 services. > Sometimes it shows 16 then 17 or 15 again. This is really driving me nuts. > I upgraded to 2.04b today but no luck. the funny thing is that this ONLY > happens to those 2 services but I cannot see how they > are different. I'm also checking these 2 services on another box - no > problem at all. Then again, all other services on those2 boxes run fine too. > I tried defining them seperately by box as well as in a hostgroup - no > difference. > Here are the 2 services: > > define service{ > use generic-service > hostgroup_name sdatabases > service_description CONCURRENT TRANSACTIONS IN WAIT QUEUE > check_command check_oracle_queue!--service-waits!bspstg!nagios!nagios!20!30 > max_check_attempts 5 > normal_check_interval 5 > contact_groups admins,managers > } > > define service{ > use generic-service > hostgroup_name sdatabases > service_description CONCURRENT TRANSACTIONS > check_command > check_oracle_requests!--requests!bspstg!nagios!nagios!1!700!1000 > max_check_attempts 5 > normal_check_interval 5 > contact_groups admins,managers > } > > As I said these 2 are also defined on a devbox so instead of hostgroup_name > it says host_name and instead of 'bspstg' it says 'bspdev' but none of that > should matter. Here the services are totally consistent whereas in the > sdatabases group they keep dis- and re-appearing. > > Anyone seen this ?? > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. ::: Messages without supporting info will risk being sent to > /dev/null > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. ::: Messages without supporting info will risk being sent to > /dev/null > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. ::: Messages without supporting info will risk being sent to > /dev/null > -- ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Thu Aug 11 04:07:34 2005 From: pla at softflare.com (Paul L. Allen) Date: Thu, 11 Aug 2005 03:07:34 +0100 Subject: nagios and sendmail log entries (did not issue MAIL/EXPN/VRFY/ETRN) In-Reply-To: <200508102246.16879.lists@localguru.de> References: <200508102246.16879.lists@localguru.de> Message-ID: <20050811020734.9970.qmail@mullet.softflare.net> Others have already commented but Marc and Andreas both seemed to miss what I think is the crux of the matter. Marcus Sobchak writes: > nagios generates the follwing maillog entry each time it checks my > sendmail [...] > Any ideas how to disable this and make nagios doing a quite and silent > job? This is the important thing the other two did not say. Nagios does NOT generate that entry. Sendmail generates that entry. Read those two sentences again until you understand them. Nagios does things that causes sendmail to generate that entry, but it is sendmail's design decision that it generates that entry in response to what Nagios does. I cannot see any utility in logging that detail in the normal course of events although I can see it might be useful to have in some situations and would hope to be able to switch on some level of debugging temporarily in order to get it. Marc wondered why Andreas said sendmail was not compliant with the RFCs, and I agree with what I read into the implications of Marc's question: sendmail logging that detail is NOT in breach of the RFCs. The RFCs details the protocols that take place on port 25 and the format of mail messages; they say absolutely nothing about what, if anything, should be logged. Nor do they say whether or not your MTA should be able to display how many mails are in its queue, nor do they say whether or not your MTA should send you a Yahoo message for every mail that is successfully received by your system, nor do they say whether or not your MTA should trigger an interface that gives you a painful electric shock whenever mail could not be delivered, nor... The logging detail, and those other things, are all decisions about the design of the MTA you use and one option you have if you do not like the consequences of those design decisions is to switch to a different MTA. Nor is there any failure to comply with RFCs if sendmail logs that sort of thing at a level I would consider to be stupid. That sort of detail is (depending on your viewpoint) an informational message or (just perhaps) a warning message. But if sendmail chooses to log it as a critical message or even (if your OS supports it) at a level of "the world is about to end so get ready to meet your maker" then that is sendmail's decision (possibly configurable in some way by you) and it is your choice as to whether or not you even read the logs at all, let alone whether or not you bother to read entries of that type. If I were in your situation I'd just ignore those entries. If I had a need to process the logs in some way then I'd do some scripting so the processing ignored those entries. And if there were so many of those entries that they really cluttered up the mail log then I'd find out how to stop sendmail from logging that kind of thing or switch to another MTA. What Andreas alluded to, but didn't fully explain, is that the new release of check_smtp will not only stop those log entries happening but actually does a better test of the functioning of your MTA. If the partition holding your mail spool is full then the check_smtp you're using will probably say everything is fine when actually your system isn't accepting mail. The reason for upgrading is not that it would eliminate those (in my opinion) entirely trivial and ignorable log entries but that it would do a more thorough check that your MTA really is working as it should. Of course, the only way to be sure is to send test mails to every user at every domain on the server and check that each of those mails is delivered successfully. There are always trade-offs, but something that checks you get a connection banner is only slightly better than checking the port is open. Each additional test of functionality gives you more assurance things are working correctly. Big Brother checks port 25 is accepting connections. The plugin you're using checks you get a connection banner, which is an improvement. Checking you get a sensible response to HELO or EHLO is yet another improvement. Etc. -- Paul Allen Softflare Support ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tdondich at gmail.com Thu Aug 11 05:42:38 2005 From: tdondich at gmail.com (Taylor Dondich) Date: Wed, 10 Aug 2005 20:42:38 -0700 Subject: New Nagios UI Released! In-Reply-To: References: <20050810031634.2971E88B86@sc8-sf-spam1.sourceforge.net> Message-ID: <3d2eb72a05081020426f6e47aa@mail.gmail.com> Try it. Most of the functionality should work. :) I know Foundation works pretty well with nagios v2.0, but there might need to be some work with Status Viewer. :) We can find those problems and fix them when we come across them. :) Taylor On 8/10/05, nuffers at tsainc.com wrote: > > I downloaded the files and read some of the documentation. The > documentation states that it supports Nagios 1.x and not for Nagios 2.x > > Any ETA on Nagios 2.x support? > > Steve ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tdondich at gmail.com Thu Aug 11 05:44:28 2005 From: tdondich at gmail.com (Taylor Dondich) Date: Wed, 10 Aug 2005 20:44:28 -0700 Subject: LinuxExpo, anyone there? In-Reply-To: References: Message-ID: <3d2eb72a0508102044b928512@mail.gmail.com> Thank you all for coming, I think there was a lot of great discussion, and I think I got a lot in return. If anyone wants to follow up with me regarding some of the discussion, I'm available all at times. I don't sleep. They won't let me. Taylor On 8/10/05, Lori Adams wrote: > I think they are meant for people to go to after work. Just a guess, > not sure though. > > I plan on coming this evening to the BOF. > > I'll see you there. > > -Lori > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Jonathan > Nichols > Sent: Wednesday, August 10, 2005 9:05 AM > To: Taylor Dondich > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] LinuxExpo, anyone there? > > Taylor Dondich wrote: > > I'll be at LinuxExpo all day Tuesday and Wednesday, and part of > > Friday. Was wondering if there was anyone on the list that wanted to > > get together. I'll be speaking at the Nagios BoF meeting, and I'll be > > taking question on Fruity and regarding the new Status Viewer project > > we released. > > > > But it'd be great to just talk to some people and hang out. > > > > I'm going to be up there, but I don't know if I'll be able to stay for > the BoF sessions. I have no idea why they scheduled those so late. > Caltrain runs only about every hour or so after 7pm. :( > > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & > QA > Security * Process Improvement & Measurement * > http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From aloclarit at aol.com Thu Aug 11 08:57:01 2005 From: aloclarit at aol.com (aloclarit at aol.com) Date: Thu, 11 Aug 2005 02:57:01 -0400 Subject: service checks randomly disappear In-Reply-To: References: <8C76C206BEE2C93-A48-2E33@MBLK-M06.sysops.aol.com> <8C76C2289B605E3-A48-2EA3@MBLK-M06.sysops.aol.com> <8C76C242C6AED46-A7C-7C3@MBLK-M21.sysops.aol.com> Message-ID: <8C76C59027D24F6-898-6563@mblk-r24.sysops.aol.com> well i'll be damned ! You were right! Question is how the hell did that happen ? I never used anything but the init script provided to restart nagios. I had to kill -9 a whole bunch of those procs. the thing is I always assumed it is totally normal for the nagios proc to spawn few child procs if it gets busy but i guess that's really a problem. I tried /etc/init.d/nagios stop and then ps -ef | grep nagios. no proc shows up now and even if I do a restart which i've been doing it seems to kill all procs properly so how did I end up with 5 nagios procs in the first place...hmm. Well al least I know what to look for now..thanks but I don't like it. A killall -9 nagios should do the trick though or pkill -U nagios...time to modify the init script. btw. I still don't get why only 2 services were affected out of over 100. Alex -----Original Message----- From: Subhendu Ghosh To: aloclarit at aol.com Cc: nagios-users at lists.sourceforge.net Sent: Wed, 10 Aug 2005 22:07:31 -0400 (EDT) Subject: Re: [Nagios-users] service checks randomly disappear You probably have multiple daemons updating the same file. Only run one nagios daemon at a time... On Wed, 10 Aug 2005 aloclarit at aol.com wrote: > did some more digging and indeed it apeears the status.dat file does not get > updated most of the time. > Whenever i get the error below I check status.dat and there is no entry for > the service. If i keep refreshing till it shows up and then check status.dat > the service appears in there. Makes sense i guess cause the webinterface > relies on status.dat to display the stuff but why is status.dat not properly > updated ? > btw. just tried latest CVS - same prob. > > -----Original Message----- > From: aloclarit at aol.com > To: aloclarit at aol.com; nagios-users at lists.sourceforge.net > Sent: Wed, 10 Aug 2005 20:27:06 -0400 > Subject: Re: [Nagios-users] service checks randomly disappear > > forgot to mention that whenever the service DOES show up and I click on it > I usually get this error : > > Error: Service Status Not Found! > > however, if I keep refreshing the proper page will show up and then change > back to the error again. Looks like it keeps loosing > the service status info for these 2 services. > > -----Original Message----- > From: aloclarit at aol.com > To: nagios-users at lists.sourceforge.net > Sent: Wed, 10 Aug 2005 20:11:57 -0400 > Subject: [Nagios-users] service checks randomly disappear > > guys > > I have a really weird problem. I've been running nagios 2.0b3 for months > without hickups (except that it never remembers > host acknowledgements/disabled host notifications after a restart..and yes I > have that set in nagios.cfg!) > > But here is the big problem : > I added 2 services for 2 databases and for some reason nagios has trouble > being consistent with those 2 services. > After I first added them the webinterface didn't show them.I had to refresh > the page a few times then it showed up - only to disappear again a second > later. It keeps doing that. One moment it have 15 services and after a page > refresh it shows 17 services. > Sometimes it shows 16 then 17 or 15 again. This is really driving me nuts. > I upgraded to 2.04b today but no luck. the funny thing is that this ONLY > happens to those 2 services but I cannot see how they > are different. I'm also checking these 2 services on another box - no > problem at all. Then again, all other services on those2 boxes run fine too. > I tried defining them seperately by box as well as in a hostgroup - no > difference. > Here are the 2 services: > > define service{ > use generic-service > hostgroup_name sdatabases > service_description CONCURRENT TRANSACTIONS IN WAIT QUEUE > check_command check_oracle_queue!--service-waits!bspstg!nagios!nagios!20!30 > max_check_attempts 5 > normal_check_interval 5 > contact_groups admins,managers > } > > define service{ > use generic-service > hostgroup_name sdatabases > service_description CONCURRENT TRANSACTIONS > check_command > check_oracle_requests!--requests!bspstg!nagios!nagios!1!700!1000 > max_check_attempts 5 > normal_check_interval 5 > contact_groups admins,managers > } > > As I said these 2 are also defined on a devbox so instead of hostgroup_name > it says host_name and instead of 'bspstg' it says 'bspdev' but none of that > should matter. Here the services are totally consistent whereas in the > sdatabases group they keep dis- and re-appearing. > > Anyone seen this ?? > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. ::: Messages without supporting info will risk being sent to > /dev/null > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. ::: Messages without supporting info will risk being sent to > /dev/null > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. ::: Messages without supporting info will risk being sent to > /dev/null > -- ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ralph.Grothe at itdz-berlin.de Thu Aug 11 09:45:44 2005 From: Ralph.Grothe at itdz-berlin.de (Ralph.Grothe at itdz-berlin.de) Date: Thu, 11 Aug 2005 09:45:44 +0200 Subject: On usage of check_procs Message-ID: <6B893C5F2902D311A23F0090272854FB0575B7E6@litex001.lit.verwalt-berlin.de> Hi Andreas, > -----Original Message----- > From: Andreas Ericsson [mailto:ae at op5.se] > Sent: Wednesday, August 10, 2005 5:11 PM > To: Ralph.Grothe at itdz-berlin.de > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] On usage of check_procs > > > check_procs will do this for you. I thought so. > This 2-line shell-script will actually consume a great deal more CPU > cycles than simply using check_procs, because it needs to > invoke several > subshells. I knew, that's why I preferred using the binary check_procs. Mind you, I only put the parentheses around the 2nd line to make the return not kick out my interactive shell (only marked and pasted lines from my terminal window) I wouldn't spawn unnecessary sub shells in a script. However, I am aware about the processing costs of shell scripts in general as every not shell built-in command eventually would make a fork and exec (let alone all the IPC fuss like pipe etc.) While on the performance subject. I'm not quite into C hacking. I guess it would cost me at least ten times as long as doing it in Perl. (besides, I guess that the perils of memory leaks, dangling pointers etc. owe to my unwary coding in C were more serious, Perl has a nice garbage collector that cleans things up silently as soon as a thingy goes out of scope) That's why I prefer writing my own plug-ins in Perl. When browsing through the docs I also came accross the chapter on envPerl. Since I haven't built my nagios binary with envPerl enabled, and since I regarded that topic one of the more advanced (for later deliberation), I haven't yet cared much about it. Is there more documentation, howtos, examples on envPerl than is in the Nagios docs? E.g. the mod_perl Apache fork dedicated a whole site with an abundance of documentation to their built-in Perl. How does an envPerl Nagios compare to a standard one? > > check_procs -m PROCS -w 1:1 -c 1:1 -s RDS -C sleep > > will show only the 'sleep' processes in Running (or Runnable), D > (Dormant, uninterruptable IO), S (Sleeping, interruptable IO) mode, > which is more or less the states that aren't crashed. Some > systems have > the W (Paging) state as well, but I'm not sure about AIX. So I got it almost. Thanks for reminding me of the -s option. No AIX on the remote hosts (which are mostly HP-UX, Solaris, Linux, and well, AIX). It's only my Nagios server that has to run under AIX. ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Thu Aug 11 10:03:42 2005 From: ae at op5.se (Andreas Ericsson) Date: Thu, 11 Aug 2005 10:03:42 +0200 Subject: nagios and sendmail log entries (did not issue MAIL/EXPN/VRFY/ETRN) In-Reply-To: References: Message-ID: <42FB065E.4090803@op5.se> Marc Powell wrote: > >>-----Original Message----- >>From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- >>admin at lists.sourceforge.net] On Behalf Of Andreas Ericsson >>Sent: Wednesday, August 10, 2005 4:04 PM >>To: Marcus Sobchak >>Cc: nagios-users at lists.sourceforge.net >>Subject: Re: [Nagios-users] nagios and sendmail log entries (did not > > issue > >>MAIL/EXPN/VRFY/ETRN) >> >>Marcus Sobchak wrote: >> >>>Hi, >>> >>>nagios generates the follwing maillog entry each time it checks my >> >>sendmail >> >>>(8.12.3): >>> >>>Aug 10 21:03:28 walter sm-mta[24243]: j7AJ3SoQ024243: >>>nagios at urps.uni-bielefeld.de [129.70.12.152] did not issue >>>MAIL/EXPN/VRFY/ETRN during connection to MTA >>> > > > [snip] > > >>You could do some magic with check_tcp and adding several SEND > > strings, > >>or you could change your MTA daemon to something that follows the RFC. > > > I'm curious. How is it that an e-mail server logging the fact that a > connecting client didn't issue SMTP transaction commands against RFC? It's not, strictly speaking, but a complete transaction can be made up of HELO and QUIT, while sendmail thinks of it as an exception or breach of protocol. It's the think of it that's not RFC compliant. > Which RFC is this disallowed in or are you generally saying that > Sendmail isn't RFC compliant? > Considering sendmails history of remote root exploits, local privilege escalation problems and other security issues, I've never used it myself so I can't really say. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Thu Aug 11 10:06:42 2005 From: ae at op5.se (Andreas Ericsson) Date: Thu, 11 Aug 2005 10:06:42 +0200 Subject: why can't a servicegroup have no members? In-Reply-To: <1123708472.12879.14.camel@timmy.hq.mica.net> References: <1123708472.12879.14.camel@timmy.hq.mica.net> Message-ID: <42FB0712.9020709@op5.se> Kevin Hanser wrote: > I am running Nagios 2.0b4, and I'm trying to create some servicegroups > for nice display and whatnot. > > I can get them to work fine, as long as I specify at least one member in > the servicegroups definition... However, I'd like to create a > servicegroup for "router interfaces", and I don't really want to type in > every description for every router interface I have on every router, > when I've already put it into the service definition. I see that I can > specify servicegroups in the service definition and that would be > perfect for me, except for one thing: nagios won't let me create a > servicegroup w/out any members. > > I would like to create the servicegroup w/no members in its definition, > and then use the "servicegroups" directive w/in the service definition > to make each interface a member of the servicegroup. So I guess my > question is... Why is the "members" directive required when defining a > servicegroup? > It isn't. We're running around 100 installations of Nagios. All of them with servicegroups without the "members" directive, and all of them with the servicegroups in the service definitions. What's the error message you get when trying to run it? -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Thu Aug 11 10:14:49 2005 From: ae at op5.se (Andreas Ericsson) Date: Thu, 11 Aug 2005 10:14:49 +0200 Subject: service checks randomly disappear In-Reply-To: <8C76C59027D24F6-898-6563@mblk-r24.sysops.aol.com> References: <8C76C206BEE2C93-A48-2E33@MBLK-M06.sysops.aol.com> <8C76C2289B605E3-A48-2EA3@MBLK-M06.sysops.aol.com> <8C76C242C6AED46-A7C-7C3@MBLK-M21.sysops.aol.com> <8C76C59027D24F6-898-6563@mblk-r24.sysops.aol.com> Message-ID: <42FB08F9.6030809@op5.se> aloclarit at aol.com wrote: > well i'll be damned ! You were right! > Question is how the hell did that happen ? I never used anything but the > init script provided to restart nagios. > I had to kill -9 a whole bunch of those procs. the thing is I always > assumed it is totally normal for the nagios proc to spawn few > child procs if it gets busy but i guess that's really a problem. No it isn't. Nagios does spawn child-processes to do its checking. It's when you land with several master processes that you end up being in trouble. > I tried > /etc/init.d/nagios stop and then ps -ef | grep nagios. > no proc shows up now and even if I do a restart which i've been doing it > seems to kill all procs properly so how did I end up with 5 > nagios procs in the first place...hmm. If you're using the LinuxThreads library by Xavier Leroy, this is quite normal, as each thread will show up as a separate process. If you're using Native Posix Thread Library by Ulrich Drepper (only works with Linux 2.6.4 and later), it will show up as a single process. > Well al least I know what to look for now..thanks but I don't like it. A > killall -9 nagios should do the trick though or pkill -U nagios...time > to modify the init script. > > btw. I still don't get why only 2 services were affected out of over 100. > Because those two services were known by the "new" nagios instance while the old one had no clue about them. I expect those were the last two services you added to config. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Thu Aug 11 10:15:26 2005 From: ae at op5.se (Andreas Ericsson) Date: Thu, 11 Aug 2005 10:15:26 +0200 Subject: New Nagios UI Released! In-Reply-To: <3d2eb72a05081020426f6e47aa@mail.gmail.com> References: <20050810031634.2971E88B86@sc8-sf-spam1.sourceforge.net> <3d2eb72a05081020426f6e47aa@mail.gmail.com> Message-ID: <42FB091E.1060001@op5.se> Taylor Dondich wrote: > Try it. Most of the functionality should work. :) I know Foundation > works pretty well with nagios v2.0, but there might need to be some > work with Status Viewer. :) We can find those problems and fix them > when we come across them. :) > An url would be nice. > Taylor > > On 8/10/05, nuffers at tsainc.com wrote: > >> >>I downloaded the files and read some of the documentation. The >>documentation states that it supports Nagios 1.x and not for Nagios 2.x >> >>Any ETA on Nagios 2.x support? >> >>Steve > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Thu Aug 11 10:26:08 2005 From: ae at op5.se (Andreas Ericsson) Date: Thu, 11 Aug 2005 10:26:08 +0200 Subject: On usage of check_procs In-Reply-To: <6B893C5F2902D311A23F0090272854FB0575B7E6@litex001.lit.verwalt-berlin.de> References: <6B893C5F2902D311A23F0090272854FB0575B7E6@litex001.lit.verwalt-berlin.de> Message-ID: <42FB0BA0.2050000@op5.se> Ralph.Grothe at itdz-berlin.de wrote: > Hi Andreas, > > While on the performance subject. > I'm not quite into C hacking. > I guess it would cost me at least ten times as long as doing it > in Perl. > (besides, I guess that the perils of memory leaks, dangling > pointers etc. owe to my unwary coding in C > were more serious, Perl has a nice garbage collector that cleans > things up silently as soon > as a thingy goes out of scope) The kernel has one even nicer that does the same thing. Whenever a program stops its blocks are marked free by the kernel. For a simple plugin you don't have to worry about free()'ing anything (most plugins don't, at that). > That's why I prefer writing my own plug-ins in Perl. > When browsing through the docs I also came accross the chapter on > envPerl. > Since I haven't built my nagios binary with envPerl enabled, > and since I regarded that topic one of the more advanced (for > later deliberation), > I haven't yet cared much about it. > Is there more documentation, howtos, examples on envPerl than is > in the Nagios docs? Not really, no. All you have to think about it make sure your perl scripts run cleanly with the strict pragma, and make sure you initialize all variables on each run. Since the scripts will be cached they will maintain the value of each variable since it was last run. > E.g. the mod_perl Apache fork dedicated a whole site with an > abundance of documentation > to their built-in Perl. > How does an envPerl Nagios compare to a standard one? > It runs perl scripts through an embedded interpreter (this saves quite a bit on some systems, and very little on others. It all depends on how large your perl installation is, and if you have sufficient memory to let the system cache the perl binary for you), and optionally caches them (this saves even more, since each script won't have to be compiled every time its run, but can instead be stored in byte-code in the Nagios process' memory). Historically there has been lots of problems with the embedded perl thingie, but according to Stanley Hopcroft, who's done most of the recent work on it and is the only one with a clue to both C and Perl that uses it (that I know of), it's much better lately and hardly leaks any memory at all. As for performance improvements, I haven't seen any actual measurements, but logic provides that it should be a fair bit faster than running perl-scripts the usual way. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From christian.masopust at siemens.com Thu Aug 11 10:28:27 2005 From: christian.masopust at siemens.com (Masopust Christian) Date: Thu, 11 Aug 2005 10:28:27 +0200 Subject: New Nagios UI Released! Message-ID: > > Taylor Dondich wrote: > > Try it. Most of the functionality should work. :) I know > Foundation > > works pretty well with nagios v2.0, but there might need to be some > > work with Status Viewer. :) We can find those problems > and fix them > > when we come across them. :) > > > > An url would be nice. > funny.... 2 minutes ago i was at their site.... http://www.itgroundwork.com/products/gw_status-viewer.html chris > > Taylor > > > > On 8/10/05, nuffers at tsainc.com wrote: > > > >> > >>I downloaded the files and read some of the documentation. The > >>documentation states that it supports Nagios 1.x and not > for Nagios 2.x > >> > >>Any ETA on Nagios 2.x support? > >> > >>Steve > > > > > > > > ------------------------------------------------------- > > SF.Net email is Sponsored by the Better Software Conference & EXPO > > September 19-22, 2005 * San Francisco, CA * Development > Lifecycle Practices > > Agile & Plan-Driven Development * Managing Projects & Teams > * Testing & QA > > Security * Process Improvement & Measurement * > http://www.sqe.com/bsce5sf > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and > OS when reporting any issue. > > ::: Messages without supporting info will risk being sent > to /dev/null > > > > -- > Andreas Ericsson andreas.ericsson at op5.se > OP5 AB www.op5.se > Lead Developer > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development > Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * > Testing & QA > Security * Process Improvement & Measurement * > http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jeremy+nagios at undergrid.net Thu Aug 11 10:39:49 2005 From: jeremy+nagios at undergrid.net (Jeremy T. Bouse) Date: Thu, 11 Aug 2005 01:39:49 -0700 Subject: LinuxExpo, anyone there? In-Reply-To: <3d2eb72a0508102044b928512@mail.gmail.com> References: <3d2eb72a0508102044b928512@mail.gmail.com> Message-ID: <42FB0ED5.9070809@undergrid.net> The information that was presented during the BoF was quite interesting. I did like the clean interface design and will actually most likely be taking a closer look at in the next couples weeks as stuff is moved off my plate. The configuration utilities were of particular interest to me as well as that seems to be the biggest headache I've encountered thus far. Regards, Jeremy Taylor Dondich wrote: > Thank you all for coming, I think there was a lot of great discussion, > and I think I got a lot in return. > > If anyone wants to follow up with me regarding some of the discussion, > I'm available all at times. I don't sleep. They won't let me. > > Taylor > > On 8/10/05, Lori Adams wrote: > >>I think they are meant for people to go to after work. Just a guess, >>not sure though. >> >>I plan on coming this evening to the BOF. >> >>I'll see you there. >> >>-Lori >> >>-----Original Message----- >>From: nagios-users-admin at lists.sourceforge.net >>[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Jonathan >>Nichols >>Sent: Wednesday, August 10, 2005 9:05 AM >>To: Taylor Dondich >>Cc: nagios-users at lists.sourceforge.net >>Subject: Re: [Nagios-users] LinuxExpo, anyone there? >> >>Taylor Dondich wrote: >> >>>I'll be at LinuxExpo all day Tuesday and Wednesday, and part of >>>Friday. Was wondering if there was anyone on the list that wanted to >>>get together. I'll be speaking at the Nagios BoF meeting, and I'll be >>>taking question on Fruity and regarding the new Status Viewer project >>>we released. >>> >>>But it'd be great to just talk to some people and hang out. >>> >> >>I'm going to be up there, but I don't know if I'll be able to stay for >>the BoF sessions. I have no idea why they scheduled those so late. >>Caltrain runs only about every hour or so after 7pm. :( >> >> >> >> >>------------------------------------------------------- >>SF.Net email is Sponsored by the Better Software Conference & EXPO >>September 19-22, 2005 * San Francisco, CA * Development Lifecycle >>Practices >>Agile & Plan-Driven Development * Managing Projects & Teams * Testing & >>QA >>Security * Process Improvement & Measurement * >>http://www.sqe.com/bsce5sf >>_______________________________________________ >>Nagios-users mailing list >>Nagios-users at lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/nagios-users >>::: Please include Nagios version, plugin version (-v) and OS when >>reporting any issue. >>::: Messages without supporting info will risk being sent to /dev/null >> > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Thu Aug 11 10:40:30 2005 From: ae at op5.se (Andreas Ericsson) Date: Thu, 11 Aug 2005 10:40:30 +0200 Subject: New Nagios UI Released! In-Reply-To: References: Message-ID: <42FB0EFE.5040201@op5.se> Masopust Christian wrote: >>Taylor Dondich wrote: >> >>>Try it. Most of the functionality should work. :) I know >> >>Foundation >> >>>works pretty well with nagios v2.0, but there might need to be some >>>work with Status Viewer. :) We can find those problems >> >>and fix them >> >>>when we come across them. :) >>> >> >>An url would be nice. >> > > > funny.... 2 minutes ago i was at their site.... > http://www.itgroundwork.com/products/gw_status-viewer.html > It would have been nice to try, but what's up with the minimum requirements list? JDK, Linux 2.6, PHP5, ANT, Maven? I would have thought it a fair nobrainer to simply write the entire thing in PHP (4.x or higher). > chris > > > >>>Taylor >>> >>>On 8/10/05, nuffers at tsainc.com wrote: >>> >>> >>>>I downloaded the files and read some of the documentation. The >>>>documentation states that it supports Nagios 1.x and not >> >>for Nagios 2.x >> >>>>Any ETA on Nagios 2.x support? >>>> >>>>Steve >>> >>> >>> >>>------------------------------------------------------- >>>SF.Net email is Sponsored by the Better Software Conference & EXPO >>>September 19-22, 2005 * San Francisco, CA * Development >> >>Lifecycle Practices >> >>>Agile & Plan-Driven Development * Managing Projects & Teams >> >>* Testing & QA >> >>>Security * Process Improvement & Measurement * >> >>http://www.sqe.com/bsce5sf >> >>>_______________________________________________ >>>Nagios-users mailing list >>>Nagios-users at lists.sourceforge.net >>>https://lists.sourceforge.net/lists/listinfo/nagios-users >>>::: Please include Nagios version, plugin version (-v) and >> >>OS when reporting any issue. >> >>>::: Messages without supporting info will risk being sent >> >>to /dev/null >> >>-- >>Andreas Ericsson andreas.ericsson at op5.se >>OP5 AB www.op5.se >>Lead Developer >> >> >>------------------------------------------------------- >>SF.Net email is Sponsored by the Better Software Conference & EXPO >>September 19-22, 2005 * San Francisco, CA * Development >>Lifecycle Practices >>Agile & Plan-Driven Development * Managing Projects & Teams * >>Testing & QA >>Security * Process Improvement & Measurement * >>http://www.sqe.com/bsce5sf >>_______________________________________________ >>Nagios-users mailing list >>Nagios-users at lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/nagios-users >>::: Please include Nagios version, plugin version (-v) and OS >>when reporting any issue. >>::: Messages without supporting info will risk being sent to /dev/null >> > > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ralph.Grothe at itdz-berlin.de Thu Aug 11 10:48:43 2005 From: Ralph.Grothe at itdz-berlin.de (Ralph.Grothe at itdz-berlin.de) Date: Thu, 11 Aug 2005 10:48:43 +0200 Subject: why can't a servicegroup have no members? Message-ID: <6B893C5F2902D311A23F0090272854FB0575B7E8@litex001.lit.verwalt-berlin.de> Sorry, for intercepting your thread. But Kevin mentioned an issue that also puzzled me, as I only recently started with Nagios, and still are about exploring its features. I haven't quite understood yet what the difference was between the "members" attribute in a servicegroup definition, and poulating the "servicegroups" attribute within each service definition. Is the redundancy only there as "syntactical sugar", or is there a completely different scope that separates both? > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Andreas > Ericsson > Sent: Thursday, August 11, 2005 10:07 AM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] why can't a servicegroup have no members? > > > Kevin Hanser wrote: > > I am running Nagios 2.0b4, and I'm trying to create some > servicegroups > > for nice display and whatnot. > > > > I can get them to work fine, as long as I specify at least > one member in > > the servicegroups definition... However, I'd like to create a > > servicegroup for "router interfaces", and I don't really > want to type in > > every description for every router interface I have on every router, > > when I've already put it into the service definition. I > see that I can > > specify servicegroups in the service definition and that would be > > perfect for me, except for one thing: nagios won't let me create a > > servicegroup w/out any members. > > > > I would like to create the servicegroup w/no members in its > definition, > > and then use the "servicegroups" directive w/in the service > definition > > to make each interface a member of the servicegroup. So I guess my > > question is... Why is the "members" directive required when > defining a > > servicegroup? > > > > It isn't. We're running around 100 installations of Nagios. > All of them > with servicegroups without the "members" directive, and all > of them with > the servicegroups in the service definitions. What's the > error message > you get when trying to run it? > > -- > Andreas Ericsson andreas.ericsson at op5.se > OP5 AB www.op5.se > Lead Developer > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development > Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * > Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Thu Aug 11 10:56:50 2005 From: ae at op5.se (Andreas Ericsson) Date: Thu, 11 Aug 2005 10:56:50 +0200 Subject: why can't a servicegroup have no members? In-Reply-To: <6B893C5F2902D311A23F0090272854FB0575B7E8@litex001.lit.verwalt-berlin.de> References: <6B893C5F2902D311A23F0090272854FB0575B7E8@litex001.lit.verwalt-berlin.de> Message-ID: <42FB12D2.3000007@op5.se> Ralph.Grothe at itdz-berlin.de wrote: > Sorry, for intercepting your thread. > > But Kevin mentioned an issue that also puzzled me, > as I only recently started with Nagios, and still are about > exploring its features. > > I haven't quite understood yet what the difference was between > the "members" attribute in a servicegroup definition, > and poulating the "servicegroups" attribute within each service > definition. > Is the redundancy only there as "syntactical sugar", > or is there a completely different scope that separates both? > It's syntactical sugar. > >>-----Original Message----- >>From: nagios-users-admin at lists.sourceforge.net >>[mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of > > Andreas > >>Ericsson >>Sent: Thursday, August 11, 2005 10:07 AM >>To: nagios-users at lists.sourceforge.net >>Subject: Re: [Nagios-users] why can't a servicegroup have no > > members? > >> >>Kevin Hanser wrote: >> >>>I am running Nagios 2.0b4, and I'm trying to create some >> >>servicegroups >> >>>for nice display and whatnot. >>> >>>I can get them to work fine, as long as I specify at least >> >>one member in >> >>>the servicegroups definition... However, I'd like to create a >>>servicegroup for "router interfaces", and I don't really >> >>want to type in >> >>>every description for every router interface I have on every > > router, > >>>when I've already put it into the service definition. I >> >>see that I can >> >>>specify servicegroups in the service definition and that > > would be > >>>perfect for me, except for one thing: nagios won't let me > > create a > >>>servicegroup w/out any members. >>> >>>I would like to create the servicegroup w/no members in its >> >>definition, >> >>>and then use the "servicegroups" directive w/in the service >> >>definition >> >>>to make each interface a member of the servicegroup. So I > > guess my > >>>question is... Why is the "members" directive required when >> >>defining a >> >>>servicegroup? >>> >> >>It isn't. We're running around 100 installations of Nagios. >>All of them >>with servicegroups without the "members" directive, and all >>of them with >>the servicegroups in the service definitions. What's the >>error message >>you get when trying to run it? >> >>-- >>Andreas Ericsson andreas.ericsson at op5.se >>OP5 AB www.op5.se >>Lead Developer >> >> >>------------------------------------------------------- >>SF.Net email is Sponsored by the Better Software Conference & > > EXPO > >>September 19-22, 2005 * San Francisco, CA * Development >>Lifecycle Practices >>Agile & Plan-Driven Development * Managing Projects & Teams * >>Testing & QA >>Security * Process Improvement & Measurement * > > http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to > /dev/null > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From chris at aidworld.org Thu Aug 11 11:33:23 2005 From: chris at aidworld.org (Chris Wilson) Date: Thu, 11 Aug 2005 10:33:23 +0100 Subject: Multiple Nagios proccesses running. In-Reply-To: <1122639398.13754.58.camel@localhost> References: <200507252109.j6PL9vjU023926@mail.asc.edu> <20050725221507.30266.qmail@mullet.softflare.net> <1122373846.30418.65.camel@localhost> <42E74E29.5090005@op5.se> <1122471906.15025.254.camel@localhost> <42E7BA0D.4020804@op5.se> <1122484346.15025.267.camel@localhost> <42E7DCBD.9090904@op5.se> <1122542715.29724.8.camel@localhost> <42E9275F.2030202@op5.se> <1122628003.13754.56.camel@localhost> <1122639398.13754.58.camel@localhost> Message-ID: <1123752803.20276.0.camel@localhost> Hi Andreas, > Patch really attached this time. Any comments on this second patch? Cheers, Chris. -- (aidworld) chris wilson | chief engineer (chris at aidworld.org) ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Thu Aug 11 11:47:33 2005 From: ae at op5.se (Andreas Ericsson) Date: Thu, 11 Aug 2005 11:47:33 +0200 Subject: Multiple Nagios proccesses running. In-Reply-To: <1123752803.20276.0.camel@localhost> References: <200507252109.j6PL9vjU023926@mail.asc.edu> <20050725221507.30266.qmail@mullet.softflare.net> <1122373846.30418.65.camel@localhost> <42E74E29.5090005@op5.se> <1122471906.15025.254.camel@localhost> <42E7BA0D.4020804@op5.se> <1122484346.15025.267.camel@localhost> <42E7DCBD.9090904@op5.se> <1122542715.29724.8.camel@localhost> <42E9275F.2030202@op5.se> <1122628003.13754.56.camel@localhost> <1122639398.13754.58.camel@localhost> <1123752803.20276.0.camel@localhost> Message-ID: <42FB1EB5.9010808@op5.se> Chris Wilson wrote: > Hi Andreas, > > >>Patch really attached this time. > > > Any comments on this second patch? > Actually, I do. Rather than exiting if it finds a process running with the same pid, it should try and kill it (using SIGTERM, sleeping 5 seconds and then issuing SIGKILL). This is because we can't be sure WHAT process it found, just that it has the same pid as the one that used to be nagios, and on a restart attempt where the previous daemon failed to exit the logical thing to do is to re-read the configuration. This is ofcourse assuming we are checking the pid as non-root (I assume we are, as you include EPERM in your exception handling). Oherwise we might be killing apache, postfix or some other system service that's supposed to be running. There are also C++ style comments which need to be removed, and Ethan won't accept it unless you un-wrap all the lines. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From chris at aidworld.org Thu Aug 11 12:41:51 2005 From: chris at aidworld.org (Chris Wilson) Date: Thu, 11 Aug 2005 11:41:51 +0100 Subject: Multiple Nagios proccesses running. In-Reply-To: <42FB1EB5.9010808@op5.se> References: <200507252109.j6PL9vjU023926@mail.asc.edu> <20050725221507.30266.qmail@mullet.softflare.net> <1122373846.30418.65.camel@localhost> <42E74E29.5090005@op5.se> <1122471906.15025.254.camel@localhost> <42E7BA0D.4020804@op5.se> <1122484346.15025.267.camel@localhost> <42E7DCBD.9090904@op5.se> <1122542715.29724.8.camel@localhost> <42E9275F.2030202@op5.se> <1122628003.13754.56.camel@localhost> <1122639398.13754.58.camel@localhost> <1123752803.20276.0.camel@localhost> <42FB1EB5.9010808@op5.se> Message-ID: <1123756911.20276.42.camel@localhost> Hi Andreas, > Rather than exiting if it finds a process running with the same pid, it > should try and kill it (using SIGTERM, sleeping 5 seconds and then > issuing SIGKILL). This is because we can't be sure WHAT process it > found, just that it has the same pid as the one that used to be nagios, > and on a restart attempt where the previous daemon failed to exit the > logical thing to do is to re-read the configuration. You're right that we can't identify whether the other process is, but killing it sounds much worse than just aborting! What if the user is running several daemons as the same UID (e.g. nobody, daemon) and another one gets the PID that Nagios was using before? Surely it's safer to abort so that the user finds out something is wrong, checks for and removes the old Nagios process, and then deletes the lockfile? It's at least better than the current behaviour (on Linux at least) of silently carrying on :-) But if you insist that killing the other process is the right thing to do, I will implement it. > This is ofcourse > assuming we are checking the pid as non-root (I assume we are, as you > include EPERM in your exception handling). Oherwise we might be killing > apache, postfix or some other system service that's supposed to be running. We have already dropped privileges by the time daemon_init() is called. > There are also C++ style comments which need to be removed, and Ethan > won't accept it unless you un-wrap all the lines. OK, I think I've fixed these issues in the attached patch. Please let me know what you think. Thank you! Cheers, Chris. -- (aidworld) chris wilson | chief engineer (chris at aidworld.org) -------------- next part -------------- A non-text attachment was scrubbed... Name: nagios-lockfile-3.patch Type: text/x-patch Size: 1481 bytes Desc: not available URL: From ae at op5.se Thu Aug 11 15:24:46 2005 From: ae at op5.se (Andreas Ericsson) Date: Thu, 11 Aug 2005 15:24:46 +0200 Subject: Multiple Nagios proccesses running. In-Reply-To: <1123756911.20276.42.camel@localhost> References: <200507252109.j6PL9vjU023926@mail.asc.edu> <20050725221507.30266.qmail@mullet.softflare.net> <1122373846.30418.65.camel@localhost> <42E74E29.5090005@op5.se> <1122471906.15025.254.camel@localhost> <42E7BA0D.4020804@op5.se> <1122484346.15025.267.camel@localhost> <42E7DCBD.9090904@op5.se> <1122542715.29724.8.camel@localhost> <42E9275F.2030202@op5.se> <1122628003.13754.56.camel@localhost> <1122639398.13754.58.camel@localhost> <1123752803.20276.0.camel@localhost> <42FB1EB5.9010808@op5.se> <1123756911.20276.42.camel@localhost> Message-ID: <42FB519E.6020800@op5.se> Chris Wilson wrote: > Hi Andreas, > > >>Rather than exiting if it finds a process running with the same pid, it >>should try and kill it (using SIGTERM, sleeping 5 seconds and then >>issuing SIGKILL). This is because we can't be sure WHAT process it >>found, just that it has the same pid as the one that used to be nagios, >>and on a restart attempt where the previous daemon failed to exit the >>logical thing to do is to re-read the configuration. > > > You're right that we can't identify whether the other process is, but > killing it sounds much worse than just aborting! What if the user is > running several daemons as the same UID (e.g. nobody, daemon) and > another one gets the PID that Nagios was using before? > True. For a proper fix, the lockfile would be locked against writing by the old process. If there is no such process *AND* the file isn't locked, it's fairly safe to assume the process isn't another nagios daemon. If the lock is held, but the pid is wrong, some process is running but has failed to update the pid in the file (a bug, by its own means), and if a process exists but no lock is held, it's safe to assume that the process running is another nagios daemon. However, that leaves us with the old checking system pretty much in place, and your patch becoming something of an extra clarification. filelock held = nagios running, no filelock = nagios possibly not running, or running with some weird permissions, or some such. However, in this scenario the filelock should always be attempted as root (or at least as the most privileged user nagios starts as), because root can sometimes (always, but sometimes silently) override filelocks held by processes with lesser privileges. > Surely it's safer to abort so that the user finds out something is > wrong, checks for and removes the old Nagios process, and then deletes > the lockfile? This assumes user intervention, which I assumed was what you were trying to move away from. > It's at least better than the current behaviour (on Linux > at least) of silently carrying on :-) > Indeed, but that behaviour is flawed on its own merit. > But if you insist that killing the other process is the right thing to > do, I will implement it. > I don't. It only is if Nagios is running as a dedicated pseuod-user, which it won't necessarily be. One could ofcourse in such cases submit a RELOAD command to the external pipe. I'm not sure how many hoops one should jump through though, or even if it's the right one to jump next. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dewath at yahoo.com Thu Aug 11 15:32:29 2005 From: dewath at yahoo.com (Richard DeWath) Date: Thu, 11 Aug 2005 06:32:29 -0700 (PDT) Subject: NSClient++ versus NRPE_NT on Windows 2003 Enterprise Servers Message-ID: <20050811133229.7094.qmail@web30510.mail.mud.yahoo.com> I have been using the older NSClient on Windows 2K servers without problems, and some Win2K3 S.E servers until some updates to the Win2K3 SP1 were added. I had installed nrpe_nt 0.7f version and it installed okay and the simple test worked with the service. I rewrote the NSClient service checks into WSH scripts. I tested the scripts using the standard C:> cscript //nologo check_disk.vbs x x x format. The scripts work when I run it on the host machine. When I then put these in the nrpe.cfg file, the service would check it once, but then subsequent calls would time out, etc. I found that the nrpe_nt service was hung and I could not stop the service. I then used task manager to kill the process. I finally backed out nrpe_nt and installed nsclient++ [kudos to the developer]. This works fine for the basic services and I have the Nagios monitoring this way. I now need to use either NSClient++ nrpe feature to run a script for check_volume (I need to monitor raw disks mounted as volumes on folders - the wmi script works fine and returns the correct results when I run it on the Win2K3 E.S with SP1). Here are the questions: 1. Has anyone experienced the nrpe_nt service hanging on Win2K3? And I see there is a version 0.8 for nrpe_nt. Will this fix the problem? 2. Will NSClient++ nrpe module work? 3. Any known WSH issues that would cause the failure? Thanks, Richard __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Aug 11 15:39:37 2005 From: marc at ena.com (Marc Powell) Date: Thu, 11 Aug 2005 08:39:37 -0500 Subject: LinuxExpo, anyone there? Message-ID: So, instead of just taunting those of us who couldn't attend, would anyone be willing to write up a summary of the interesting things brought up? =) -- Marc > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Jeremy T. Bouse > Sent: Thursday, August 11, 2005 3:40 AM > To: Taylor Dondich > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] LinuxExpo, anyone there? > > The information that was presented during the BoF was quite > interesting. I did like the clean interface design and will actually > most likely be taking a closer look at in the next couples weeks as > stuff is moved off my plate. The configuration utilities were of > particular interest to me as well as that seems to be the biggest > headache I've encountered thus far. > > Regards, > Jeremy > > Taylor Dondich wrote: > > Thank you all for coming, I think there was a lot of great discussion, > > and I think I got a lot in return. > > > > If anyone wants to follow up with me regarding some of the discussion, > > I'm available all at times. I don't sleep. They won't let me. > > > > Taylor > > > > On 8/10/05, Lori Adams wrote: > > > >>I think they are meant for people to go to after work. Just a guess, > >>not sure though. > >> > >>I plan on coming this evening to the BOF. > >> > >>I'll see you there. > >> > >>-Lori > >> > >>-----Original Message----- > >>From: nagios-users-admin at lists.sourceforge.net > >>[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Jonathan > >>Nichols > >>Sent: Wednesday, August 10, 2005 9:05 AM > >>To: Taylor Dondich > >>Cc: nagios-users at lists.sourceforge.net > >>Subject: Re: [Nagios-users] LinuxExpo, anyone there? > >> > >>Taylor Dondich wrote: > >> > >>>I'll be at LinuxExpo all day Tuesday and Wednesday, and part of > >>>Friday. Was wondering if there was anyone on the list that wanted to > >>>get together. I'll be speaking at the Nagios BoF meeting, and I'll be > >>>taking question on Fruity and regarding the new Status Viewer project > >>>we released. > >>> > >>>But it'd be great to just talk to some people and hang out. > >>> > >> > >>I'm going to be up there, but I don't know if I'll be able to stay for > >>the BoF sessions. I have no idea why they scheduled those so late. > >>Caltrain runs only about every hour or so after 7pm. :( > >> ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jduraisw at smtp.aed.org Thu Aug 11 15:42:00 2005 From: jduraisw at smtp.aed.org (John Duraiswamy) Date: Thu, 11 Aug 2005 09:42:00 -0400 Subject: Alerts Message-ID: Hi Everyone, I get alert messages when services goes down but I don't get alerts when the servers completely goes down. I am sure there is a small setting somewhere I have to turn on. I really appreciate if someone could help me out with this. Thanks John Duraiswamy, CCNP Network Engineer Academy for Educational Development Washington, DC Tel. 202-884-8116 Fax. 202-884-8464 ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From getbacktome3 at hotmail.com Thu Aug 11 15:43:31 2005 From: getbacktome3 at hotmail.com (HP Geeza) Date: Thu, 11 Aug 2005 14:43:31 +0100 Subject: nagios email settings Message-ID: Hi Could somebody tell me where i can configure the email settings for nagios? - is this something done in the nagios config or somewhere in my linux config? Currently when an email is sent from nagios it comes up as nagios at localhost.localdomain. I would like to change this but dont know where the config details are. Any help would be much appreciated. _________________________________________________________________ It's fast, it's easy and it's free. Get MSN Messenger 7.0 today! http://messenger.msn.co.uk ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Thu Aug 11 15:50:52 2005 From: ae at op5.se (Andreas Ericsson) Date: Thu, 11 Aug 2005 15:50:52 +0200 Subject: Alerts In-Reply-To: References: Message-ID: <42FB57BC.5000105@op5.se> John Duraiswamy wrote: > Hi Everyone, > I get alert messages when services goes down but I don't get alerts when the servers completely goes down. I am sure there is a small setting somewhere I have to turn on. I really appreciate if someone could help me out with this. > Go over your host object configuration and make sure you have contacts and notification options properly configured there. > Thanks > > John Duraiswamy, CCNP > Network Engineer > Academy for Educational Development > Washington, DC > Tel. 202-884-8116 > Fax. 202-884-8464 > > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From eford at nexusenergy.com Thu Aug 11 15:51:14 2005 From: eford at nexusenergy.com (Edward Ford) Date: Thu, 11 Aug 2005 09:51:14 -0400 Subject: nagios email settings Message-ID: I can't tell you the exact place (someone probably will) because my knowledge of Linux is limited. I do know that there is a SMTP (d) file on the system and the configuration within here was one place. The other is network properties for the Linux which is also where you set your hostname. Eddie -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of HP Geeza Sent: Thursday, August 11, 2005 9:44 AM To: Nagios-users at lists.sourceforge.net Subject: [Nagios-users] nagios email settings Hi Could somebody tell me where i can configure the email settings for nagios? - is this something done in the nagios config or somewhere in my linux config? Currently when an email is sent from nagios it comes up as nagios at localhost.localdomain. I would like to change this but dont know where the config details are. Any help would be much appreciated. _________________________________________________________________ It's fast, it's easy and it's free. Get MSN Messenger 7.0 today! http://messenger.msn.co.uk ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Thu Aug 11 15:52:34 2005 From: ae at op5.se (Andreas Ericsson) Date: Thu, 11 Aug 2005 15:52:34 +0200 Subject: nagios email settings In-Reply-To: References: Message-ID: <42FB5822.9030908@op5.se> HP Geeza wrote: > Hi > > Could somebody tell me where i can configure the email settings for > nagios? - is this something done in the nagios config or somewhere in my > linux config? > > Currently when an email is sent from nagios it comes up as > nagios at localhost.localdomain. > > I would like to change this but dont know where the config details > are. Any help would be much appreciated. > That would be in your mail transfer agent (postfix, exim, qmail, sendmail or some such) which runs on the same server as nagios. Check your mta's docs on how to configure it. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jduraisw at smtp.aed.org Thu Aug 11 16:40:14 2005 From: jduraisw at smtp.aed.org (John Duraiswamy) Date: Thu, 11 Aug 2005 10:40:14 -0400 Subject: Alerts Message-ID: Andreas / Frank, Thanks for your inputs, I think I figured out the problem. I had the following line in the contacts.cfg file screwed up host_notification_period none instead of host_notification_period 24x7 -john >>> Andreas Ericsson 8/11/2005 9:50:52 AM >>> John Duraiswamy wrote: > Hi Everyone, > I get alert messages when services goes down but I don't get alerts when the servers completely goes down. I am sure there is a small setting somewhere I have to turn on. I really appreciate if someone could help me out with this. > Go over your host object configuration and make sure you have contacts and notification options properly configured there. > Thanks > > John Duraiswamy, CCNP > Network Engineer > Academy for Educational Development > Washington, DC > Tel. 202-884-8116 > Fax. 202-884-8464 > > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Chester.Hosey at gianteagle.com Thu Aug 11 16:51:47 2005 From: Chester.Hosey at gianteagle.com (Hosey, Chester) Date: Thu, 11 Aug 2005 10:51:47 -0400 Subject: New Nagios UI Released! Message-ID: <73BB3A1D374DA64F98E8EA9C37FB3F5F017A31BE@exchmail1.corp.gianteagle.com> http://www.joelonsoftware.com/articles/FogBugzIV.html http://www.joelonsoftware.com/articles/fog0000000356.html Does anyone agree, or is it just me? Chet -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Masopust Christian Sent: Thursday, August 11, 2005 4:28 AM To: Andreas Ericsson; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] RE: New Nagios UI Released! > > Taylor Dondich wrote: > > Try it. Most of the functionality should work. :) I know > Foundation > > works pretty well with nagios v2.0, but there might need to be some > > work with Status Viewer. :) We can find those problems > and fix them > > when we come across them. :) > > > > An url would be nice. > funny.... 2 minutes ago i was at their site.... http://www.itgroundwork.com/products/gw_status-viewer.html chris > > Taylor > > > > On 8/10/05, nuffers at tsainc.com wrote: > > > >> > >>I downloaded the files and read some of the documentation. The > >>documentation states that it supports Nagios 1.x and not > for Nagios 2.x > >> > >>Any ETA on Nagios 2.x support? > >> > >>Steve > > > > > > > > ------------------------------------------------------- > > SF.Net email is Sponsored by the Better Software Conference & EXPO > > September 19-22, 2005 * San Francisco, CA * Development > Lifecycle Practices > > Agile & Plan-Driven Development * Managing Projects & Teams > * Testing & QA > > Security * Process Improvement & Measurement * > http://www.sqe.com/bsce5sf > > _______________________________________________ > > Nagios-users mailing list Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and > OS when reporting any issue. > > ::: Messages without supporting info will risk being sent > to /dev/null > > > > -- > Andreas Ericsson andreas.ericsson at op5.se > OP5 AB www.op5.se > Lead Developer > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > Practices Agile & Plan-Driven Development * Managing Projects & Teams > * Testing & QA > Security * Process Improvement & Measurement * > http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tdondich at gmail.com Thu Aug 11 17:09:58 2005 From: tdondich at gmail.com (Taylor Dondich) Date: Thu, 11 Aug 2005 08:09:58 -0700 Subject: New Nagios UI Released! In-Reply-To: <42FB091E.1060001@op5.se> References: <20050810031634.2971E88B86@sc8-sf-spam1.sourceforge.net> <3d2eb72a05081020426f6e47aa@mail.gmail.com> <42FB091E.1060001@op5.se> Message-ID: <3d2eb72a050811080968df4826@mail.gmail.com> http://www.itgroundwork.com/products/gw_status-viewer.html On 8/11/05, Andreas Ericsson wrote: > Taylor Dondich wrote: > > Try it. Most of the functionality should work. :) I know Foundation > > works pretty well with nagios v2.0, but there might need to be some > > work with Status Viewer. :) We can find those problems and fix them > > when we come across them. :) > > > > An url would be nice. > > > Taylor > > > > On 8/10/05, nuffers at tsainc.com wrote: > > > >> > >>I downloaded the files and read some of the documentation. The > >>documentation states that it supports Nagios 1.x and not for Nagios 2.x > >> > >>Any ETA on Nagios 2.x support? > >> > >>Steve > > > > > > > > ------------------------------------------------------- > > SF.Net email is Sponsored by the Better Software Conference & EXPO > > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > > -- > Andreas Ericsson andreas.ericsson at op5.se > OP5 AB www.op5.se > Lead Developer > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From chris at aidworld.org Thu Aug 11 17:16:26 2005 From: chris at aidworld.org (Chris Wilson) Date: Thu, 11 Aug 2005 16:16:26 +0100 Subject: Multiple Nagios proccesses running. In-Reply-To: <42FB519E.6020800@op5.se> References: <200507252109.j6PL9vjU023926@mail.asc.edu> <20050725221507.30266.qmail@mullet.softflare.net> <1122373846.30418.65.camel@localhost> <42E74E29.5090005@op5.se> <1122471906.15025.254.camel@localhost> <42E7BA0D.4020804@op5.se> <1122484346.15025.267.camel@localhost> <42E7DCBD.9090904@op5.se> <1122542715.29724.8.camel@localhost> <42E9275F.2030202@op5.se> <1122628003.13754.56.camel@localhost> <1122639398.13754.58.camel@localhost> <1123752803.20276.0.camel@localhost> <42FB1EB5.9010808@op5.se> <1123756911.20276.42.camel@localhost> <42FB519E.6020800@op5.se> Message-ID: <1123773386.20276.129.camel@localhost> Hi Andreas, On Thu, 2005-08-11 at 14:24, Andreas Ericsson wrote: > Chris Wilson wrote: > > You're right that we can't identify whether the other process is, but > > killing it sounds much worse than just aborting! What if the user is > > running several daemons as the same UID (e.g. nobody, daemon) and > > another one gets the PID that Nagios was using before? > True. For a proper fix, the lockfile would be locked against writing by > the old process. If there is no such process *AND* the file isn't > locked, it's fairly safe to assume the process isn't another nagios > daemon. If the lock is held, but the pid is wrong, some process is > running but has failed to update the pid in the file (a bug, by its own > means), and if a process exists but no lock is held, it's safe to assume > that the process running is another nagios daemon. However, that leaves > us with the old checking system pretty much in place, and your patch > becoming something of an extra clarification. filelock held = nagios > running, no filelock = nagios possibly not running, or running with some > weird permissions, or some such. Sorry, I don't quite follow your logic here. It's probably just me being stupid, but I parse this as: * Lockfile exists, PID in lockfile doesn't exist (any more), file not locked in kernel => other process is not a Nagios daemon (indeed, as there is no other process :-) * Lockfile exists, file locked in kernel by a different PID than the one in lockfile => some process is running but has failed to update the pid in the file (true, but very unlikely) * Lockfile exists, file not locked in kernel, PID exists => safe to assume that the process running is another nagios daemon (why? if it failed to lock the file it should have aborted, and it could not lose the lock afterwards. Sounds to me that this would mean the other process was NOT nagios). Under Linux at least, we can not check the PID of the locking process using F_SETLK, as Nagios tries to do at the moment. From fcntl(2): pid_t l_pid; /* PID of process blocking our lock (F_GETLK only) */ Nagios always reports that the PID of the other process (locking the lockfile) is 0. I could include an additional F_GETLK in my patch to get the real PID, if that seems like a good idea. My suggested course of action would be to kill the other process ONLY if the lockfile exists and is locked by the kernel, by the same PID. If kill -KILL fails to kill the other Nagios process, or if the file is locked by a different PID or contains the PID of a running process, we should abort. > However, in this scenario the filelock should always be attempted as > root (or at least as the most privileged user nagios starts as), because > root can sometimes (always, but sometimes silently) override filelocks > held by processes with lesser privileges. Doesn't that imply that we should never lock as root? Otherwise we might override the lock without realising it? > > Surely it's safer to abort so that the user finds out something is > > wrong, checks for and removes the old Nagios process, and then deletes > > the lockfile? > > This assumes user intervention, which I assumed was what you were trying > to move away from. Not necessarily. I wanted to at least improve the current behaviour which results in weird and unexpected Nagios behaviour after a restart, and potential corruption and loss of important state data. Manual intervention may be necessary in any case if a zombie Nagios process is hanging around, refusing to release the lock or delete the lockfile. Avoiding starting a new copy and writing a clear error to the logs is a big improvement in my book. I would only go further (kill the old process) if it was clear that it could be done reliably and safely and in a way that doesn't defy the user's expectations. > > It's at least better than the current behaviour (on Linux > > at least) of silently carrying on :-) > > > Indeed, but that behaviour is flawed on its own merit. If that means that my patch is not flawed on its own merit, I will take it as a complement, thanks :-) Seriously, I would regard the current patch as an improvement, even though I know it does not solve the problem with the init script failing to kill nagios properly. > I don't. It only is if Nagios is running as a dedicated pseuod-user, > which it won't necessarily be. One could ofcourse in such cases submit a > RELOAD command to the external pipe. I'm not sure how many hoops one > should jump through though, or even if it's the right one to jump next. I think that would be excessive. How would we know that the command succeeded? At least if we TERM and KILL the other process we can find out whether it died or not, and take appropriate action to avoid having two fully working (but conflicting) Nagios processed running at once. If the user asks us to restart nagios, I think we should actually restart it, not just tell it to reload. Isn't there a separate command line option for reload anyway? Cheers, Chris. -- (aidworld) chris wilson | chief engineer (chris at aidworld.org) ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From djohnson at jsatech.com Thu Aug 11 17:20:15 2005 From: djohnson at jsatech.com (David Johnson) Date: Thu, 11 Aug 2005 10:20:15 -0500 Subject: False Negatives Message-ID: Long time user, first time emailer... We have been loving nagios and we've even submitted some source code improvements. However, we have a problem with false negatives. We have 2 remote servers we monitor in which the SSH service is being reported as down, while the host is being reported as up. Both of these servers are operating properly. In addition, the host check command and service check commands are identical. We have 40 other servers which operate in exactly the same way, yet the SSH service on these 2 is being reported as down. Exact same versions of SSH on all servers also. The only difference is location. ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Chester.Hosey at gianteagle.com Thu Aug 11 17:23:27 2005 From: Chester.Hosey at gianteagle.com (Hosey, Chester) Date: Thu, 11 Aug 2005 11:23:27 -0400 Subject: False Negatives Message-ID: <73BB3A1D374DA64F98E8EA9C37FB3F5F017A31C0@exchmail1.corp.gianteagle.com> Have you run the service check plugins manually to see what it returns? Is it just an occasional failure? -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of David Johnson Sent: Thursday, August 11, 2005 11:20 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] False Negatives Long time user, first time emailer... We have been loving nagios and we've even submitted some source code improvements. However, we have a problem with false negatives. We have 2 remote servers we monitor in which the SSH service is being reported as down, while the host is being reported as up. Both of these servers are operating properly. In addition, the host check command and service check commands are identical. We have 40 other servers which operate in exactly the same way, yet the SSH service on these 2 is being reported as down. Exact same versions of SSH on all servers also. The only difference is location. ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From djohnson at jsatech.com Thu Aug 11 17:36:33 2005 From: djohnson at jsatech.com (David Johnson) Date: Thu, 11 Aug 2005 10:36:33 -0500 Subject: False Negatives In-Reply-To: <73BB3A1D374DA64F98E8EA9C37FB3F5F017A31C0@exchmail1.corp.gianteagle.com> References: <73BB3A1D374DA64F98E8EA9C37FB3F5F017A31C0@exchmail1.corp.gianteagle.com> Message-ID: I've run them manually both through NRPE and directly on the host that runs them. All returns okay. Exactly the same as all other hosts. I thought perhaps it might be time delay, so I set the timeout on my check_ssh command to 30 seconds (from the default of 10). I did the same with NRPE. -----Original Message----- From: Hosey, Chester [mailto:Chester.Hosey at gianteagle.com] Sent: Thursday, August 11, 2005 10:23 AM To: djohnson at jsatech.com; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] False Negatives Have you run the service check plugins manually to see what it returns? Is it just an occasional failure? -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of David Johnson Sent: Thursday, August 11, 2005 11:20 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] False Negatives Long time user, first time emailer... We have been loving nagios and we've even submitted some source code improvements. However, we have a problem with false negatives. We have 2 remote servers we monitor in which the SSH service is being reported as down, while the host is being reported as up. Both of these servers are operating properly. In addition, the host check command and service check commands are identical. We have 40 other servers which operate in exactly the same way, yet the SSH service on these 2 is being reported as down. Exact same versions of SSH on all servers also. The only difference is location. ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From djohnson at jsatech.com Thu Aug 11 17:36:33 2005 From: djohnson at jsatech.com (David Johnson) Date: Thu, 11 Aug 2005 10:36:33 -0500 Subject: False Negatives In-Reply-To: <73BB3A1D374DA64F98E8EA9C37FB3F5F017A31C0@exchmail1.corp.gianteagle.com> References: <73BB3A1D374DA64F98E8EA9C37FB3F5F017A31C0@exchmail1.corp.gianteagle.com> Message-ID: The manual running of the plugins succeeds every time. The nagios running fails every time. I must say that I get two different failures. 1. One falsely failing server returns: "Server answer:" 2. The other falsely failing server returns a CHECK_NRPE timeout of 10 seconds (which is odd because I set the timeout to 30 and did a hard restart). -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Hosey, Chester Sent: Thursday, August 11, 2005 10:23 AM To: djohnson at jsatech.com; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] False Negatives Have you run the service check plugins manually to see what it returns? Is it just an occasional failure? -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of David Johnson Sent: Thursday, August 11, 2005 11:20 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] False Negatives Long time user, first time emailer... We have been loving nagios and we've even submitted some source code improvements. However, we have a problem with false negatives. We have 2 remote servers we monitor in which the SSH service is being reported as down, while the host is being reported as up. Both of these servers are operating properly. In addition, the host check command and service check commands are identical. We have 40 other servers which operate in exactly the same way, yet the SSH service on these 2 is being reported as down. Exact same versions of SSH on all servers also. The only difference is location. ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mcgowan at lynch2.com Thu Aug 11 17:36:42 2005 From: mcgowan at lynch2.com (John McGowan) Date: Thu, 11 Aug 2005 10:36:42 -0500 Subject: Service Went Down, No notification sent... Message-ID: <42FB708A.2080406@lynch2.com> I'm not sure exactly where to start on this.... last night i checked on my services and noticed a service that was down and had been down for about 20 minutes. No notification was ever sent out... this is what I saw in the log... [08-10-2005 22:07:36] SERVICE ALERT: tessweb;Tessitura SeatServer;CRITICAL;HARD;1;CRITICAL - Socket timeout after 10 seconds When I ran a test this morning this is what I saw in the event log. [08-11-2005 10:17:39] SERVICE ALERT: tessweb;Tessitura SeatServer;CRITICAL;SOFT;1;No route to host [08-11-2005 10:18:08] SERVICE ALERT: tessweb;Tessitura SeatServer;CRITICAL;SOFT;2;No route to host [08-11-2005 10:18:38] SERVICE ALERT: tessweb;Tessitura SeatServer;CRITICAL;SOFT;3;No route to host [08-11-2005 10:19:08] SERVICE ALERT: tessweb;Tessitura SeatServer;CRITICAL;SOFT;4;No route to host [08-11-2005 10:19:38] SERVICE ALERT: tessweb;Tessitura SeatServer;CRITICAL;HARD;5;No route to host The first thing that stood out when I saw it was the fact that the max check attempts didn't seem to make a difference last night... the service went critical hard on the first failure... FYI: the particular thing that caused this failure last night was that the VPN between here and there was down. the service definition is listed below... with it's template define service{ name generic-service ; The 'name' of this service template, referenced in other service definitions active_checks_enabled 1 ; Active service checks are enabled passive_checks_enabled 1 ; Passive service checks are enabled/accepted parallelize_check 1 ; Active service checks should be parallelized (disabling this can lead to major performance problems) obsess_over_service 1 ; We should obsess over this service (if necessary) check_freshness 0 ; Default is to NOT check service 'freshness' notifications_enabled 1 ; Service notifications are enabled event_handler_enabled 1 ; Service event handler is enabled flap_detection_enabled 1 ; Flap detection is enabled process_perf_data 1 ; Process performance data retain_status_information 1 ; Retain status information across program restarts retain_nonstatus_information 1 ; Retain non-status information across program restarts is_volatile 0 check_period 24x7 notification_period 24x7 notification_interval 120 notification_options w,u,c,r contact_groups admins max_check_attempts 5 normal_check_interval 60 retry_check_interval 30 register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE! } # Service definition define service{ use generic-service ; Name of service template to use contact_groups csoadmins host_name tessweb service_description Tessitura SeatServer check_command check_http_site2_ssl!tessweb.cso.org!true!/Tessitura.asmx/WebSeatServerListening } ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Aug 11 17:52:27 2005 From: marc at ena.com (Marc Powell) Date: Thu, 11 Aug 2005 10:52:27 -0500 Subject: False Negatives Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of David Johnson > Sent: Thursday, August 11, 2005 10:37 AM > To: Hosey, Chester; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] False Negatives > > The manual running of the plugins succeeds every time. The nagios running > fails every time. I must say that I get two different failures. > > 1. One falsely failing server returns: "Server answer:" Looking at the src for check_ssh (which I assume you are using), it makes a connection on the specified port and looks for "SSH" as the first 3 characters in the first line of output. If it doesn't find it then it prints "Server answer:" then the text that it did see. In your case it looks like it's either getting a blank line or nothing at all. I'd try that test manually using telnet several times in a row just to make sure that you're seeing the expected output. Perhaps also turn up logging for your sshd. Maybe there's some indication of the problem there. > 2. The other falsely failing server returns a CHECK_NRPE timeout of 10 > seconds (which is odd because I set the timeout to 30 and did a hard > restart). There are two places where the timeout could be coming from. Each plugin may have their own timeout value (usually -t) and nagios has a master timeout value in nagios.cfg (service_check_timeout). The master timeout will always override the plugin timeout value if it's shorter (since nagios has no idea what the plugin timeout might be). If -t=45 for a plugin but service_check_timeout is 10 then you'll still only get 10 seconds. -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Thu Aug 11 17:58:14 2005 From: ae at op5.se (Andreas Ericsson) Date: Thu, 11 Aug 2005 17:58:14 +0200 Subject: Service Went Down, No notification sent... In-Reply-To: <42FB708A.2080406@lynch2.com> References: <42FB708A.2080406@lynch2.com> Message-ID: <42FB7596.1070408@op5.se> John McGowan wrote: > I'm not sure exactly where to start on this.... last night i checked on > my services and noticed a service that was down and had been down for > about 20 minutes. No notification was ever sent out... this is what I > saw in the log... > > [08-10-2005 22:07:36] SERVICE ALERT: tessweb;Tessitura > SeatServer;CRITICAL;HARD;1;CRITICAL - Socket timeout after 10 seconds > > When I ran a test this morning this is what I saw in the event log. > > The first thing that stood out when I saw it was the fact that the max > check attempts didn't seem to make a difference last night... the > service went critical hard on the first failure... > This is because the host was down as well. Service checks aren't reported if the host is down, and they're set to HARD immediately to save the added strain of having to re-check them frequently. > FYI: the particular thing that caused this failure last night was that > the VPN between here and there was down. > So the hostcheck couldn't possibly have succeeded then, and the host was most likely in UNREACHABLE state (if you monitor the VPN tunnel in both ends and have parents set up properly). What notifications *did* you get? An unreachable for the VPN tunnel? -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From kevin at mica.net Thu Aug 11 19:52:30 2005 From: kevin at mica.net (Kevin Hanser) Date: Thu, 11 Aug 2005 13:52:30 -0400 Subject: why can't a servicegroup have no members? In-Reply-To: <1123709300.17569.0.camel@gc1216-xp-tna1.corp.gianteagle.com.> References: <1123708472.12879.14.camel@timmy.hq.mica.net> <1123709300.17569.0.camel@gc1216-xp-tna1.corp.gianteagle.com.> Message-ID: <1123782750.12889.49.camel@timmy.hq.mica.net> Hmmm... went back and tried it, and sure enough it's working for me. I think it was complaining before because I had a servicegroup with no members, and also didn't have any services defined with the "servicegroups" directive. Looks like one or the other is required.. I was confused because I created my servicegroup first (w/out any members) and then did a config check. At that point it complained that the servicegroup had no members and wouldn't go. Apparently though after I've added the "servicegroup" directive to some services, it's no longer complaining about the "members" being missing. So I guess I need one or the other, I was only getting an error because I had just created the servicegroup and not added anything to it yet. thx! k On Wed, 2005-08-10 at 17:28 -0400, Chester R. Hosey wrote: > Using 2.0b4 also: > > define service{ > use nrpe-load-check > host_name chet-linux-desktop > servicegroups test > } > > define servicegroup{ > servicegroup_name test > alias Sample Group > } > > > /usr/bin/nagios -v /etc/nagios/nagios.cfg liked it. > > Chet > > > On Wed, 2005-08-10 at 17:14 -0400, Kevin Hanser wrote: > > I am running Nagios 2.0b4, and I'm trying to create some servicegroups > > for nice display and whatnot. > > > > I can get them to work fine, as long as I specify at least one member in > > the servicegroups definition... However, I'd like to create a > > servicegroup for "router interfaces", and I don't really want to type in > > every description for every router interface I have on every router, > > when I've already put it into the service definition. I see that I can > > specify servicegroups in the service definition and that would be > > perfect for me, except for one thing: nagios won't let me create a > > servicegroup w/out any members. > > > > I would like to create the servicegroup w/no members in its definition, > > and then use the "servicegroups" directive w/in the service definition > > to make each interface a member of the servicegroup. So I guess my > > question is... Why is the "members" directive required when defining a > > servicegroup? > > > > Thx! > > > > k > > > > > > ------------------------------------------------------- > > SF.Net email is Sponsored by the Better Software Conference & EXPO > > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Aug 11 20:08:39 2005 From: marc at ena.com (Marc Powell) Date: Thu, 11 Aug 2005 13:08:39 -0500 Subject: why can't a servicegroup have no members? Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Kevin Hanser > Sent: Thursday, August 11, 2005 12:53 PM > To: nagios-users at lists.sourceforge.net; Chester R. Hosey > Subject: Re: [Nagios-users] why can't a servicegroup have no members? > > Hmmm... went back and tried it, and sure enough it's working for me. I > think it was complaining before because I had a servicegroup with no > members, and also didn't have any services defined with the > "servicegroups" directive. Looks like one or the other is required.. > Which makes sense. > I was confused because I created my servicegroup first (w/out any > members) and then did a config check. At that point it complained that > the servicegroup had no members and wouldn't go. Apparently though > after I've added the "servicegroup" directive to some services, it's no > longer complaining about the "members" being missing. Because it has members now, a 'member' indicating a service that is part of the group, not specifically the 'members' directive for the definition. The terminology may be slightly confusing but the concept shouldn't be. A servicegroup (or any group) has to have members (e.g. services in this case) associated with it, either through the servicegroup members definition or through the service servicegroups definition. A group with no members is meaningless. -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mcgowan at lynch2.com Thu Aug 11 21:19:43 2005 From: mcgowan at lynch2.com (John McGowan) Date: Thu, 11 Aug 2005 14:19:43 -0500 Subject: Service Went Down, No notification sent... In-Reply-To: <42FB7596.1070408@op5.se> References: <42FB708A.2080406@lynch2.com> <42FB7596.1070408@op5.se> Message-ID: <42FBA4CF.8080204@lynch2.com> Andreas Ericsson wrote: >> This is because the host was down as well. Service checks aren't >> reported if the host is down, and they're set to HARD immediately to >> save the added strain of having to re-check them frequently. > Ah that makes perfect sense... My problem is that I've been using hosts as more of an organizational tool, just grouping services together. > What notifications *did* you get? An unreachable for the VPN tunnel? No notification at all, because the host wasn't setup properly ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From naguser at bhodisoft.com Thu Aug 11 23:15:50 2005 From: naguser at bhodisoft.com (naguser at bhodisoft.com) Date: Thu, 11 Aug 2005 14:15:50 -0700 (PDT) Subject: missing var/objects.cache Message-ID: <5699.209.74.96.60.1123794950.squirrel@robinsoncomputerservice.com> I'm setting up the web interfaces on a pair of existing distributed nodes. On one of them, I get this whoops message "Error: Could not read object configuration data!". I compared the two nodes and on the one that is giving me the error, I'm missing a var/objects.cache file. The nodes have the same object_cache_file setting in etc/nagios.cfg and grep isn't turning up any other related settings that I can see. Am I right in suspecting that this missing file is the most likely source of the problem? If so, how do I create that file? The error message says that I should "make sure you've compiled the main program and the CGIs to use the same object data storage options", but to the best of my knowledge there was no difference between the two installs. I've tried just 'touch'ing it and reloading nagios, but no luck with that. It is still empty and I'm still getting the error. Thanks, -G_E ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Aug 11 23:45:30 2005 From: marc at ena.com (Marc Powell) Date: Thu, 11 Aug 2005 16:45:30 -0500 Subject: missing var/objects.cache Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of naguser at bhodisoft.com > Sent: Thursday, August 11, 2005 4:16 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] missing var/objects.cache > > I'm setting up the web interfaces on a pair of existing distributed nodes. > On one of them, I get this whoops message "Error: Could not read object > configuration data!". > > I compared the two nodes and on the one that is giving me the error, I'm > missing a var/objects.cache file. The nodes have the same > object_cache_file setting in etc/nagios.cfg and grep isn't turning up any > other related settings that I can see. > > Am I right in suspecting that this missing file is the most likely source Yes. > of the problem? If so, how do I create that file? The error message says You can't. Nagios creates it when the daemon is started. It's an optimized version of all your config files. Is nagios running? Does it have permissions to write to that directory? -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From naguser at bhodisoft.com Fri Aug 12 00:09:09 2005 From: naguser at bhodisoft.com (naguser at bhodisoft.com) Date: Thu, 11 Aug 2005 15:09:09 -0700 (PDT) Subject: missing var/objects.cache In-Reply-To: References: Message-ID: <41109.209.74.96.60.1123798149.squirrel@robinsoncomputerservice.com> >> of the problem? If so, how do I create that file? The error message > says > > You can't. Nagios creates it when the daemon is started. It's an > optimized version of all your config files. Is nagios running? Does it > have permissions to write to that directory? Thanks for the quick reply. Turns out there WAS a difference on the object_cache_file setting after all; I just wasn't seeing it. My bad. For some reason it was actually pointing to var/nagios/objects.cache and the nagios subdirectory didn't exist. I fixed the cfg file and its all good now. Don't mind me, its just one of those days. -G_E ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mike at m5computersecurity.com Fri Aug 12 01:01:24 2005 From: mike at m5computersecurity.com (Michael J McCafferty) Date: Thu, 11 Aug 2005 16:01:24 -0700 Subject: Disable pager alerts for Acknowledgements ? Message-ID: <20050811160124.rm90mnlj1hscko0k@webmail.m5computersecurity.com> All, We have some alerts go to a pager that is in the NOC, for audible alerts (can't seem to get audible alerts to work with passive service checks, but audible alerts work great with active service checks and active host checks). My NOC people asked if I can get the alerts to only get send to the pager when something goes down, not once each for down/critical, acknowledgement and up/recovery. I notice the scripts in misccommands.cfg use the variable $NOTIFICATIONTYPE$ included in the alert. I suppose I could write some kind of wrapper that gets called instead of going straight to /bin/mail, but I was hoping there was a better (faster, easier, more direct) way. Thoughts ? Thanks, Mike -- ************************************************************ Michael J. McCafferty Principal, Security Engineer M5 Hosting 858-576-7325 Voice http://www.m5hosting.com ************************************************************ ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lastxit at gmail.com Fri Aug 12 01:02:02 2005 From: lastxit at gmail.com (Marc Martinez) Date: Thu, 11 Aug 2005 16:02:02 -0700 Subject: external commands audit trail Message-ID: <5c1e5efe050811160236db1da2@mail.gmail.com> I'm hoping to get some suggestions about how to get an audit trail for external command submissions from the cgi interface.. all the google and list archive digging I've done has only turned up permissions problems and the like, so if there is an existing resource to address this please send me on my way.. the crux of the problem though is that while cmd.cgi does verify the auth credentials, the username is only recorded for comment submissions.. what's the best way to approach this? thanks, Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From brian.murphy at gmx.net Fri Aug 12 03:57:06 2005 From: brian.murphy at gmx.net (Brian Murphy) Date: Fri, 12 Aug 2005 03:57:06 +0200 (MEST) Subject: =?ISO-8859-1?Q?Multiple_orphaned_nagios_processes?= Message-ID: <17293.1123811826@www6.gmx.net> Hi There Running nagios is a distributed setup, 2 systems carrying out active checks and sending results to central display node using nsca. What we are seeing is that we end up with hundreds of nagios processes on the central node, enough to grind it to a stop. Over 2000 checks are being carried out at the checking nodes. We set the service_reaper_frequency to 3 on both the central and the chicking systems and still have the problem. We had this problem on 2.0b3 and still have it on 2.0b4 I am suspecting that the processes are spawned off to process the passive checks, but collide writing into the pipe back to nagios (or it is full and EAGAIN) and end up eventually just orphaned out there. How many checks per second should nagios be able to process? We seem to be writing to the logfile at 100/sec sometimes. Do I just need to slow things down somehow? bigger poll cycles with the checks... We are running a perfdata command and an ocsp_command on the central host, processes forked by these do not seem to be the problem. Config file bits below status_file=/usr/local/nagios/var/status.dat nagios_user=nagios nagios_group=nagios check_external_commands=1 command_check_interval=-1 command_file=/usr/local/nagios/var/rw/nagios.cmd comment_file=/usr/local/nagios/var/comments.dat downtime_file=/usr/local/nagios/var/downtime.dat lock_file=/usr/local/nagios/var/nagios.lock temp_file=/usr/local/nagios/var/nagios.tmp event_broker_options=-1 log_rotation_method=d log_archive_path=/usr/local/nagios/var/archives use_syslog=0 log_notifications=1 log_service_retries=1 log_host_retries=1 log_event_handlers=1 log_initial_states=0 log_external_commands=1 log_passive_checks=1 service_inter_check_delay_method=s max_service_check_spread=30 service_interleave_factor=s host_inter_check_delay_method=s max_host_check_spread=30 max_concurrent_checks=0 service_reaper_frequency=3 auto_reschedule_checks=0 auto_rescheduling_interval=30 auto_rescheduling_window=180 sleep_time=0.25 service_check_timeout=60 host_check_timeout=30 event_handler_timeout=30 notification_timeout=30 ocsp_timeout=5 perfdata_timeout=5 retain_state_information=1 state_retention_file=/usr/local/nagios/var/retention.dat retention_update_interval=60 use_retained_program_state=1 use_retained_scheduling_info=0 interval_length=60 use_aggressive_host_checking=0 execute_service_checks=1 accept_passive_service_checks=1 execute_host_checks=1 accept_passive_host_checks=1 enable_notifications=1 enable_event_handlers=1 process_performance_data=1 service_perfdata_command=process-service-perfdata obsess_over_services=1 ocsp_command=nagios-data-logger check_for_orphaned_services=0 check_service_freshness=1 service_freshness_check_interval=60 check_host_freshness=0 host_freshness_check_interval=60 aggregate_status_updates=1 status_update_interval=15 enable_flap_detection=0 low_service_flap_threshold=5.0 high_service_flap_threshold=20.0 low_host_flap_threshold=5.0 high_host_flap_threshold=20.0 date_format=us p1_file=/usr/local/nagios/bin/p1.pl illegal_object_name_chars=`~!$%^&*|'"<>?,()= illegal_macro_output_chars=`~$&|'"<> use_regexp_matching=0 use_true_regexp_matching=0 admin_email=nagios admin_pager=pagenagios daemon_dumps_core=1 Any suggestions appreciated Thanx Brian -- 5 GB Mailbox, 50 FreeSMS http://www.gmx.net/de/go/promail +++ GMX - die erste Adresse f?r Mail, Message, More +++ ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ssugar at proserveit.com Fri Aug 12 05:34:47 2005 From: ssugar at proserveit.com (Scott Sugar) Date: Thu, 11 Aug 2005 23:34:47 -0400 Subject: New Nagios UI Released! Message-ID: Exactly.... I looked to try it out, but not with a requirement list like that. ________________________________ From: nagios-users-admin at lists.sourceforge.net on behalf of Andreas Ericsson Sent: Thu 8/11/2005 4:40 AM To: Masopust Christian Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] RE: New Nagios UI Released! Masopust Christian wrote: >>Taylor Dondich wrote: >> >>>Try it. Most of the functionality should work. :) I know >> >>Foundation >> >>>works pretty well with nagios v2.0, but there might need to be some >>>work with Status Viewer. :) We can find those problems >> >>and fix them >> >>>when we come across them. :) >>> >> >>An url would be nice. >> > > > funny.... 2 minutes ago i was at their site.... > http://www.itgroundwork.com/products/gw_status-viewer.html > It would have been nice to try, but what's up with the minimum requirements list? JDK, Linux 2.6, PHP5, ANT, Maven? I would have thought it a fair nobrainer to simply write the entire thing in PHP (4.x or higher). > chris > > > >>>Taylor >>> >>>On 8/10/05, nuffers at tsainc.com wrote: >>> >>> >>>>I downloaded the files and read some of the documentation. The >>>>documentation states that it supports Nagios 1.x and not >> >>for Nagios 2.x >> >>>>Any ETA on Nagios 2.x support? >>>> >>>>Steve >>> >>> >>> >>>------------------------------------------------------- >>>SF.Net email is Sponsored by the Better Software Conference & EXPO >>>September 19-22, 2005 * San Francisco, CA * Development >> >>Lifecycle Practices >> >>>Agile & Plan-Driven Development * Managing Projects & Teams >> >>* Testing & QA >> >>>Security * Process Improvement & Measurement * >> >>http://www.sqe.com/bsce5sf >> >>>_______________________________________________ >>>Nagios-users mailing list >>>Nagios-users at lists.sourceforge.net >>>https://lists.sourceforge.net/lists/listinfo/nagios-users >>>::: Please include Nagios version, plugin version (-v) and >> >>OS when reporting any issue. >> >>>::: Messages without supporting info will risk being sent >> >>to /dev/null >> >>-- >>Andreas Ericsson andreas.ericsson at op5.se >>OP5 AB www.op5.se >>Lead Developer >> >> >>------------------------------------------------------- >>SF.Net email is Sponsored by the Better Software Conference & EXPO >>September 19-22, 2005 * San Francisco, CA * Development >>Lifecycle Practices >>Agile & Plan-Driven Development * Managing Projects & Teams * >>Testing & QA >>Security * Process Improvement & Measurement * >>http://www.sqe.com/bsce5sf >>_______________________________________________ >>Nagios-users mailing list >>Nagios-users at lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/nagios-users >>::: Please include Nagios version, plugin version (-v) and OS >>when reporting any issue. >>::: Messages without supporting info will risk being sent to /dev/null >> > > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- An HTML attachment was scrubbed... URL: From sriram003 at gmail.com Fri Aug 12 08:24:03 2005 From: sriram003 at gmail.com (Sriram Sreedhar) Date: Fri, 12 Aug 2005 08:24:03 +0200 (CEST) Subject: Return code of 127 for check of service 'HTTP' on host Message-ID: <20050812062403.19A144F4002@desire.netways.de> Hi guys I have the port 5666 running localhost as well as remotely. Plugins are placed in /usr/local/nagios/libexec/ all the check_commands* are there. If I run the command manually then I get the response remotely as well as locally see below. [root at wninpx01 etc]# /usr/local/nagios/libexec/check_http -H 10.33.16.78 HTTP OK HTTP/1.1 200 OK - 12270 bytes in 0.004 seconds |time=0.004346s; ;;0.000000 size=12270B;;;0 checkcommands.cfg define command{ command_name check_http command_line $USER1$/check_http -H $HOSTADDRESS$ } resource.cfg file has the following line $USER1$=/usr/local/nagios/libexec I have also tried manually giving the full path in the file chekcommands. cfg # 'check_http' command definition define command{ command_name check_http command_line /usr/local/nagios/libexec/check_http -H 10.33.16.78 } This still wont start my webbased to show the services running The following is the logs Aug 12 07:01:39 wninpx01 nagios: Warning: Return code of 127 for check of service 'HTTP' on host 'cluster3' was out of bounds. Make sure the plugin you're trying to run actually exists. Aug 12 07:02:39 wninpx01 nagios: Warning: Return code of 127 for check of service 'IMAP' on host 'cluster3' was out of bounds. Make sure the plugin you're trying to run actually exists. Could someone please help !! Regards - Sriram Sreedhar (sriramsreedhar at gmail.com) ----------------------- The mailing list archive is found here: http://www.nagiosexchange.org/nagios-users.34.0.html ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From GRieger at PROBUSINESS.DE Fri Aug 12 10:55:32 2005 From: GRieger at PROBUSINESS.DE (=?iso-8859-1?Q?G=F6tz_Rieger?=) Date: Fri, 12 Aug 2005 10:55:32 +0200 Subject: Clusters Of Services: Notification Message-ID: Hi list, I would like to monitor a group of services. After some digging I decided to go with check_cluster. I configured a "virtual" host (just to group my services in the webinterface together) and some services on this "host" which in fact are checks on different hosts. I configured check_cluster for these services. I switched the service notifications off except for the check_cluster service. Works like a charme. Now to my question (needless to post without one ;-): When check_cluster reports a warning or critical state, the contacts get an email which states only the problem with the service cluster but not which services fails. I have to fire up the webinterface and drill down to the services to identify the bad boy(s). Is there any way to produce more detailed notifications in this case? Or am I just to blind to see (wouldn't be the first time with Nagios...;-) Any tip or hint would be greatly appreciated. Bye, Goetz -- G?tz Rieger, Projektberater Linux pro|business AG EXPO Plaza 1 (Deutscher Pavillon) 30539 Hannover e-mail: GRieger at probusiness.de Tel.: +49 511 60066-327 Fax: -355 ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jd at op5.se Fri Aug 12 11:06:19 2005 From: jd at op5.se (Johannes Dagemark) Date: Fri, 12 Aug 2005 11:06:19 +0200 Subject: OT: Work with OpenSource and Nagios Message-ID: <42FC668B.2060606@op5.se> Hello All sorry for cross posting Im working for a company that delivers services and products based on nagios and other opensource projects. We are now looking for a full time developer to our team in Gothenburg / Sweden. Get in touch if you are interrested. Cheers Johannes Dagemark OP5 AB Phone: +46733709024 Email: jd at op5.se ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From chris at aidworld.org Fri Aug 12 11:08:15 2005 From: chris at aidworld.org (Chris Wilson) Date: Fri, 12 Aug 2005 10:08:15 +0100 Subject: Disable pager alerts for Acknowledgements ? In-Reply-To: <20050811160124.rm90mnlj1hscko0k@webmail.m5computersecurity.com> References: <20050811160124.rm90mnlj1hscko0k@webmail.m5computersecurity.com> Message-ID: <1123837694.13680.1.camel@localhost> Hi Michael, > We have some alerts go to a pager that is in the NOC, for audible alerts > (can't seem to get audible alerts to work with passive service checks, but > audible alerts work great with active service checks and active host checks). > My NOC people asked if I can get the alerts to only get send to the pager when > something goes down, not once each for down/critical, acknowledgement and > up/recovery. > I notice the scripts in misccommands.cfg use the variable $NOTIFICATIONTYPE$ > included in the alert. I suppose I could write some kind of wrapper that gets > called instead of going straight to /bin/mail, but I was hoping there was a > better (faster, easier, more direct) way. Sorry, I don't think it's possible to turn off these other notifications for pagers without turning them off for email as well (notification_options=c would do that for services). A wrapper script is probably your best option. Cheers, Chris. -- (aidworld) chris wilson | chief engineer (chris at aidworld.org) ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From chris at aidworld.org Fri Aug 12 11:19:58 2005 From: chris at aidworld.org (Chris Wilson) Date: Fri, 12 Aug 2005 10:19:58 +0100 Subject: Return code of 127 for check of service 'HTTP' on host In-Reply-To: <20050812062403.19A144F4002@desire.netways.de> References: <20050812062403.19A144F4002@desire.netways.de> Message-ID: <1123838397.13680.11.camel@localhost> Hi Sriram, > I have the port 5666 running localhost as well as remotely. What does NRPE (on port 5666) have to do with check_http run locally on the Nagios server? > If I run the command manually then I get the response remotely as > well as locally see below. What do you mean "remotely as well as locally"? Do you have something like this: nagios server --NRPE--> NRPE server --check_http--> HTTP server In that case, make sure the NRPE command run by the Nagios server exists and runs as Nagios user. > [root at wninpx01 etc]# /usr/local/nagios/libexec/check_http -H 10.33.16.78 Also make sure that this works if you run it as the Nagios user (not as root). Cheers, Chris. -- (aidworld) chris wilson | chief engineer (chris at aidworld.org) ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From chris at aidworld.org Fri Aug 12 11:25:26 2005 From: chris at aidworld.org (Chris Wilson) Date: Fri, 12 Aug 2005 10:25:26 +0100 Subject: Clusters Of Services: Notification In-Reply-To: References: Message-ID: <1123838725.13680.16.camel@localhost> Hi Gotz, > When check_cluster reports a warning or critical state, > the contacts get an email which states only the problem > with the service cluster but not which services fails. > > I have to fire up the webinterface and drill down to > the services to identify the bad boy(s). > > Is there any way to produce more detailed notifications > in this case? Or am I just to blind to see (wouldn't be > the first time with Nagios...;-) I've written an experimental check_cluster style plugin which gives more detailed output, like this: OK: 0/0/0/3 (virt2.loband.org filter news.bbc.co.uk is OK, virt2.loband.org filter www.google.co.uk is OK, virt2.loband.org filter www.yahoo.com is OK) It's probably not too good for big clusters, as the output will be truncated, and it's not too flexible yet, but it's a shell script so it should be easy to customise. I can send you a copy if you're interested. Cheers, Chris. -- (aidworld) chris wilson | chief engineer (chris at aidworld.org) ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Fri Aug 12 11:30:02 2005 From: ae at op5.se (Andreas Ericsson) Date: Fri, 12 Aug 2005 11:30:02 +0200 Subject: Disable pager alerts for Acknowledgements ? In-Reply-To: <1123837694.13680.1.camel@localhost> References: <20050811160124.rm90mnlj1hscko0k@webmail.m5computersecurity.com> <1123837694.13680.1.camel@localhost> Message-ID: <42FC6C1A.5090905@op5.se> Chris Wilson wrote: > Hi Michael, > > >> We have some alerts go to a pager that is in the NOC, for audible alerts >>(can't seem to get audible alerts to work with passive service checks, but >>audible alerts work great with active service checks and active host checks). >>My NOC people asked if I can get the alerts to only get send to the pager when >>something goes down, not once each for down/critical, acknowledgement and >>up/recovery. >> I notice the scripts in misccommands.cfg use the variable $NOTIFICATIONTYPE$ >>included in the alert. I suppose I could write some kind of wrapper that gets >>called instead of going straight to /bin/mail, but I was hoping there was a >>better (faster, easier, more direct) way. > > > Sorry, I don't think it's possible to turn off these other notifications > for pagers without turning them off for email as well > (notification_options=c would do that for services). A wrapper script is > probably your best option. > The normal course of action is to use two different contacts and set the notification_options for the contacts to whatever you want them to be. > Cheers, Chris. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From GRieger at PROBUSINESS.DE Fri Aug 12 11:44:26 2005 From: GRieger at PROBUSINESS.DE (=?iso-8859-1?Q?G=F6tz_Rieger?=) Date: Fri, 12 Aug 2005 11:44:26 +0200 Subject: AW: Clusters Of Services: Notification Message-ID: Hi Chris, > -----Urspr?ngliche Nachricht----- > Von: Chris Wilson [mailto:chris at aidworld.org] > Gesendet: Freitag, 12. August 2005 11:25 > An: G?tz Rieger > Cc: 'nagios-users at lists.sourceforge.net' > Betreff: Re: [Nagios-users] Clusters Of Services: Notification > > I've written an experimental check_cluster style plugin which > gives more detailed output, like this: >[...] > It's probably not too good for big clusters, as the output will be > truncated, and it's not too flexible yet, but it's a shell > script so it should be easy to customise. I can send you a copy if you're > interested. definitely yes, thank you. I haven't looked in 2.0 beta to deeply, maybe there is something new to monitoring service clusters? Bye, Goetz ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From u_nordbe at hotmail.com Fri Aug 12 14:18:30 2005 From: u_nordbe at hotmail.com (Ulf N) Date: Fri, 12 Aug 2005 14:18:30 +0200 Subject: nagios 2.04 permission denied Message-ID: Cannot start nagios as I get : su: /bin/bash: Permission denied I did a chown -R nagios /usr/local/nagios + chgrp but it didn't help. Whats missing ? ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From fnaumann at diakonie-kork.de Fri Aug 12 14:40:56 2005 From: fnaumann at diakonie-kork.de (Naumann Folker) Date: Fri, 12 Aug 2005 14:40:56 +0200 Subject: Another nrpe/bat question Message-ID: Hi, I have a question/problem concerning check_nrpe and .bat-files I made a file just for testing with command[test]=c:\test.bat test.bat @echo off echo hello world exit 0 Now, when i execute check_nrpe directly via ./libexec/check_nrpe -H somehost -c test it returns hello world, like it should. In Nagios i got a (No output returned from plugin) message. I checked service/checkcommand entry and couldn't find an error. define command{ command_name check_nrpe command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ } define service{ host_name somehost service_description TEST check_command check_nrpe!test ... } I'm using Nsclient++ 0.2.4d (same result with nrpe_nt) and Nagios 2.0b4. I hope somebody can help me. --- Folker Naumann fnaumann at diakonie-kork.de Zentrale IT Diakonie Kork Epilepsiezentrum ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From juhani at aso.ee Fri Aug 12 14:42:53 2005 From: juhani at aso.ee (Juhani Tali) Date: Fri, 12 Aug 2005 15:42:53 +0300 Subject: how parallel are host checks? (after service check fails) Message-ID: <42FC994D.4080206@aso.ee> I have read something about that Nagios will stop processing all service checks on all hosts if some host goes down, until the host check is finished. Is this true? (also in 2.x?) The problem is that I have about 400-500 hosts (cisco routers mostly) and I would like if a problem with one host would not delay locating the problem on another host. Some, but not all host parents are defined. If it is true, that a host check freezes the entire nagios, then is there a way to make it more parallel? Juhani Tali ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From arjuna at ts.infn.it Fri Aug 12 15:05:44 2005 From: arjuna at ts.infn.it (Arjuna Scagnetto) Date: Fri, 12 Aug 2005 15:05:44 +0200 (CEST) Subject: ping Critical Error Message-ID: i've Scientific linux 3.4 , check_ping command gives back this error []# check_ping -H 140.105.31.* -w 300.0,80% -c 5000.0,50% -p 1 /bin/ping -n -U -w 10 -c 1 140.105.31.* CRITICAL - Could not interpret output from ping command Even if i change the values of the options. Someone can help me? p.s. of course "*" means every number ^^ ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Chester.Hosey at gianteagle.com Fri Aug 12 15:13:33 2005 From: Chester.Hosey at gianteagle.com (Chester R. Hosey) Date: Fri, 12 Aug 2005 09:13:33 -0400 Subject: ping Critical Error In-Reply-To: References: Message-ID: <34046.981301117$1123852555@news.gmane.org> On Fri, 2005-08-12 at 15:05 +0200, Arjuna Scagnetto wrote: > i've Scientific linux 3.4 , check_ping command gives back this error > > []# check_ping -H 140.105.31.* -w 300.0,80% -c 5000.0,50% -p 1 > > /bin/ping -n -U -w 10 -c 1 140.105.31.* > CRITICAL - Could not interpret output from ping command > > Even if i change the values of the options. > > Someone can help me? > > p.s. of course "*" means every number ^^ Offhand, I'd suggest at least giving us the output of running ping manually on a failing host. I'd probably start with strace (if installed) to find out whether ping is even executing successfully. But then, I run strace on just about everything. It's ALWAYS my answer. At least some ping output might shed some light on whether your copy of ping is doing anything naughty (FSVO 'naughty'). Chet ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Chester.Hosey at gianteagle.com Fri Aug 12 15:19:42 2005 From: Chester.Hosey at gianteagle.com (Chester R. Hosey) Date: Fri, 12 Aug 2005 09:19:42 -0400 Subject: how parallel are host checks? (after service check fails) In-Reply-To: <42FC994D.4080206@aso.ee> References: <42FC994D.4080206@aso.ee> Message-ID: <20946.1038503379$1123852852@news.gmane.org> On Fri, 2005-08-12 at 15:42 +0300, Juhani Tali wrote: > I have read something about that Nagios will stop processing all service > checks on all hosts if some host goes down, until the host check is > finished. > > Is this true? (also in 2.x?) > > The problem is that I have about 400-500 hosts (cisco routers mostly) > and I would like if a problem with one host would not delay locating the > problem on another host. Some, but not all host parents are defined. > If it is true, that a host check freezes the entire nagios, then is > there a way to make it more parallel? > > Juhani Tali Where did you read this? Can you quote it more specifically? Chet ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From arjuna at ts.infn.it Fri Aug 12 15:23:30 2005 From: arjuna at ts.infn.it (Arjuna Scagnetto) Date: Fri, 12 Aug 2005 15:23:30 +0200 (CEST) Subject: ping Critical Error In-Reply-To: References: Message-ID: > i've Scientific linux 3.4 , check_ping command gives back this error > > []# check_ping -H 140.105.31.* -w 300.0,80% -c 5000.0,50% -p 1 > > /bin/ping -n -U -w 10 -c 1 140.105.31.* > CRITICAL - Could not interpret output from ping command > > Even if i change the values of the options. > > Someone can help me? > > p.s. of course "*" means every number ^^ Nagios 2.0b3 Copyright (c) 1999-2005 Ethan Galstad (www.nagios.org) Last Modified: 04-03-2005 Nagios Plugins 1.4 ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From agabellini at intelcom.sm Fri Aug 12 15:30:06 2005 From: agabellini at intelcom.sm (Andrea Gabellini) Date: Fri, 12 Aug 2005 15:30:06 +0200 Subject: H323 Plugin Message-ID: <6.2.1.2.2.20050812152431.0285df88@mail.intelcom.sm> Hi, I need to check if some voip/h323 calls can be terminated. I tried some application based on openh323 but without success. I don't know c++ so I can't use the openh323 library to write my own application. Somebody can suggest to me a way to reach this objective? Or if exists a plugin that I didn't found? Thanks in advance, Andrea --------------------------------------- Time is what keeps things from happening all at once. --------------------------------------- Ing. Andrea Gabellini Email: agabellini at intelcom.sm Tel: 0549 886111 (Italy) Tel. +378 0549 886111 (International) Intelcom San Marino S.p.A. Strada degli Angariari, 3 47891 Rovereta Repubblic of San Marino http://www.omniway.sm http://www.intelcom.sm ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From GRieger at PROBUSINESS.DE Fri Aug 12 15:30:01 2005 From: GRieger at PROBUSINESS.DE (=?iso-8859-1?Q?G=F6tz_Rieger?=) Date: Fri, 12 Aug 2005 15:30:01 +0200 Subject: AW: ping Critical Error Message-ID: Hi, > -----Urspr?ngliche Nachricht----- > Von: Arjuna Scagnetto [mailto:arjuna at ts.infn.it] > Gesendet: Freitag, 12. August 2005 15:06 > i've Scientific linux 3.4 , check_ping command gives back this error > > []# check_ping -H 140.105.31.* -w 300.0,80% -c 5000.0,50% -p 1 > > /bin/ping -n -U -w 10 -c 1 140.105.31.* > CRITICAL - Could not interpret output from ping command that remembers me of a problem I had recently on SuSE Pro 9.3. In my case it was an internationalization problem. Unsetting $LANG solved it temporarily, plugins 1.4.1 permanently. Goetz ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ralph.Grothe at itdz-berlin.de Fri Aug 12 15:36:37 2005 From: Ralph.Grothe at itdz-berlin.de (Ralph.Grothe at itdz-berlin.de) Date: Fri, 12 Aug 2005 15:36:37 +0200 Subject: Nagios Macro Tokens accessible in NRPE check scripts? Message-ID: <6B893C5F2902D311A23F0090272854FB0575B7F1@litex001.lit.verwalt-berlin.de> Hello, it says somewhere in the docs that as of Nagios V2 check scripts (plug-ins) can access the Nagios macro tokens (such as $HOSTNAME$) through their environment as env vars. You may be wondering why I would want to get something as redundant as the hostname (where the script on the remote nrpe host could simply run a "uname -n" or similar, couldn't it)? Well, it's a bit more convoluted because what is supposed to stand in $HOSTNAME$ is an alias for a relocatable IP address that each packet (or service group, depending on your cluster software's terminology) of a cluster is provided with (think of separate webservers or databases with their own hostname and IP). On the other hand I want to avoid opening up for exploits by allowing nrpe arguments (viz. dont_blame_nrpe=1) I could circumvent the necessity of passed in arguments, by keeping some flexibility, if I had access to the macros like $HOSTNAME$. So is that given? Regards Ralph ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mike at m5computersecurity.com Fri Aug 12 15:41:30 2005 From: mike at m5computersecurity.com (Michael J McCafferty) Date: Fri, 12 Aug 2005 06:41:30 -0700 Subject: Disable pager alerts for Acknowledgements ? In-Reply-To: <42FC6C1A.5090905@op5.se> References: <1123837694.13680.1.camel@localhost> <20050811160124.rm90mnlj1hscko0k@webmail.m5computersecurity.com> <1123837694.13680.1.camel@localhost> <42FC6C1A.5090905@op5.se> Message-ID: <5.2.0.9.0.20050812064003.03a42008@mail.m5hosting.com> I considered that, but I can't figure out how to not send acknowledgements for that new contact. That's really the question; How do I stop acknowledgement notifications for a contact ? At 11:30 AM 8/12/2005 +0200, Andreas Ericsson wrote: >Chris Wilson wrote: >>Hi Michael, >> >>> We have some alerts go to a pager that is in the NOC, for audible alerts >>>(can't seem to get audible alerts to work with passive service checks, but >>>audible alerts work great with active service checks and active host >>>checks). >>>My NOC people asked if I can get the alerts to only get send to the >>>pager when >>>something goes down, not once each for down/critical, acknowledgement and >>>up/recovery. >>> I notice the scripts in misccommands.cfg use the variable >>> $NOTIFICATIONTYPE$ >>>included in the alert. I suppose I could write some kind of wrapper that >>>gets >>>called instead of going straight to /bin/mail, but I was hoping there was a >>>better (faster, easier, more direct) way. >> >>Sorry, I don't think it's possible to turn off these other notifications >>for pagers without turning them off for email as well >>(notification_options=c would do that for services). A wrapper script is >>probably your best option. > >The normal course of action is to use two different contacts and set the >notification_options for the contacts to whatever you want them to be. > >>Cheers, Chris. > >-- >Andreas Ericsson andreas.ericsson at op5.se >OP5 AB www.op5.se >Lead Developer > > >------------------------------------------------------- >SF.Net email is Sponsored by the Better Software Conference & EXPO >September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices >Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA >Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS when >reporting any issue. ::: Messages without supporting info will risk being >sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Chester.Hosey at gianteagle.com Fri Aug 12 15:44:22 2005 From: Chester.Hosey at gianteagle.com (Chester R. Hosey) Date: Fri, 12 Aug 2005 09:44:22 -0400 Subject: Disable pager alerts for Acknowledgements ? In-Reply-To: <5.2.0.9.0.20050812064003.03a42008@mail.m5hosting.com> References: <1123837694.13680.1.camel@localhost> <20050811160124.rm90mnlj1hscko0k@webmail.m5computersecurity.com> <1123837694.13680.1.camel@localhost> <5.2.0.9.0.20050812064003.03a42008@mail.m5hosting.com> Message-ID: <44945.2150999152$1123854395@news.gmane.org> On Fri, 2005-08-12 at 06:41 -0700, Michael J McCafferty wrote: > I considered that, but I can't figure out how to not send acknowledgements > for that new contact. That's really the question; How do I stop > acknowledgement notifications for a contact ? > http://nagios.sourceforge.net/docs/2_0/notifications.html is a neat document. Chet ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Ralph.Grothe at itdz-berlin.de Fri Aug 12 16:17:46 2005 From: Ralph.Grothe at itdz-berlin.de (Ralph.Grothe at itdz-berlin.de) Date: Fri, 12 Aug 2005 16:17:46 +0200 Subject: Nagios Macro Tokens accessible in NRPE check s cripts? Message-ID: <6B893C5F2902D311A23F0090272854FB0575B7F2@litex001.lit.verwalt-berlin.de> On nrpe host I defined these two for testing: command[display_env]=env|sort command[display_hostname]=printf '$HOSTNAME$:\t%s' $HOSTNAME What I get, running these via check_nrpe from Nagios server, is not what I would have expected. $ /opt/sw/nagios/libexec/check_nrpe -H evo01 -c display_env BASH_ENV=/root/.bashrc Wonder where BASH_ENV came from since I set up nrpe to be run under someone else's uid. Can only imagine it's been inheritted from inetd. Whereas here it seems $HOSTNAME is taken from (root's?) environment but $HOSTNAME$ in particular seems to be ignored (it otherwise should hold evo01, the relocatable package's hostname) $ /opt/sw/nagios/libexec/check_nrpe -H evo01 -c display_hostname $HOSTNAME$: nemesis$ I know that a processe's environment can also easily be tainted (that's why there's taint check mode in Perl for instance). So I would gather that env is deliberately redefined by nrpe to prevent exploits (e.g. relocationg a shared lib path etc.). So what I want isn't supported, right? > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of > Ralph.Grothe at itdz-berlin.de > Sent: Friday, August 12, 2005 3:37 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Nagios Macro Tokens accessible in NRPE check > scripts? > > > Hello, > > it says somewhere in the docs that as of Nagios V2 check scripts > (plug-ins) can access the Nagios macro tokens > (such as $HOSTNAME$) through their environment as env vars. > > You may be wondering why I would want to get something as > redundant as the hostname > (where the script on the remote nrpe host could simply run a > "uname -n" or similar, couldn't it)? > > Well, it's a bit more convoluted because what is supposed to > stand in $HOSTNAME$ > is an alias for a relocatable IP address that each packet (or > service group, > depending on your cluster software's terminology) of a cluster is > provided with > (think of separate webservers or databases with their own > hostname and IP). > > On the other hand I want to avoid opening up for exploits by > allowing nrpe arguments > (viz. dont_blame_nrpe=1) > > I could circumvent the necessity of passed in arguments, by > keeping some flexibility, > if I had access to the macros like $HOSTNAME$. > > So is that given? > > Regards > > Ralph > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development > Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * > Testing & QA > Security * Process Improvement & Measurement * > http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From chris at aidworld.org Fri Aug 12 16:29:00 2005 From: chris at aidworld.org (Chris Wilson) Date: Fri, 12 Aug 2005 15:29:00 +0100 Subject: ping Critical Error In-Reply-To: References: Message-ID: <1123856939.13680.22.camel@localhost> Hi Arjuna, > /bin/ping -n -U -w 10 -c 1 140.105.31.* > CRITICAL - Could not interpret output from ping command Try check_icmp instead of check_ping. Remember to make it suid with "chmod +s check_icmp". Cheers, Chris. -- (aidworld) chris wilson | chief engineer (chris at aidworld.org) ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tdondich at gmail.com Fri Aug 12 16:43:47 2005 From: tdondich at gmail.com (Taylor Dondich) Date: Fri, 12 Aug 2005 07:43:47 -0700 Subject: New Nagios UI Released! In-Reply-To: References: Message-ID: <3d2eb72a05081207435279175c@mail.gmail.com> The requirements for the actual interface is really PHP5 and nagios and Groundwork Foundation. It's Groundwork Foundation which has the unique requirement of a JDK, and ANT and Maven to build it. Talks at the Nagios Birds of a Feather meeting discussed the need for a C replacement for Foundation to alleviate that requirement. So we need assistance in that if we wish to do that. Taylor On 8/11/05, Scott Sugar wrote: > > > Exactly.... I looked to try it out, but not with a requirement list like > that. > > ________________________________ > From: nagios-users-admin at lists.sourceforge.net on behalf > of Andreas Ericsson > Sent: Thu 8/11/2005 4:40 AM > To: Masopust Christian > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] RE: New Nagios UI Released! > > > > > Masopust Christian wrote: > >>Taylor Dondich wrote: > >> > >>>Try it. Most of the functionality should work. :) I know > >> > >>Foundation > >> > >>>works pretty well with nagios v2.0, but there might need to be some > >>>work with Status Viewer. :) We can find those problems > >> > >>and fix them > >> > >>>when we come across them. :) > >>> > >> > >>An url would be nice. > >> > > > > > > funny.... 2 minutes ago i was at their site.... > > > http://www.itgroundwork.com/products/gw_status-viewer.html > > > > It would have been nice to try, but what's up with the minimum > requirements list? JDK, Linux 2.6, PHP5, ANT, Maven? I would have > thought it a fair nobrainer to simply write the entire thing in PHP (4.x > or higher). > > > chris > > > > > > > >>>Taylor > >>> > >>>On 8/10/05, nuffers at tsainc.com wrote: > >>> > >>> > >>>>I downloaded the files and read some of the documentation. The > >>>>documentation states that it supports Nagios 1.x and not > >> > >>for Nagios 2.x > >> > >>>>Any ETA on Nagios 2.x support? > >>>> > >>>>Steve > >>> > >>> > >>> > >>>------------------------------------------------------- > >>>SF.Net email is Sponsored by the Better Software Conference & EXPO > >>>September 19-22, 2005 * San Francisco, CA * Development > >> > >>Lifecycle Practices > >> > >>>Agile & Plan-Driven Development * Managing Projects & Teams > >> > >>* Testing & QA > >> > >>>Security * Process Improvement & Measurement * > >> > >>http://www.sqe.com/bsce5sf > >> > >>>_______________________________________________ > >>>Nagios-users mailing list > >>>Nagios-users at lists.sourceforge.net > >>>https://lists.sourceforge.net/lists/listinfo/nagios-users > >>>::: Please include Nagios version, plugin version (-v) and > >> > >>OS when reporting any issue. > >> > >>>::: Messages without supporting info will risk being sent > >> > >>to /dev/null > >> > >>-- > >>Andreas Ericsson andreas.ericsson at op5.se > >>OP5 AB www.op5.se > >>Lead Developer > >> > >> > >>------------------------------------------------------- > >>SF.Net email is Sponsored by the Better Software Conference & EXPO > >>September 19-22, 2005 * San Francisco, CA * Development > >>Lifecycle Practices > >>Agile & Plan-Driven Development * Managing Projects & Teams * > >>Testing & QA > >>Security * Process Improvement & Measurement * > >>http://www.sqe.com/bsce5sf > >>_______________________________________________ > >>Nagios-users mailing list > >>Nagios-users at lists.sourceforge.net > >>https://lists.sourceforge.net/lists/listinfo/nagios-users > >>::: Please include Nagios version, plugin version (-v) and OS > >>when reporting any issue. > >>::: Messages without supporting info will risk being sent to /dev/null > >> > > > > > > -- > Andreas Ericsson andreas.ericsson at op5.se > OP5 AB www.op5.se > Lead Developer > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From GRieger at PROBUSINESS.DE Fri Aug 12 16:39:26 2005 From: GRieger at PROBUSINESS.DE (=?iso-8859-1?Q?G=F6tz_Rieger?=) Date: Fri, 12 Aug 2005 16:39:26 +0200 Subject: AW: ping Critical Error Message-ID: Hm, > -----Urspr?ngliche Nachricht----- > Von: Chris Wilson [mailto:chris at aidworld.org] > Gesendet: Freitag, 12. August 2005 16:29 > > /bin/ping -n -U -w 10 -c 1 140.105.31.* > > CRITICAL - Could not interpret output from ping command > > Try check_icmp instead of check_ping. Remember to make it suid with > "chmod +s check_icmp". if it is the localization problem I mentioned, check_icmp will work but other plugins will not, e.g. check_procs. >From my report to the SuSE Nagios maintainer: > ----snip--- > linux:~ # su daemon > daemon at linux:/root> /usr/lib/nagios/plugins/check_ping -H 127.0.0.1 -w > 100.0,20% -c 500.0,60% > /bin/ping -n -U -w 10 -c 5 127.0.0.1 > CRITICAL - Could not interpret output from ping command > daemon at linux:/root> unset LANG > daemon at linux:/root> /usr/lib/nagios/plugins/check_ping -H 127.0.0.1 -w > 100.0,20% -c 500.0,60% > PING OK - Packet loss = 0%, RTA = 0.32 ms Bye, Goetz ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From djohnson at jsatech.com Fri Aug 12 16:59:51 2005 From: djohnson at jsatech.com (David Johnson) Date: Fri, 12 Aug 2005 09:59:51 -0500 Subject: False Negatives In-Reply-To: References: Message-ID: I figured out my problem. As usual, user error. Which explains why the service check command failed, and the host check command succeeded when they were the same thing. I had the NRPE checks pointing to the wrong NRPE server for the service checks. Actually, it's surprising that the other 30 worked. All is good. My bad. -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Marc Powell Sent: Thursday, August 11, 2005 10:52 AM To: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] False Negatives > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of David Johnson > Sent: Thursday, August 11, 2005 10:37 AM > To: Hosey, Chester; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] False Negatives > > The manual running of the plugins succeeds every time. The nagios running > fails every time. I must say that I get two different failures. > > 1. One falsely failing server returns: "Server answer:" Looking at the src for check_ssh (which I assume you are using), it makes a connection on the specified port and looks for "SSH" as the first 3 characters in the first line of output. If it doesn't find it then it prints "Server answer:" then the text that it did see. In your case it looks like it's either getting a blank line or nothing at all. I'd try that test manually using telnet several times in a row just to make sure that you're seeing the expected output. Perhaps also turn up logging for your sshd. Maybe there's some indication of the problem there. > 2. The other falsely failing server returns a CHECK_NRPE timeout of 10 > seconds (which is odd because I set the timeout to 30 and did a hard > restart). There are two places where the timeout could be coming from. Each plugin may have their own timeout value (usually -t) and nagios has a master timeout value in nagios.cfg (service_check_timeout). The master timeout will always override the plugin timeout value if it's shorter (since nagios has no idea what the plugin timeout might be). If -t=45 for a plugin but service_check_timeout is 10 then you'll still only get 10 seconds. -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Fri Aug 12 17:10:40 2005 From: marc at ena.com (Marc Powell) Date: Fri, 12 Aug 2005 10:10:40 -0500 Subject: how parallel are host checks? (after service check fails) Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Juhani Tali > Sent: Friday, August 12, 2005 7:43 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] how parallel are host checks? (after service check > fails) > > > I have read something about that Nagios will stop processing all service > checks on all hosts if some host goes down, until the host check is > finished. > > Is this true? (also in 2.x?) > Yes. In fact, _all_ other activities stop. http://nagios.sourceforge.net/docs/1_0/checkscheduling.html - Host Checks section. This behavior is maintained in 2.x. Nagios is primarily a service monitor, not a host monitor. > The problem is that I have about 400-500 hosts (cisco routers mostly) > and I would like if a problem with one host would not delay locating the > problem on another host. Some, but not all host parents are defined. > If it is true, that a host check freezes the entire nagios, then is > there a way to make it more parallel? Your host checks should be as simple as possible and finish as quickly as possible. Running the checks in parallel defeats some of the other functionality such as determining unreachable v.s. down hosts. See 7 and 8 from http://nagios.sourceforge.net/docs/1_0/tuning.html -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Fri Aug 12 17:12:35 2005 From: marc at ena.com (Marc Powell) Date: Fri, 12 Aug 2005 10:12:35 -0500 Subject: nagios 2.04 permission denied Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Ulf N > Sent: Friday, August 12, 2005 7:19 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] nagios 2.04 permission denied > > Cannot start nagios as I get : > su: /bin/bash: Permission denied > How are you starting nagios? Are you using the included init script? Are you running the init script as root (you should be)? -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dhopp at GOCSC.com Fri Aug 12 17:38:43 2005 From: dhopp at GOCSC.com (Dennis Hopp) Date: Fri, 12 Aug 2005 10:38:43 -0500 Subject: Checking disk space and graphing Message-ID: <395D09D0C949AF40B9DDFEE9C93A47FF042EB6D7@hudson.gocsc.com> I'm using nagios 2.0b3 and I'm trying to figure how to monitor disk space on both windows and linux servers via snmp. I can get the check_snmp_storage.pl tool to pool disks and show me the stats but I'm trying to figure out how to graph them. I'm using nagios_grapher to process the service process data and dump it into rrd. Because not every server necessarily has the exact same drive setup I don't want to have to setup a new service for every drive I want to monitor. Anybody have any idea on how to make a service that will dynamically create a graph based on what drives snmp sees? --Dennis * "Privileged/Confidential Information of Communications Supply Corp. may be contained in this message. If you are not the addressee of this message, you may not copy, use or deliver this message to anyone. In such event, you should destroy the message and kindly notify the sender by reply e-mail. It is understood that opinions or conclusions that do not relate to the official business of Communications Supply Corp. are neither given nor endorsed by Communications Supply Corp." -------------- next part -------------- An HTML attachment was scrubbed... URL: From aaronhcarr at gmail.com Fri Aug 12 18:02:58 2005 From: aaronhcarr at gmail.com (Aaron Carr) Date: Fri, 12 Aug 2005 12:02:58 -0400 Subject: Status display errors Message-ID: I'm having some strange problems with the Nagios web page output. I have multiple services that randomly (and often) change the status COLOR (only the color mind you, not the actual status) to the orange "Unknown" status. The data returned by the plugins is all showing "OK" status however. It's extremely annoying, because it makes a quick glance at the status page totally useless. I'm running Nagios 2.0b4 on a Linux server, and my current test client is Solaris 9 using various versions of the plugins (from 1.3 - 1.4.1) via check_by_ssh. I've attached a screenshot of what I'm seeing if that helps. Anyone have any answers for this? Thanks. Aaron -------------- next part -------------- A non-text attachment was scrubbed... Name: nagios.png Type: image/png Size: 216588 bytes Desc: not available URL: From brian.huff at gmail.com Fri Aug 12 18:20:45 2005 From: brian.huff at gmail.com (Brian Huff) Date: Fri, 12 Aug 2005 12:20:45 -0400 Subject: newbie question - making a system in a down state report as OK Message-ID: <653a8f2605081209203ca382a4@mail.gmail.com> Hello, I am in process of contemplating a move from Big Brother to Nagios. I am a system admin over a software/hardware development lab facility for telco systems. Our lab consists of several hundred systems. There are some limitations I am running into with BB, and I like the ability to use ssh to perform checks in Nagios.. I really like what I am seeing in Nagios for the vast majority of my systems. We have about 50 simulator boxes that are turned on when needed, and off when not in use for heat load considerations. So down would be an OK state, and the monitor system would just mainly track usage. In Big Brother there was a 'dialup' directive that when a host or service was down it was in an acceptable state, and to go from green to clear and not send critical reports. This worked well for these systems. When they were down they did not 'count' against the overall up/down % that management likes to stress over. Is there a similar state in nagios? I have RTFM, and don't know if I have missed something or didn't understand the terminology. As it sits now on my tactical overview I see way too much red & yellow when everything is operating as desired. One other question, I want to split up my hosts.cfg file by up networks, I see and understand how to do that. The question is, are host templates only valid within that file or are they global?. So could I have lets say have a hosttempl.conf file and have the several hostsXXX.cfg use the templates in hosttempl.conf? Running nagios 2.0B4 on CentOS4.0 on Intel P4 Thanks Brian ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From chris at tac.esi.net Fri Aug 12 19:36:13 2005 From: chris at tac.esi.net (chris hammond) Date: Fri, 12 Aug 2005 13:36:13 -0400 Subject: New Nagios UI Released! Message-ID: I am trying to setup a sever with foundation and sv but when I try to bring up sv, all I see is the php code. I have checked everything but can't seem find out why it wont show properly. php5_module is loading when apache starts and I have restarted apache after changes. The only error showing up in error_log is that there is no favicon.ico in /var/www/html. Any ideas where else I should look? Thanks Chris >>>Taylor Dondich 08/12/05 10:43 am >>> The requirements for the actual interface is really PHP5 and nagios and Groundwork Foundation. It's Groundwork Foundation which has the unique requirement of a JDK, and ANT and Maven to build it. Talks at the Nagios Birds of a Feather meeting discussed the need for a C replacement for Foundation to alleviate that requirement. So we need assistance in that if we wish to do that. Taylor On 8/11/05, Scott Sugar wrote: > > >Exactly.... I looked to try it out, but not with a requirement list like >that. > > > From: nagios-users-admin at lists.sourceforge.net on behalf >of Andreas Ericsson >Sent: Thu 8/11/2005 4:40 AM >To: Masopust Christian >Cc: nagios-users at lists.sourceforge.net >Subject: Re: [Nagios-users] RE: New Nagios UI Released! > > > > >Masopust Christian wrote: >>>Taylor Dondich wrote: >>> >>>>Try it. Most of the functionality should work. :) I know >>> >>>Foundation >>> >>>>works pretty well with nagios v2.0, but there might need to be some >>>>work with Status Viewer. :) We can find those problems >>> >>>and fix them >>> >>>>when we come across them. :) >>>> >>> >>>An url would be nice. >>> >> >> >>funny.... 2 minutes ago i was at their site.... >> >http://www.itgroundwork.com/products/gw_status-viewer.html >> > >It would have been nice to try, but what's up with the minimum >requirements list? JDK, Linux 2.6, PHP5, ANT, Maven? I would have >thought it a fair nobrainer to simply write the entire thing in PHP (4.x >or higher). > >>chris >> >> >> >>>>Taylor >>>> >>>>On 8/10/05, nuffers at tsainc.com wrote: >>>> >>>> >>>>>I downloaded the files and read some of the documentation. The >>>>>documentation states that it supports Nagios 1.x and not >>> >>>for Nagios 2.x >>> >>>>>Any ETA on Nagios 2.x support? >>>>> >>>>>Steve >>>> >>>> >>>> >>>>------------------------------------------------------- >>>>SF.Net email is Sponsored by the Better Software Conference & EXPO >>>>September 19-22, 2005 * San Francisco, CA * Development >>> >>>Lifecycle Practices >>> >>>>Agile & Plan-Driven Development * Managing Projects & Teams >>> >>>* Testing & QA >>> >>>>Security * Process Improvement & Measurement >>> >>>http://www.sqe.com/bsce5sf >>> >>>> >>>>Nagios-users mailing list >>>>Nagios-users at lists.sourceforge.net >>>>https://lists.sourceforge.net/lists/listinfo/nagios-users >>>>::: Please include Nagios version, plugin version (-v) and >>> >>>OS when reporting any issue. >>> >>>>::: Messages without supporting info will risk being sent >>> >>>to /dev/null >>> >>>-- >>>Andreas Ericsson andreas.ericsson at op5.se >>>OP5 AB www.op5.se >>>Lead Developer >>> >>> >>>------------------------------------------------------- >>>SF.Net email is Sponsored by the Better Software Conference & EXPO >>>September 19-22, 2005 * San Francisco, CA * Development >>>Lifecycle Practices >>>Agile & Plan-Driven Development * Managing Projects & Teams >>>Testing & QA >>>Security * Process Improvement & Measurement >>>http://www.sqe.com/bsce5sf >>> >>>Nagios-users mailing list >>>Nagios-users at lists.sourceforge.net >>>https://lists.sourceforge.net/lists/listinfo/nagios-users >>>::: Please include Nagios version, plugin version (-v) and OS >>>when reporting any issue. >>>::: Messages without supporting info will risk being sent to /dev/null >>> >> >> > >-- >Andreas Ericsson andreas.ericsson at op5.se >OP5 AB www.op5.se >Lead Developer > > >------------------------------------------------------- >SF.Net email is Sponsored by the Better Software Conference & EXPO >September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices >Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA >Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS when reporting >any issue. >::: Messages without supporting info will risk being sent to /dev/null > > > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jmwalker at itgroundwork.com Fri Aug 12 19:50:03 2005 From: jmwalker at itgroundwork.com (John Mark Walker) Date: Fri, 12 Aug 2005 10:50:03 -0700 Subject: New Nagios UI Released! In-Reply-To: References: Message-ID: <200508121050.03576.jmwalker@itgroundwork.com> On Friday 12 August 2005 10:36 am, chris hammond wrote: > I am trying to setup a sever with foundation and sv but when I try to > bring up sv, all I see is the php code. I have checked everything but > can't seem find out why it wont show properly. php5_module is loading > when apache starts and I have restarted apache after changes. The > only error showing up in error_log is that there is no favicon.ico > in /var/www/html. Any ideas where else I should look? > The first thing I would check is to make sure that you have PHP enabled for the right file type. Apache checks the file extension to determine how to parse it. I've made the mistake all too often of having PHP code inside a file with a .html extension without defining PHP for that extension. Are you running Apache 2.x or 1.3? Each has a different way of defining interpreters for file extensions. -JM ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From chris at tac.esi.net Fri Aug 12 19:51:55 2005 From: chris at tac.esi.net (chris hammond) Date: Fri, 12 Aug 2005 13:51:55 -0400 Subject: New Nagios UI Released! Message-ID: I believe that is set correctly. Here is my php.conf; # # PHP is an HTML-embedded scripting language which attempts to make it # easy for developers to write dynamically generated webpages. # LoadModule php5_module modules/libphp5.so # # Cause the PHP interpreter to handle files with a .php extension. # AddHandler php5-script .php AddType text/html .php # # Add index.php to the list of files that will be served as directory # indexes. # DirectoryIndex index.php # # Uncomment the following line to allow PHP to pretty-print .phps # files as PHP source code: # #AddType application/x-httpd-php-source .phps >>>John Mark Walker 08/12/05 1:50 pm >>> On Friday 12 August 2005 10:36 am, chris hammond wrote: >I am trying to setup a sever with foundation and sv but when I try to >bring up sv, all I see is the php code. I have checked everything but >can't seem find out why it wont show properly. php5_module is loading >when apache starts and I have restarted apache after changes. The >only error showing up in error_log is that there is no favicon.ico >in /var/www/html. Any ideas where else I should look? > The first thing I would check is to make sure that you have PHP enabled for the right file type. Apache checks the file extension to determine how to parse it. I've made the mistake all too often of having PHP code inside a file with a .html extension without defining PHP for that extension. Are you running Apache 2.x or 1.3? Each has a different way of defining interpreters for file extensions. -JM ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tdondich at gmail.com Fri Aug 12 20:18:37 2005 From: tdondich at gmail.com (Taylor Dondich) Date: Fri, 12 Aug 2005 11:18:37 -0700 Subject: New Nagios UI Released! In-Reply-To: References: Message-ID: <3d2eb72a0508121118356f046f@mail.gmail.com> I've never seen the AddHandler php5-script .php directive when configuring php. I use: AddType application/x-httpd-php .php On 8/12/05, chris hammond wrote: > I believe that is set correctly. Here is my php.conf; > > # > # PHP is an HTML-embedded scripting language which attempts to make it > # easy for developers to write dynamically generated webpages. > # > > LoadModule php5_module modules/libphp5.so > > # > # Cause the PHP interpreter to handle files with a .php extension. > # > AddHandler php5-script .php > AddType text/html .php > > # > # Add index.php to the list of files that will be served as directory > # indexes. > # > DirectoryIndex index.php > > # > # Uncomment the following line to allow PHP to pretty-print .phps > # files as PHP source code: > # > #AddType application/x-httpd-php-source .phps > > > > >>>John Mark Walker 08/12/05 1:50 pm >>> > On Friday 12 August 2005 10:36 am, chris hammond wrote: > >I am trying to setup a sever with foundation and sv but when I try to > >bring up sv, all I see is the php code. I have checked everything but > >can't seem find out why it wont show properly. php5_module is loading > >when apache starts and I have restarted apache after changes. The > >only error showing up in error_log is that there is no favicon.ico > >in /var/www/html. Any ideas where else I should look? > > > > The first thing I would check is to make sure that you have PHP enabled > for the right file type. Apache checks the file extension to determine > how to parse it. I've made the mistake all too often of having PHP code > inside a file with a .html extension without defining PHP for that > extension. Are you running Apache 2.x or 1.3? Each has a different way > of defining interpreters for file extensions. > > -JM > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From chris at tac.esi.net Fri Aug 12 20:26:10 2005 From: chris at tac.esi.net (chris hammond) Date: Fri, 12 Aug 2005 14:26:10 -0400 Subject: New Nagios UI Released! Message-ID: Ok, with that change it appears to be trying to work but the page now comes up like this. "ApplicationCode", "operator" => "=", "value" => "NAGIOS"); $filter[] = array("key" => "SeverityID", "operator" => "=", "value" => "8"); $tempEvents = $eventQuery->getEventsByFilter($filter, "ReportDate", "DESC", 5); // We don't have any dates we need, all we want is the latest 20 if(count($tempEvents)) { foreach($tempEvents as $event) { $severityInfo = $eventQuery->getSeverity($event['SeverityID']); $tempEventsSeverityNames[] = $severityInfo[0]['Name']; } } $hostQuery = new CollageHostQuery($collageDB); $serviceQuery = new CollageServiceQuery($collageDB); // Let's first parse any actions and update if(count($_SESSION['netView']['hostgroups'])) { foreach($_SESSION['netView']['hostgroups'] as &$container) { $container->parseAction(); $container->update($collageDB); } } $leftHeaderLinks[] = array('url' => $_SERVER['PHP_SELF'], 'text' => 'Manual Reload'); $rightHeaderLinks[] = array('url' => $path_config['doc_root'] . 'prefs.php', 'text' => 'Preferences'); $rightHeaderLinks[] = array('url' => $path_config['doc_root'] . 'index.php?netrefresh=1', 'text' => 'Reload Application'); print_header("NetView"); ?> Statistics Number of HostGroups: Number of Hosts: Number of Services: getHostByDeviceID($tempEvents[$counter]['DeviceID']); if(isset($_SESSION['hosts'][$tempHostData['HostName']])) $tempServiceData = $serviceQuery->getServiceByStatusID($tempEvents[$counter]['ServiceStatusID']); if(!isset($_SESSION['hosts'][$tempHostData['HostName']]) || (isset($tempServiceData) && !isset($_SESSION['services'][$tempHostData['HostName']][$tempServiceData['ServiceDescription']]))) { // $_SESSION['outofSync'] = true; continue; } if($counter % 2) { $tdClass= "tableFill03"; } else { $tdClass = "tableFill02"; } ?> Last 5 Critical Events There Are No Critical Events To Display Report Date Host Service Severity Application Name Message render(); } ?> Host Groups >>>Taylor Dondich 08/12/05 2:18 pm >>> I've never seen the AddHandler php5-script .php directive when configuring php. I use: AddType application/x-httpd-php .php On 8/12/05, chris hammond wrote: >I believe that is set correctly. Here is my php.conf; > ># ># PHP is an HTML-embedded scripting language which attempts to make it ># easy for developers to write dynamically generated webpages. ># > >LoadModule php5_module modules/libphp5.so > ># ># Cause the PHP interpreter to handle files with a .php extension. ># >AddHandler php5-script .php >AddType text/html .php > ># ># Add index.php to the list of files that will be served as directory ># indexes. ># >DirectoryIndex index.php > ># ># Uncomment the following line to allow PHP to pretty-print .phps ># files as PHP source code: ># >#AddType application/x-httpd-php-source .phps > > > >>>>John Mark Walker 08/12/05 1:50 pm >>> >On Friday 12 August 2005 10:36 am, chris hammond wrote: >>I am trying to setup a sever with foundation and sv but when I try to >>bring up sv, all I see is the php code. I have checked everything but >>can't seem find out why it wont show properly. php5_module is loading >>when apache starts and I have restarted apache after changes. The >>only error showing up in error_log is that there is no favicon.ico >>in /var/www/html. Any ideas where else I should look? >> > >The first thing I would check is to make sure that you have PHP enabled >for the right file type. Apache checks the file extension to determine >how to parse it. I've made the mistake all too often of having PHP code >inside a file with a .html extension without defining PHP for that >extension. Are you running Apache 2.x or 1.3? Each has a different way >of defining interpreters for file extensions. > >-JM > > >------------------------------------------------------- >SF.Net email is Sponsored by the Better Software Conference & EXPO >September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices >Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA >Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From todd_barbera at wgbh.org Fri Aug 12 21:06:15 2005 From: todd_barbera at wgbh.org (Todd Barbera) Date: Fri, 12 Aug 2005 15:06:15 -0400 Subject: Building Hostgroups using Host Config Files Message-ID: <001301c59f70$ea2712f0$147810ac@GRAPEAPE> Hi, I just installed Nagios 2.0 using Apache in an SSL setup. In my configuration, I decided not to use a single hosts.cfg file, but instead break down my host entries via directories (i.e., etc/servers/sunservers.cfg, etc/servers/windows.cfg). My question is can I create a hostgroup entry that references an individual config file as it's input as opposed to having a "members" entry line that contains 50 hosts or more? Thanks for the feedback. Todd Barbera ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ssugar at proserveit.com Fri Aug 12 21:22:58 2005 From: ssugar at proserveit.com (Scott Sugar) Date: Fri, 12 Aug 2005 15:22:58 -0400 Subject: NSClient++ versus NRPE_NT on Windows 2003 Enterprise Servers Message-ID: Yes, I had the nrpe_nt 0.7 service on windows 2k3 servers freeze. I had to remove them and reinstall nrpe_nt 0.8. That fixed my problems Scott ________________________________ From: nagios-users-admin at lists.sourceforge.net on behalf of Richard DeWath Sent: Thu 8/11/2005 9:32 AM To: Nagios-users at lists.sourceforge.net Subject: [Nagios-users] NSClient++ versus NRPE_NT on Windows 2003 Enterprise Servers I have been using the older NSClient on Windows 2K servers without problems, and some Win2K3 S.E servers until some updates to the Win2K3 SP1 were added. I had installed nrpe_nt 0.7f version and it installed okay and the simple test worked with the service. I rewrote the NSClient service checks into WSH scripts. I tested the scripts using the standard C:> cscript //nologo check_disk.vbs x x x format. The scripts work when I run it on the host machine. When I then put these in the nrpe.cfg file, the service would check it once, but then subsequent calls would time out, etc. I found that the nrpe_nt service was hung and I could not stop the service. I then used task manager to kill the process. I finally backed out nrpe_nt and installed nsclient++ [kudos to the developer]. This works fine for the basic services and I have the Nagios monitoring this way. I now need to use either NSClient++ nrpe feature to run a script for check_volume (I need to monitor raw disks mounted as volumes on folders - the wmi script works fine and returns the correct results when I run it on the Win2K3 E.S with SP1). Here are the questions: 1. Has anyone experienced the nrpe_nt service hanging on Win2K3? And I see there is a version 0.8 for nrpe_nt. Will this fix the problem? 2. Will NSClient++ nrpe module work? 3. Any known WSH issues that would cause the failure? Thanks, Richard __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- An HTML attachment was scrubbed... URL: From marc at ena.com Fri Aug 12 21:32:13 2005 From: marc at ena.com (Marc Powell) Date: Fri, 12 Aug 2005 14:32:13 -0500 Subject: Building Hostgroups using Host Config Files Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Todd Barbera > Sent: Friday, August 12, 2005 2:06 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Building Hostgroups using Host Config Files > > Hi, > > I just installed Nagios 2.0 using Apache in an SSL setup. In my > configuration, I decided not to use a single hosts.cfg file, but instead > break down my host entries via directories (i.e., > etc/servers/sunservers.cfg, etc/servers/windows.cfg). My question is can I > create a hostgroup entry that references an individual config file as it's > input as opposed to having a "members" entry line that contains 50 hosts > or more? Thanks for the feedback. No you can't. A suitable alternative for you might be using the "hostgroups" directive in each of your host definitions. http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#host You could even simplify that further by using a per-file template. Presuming you already have a generic global host template defined you could do the following in etc/servers/sunservers.cfg - define host { use generic-host name sunservers hostgroups sunservers register 0 } define host{ use sunservers host_name Sun_Host_1 alias This is my Sun Host. address 127.0.0.1 } define host{ use sunservers host_name Sun_Host_2 alias This is my Second Sun Host. address 127.0.0.2 } I haven't actually done this myself but I expect the template inheritance to allow it. -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pganapathy at gmail.com Fri Aug 12 22:20:59 2005 From: pganapathy at gmail.com (prashanth ganapathy) Date: Fri, 12 Aug 2005 13:20:59 -0700 Subject: Motorola Canopy nagios snmp plugin Message-ID: I have setup Nagios for a Motorola Canopy network. I wanted to set active snmp checks for host status of the Motorola Canopy Units. I am using another perl script for reference. I need some advice as to how to approach this task Thanks in Advance Prashanth ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From todd_barbera at wgbh.org Fri Aug 12 22:26:45 2005 From: todd_barbera at wgbh.org (Todd Barbera) Date: Fri, 12 Aug 2005 16:26:45 -0400 Subject: Building Hostgroups using Host Config Files In-Reply-To: References: Message-ID: <002001c59f7c$28ac0390$147810ac@GRAPEAPE> Thanks Marc, This did the trick. I was able to clean up my config files considerably using the templates. Todd -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Marc Powell Sent: Friday, August 12, 2005 3:32 PM To: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Building Hostgroups using Host Config Files > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Todd Barbera > Sent: Friday, August 12, 2005 2:06 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Building Hostgroups using Host Config Files > > Hi, > > I just installed Nagios 2.0 using Apache in an SSL setup. In my > configuration, I decided not to use a single hosts.cfg file, but instead > break down my host entries via directories (i.e., > etc/servers/sunservers.cfg, etc/servers/windows.cfg). My question is can I > create a hostgroup entry that references an individual config file as it's > input as opposed to having a "members" entry line that contains 50 hosts > or more? Thanks for the feedback. No you can't. A suitable alternative for you might be using the "hostgroups" directive in each of your host definitions. http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#host You could even simplify that further by using a per-file template. Presuming you already have a generic global host template defined you could do the following in etc/servers/sunservers.cfg - define host { use generic-host name sunservers hostgroups sunservers register 0 } define host{ use sunservers host_name Sun_Host_1 alias This is my Sun Host. address 127.0.0.1 } define host{ use sunservers host_name Sun_Host_2 alias This is my Second Sun Host. address 127.0.0.2 } I haven't actually done this myself but I expect the template inheritance to allow it. -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Fri Aug 12 23:18:11 2005 From: marc at ena.com (Marc Powell) Date: Fri, 12 Aug 2005 16:18:11 -0500 Subject: Status display errors Message-ID: Since you haven't yet received a response... > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Aaron Carr > Sent: Friday, August 12, 2005 11:03 AM > To: Nagios User List > Subject: [Nagios-users] Status display errors > > I'm having some strange problems with the Nagios web page output. > > I have multiple services that randomly (and often) change the status > COLOR (only the color mind you, not the actual status) to the orange > "Unknown" status. The data returned by the plugins is all showing > "OK" status however. > > It's extremely annoying, because it makes a quick glance at the status > page totally useless. > > I'm running Nagios 2.0b4 on a Linux server, and my current test client > is Solaris 9 using various versions of the plugins (from 1.3 - 1.4.1) > via check_by_ssh. > > I've attached a screenshot of what I'm seeing if that helps. > > Anyone have any answers for this? This is clearly not normal. The status/color is determined exclusively by the exit code of the plugin, not the human readable output. It seems that that code isn't being correctly sent, either by the plugin you're running on the remote host or by check_by_ssh (which should just pass on the plugin's exit code). I would try repeatedly running the check command from your nagios machine exactly as it's defined as the nagios user to see if there is some intermittent error condition. After each run, check the exit code with 'echo $?' to see if it matches the expected exit code for the check. If all looks good there, try the same thing on the remote host. http://nagiosplug.sourceforge.net/developer-guidelines.html#AEN75 -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From aaronhcarr at gmail.com Fri Aug 12 23:29:30 2005 From: aaronhcarr at gmail.com (Aaron Carr) Date: Fri, 12 Aug 2005 17:29:30 -0400 Subject: Status display errors In-Reply-To: References: Message-ID: I'll give that a try on Monday. I don't *think* that's it however. Every time I ran the commands from the command line on the Nagios server, the output was exactly as expected. I didn't check the $? values though, so I will do that and post the results. Thanks. Aaron On 8/12/05, Marc Powell wrote: > Since you haven't yet received a response... > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > > admin at lists.sourceforge.net] On Behalf Of Aaron Carr > > Sent: Friday, August 12, 2005 11:03 AM > > To: Nagios User List > > Subject: [Nagios-users] Status display errors > > > > I'm having some strange problems with the Nagios web page output. > > > > I have multiple services that randomly (and often) change the status > > COLOR (only the color mind you, not the actual status) to the orange > > "Unknown" status. The data returned by the plugins is all showing > > "OK" status however. > > > > It's extremely annoying, because it makes a quick glance at the status > > page totally useless. > > > > I'm running Nagios 2.0b4 on a Linux server, and my current test client > > is Solaris 9 using various versions of the plugins (from 1.3 - 1.4.1) > > via check_by_ssh. > > > > I've attached a screenshot of what I'm seeing if that helps. > > > > Anyone have any answers for this? > > This is clearly not normal. The status/color is determined exclusively > by the exit code of the plugin, not the human readable output. It seems > that that code isn't being correctly sent, either by the plugin you're > running on the remote host or by check_by_ssh (which should just pass on > the plugin's exit code). I would try repeatedly running the check > command from your nagios machine exactly as it's defined as the nagios > user to see if there is some intermittent error condition. After each > run, check the exit code with 'echo $?' to see if it matches the > expected exit code for the check. If all looks good there, try the same > thing on the remote host. > > http://nagiosplug.sourceforge.net/developer-guidelines.html#AEN75 > > -- > Marc > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From aloclarit at aol.com Sat Aug 13 00:30:01 2005 From: aloclarit at aol.com (aloclarit at aol.com) Date: Fri, 12 Aug 2005 18:30:01 -0400 Subject: acknowledgements to epager ? Message-ID: <8C76DA4834C814C-E58-9982@MBLK-M03.sysops.aol.com> My boss wants sms alerts on host down and host unreachable states but not on acknowledgements of those. Looks like you can't do that cause as soon as you add an sms contact to a host in hosts.cfg acknowledgements will go there. Am i wrong ? Also, host acknowledgements/notification changes etc.. still don't survive a nagios restart. This has been a problem for me since 1.0 and I'm running the latest cvs now. Service acks etc.. are fine but I keep having to re-acknowledge/disable host alerts. I have retain_state_information=1 in nagios.cfg and it does work for services. Help ? Alex ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From andre.bergei at ementor.no Sat Aug 13 01:01:18 2005 From: andre.bergei at ementor.no (Andre Bergei) Date: Sat, 13 Aug 2005 01:01:18 +0200 Subject: acknowledgements to epager ? Message-ID: <447B76ECA7A8ED45B831D4D419A7AE560D763B@100NOOSLMSG004.common.alpharoot.net> hi > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf > Of aloclarit at aol.com > Sent: Saturday, August 13, 2005 12:30 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] acknowledgements to epager ? > > My boss wants sms alerts on host down and host unreachable > states but not on acknowledgements of those. > Looks like you can't do that cause as soon as you add an sms > contact to a host in hosts.cfg acknowledgements will go there. > > Am i wrong ? I think If you remove the "r" flag in host_notification option for your pager contact, you will not Get notificaton for ack's, but you will not get notifications for up states either. > Also, host acknowledgements/notification changes etc.. still > don't survive a nagios restart. This has been a problem for > me since 1.0 and I'm running the latest cvs now. > Service acks etc.. are fine but I keep having to > re-acknowledge/disable host alerts. > > I have retain_state_information=1 in nagios.cfg and it does > work for services. Check if you got retain_state_information=1 enabled in your host.cfg, maybe you Got it disabled there. Retain_state_information will save your ack's in the Retention file, but not the host alerts settings. For this you must use retain_program_information. > Help ? > > Alex ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From aloclarit at aol.com Sat Aug 13 02:01:50 2005 From: aloclarit at aol.com (aloclarit at aol.com) Date: Fri, 12 Aug 2005 20:01:50 -0400 Subject: acknowledgements to epager ? In-Reply-To: <447B76ECA7A8ED45B831D4D419A7AE560D763B@100NOOSLMSG004.common.alpharoot.net> References: <447B76ECA7A8ED45B831D4D419A7AE560D763B@100NOOSLMSG004.common.alpharoot.net> Message-ID: <8C76DB157119752-E58-9CC3@MBLK-M03.sysops.aol.com> Dh'ou ! for some reason retain_nonstatus_information was set to 0 in hosts.cfg ... my bad. As far as the ack's are concerned the only 2 flags I have for host_notification_options are d and u but I still got an ack through sms. It'd be ok to not get recover messages through sms. Isn't there a way to specifically tell nagios what to do with acks ? -----Original Message----- From: Andre Bergei To: nagios-users at lists.sourceforge.net Sent: Sat, 13 Aug 2005 01:01:18 +0200 Subject: RE: [Nagios-users] acknowledgements to epager ? hi > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf > Of aloclarit at aol.com > Sent: Saturday, August 13, 2005 12:30 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] acknowledgements to epager ? > > My boss wants sms alerts on host down and host unreachable > states but not on acknowledgements of those. > Looks like you can't do that cause as soon as you add an sms > contact to a host in hosts.cfg acknowledgements will go there. > > Am i wrong ? I think If you remove the "r" flag in host_notification option for your pager contact, you will not Get notificaton for ack's, but you will not get notifications for up states either. > Also, host acknowledgements/notification changes etc.. still > don't survive a nagios restart. This has been a problem for > me since 1.0 and I'm running the latest cvs now. > Service acks etc.. are fine but I keep having to > re-acknowledge/disable host alerts. > > I have retain_state_information=1 in nagios.cfg and it does > work for services. Check if you got retain_state_information=1 enabled in your host.cfg, maybe you Got it disabled there. Retain_state_information will save your ack's in the Retention file, but not the host alerts settings. For this you must use retain_program_information. > Help ? > > Alex ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Sat Aug 13 11:40:52 2005 From: ae at op5.se (Andreas Ericsson) Date: Sat, 13 Aug 2005 11:40:52 +0200 Subject: how parallel are host checks? (after service check fails) In-Reply-To: References: Message-ID: <42FDC024.6030507@op5.se> Marc Powell wrote: > >>-----Original Message----- >>From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- >>admin at lists.sourceforge.net] On Behalf Of Juhani Tali >>Sent: Friday, August 12, 2005 7:43 AM >>To: nagios-users at lists.sourceforge.net >>Subject: [Nagios-users] how parallel are host checks? (after service > > check > >>fails) >> >> >>I have read something about that Nagios will stop processing all > > service > >>checks on all hosts if some host goes down, until the host check is >>finished. >> >>Is this true? (also in 2.x?) >> > > > Yes. In fact, _all_ other activities stop. > http://nagios.sourceforge.net/docs/1_0/checkscheduling.html - Host > Checks section. This behavior is maintained in 2.x. Nagios is primarily > a service monitor, not a host monitor. > > >>The problem is that I have about 400-500 hosts (cisco routers mostly) >>and I would like if a problem with one host would not delay locating > > the > >>problem on another host. Some, but not all host parents are defined. >>If it is true, that a host check freezes the entire nagios, then is >>there a way to make it more parallel? > > > Your host checks should be as simple as possible and finish as quickly > as possible. Running the checks in parallel defeats some of the other > functionality such as determining unreachable v.s. down hosts. > This isn't necessarily true, but some clever scheduling needs to be done to be able to run the chain of checks needed for unreachable determination. I've got a couple of ideas on this, but they all involve rather heavy modifications to how Nagios schedules and runs its checks. Most importantly, it needs to do inter-thread communication by some other means than sending results through a FIFO. A good start is to use the check_icmp plugin in check_host mode, which will return OK immediately upon receiving a valid ICMP ECHO response, cutting 4 seconds down to around 0.1 from the default hostcheck when the host is actually up, and 100 seconds to about 45 when the host is down. If this could be serialized, the complexity of (seconds * max_check_attempts * links_in_chain) to simply (seconds * max_check_attempts). In combination with check_icmp in check_host mode, a host with parents in 5 levels will take 45 seconds to run, rather than around 10 minutes with the default check-host and the current checkscheduling. > See 7 and 8 from http://nagios.sourceforge.net/docs/1_0/tuning.html > > -- > Marc > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Sat Aug 13 11:45:12 2005 From: ae at op5.se (Andreas Ericsson) Date: Sat, 13 Aug 2005 11:45:12 +0200 Subject: Nagios Macro Tokens accessible in NRPE check s cripts? In-Reply-To: <6B893C5F2902D311A23F0090272854FB0575B7F2@litex001.lit.verwalt-berlin.de> References: <6B893C5F2902D311A23F0090272854FB0575B7F2@litex001.lit.verwalt-berlin.de> Message-ID: <42FDC128.6040203@op5.se> Ralph.Grothe at itdz-berlin.de wrote: > On nrpe host I defined these two for testing: > > command[display_env]=env|sort > command[display_hostname]=printf '$HOSTNAME$:\t%s' $HOSTNAME > > > > What I get, running these via check_nrpe from Nagios server, > is not what I would have expected. > > $ /opt/sw/nagios/libexec/check_nrpe -H evo01 -c display_env > BASH_ENV=/root/.bashrc > > > Wonder where BASH_ENV came from since I set up nrpe to be run > under someone else's uid. > Can only imagine it's been inheritted from inetd. > > > Whereas here it seems $HOSTNAME is taken from (root's?) > environment > but $HOSTNAME$ in particular seems to be ignored > (it otherwise should hold evo01, the relocatable package's > hostname) > > > $ /opt/sw/nagios/libexec/check_nrpe -H evo01 -c display_hostname > $HOSTNAME$: nemesis$ > > > I know that a processe's environment can also easily be tainted > (that's why there's taint check mode in Perl for instance). > So I would gather that env is deliberately redefined by nrpe > to prevent exploits (e.g. relocationg a shared lib path etc.). > > > So what I want isn't supported, right? > NRPE has no idea of Nagios' environment variables, as it's a) A different process b) Run on a different host NRPE also maintains the environment it had when it started. If you want the environment of another user to be inherited by NRPE, you *MUST* start it as that user (via 'su -' or some other mechanism). > > > > >>-----Original Message----- >>From: nagios-users-admin at lists.sourceforge.net >>[mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of >>Ralph.Grothe at itdz-berlin.de >>Sent: Friday, August 12, 2005 3:37 PM >>To: nagios-users at lists.sourceforge.net >>Subject: [Nagios-users] Nagios Macro Tokens accessible in NRPE > > check > >>scripts? >> >> >>Hello, >> >>it says somewhere in the docs that as of Nagios V2 check > > scripts > >>(plug-ins) can access the Nagios macro tokens >>(such as $HOSTNAME$) through their environment as env vars. >> >>You may be wondering why I would want to get something as >>redundant as the hostname >>(where the script on the remote nrpe host could simply run a >>"uname -n" or similar, couldn't it)? >> >>Well, it's a bit more convoluted because what is supposed to >>stand in $HOSTNAME$ >>is an alias for a relocatable IP address that each packet (or >>service group, >>depending on your cluster software's terminology) of a cluster > > is > >>provided with >>(think of separate webservers or databases with their own >>hostname and IP). >> >>On the other hand I want to avoid opening up for exploits by >>allowing nrpe arguments >>(viz. dont_blame_nrpe=1) >> >>I could circumvent the necessity of passed in arguments, by >>keeping some flexibility, >>if I had access to the macros like $HOSTNAME$. >> >>So is that given? >> >>Regards >> >>Ralph >> >> >>------------------------------------------------------- >>SF.Net email is Sponsored by the Better Software Conference & > > EXPO > >>September 19-22, 2005 * San Francisco, CA * Development >>Lifecycle Practices >>Agile & Plan-Driven Development * Managing Projects & Teams * >>Testing & QA >>Security * Process Improvement & Measurement * >>http://www.sqe.com/bsce5sf >>_______________________________________________ >>Nagios-users mailing list >>Nagios-users at lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/nagios-users >>::: Please include Nagios version, plugin version (-v) and OS >>when reporting any issue. >>::: Messages without supporting info will risk being sent to > > /dev/null > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Sat Aug 13 11:47:37 2005 From: ae at op5.se (Andreas Ericsson) Date: Sat, 13 Aug 2005 11:47:37 +0200 Subject: New Nagios UI Released! In-Reply-To: <3d2eb72a0508121118356f046f@mail.gmail.com> References: <3d2eb72a0508121118356f046f@mail.gmail.com> Message-ID: <42FDC1B9.7010409@op5.se> Taylor Dondich wrote: > I've never seen the AddHandler php5-script .php directive when configuring php. > AddHandler is used for running PHP as CGI's > I use: > > AddType application/x-httpd-php .php > This is with the module embedded. The LoadModule statement suggests this is what Chris should use. > On 8/12/05, chris hammond wrote: > >>I believe that is set correctly. Here is my php.conf; >> >># >># PHP is an HTML-embedded scripting language which attempts to make it >># easy for developers to write dynamically generated webpages. >># >> >>LoadModule php5_module modules/libphp5.so >> >># >># Cause the PHP interpreter to handle files with a .php extension. >># >>AddHandler php5-script .php >>AddType text/html .php >> >># >># Add index.php to the list of files that will be served as directory >># indexes. >># >>DirectoryIndex index.php >> >># >># Uncomment the following line to allow PHP to pretty-print .phps >># files as PHP source code: >># >>#AddType application/x-httpd-php-source .phps >> >> >> >> >>>>>John Mark Walker 08/12/05 1:50 pm >>> >> >>On Friday 12 August 2005 10:36 am, chris hammond wrote: >> >>>I am trying to setup a sever with foundation and sv but when I try to >>>bring up sv, all I see is the php code. I have checked everything but >>>can't seem find out why it wont show properly. php5_module is loading >>>when apache starts and I have restarted apache after changes. The >>>only error showing up in error_log is that there is no favicon.ico >>>in /var/www/html. Any ideas where else I should look? >>> >> >>The first thing I would check is to make sure that you have PHP enabled >>for the right file type. Apache checks the file extension to determine >>how to parse it. I've made the mistake all too often of having PHP code >>inside a file with a .html extension without defining PHP for that >>extension. Are you running Apache 2.x or 1.3? Each has a different way >>of defining interpreters for file extensions. >> >>-JM >> >> >>------------------------------------------------------- >>SF.Net email is Sponsored by the Better Software Conference & EXPO >>September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices >>Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA >>Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf >>_______________________________________________ >>Nagios-users mailing list >>Nagios-users at lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/nagios-users >>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >>::: Messages without supporting info will risk being sent to /dev/null >> > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tony at thewordzone.co.uk Sat Aug 13 21:49:25 2005 From: tony at thewordzone.co.uk (Tony) Date: Sat, 13 Aug 2005 20:49:25 +0100 Subject: Additional Info in Acknowledgement Emails Message-ID: <200508131951.j7DJpPdt022571@sg1.games-master.co.uk> I?ve just recently installed version 2 of Nagios and have noticed that emails and text messages that get sent out because of an acknowledgement to a problem no longer contain the acknowledgement comment as additional info. Instead it contains the result to the check that has been acknowledged. This wasn?t the case in version 1.4, has this been changed in version 2 or have I done something wrong? If this has been changed in version 2 is it possible to get the function back? TIA Tony -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 0.0.338 / Virus Database: 267.10.8/71 - Release Date: 12/08/2005 -------------- next part -------------- An HTML attachment was scrubbed... URL: From marc at ena.com Sat Aug 13 22:35:41 2005 From: marc at ena.com (Marc Powell) Date: Sat, 13 Aug 2005 15:35:41 -0500 Subject: Additional Info in Acknowledgement Emails Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Tony > Sent: Saturday, August 13, 2005 2:49 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Additional Info in Acknowledgement Emails > > I've just recently installed version 2 of Nagios and have noticed that > emails and text messages that get sent out because of an acknowledgement > to a problem no longer contain the acknowledgement comment as additional > info. > > Instead it contains the result to the check that has been acknowledged. > > This wasn't the case in version 1.4, has this been changed in version 2 or > have I done something wrong? > > > > If this has been changed in version 2 is it possible to get the function > back? First thing on the CHANGELOG. CHANGELOGs are usually important when you're upgrading. http://nagios.sourceforge.net/docs/2_0/whatsnew.html#changelog 1) Macro Changes - Macros have undergone a major overhaul. You will have to update most of your command definitions to match the new macros. Most macros are now available as environment variables. Also, "on-demand" host and service macros have been added. See the documentation on macros for more information. -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nagios-user at proy.org Sun Aug 14 15:20:36 2005 From: nagios-user at proy.org (Patrick Proy) Date: Sun, 14 Aug 2005 15:20:36 +0200 Subject: Motorola Canopy nagios snmp plugin In-Reply-To: References: Message-ID: <20050814132036.B0423AB6E1@www.manubulon.com> Hi, I have some generic perl script for this kind of needs. Give me some information about what kind of test you need : check in mib table entries, oid comparison, etc... and I will forward it to you. Patrick Nagios AT proy dot org http://www.manubulon.com/nagios/ -----Message d'origine----- De : nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] De la part de prashanth ganapathy Envoy? : vendredi 12 ao?t 2005 22:21 ? : nagios-users at lists.sourceforge.net Objet : [Nagios-users] Motorola Canopy nagios snmp plugin I have setup Nagios for a Motorola Canopy network. I wanted to set active snmp checks for host status of the Motorola Canopy Units. I am using another perl script for reference. I need some advice as to how to approach this task Thanks in Advance Prashanth ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From brian.murphy at gmx.net Mon Aug 15 00:19:45 2005 From: brian.murphy at gmx.net (Brian Murphy) Date: Sun, 14 Aug 2005 22:19:45 +0000 (UTC) Subject: Multiple Nagios proccesses running. References: <200507252109.j6PL9vjU023926@mail.asc.edu> <20050725221507.30266.qmail@mullet.softflare.net> <1122373846.30418.65.camel@localhost> <42E74E29.5090005@op5.se> <1122471906.15025.254.camel@localhost> <42E7BA0D.4020804@op5.se> <1122484346.15025.267.camel@localhost> <42E7DCBD.9090904@op5.se> <1122542715.29724.8.camel@localhost> <42E9275F.2030202@op5.se> <1122628003.13754.56.camel@localhost> <1122639398.13754.58.camel@localhost> <1123752803.20276.0.camel@localhost> <42FB1EB5.9010808@op5.se> <1123756911.20276.42.camel@localhost> <42FB519E.6020800@op5.se> <1123773386.20276.129.camel@localhost> Message-ID: Hi Guys I see this too in my 2.0b4 instance. I suspect they extra processes are forked passive check processors in my case trying to pass back results to the master process but ending up in a state where it never happens. This after trying to follow my way through the code and running strace and truss on the nagios - and child processes. Some of the extra processes dissappear but not all of them, if we leave it overnight it will stop our overspecced proliant. This is not a daemon starting issue but a check result processing issue. Any suggestions how to address this? regards Brian ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From arif.snort at gmail.com Mon Aug 15 01:30:30 2005 From: arif.snort at gmail.com (Arif Snort) Date: Mon, 15 Aug 2005 06:30:30 +0700 Subject: Nagios-users digest, Vol 1 #2754 - 16 msgs In-Reply-To: <20050812030957.A897513A06@sc8-sf-spam2.sourceforge.net> References: <20050812030957.A897513A06@sc8-sf-spam2.sourceforge.net> Message-ID: <198c5447050814163056e73b59@mail.gmail.com> i am sorry..i am a newbe make linux and nagios...can you help me, how to install and compile nagios with mysql ? ok thanks before.. On 8/12/05, nagios-users-request at lists.sourceforge.net wrote: > Send Nagios-users mailing list submissions to > nagios-users at lists.sourceforge.net > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/nagios-users > or, via email, send a message with subject or body 'help' to > nagios-users-request at lists.sourceforge.net > > You can reach the person managing the list at > nagios-users-admin at lists.sourceforge.net > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Nagios-users digest..." > > > Today's Topics: > > 1. False Negatives (David Johnson) > 2. RE: False Negatives (Hosey, Chester) > 3. RE: False Negatives (David Johnson) > 4. RE: False Negatives (David Johnson) > 5. Service Went Down, No notification sent... (John McGowan) > 6. RE: False Negatives (Marc Powell) > 7. Re: Service Went Down, No notification sent... (Andreas Ericsson) > 8. Re: why can't a servicegroup have no members? (Kevin Hanser) > 9. RE: why can't a servicegroup have no members? (Marc Powell) > 10. Re: Service Went Down, No notification sent... (John McGowan) > 11. missing var/objects.cache (naguser at bhodisoft.com) > 12. RE: missing var/objects.cache (Marc Powell) > 13. RE: missing var/objects.cache (naguser at bhodisoft.com) > 14. Disable pager alerts for Acknowledgements ? (Michael J McCafferty) > 15. external commands audit trail (Marc Martinez) > 16. =?ISO-8859-1?Q?Multiple_orphaned_nagios_processes?= (Brian Murphy) > > --__--__-- > > Message: 1 > Reply-To: > From: "David Johnson" > To: > Date: Thu, 11 Aug 2005 10:20:15 -0500 > Subject: [Nagios-users] False Negatives > > Long time user, first time emailer... > > We have been loving nagios and we've even submitted some source code = > improvements. However, we have a problem with false negatives. We have = > 2 remote servers we monitor in which the SSH service is being reported = > as down, while the host is being reported as up. Both of these servers = > are operating properly. In addition, the host check command and service = > check commands are identical. We have 40 other servers which operate in = > exactly the same way, yet the SSH service on these 2 is being reported = > as down. Exact same versions of SSH on all servers also. The only = > difference is location. =20 > > > > --__--__-- > > Message: 2 > Subject: RE: [Nagios-users] False Negatives > Date: Thu, 11 Aug 2005 11:23:27 -0400 > From: "Hosey, Chester" > To: , > > > Have you run the service check plugins manually to see what it returns? > Is it just an occasional failure? > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of David > Johnson > Sent: Thursday, August 11, 2005 11:20 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] False Negatives > > > Long time user, first time emailer... > > We have been loving nagios and we've even submitted some source code > improvements. However, we have a problem with false negatives. We have > 2 remote servers we monitor in which the SSH service is being reported > as down, while the host is being reported as up. Both of these servers > are operating properly. In addition, the host check command and service > check commands are identical. We have 40 other servers which operate in > exactly the same way, yet the SSH service on these 2 is being reported > as down. Exact same versions of SSH on all servers also. The only > difference is location. =20 > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > Practices Agile & Plan-Driven Development * Managing Projects & Teams * > Testing & QA Security * Process Improvement & Measurement * > http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue.=20 > ::: Messages without supporting info will risk being sent to /dev/null > > > --__--__-- > > Message: 3 > Reply-To: > From: "David Johnson" > To: "Hosey, Chester" , > > Subject: RE: [Nagios-users] False Negatives > Date: Thu, 11 Aug 2005 10:36:33 -0500 > > I've run them manually both through NRPE and directly on the host that = > runs them. All returns okay. Exactly the same as all other hosts. I = > thought perhaps it might be time delay, so I set the timeout on my = > check_ssh command to 30 seconds (from the default of 10). I did the = > same with NRPE. > > > -----Original Message----- > From: Hosey, Chester [mailto:Chester.Hosey at gianteagle.com] > Sent: Thursday, August 11, 2005 10:23 AM > To: djohnson at jsatech.com; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] False Negatives > > > Have you run the service check plugins manually to see what it returns? > Is it just an occasional failure? > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of David > Johnson > Sent: Thursday, August 11, 2005 11:20 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] False Negatives > > > Long time user, first time emailer... > > We have been loving nagios and we've even submitted some source code > improvements. However, we have a problem with false negatives. We have > 2 remote servers we monitor in which the SSH service is being reported > as down, while the host is being reported as up. Both of these servers > are operating properly. In addition, the host check command and service > check commands are identical. We have 40 other servers which operate in > exactly the same way, yet the SSH service on these 2 is being reported > as down. Exact same versions of SSH on all servers also. The only > difference is location. =20 > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > Practices Agile & Plan-Driven Development * Managing Projects & Teams * > Testing & QA Security * Process Improvement & Measurement * > http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue.=20 > ::: Messages without supporting info will risk being sent to /dev/null > > > > --__--__-- > > Message: 4 > Reply-To: > From: "David Johnson" > To: "Hosey, Chester" , > > Subject: RE: [Nagios-users] False Negatives > Date: Thu, 11 Aug 2005 10:36:33 -0500 > > The manual running of the plugins succeeds every time. The nagios = > running fails every time. I must say that I get two different failures. > > 1. One falsely failing server returns: "Server answer:" > 2. The other falsely failing server returns a CHECK_NRPE timeout of 10 = > seconds (which is odd because I set the timeout to 30 and did a hard = > restart). =20 > > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Hosey, > Chester > Sent: Thursday, August 11, 2005 10:23 AM > To: djohnson at jsatech.com; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] False Negatives > > > Have you run the service check plugins manually to see what it returns? > Is it just an occasional failure? > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of David > Johnson > Sent: Thursday, August 11, 2005 11:20 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] False Negatives > > > Long time user, first time emailer... > > We have been loving nagios and we've even submitted some source code > improvements. However, we have a problem with false negatives. We have > 2 remote servers we monitor in which the SSH service is being reported > as down, while the host is being reported as up. Both of these servers > are operating properly. In addition, the host check command and service > check commands are identical. We have 40 other servers which operate in > exactly the same way, yet the SSH service on these 2 is being reported > as down. Exact same versions of SSH on all servers also. The only > difference is location. =20 > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > Practices Agile & Plan-Driven Development * Managing Projects & Teams * > Testing & QA Security * Process Improvement & Measurement * > http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue.=20 > ::: Messages without supporting info will risk being sent to /dev/null > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle = > Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & = > QA > Security * Process Improvement & Measurement * = > http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when = > reporting any issue.=20 > ::: Messages without supporting info will risk being sent to /dev/null > > > > --__--__-- > > Message: 5 > Date: Thu, 11 Aug 2005 10:36:42 -0500 > From: John McGowan > To: Nagios Users List > Subject: [Nagios-users] Service Went Down, No notification sent... > > I'm not sure exactly where to start on this.... last night i checked on > my services and noticed a service that was down and had been down for > about 20 minutes. No notification was ever sent out... this is what I > saw in the log... > > [08-10-2005 22:07:36] SERVICE ALERT: tessweb;Tessitura > SeatServer;CRITICAL;HARD;1;CRITICAL - Socket timeout after 10 seconds > > When I ran a test this morning this is what I saw in the event log. > > [08-11-2005 10:17:39] SERVICE ALERT: tessweb;Tessitura > SeatServer;CRITICAL;SOFT;1;No route to host > [08-11-2005 10:18:08] SERVICE ALERT: tessweb;Tessitura > SeatServer;CRITICAL;SOFT;2;No route to host > [08-11-2005 10:18:38] SERVICE ALERT: tessweb;Tessitura > SeatServer;CRITICAL;SOFT;3;No route to host > [08-11-2005 10:19:08] SERVICE ALERT: tessweb;Tessitura > SeatServer;CRITICAL;SOFT;4;No route to host > [08-11-2005 10:19:38] SERVICE ALERT: tessweb;Tessitura > SeatServer;CRITICAL;HARD;5;No route to host > > The first thing that stood out when I saw it was the fact that the max > check attempts didn't seem to make a difference last night... the > service went critical hard on the first failure... > > FYI: the particular thing that caused this failure last night was that > the VPN between here and there was down. > > the service definition is listed below... with it's template > > > > define service{ > name generic-service ; The 'name' of this service > template, referenced in other service definitions > active_checks_enabled 1 ; Active service checks are enabled > passive_checks_enabled 1 ; Passive service checks are > enabled/accepted > parallelize_check 1 ; Active service checks should be > parallelized (disabling this can lead to major performance problems) > obsess_over_service 1 ; We should obsess over this service > (if necessary) > check_freshness 0 ; Default is to NOT check service > 'freshness' > notifications_enabled 1 ; Service notifications are enabled > event_handler_enabled 1 ; Service event handler is enabled > flap_detection_enabled 1 ; Flap detection is enabled > process_perf_data 1 ; Process performance data > retain_status_information 1 ; Retain status information across > program restarts > retain_nonstatus_information 1 ; Retain non-status information > across program restarts > is_volatile 0 > > check_period 24x7 > notification_period 24x7 > notification_interval 120 > notification_options w,u,c,r > contact_groups admins > max_check_attempts 5 > normal_check_interval 60 > retry_check_interval 30 > > > register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A > REAL SERVICE, JUST A TEMPLATE! > } > > # Service definition > define service{ > use generic-service ; Name of service template > to use > contact_groups csoadmins > host_name tessweb > service_description Tessitura SeatServer > check_command > check_http_site2_ssl!tessweb.cso.org!true!/Tessitura.asmx/WebSeatServerListening > } > > > > > --__--__-- > > Message: 6 > Subject: RE: [Nagios-users] False Negatives > Date: Thu, 11 Aug 2005 10:52:27 -0500 > From: "Marc Powell" > To: > > > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > > admin at lists.sourceforge.net] On Behalf Of David Johnson > > Sent: Thursday, August 11, 2005 10:37 AM > > To: Hosey, Chester; nagios-users at lists.sourceforge.net > > Subject: RE: [Nagios-users] False Negatives > >=20 > > The manual running of the plugins succeeds every time. The nagios > running > > fails every time. I must say that I get two different failures. > >=20 > > 1. One falsely failing server returns: "Server answer:" > > Looking at the src for check_ssh (which I assume you are using), it > makes a connection on the specified port and looks for "SSH" as the > first 3 characters in the first line of output. If it doesn't find it > then it prints "Server answer:" then the text that it did see. In your > case it looks like it's either getting a blank line or nothing at all. > I'd try that test manually using telnet several times in a row just to > make sure that you're seeing the expected output. Perhaps also turn up > logging for your sshd. Maybe there's some indication of the problem > there. > > > 2. The other falsely failing server returns a CHECK_NRPE timeout of 10 > > seconds (which is odd because I set the timeout to 30 and did a hard > > restart). > > There are two places where the timeout could be coming from. Each plugin > may have their own timeout value (usually -t) and nagios has a master > timeout value in nagios.cfg (service_check_timeout). The master timeout > will always override the plugin timeout value if it's shorter (since > nagios has no idea what the plugin timeout might be). If -t=3D45 for a > plugin but service_check_timeout is 10 then you'll still only get 10 > seconds. > > -- > Marc > > > --__--__-- > > Message: 7 > Date: Thu, 11 Aug 2005 17:58:14 +0200 > From: Andreas Ericsson > To: Nagios Users List > Subject: Re: [Nagios-users] Service Went Down, No notification sent... > > John McGowan wrote: > > I'm not sure exactly where to start on this.... last night i checked on > > my services and noticed a service that was down and had been down for > > about 20 minutes. No notification was ever sent out... this is what I > > saw in the log... > > > > [08-10-2005 22:07:36] SERVICE ALERT: tessweb;Tessitura > > SeatServer;CRITICAL;HARD;1;CRITICAL - Socket timeout after 10 seconds > > > > When I ran a test this morning this is what I saw in the event log. > > > > The first thing that stood out when I saw it was the fact that the max > > check attempts didn't seem to make a difference last night... the > > service went critical hard on the first failure... > > > > This is because the host was down as well. Service checks aren't > reported if the host is down, and they're set to HARD immediately to > save the added strain of having to re-check them frequently. > > > FYI: the particular thing that caused this failure last night was that > > the VPN between here and there was down. > > > > So the hostcheck couldn't possibly have succeeded then, and the host was > most likely in UNREACHABLE state (if you monitor the VPN tunnel in both > ends and have parents set up properly). > > What notifications *did* you get? An unreachable for the VPN tunnel? > > -- > Andreas Ericsson andreas.ericsson at op5.se > OP5 AB www.op5.se > Lead Developer > > > --__--__-- > > Message: 8 > Subject: Re: [Nagios-users] why can't a servicegroup have no members? > From: Kevin Hanser > To: nagios-users at lists.sourceforge.net, > "Chester R. Hosey" > Date: Thu, 11 Aug 2005 13:52:30 -0400 > > Hmmm... went back and tried it, and sure enough it's working for me. I > think it was complaining before because I had a servicegroup with no > members, and also didn't have any services defined with the > "servicegroups" directive. Looks like one or the other is required.. > > I was confused because I created my servicegroup first (w/out any > members) and then did a config check. At that point it complained that > the servicegroup had no members and wouldn't go. Apparently though > after I've added the "servicegroup" directive to some services, it's no > longer complaining about the "members" being missing. > > So I guess I need one or the other, I was only getting an error because > I had just created the servicegroup and not added anything to it yet. > > thx! > > k > > On Wed, 2005-08-10 at 17:28 -0400, Chester R. Hosey wrote: > > Using 2.0b4 also: > > > > define service{ > > use nrpe-load-check > > host_name chet-linux-desktop > > servicegroups test > > } > > > > define servicegroup{ > > servicegroup_name test > > alias Sample Group > > } > > > > > > /usr/bin/nagios -v /etc/nagios/nagios.cfg liked it. > > > > Chet > > > > > > On Wed, 2005-08-10 at 17:14 -0400, Kevin Hanser wrote: > > > I am running Nagios 2.0b4, and I'm trying to create some servicegroups > > > for nice display and whatnot. > > > > > > I can get them to work fine, as long as I specify at least one member > in > > > the servicegroups definition... However, I'd like to create a > > > servicegroup for "router interfaces", and I don't really want to type > in > > > every description for every router interface I have on every router, > > > when I've already put it into the service definition. I see that I can > > > specify servicegroups in the service definition and that would be > > > perfect for me, except for one thing: nagios won't let me create a > > > servicegroup w/out any members. > > > > > > I would like to create the servicegroup w/no members in its definition, > > > and then use the "servicegroups" directive w/in the service definition > > > to make each interface a member of the servicegroup. So I guess my > > > question is... Why is the "members" directive required when defining a > > > servicegroup? > > > > > > Thx! > > > > > > k > > > > > > > > > ------------------------------------------------------- > > > SF.Net email is Sponsored by the Better Software Conference & EXPO > > > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > Practices > > > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & > QA > > > Security * Process Improvement & Measurement * > http://www.sqe.com/bsce5sf > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > > > ::: Messages without supporting info will risk being sent to /dev/null > > > --__--__-- > > Message: 9 > Subject: RE: [Nagios-users] why can't a servicegroup have no members? > Date: Thu, 11 Aug 2005 13:08:39 -0500 > From: "Marc Powell" > To: > > > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > > admin at lists.sourceforge.net] On Behalf Of Kevin Hanser > > Sent: Thursday, August 11, 2005 12:53 PM > > To: nagios-users at lists.sourceforge.net; Chester R. Hosey > > Subject: Re: [Nagios-users] why can't a servicegroup have no members? > >=20 > > Hmmm... went back and tried it, and sure enough it's working for me. > I > > think it was complaining before because I had a servicegroup with no > > members, and also didn't have any services defined with the > > "servicegroups" directive. Looks like one or the other is required.. > >=20 > > Which makes sense. > > > I was confused because I created my servicegroup first (w/out any > > members) and then did a config check. At that point it complained > that > > the servicegroup had no members and wouldn't go. Apparently though > > after I've added the "servicegroup" directive to some services, it's > no > > longer complaining about the "members" being missing. > > Because it has members now, a 'member' indicating a service that is part > of the group, not specifically the 'members' directive for the > definition. The terminology may be slightly confusing but the concept > shouldn't be. A servicegroup (or any group) has to have members (e.g. > services in this case) associated with it, either through the > servicegroup members definition or through the service servicegroups > definition. A group with no members is meaningless. > > -- > Marc=20 > > > --__--__-- > > Message: 10 > Date: Thu, 11 Aug 2005 14:19:43 -0500 > From: John McGowan > To: Nagios Users List > Subject: Re: [Nagios-users] Service Went Down, No notification sent... > > > > Andreas Ericsson wrote: > > >> This is because the host was down as well. Service checks aren't > >> reported if the host is down, and they're set to HARD immediately to > >> save the added strain of having to re-check them frequently. > > > Ah that makes perfect sense... My problem is that I've been using hosts > as more of an organizational tool, just grouping services together. > > > What notifications *did* you get? An unreachable for the VPN tunnel? > > No notification at all, because the host wasn't setup properly > > > --__--__-- > > Message: 11 > Date: Thu, 11 Aug 2005 14:15:50 -0700 (PDT) > From: naguser at bhodisoft.com > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] missing var/objects.cache > > I'm setting up the web interfaces on a pair of existing distributed nodes. > On one of them, I get this whoops message "Error: Could not read object > configuration data!". > > I compared the two nodes and on the one that is giving me the error, I'm > missing a var/objects.cache file. The nodes have the same > object_cache_file setting in etc/nagios.cfg and grep isn't turning up any > other related settings that I can see. > > Am I right in suspecting that this missing file is the most likely source > of the problem? If so, how do I create that file? The error message says > that I should "make sure you've compiled the main program and the CGIs to > use the same object data storage options", but to the best of my knowledge > there was no difference between the two installs. > > I've tried just 'touch'ing it and reloading nagios, but no luck with that. > It is still empty and I'm still getting the error. > > Thanks, > > -G_E > > > > --__--__-- > > Message: 12 > Subject: RE: [Nagios-users] missing var/objects.cache > Date: Thu, 11 Aug 2005 16:45:30 -0500 > From: "Marc Powell" > To: > > > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > > admin at lists.sourceforge.net] On Behalf Of naguser at bhodisoft.com > > Sent: Thursday, August 11, 2005 4:16 PM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] missing var/objects.cache > >=20 > > I'm setting up the web interfaces on a pair of existing distributed > nodes. > > On one of them, I get this whoops message "Error: Could not read > object > > configuration data!". > >=20 > > I compared the two nodes and on the one that is giving me the error, > I'm > > missing a var/objects.cache file. The nodes have the same > > object_cache_file setting in etc/nagios.cfg and grep isn't turning up > any > > other related settings that I can see. > >=20 > > Am I right in suspecting that this missing file is the most likely > source > > Yes. > > > of the problem? If so, how do I create that file? The error message > says > > You can't. Nagios creates it when the daemon is started. It's an > optimized version of all your config files. Is nagios running? Does it > have permissions to write to that directory? > > -- > Marc > > > --__--__-- > > Message: 13 > Date: Thu, 11 Aug 2005 15:09:09 -0700 (PDT) > Subject: RE: [Nagios-users] missing var/objects.cache > From: naguser at bhodisoft.com > To: nagios-users at lists.sourceforge.net > > >> of the problem? If so, how do I create that file? The error message > > says > > > > You can't. Nagios creates it when the daemon is started. It's an > > optimized version of all your config files. Is nagios running? Does it > > have permissions to write to that directory? > > Thanks for the quick reply. > > Turns out there WAS a difference on the object_cache_file setting after > all; I just wasn't seeing it. My bad. For some reason it was actually > pointing to var/nagios/objects.cache and the nagios subdirectory didn't > exist. I fixed the cfg file and its all good now. > > Don't mind me, its just one of those days. > > -G_E > > > > --__--__-- > > Message: 14 > Date: Thu, 11 Aug 2005 16:01:24 -0700 > From: Michael J McCafferty > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Disable pager alerts for Acknowledgements ? > > All, > > We have some alerts go to a pager that is in the NOC, for audible alerts > (can't seem to get audible alerts to work with passive service checks, but > audible alerts work great with active service checks and active host > checks). > My NOC people asked if I can get the alerts to only get send to the pager > when > something goes down, not once each for down/critical, acknowledgement and > up/recovery. > I notice the scripts in misccommands.cfg use the variable > $NOTIFICATIONTYPE$ > included in the alert. I suppose I could write some kind of wrapper that > gets > called instead of going straight to /bin/mail, but I was hoping there was a > better (faster, easier, more direct) way. > > Thoughts ? > > Thanks, > Mike > > -- > ************************************************************ > Michael J. McCafferty > Principal, Security Engineer > M5 Hosting > 858-576-7325 Voice > http://www.m5hosting.com > ************************************************************ > > > > --__--__-- > > Message: 15 > Date: Thu, 11 Aug 2005 16:02:02 -0700 > From: Marc Martinez > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] external commands audit trail > > I'm hoping to get some suggestions about how to get an audit trail for > external command submissions from the cgi interface.. > > all the google and list archive digging I've done has only turned up > permissions problems and the like, so if there is an existing resource > to address this please send me on my way.. > > the crux of the problem though is that while cmd.cgi does verify the > auth credentials, the username is only recorded for comment > submissions.. > > what's the best way to approach this? > > thanks, > Marc > > > --__--__-- > > Message: 16 > Date: Fri, 12 Aug 2005 03:57:06 +0200 (MEST) > From: "Brian Murphy" > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] =?ISO-8859-1?Q?Multiple_orphaned_nagios_processes?= > > Hi There > > Running nagios is a distributed setup, 2 systems carrying out active checks > and sending results to central display node using nsca. > > What we are seeing is that we end up with hundreds of nagios processes on > the central node, enough to grind it to a stop. Over 2000 checks are being > carried out at the checking nodes. > > We set the service_reaper_frequency to 3 on both the central and the > chicking systems and still have the problem. > > We had this problem on 2.0b3 and still have it on 2.0b4 > > I am suspecting that the processes are spawned off to process the passive > checks, but collide writing into the pipe back to nagios (or it is full and > EAGAIN) and end up eventually just orphaned out there. > > How many checks per second should nagios be able to process? We seem to be > writing to the logfile at 100/sec sometimes. > > Do I just need to slow things down somehow? bigger poll cycles with the > checks... > > We are running a perfdata command and an ocsp_command on the central host, > processes forked by these do not seem to be the problem. > > > Config file bits below > > status_file=/usr/local/nagios/var/status.dat > nagios_user=nagios > nagios_group=nagios > check_external_commands=1 > command_check_interval=-1 > command_file=/usr/local/nagios/var/rw/nagios.cmd > comment_file=/usr/local/nagios/var/comments.dat > downtime_file=/usr/local/nagios/var/downtime.dat > lock_file=/usr/local/nagios/var/nagios.lock > temp_file=/usr/local/nagios/var/nagios.tmp > event_broker_options=-1 > log_rotation_method=d > log_archive_path=/usr/local/nagios/var/archives > use_syslog=0 > log_notifications=1 > log_service_retries=1 > log_host_retries=1 > log_event_handlers=1 > log_initial_states=0 > log_external_commands=1 > log_passive_checks=1 > service_inter_check_delay_method=s > max_service_check_spread=30 > service_interleave_factor=s > host_inter_check_delay_method=s > max_host_check_spread=30 > max_concurrent_checks=0 > service_reaper_frequency=3 > auto_reschedule_checks=0 > auto_rescheduling_interval=30 > auto_rescheduling_window=180 > sleep_time=0.25 > service_check_timeout=60 > host_check_timeout=30 > event_handler_timeout=30 > notification_timeout=30 > ocsp_timeout=5 > perfdata_timeout=5 > retain_state_information=1 > state_retention_file=/usr/local/nagios/var/retention.dat > retention_update_interval=60 > use_retained_program_state=1 > use_retained_scheduling_info=0 > interval_length=60 > use_aggressive_host_checking=0 > execute_service_checks=1 > accept_passive_service_checks=1 > execute_host_checks=1 > accept_passive_host_checks=1 > enable_notifications=1 > enable_event_handlers=1 > process_performance_data=1 > service_perfdata_command=process-service-perfdata > obsess_over_services=1 > ocsp_command=nagios-data-logger > check_for_orphaned_services=0 > check_service_freshness=1 > service_freshness_check_interval=60 > check_host_freshness=0 > host_freshness_check_interval=60 > aggregate_status_updates=1 > status_update_interval=15 > enable_flap_detection=0 > low_service_flap_threshold=5.0 > high_service_flap_threshold=20.0 > low_host_flap_threshold=5.0 > high_host_flap_threshold=20.0 > date_format=us > p1_file=/usr/local/nagios/bin/p1.pl > illegal_object_name_chars=`~!$%^&*|'"<>?,()= > illegal_macro_output_chars=`~$&|'"<> > use_regexp_matching=0 > use_true_regexp_matching=0 > admin_email=nagios > admin_pager=pagenagios > daemon_dumps_core=1 > > Any suggestions appreciated > > Thanx > > Brian > > -- > 5 GB Mailbox, 50 FreeSMS http://www.gmx.net/de/go/promail > +++ GMX - die erste Adresse f?r Mail, Message, More +++ > > > > --__--__-- > > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > End of Nagios-users Digest > From jjk_saji at yahoo.com Mon Aug 15 05:24:47 2005 From: jjk_saji at yahoo.com (John Joseph) Date: Mon, 15 Aug 2005 04:24:47 +0100 (BST) Subject: nagios with MySQL // Atn Arif In-Reply-To: <198c5447050814163056e73b59@mail.gmail.com> References: <198c5447050814163056e73b59@mail.gmail.com> Message-ID: <20050815032447.11155.qmail@web40823.mail.yahoo.com> Hi Arif for mysql http://nagios.sourceforge.net/docs/1_0/xdata-db.html#compiling_mysql or simple ./configure --with-mysql-xdata should work One request , please post your mail in a proper way , do not hijack the thread , A proper subject will give u chance of more correct answer --- Arif Snort wrote: > i am sorry..i am a newbe make linux and nagios...can > you help me, how > to install and compile nagios with mysql ? > ok thanks before.. > > ___________________________________________________________ How much free photo storage do you get? Store your holiday snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Mon Aug 15 09:14:07 2005 From: ae at op5.se (Andreas Ericsson) Date: Mon, 15 Aug 2005 09:14:07 +0200 Subject: Multiple Nagios proccesses running. In-Reply-To: References: <200507252109.j6PL9vjU023926@mail.asc.edu> <20050725221507.30266.qmail@mullet.softflare.net> <1122373846.30418.65.camel@localhost> <42E74E29.5090005@op5.se> <1122471906.15025.254.camel@localhost> <42E7BA0D.4020804@op5.se> <1122484346.15025.267.camel@localhost> <42E7DCBD.9090904@op5.se> <1122542715.29724.8.camel@localhost> <42E9275F.2030202@op5.se> <1122628003.13754.56.camel@localhost> <1122639398.13754.58.camel@localhost> <1123752803.20276.0.camel@localhost> <42FB1EB5.9010808@op5.se> <1123756911.20276.42.camel@localhost> <42FB519E.6020800@op5.se> <1123773386.20276.129.camel@localhost> Message-ID: <430040BF.3@op5.se> Brian Murphy wrote: > > Hi Guys > > I see this too in my 2.0b4 instance. I suspect they extra processes are forked > passive check processors in my case trying to pass back results to the master > process but ending up in a state where it never happens. > > This after trying to follow my way through the code and running strace and > truss on the nagios - and child processes. > > Some of the extra processes dissappear but not all of them, if we leave it > overnight it will stop our overspecced proliant. > > This is not a daemon starting issue but a check result processing issue. > > Any suggestions how to address this? > Two methods have been suggested and prototyped. Either fire up the checking-threads via fork(), dup() execve() and multiplex all checks, or run a separate thread (as opposed to a fork()) for each check and use shared memory for inter-thread communication. With some sort of limit on the number of pending check-results this could be done fairly easily. Each thread could even handle the results themselves, provided proper locking is in place. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From wesley4248 at yahoo.com.cn Mon Aug 15 11:09:33 2005 From: wesley4248 at yahoo.com.cn (wen wu) Date: Mon, 15 Aug 2005 17:09:33 +0800 (CST) Subject: Nagios 3.0,natively windows codes,support mysql,support agentless monitor , new web interface,more,Greatly Message-ID: <20050815090938.66943.qmail@web15908.mail.cnb.yahoo.com> 1 /System architecture has been greatly redesigned and optimized. It is devide into two parts ,one is sakershceduler ,the other is sakerexecutor.Sakerschduler only schedules events in parallel; Sakerexecutor executes really host checkes,service checks,handler events etc.Sakerschduler and Sakerexecutor are both multithreading. 2 /Sakerschduler supports mysql database,so performance is promoted greatly. 3 /Sakerexecutor adopt the cluster structure ,you can deploy many Sakerexecutor on different hosts.all of the Sakerexecutors can work as a big one. so the point that the system can be monitored does not have upper limit. 4 /Built-in the agentless monitor for windows and unix host in the new version.the flexibility is improved greatly.In the new edition , five kinds of important function module have been put in Sake:WMI Check module,SSH Check module,Win32_Push_Any module , Unix_Push_Any module ,External command module. WMI Check module, can utilize WMI technology to check the CPU load,memory ,file update time, hard disk, process state, service state, Eventlog ,etc of the remote host. The remote host does not need to install the agent end .The module supports WinNT , WinXP , Win2000, Win2003. SSH Check module, can utilize Rlogin , Rexec , SSh ,etc. check romote Unix host , including systematic load , Swap, hard disk, process , login users such information as one ,etc.. The romote Unix host does not need to install the agent end . Support Aix, Hp _ ux,Sco unix,Linux, such 17 kinds of Unix/linux operating systems etc.. Win32_Push_Any module , this module can copy the checking script of any win32s on remote win32 host and run it. you can copy any scripts to the remote host , the remote host does not need to install the agent end . Support WinNT , WinXP , Win2000, Win2003. Unix_Push_Any module , this module can copy the checking script of any unix on remote unix host and run it. you can copy any scripts to the remote host , the remote host does not need to install the agent end . Support all Unix/linux systems. External command module,can execute any checking scripts, compatible Saker V1. 2 and all former checking module. 5 /Saker is ported to windows system in an all-round way, Saker v3. 0 codes are all natively windows codes. Saker can operate it in Win2000 , Win2003 system. 6 /Web interface is redesigned,can finish all operation in web interface ,the usability and humanization are improved greatly.Redesigning the function of the network status map,you can define more Beautiful network maps . Please visit http://www.sakersoft.org/news/saker3en.htm --------------------------------- DO YOU YAHOO!? ????G???No.1?????????? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Joseph.Petrucci at ddiworld.com Mon Aug 15 11:31:50 2005 From: Joseph.Petrucci at ddiworld.com (Petrucci, Joseph) Date: Mon, 15 Aug 2005 05:31:50 -0400 Subject: False alarms Message-ID: I am a problems with my Nagios 1.2 installation on Fedora FC3. My First problem is that when a service goes down my host alerts that it is down, that is fine it is how I want it, but when all services go back up the host remains down according to Nagios. I can schedule a check of all services, they all pass but the host remains in a down state. The only way I have found to correct this is to restart the Nagios process. Any ideas, what do you want me to supply for you to look at? -------------- next part -------------- An HTML attachment was scrubbed... URL: From administration at cultuzz.de Mon Aug 15 12:57:09 2005 From: administration at cultuzz.de (Frank Fuhrmann) Date: Mon, 15 Aug 2005 12:57:09 +0200 Subject: no email notification on warnings Message-ID: <1124103430.9565.19.camel@localhost.localdomain> Is there a way to configure nagios, that email notification is send on criticals only? I don't need email notification on warnings. Frank. ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From juhani at aso.ee Mon Aug 15 13:16:56 2005 From: juhani at aso.ee (Juhani Tali) Date: Mon, 15 Aug 2005 14:16:56 +0300 Subject: how parallel are host checks? (after service check fails) In-Reply-To: <1123852782.7492.32.camel@gc1216-xp-tna1.corp.gianteagle.com.> References: <42FC994D.4080206@aso.ee> <1123852782.7492.32.camel@gc1216-xp-tna1.corp.gianteagle.com.> Message-ID: <430079A8.3040609@aso.ee> Chester R. Hosey wrote: > On Fri, 2005-08-12 at 15:42 +0300, Juhani Tali wrote: > >>I have read something about that Nagios will stop processing all service >>checks on all hosts if some host goes down, until the host check is >>finished. >> >>Is this true? (also in 2.x?) >> >>The problem is that I have about 400-500 hosts (cisco routers mostly) >>and I would like if a problem with one host would not delay locating the >>problem on another host. Some, but not all host parents are defined. >>If it is true, that a host check freezes the entire nagios, then is >>there a way to make it more parallel? >> >>Juhani Tali > > > Where did you read this? Can you quote it more specifically? > > Chet I read it from the same source that Marc Powell gave references, but did not find to reread about 2.x http://nagios.sourceforge.net/docs/2_0/checkscheduling.html and from there chapter Host Checks Juhani Tali ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From aaronhcarr at gmail.com Mon Aug 15 14:08:35 2005 From: aaronhcarr at gmail.com (Aaron Carr) Date: Mon, 15 Aug 2005 08:08:35 -0400 Subject: Status display errors In-Reply-To: References: Message-ID: Ok, so I'm back at work now, and I've checked the services showing bogus status colors on the web page. I ran the commands as the nagios user from the nagios server via ssh (the same way they're being done by the server), and at the completion of each command, I checked the exit status. All of them were status 0, so it appears that the plugins are working correctly. What could be causing the status color on the web page to be doing this? Should I downgrade back to 2.0b3? Thanks. Aaron On 8/12/05, Aaron Carr wrote: > I'll give that a try on Monday. > > I don't *think* that's it however. Every time I ran the commands from > the command line on the Nagios server, the output was exactly as > expected. > > I didn't check the $? values though, so I will do that and post the results. > > Thanks. > > Aaron > > On 8/12/05, Marc Powell wrote: > > Since you haven't yet received a response... > > > > > -----Original Message----- > > > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > > > admin at lists.sourceforge.net] On Behalf Of Aaron Carr > > > Sent: Friday, August 12, 2005 11:03 AM > > > To: Nagios User List > > > Subject: [Nagios-users] Status display errors > > > > > > I'm having some strange problems with the Nagios web page output. > > > > > > I have multiple services that randomly (and often) change the status > > > COLOR (only the color mind you, not the actual status) to the orange > > > "Unknown" status. The data returned by the plugins is all showing > > > "OK" status however. > > > > > > It's extremely annoying, because it makes a quick glance at the status > > > page totally useless. > > > > > > I'm running Nagios 2.0b4 on a Linux server, and my current test client > > > is Solaris 9 using various versions of the plugins (from 1.3 - 1.4.1) > > > via check_by_ssh. > > > > > > I've attached a screenshot of what I'm seeing if that helps. > > > > > > Anyone have any answers for this? > > > > This is clearly not normal. The status/color is determined exclusively > > by the exit code of the plugin, not the human readable output. It seems > > that that code isn't being correctly sent, either by the plugin you're > > running on the remote host or by check_by_ssh (which should just pass on > > the plugin's exit code). I would try repeatedly running the check > > command from your nagios machine exactly as it's defined as the nagios > > user to see if there is some intermittent error condition. After each > > run, check the exit code with 'echo $?' to see if it matches the > > expected exit code for the check. If all looks good there, try the same > > thing on the remote host. > > > > http://nagiosplug.sourceforge.net/developer-guidelines.html#AEN75 > > > > -- > > Marc > > > > > > ------------------------------------------------------- > > SF.Net email is Sponsored by the Better Software Conference & EXPO > > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Mon Aug 15 14:37:37 2005 From: ae at op5.se (Andreas Ericsson) Date: Mon, 15 Aug 2005 14:37:37 +0200 Subject: Nagios 3.0,natively windows codes,support mysql,support agentless monitor , new web interface,more,Greatly In-Reply-To: <20050815090938.66943.qmail@web15908.mail.cnb.yahoo.com> References: <20050815090938.66943.qmail@web15908.mail.cnb.yahoo.com> Message-ID: <43008C91.3060505@op5.se> Are you aware of the fact that any code you've written that uses code from Nagios must be GPL'ed, and must be distributed in source-form to the audience you distribute the binaries to? Are you also aware that you can't call it Nagios 3.0 unless Ethan explicitly gives you permission to (since Nagios is a registered trademark)? Apart from the legal issues, a lot of it seems quite cool (except that it only runs on Windows). I haven't had time to check it out properly yet, but having the GUI rewritten in PHP can only be a good thing. I assume you didn't use any code from any GPL'd gui-project when you wrote this thing, right? One thing I don't quite understand though, is why you implemented the INTERNAL_CMD thingie. All benchmarks that have tested implementing checks in-core suggests that absolutely nothing is gained from it, while a lot of the flexibility is effectively dropped. wen wu wrote: > 1 /System architecture has been greatly redesigned and optimized. It > is devide into two parts ,one is sakershceduler ,the other is > sakerexecutor.Sakerschduler only schedules events in parallel; > Sakerexecutor executes really host checkes,service checks,handler > events etc.Sakerschduler and Sakerexecutor are both multithreading. > > 2 /Sakerschduler supports mysql database,so performance is promoted > greatly. > > 3 /Sakerexecutor adopt the cluster structure ,you can deploy many > Sakerexecutor on different hosts.all of the Sakerexecutors can work > as a big one. so the point that the system can be monitored does not > have upper limit. > > > 4 /Built-in the agentless monitor for windows and unix host in the > new version.the flexibility is improved greatly.In the new edition , > five kinds of important function module have been put in Sake:WMI > Check module,SSH Check module,Win32_Push_Any module , Unix_Push_Any > module ,External command module. > > > WMI Check module, can utilize WMI technology to check the CPU > load,memory ,file update time, hard disk, process state, service > state, Eventlog ,etc of the remote host. The remote host does not > need to install the agent end .The module supports WinNT , WinXP , > Win2000, Win2003. > > SSH Check module, can utilize Rlogin , Rexec , SSh ,etc. check romote > Unix host , including systematic load , Swap, hard disk, process , > login users such information as one ,etc.. The romote Unix host does > not need to install the agent end . Support Aix, Hp _ ux,Sco > unix,Linux, such 17 kinds of Unix/linux operating systems etc.. > > Win32_Push_Any module , this module can copy the checking script of > any win32s on remote win32 host and run it. you can copy any scripts > to the remote host , the remote host does not need to install the > agent end . Support WinNT , WinXP , Win2000, Win2003. > > > Unix_Push_Any module , this module can copy the checking script of > any unix on remote unix host and run it. you can copy any scripts to > the remote host , the remote host does not need to install the agent > end . Support all Unix/linux systems. > > > External command module,can execute any checking scripts, compatible > Saker V1. 2 and all former checking module. > > > 5 /Saker is ported to windows system in an all-round way, Saker v3. 0 > codes are all natively windows codes. Saker can operate it in Win2000 > , Win2003 system. > > > 6 /Web interface is redesigned,can finish all operation in web > interface ,the usability and humanization are improved > greatly.Redesigning the function of the network status map,you can > define more Beautiful network maps . > > Please visit http://www.sakersoft.org/news/saker3en.htm > > > --------------------------------- DO YOU YAHOO!? > ????????G??????No.1???????????????????? -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Chester.Hosey at gianteagle.com Mon Aug 15 14:58:46 2005 From: Chester.Hosey at gianteagle.com (Hosey, Chester) Date: Mon, 15 Aug 2005 08:58:46 -0400 Subject: no email notification on warnings Message-ID: <73BB3A1D374DA64F98E8EA9C37FB3F5F017A31CF@exchmail1.corp.gianteagle.com> Did you read http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#service, specifically the explanation of notification_options? Chet -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Frank Fuhrmann Sent: Monday, August 15, 2005 6:57 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] no email notification on warnings Is there a way to configure nagios, that email notification is send on criticals only? I don't need email notification on warnings. Frank. ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Mon Aug 15 17:06:08 2005 From: marc at ena.com (Marc Powell) Date: Mon, 15 Aug 2005 10:06:08 -0500 Subject: False alarms Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Petrucci, Joseph > Sent: Monday, August 15, 2005 4:32 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] False alarms > > I am a problems with my Nagios 1.2 installation on Fedora FC3. > > My First problem is that when a service goes down my host alerts that it > is down, that is fine it is how I want it, but when all services go back > up the host remains down according to Nagios. I can schedule a check of > all services, they all pass but the host remains in a down state. The only > way I have found to correct this is to restart the Nagios process. Any > ideas, what do you want me to supply for you to look at? When you run the host check_command you've specified by hand, as the nagios user, does it return an OK state? It would appear that it doesn't. -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From BConrad at passkey.com Mon Aug 15 17:12:12 2005 From: BConrad at passkey.com (Ben Conrad) Date: Mon, 15 Aug 2005 11:12:12 -0400 Subject: NSClient++ versus NRPE_NT on Windows 2003 Ente rprise Servers Message-ID: <8FB96300C132D511AE7500508BD6ABCD05AB3EDC@eagle.passkey.com> I'm running nrpe_nt v.8 and have experienced the following: - Overall, the client works well. - When I update the plug-ins on the clients, sometimes the nrpe_nt client does not work correctly after service restart. I'm thinking this has something to do with open handles not closing upon service shutdown ? - I see DrWtsn32.exe on some of the machines, randomly. May be related to above issue. Ben -----Original Message----- From: Richard DeWath [mailto:dewath at yahoo.com] Sent: Thursday, August 11, 2005 9:32 AM To: Nagios-users at lists.sourceforge.net Subject: [Nagios-users] NSClient++ versus NRPE_NT on Windows 2003 Enterprise Servers I have been using the older NSClient on Windows 2K servers without problems, and some Win2K3 S.E servers until some updates to the Win2K3 SP1 were added. I had installed nrpe_nt 0.7f version and it installed okay and the simple test worked with the service. I rewrote the NSClient service checks into WSH scripts. I tested the scripts using the standard C:> cscript //nologo check_disk.vbs x x x format. The scripts work when I run it on the host machine. When I then put these in the nrpe.cfg file, the service would check it once, but then subsequent calls would time out, etc. I found that the nrpe_nt service was hung and I could not stop the service. I then used task manager to kill the process. I finally backed out nrpe_nt and installed nsclient++ [kudos to the developer]. This works fine for the basic services and I have the Nagios monitoring this way. I now need to use either NSClient++ nrpe feature to run a script for check_volume (I need to monitor raw disks mounted as volumes on folders - the wmi script works fine and returns the correct results when I run it on the Win2K3 E.S with SP1). Here are the questions: 1. Has anyone experienced the nrpe_nt service hanging on Win2K3? And I see there is a version 0.8 for nrpe_nt. Will this fix the problem? 2. Will NSClient++ nrpe module work? 3. Any known WSH issues that would cause the failure? Thanks, Richard __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From administration at cultuzz.de Mon Aug 15 17:17:02 2005 From: administration at cultuzz.de (Frank Fuhrmann) Date: Mon, 15 Aug 2005 17:17:02 +0200 Subject: no email notification on warnings In-Reply-To: <73BB3A1D374DA64F98E8EA9C37FB3F5F017A31CF@exchmail1.corp.gianteagle.com> References: <73BB3A1D374DA64F98E8EA9C37FB3F5F017A31CF@exchmail1.corp.gianteagle.com> Message-ID: <1124119022.9565.26.camel@localhost.localdomain> That's what I looked for. Thank you. :-) Frank Am Montag, den 15.08.2005, 08:58 -0400 schrieb Hosey, Chester: > Did you read > http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#service, > specifically the explanation of notification_options? > > Chet > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Frank > Fuhrmann > Sent: Monday, August 15, 2005 6:57 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] no email notification on warnings > > > Is there a way to configure nagios, that email notification is send on > criticals only? I don't need email notification on warnings. > > Frank. > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > Practices Agile & Plan-Driven Development * Managing Projects & Teams * > Testing & QA Security * Process Improvement & Measurement * > http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Matthias.Eble at kaufland.de Mon Aug 15 17:27:41 2005 From: Matthias.Eble at kaufland.de (Matthias.Eble at kaufland.de) Date: Mon, 15 Aug 2005 17:27:41 +0200 Subject: Nagios on x86_64 [Virus checked] Message-ID: Hi List, I'm about to install a nagios instance on a new EM64T Xeon (x86_64) box, but I'm not sure, whether to choose a normal 32bit or 64bit OS. Are there any known problems or special requirements on 64Bit OSes? Thank you very much. matthias ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Chester.Hosey at gianteagle.com Mon Aug 15 17:30:25 2005 From: Chester.Hosey at gianteagle.com (Hosey, Chester) Date: Mon, 15 Aug 2005 11:30:25 -0400 Subject: no email notification on warnings Message-ID: <73BB3A1D374DA64F98E8EA9C37FB3F5F017A31D5@exchmail1.corp.gianteagle.com> Glad to help -- another good one regarding notifications is: http://nagios.sourceforge.net/docs/2_0/notifications.html It basically explains what can cause notification to _not_ be delivered. It's a more conceptual document and was a big help for me when trying to understand how (and why) notifications work. I do wish that the documentation had a general, "Here's where to go to find what you need" sort of introduction. The documentation has everything -- the hard part is finding it! -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Frank Fuhrmann Sent: Monday, August 15, 2005 11:17 AM To: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] no email notification on warnings That's what I looked for. Thank you. :-) Frank Am Montag, den 15.08.2005, 08:58 -0400 schrieb Hosey, Chester: > Did you read > http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#service, > specifically the explanation of notification_options? > > Chet > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Frank > Fuhrmann > Sent: Monday, August 15, 2005 6:57 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] no email notification on warnings > > > Is there a way to configure nagios, that email notification is send on > criticals only? I don't need email notification on warnings. > > Frank. > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > Practices Agile & Plan-Driven Development * Managing Projects & Teams > * Testing & QA Security * Process Improvement & Measurement * > http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > Practices Agile & Plan-Driven Development * Managing Projects & Teams > * Testing & QA Security * Process Improvement & Measurement * > http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Chester.Hosey at gianteagle.com Mon Aug 15 17:34:12 2005 From: Chester.Hosey at gianteagle.com (Chester R. Hosey) Date: Mon, 15 Aug 2005 11:34:12 -0400 Subject: Nagios on x86_64 [Virus checked] In-Reply-To: References: Message-ID: <37954.573162324$1124120437@news.gmane.org> On Mon, 2005-08-15 at 17:27 +0200, Matthias.Eble at kaufland.de wrote: > Hi List, > > I'm about to install a nagios instance on a new EM64T Xeon (x86_64) box, > but I'm not sure, > whether to choose a normal 32bit or 64bit OS. > > Are there any known problems or special requirements on 64Bit OSes? > > Thank you very much. > matthias I can't speak specifically for Nagios, but you should be fine running 32-bit apps on a 64-bit OS. I hear it's not uncommon to bundle some 32- bit binaries with a 64-bit OS. I'd probably go with the 64-bit OS in case you somehow end up needing to run a 64-bit app on it, using a ton of RAM, etc. Although making such a statement is practically begging to be proven wrong, I've never heard of anyone advocating running a 32-bit OS on 64-bit hardware when a 64-bit version was available. Chet ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From LUIS.WIEDEMANN at FLHosp.org Mon Aug 15 17:27:33 2005 From: LUIS.WIEDEMANN at FLHosp.org (Wiedemann, Luis) Date: Mon, 15 Aug 2005 11:27:33 -0400 Subject: Adding Nagios info to custom web pages Message-ID: <2F382057E5DDE8479839E5625F94EF0F058CE2C0@fh2k127.fhmis.net> Hello All! I have just implemented Nagios 2.0b3 in our org to monitor 300+ servers. I am using NagiosQl to confure it. I somehow need to make a webpage that shows basic info about all of our servers, under certain categories, ie... a link to the Exchange servers page and show up/down ststus. Is there a way I can display this info on customized webpages? TIA Luis Wiedemann MIS - Open Systems Florida Hospital 407.303.6973 -------------- next part -------------- An HTML attachment was scrubbed... URL: From dgentry at ultainc.com Mon Aug 15 20:58:18 2005 From: dgentry at ultainc.com (David Gentry) Date: Mon, 15 Aug 2005 20:58:18 +0200 (CEST) Subject: Help regarding "libexec" required In-Reply-To: <42353F2A.3020906@gmx.net> References: <42353F2A.3020906@gmx.net> Message-ID: <20050815185818.3C4124F4002@desire.netways.de> Hi Hendrik I want to change the libexec directory, because I believe its reading from the wrong source. Can you (or anyone else) tell me the command/conf ig to do this? Thanks. - David (davidtechie) ----------------------- This thread is located in the archive at this URL: http://www.nagiosexchange.org/nagios-users.34.0.html?&tx_maillisttofaq_pi 1[showUid]=3956 ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Mon Aug 15 21:06:38 2005 From: marc at ena.com (Marc Powell) Date: Mon, 15 Aug 2005 14:06:38 -0500 Subject: Help regarding "libexec" required Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of David Gentry > Sent: Monday, August 15, 2005 1:58 PM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Help regarding "libexec" required > > Hi Hendrik > > > > I want to change the libexec directory, because I believe its reading > from the wrong source. Can you (or anyone else) tell me the command/conf > ig to do this? It may vary but it's usually defined using the $USER1$ macro in resource.cfg. Look at your command definitions and see if that's what you're using. -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From BConrad at passkey.com Mon Aug 15 23:23:04 2005 From: BConrad at passkey.com (Ben Conrad) Date: Mon, 15 Aug 2005 17:23:04 -0400 Subject: Adding Nagios info to custom web pages Message-ID: <8FB96300C132D511AE7500508BD6ABCD05AB3EEC@eagle.passkey.com> You can do some of this with a servicegroup. For instance, I have all of my Jboss servers in a group and if I go to the group I can see how much memory each one is using for the JavaService.exe process. Ben -----Original Message----- From: Wiedemann, Luis [mailto:LUIS.WIEDEMANN at FLHosp.org] Sent: Monday, August 15, 2005 11:28 AM To: Nagios-users at lists.sourceforge.net Subject: [Nagios-users] Adding Nagios info to custom web pages Hello All! I have just implemented Nagios 2.0b3 in our org to monitor 300+ servers. I am using NagiosQl to confure it. I somehow need to make a webpage that shows basic info about all of our servers, under certain categories, ie... a link to the Exchange servers page and show up/down ststus. Is there a way I can display this info on customized webpages? TIA Luis Wiedemann MIS - Open Systems Florida Hospital 407.303.6973 ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From teng at dataway.com Mon Aug 15 23:56:22 2005 From: teng at dataway.com (Tedman Eng) Date: Mon, 15 Aug 2005 14:56:22 -0700 Subject: Status display errors Message-ID: <37ED92F9890FAF4BB947613C66FF8B1A08BB2B51@dw-mail.dataway.com> Your screenshot shows that the attempt number is 3 of 3, thus they cannot be status 0 (Ok). The attempt number increments only when the status is non-OK and thus Nagios retries a check. Your plugins may be outputting text different than the exit status? > -----Original Message----- > From: Aaron Carr [mailto:aaronhcarr at gmail.com] > Sent: Friday, August 12, 2005 9:03 AM > To: Nagios User List > Subject: [Nagios-users] Status display errors > > > I'm having some strange problems with the Nagios web page output. > > I have multiple services that randomly (and often) change the status > COLOR (only the color mind you, not the actual status) to the orange > "Unknown" status. The data returned by the plugins is all showing > "OK" status however. > > It's extremely annoying, because it makes a quick glance at the status > page totally useless. > > I'm running Nagios 2.0b4 on a Linux server, and my current test client > is Solaris 9 using various versions of the plugins (from 1.3 - 1.4.1) > via check_by_ssh. > > I've attached a screenshot of what I'm seeing if that helps. > > Anyone have any answers for this? > > Thanks. > > Aaron > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From aaronhcarr at gmail.com Tue Aug 16 00:02:23 2005 From: aaronhcarr at gmail.com (Aaron Carr) Date: Mon, 15 Aug 2005 18:02:23 -0400 Subject: Status display errors In-Reply-To: <37ED92F9890FAF4BB947613C66FF8B1A08BB2B51@dw-mail.dataway.com> References: <37ED92F9890FAF4BB947613C66FF8B1A08BB2B51@dw-mail.dataway.com> Message-ID: They aren't special plugins. They're just the stock plugins like check_disk, etc. Even though it says 3/3, it never changes the OK output, only the values like load change slightly. Every time I run them from the command line, I get status 0. It gets stranger. I discovered today that it seems to be specific to the test environment. I added two production servers with all the same service monitors and they've been solid green since I added them. I'll keep looking into it tomorrow since I've now jumpstarted the test machine over again to be sure that it's all clean. Aaron On 8/15/05, Tedman Eng wrote: > Your screenshot shows that the attempt number is 3 of 3, thus they cannot be > status 0 (Ok). > The attempt number increments only when the status is non-OK and thus Nagios > retries a check. > > Your plugins may be outputting text different than the exit status? > > > > > -----Original Message----- > > From: Aaron Carr [mailto:aaronhcarr at gmail.com] > > Sent: Friday, August 12, 2005 9:03 AM > > To: Nagios User List > > Subject: [Nagios-users] Status display errors > > > > > > I'm having some strange problems with the Nagios web page output. > > > > I have multiple services that randomly (and often) change the status > > COLOR (only the color mind you, not the actual status) to the orange > > "Unknown" status. The data returned by the plugins is all showing > > "OK" status however. > > > > It's extremely annoying, because it makes a quick glance at the status > > page totally useless. > > > > I'm running Nagios 2.0b4 on a Linux server, and my current test client > > is Solaris 9 using various versions of the plugins (from 1.3 - 1.4.1) > > via check_by_ssh. > > > > I've attached a screenshot of what I'm seeing if that helps. > > > > Anyone have any answers for this? > > > > Thanks. > > > > Aaron > > > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From fruiz at netsuite.com Tue Aug 16 00:48:07 2005 From: fruiz at netsuite.com (Ruiz, Francisco) Date: Mon, 15 Aug 2005 15:48:07 -0700 Subject: Command Buffer Message-ID: <2BF1D777D914174DB2F6874540E3B6C70503EB7B@corpmail1.svale.netledger.com> Greetings, I was hoping someone could elaborate more on the command buffer, and what the significance is of going from 4k to 32k. Thanks! ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Tue Aug 16 01:03:28 2005 From: ae at op5.se (Andreas Ericsson) Date: Tue, 16 Aug 2005 01:03:28 +0200 Subject: Command Buffer In-Reply-To: <2BF1D777D914174DB2F6874540E3B6C70503EB7B@corpmail1.svale.netledger.com> References: <2BF1D777D914174DB2F6874540E3B6C70503EB7B@corpmail1.svale.netledger.com> Message-ID: <43011F40.2090407@op5.se> Ruiz, Francisco wrote: > Greetings, > > I was hoping someone could elaborate more on the command buffer, and > what the significance is of going from 4k to 32k. > The size of IPC pipes (FIFO's) is specified in the kernel of your OS. You can set it to whatever you like, but you might run into weird things depending on your system type. For instance, on most 32-bit architectures the kernel allocates memory in blocks of 4096 bytes, so that's the size of a FIFO. If you make the FIFO bigger, the kernel needs to do exception handling when you write anything larger than that to the pipe, and if it doesn't you'll end up with either a message that get's truncated anyway or something undefined. What you WILL get is performance that's about 1/3 of what you'd get if you don't meddle with it. For reference, Linux users have reported this to work splendidly on kernels since 2.4.20, although the code suggests that FIFO handling changed quite a bit somewhere in 2.3 and there-about. > Thanks! > > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From brian.murphy at gmx.net Tue Aug 16 01:26:29 2005 From: brian.murphy at gmx.net (Brian Murphy) Date: Mon, 15 Aug 2005 23:26:29 +0000 (UTC) Subject: Multiple Nagios proccesses running. References: <200507252109.j6PL9vjU023926@mail.asc.edu> <20050725221507.30266.qmail@mullet.softflare.net> <1122373846.30418.65.camel@localhost> <42E74E29.5090005@op5.se> <1122471906.15025.254.camel@localhost> <42E7BA0D.4020804@op5.se> <1122484346.15025.267.camel@localhost> <42E7DCBD.9090904@op5.se> <1122542715.29724.8.camel@localhost> <42E9275F.2030202@op5.se> <1122628003.13754.56.camel@localhost> <1122639398.13754.58.camel@localhost> <1123752803.20276.0.camel@localhost> <42FB1EB5.9010808@op5.se> <1123756911.20276.42.camel@localhost> <42FB519E.6020800@op5.se> <1123773386.20276.129.camel@localhost> <430040BF.3@op5.se> Message-ID: Andreas Ericsson op5.se> writes: > > Two methods have been suggested and prototyped. > Either fire up the checking-threads via fork(), dup() execve() and > multiplex all checks, or run a separate thread (as opposed to a fork()) > for each check and use shared memory for inter-thread communication. > With some sort of limit on the number of pending check-results this > could be done fairly easily. Each thread could even handle the results > themselves, provided proper locking is in place. > Are there things I could undertake in the config of this environment to deal with this issue? Do I need to find a way to stop the results coming through in clumps? ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From fruiz at netsuite.com Tue Aug 16 01:39:52 2005 From: fruiz at netsuite.com (Ruiz, Francisco) Date: Mon, 15 Aug 2005 16:39:52 -0700 Subject: Command Buffer Message-ID: <2BF1D777D914174DB2F6874540E3B6C70503EB7D@corpmail1.svale.netledger.com> Ah. Thanks for the update. So just to reiterate, it sounds like the command buffer goes hand in hand with default pipe size. So if the kernel value is only set to 4k, then the max size of the command buffer will also be 4k. Is this correct? Is there any recommendations on what to set the kernel value to for 32-bit, 2.6 kernels? Thanks! Frank -----Original Message----- From: Andreas Ericsson [mailto:ae at op5.se] Sent: Monday, August 15, 2005 4:03 PM To: Ruiz, Francisco Cc: Nagios User List Subject: Re: [Nagios-users] Command Buffer Ruiz, Francisco wrote: > Greetings, > > I was hoping someone could elaborate more on the command buffer, and > what the significance is of going from 4k to 32k. > The size of IPC pipes (FIFO's) is specified in the kernel of your OS. You can set it to whatever you like, but you might run into weird things depending on your system type. For instance, on most 32-bit architectures the kernel allocates memory in blocks of 4096 bytes, so that's the size of a FIFO. If you make the FIFO bigger, the kernel needs to do exception handling when you write anything larger than that to the pipe, and if it doesn't you'll end up with either a message that get's truncated anyway or something undefined. What you WILL get is performance that's about 1/3 of what you'd get if you don't meddle with it. For reference, Linux users have reported this to work splendidly on kernels since 2.4.20, although the code suggests that FIFO handling changed quite a bit somewhere in 2.3 and there-about. > Thanks! > > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tdondich at gmail.com Tue Aug 16 02:17:28 2005 From: tdondich at gmail.com (Taylor Dondich) Date: Mon, 15 Aug 2005 17:17:28 -0700 Subject: Nagios Web Seminar Message-ID: <3d2eb72a05081517177ec53407@mail.gmail.com> Just wanted to let everyone know about a Web Seminar I'll be doing that is Nagios related. If you're interested in the 3rd party software that's taking Nagios to the next level, especially the Status Viewer UI I've developed, come take a look. Nagios Gets a Facelift Presented by GroundWork Senior Developer, Taylor Dondich. Tuesday, August 23, 2005 11:AM PST 2:00 PM EST Register at: http://dev.itgroundwork.com/news/Events/status_viewer.html ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From JBilder at bacons.com Tue Aug 16 04:29:29 2005 From: JBilder at bacons.com (Jeffry Bilder) Date: Mon, 15 Aug 2005 21:29:29 -0500 Subject: Nagat like interface for 2.0 beta? Message-ID: Is there currently anything for Nagios 2.0 that provides a GUI interface for configuring hosts/services/etc? I am completely fine with handling the CLI myself (seeing how I set it up and whatnot), but my boss needs something that will help those people that aren't completely familiar with VI out. Thanks... - Jeff ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jjk_saji at yahoo.com Tue Aug 16 05:45:17 2005 From: jjk_saji at yahoo.com (John Joseph) Date: Tue, 16 Aug 2005 04:45:17 +0100 (BST) Subject: Nagios 3.0,natively windows codes,support mysql,support agentless monitor , new web interface,more,Greatly In-Reply-To: <20050815090938.66943.qmail@web15908.mail.cnb.yahoo.com> References: <20050815090938.66943.qmail@web15908.mail.cnb.yahoo.com> Message-ID: <20050816034517.54561.qmail@web40827.mail.yahoo.com> Hi I am not able to access http://www.sakersoft.org/news/saker3en.htm The error I get is The following error was encountered: Unable to determine IP address from host name for www.sakersoft.org I think the DNS is not getting resolved for me --- wen wu wrote: > > 1 /System architecture has been greatly redesigned > and optimized. It is devide into two parts ,one is > sakershceduler ,the other is > sakerexecutor.Sakerschduler only schedules events in > parallel; Sakerexecutor executes really host > checkes,service checks,handler events > etc.Sakerschduler and Sakerexecutor are both > multithreading. > > 2 /Sakerschduler supports mysql database,so > performance is promoted greatly. > > 3 /Sakerexecutor adopt the cluster structure ,you > can deploy many Sakerexecutor on different hosts.all > of the Sakerexecutors can work as a big one. so the > point that the system can be monitored does not have > upper limit. > > > 4 /Built-in the agentless monitor for windows and > unix host in the new version.the flexibility is > improved greatly.In the new edition , five kinds of > important function module have been put in Sake:WMI > Check module,SSH Check module,Win32_Push_Any module > , Unix_Push_Any module ,External command module. > > > WMI Check module, can utilize WMI technology to > check the CPU load,memory ,file update time, hard > disk, process state, service state, Eventlog ,etc of > the remote host. The remote host does not need to > install the agent end .The module supports WinNT , > WinXP , Win2000, Win2003. > > SSH Check module, can utilize Rlogin , Rexec , SSh > ,etc. check romote Unix host , including systematic > load , Swap, hard disk, process , login users such > information as one ,etc.. The romote Unix host does > not need to install the agent end . Support Aix, Hp > _ ux,Sco unix,Linux, such 17 kinds of Unix/linux > operating systems etc.. > > Win32_Push_Any module , this module can copy the > checking script of any win32s on remote win32 host > and run it. you can copy any scripts to the remote > host , the remote host does not need to install the > agent end . Support WinNT , WinXP , Win2000, > Win2003. > > > Unix_Push_Any module , this module can copy the > checking script of any unix on remote unix host and > run it. you can copy any scripts to the remote host > , the remote host does not need to install the agent > end . Support all Unix/linux systems. > > > External command module,can execute any checking > scripts, compatible Saker V1. 2 and all former > checking module. > > > 5 /Saker is ported to windows system in an all-round > way, Saker v3. 0 codes are all natively windows > codes. Saker can operate it in Win2000 , Win2003 > system. > > > 6 /Web interface is redesigned,can finish all > operation in web interface ,the usability and > humanization are improved greatly.Redesigning the > function of the network status map,you can define > more Beautiful network maps . > > Please visit > http://www.sakersoft.org/news/saker3en.htm > > > > --------------------------------- > DO YOU YAHOO!? > ????????G??????No.1???????????????????? ___________________________________________________________ To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rt at garnetweb.com Tue Aug 16 07:11:32 2005 From: rt at garnetweb.com (Miles Scruggs) Date: Mon, 15 Aug 2005 22:11:32 -0700 Subject: Internet Detection In-Reply-To: References: Message-ID: I know this has been brought up before, but the closest thing I can find to a solution is: https://sourceforge.net/mailarchive/message.php?msg_id=9893860 which is fairly simple in concept that most would have come to the same conclusion on their own. What I'm wondering is how to implement something like this? Does anyone have a version of their own custom plugin to share? Stanley any chance you can drop a copy of that off somewhere? Thanks Miles ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From d.wuethrich.h at gmx.net Tue Aug 16 07:50:43 2005 From: d.wuethrich.h at gmx.net (=?ISO-8859-1?Q?=22D=2E_W=FCthrich=22?=) Date: Tue, 16 Aug 2005 07:50:43 +0200 Subject: Nagios on x86_64 [Virus checked] In-Reply-To: References: Message-ID: <43017EB3.7000201@gmx.net> Hi This shouldn't be a problem. We are running nagios 2.0b3 on a sunfire v20z (x86_64 Dual-Opteron System) with SuSE 9.3 (x86_64 version) installed. It's running for about 2 month without any problems - much better than our old sparc/solaris system. Matthias.Eble at kaufland.de wrote: > Hi List, > > I'm about to install a nagios instance on a new EM64T Xeon (x86_64) box, > but I'm not sure, > whether to choose a normal 32bit or 64bit OS. > > Are there any known problems or special requirements on 64Bit OSes? > > Thank you very much. > matthias > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From GRieger at PROBUSINESS.DE Tue Aug 16 09:22:01 2005 From: GRieger at PROBUSINESS.DE (=?iso-8859-1?Q?G=F6tz_Rieger?=) Date: Tue, 16 Aug 2005 09:22:01 +0200 Subject: AW: Nagat like interface for 2.0 beta? Message-ID: Hi, NagiosQL 2005 looks nice and indeed _works_. Monarch seems not to be completely adapted to 2.0. Check www.nagiosexchange.org Bye, Goetz > -----Urspr?ngliche Nachricht----- > Von: Jeffry Bilder [mailto:JBilder at bacons.com] > Gesendet: Dienstag, 16. August 2005 04:29 > An: nagios-users at lists.sourceforge.net > Betreff: [Nagios-users] Nagat like interface for 2.0 beta? > > > Is there currently anything for Nagios 2.0 that provides a > GUI interface > for configuring hosts/services/etc? I am completely fine > with handling > the CLI myself (seeing how I set it up and whatnot), but my boss needs > something that will help those people that aren't completely familiar > with VI out. Thanks... > > - Jeff > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development > Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * > Testing & QA > Security * Process Improvement & Measurement * > http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Tue Aug 16 09:28:47 2005 From: ae at op5.se (Andreas Ericsson) Date: Tue, 16 Aug 2005 09:28:47 +0200 Subject: Internet Detection In-Reply-To: References: Message-ID: <430195AF.2000400@op5.se> Miles Scruggs wrote: > I know this has been brought up before, but the closest thing I can find to > a solution is: > > > https://sourceforge.net/mailarchive/message.php?msg_id=9893860 > > which is fairly simple in concept that most would have come to the same > conclusion on their own. What I'm wondering is how to implement something > like this? Don't. Downloading content from webservers automatically for your own purposes isn't very polite. Instead, you can use the check_icmp plugin in check_host mode and give it several hostnames to well-known sites, like so; ln -s check_icmp check_host time ./check_host www.google.com www.dell.com www.nasa.gov www.whitehouse.gov OK - www.google.com responds to ICMP. Packet 1, rtt 48.630ms |pkt=1;0;0;0;5 rta=48.630;2000.000;2000.000;; real 0m0.170s user 0m0.000s sys 0m0.000s Pinging nasa.gov and whitehouse.gov is not in any way stupid or dangerous; all icmp requests to those addresses are being redirected to a loadbalanced cluster and they both have 100GB lines directly connected to their own GIX so there's no need to worry about stealing bandwidth (at least not with a couple of 64-byte packets). They've got plenty. > Does anyone have a version of their own custom plugin to share? check_icmp is in the standard plugin distribution. The latest version is also also always available from http://oss.op5.se/nagios > Stanley any chance you can drop a copy of that off somewhere? > > Thanks > > Miles > > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Tue Aug 16 09:35:12 2005 From: ae at op5.se (Andreas Ericsson) Date: Tue, 16 Aug 2005 09:35:12 +0200 Subject: Multiple Nagios proccesses running. In-Reply-To: References: <200507252109.j6PL9vjU023926@mail.asc.edu> <20050725221507.30266.qmail@mullet.softflare.net> <1122373846.30418.65.camel@localhost> <42E74E29.5090005@op5.se> <1122471906.15025.254.camel@localhost> <42E7BA0D.4020804@op5.se> <1122484346.15025.267.camel@localhost> <42E7DCBD.9090904@op5.se> <1122542715.29724.8.camel@localhost> <42E9275F.2030202@op5.se> <1122628003.13754.56.camel@localhost> <1122639398.13754.58.camel@localhost> <1123752803.20276.0.camel@localhost> <42FB1EB5.9010808@op5.se> <1123756911.20276.42.camel@localhost> <42FB519E.6020800@op5.se> <1123773386.20276.129.camel@localhost> <430040BF.3@op5.se> Message-ID: <43019730.1040705@op5.se> Brian Murphy wrote: > Andreas Ericsson op5.se> writes: > > >>Two methods have been suggested and prototyped. >>Either fire up the checking-threads via fork(), dup() execve() and >>multiplex all checks, or run a separate thread (as opposed to a fork()) >>for each check and use shared memory for inter-thread communication. >>With some sort of limit on the number of pending check-results this >>could be done fairly easily. Each thread could even handle the results >>themselves, provided proper locking is in place. >> > > > Are there things I could undertake in the config of this environment to deal > with this issue? > Most definitely not. There's room for one method of processing checks, and one only (each method is quite complex and requires a fair amount of code). When (or if) the change is made, the old system of processing checks will be dropped entirely. > Do I need to find a way to stop the results coming through in clumps? > Not necessarily, no. You can probably get fairly good results by decreasing the service_reaper_frequency in nagios.cfg. Decrease it in steps of 2 until processes stop queuing up (that's when Nagios empties the pipe often enough for checks to get through). If it doesn't work, you'll need to split your nagios setup in smaller chunks or pay me a fat load of money to implement the thread-based or multiplexing checking model. Either way should work, really. ;) -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From reuben at presence-systems.com Tue Aug 16 11:59:30 2005 From: reuben at presence-systems.com (Reuben Pearse) Date: Tue, 16 Aug 2005 10:59:30 +0100 Subject: NRPE problems on Windows 2003 Servers Message-ID: <4301B902.8000101@presence-systems.com> Hi all, I am experiencing problems when running custom checks under NRPE 0.7e on a number of Windows 2003 Servers. I had some WSH checks running that report back on the amount of space on the local drive volumes that have been working fine until the server was rebooted following a Windows Update. When trying to execute the checks I now get the following sequence of errors reported in the Event Viewer on the Windows 2003 Server: NRPE_NT: Error: Exception caught in handle_connection:SSL_Handshake:2:1 NRPE_NT: Error: Exception caught in handle_connection:receive_packet NRPE_NT: Data packet from client was too short, bailing out... NRPE_NT: Error: Exception caught in handle_connection:Check_request NRPE_NT: Error: Exception caught in handle_connection:Run command NRPE_NT: Error: Exception in handle_connection-packet_Send: -1073741819 and then these errors every time the check is run... NRPE_NT: Error: Exception caught in handle_connection:SSL_Handshake:0:0 NRPE_NT: Error: Exception in handle_connection: -1073741819 This has happened on a number of Windows 2003 Servers and I'm wondering if it's related to a security lock down on what WSH operations can be performed by non-interactive users. If anyone has any ideas then let me know. Regards -- Reuben Pearse Principal Technical Consultant reuben at presence-systems.com ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Richard.Luys at vanderlet.nl Tue Aug 16 12:57:35 2005 From: Richard.Luys at vanderlet.nl (Richard.Luys at vanderlet.nl) Date: Tue, 16 Aug 2005 12:57:35 +0200 Subject: Nagios 'could not connect' to MySQL database Message-ID: <9BC12CEA9D0D27409DB7599F44FDD357422211@vdlsv00029.vanderlet.nl> I know, this sounds like a newbie question, but unfortunately it seems a bit more complex... First let me tell you about the configuration: Novell Suse Linux Enterprise Server 9, 64-bit version MySQL Ver 14.7 Distrib 4.1.12 for unknown-linux-gnu (x86_64) using readline 4.3 Nagios 1.2 compiled with --with-mysql-xdata option; no errors. All of this is installed on the same hardware... Nagios.cfg and resource.cfg contain the necessary credentials to connect to the database. Connecting to the database with these credentials is succesfull (both logged in as root and as nagios). When I check the nagios.log I get the following errors: [1123752497] Finished daemonizing... (New PID=26747) [1123752497] Error: Could not connect to MySQL database 'nagios' on host 'localhost' using username 'nagios' and password 'removed'. Status data will not be saved! [1123752497] Error: Could not connect to MySQL database 'nagios' on host 'localhost' using username 'nagios' and password 'removed'. Retention data will not be processed or saved! [1123752497] Error: Could not re-connect to database server on host 'localhost' for status data. I'll keep trying every 60 seconds... [1123752497] Error: Could not connect to MySQL database 'nagios' on host 'localhost' using username 'nagios' and password 'removed' for comment data! [1123752497] Error: Could not connect to MySQL database 'nagios' on host 'localhost' using username 'nagios' and password 'removed' for downtime data! As I said, the provided host, database, username and password are correct. I can use them with the mysql-client to connect to the database, and use SELECT and INSERT statements succesfully. It looks like nagios cannot find the database; the MySQL-logging does not show any connection attempts from the Nagios-process... Port (3306) is used, and telnet localhost 3306 works fine. Who helps me out? Thanks in advance and best regards, VANDERLET B.V. R. (Richard) Luys This e-mail message and its attachments are subject to the disclaimer published at the following website of VANDERLET: http://www.vanderlet.nl/disclaimer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From werner.flamme at ufz.de Tue Aug 16 13:58:53 2005 From: werner.flamme at ufz.de (Werner Flamme) Date: Tue, 16 Aug 2005 13:58:53 +0200 Subject: Nagios 'could not connect' to MySQL database In-Reply-To: <9BC12CEA9D0D27409DB7599F44FDD357422211@vdlsv00029.vanderlet.nl> References: <9BC12CEA9D0D27409DB7599F44FDD357422211@vdlsv00029.vanderlet.nl> Message-ID: <4301D4FD.3030601@ufz.de> Richard.Luys at vanderlet.nl schrieb am 16.08.2005 12:57: > I know, this sounds like a newbie question, but unfortunately it seems a > bit more complex... > ---snip--- > When I check the nagios.log I get the following errors: > [1123752497] Finished daemonizing... (New PID=26747) > [1123752497] Error: Could not connect to MySQL database 'nagios' on host > 'localhost' using username 'nagios' and password 'removed'. Status data > will not be saved! > > As I said, the provided host, database, username and password are > correct. I can use them with the mysql-client to connect to the > database, and use SELECT and INSERT statements succesfully. > > It looks like nagios cannot find the database; the MySQL-logging does > not show any connection attempts from the Nagios-process... Port (3306) > is used, and telnet localhost 3306 works fine. Yes, AFAIk there is an issue when you use localhost - the connection will be made via socket instead of port 3306. Try your machine's name or IP address (as you find in /etc/hosts) instead of 'localhost' in the config - same error then? > > Who helps me out? Dunno yet ;-) > > > Thanks in advance and best regards, > VANDERLET B.V. > > R. (Richard) Luys > HTH Werner -- Werner Flamme, Abt. WKDV UFZ Umweltforschungszentrum Leipzig-Halle GmbH, Permoserstr. 15, 04318 Leipzig - http://www.ufz.de eMail: werner.flamme at ufz.de, Tel.: (0341) 235-2500 ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Richard.Luys at vanderlet.nl Tue Aug 16 14:24:29 2005 From: Richard.Luys at vanderlet.nl (Richard.Luys at vanderlet.nl) Date: Tue, 16 Aug 2005 14:24:29 +0200 Subject: Nagios 'could not connect' to MySQL database Message-ID: <9BC12CEA9D0D27409DB7599F44FDD35742221B@vdlsv00029.vanderlet.nl> Werner, > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf > Of Werner Flamme > Sent: Tuesday, August 16, 2005 1:59 PM > To: Nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Nagios 'could not connect' to > MySQL database > > Richard.Luys at vanderlet.nl schrieb am 16.08.2005 12:57: > > I know, this sounds like a newbie question, but > unfortunately it seems > > a bit more complex... > > > ---snip--- > > When I check the nagios.log I get the following errors: > > [1123752497] Finished daemonizing... (New PID=26747) [1123752497] > > Error: Could not connect to MySQL database 'nagios' on host > > 'localhost' using username 'nagios' and password 'removed'. Status > > data will not be saved! > > > > As I said, the provided host, database, username and password are > > correct. I can use them with the mysql-client to connect to the > > database, and use SELECT and INSERT statements succesfully. > > > > It looks like nagios cannot find the database; the > MySQL-logging does > > not show any connection attempts from the Nagios-process... Port > > (3306) is used, and telnet localhost 3306 works fine. > > Yes, AFAIk there is an issue when you use localhost - the > connection will be made via socket instead of port 3306. > > Try your machine's name or IP address (as you find in > /etc/hosts) instead of 'localhost' in the config - same error then? Tried it with the IP-address, exactly the same error (except for 'localhost' which is replaced by an ip-address, duh ;-) ). Also tried the check_nagios_db.pl script; gives me the exact same error (could not connect...). Since this script is using the Perl::DBI thingy to connect to the database, I wonder what Nagios uses internally? As I said: the MySQL client works fine, but connection with Perl::DBI does not. I think that if we know the similarities in the way Nagios connects and how Perl::DBI connects, we can figure out wat is happening, and hopefully how to fix it... > > > > > Who helps me out? > Dunno yet ;-) Thanks anyway, I appreciate your efforts! > > > > > > Thanks in advance and best regards, > > VANDERLET B.V. > > > > R. (Richard) Luys > > > > HTH > Werner It didn't, but I won't give up... > > -- > Werner Flamme, Abt. WKDV > UFZ Umweltforschungszentrum Leipzig-Halle GmbH, > Permoserstr. 15, 04318 Leipzig - http://www.ufz.de > eMail: werner.flamme at ufz.de, Tel.: (0341) 235-2500 > > > > > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development > Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * > Testing & QA > Security * Process Improvement & Measurement * > http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > This e-mail message and its attachments are subject to the disclaimer published at the following website of VANDERLET: http://www.vanderlet.nl/disclaimer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jjk_saji at yahoo.com Tue Aug 16 14:42:05 2005 From: jjk_saji at yahoo.com (John Joseph) Date: Tue, 16 Aug 2005 13:42:05 +0100 (BST) Subject: Nagios + Oreon , Guidance Needed Message-ID: <20050816124205.17456.qmail@web40823.mail.yahoo.com> Hi happened to see and get information about ?oreon ? the proy's web site link , thanks to http://www.manubulon.com/nagios/ yesterday I downloaded the oreon and installed it , it is front end of nagios , by the features , it is good , they have done a good work My problem started when I wanted to post in their forum , French Language I do not have any language and I wanted to post in their forum , The forum has a English section , but to post there , you have the navgation menu all in French , I tried my luck with Google translator , due to slow Internet speed , I am not able to use it . Would like to know if any members using ? oreon ? and I would like to request for a link for English documentation of Oreon I also would like to post my experience with ?oreon? # I was not able to put the existing data [ from ?/nagios/etc?] to oreon # I did try the option of uploading , but the file just goes to the location ?/usr/local/oreon/nagios_cfg/upload/? , nothing more than I could do # If oreon is able to take all the info from ?/usr/local/nagios/etc/? , it would be great , but I am stuck , I do not have anything to read in English Requesting HELP Thanks Joseph John ___________________________________________________________ To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From werner.flamme at ufz.de Tue Aug 16 16:03:29 2005 From: werner.flamme at ufz.de (Werner Flamme) Date: Tue, 16 Aug 2005 16:03:29 +0200 Subject: Nagios 'could not connect' to MySQL database In-Reply-To: <9BC12CEA9D0D27409DB7599F44FDD35742221B@vdlsv00029.vanderlet.nl> References: <9BC12CEA9D0D27409DB7599F44FDD35742221B@vdlsv00029.vanderlet.nl> Message-ID: <4301F231.8080000@ufz.de> Richard.Luys at vanderlet.nl schrieb am 16.08.2005 14:24: > Werner, > > > >>---snip--- >> >>>When I check the nagios.log I get the following errors: >>>[1123752497] Finished daemonizing... (New PID=26747) [1123752497] >>>Error: Could not connect to MySQL database 'nagios' on host >>>'localhost' using username 'nagios' and password 'removed'. Status >>>data will not be saved! Hmmm... when I look at my self-compiled nagios 1.2 on SLES 8, I see that there are 2 files you have to maintain for mysql. Did you look at cgi.cfg? If yes - I don't know what may be the cause then. I remember I made the entries in one of those and forgot the other. And I had quite similar errors... HTH now ;-) Werner -- Werner Flamme, Abt. WKDV UFZ Umweltforschungszentrum Leipzig-Halle GmbH, Permoserstr. 15, 04318 Leipzig - http://www.ufz.de eMail: werner.flamme at ufz.de, Tel.: (0341) 235-2500 ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dgentry at ultainc.com Tue Aug 16 16:13:01 2005 From: dgentry at ultainc.com (David Gentry) Date: Tue, 16 Aug 2005 16:13:01 +0200 (CEST) Subject: E-mail Reports Message-ID: <20050816141301.D1E6C4F4002@desire.netways.de> Hello Everyone, I am trying to figure out how to e-mail the availability reports, without converting it to MYsql and using Crystal. There seems to be several plugins that provide different charts, but none that allow you to export or email... Any help will be appreciated. Thanks. - David Gentry (davidtechie) ----------------------- The mailing list archive is found here: http://www.nagiosexchange.org/nagios-users.34.0.html ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Richard.Luys at vanderlet.nl Tue Aug 16 16:17:49 2005 From: Richard.Luys at vanderlet.nl (Richard.Luys at vanderlet.nl) Date: Tue, 16 Aug 2005 16:17:49 +0200 Subject: Nagios 'could not connect' to MySQL database Message-ID: <9BC12CEA9D0D27409DB7599F44FDD35742222D@vdlsv00029.vanderlet.nl> Hello Again Werner! > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf > Of Werner Flamme > Sent: Tuesday, August 16, 2005 4:03 PM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Nagios 'could not connect' to > MySQL database > > Richard.Luys at vanderlet.nl schrieb am 16.08.2005 14:24: > > Werner, > > > > > > > >>---snip--- > >> > >>>When I check the nagios.log I get the following errors: > >>>[1123752497] Finished daemonizing... (New PID=26747) [1123752497] > >>>Error: Could not connect to MySQL database 'nagios' on host > >>>'localhost' using username 'nagios' and password > 'removed'. Status > >>>data will not be saved! > > Hmmm... when I look at my self-compiled nagios 1.2 on SLES 8, > I see that there are 2 files you have to maintain for mysql. > Did you look at cgi.cfg? My bad. I typed nagios.cfg when I meant cgi.cfg. The other is the resource.cfg. It's strange indeed that you have to put a lot of this identical information in two different config-files. But these files are both correctly configured. > > If yes - I don't know what may be the cause then. I remember > I made the entries in one of those and forgot the other. And > I had quite similar errors... I think I do. Here's what I found: Googling on the internet reminded me of the 'check_nagios_db.pl' script; which is used for checking if Nagios is running when you use a database for the logging etc. I ran the script, and got the same error. So I focussed a bit on the Perl::DBI driver, and came across a very basic script to test if it works correctly. I ran that script, and received an error like 'Client does not support authentication protocol requested by server...'. That was more descriptive than 'could not connect...'! So I took the part that is responsible for showing this error( $DBI::errstr), and put it in the error-comment of the check_nagios_db.pl script. And voila! I got the same message there! In other words, it looks like there is an incompatibility issue in how Perl::DBI and Nagios try to authenticate with the database. I checked the MySQL-site and found this very same error in the documentation pages ( http://dev.mysql.com/doc/mysql/en/old-client.html ). I will look further into it, and post my findings; maybe it helps somebody with the same problem. I learned a very important lesson here: When you write a script, develop a program, or whatever, make sure you give sufficient feedback! When the errors in the logging stated why they 'could not connect' instead of just that message, the problem was probably fixed a week ago! I had to stumble across a perl-statement for showing the real error, to find out what is really the problem... > > HTH now ;-) > Werner > > -- > Werner Flamme, Abt. WKDV > UFZ Umweltforschungszentrum Leipzig-Halle GmbH, Permoserstr. > 15, 04318 Leipzig - http://www.ufz.de > eMail: werner.flamme at ufz.de, Tel.: (0341) 235-2500 > > > > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development > Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * > Testing & QA > Security * Process Improvement & Measurement * > http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > This e-mail message and its attachments are subject to the disclaimer published at the following website of VANDERLET: http://www.vanderlet.nl/disclaimer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dan.hopkins at uk.easynet.net Tue Aug 16 16:21:43 2005 From: dan.hopkins at uk.easynet.net (Dan Hopkins) Date: Tue, 16 Aug 2005 15:21:43 +0100 Subject: Nagios 'could not connect' to MySQL database Message-ID: <13E80BCA327C4D43AC2EFCE6B06E53145D4D9C@exch0-tmshm.uk.easynet.corp> > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of > Richard.Luys at vanderlet.nl > Sent: 16 August 2005 15:18 > To: nagios-users at lists.sourceforge.net > Cc: werner.flamme at ufz.de > Subject: RE: [Nagios-users] Nagios 'could not connect' to > MySQL database > > > > Hello Again Werner! > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net > > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf > > Of Werner Flamme > > Sent: Tuesday, August 16, 2005 4:03 PM > > To: nagios-users at lists.sourceforge.net > > Subject: Re: [Nagios-users] Nagios 'could not connect' to > > MySQL database > > > > Richard.Luys at vanderlet.nl schrieb am 16.08.2005 14:24: > > > Werner, > > > > > > > > > > > >>---snip--- > > >> > > >>>When I check the nagios.log I get the following errors: > > >>>[1123752497] Finished daemonizing... (New PID=26747) [1123752497] > > >>>Error: Could not connect to MySQL database 'nagios' on host > > >>>'localhost' using username 'nagios' and password > > 'removed'. Status > > >>>data will not be saved! > > > > Hmmm... when I look at my self-compiled nagios 1.2 on SLES 8, > > I see that there are 2 files you have to maintain for mysql. > > Did you look at cgi.cfg? > > My bad. I typed nagios.cfg when I meant cgi.cfg. The other is the > resource.cfg. It's strange indeed that you have to put a lot of this > identical information in two different config-files. But > these files are > both correctly configured. > > > > > If yes - I don't know what may be the cause then. I remember > > I made the entries in one of those and forgot the other. And > > I had quite similar errors... > > I think I do. Here's what I found: > > Googling on the internet reminded me of the > 'check_nagios_db.pl' script; > which is used for checking if Nagios is running when you use > a database > for the logging etc. I ran the script, and got the same error. So I > focussed a bit on the Perl::DBI driver, and came across a very basic > script to test if it works correctly. I ran that script, and > received an > error like 'Client does not support authentication protocol > requested by > server...'. That was more descriptive than 'could not > connect...'! So I > took the part that is responsible for showing this error( > $DBI::errstr), > and put it in the error-comment of the check_nagios_db.pl script. And > voila! I got the same message there! > > In other words, it looks like there is an incompatibility issue in how > Perl::DBI and Nagios try to authenticate with the database. I checked > the MySQL-site and found this very same error in the > documentation pages > ( http://dev.mysql.com/doc/mysql/en/old-client.html ). I will look > further into it, and post my findings; maybe it helps > somebody with the > same problem. > > I learned a very important lesson here: When you write a > script, develop > a program, or whatever, make sure you give sufficient > feedback! When the > errors in the logging stated why they 'could not connect' instead of > just that message, the problem was probably fixed a week ago! I had to > stumble across a perl-statement for showing the real error, > to find out > what is really the problem... > > > > > HTH now ;-) > > Werner > > > > -- > > Werner Flamme, Abt. WKDV > > UFZ Umweltforschungszentrum Leipzig-Halle GmbH, Permoserstr. > > 15, 04318 Leipzig - http://www.ufz.de > > eMail: werner.flamme at ufz.de, Tel.: (0341) 235-2500 > > > > > > > > > > > > > > ------------------------------------------------------- > > SF.Net email is Sponsored by the Better Software Conference & EXPO > > September 19-22, 2005 * San Francisco, CA * Development > > Lifecycle Practices > > Agile & Plan-Driven Development * Managing Projects & Teams * > > Testing & QA > > Security * Process Improvement & Measurement * > > http://www.sqe.com/bsce5sf > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS > > when reporting any issue. > > ::: Messages without supporting info will risk being sent > to /dev/null > > > > This e-mail message and its attachments are subject to the > disclaimer published at the following website of VANDERLET: > http://www.vanderlet.nl/disclaimer > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development > Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * > Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dan.hopkins at uk.easynet.net Tue Aug 16 16:23:22 2005 From: dan.hopkins at uk.easynet.net (Dan Hopkins) Date: Tue, 16 Aug 2005 15:23:22 +0100 Subject: Nagios 'could not connect' to MySQL database Message-ID: <13E80BCA327C4D43AC2EFCE6B06E53145D4D9D@exch0-tmshm.uk.easynet.corp> (Apologies for the blank reply...) Sounds like you're using a mysql4.1 db with mysql <4.1 client libs. If that's the case, either upgrade the client end to 4.1, or set password = old_password('blah') on the server. HTH Dan > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of > Richard.Luys at vanderlet.nl > Sent: 16 August 2005 15:18 > To: nagios-users at lists.sourceforge.net > Cc: werner.flamme at ufz.de > Subject: RE: [Nagios-users] Nagios 'could not connect' to > MySQL database > > > > Hello Again Werner! > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net > > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf > > Of Werner Flamme > > Sent: Tuesday, August 16, 2005 4:03 PM > > To: nagios-users at lists.sourceforge.net > > Subject: Re: [Nagios-users] Nagios 'could not connect' to > > MySQL database > > > > Richard.Luys at vanderlet.nl schrieb am 16.08.2005 14:24: > > > Werner, > > > > > > > > > > > >>---snip--- > > >> > > >>>When I check the nagios.log I get the following errors: > > >>>[1123752497] Finished daemonizing... (New PID=26747) [1123752497] > > >>>Error: Could not connect to MySQL database 'nagios' on host > > >>>'localhost' using username 'nagios' and password > > 'removed'. Status > > >>>data will not be saved! > > > > Hmmm... when I look at my self-compiled nagios 1.2 on SLES 8, > > I see that there are 2 files you have to maintain for mysql. > > Did you look at cgi.cfg? > > My bad. I typed nagios.cfg when I meant cgi.cfg. The other is the > resource.cfg. It's strange indeed that you have to put a lot of this > identical information in two different config-files. But > these files are > both correctly configured. > > > > > If yes - I don't know what may be the cause then. I remember > > I made the entries in one of those and forgot the other. And > > I had quite similar errors... > > I think I do. Here's what I found: > > Googling on the internet reminded me of the > 'check_nagios_db.pl' script; > which is used for checking if Nagios is running when you use > a database > for the logging etc. I ran the script, and got the same error. So I > focussed a bit on the Perl::DBI driver, and came across a very basic > script to test if it works correctly. I ran that script, and > received an > error like 'Client does not support authentication protocol > requested by > server...'. That was more descriptive than 'could not > connect...'! So I > took the part that is responsible for showing this error( > $DBI::errstr), > and put it in the error-comment of the check_nagios_db.pl script. And > voila! I got the same message there! > > In other words, it looks like there is an incompatibility issue in how > Perl::DBI and Nagios try to authenticate with the database. I checked > the MySQL-site and found this very same error in the > documentation pages > ( http://dev.mysql.com/doc/mysql/en/old-client.html ). I will look > further into it, and post my findings; maybe it helps > somebody with the > same problem. > > I learned a very important lesson here: When you write a > script, develop > a program, or whatever, make sure you give sufficient > feedback! When the > errors in the logging stated why they 'could not connect' instead of > just that message, the problem was probably fixed a week ago! I had to > stumble across a perl-statement for showing the real error, > to find out > what is really the problem... > > > > > HTH now ;-) > > Werner > > > > -- > > Werner Flamme, Abt. WKDV > > UFZ Umweltforschungszentrum Leipzig-Halle GmbH, Permoserstr. > > 15, 04318 Leipzig - http://www.ufz.de > > eMail: werner.flamme at ufz.de, Tel.: (0341) 235-2500 > > > > > > > > > > > > > > ------------------------------------------------------- > > SF.Net email is Sponsored by the Better Software Conference & EXPO > > September 19-22, 2005 * San Francisco, CA * Development > > Lifecycle Practices > > Agile & Plan-Driven Development * Managing Projects & Teams * > > Testing & QA > > Security * Process Improvement & Measurement * > > http://www.sqe.com/bsce5sf > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS > > when reporting any issue. > > ::: Messages without supporting info will risk being sent > to /dev/null > > > > This e-mail message and its attachments are subject to the > disclaimer published at the following website of VANDERLET: > http://www.vanderlet.nl/disclaimer > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development > Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * > Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rt at garnetweb.com Tue Aug 16 16:26:12 2005 From: rt at garnetweb.com (Miles Scruggs) Date: Tue, 16 Aug 2005 07:26:12 -0700 Subject: Internet Detection In-Reply-To: <430195AF.2000400@op5.se> References: <430195AF.2000400@op5.se> Message-ID: > > Instead, you can use the check_icmp plugin in check_host mode and give > it several hostnames to well-known sites, like so; > > ln -s check_icmp check_host > time ./check_host www.google.com www.dell.com www.nasa.gov > www.whitehouse.gov OK - www.google.com responds to ICMP. Packet 1, rtt > 48.630ms > |pkt=1;0;0;0;5 rta=48.630;2000.000;2000.000;; > > real 0m0.170s > user 0m0.000s > sys 0m0.000s > This is fine, but it returns critical if even one of the hosts is down. Pretty much pointless for using multiple hosts for internet detection. I want it to return critical only if all hosts are down/unresponsive/slow. How would I do this? Also I'm not sure what the point of using the time command is either. Thanks Miles ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Chester.Hosey at gianteagle.com Tue Aug 16 16:29:50 2005 From: Chester.Hosey at gianteagle.com (Chester R. Hosey) Date: Tue, 16 Aug 2005 10:29:50 -0400 Subject: Internet Detection In-Reply-To: References: Message-ID: <28927.2043075927$1124202723@news.gmane.org> On Tue, 2005-08-16 at 07:26 -0700, Miles Scruggs wrote: > > > > Instead, you can use the check_icmp plugin in check_host mode and give > > it several hostnames to well-known sites, like so; > > > > ln -s check_icmp check_host > > time ./check_host www.google.com www.dell.com www.nasa.gov > > www.whitehouse.gov OK - www.google.com responds to ICMP. Packet 1, rtt > > 48.630ms > > |pkt=1;0;0;0;5 rta=48.630;2000.000;2000.000;; > > > > real 0m0.170s > > user 0m0.000s > > sys 0m0.000s > > > > This is fine, but it returns critical if even one of the hosts is down. > Pretty much pointless for using multiple hosts for internet detection. I > want it to return critical only if all hosts are down/unresponsive/slow. > How would I do this? > > Also I'm not sure what the point of using the time command is either. I think the time command was to show that the plug-in executes quite quickly, and will not bog down your monitoring host. I think someone was talking recently about writing a plug-in which would check for at least one of a set of hosts being available. Check the archives from the past week or so. Chet ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From todd_barbera at wgbh.org Tue Aug 16 16:30:37 2005 From: todd_barbera at wgbh.org (Todd Barbera) Date: Tue, 16 Aug 2005 10:30:37 -0400 Subject: Internet Detection In-Reply-To: References: Message-ID: <002201c5a26f$11c35250$620a010a@GRAPEAPE> Hi Miles, Couldn't you simply check your upstream router from your ISP? Todd -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Miles Scruggs Sent: Tuesday, August 16, 2005 10:26 AM To: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Internet Detection > > Instead, you can use the check_icmp plugin in check_host mode and give > it several hostnames to well-known sites, like so; > > ln -s check_icmp check_host > time ./check_host www.google.com www.dell.com www.nasa.gov > www.whitehouse.gov OK - www.google.com responds to ICMP. Packet 1, rtt > 48.630ms > |pkt=1;0;0;0;5 rta=48.630;2000.000;2000.000;; > > real 0m0.170s > user 0m0.000s > sys 0m0.000s > This is fine, but it returns critical if even one of the hosts is down. Pretty much pointless for using multiple hosts for internet detection. I want it to return critical only if all hosts are down/unresponsive/slow. How would I do this? Also I'm not sure what the point of using the time command is either. Thanks Miles ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rt at garnetweb.com Tue Aug 16 16:38:55 2005 From: rt at garnetweb.com (Miles Scruggs) Date: Tue, 16 Aug 2005 07:38:55 -0700 Subject: Internet Detection In-Reply-To: <4301F8F5.10504@op5.se> References: <4301F8F5.10504@op5.se> Message-ID: > > This is fine, but it returns critical if even one of the hosts is down. > > Pretty much pointless for using multiple hosts for internet detection. > I > > want it to return critical only if all hosts are down/unresponsive/slow. > > How would I do this? > > > > Like I said. It will only return critical if ALL hosts are down (that's > the whole point of the check_host mode). > I didn't realize that creating the link changed the mode of the command, so here is what I get now (I set google.ca to an incorrect IP with my hosts file to test a failed host) [root at monitor libexec]# ln -s check_icmp check_host [root at monitor libexec]# ./check_icmp www.google.com www.dell.com www.nasa.gov google.ca CRITICAL - www.google.com: rta 93.954ms, lost 0% :: www.dell.com: rta 80.487ms, lost 0% :: www.nasa.gov: rta 66.459ms, lost 0% :: google.ca: rta nan, lost 100%|www.google.comrta=93.954ms;200.000;500.000;0; www.google.compl=0%;40;80;; www.dell.comrta=80.487ms;200.000;500.000;0; www.dell.compl=0%;40;80;; www.nasa.govrta=66.459ms;200.000;500.000;0; www.nasa.govpl=0%;40;80;; google.carta=0.000ms;200.000;500.000;0; google.capl=100%;40;80;; [root at monitor libexec]# ./check_host www.google.com www.dell.com www.nasa.gov google.ca mode: 1 mode: 1 mode: 1 mode: 1 mode: 1 mode: 1 Segmentation fault Basically if I just run check_icmp then I get Critcal since google.ca appears to be down, and check host doesn't return anything usable. Thanks Miles ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rt at garnetweb.com Tue Aug 16 16:39:40 2005 From: rt at garnetweb.com (Miles Scruggs) Date: Tue, 16 Aug 2005 07:39:40 -0700 Subject: Internet Detection In-Reply-To: <002201c5a26f$11c35250$620a010a@GRAPEAPE> References: <002201c5a26f$11c35250$620a010a@GRAPEAPE> Message-ID: > > Couldn't you simply check your upstream router from your ISP? > This would work great assuming that you had a really small ISP that wasn't multihomed. Miles ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rt at garnetweb.com Tue Aug 16 16:47:02 2005 From: rt at garnetweb.com (Miles Scruggs) Date: Tue, 16 Aug 2005 07:47:02 -0700 Subject: Internet Detection In-Reply-To: <4301F8F5.10504@op5.se> References: <4301F8F5.10504@op5.se> Message-ID: > Like I said. It will only return critical if ALL hosts are down (that's > the whole point of the check_host mode). > I'm looking through the source code of check_icmp, and I can see that it has 4 different mode, how do you specify which one of these four modes it will run in? (I don't know C that well) I have never seen a program that would switch modes based on a symlink before, but then again I haven't been around the block that many times either. Nice work on this plugin by the way. Hmm as I'm writing this I'm asking myself if I should be replacing the check_icmp that is in my libexec with the one you pointed to, as I don't know the source of the one that is there now. Thanks Miles ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ktynagios at richard-group.com Tue Aug 16 16:46:16 2005 From: ktynagios at richard-group.com (Kurt Yoder) Date: Tue, 16 Aug 2005 10:46:16 -0400 Subject: combine multiple hosts in web interface? Message-ID: <8b8e366e003ebc68212f079430be4ea2@richard-group.com> So I have several hosts that have multiple network interfaces, but I want them to appear as one host in the web interface. Example: host1 has address 1.2.3.4 running internet-accessible http. It is set up in nagios as "host1". host1 also has address 10.11.12.13, which is running a privately-accessible network services. It is set up in nagios as "host1-private". Right now, "host1" and "host1-private" show up as two separate hosts in the nagios web interface, even though they are in reality the same machine. How do I merge them in the web interface? Or is there a way to merge them within the nagios configuration instead? -- Kurt Yoder The Richard Group v: 703.584.5803 f: 703.991.8990 ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Richard.Luys at vanderlet.nl Tue Aug 16 16:47:40 2005 From: Richard.Luys at vanderlet.nl (Richard.Luys at vanderlet.nl) Date: Tue, 16 Aug 2005 16:47:40 +0200 Subject: [SPAM (HDCHCK)] - RE: Nagios 'could not connect' to MySQL database - Email found in subject Message-ID: <9BC12CEA9D0D27409DB7599F44FDD357422234@vdlsv00029.vanderlet.nl> > -----Original Message----- > From: Dan Hopkins [mailto:dan.hopkins at uk.easynet.net] > Sent: Tuesday, August 16, 2005 4:23 PM > To: Richard Luys; nagios-users at lists.sourceforge.net > Cc: werner.flamme at ufz.de > Subject: [SPAM (HDCHCK)] - RE: [Nagios-users] Nagios 'could > not connect' to MySQL database - Email found in subject > > (Apologies for the blank reply...) That's ok. I only scanned it twice for your comments ;-) > > Sounds like you're using a mysql4.1 db with mysql <4.1 client > libs. If that's the case, either upgrade the client end to > 4.1, or set password = old_password('blah') on the server. That's indeed what I understood from reading the Mysql-site information I found. Strange thing is that AFAIK the Mysql-server and -client were installed from the same package?!?!?!? Also weird is the fact that when I use a command-line like: mysql --user=nagios --password=??? --host=localhost --database=nagios, the connection is made, and I have all the necessary privileges for Nagios to function. So, I do not have it working yet, but I found something concrete to work with :-) As I said in my post to Werner, I will post my findings and how I got things working. > > HTH Thanks for your suggestions! > > Dan > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net > > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of > > Richard.Luys at vanderlet.nl > > Sent: 16 August 2005 15:18 > > To: nagios-users at lists.sourceforge.net > > Cc: werner.flamme at ufz.de > > Subject: RE: [Nagios-users] Nagios 'could not connect' to MySQL > > database > > > > > > > > Hello Again Werner! > > > > > -----Original Message----- > > > From: nagios-users-admin at lists.sourceforge.net > > > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of > > > Werner Flamme > > > Sent: Tuesday, August 16, 2005 4:03 PM > > > To: nagios-users at lists.sourceforge.net > > > Subject: Re: [Nagios-users] Nagios 'could not connect' to MySQL > > > database > > > > > > Richard.Luys at vanderlet.nl schrieb am 16.08.2005 14:24: > > > > Werner, > > > > > > > > > > > > > > > >>---snip--- > > > >> > > > >>>When I check the nagios.log I get the following errors: > > > >>>[1123752497] Finished daemonizing... (New PID=26747) > [1123752497] > > > >>>Error: Could not connect to MySQL database 'nagios' on host > > > >>>'localhost' using username 'nagios' and password > > > 'removed'. Status > > > >>>data will not be saved! > > > > > > Hmmm... when I look at my self-compiled nagios 1.2 on > SLES 8, I see > > > that there are 2 files you have to maintain for mysql. > > > Did you look at cgi.cfg? > > > > My bad. I typed nagios.cfg when I meant cgi.cfg. The other is the > > resource.cfg. It's strange indeed that you have to put a > lot of this > > identical information in two different config-files. But > these files > > are both correctly configured. > > > > > > > > If yes - I don't know what may be the cause then. I > remember I made > > > the entries in one of those and forgot the other. And I had quite > > > similar errors... > > > > I think I do. Here's what I found: > > > > Googling on the internet reminded me of the 'check_nagios_db.pl' > > script; which is used for checking if Nagios is running > when you use a > > database for the logging etc. I ran the script, and got the same > > error. So I focussed a bit on the Perl::DBI driver, and > came across a > > very basic script to test if it works correctly. I ran that script, > > and received an error like 'Client does not support authentication > > protocol requested by server...'. That was more descriptive than > > 'could not connect...'! So I took the part that is responsible for > > showing this error( $DBI::errstr), and put it in the > error-comment of > > the check_nagios_db.pl script. And voila! I got the same message > > there! > > > > In other words, it looks like there is an incompatibility > issue in how > > Perl::DBI and Nagios try to authenticate with the database. > I checked > > the MySQL-site and found this very same error in the documentation > > pages ( http://dev.mysql.com/doc/mysql/en/old-client.html ). I will > > look further into it, and post my findings; maybe it helps somebody > > with the same problem. > > > > I learned a very important lesson here: When you write a script, > > develop a program, or whatever, make sure you give sufficient > > feedback! When the errors in the logging stated why they 'could not > > connect' instead of just that message, the problem was > probably fixed > > a week ago! I had to stumble across a perl-statement for > showing the > > real error, to find out what is really the problem... > > > > > > > > HTH now ;-) > > > Werner > > > > > > -- > > > Werner Flamme, Abt. WKDV > > > UFZ Umweltforschungszentrum Leipzig-Halle GmbH, Permoserstr. > > > 15, 04318 Leipzig - http://www.ufz.de > > > eMail: werner.flamme at ufz.de, Tel.: (0341) 235-2500 > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > SF.Net email is Sponsored by the Better Software > Conference & EXPO > > > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > > > Practices Agile & Plan-Driven Development * Managing Projects & > > > Teams * Testing & QA Security * Process Improvement & > Measurement * > > > http://www.sqe.com/bsce5sf > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > ::: Please include Nagios version, plugin version (-v) > and OS when > > > reporting any issue. > > > ::: Messages without supporting info will risk being sent > > to /dev/null > > > > > > > This e-mail message and its attachments are subject to the > disclaimer > > published at the following website of VANDERLET: > > http://www.vanderlet.nl/disclaimer > > > > > > > > ------------------------------------------------------- > > SF.Net email is Sponsored by the Better Software Conference & EXPO > > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > > Practices Agile & Plan-Driven Development * Managing > Projects & Teams > > * Testing & QA Security * Process Improvement & Measurement * > http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Tue Aug 16 16:51:47 2005 From: marc at ena.com (Marc Powell) Date: Tue, 16 Aug 2005 09:51:47 -0500 Subject: Internet Detection Message-ID: I agree with this approach. 'Think globally, act locally' used to be a mantra that many people seem to have forgotten. Just because the bandwidth that other people are paying for is there doesn't mean that you have a right to consume it. In this example, one person pinging these sites isn't a big deal but if 1,000 or 10,000 people were doing it then it is. It just doesn't scale (think Slashdot effect). You're not going to glean much more useful information than if you were pinging the remote side of each of your Internet connections which is much friendlier and only uses bandwidth that you are paying for and routers that you have full or some control over. Additionally, you're dependent on the policies of some third party you have no control over. If Google, Dell or NASA suddenly decided to block ICMP, and I'm surprised they don't already, then you'd have ambiguous results from your test that additional testing would be required to interpret. -- Marc > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Todd Barbera > Sent: Tuesday, August 16, 2005 9:31 AM > To: 'Miles Scruggs'; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Internet Detection > > Hi Miles, > > Couldn't you simply check your upstream router from your ISP? > > Todd > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Miles > Scruggs > Sent: Tuesday, August 16, 2005 10:26 AM > To: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Internet Detection > > > > > Instead, you can use the check_icmp plugin in check_host mode and give > > it several hostnames to well-known sites, like so; > > > > ln -s check_icmp check_host > > time ./check_host www.google.com www.dell.com www.nasa.gov > > www.whitehouse.gov OK - www.google.com responds to ICMP. Packet 1, rtt > > 48.630ms > > |pkt=1;0;0;0;5 rta=48.630;2000.000;2000.000;; > > > > real 0m0.170s > > user 0m0.000s > > sys 0m0.000s > > > > This is fine, but it returns critical if even one of the hosts is down. > Pretty much pointless for using multiple hosts for internet detection. I > want it to return critical only if all hosts are down/unresponsive/slow. > How would I do this? > > Also I'm not sure what the point of using the time command is either. > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From flima at slb.com Tue Aug 16 16:57:30 2005 From: flima at slb.com (Fernando Lima) Date: Tue, 16 Aug 2005 11:57:30 -0300 Subject: Internet Detection In-Reply-To: <002201c5a26f$11c35250$620a010a@GRAPEAPE> References: <002201c5a26f$11c35250$620a010a@GRAPEAPE> Message-ID: This is exactly as I do. In my opinion is the better way to check your Internet activity. As well check you dns (primary and secondary, just in case). Fernando Lima Schlumberger Security Engineer flima at slb.com Office: +55 21 3824 6954 Mobile. : +55 21 9888 9046 (GMT: -03:00) -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Todd Barbera Sent: Tuesday, August 16, 2005 11:31 AM To: 'Miles Scruggs'; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Internet Detection Hi Miles, Couldn't you simply check your upstream router from your ISP? Todd -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Miles Scruggs Sent: Tuesday, August 16, 2005 10:26 AM To: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Internet Detection > > Instead, you can use the check_icmp plugin in check_host mode and give > it several hostnames to well-known sites, like so; > > ln -s check_icmp check_host > time ./check_host www.google.com www.dell.com www.nasa.gov > www.whitehouse.gov OK - www.google.com responds to ICMP. Packet 1, rtt > 48.630ms > |pkt=1;0;0;0;5 rta=48.630;2000.000;2000.000;; > > real 0m0.170s > user 0m0.000s > sys 0m0.000s > This is fine, but it returns critical if even one of the hosts is down. Pretty much pointless for using multiple hosts for internet detection. I want it to return critical only if all hosts are down/unresponsive/slow. How would I do this? Also I'm not sure what the point of using the time command is either. Thanks Miles ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rt at garnetweb.com Tue Aug 16 17:17:51 2005 From: rt at garnetweb.com (Miles Scruggs) Date: Tue, 16 Aug 2005 08:17:51 -0700 Subject: Internet Detection In-Reply-To: <4301F8F5.10504@op5.se> References: <4301F8F5.10504@op5.se> Message-ID: > > Like I said. It will only return critical if ALL hosts are down (that's > the whole point of the check_host mode). > > > Also I'm not sure what the point of using the time command is either. > > > Ok looks like the check_icmp that I had installed wasn't the one you had written. I installed that one, and all is well, thanks again. This is the perfect plugin for doing internet detection, the whole discussion of what hosts to check is a completely different subject. Quite frankly unless anyone has intimate knowledge about the network setup of these site, or their policies or view about this sort of thing, it is similar to a bunch of old guys sitting around smoking pipes and philosophizing about the existence of life on other planets. All I was looking for was a way to check a number of hosts, and return ok if at lease one of them was up, and now I have it. Thanks Andreas Miles ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From James.P.Fuentes at boeing.com Tue Aug 16 17:42:53 2005 From: James.P.Fuentes at boeing.com (EXT-Fuentes, James P) Date: Tue, 16 Aug 2005 08:42:53 -0700 Subject: combine multiple hosts in web interface? Message-ID: <626FC7C6A97381468FB872072AB5DDC801FEDD@XCH-SW-42.sw.nos.boeing.com> We have a similar situation where host1 and host2 are members of a cluster. We created a new host called wincluster which is a child of the two hosts effectively tying them together on the map. Maybe not the most desirable solution but it suits our needs. -Jim ________________________________ From: Kurt Yoder [mailto:ktynagios at richard-group.com] Sent: Tue 8/16/2005 7:46 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] combine multiple hosts in web interface? So I have several hosts that have multiple network interfaces, but I want them to appear as one host in the web interface. Example: host1 has address 1.2.3.4 running internet-accessible http. It is set up in nagios as "host1". host1 also has address 10.11.12.13, which is running a privately-accessible network services. It is set up in nagios as "host1-private". Right now, "host1" and "host1-private" show up as two separate hosts in the nagios web interface, even though they are in reality the same machine. How do I merge them in the web interface? Or is there a way to merge them within the nagios configuration instead? -- Kurt Yoder The Richard Group v: 703.584.5803 f: 703.991.8990 ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jstork at pbco.ca Tue Aug 16 18:06:01 2005 From: jstork at pbco.ca (Johnny Stork) Date: Tue, 16 Aug 2005 09:06:01 -0700 Subject: check_mailq problem----permission denied Message-ID: <"H0000067000955be.1124208360.pbco-server2.pbco.ca*"@MHS> I am having trouble with the check_mailq script run via check_nrpe on remote RH ES4 hosts. When I run the command ./check_nrpe -H 192.168.101.13 -c check_mailq The followiong error is shown in the /var/log/maillog Aug 16 09:04:10 pbco-server3 sendmail[17359]: NOQUEUE: SYSERR(nagios): can not chdir(/var/spool/mqueue/): Permission denied I haver changed permission to all all read access to /var/spool/mqueue but it didnt seem to help. Any suggestions? ----------------------------------------------------------- Johnny Stork Information & Technology Manager Provincial Blood Coordinating Office #301 - 1190 Hornby St. Vancouver, BC (V6Z-2K5) 604-806-8840 -------------- next part -------------- An HTML attachment was scrubbed... URL: From marc at ena.com Tue Aug 16 18:16:04 2005 From: marc at ena.com (Marc Powell) Date: Tue, 16 Aug 2005 11:16:04 -0500 Subject: check_mailq problem----permission denied Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Johnny Stork > Sent: Tuesday, August 16, 2005 11:06 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] check_mailq problem----permission denied > > I am having trouble with the check_mailq script run via check_nrpe on > remote RH ES4 hosts. When I run the command > > ./check_nrpe -H 192.168.101.13 -c check_mailq > > The followiong error is shown in the /var/log/maillog > > Aug 16 09:04:10 pbco-server3 sendmail[17359]: NOQUEUE: SYSERR(nagios): can > not chdir(/var/spool/mqueue/): Permission denied > > I haver changed permission to all all read access to /var/spool/mqueue but > it didnt seem to help. Any suggestions? Is the directory read only or read + execute. Directories must be +rx to be readable. Also, do you have SELinux enabled? I believe it is enabled by default on that OS. Since it's clearly a permissions issue, that would be the next level to check. Look in /var/log/messages for avc denied messages related to /var/spool/mqueue. -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pete at stuff-done.co.uk Tue Aug 16 18:18:15 2005 From: pete at stuff-done.co.uk (Pete Dewell) Date: Tue, 16 Aug 2005 17:18:15 +0100 Subject: check_mailq problem----permission denied In-Reply-To: <"H0000067000955be.1124208360.pbco-server2.pbco.ca*"@MHS> References: <"H0000067000955be.1124208360.pbco-server2.pbco.ca*"@MHS> Message-ID: <430211C7.6040202@stuff-done.co.uk> Did you restart nrpe and sendmail after changing the permissions? Pete Dewell Johnny Stork wrote: > I am having trouble with the check_mailq script run via check_nrpe on > remote RH ES4 hosts. When I run the command > > ./check_nrpe -H 192.168.101.13 -c check_mailq > > The followiong error is shown in the /var/log/maillog > > Aug 16 09:04:10 pbco-server3 sendmail[17359]: NOQUEUE: SYSERR(nagios): > can not chdir(/var/spool/mqueue/): Permission denied > > I haver changed permission to all all read access to /var/spool/mqueue > but it didnt seem to help. Any suggestions? > > ----------------------------------------------------------- > Johnny Stork > Information & Technology Manager > > Provincial Blood Coordinating Office > #301 - 1190 Hornby St. > Vancouver, BC (V6Z-2K5) > 604-806-8840 > -- Pete Dewell | Stuff Done pete at stuff-done.co.uk ** The information contained in this message, including any attachment, is confidential and may be privileged or otherwise protected from disclosure. The information is intended only for the person or entity to which it is addressed. If you are not the intended recipient, please contact the sender and delete this message from your system. Any review, re-transmission, distribution or other use of this information by persons or entities other than the intended recipient is prohibited. * ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From naguser at bhodisoft.com Tue Aug 16 18:25:50 2005 From: naguser at bhodisoft.com (naguser at bhodisoft.com) Date: Tue, 16 Aug 2005 09:25:50 -0700 (PDT) Subject: Picking a freshness_threshold Message-ID: <10228.209.74.96.60.1124209550.squirrel@www.robinsoncomputerservice.com> Is there documentation somewhere on how to pick your freshness_threshold? I've been through docs/freshness.html, but it doesn't seem clear. I'm working with a pair of distributed nodes and we're getting intermittent problems with stale check warnings from either of the nodes every couple days. We are completing about 75% of our checks in 5 minutes, so I've bumped the freshness_threshold up to 600 and am now waiting to see if I get the stale warnings again. I see that if I don't specify a threshold, nagios will set one for you. How smart is that auto-selection, and is there a way that I can see what it sets it to, if I want to give it a try? Thanks, -G_E ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jstork at pbco.ca Tue Aug 16 18:44:48 2005 From: jstork at pbco.ca (Johnny Stork) Date: Tue, 16 Aug 2005 09:44:48 -0700 Subject: check_mailq problem----permission denied Message-ID: <"H0000067000957dd.1124210687.pbco-server2.pbco.ca*"@MHS> Ahh, missed that, forgot to set the execute flag. Seems to work now. Anyone know how to create a message that will sit in the que? -----Original Message----- From: Marc Powell [mailto:marc at ena.com] Sent: August 16, 2005 9:16 AM To: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] check_mailq problem----permission denied > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Johnny Stork > Sent: Tuesday, August 16, 2005 11:06 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] check_mailq problem----permission denied > > I am having trouble with the check_mailq script run via check_nrpe on > remote RH ES4 hosts. When I run the command > > ./check_nrpe -H 192.168.101.13 -c check_mailq > > The followiong error is shown in the /var/log/maillog > > Aug 16 09:04:10 pbco-server3 sendmail[17359]: NOQUEUE: SYSERR(nagios): can > not chdir(/var/spool/mqueue/): Permission denied > > I haver changed permission to all all read access to /var/spool/mqueue but > it didnt seem to help. Any suggestions? Is the directory read only or read + execute. Directories must be +rx to be readable. Also, do you have SELinux enabled? I believe it is enabled by default on that OS. Since it's clearly a permissions issue, that would be the next level to check. Look in /var/log/messages for avc denied messages related to /var/spool/mqueue. -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Tue Aug 16 18:50:47 2005 From: marc at ena.com (Marc Powell) Date: Tue, 16 Aug 2005 11:50:47 -0500 Subject: Picking a freshness_threshold Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of naguser at bhodisoft.com > Sent: Tuesday, August 16, 2005 11:26 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Picking a freshness_threshold > > Is there documentation somewhere on how to pick your freshness_threshold? > I've been through docs/freshness.html, but it doesn't seem clear. It's not clear because it's subjective. What do _you_ consider an unacceptable time interval to not receive check results in your environment, presuming that everything is working optimally? [snip] > I see that if I don't specify a threshold, nagios will set one for you. > How smart is that auto-selection, and is there a way that I can see what > it sets it to, if I want to give it a try? It uses the normal_check_interval or the retry_check_interval depending on the state of the host. http://nagios.sourceforge.net/docs/1_0/freshness.html "If you do not specify a value for the freshness_threshold option (or you set it to zero), Nagios will automatically calculate a "freshness" threshold to use by looking at either the normal_check_interval or retry_check_interval options (depending on what type of state the service is currently in)." -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Chester.Hosey at gianteagle.com Tue Aug 16 18:50:40 2005 From: Chester.Hosey at gianteagle.com (Chester R. Hosey) Date: Tue, 16 Aug 2005 12:50:40 -0400 Subject: check_mailq problem----permission denied In-Reply-To: <"H0000067000957dd.1124210687.pbco-server2.pbco.ca*"@MHS> References: <"H0000067000957dd.1124210687.pbco-server2.pbco.ca*"@MHS> Message-ID: <10027.4384757087$1124211197@news.gmane.org> On Tue, 2005-08-16 at 09:44 -0700, Johnny Stork wrote: > Ahh, missed that, forgot to set the execute flag. Seems to work now. Anyone know how to create a message that will sit in the que? Kill sendmail and do: echo test | mail -s 'stuff to queue' address at remotehost.com Incoming messages will be queued at the remote end, and locally- originating messages should sit in the local queue until you restart the mailer daemon. Chet ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bhuffman at incyte.com Tue Aug 16 19:45:31 2005 From: bhuffman at incyte.com (Brian C. Huffman) Date: Tue, 16 Aug 2005 13:45:31 -0400 Subject: Passive Service Checks in Nagios 2.0 In-Reply-To: References: Message-ID: <1124214331.6778.6.camel@zaphod.graze.net> All, I'm trying to setup a passive service check - specifically, I have syslog-ng / sec combination to monitor system log files and then to write into the nagios cmd file. In Nagios 1.2, I didn't need to specify a check_command (since there isn't one), and even looking at the 2.0 documentation, it doesn't mention a check command: In Nagios: * Configure a service called Port Scans and associate it with the host that PortSentry is running on. * Set the max_check_attempts option in the service definition to 1. This will tell Nagios to immediate force the service into a hard state when a non-OK state is reported. * Either set the active_checks_enabled option to 0 or set the check_time option in the service definition to a timeperiod that contains no valid time ranges. Doing either of these will prevent Nagios from ever actively checking the service. Even though the service check will get scheduled, it will never actually be checked. So....why then does nagios -v ./nagios.cfg give me this error: Error: Service description, host name, or check command is NULL Error: Could not register service (config file '/usr/local/nagios2/etc/services.cfg', starting on line 16) The description and host name do exist, so I can only assume that it wants a check command... This doesn't seem to make sense to me for a passive service. What's the work around? Thanks, Brian On Fri, 2005-08-12 at 14:26 -0400, chris hammond wrote: > Ok, with that change it appears to be trying to work but the page now > comes up like this. > > "ApplicationCode", "operator" => "=", "value" => "NAGIOS"); $filter[] = > array("key" => "SeverityID", "operator" => "=", "value" => "8"); > $tempEvents = $eventQuery->getEventsByFilter($filter, "ReportDate", > "DESC", 5); // We don't have any dates we need, all we want is the > latest 20 if(count($tempEvents)) { foreach($tempEvents as $event) { > $severityInfo = $eventQuery->getSeverity($event['SeverityID']); > $tempEventsSeverityNames[] = $severityInfo[0]['Name']; } } $hostQuery = > new CollageHostQuery($collageDB); $serviceQuery = new > CollageServiceQuery($collageDB); // Let's first parse any actions and > update if(count($_SESSION['netView']['hostgroups'])) { > foreach($_SESSION['netView']['hostgroups'] as &$container) { > $container->parseAction(); $container->update($collageDB); } } > $leftHeaderLinks[] = array('url' => $_SERVER['PHP_SELF'], 'text' => > 'Manual Reload'); $rightHeaderLinks[] = array('url' => > $path_config['doc_root'] . 'prefs.php', 'text' => 'Preferences'); > $rightHeaderLinks[] = array('url' => $path_config['doc_root'] . > 'index.php?netrefresh=1', 'text' => 'Reload Application'); > print_header("NetView"); ?> > Statistics > Number of HostGroups: > Number of Hosts: > Number of Services: > > getHostByDeviceID($tempEvents[$counter]['DeviceID']); > if(isset($_SESSION['hosts'][$tempHostData['HostName']])) > $tempServiceData = > $serviceQuery->getServiceByStatusID($tempEvents[$counter]['ServiceStatusID']); > if(!isset($_SESSION['hosts'][$tempHostData['HostName']]) || > (isset($tempServiceData) && > !isset($_SESSION['services'][$tempHostData['HostName']][$tempServiceData['ServiceDescription']]))) > { // $_SESSION['outofSync'] = true; continue; } if($counter % 2) { > $tdClass= "tableFill03"; } else { $tdClass = "tableFill02"; } ?> > Last 5 Critical Events > There Are No Critical Events To Display > Report Date Host Service Severity Application Name > Message > > > > render(); } ?> > Host Groups > > > >>>Taylor Dondich 08/12/05 2:18 pm >>> > I've never seen the AddHandler php5-script .php directive when > configuring php. > > I use: > > AddType application/x-httpd-php .php > > On 8/12/05, chris hammond wrote: > >I believe that is set correctly. Here is my php.conf; > > > ># > ># PHP is an HTML-embedded scripting language which attempts to make it > ># easy for developers to write dynamically generated webpages. > ># > > > >LoadModule php5_module modules/libphp5.so > > > ># > ># Cause the PHP interpreter to handle files with a .php extension. > ># > >AddHandler php5-script .php > >AddType text/html .php > > > ># > ># Add index.php to the list of files that will be served as directory > ># indexes. > ># > >DirectoryIndex index.php > > > ># > ># Uncomment the following line to allow PHP to pretty-print .phps > ># files as PHP source code: > ># > >#AddType application/x-httpd-php-source .phps > > > > > > > >>>>John Mark Walker 08/12/05 1:50 pm >>> > >On Friday 12 August 2005 10:36 am, chris hammond wrote: > >>I am trying to setup a sever with foundation and sv but when I try to > >>bring up sv, all I see is the php code. I have checked everything but > > >>can't seem find out why it wont show properly. php5_module is loading > > >>when apache starts and I have restarted apache after changes. The > >>only error showing up in error_log is that there is no favicon.ico > >>in /var/www/html. Any ideas where else I should look? > >> > > > >The first thing I would check is to make sure that you have PHP enabled > > >for the right file type. Apache checks the file extension to determine > >how to parse it. I've made the mistake all too often of having PHP code > > >inside a file with a .html extension without defining PHP for that > >extension. Are you running Apache 2.x or 1.3? Each has a different way > >of defining interpreters for file extensions. > > > >-JM > > > > > >------------------------------------------------------- > >SF.Net email is Sponsored by the Better Software Conference & EXPO > >September 19-22, 2005 * San Francisco, CA * Development Lifecycle > Practices > >Agile & Plan-Driven Development * Managing Projects & Teams * Testing & > QA > >Security * Process Improvement & Measurement * > http://www.sqe.com/bsce5sf > > > >Nagios-users mailing list > >Nagios-users at lists.sourceforge.net > >https://lists.sourceforge.net/lists/listinfo/nagios-users > >::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > >::: Messages without supporting info will risk being sent to /dev/null > > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From davea at support.kcm.org Tue Aug 16 20:33:45 2005 From: davea at support.kcm.org (Dave Augustus) Date: Tue, 16 Aug 2005 13:33:45 -0500 Subject: check_dns plugin failures In-Reply-To: References: Message-ID: <1124217225.18682.9.camel@kcm40202> Hello Marc, OK, I mistakenly entered the wrong command in the email. The correct one is as follows: ./check_dns -H mail.kcm.org -s 67.18.139.41 -a 67.18.139.104 When I run this from the CLI, it fails ALWAYS. However, if I run it like this: strace -f ./check_dns -H mail.kcm.org -s 67.18.139.41 -a 67.18.139.104 I get valid responses embedded in the strace output like this: mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7df7000 write(1, "DNS OK: 0.257 seconds response t"..., 92DNS OK: 0.257 seconds response time kcm.org returns 67.18.139.103|time=0.256953s;;;0.000000 It appears that check_dns needs something in its environment that it is not getting.( That is just a guess on my part ) Any ideas? Dave On Mon, 2005-08-08 at 09:49 -0500, Marc Powell wrote: > > Sent: Friday, August 05, 2005 5:59 PM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] check_dns plugin failures > > > > Hello fellow listers! > > > > I am having difficulty getting valid responses from the check_dns > > plugin. Using both the 1.3 and the new 1.4 series plugins, I get a > valid > > response one out of every 10 times, making the whole reason for > > monitoring useless. > > > > Any ideas? > > > > Specs: > > nagios-plugins-1.4-1 on CentOS 4 (RHEL 4) > > checking a BIND 9 server on CentOS 4 (RHEL 4) > > > > > > --check command is : > > ./check_dns -H mail.kcm.org -s 67.18.139.41 -s 67.18.139.104 > > If I missed a response to this already I apologize. I think you mean to > be using -- > > ./check_dns -H mail.kcm.org -s 67.18.139.41 -a 67.18.139.104 > > Only 1 -s parameter is honored. > > -- > Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Tue Aug 16 21:17:31 2005 From: ae at op5.se (Andreas Ericsson) Date: Tue, 16 Aug 2005 21:17:31 +0200 Subject: [SPAM (HDCHCK)] - RE: Nagios 'could not connect' to MySQL database - Email found in subject In-Reply-To: <9BC12CEA9D0D27409DB7599F44FDD357422234@vdlsv00029.vanderlet.nl> References: <9BC12CEA9D0D27409DB7599F44FDD357422234@vdlsv00029.vanderlet.nl> Message-ID: <43023BCB.5020107@op5.se> Richard.Luys at vanderlet.nl wrote: > > > >>-----Original Message----- >>From: Dan Hopkins [mailto:dan.hopkins at uk.easynet.net] >>Sent: Tuesday, August 16, 2005 4:23 PM >>To: Richard Luys; nagios-users at lists.sourceforge.net >>Cc: werner.flamme at ufz.de >>Subject: [SPAM (HDCHCK)] - RE: [Nagios-users] Nagios 'could >>not connect' to MySQL database - Email found in subject >> >>(Apologies for the blank reply...) > > That's ok. I only scanned it twice for your comments ;-) > > >>Sounds like you're using a mysql4.1 db with mysql <4.1 client >>libs. If that's the case, either upgrade the client end to >>4.1, or set password = old_password('blah') on the server. > > That's indeed what I understood from reading the Mysql-site information > I found. Strange thing is that AFAIK the Mysql-server and -client were > installed from the same package?!?!?!? > Nagios may be statically linked to older libraries, or you may have old dynamic libraries still installed. You can run ldd nagios to see which libraries it's linked against, and then rpm -qf (if any) and see which package it belongs to. If libmysqlclient doesn't show up, you can try nm nagios | grep -i mysql If you get any output at all from that you've got it statically linked in, and the version can be any ranomd thing. > Also weird is the fact that when I use a command-line like: mysql > --user=nagios --password=??? --host=localhost --database=nagios, the > connection is made, and I have all the necessary privileges for Nagios > to function. > > So, I do not have it working yet, but I found something concrete to work > with :-) > > As I said in my post to Werner, I will post my findings and how I got > things working. > >>HTH > > Thanks for your suggestions! > >>Dan >> >> >>>-----Original Message----- >>>From: nagios-users-admin at lists.sourceforge.net >>>[mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of >>>Richard.Luys at vanderlet.nl >>>Sent: 16 August 2005 15:18 >>>To: nagios-users at lists.sourceforge.net >>>Cc: werner.flamme at ufz.de >>>Subject: RE: [Nagios-users] Nagios 'could not connect' to MySQL >>>database >>> >>> >>> >>>Hello Again Werner! >>> >>> >>>>-----Original Message----- >>>>From: nagios-users-admin at lists.sourceforge.net >>>>[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of >>>>Werner Flamme >>>>Sent: Tuesday, August 16, 2005 4:03 PM >>>>To: nagios-users at lists.sourceforge.net >>>>Subject: Re: [Nagios-users] Nagios 'could not connect' to MySQL >>>>database >>>> >>>>Richard.Luys at vanderlet.nl schrieb am 16.08.2005 14:24: >>>> >>>>>Werner, >>>>> >>>>> >>>>> >>>>> >>>>>>---snip--- >>>>>> >>>>>> >>>>>>>When I check the nagios.log I get the following errors: >>>>>>>[1123752497] Finished daemonizing... (New PID=26747) >> >>[1123752497] >> >>>>>>>Error: Could not connect to MySQL database 'nagios' on host >>>>>>>'localhost' using username 'nagios' and password >>>> >>>>'removed'. Status >>>> >>>>>>>data will not be saved! >>>> >>>>Hmmm... when I look at my self-compiled nagios 1.2 on >> >>SLES 8, I see >> >>>>that there are 2 files you have to maintain for mysql. >>>>Did you look at cgi.cfg? >>> >>>My bad. I typed nagios.cfg when I meant cgi.cfg. The other is the >>>resource.cfg. It's strange indeed that you have to put a >> >>lot of this >> >>>identical information in two different config-files. But >> >>these files >> >>>are both correctly configured. >>> >>> >>>>If yes - I don't know what may be the cause then. I >> >>remember I made >> >>>>the entries in one of those and forgot the other. And I had quite >>>>similar errors... >>> >>>I think I do. Here's what I found: >>> >>>Googling on the internet reminded me of the 'check_nagios_db.pl' >>>script; which is used for checking if Nagios is running >> >>when you use a >> >>>database for the logging etc. I ran the script, and got the same >>>error. So I focussed a bit on the Perl::DBI driver, and >> >>came across a >> >>>very basic script to test if it works correctly. I ran that script, >>>and received an error like 'Client does not support authentication >>>protocol requested by server...'. That was more descriptive than >>>'could not connect...'! So I took the part that is responsible for >>>showing this error( $DBI::errstr), and put it in the >> >>error-comment of >> >>>the check_nagios_db.pl script. And voila! I got the same message >>>there! >>> >>>In other words, it looks like there is an incompatibility >> >>issue in how >> >>>Perl::DBI and Nagios try to authenticate with the database. >> >>I checked >> >>>the MySQL-site and found this very same error in the documentation >>>pages ( http://dev.mysql.com/doc/mysql/en/old-client.html ). I will >>>look further into it, and post my findings; maybe it helps somebody >>>with the same problem. >>> >>>I learned a very important lesson here: When you write a script, >>>develop a program, or whatever, make sure you give sufficient >>>feedback! When the errors in the logging stated why they 'could not >>>connect' instead of just that message, the problem was >> >>probably fixed >> >>>a week ago! I had to stumble across a perl-statement for >> >>showing the >> >>>real error, to find out what is really the problem... >>> >>> >>>>HTH now ;-) >>>>Werner >>>> >>>>-- >>>>Werner Flamme, Abt. WKDV >>>>UFZ Umweltforschungszentrum Leipzig-Halle GmbH, Permoserstr. >>>>15, 04318 Leipzig - http://www.ufz.de >>>>eMail: werner.flamme at ufz.de, Tel.: (0341) 235-2500 >>>> >>>> >>>> >>>> >>>> >>>> >>>>------------------------------------------------------- >>>>SF.Net email is Sponsored by the Better Software >> >>Conference & EXPO >> >>>>September 19-22, 2005 * San Francisco, CA * Development Lifecycle >>>>Practices Agile & Plan-Driven Development * Managing Projects & >>>>Teams * Testing & QA Security * Process Improvement & >> >>Measurement * >> >>>>http://www.sqe.com/bsce5sf >>>>_______________________________________________ >>>>Nagios-users mailing list >>>>Nagios-users at lists.sourceforge.net >>>>https://lists.sourceforge.net/lists/listinfo/nagios-users >>>>::: Please include Nagios version, plugin version (-v) >> >>and OS when >> >>>>reporting any issue. >>>>::: Messages without supporting info will risk being sent >>> >>>to /dev/null >>> >>>This e-mail message and its attachments are subject to the >> >>disclaimer >> >>>published at the following website of VANDERLET: >>>http://www.vanderlet.nl/disclaimer >>> >>> >>> >>>------------------------------------------------------- >>>SF.Net email is Sponsored by the Better Software Conference & EXPO >>>September 19-22, 2005 * San Francisco, CA * Development Lifecycle >>>Practices Agile & Plan-Driven Development * Managing >> >>Projects & Teams >> >>>* Testing & QA Security * Process Improvement & Measurement * >> >>http://www.sqe.com/bsce5sf >>_______________________________________________ >>Nagios-users mailing list >>Nagios-users at lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/nagios-users >>::: Please include Nagios version, plugin version (-v) and OS >>when reporting any issue. >>::: Messages without supporting info will risk being sent to /dev/null >> > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Paul_Lembo at vrtx.com Tue Aug 16 22:02:15 2005 From: Paul_Lembo at vrtx.com (Paul_Lembo at vrtx.com) Date: Tue, 16 Aug 2005 16:02:15 -0400 Subject: Paul Lembo is out of the U.S. office. Message-ID: I will be out of the office starting 08/16/2005 and will not return until 08/24/2005. I will respond to your message when I return. Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian.murphy at gmx.net Tue Aug 16 22:15:21 2005 From: brian.murphy at gmx.net (Brian Murphy) Date: Tue, 16 Aug 2005 20:15:21 +0000 (UTC) Subject: Multiple Nagios proccesses running. References: <200507252109.j6PL9vjU023926@mail.asc.edu> <20050725221507.30266.qmail@mullet.softflare.net> <1122373846.30418.65.camel@localhost> <42E74E29.5090005@op5.se> <1122471906.15025.254.camel@localhost> <42E7BA0D.4020804@op5.se> <1122484346.15025.267.camel@localhost> <42E7DCBD.9090904@op5.se> <1122542715.29724.8.camel@localhost> <42E9275F.2030202@op5.se> <1122628003.13754.56.camel@localhost> <1122639398.13754.58.camel@localhost> <1123752803.20276.0.camel@localhost> <42FB1EB5.9010808@op5.se> <1123756911.20276.42.camel@localhost> <42FB519E.6020800@op5.se> <1123773386.20276.129.camel@localhost> <430040BF.3@op5.se> <43019730.1040705@op5.se> Message-ID: Andreas Ericsson op5.se> writes: > Most definitely not. There's room for one method of processing checks, > and one only (each method is quite complex and requires a fair amount of > code). When (or if) the change is made, the old system of processing > checks will be dropped entirely. > > > Do I need to find a way to stop the results coming through in clumps? > > > > Not necessarily, no. You can probably get fairly good results by > decreasing the service_reaper_frequency in nagios.cfg. Decrease it in > steps of 2 until processes stop queuing up (that's when Nagios empties > the pipe often enough for checks to get through). > > If it doesn't work, you'll need to split your nagios setup in smaller > chunks or pay me a fat load of money to implement the thread-based or > multiplexing checking model. Either way should work, really. ;) > Currently trying 3 as the service reaper frequency, will try 1 on both the collectors and the central node and see how that goes. Are there other config file settings that I should be changing to optimise the central servers processing of checks? ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Tue Aug 16 23:09:58 2005 From: ae at op5.se (Andreas Ericsson) Date: Tue, 16 Aug 2005 23:09:58 +0200 Subject: Multiple Nagios proccesses running. In-Reply-To: References: <200507252109.j6PL9vjU023926@mail.asc.edu> <20050725221507.30266.qmail@mullet.softflare.net> <1122373846.30418.65.camel@localhost> <42E74E29.5090005@op5.se> <1122471906.15025.254.camel@localhost> <42E7BA0D.4020804@op5.se> <1122484346.15025.267.camel@localhost> <42E7DCBD.9090904@op5.se> <1122542715.29724.8.camel@localhost> <42E9275F.2030202@op5.se> <1122628003.13754.56.camel@localhost> <1122639398.13754.58.camel@localhost> <1123752803.20276.0.camel@localhost> <42FB1EB5.9010808@op5.se> <1123756911.20276.42.camel@localhost> <42FB519E.6020800@op5.se> <1123773386.20276.129.camel@localhost> <430040BF.3@op5.se> <43019730.1040705@op5.se> Message-ID: <43025626.6050701@op5.se> Brian Murphy wrote: > Andreas Ericsson op5.se> writes: > > > >>Most definitely not. There's room for one method of processing checks, >>and one only (each method is quite complex and requires a fair amount of >>code). When (or if) the change is made, the old system of processing >>checks will be dropped entirely. >> >> >>>Do I need to find a way to stop the results coming through in clumps? >>> >> >>Not necessarily, no. You can probably get fairly good results by >>decreasing the service_reaper_frequency in nagios.cfg. Decrease it in >>steps of 2 until processes stop queuing up (that's when Nagios empties >>the pipe often enough for checks to get through). >> >>If it doesn't work, you'll need to split your nagios setup in smaller >>chunks or pay me a fat load of money to implement the thread-based or >>multiplexing checking model. Either way should work, really. ;) >> > > > > Currently trying 3 as the service reaper frequency, will try 1 on both the > collectors and the central node and see how that goes. > 1 won't work (minimum scheduler interval is 1 second, and if it only checks for completed service checks it'll never have time to actually *do* any service checks), so Nagios won't allow it. > Are there other config file settings that I should be changing to optimise the > central servers processing of checks? > Not sure, really. Grok the docs for the main config file. If you're in to C you could try removing the micro-sleep inside the reaper function (can't remember its name now) and replace them with sched_yield(), which basically has the same effect, but only if there are processes (or threads) with equal or greater priority that are pending. If you're running on a SMP box it'll also do funny (good) things to the task scheduler inside the kernel. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Tue Aug 16 23:42:51 2005 From: marc at ena.com (Marc Powell) Date: Tue, 16 Aug 2005 16:42:51 -0500 Subject: Passive Service Checks in Nagios 2.0 Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Brian C. Huffman > Sent: Tuesday, August 16, 2005 12:46 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Passive Service Checks in Nagios 2.0 > > All, > > I'm trying to setup a passive service check - specifically, I have > syslog-ng / sec combination to monitor system log files and then to > write into the nagios cmd file. In Nagios 1.2, I didn't need to specify > a check_command (since there isn't one), and even looking at the 2.0 Service check_commands have always been required. Host check_commands are optional. http://nagios.sourceforge.net/docs/1_0/xodtemplate.html#service bash-2.05a$ bin/nagios -v etc/nagios.cfg Nagios 1.1 Copyright (c) 1999-2003 Ethan Galstad (nagios at nagios.org) Last Modified: 06-02-2003 License: GPL Reading configuration data... Error: Service description, host name, or check command is NULL Error: Could not register service (config file '/usr/local/nagios-db/etc/ena_config/davidson.cfg', line 438) > documentation, it doesn't mention a check command: http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#service check_command is red, meaning it's required. > > The description and host name do exist, so I can only assume that it > wants a check command... This doesn't seem to make sense to me for a > passive service. What's the work around? There are several features of nagios that require the check_command to be present (freshness checking, scheduling immediate checks, etc). You may not use those but the command is still required. Use check_dummy as filler. -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Tue Aug 16 23:45:15 2005 From: marc at ena.com (Marc Powell) Date: Tue, 16 Aug 2005 16:45:15 -0500 Subject: check_dns plugin failures Message-ID: It depends on nslookup. Can you run nslookup as the nagios user? -- Marc > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Dave Augustus > Sent: Tuesday, August 16, 2005 1:34 PM > To: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] check_dns plugin failures > > Hello Marc, > > OK, I mistakenly entered the wrong command in the email. The correct one > is as follows: > > ./check_dns -H mail.kcm.org -s 67.18.139.41 -a 67.18.139.104 > > > When I run this from the CLI, it fails ALWAYS. However, if I run it like > this: > > strace -f ./check_dns -H mail.kcm.org -s 67.18.139.41 -a 67.18.139.104 > > I get valid responses embedded in the strace output like this: > > mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, > 0) = 0xb7df7000 > write(1, "DNS OK: 0.257 seconds response t"..., 92DNS OK: 0.257 seconds > response time kcm.org returns 67.18.139.103|time=0.256953s;;;0.000000 > > It appears that check_dns needs something in its environment that it is > not getting.( That is just a guess on my part ) > > Any ideas? > > Dave > > > On Mon, 2005-08-08 at 09:49 -0500, Marc Powell wrote: > > > Sent: Friday, August 05, 2005 5:59 PM > > > To: nagios-users at lists.sourceforge.net > > > Subject: [Nagios-users] check_dns plugin failures > > > > > > Hello fellow listers! > > > > > > I am having difficulty getting valid responses from the check_dns > > > plugin. Using both the 1.3 and the new 1.4 series plugins, I get a > > valid > > > response one out of every 10 times, making the whole reason for > > > monitoring useless. > > > > > > Any ideas? > > > > > > Specs: > > > nagios-plugins-1.4-1 on CentOS 4 (RHEL 4) > > > checking a BIND 9 server on CentOS 4 (RHEL 4) > > > > > > > > > --check command is : > > > ./check_dns -H mail.kcm.org -s 67.18.139.41 -s 67.18.139.104 > > > > If I missed a response to this already I apologize. I think you mean to > > be using -- > > > > ./check_dns -H mail.kcm.org -s 67.18.139.41 -a 67.18.139.104 > > > > Only 1 -s parameter is honored. > > > > -- > > Marc > > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From wesley4248-/E1597aS9LRv1O+Z8WTAqQ at public.gmane.org Wed Aug 17 02:46:27 2005 From: wesley4248-/E1597aS9LRv1O+Z8WTAqQ at public.gmane.org (wen wu) Date: Wed, 17 Aug 2005 08:46:27 +0800 (CST) Subject: Nagios 3.0,natively windows codes,support mysql,support agentless monitor , new web interface,more,Greatly Message-ID: <20050817004627.66136.qmail@web15903.mail.cnb.yahoo.com> 1 /System architecture has been greatly redesigned and optimized. It is devide into two parts ,one is sakershceduler ,the other is sakerexecutor.Sakerschduler only schedules events in parallel; Sakerexecutor executes really host checkes,service checks,handler events etc.Sakerschduler and Sakerexecutor are both multithreading. 2 /Sakerschduler supports mysql database,so performance is promoted greatly. 3 /Sakerexecutor adopt the cluster structure ,you can deploy many Sakerexecutor on different hosts.all of the Sakerexecutors can work as a big one. so the point that the system can be monitored does not have upper limit. 4 /Built-in the agentless monitor for windows and unix host in the new version.the flexibility is improved greatly.In the new edition , five kinds of important function module have been put in Sake:WMI Check module,SSH Check module,Win32_Push_Any module , Unix_Push_Any module ,External command module. WMI Check module, can utilize WMI technology to check the CPU load,memory ,file update time, hard disk, process state, service state, Eventlog ,etc of the remote host. The remote host does not need to install the agent end .The module supports WinNT , WinXP , Win2000, Win2003. SSH Check module, can utilize Rlogin , Rexec , SSh ,etc. check romote Unix host , including systematic load , Swap, hard disk, process , login users such information as one ,etc.. The romote Unix host does not need to install the agent end . Support Aix, Hp _ ux,Sco unix,Linux, such 17 kinds of Unix/linux operating systems etc.. Win32_Push_Any module , this module can copy the checking script of any win32s on remote win32 host and run it. you can copy any scripts to the remote host , the remote host does not need to install the agent end . Support WinNT , WinXP , Win2000, Win2003. Unix_Push_Any module , this module can copy the checking script of any unix on remote unix host and run it. you can copy any scripts to the remote host , the remote host does not need to install the agent end . Support all Unix/linux systems. External command module,can execute any checking scripts, compatible Saker V1. 2 and all former checking module. 5 /Saker is ported to windows system in an all-round way, Saker v3. 0 codes are all natively windows codes. Saker can operate it in Win2000 , Win2003 system. 6 /Web interface is redesigned,can finish all operation in web interface ,the usability and humanization are improved greatly.Redesigning the function of the network status map,you can define more Beautiful network maps . Please visit http://www.sakersoft.org/news/saker3en.htm --------------------------------- DO YOU YAHOO!? ???????????2G?????pop3?????????? -------------- next part -------------- An HTML attachment was scrubbed... URL: From thawn at yahoo.com Wed Aug 17 06:47:08 2005 From: thawn at yahoo.com (mike feldman) Date: Tue, 16 Aug 2005 21:47:08 -0700 (PDT) Subject: Nagios 2.0b1 serviceextinfo notes_url ignored In-Reply-To: <20050817031341.B980F88D77@sc8-sf-spam1.sourceforge.net> References: <20050817031341.B980F88D77@sc8-sf-spam1.sourceforge.net> Message-ID: <20050817044708.26156.qmail@web50706.mail.yahoo.com> I figured I am missing something small here... I am using nagios 2.0b4 on freebsd, I have nagiosgraph almost working, (I can reach it directly by typing the url in my browser), or by though the service link icon, and then the extra notes icon. I believe it should go though the service link directly. I tried to figure out https://sourceforge.net/mailarchive/message.php?msg_id=11200898 and it seems like it is along the correct track for me, but... when I added: printf("",temp_serviceextinfo->notes_url); and removed printf("host_name)); printf("&service=%s">",url_encode(temp_service->description)); The page links in the correct place, but it does not processing the macros... the link shows $HOSTNAME$ for the hostname, and $SERVICEDESC$ for the service (as in my seerviceextinfo.cfg file). It does not change $HOSTNAME$ to the name of the machine. when I instead use " instead of ' (inserting) printf("",temp_serviceextinfo->notes_url); I get the following error with the make all make all gcc -g -O2 -I/usr/local/include -DHAVE_CONFIG_H -DNSCGI -L/usr/local/lib -o status.cgi status.c getcgi.o cgiutils.o cgiauth.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o xcomments-cgi.o status.c: In function `show_service_detail': status.c:1667: error: `s' undeclared (first use in this function) status.c:1667: error: (Each undeclared identifier is reported only once status.c:1667: error: for each function it appears in.) status.c:1667: error: syntax error before string constant *** Error code 1 Stop in /usr/local/nagios/nagios-2.0b4/cgi. any idea would be great! thanks so much. -mike __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jstevensog at gmail.com Wed Aug 17 07:05:24 2005 From: jstevensog at gmail.com (John Stevens) Date: Wed, 17 Aug 2005 15:05:24 +1000 Subject: NSCA and Performance data Message-ID: Hi All, Something I have not gleaned from the docs, and was wondering if you can help me out with. Apologies if it is an obvious one. We are currently using a Performance data collection system at my new employer that stores performance data local to the each host, transfers that data to a central host and then trends it there. I am currently assisting with a project to unify several monitoring systems into a single one (Nagios). I have used add-ons in the past to process adn display performance data in Nagios, but if teh Nagios host goes down, or the network is interrupted between a client and Nagios hosts, performance data is lost. Now, just for a minute, ignore the obvious "well, if the nagios host or network is down you have more important things to worry about than performance data" argument, and assume that someone thinks it is vitally important to continue that functionality that they have now. Particularly as they can often live for several days without nework connectivity between areas of the network, for various reasons. Can a host running nsca store all the status check results and forward them to the nagios server when it is available again, and does that mean that the performance data would then be processed in some sort of sequential way? Would you then consider it appropriate to use nsca on all client machines for the purpose of gathering local host performance data, and utilise active external checks on the Nagios server to keep an eye on it? Or would you utilise some other method (like stitching the current mechanism into nagios)? Any informed/experienced thoughts would be appreciated. Insults and flames duly trashed and ignored ;-) Regards ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Wed Aug 17 08:53:17 2005 From: ae at op5.se (Andreas Ericsson) Date: Wed, 17 Aug 2005 08:53:17 +0200 Subject: Nagios 3.0,natively windows codes,support mysql,support agentless monitor , new web interface,more,Greatly In-Reply-To: <20050817004627.66136.qmail@web15903.mail.cnb.yahoo.com> References: <20050817004627.66136.qmail@web15903.mail.cnb.yahoo.com> Message-ID: <4302DEDD.9010806@op5.se> Sorry for cross-posting. I want to point out that this distribution form of Nagios is illegal. Including code from a GPL'd program is illegal unless you supply the source-code through the same means as the binary version. In some countries, downloading and/or using a program distributed in violation with the GPL is illegal. In others it's not. Distributing anything in violation of its copyright license is illegal everywhere. Please note that selling their program (a modified GPL program) is indeed within their rights. The lawbreaking part comes when they fail to make the source-code available through the same channels as the binary distribution (in this case as a http download). It should also be noted that it's illegal for Wen Wu and Sakersoft to plug their program as "Nagios 3.0", since Nagios is a registered trademark of Ethan Galstad. As for the GUI, I can't say if they've used GPL'd code or not. Judging from the overall ethics of the company, I would like to urge all developers of GPL'd Nagios-GUI's to take a good look at the snapshots and see if any of seems to be generated by code (stylesheets) they wrote. wen wu wrote: > 1 /System architecture has been greatly redesigned and optimized. It > is devide into two parts ,one is sakershceduler ,the other is > sakerexecutor.Sakerschduler only schedules events in parallel; > Sakerexecutor executes really host checkes,service checks,handler > events etc.Sakerschduler and Sakerexecutor are both multithreading. > > 2 /Sakerschduler supports mysql database,so performance is promoted > greatly. > > 3 /Sakerexecutor adopt the cluster structure ,you can deploy many > Sakerexecutor on different hosts.all of the Sakerexecutors can work > as a big one. so the point that the system can be monitored does not > have upper limit. > > > 4 /Built-in the agentless monitor for windows and unix host in the > new version.the flexibility is improved greatly.In the new edition , > five kinds of important function module have been put in Sake:WMI > Check module,SSH Check module,Win32_Push_Any module , Unix_Push_Any > module ,External command module. > > > WMI Check module, can utilize WMI technology to check the CPU > load,memory ,file update time, hard disk, process state, service > state, Eventlog ,etc of the remote host. The remote host does not > need to install the agent end .The module supports WinNT , WinXP , > Win2000, Win2003. > > SSH Check module, can utilize Rlogin , Rexec , SSh ,etc. check romote > Unix host , including systematic load , Swap, hard disk, process , > login users such information as one ,etc.. The romote Unix host does > not need to install the agent end . Support Aix, Hp _ ux,Sco > unix,Linux, such 17 kinds of Unix/linux operating systems etc.. > > Win32_Push_Any module , this module can copy the checking script of > any win32s on remote win32 host and run it. you can copy any scripts > to the remote host , the remote host does not need to install the > agent end . Support WinNT , WinXP , Win2000, Win2003. > > > Unix_Push_Any module , this module can copy the checking script of > any unix on remote unix host and run it. you can copy any scripts to > the remote host , the remote host does not need to install the agent > end . Support all Unix/linux systems. > > > External command module,can execute any checking scripts, compatible > Saker V1. 2 and all former checking module. > > > 5 /Saker is ported to windows system in an all-round way, Saker v3. 0 > codes are all natively windows codes. Saker can operate it in Win2000 > , Win2003 system. > > > 6 /Web interface is redesigned,can finish all operation in web > interface ,the usability and humanization are improved > greatly.Redesigning the function of the network status map,you can > define more Beautiful network maps . > > Please visit http://www.sakersoft.org/news/saker3en.htm > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dravail at cvf.fr Wed Aug 17 10:47:34 2005 From: dravail at cvf.fr (Ravail David) Date: Wed, 17 Aug 2005 10:47:34 +0200 Subject: Nagios 3.0,natively windows codes,support mysql,support agentless monitor , new web interface,more,Greatly In-Reply-To: <4302DEDD.9010806@op5.se> References: <20050817004627.66136.qmail@web15903.mail.cnb.yahoo.com> <4302DEDD.9010806@op5.se> Message-ID: <4302F9A6.8080905@cvf.fr> Moreover your GUI strangely looks like an another opensource project : Oreon ... Andreas Ericsson a ?crit : > Sorry for cross-posting. > > I want to point out that this distribution form of Nagios is illegal. > Including code from a GPL'd program is illegal unless you supply the > source-code through the same means as the binary version. > > In some countries, downloading and/or using a program distributed in > violation with the GPL is illegal. In others it's not. Distributing > anything in violation of its copyright license is illegal everywhere. > > Please note that selling their program (a modified GPL program) is > indeed within their rights. The lawbreaking part comes when they fail > to make the source-code available through the same channels as the > binary distribution (in this case as a http download). > > It should also be noted that it's illegal for Wen Wu and Sakersoft to > plug their program as "Nagios 3.0", since Nagios is a registered > trademark of Ethan Galstad. > > As for the GUI, I can't say if they've used GPL'd code or not. Judging > from the overall ethics of the company, I would like to urge all > developers of GPL'd Nagios-GUI's to take a good look at the snapshots > and see if any of seems to be generated by code (stylesheets) they wrote. > > wen wu wrote: > >> 1 /System architecture has been greatly redesigned and optimized. It >> is devide into two parts ,one is sakershceduler ,the other is >> sakerexecutor.Sakerschduler only schedules events in parallel; >> Sakerexecutor executes really host checkes,service checks,handler >> events etc.Sakerschduler and Sakerexecutor are both multithreading. >> >> 2 /Sakerschduler supports mysql database,so performance is promoted >> greatly. >> >> 3 /Sakerexecutor adopt the cluster structure ,you can deploy many >> Sakerexecutor on different hosts.all of the Sakerexecutors can work >> as a big one. so the point that the system can be monitored does not >> have upper limit. >> >> >> 4 /Built-in the agentless monitor for windows and unix host in the >> new version.the flexibility is improved greatly.In the new edition , >> five kinds of important function module have been put in Sake:WMI >> Check module,SSH Check module,Win32_Push_Any module , Unix_Push_Any >> module ,External command module. >> >> >> WMI Check module, can utilize WMI technology to check the CPU >> load,memory ,file update time, hard disk, process state, service >> state, Eventlog ,etc of the remote host. The remote host does not >> need to install the agent end .The module supports WinNT , WinXP , >> Win2000, Win2003. >> >> SSH Check module, can utilize Rlogin , Rexec , SSh ,etc. check romote >> Unix host , including systematic load , Swap, hard disk, process , >> login users such information as one ,etc.. The romote Unix host does >> not need to install the agent end . Support Aix, Hp _ ux,Sco >> unix,Linux, such 17 kinds of Unix/linux operating systems etc.. >> >> Win32_Push_Any module , this module can copy the checking script of >> any win32s on remote win32 host and run it. you can copy any scripts >> to the remote host , the remote host does not need to install the >> agent end . Support WinNT , WinXP , Win2000, Win2003. >> >> >> Unix_Push_Any module , this module can copy the checking script of >> any unix on remote unix host and run it. you can copy any scripts to >> the remote host , the remote host does not need to install the agent >> end . Support all Unix/linux systems. >> >> >> External command module,can execute any checking scripts, compatible >> Saker V1. 2 and all former checking module. >> >> >> 5 /Saker is ported to windows system in an all-round way, Saker v3. 0 >> codes are all natively windows codes. Saker can operate it in Win2000 >> , Win2003 system. >> >> >> 6 /Web interface is redesigned,can finish all operation in web >> interface ,the usability and humanization are improved >> greatly.Redesigning the function of the network status map,you can >> define more Beautiful network maps . >> >> Please visit http://www.sakersoft.org/news/saker3en.htm >> > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jotando at free.fr Wed Aug 17 11:46:57 2005 From: jotando at free.fr (jotando at free.fr) Date: Wed, 17 Aug 2005 11:46:57 +0200 Subject: how to clean nagios tar file good In-Reply-To: <20050812160645.EC97D898D8@sc8-sf-spam1.sourceforge.net> References: <20050812160645.EC97D898D8@sc8-sf-spam1.sourceforge.net> Message-ID: <1124272017.4303079166841@imp6-q.free.fr> Hi everyone, Westerday by boss ask me about the capability to clean the nagios log files or shedule a period like every 12 month it raise the files of the least 13th month(only this 13h month like january 2004 if you are on january 2005) to able to view only the notification of each year and don't store all. I thinks I wasn't too clear but if you have a subject that's look like an answear please let me know that cause I've to stop my job at the end of this month. Johann ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jjk_saji at yahoo.com Wed Aug 17 15:01:06 2005 From: jjk_saji at yahoo.com (John Joseph) Date: Wed, 17 Aug 2005 14:01:06 +0100 (BST) Subject: From where Oreon get info to generate nagios.cfg Message-ID: <20050817130106.86219.qmail@web40801.mail.yahoo.com> Hi I would like to post this mail to the nagios mailing list , since some members will be using oreon over here I am trying to use oreon along with Nagios , Already I have nagios configured and running , I am trying to use oreon I would like to know 1>From which files or tables , oreon generate ?? ? nagios.cfg? files , when we give generate options 2>Can we edit nagios.cfg file using orean Thanks Joseph John ___________________________________________________________ To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ktynagios at richard-group.com Wed Aug 17 15:33:07 2005 From: ktynagios at richard-group.com (Kurt Yoder) Date: Wed, 17 Aug 2005 09:33:07 -0400 Subject: combine multiple hosts in web interface? In-Reply-To: <626FC7C6A97381468FB872072AB5DDC801FEDD@XCH-SW-42.sw.nos.boeing.com> References: <626FC7C6A97381468FB872072AB5DDC801FEDD@XCH-SW-42.sw.nos.boeing.com> Message-ID: <06d9cb4ea27809c3e874b2aca597ef59@richard-group.com> Is this in the "service detail" screen? On Aug 16, 2005, at 11:42 AM, EXT-Fuentes, James P wrote: > We have a similar situation where host1 and host2 are members of a > cluster. We created a new host called wincluster which is a child of > the two hosts effectively tying them together on the map. Maybe not > the most desirable solution but it suits our needs. > -Jim -- Kurt Yoder The Richard Group v: 703.584.5803 f: 703.991.8990 ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Wed Aug 17 17:08:31 2005 From: marc at ena.com (Marc Powell) Date: Wed, 17 Aug 2005 10:08:31 -0500 Subject: how to clean nagios tar file good Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of jotando at free.fr > Sent: Wednesday, August 17, 2005 4:47 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] how to clean nagios tar file good > > Hi everyone, > > Westerday by boss ask me about the capability to clean the nagios log > files or > shedule a period like every 12 month it raise the files of the least 13th > month(only this 13h month like january 2004 if you are on january 2005) to > able > to view only the notification of each year and don't store all. > > I thinks I wasn't too clear but if you have a subject that's look like an > answear please let me know that cause I've to stop my job at the end of > this > month. You can't within nagios but 'find' + 'cron' is your friend -- 0 15 * * * /usr/bin/find /usr/local/nagios/var/archives/ -mtime +396 -type f -exec \rm {} \; &> /dev/null The above should check and delete any archive files older than 396 days (1 year + 31 days). -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From James.P.Fuentes at boeing.com Wed Aug 17 19:20:52 2005 From: James.P.Fuentes at boeing.com (EXT-Fuentes, James P) Date: Wed, 17 Aug 2005 10:20:52 -0700 Subject: combine multiple hosts in web interface? Message-ID: <626FC7C6A97381468FB872072AB5DDC801FEE0@XCH-SW-42.sw.nos.boeing.com> This is on the status map as well as on the "service detail" screen. What we have is, services which are assosciated with the collective machines as a single entity are displayed with that entity(or the cluster) on the "service detail" screen. Example: check-win-sybase - a Nagios service monitoring a clustered windows service Services which are associated exclusively with each member of the cluster are displayed with their respective hosts on the "service detail" screen. Example: check-ntp-client - Nagios service monitoring ntpd running on each member of the cluster -Jim ________________________________ From: Kurt Yoder [mailto:ktynagios at richard-group.com] Sent: Wed 8/17/2005 6:33 AM To: EXT-Fuentes, James P Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] combine multiple hosts in web interface? Is this in the "service detail" screen? On Aug 16, 2005, at 11:42 AM, EXT-Fuentes, James P wrote: > We have a similar situation where host1 and host2 are members of a > cluster. We created a new host called wincluster which is a child of > the two hosts effectively tying them together on the map. Maybe not > the most desirable solution but it suits our needs. > -Jim -- Kurt Yoder The Richard Group v: 703.584.5803 f: 703.991.8990 ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cguo at at-sd.com Wed Aug 17 19:47:22 2005 From: cguo at at-sd.com (Chris Guo) Date: Wed, 17 Aug 2005 10:47:22 -0700 Subject: Got error message while using nrpe to check the disk space on the remote host Message-ID: <000301c5a353$b8ab6320$df03a8c0@archnet2.atgsd.com> Hi, All, We are using nagios as the network monitor system in our company, and we got an error message while using check_nrpe to check the disk space on the remote host. It says"CHECK_NRPE:Error receiving data from daemon". Anybody has any idea how to solve this problem? Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: From marc at ena.com Wed Aug 17 20:05:29 2005 From: marc at ena.com (Marc Powell) Date: Wed, 17 Aug 2005 13:05:29 -0500 Subject: Got error message while using nrpe to check the disk space on the remote host Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Chris Guo > Sent: Wednesday, August 17, 2005 12:47 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Got error message while using nrpe to check the > disk space on the remote host > > Hi, All, > > > > We are using nagios as the network monitor system in our company, and we > got an error message while using check_nrpe to check the disk space on the > remote host. It says"CHECK_NRPE:Error receiving data from daemon". > > Anybody has any idea how to solve this problem? Since you provided no specific or useful information nor any indication of what troubleshooting you've already done I'm going to make a few suggestions - - Run the command exactly as it's defined as the nagios user from your nagios box and see what happens - run the command, exactly as it's defined in nrpe.cfg on your remote box as the user that you've specified those commands be run as and see what happens - enable debug in nrpe.cfg and watch your OS's messages file for error information - verify that you've included your nagios host in allowed_hosts - read http://www.catb.org/~esr/faqs/smart-questions.html One of those will surely help you. If you still need help, please provide us with specific information about what you're doing including OS's involved, software versions (OS, Nagios, NRPE), appropriate host, service and command definitions as well as what troubleshooting you've already done so we don't duplicate work. -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jjk_saji at yahoo.com Thu Aug 18 05:19:41 2005 From: jjk_saji at yahoo.com (John Joseph) Date: Thu, 18 Aug 2005 04:19:41 +0100 (BST) Subject: From where Oreon get info to generate nagios.cfg In-Reply-To: <43033AC3.4030806@cvf.fr> References: <43033AC3.4030806@cvf.fr> Message-ID: <20050818031941.72097.qmail@web40812.mail.yahoo.com> Thanks Ravil for the mail I will be checking the tables , Regarding the posting to Orean forum , Lack of french knowledge is a obstacle for me Even though English forum is there , the navigation all is in French To put things worse , my ISP does not allow , online URL translation Thanks Joseph John --- Ravail David wrote: > John Joseph a ?crit : > > >Hi > > I would like to post this mail to the nagios > >mailing list , since some members will be using > oreon > >over here > > I am trying to use oreon along with Nagios , > > Already I have nagios configured and > running > >, I am trying to use oreon > >I would like to know > >1>From which files or tables , oreon generate ?? > ? > >nagios.cfg? files , when we give generate options > > > > > > > Oreon creates a table which called nagioscfg > > >2>Can we edit nagios.cfg file using orean > > > > > Yes. This project is a FrontEnd of Nagios => > Configuration and Visualisation > There is a documentation in english : > http://oreon.org/download-Documentation-en.html. > You can directly post to Oreon forum. > > > Thanks > > Joseph John > > > > > > > >___________________________________________________________ > > >To help you stay safe and secure online, we've > developed the all new Yahoo! Security Centre. > http://uk.security.yahoo.com > > > > > >------------------------------------------------------- > >SF.Net email is Sponsored by the Better Software > Conference & EXPO > >September 19-22, 2005 * San Francisco, CA * > Development Lifecycle Practices > >Agile & Plan-Driven Development * Managing Projects > & Teams * Testing & QA > >Security * Process Improvement & Measurement * > http://www.sqe.com/bsce5sf > >_______________________________________________ > >Nagios-users mailing list > >Nagios-users at lists.sourceforge.net > >https://lists.sourceforge.net/lists/listinfo/nagios-users > >::: Please include Nagios version, plugin version > (-v) and OS when reporting any issue. > >::: Messages without supporting info will risk > being sent to /dev/null > > > > > > > > > > ___________________________________________________________ To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jjk_saji at yahoo.com Thu Aug 18 09:22:30 2005 From: jjk_saji at yahoo.com (John Joseph) Date: Thu, 18 Aug 2005 08:22:30 +0100 (BST) Subject: =?iso-8859-1?q?=20=20unknown=20variable=20:-=20for=20=93inter=5Fcheck=5Fd?= =?iso-8859-1?q?elay=5Fmethods=20and=20log=5Fpassive=5Fservice=5Fchecks=94?= =?iso-8859-1?q?=20in=20nagios.cfg=20?= Message-ID: <20050818072230.94858.qmail@web40811.mail.yahoo.com> Hi When I un-mark the comments in ?nagios.cfg? file for log_passive_service_checks=1 inter_check_delay_methods=s and when I check I get the error message as ?Error in '/usr/local/nagios/etc/nagios.cfg unknown variable? If I comment it , I can check it and it shows no error wondering my it give error unknown errors , does this variables depend on some other parameter Guidance needed Thanks Joseph John ___________________________________________________________ To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Aug 18 03:57:47 2005 From: marc at ena.com (Marc Powell) Date: Wed, 17 Aug 2005 20:57:47 -0500 Subject: Got error message while using nrpe to check the disk space on the remote host Message-ID: FAQ definitely, archives definitely, STFW definitely. I _know_ you'll find quite a bit on it if you just try. -- Marc > -----Original Message----- > From: Chris Guo [mailto:cguo at at-sd.com] > Sent: Wednesday, August 17, 2005 5:13 PM > To: Marc Powell; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Got error message while using nrpe to check > the disk space on the remote host > > > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Marc Powell > Sent: Wednesday, August 17, 2005 11:05 AM > To: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Got error message while using nrpe to check > the > disk space on the remote host > > > Marc, > > I checked the log file on the remote host which run the NRPE daemon, the > error message is "Could not complete SSL handshake". > Thanks for the replying. > > Chris > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > > admin at lists.sourceforge.net] On Behalf Of Chris Guo > > Sent: Wednesday, August 17, 2005 12:47 PM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Got error message while using nrpe to check > the > > disk space on the remote host > > > > Hi, All, > > > > > > > > We are using nagios as the network monitor system in our company, and > we > > got an error message while using check_nrpe to check the disk space on > the > > remote host. It says"CHECK_NRPE:Error receiving data from daemon". > > > > Anybody has any idea how to solve this problem? > > Since you provided no specific or useful information nor any indication > of what troubleshooting you've already done I'm going to make a few > suggestions - > > - Run the command exactly as it's defined as the nagios user from your > nagios box and see what happens > - run the command, exactly as it's defined in nrpe.cfg on your remote > box as the user that you've specified those commands be run as and see > what happens > - enable debug in nrpe.cfg and watch your OS's messages file for error > information > - verify that you've included your nagios host in allowed_hosts > - read http://www.catb.org/~esr/faqs/smart-questions.html > > > One of those will surely help you. If you still need help, please > provide us with specific information about what you're doing including > OS's involved, software versions (OS, Nagios, NRPE), appropriate host, > service and command definitions as well as what troubleshooting you've > already done so we don't duplicate work. > > -- > Marc > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From G.GENIAUT at jennyfer.com Thu Aug 18 12:10:35 2005 From: G.GENIAUT at jennyfer.com (Gerald GENIAUT) Date: Thu, 18 Aug 2005 12:10:35 +0200 Subject: test Message-ID: <7A76D1C6A1387C428AE891C4A1CD8C6B04242953@mail.jennyfer.fr> test GENIAUT G?rald Service Informatique 01.41.83.56.91. JENNYFER -------------- next part -------------- An HTML attachment was scrubbed... URL: From marc at ena.com Thu Aug 18 19:13:14 2005 From: marc at ena.com (Marc Powell) Date: Thu, 18 Aug 2005 12:13:14 -0500 Subject: test Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Gerald GENIAUT > Sent: Thursday, August 18, 2005 5:11 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] test > > test > The list is very very delayed. -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Thu Aug 18 12:53:42 2005 From: ae at op5.se (Andreas Ericsson) Date: Thu, 18 Aug 2005 12:53:42 +0200 Subject: =?windows-1252?Q?Re=3A_=5BNagios-users=5D___unknown_va?= =?windows-1252?Q?riable_=3A-_for_=93inter=5Fcheck=5Fdelay=5Fmethod?= =?windows-1252?Q?s_and_log=5Fpassive=5Fservice=5Fchecks=94_in_na?= =?windows-1252?Q?gios=2Ecfg_?= In-Reply-To: <20050818072230.94858.qmail@web40811.mail.yahoo.com> References: <20050818072230.94858.qmail@web40811.mail.yahoo.com> Message-ID: <430468B6.3000406@op5.se> John Joseph wrote: > Hi > When I un-mark the comments in ?nagios.cfg? file > for > log_passive_service_checks=1 > inter_check_delay_methods=s > and when I check > I get the error message as > ?Error in '/usr/local/nagios/etc/nagios.cfg > unknown variable? This is because those variables have no meaning in Nagios 2.0, as you would have found out had you bothered to read the docs (any of them, really). > If I comment it , I can check it and it > shows no error > wondering my it give error unknown > errors , does this variables depend on some other > parameter > Guidance needed > Thanks > Joseph John > > > > ___________________________________________________________ > To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From G.GENIAUT at jennyfer.com Thu Aug 18 12:15:45 2005 From: G.GENIAUT at jennyfer.com (Gerald GENIAUT) Date: Thu, 18 Aug 2005 12:15:45 +0200 Subject: Whoops error on mandrake 10.1 Message-ID: <7A76D1C6A1387C428AE891C4A1CD8C6B04242954@mail.jennyfer.fr> Hello, I check everywhere but I'm continuing to get the whoosp error : could not read object configuration data! The verbose mode is ok (no error) The log are clean (no error) The CGI are installed correctly I think. My configuration is : Mandrake 10.1 - Nagios 2.0 - Apache 2 What I do : configure all file with tutorial french web site. After I check in an other web site to verify my configuration files, and all seems to be ok. I try to set right to apache.apache to the cgi folder like I read it in a thread, but nothing change all continue to be wrong. Someone know what I miss ? Where is my mistake ? Thanks for your reply. G?rald -------------- next part -------------- An HTML attachment was scrubbed... URL: From askarali at beaconet.net Thu Aug 18 19:11:43 2005 From: askarali at beaconet.net (Askar Ali) Date: Thu, 18 Aug 2005 22:11:43 +0500 Subject: test In-Reply-To: <7A76D1C6A1387C428AE891C4A1CD8C6B04242953@mail.jennyfer.fr> References: <7A76D1C6A1387C428AE891C4A1CD8C6B04242953@mail.jennyfer.fr> Message-ID: <4304C14F.9050802@beaconet.net> Gerald GENIAUT wrote: > test > > > GENIAUT G?rald > Service Informatique > 01.41.83.56.91. > JENNYFER > > reply test ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From frederik.vanhee at perso.be Thu Aug 18 09:21:55 2005 From: frederik.vanhee at perso.be (Frederik Vanhee) Date: Thu, 18 Aug 2005 09:21:55 +0200 Subject: problem with nsca daemon In-Reply-To: <20050818031941.72097.qmail@web40812.mail.yahoo.com> References: <20050818031941.72097.qmail@web40812.mail.yahoo.com> Message-ID: <43043713.3040203@perso.be> Hi, in my distributed Nagios environment, I use the nsca-daemon to send the check_results from the distributed Nagios servers to the central Nagios server running the web-interface. Nagios 2.0b3 and NSCA 2.4 So far, so good. Everything runs fine, all check results arrive at the central server. On my local network (where the central Nagios server is), I want to catch some SNMP traps and import them into Nagios. I managed to do this using snmptrapd and snmptt. Snmptt sends the trap to Nagios via 'send_nsca'. The host that catches the traps is the same hosts that runs Nagios and the nsca-daemon The only problem I have is : when I send the trap to the Nagios server (running nsca-daemon) with send_nsca, I always get the message '0 data packet(s) where sent succesfully', when I do the same from a another box, everything runs fine and I get the message '1 data packet(s) where sent succesfully' So, for some reason, the send_nsca program doesn't send the check_result if it is sent from the same machine the nsca-daemon is running. Has anyone experienced this behaviour ? Yes, the local-machine's ip is in the allowed hosts section of the nsca.cfg, and 127.0.0.1 is too. Of course I could send directly to the nagios-command pipe (I tried it and it works), but I prefer using nsca Frederik ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Aug 18 20:29:50 2005 From: marc at ena.com (Marc Powell) Date: Thu, 18 Aug 2005 13:29:50 -0500 Subject: problem with nsca daemon Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Frederik Vanhee > Sent: Thursday, August 18, 2005 2:22 AM > To: Nagios User > Subject: [Nagios-users] problem with nsca daemon > > Hi, > > in my distributed Nagios environment, I use the nsca-daemon to send the > check_results from the distributed Nagios servers to the central Nagios > server running the web-interface. Nagios 2.0b3 and NSCA 2.4 > > So far, so good. Everything runs fine, all check results arrive at the > central server. > > On my local network (where the central Nagios server is), I want to > catch some SNMP traps and import them into Nagios. > I managed to do this using snmptrapd and snmptt. Snmptt sends the trap > to Nagios via 'send_nsca'. The host that catches the traps is the same > hosts that runs Nagios and the nsca-daemon > > The only problem I have is : when I send the trap to the Nagios server > (running nsca-daemon) with send_nsca, I always get the message '0 data > packet(s) where sent succesfully', when I do the same from a another > box, everything runs fine and I get the message '1 data packet(s) where > sent succesfully' > What do you see in your messages file when you enable debug in nsca.cfg? -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From patrick.roy at ville.quebec.qc.ca Thu Aug 18 21:09:33 2005 From: patrick.roy at ville.quebec.qc.ca (Roy, Patrick) Date: Thu, 18 Aug 2005 15:09:33 -0400 Subject: Acknowledgement question Message-ID: Hi! I have 2 Nagios server (server1 and server2) that monitor exactly the same hosts and services. They both send notification to the same contact list (this is a desired feature by my client). That creates an irritating situation where in response to notifications, a tech needs to acknowledge the probleme on both server. What i'm looking for is a script (or a quick'n'dirty hack) that replicate acknowledgement automaticaly. All the config files are already replicated from server1 to server2. The replication needs to be only in one direction as the tech will be instructed to only acknowledge on server1. Thanks Patrick Roy ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ton.voon-YB/V9g5PFTJWk0Htik3J/w at public.gmane.org Wed Aug 17 20:48:27 2005 From: ton.voon-YB/V9g5PFTJWk0Htik3J/w at public.gmane.org (Ton Voon) Date: Wed, 17 Aug 2005 19:48:27 +0100 Subject: [Nagiosplug-devel] Re: [Nagios-users] Nagios 3.0,natively windows codes,support mysql,support agentless monitor , new web interface,more,Greatly In-Reply-To: <4302DEDD.9010806-n0Zl8IkGad4@public.gmane.org> References: <20050817004627.66136.qmail@web15903.mail.cnb.yahoo.com> <4302DEDD.9010806@op5.se> Message-ID: <6A28A0A2-CB4F-4F4D-B2B7-38356D002AD1@altinity.com> On 17 Aug 2005, at 07:53, Andreas Ericsson wrote: > I want to point out that this distribution form of Nagios is > illegal. Including code from a GPL'd program is illegal unless you > supply the source-code through the same means as the binary version. Here, here. I shall investigate what this means for the Nagios Plugins side and respond to the company as well. The GPL licence is crucial to this project. Ton http://www.altinity.com T: +44 (0)870 787 9243 F: +44 (0)845 280 1725 Skype: tonvoon The contents of this email and any files transmitted with it are confidential and intended solely for the use of the individuals to whom it is addressed. If you are not the intended recipient or have received this e-mail in error please notify the sender and destroy this e-mail immediately. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly prohibited. -------------- next part -------------- An HTML attachment was scrubbed... URL: From BConrad at passkey.com Wed Aug 17 21:25:11 2005 From: BConrad at passkey.com (Ben Conrad) Date: Wed, 17 Aug 2005 15:25:11 -0400 Subject: Nagat like interface for 2.0 beta? Message-ID: <8FB96300C132D511AE7500508BD6ABCD05AB3EFB@eagle.passkey.com> I use NagiosQL as well and it's good. You may also want to look at Groundwork, I think they have a nice solution for Nagios management. -----Original Message----- From: G?tz Rieger [mailto:GRieger at PROBUSINESS.DE] Sent: Tuesday, August 16, 2005 3:22 AM To: nagios-users at lists.sourceforge.net Subject: AW: [Nagios-users] Nagat like interface for 2.0 beta? Hi, NagiosQL 2005 looks nice and indeed _works_. Monarch seems not to be completely adapted to 2.0. Check www.nagiosexchange.org Bye, Goetz > -----Urspr?ngliche Nachricht----- > Von: Jeffry Bilder [mailto:JBilder at bacons.com] > Gesendet: Dienstag, 16. August 2005 04:29 > An: nagios-users at lists.sourceforge.net > Betreff: [Nagios-users] Nagat like interface for 2.0 beta? > > > Is there currently anything for Nagios 2.0 that provides a > GUI interface > for configuring hosts/services/etc? I am completely fine > with handling > the CLI myself (seeing how I set it up and whatnot), but my boss needs > something that will help those people that aren't completely familiar > with VI out. Thanks... > > - Jeff > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development > Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * > Testing & QA > Security * Process Improvement & Measurement * > http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From brylon at jla.rutgers.edu Wed Aug 17 22:57:17 2005 From: brylon at jla.rutgers.edu (Bryan Loniewski) Date: Wed, 17 Aug 2005 16:57:17 -0400 (EDT) Subject: Duration field feature/bug? Message-ID: When viewing nagios web interface (in particular the Service Problems page), we've noticed that the Duration field resets to 0 minutes after 'successfully' failing the maximum number of attempts listed in the Attempt field even though the state of the machine has not changed. After this resetting to 0 occurs the Duration starts counting correctly again and continues to do so. This results in our operations unit not properly assessing the duration in which a service or device is degraded (possibly re-initiating unneeded contact procedures). Is this a bug or a feature? Has anyone noticed this? _________________________ Bryan Loniewski Rutgers University NBCS - Systems Programmer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From James.P.Fuentes at boeing.com Wed Aug 17 20:51:26 2005 From: James.P.Fuentes at boeing.com (EXT-Fuentes, James P) Date: Wed, 17 Aug 2005 11:51:26 -0700 Subject: check_nt - COUNTER Message-ID: <626FC7C6A97381468FB872072AB5DDC801FEE1@XCH-SW-42.sw.nos.boeing.com> Greetings list, I am using: check_nt -V check_nt (nagios-plugins 1.4) 1.39 I've looked through the archives and attempted to use various examples found there but can't seem to get the info I am looking for. Specifically, I would like to look at different characteristics of a process. Example: check_nt -H hostname -p 12489 -v COUNTER -l "\\Process(hmi)\\% Processor Time " I've brought up the windows system monitor which clearly shows considerable resource consumption by this process but I still get nothing but "0" when I run this check. Does anybody have syntax examples of "Process" COUNTER checks that actually return something? TIA, -Jim ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From patrick.roy at ville.quebec.qc.ca Wed Aug 17 21:46:24 2005 From: patrick.roy at ville.quebec.qc.ca (Roy, Patrick) Date: Wed, 17 Aug 2005 15:46:24 -0400 Subject: Acknowledgement question Message-ID: Hi! I have 2 Nagios server (server1 and server2) that monitor exactly the same hosts and services. They both send notification to the same contact list (this is a desired feature by my client). That creates an irritating situation where in response to notifications, a tech needs to acknowledge the probleme on both server. What i'm looking for is a script (or a quick'n'dirty hack) that replicate acknowledgement automaticaly. All the config files are already replicated from server1 to server2. The replication needs to be only in one direction as the tech will be instructed to only acknowledge on server1. Thanks Patrick Roy ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Aug 18 22:08:16 2005 From: marc at ena.com (Marc Powell) Date: Thu, 18 Aug 2005 15:08:16 -0500 Subject: Duration field feature/bug? Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Bryan Loniewski > Sent: Wednesday, August 17, 2005 3:57 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Duration field feature/bug? > > When viewing nagios web interface (in particular the Service Problems > page), we've > noticed that the Duration field resets to 0 minutes after 'successfully' > failing the > maximum number of attempts listed in the Attempt field even though the > state of the > machine has not changed. After this resetting to 0 occurs the Duration > starts > counting correctly again and continues to do so. > > This results in our operations unit not properly assessing the duration in > which a > service or device is degraded (possibly re-initiating unneeded contact > procedures). > > Is this a bug or a feature? Has anyone noticed this? This is normal behavior. What's happening is that the service is changing from a Soft Critical state, where Nagios isn't sure if it's down to a Hard Critical state where it is sure. They're two different states for Nagios internally with different behaviors. As the time is since the last state change, it's an accurate representation. As far as your operations, you could either lower the number of retry check attempts and/or let your staff know about the difference between hard and soft states and to add (retry_count * retry_interval) minutes to get the total time. We've just modified Nagios not to show soft states at all and that's worked out ok for us. Using acknowlegements is also an excellent way to keep from duplicating work if you aren't doing that already. I'm pretty sure that something acknowledged in a soft state maintains that when it transitions to a hard state. -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Toby_Kraft at KSAinc.com Thu Aug 18 22:22:39 2005 From: Toby_Kraft at KSAinc.com (Toby Kraft) Date: Thu, 18 Aug 2005 15:22:39 -0500 Subject: Nagat like interface for 2.0 beta? In-Reply-To: <8FB96300C132D511AE7500508BD6ABCD05AB3EFB@eagle.passkey.com> References: <8FB96300C132D511AE7500508BD6ABCD05AB3EFB@eagle.passkey.com> Message-ID: Hi, Unless I missed something when I looked at it, NagiosQL does not support templates which is a major benefit of Nagios 2.0. However, it does work nicely for the regular object configs. Monarch will work with 2.0 but it takes a different approach to organizing common settings and applying them to config objects so you'll have to get your head around the different model to use it. Fruity supports 2.0 also - you might want to have a look at it too - but it's supposed to be merged with Monarch in the future. Toby nagios-users-admin at lists.sourceforge.net wrote on 08/17/2005 02:25:11 PM: > I use NagiosQL as well and it's good. > > You may also want to look at Groundwork, I think they have a nice solution > for Nagios management. > > -----Original Message----- > From: G?tz Rieger [mailto:GRieger at PROBUSINESS.DE] > Sent: Tuesday, August 16, 2005 3:22 AM > To: nagios-users at lists.sourceforge.net > Subject: AW: [Nagios-users] Nagat like interface for 2.0 beta? > > > Hi, > > NagiosQL 2005 looks nice and indeed _works_. > > Monarch seems not to be completely adapted to 2.0. > > Check www.nagiosexchange.org > > Bye, > Goetz > > > -----Urspr?ngliche Nachricht----- > > Von: Jeffry Bilder [mailto:JBilder at bacons.com] > > Gesendet: Dienstag, 16. August 2005 04:29 > > An: nagios-users at lists.sourceforge.net > > Betreff: [Nagios-users] Nagat like interface for 2.0 beta? > > > > > > Is there currently anything for Nagios 2.0 that provides a > > GUI interface > > for configuring hosts/services/etc? I am completely fine > > with handling > > the CLI myself (seeing how I set it up and whatnot), but my boss needs > > something that will help those people that aren't completely familiar > > with VI out. Thanks... > > > > - Jeff > > > > > > ------------------------------------------------------- > > SF.Net email is Sponsored by the Better Software Conference & EXPO > > September 19-22, 2005 * San Francisco, CA * Development > > Lifecycle Practices > > Agile & Plan-Driven Development * Managing Projects & Teams * > > Testing & QA > > Security * Process Improvement & Measurement * > > http://www.sqe.com/bsce5sf > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS > > when reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > ______________________________________________________________________ > This email has been scanned by the MessageLabs Email Security System. > For more information please visit http://www.messagelabs.com/email > ______________________________________________________________________ > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cguo at at-sd.com Thu Aug 18 00:13:29 2005 From: cguo at at-sd.com (Chris Guo) Date: Wed, 17 Aug 2005 15:13:29 -0700 Subject: Got error message while using nrpe to check the disk space on the remote host In-Reply-To: References: Message-ID: <001c01c5a378$e5c0ada0$df03a8c0@archnet2.atgsd.com> -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Marc Powell Sent: Wednesday, August 17, 2005 11:05 AM To: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Got error message while using nrpe to check the disk space on the remote host Marc, I checked the log file on the remote host which run the NRPE daemon, the error message is "Could not complete SSL handshake". Thanks for the replying. Chris > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Chris Guo > Sent: Wednesday, August 17, 2005 12:47 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Got error message while using nrpe to check the > disk space on the remote host > > Hi, All, > > > > We are using nagios as the network monitor system in our company, and we > got an error message while using check_nrpe to check the disk space on the > remote host. It says"CHECK_NRPE:Error receiving data from daemon". > > Anybody has any idea how to solve this problem? Since you provided no specific or useful information nor any indication of what troubleshooting you've already done I'm going to make a few suggestions - - Run the command exactly as it's defined as the nagios user from your nagios box and see what happens - run the command, exactly as it's defined in nrpe.cfg on your remote box as the user that you've specified those commands be run as and see what happens - enable debug in nrpe.cfg and watch your OS's messages file for error information - verify that you've included your nagios host in allowed_hosts - read http://www.catb.org/~esr/faqs/smart-questions.html One of those will surely help you. If you still need help, please provide us with specific information about what you're doing including OS's involved, software versions (OS, Nagios, NRPE), appropriate host, service and command definitions as well as what troubleshooting you've already done so we don't duplicate work. -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jotando at free.fr Thu Aug 18 14:50:46 2005 From: jotando at free.fr (jotando at free.fr) Date: Thu, 18 Aug 2005 14:50:46 +0200 Subject: Do someone know where can I find out the resources need by nagios In-Reply-To: <002201c5a314$40fe2cc0$6a01a8c0@MATRICSLYON1> References: <002201c5a314$40fe2cc0$6a01a8c0@MATRICSLYON1> Message-ID: <1124369446.430484262a2d7@imp5-q.free.fr> hi everyone, Because of we have to negotiate to the others farm, my boos ask me to write a user manuel within we can find the minimal resource needs like the frequency of the processor its load or comsummation, the network trafic given after running ... thanks in advance. johann Quoting Dominique Jeannerod : > Hello, > You can easily use logrotate to configure an automatic clean of Nagios log > files (I'm using a redhat box). > For example a monthly clean, deleting all files older than a year or 13 > month. > Look at /etc/logrotate.conf and files in /etc/logrotate.d, and "man > logrotate" > The configuration is really easy to do. > > I hope this helps > > Dominique > > -----Message d'origine----- > De : nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] De la part de > jotando at free.fr > Envoy? : mercredi 17 ao?t 2005 11:47 > ? : nagios-users at lists.sourceforge.net > Objet : [Nagios-users] how to clean nagios tar file good > > > Hi everyone, > > Westerday by boss ask me about the capability to clean the nagios log files > or shedule a period like every 12 month it raise the files of the least 13th > month(only this 13h month like january 2004 if you are on january 2005) to > able to view only the notification of each year and don't store all. > > I thinks I wasn't too clear but if you have a subject that's look like an > answear please let me know that cause I've to stop my job at the end of this > month. > > Johann > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO September > 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & > Plan-Driven Development * Managing Projects & Teams * Testing & QA Security > * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rgmuller at resenet.com.br Thu Aug 18 23:37:16 2005 From: rgmuller at resenet.com.br (Ronaldo Garry Muller) Date: Thu, 18 Aug 2005 21:37:16 +0000 Subject: Nagios startup Message-ID: <1124401036.8043.4.camel@localhost.localdomain> Dear Sirs I have instaled nagios in my UBUNTU, using Synaptic and everthing seemed being OK. Even though it doesnt run! What could be the matter? How can I run it in GUI? I have seen a number of snapshots. Best regards Ronaldo G. M?ller ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dgentry at ultainc.com Thu Aug 18 23:55:18 2005 From: dgentry at ultainc.com (David Gentry) Date: Thu, 18 Aug 2005 23:55:18 +0200 (CEST) Subject: check_smtp send message Message-ID: <20050818215518.155B44F4002@desire.netways.de> Does anyone know if you can pass arguments to the check_smtp plugin, and have it send a test email? I tried using the -C command, but it doesnt work. I want to pass helo,mail from:(user),rcpt to:(usr),data (message),. Thanks. - David ----------------------- The mailing list archive is found here: http://www.nagiosexchange.org/nagios-users.34.0.html ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Fri Aug 19 00:31:29 2005 From: marc at ena.com (Marc Powell) Date: Thu, 18 Aug 2005 17:31:29 -0500 Subject: check_smtp send message Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of David Gentry > Sent: Thursday, August 18, 2005 4:55 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] check_smtp send message > > Does anyone know if you can pass arguments to the check_smtp plugin, > and have it send a test email? I tried using the -C command, but > it doesnt work. I want to pass helo,mail from:(user),rcpt to:(usr),data > (message),. I was intrigued by this. Normally I would recommend using check_email_loop.pl in the plugins contrib. folder but I thought I would see if it could actually be done through check_smtp alone. This is what I came up with that appears to work for my installation of sendmail -- ./check_smtp -H my.mail.server -f marc at ena.com -C 'rcpt to: marc at ena.com' -R 'Recipient ok' -C 'data' -R '354 Enter mail' -C '.' -R 'Message accepted for delivery' SMTP OK - 0.210 sec. response time|time=0.210084s;;;0.000000 -C sends a command and -R looks for the response. The -R's are substring searches so just a part of the expected response is ok. The only drawback that I can see is that you can't actually send any information for the data part of the transaction (your section). The plugin expects a response from the mail server for every -C command whether you specify a -R to actually test it or not. When sending the data part, there is no output from the mail server until you send the '.'. It's sooooo close but not quite there. HTH, Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Aug 18 14:57:06 2005 From: marc at ena.com (Marc Powell) Date: Thu, 18 Aug 2005 07:57:06 -0500 Subject: unknown variable :- for "inter_check_delay_methods and log_passive_service_checks" in nagios.cfg Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of John Joseph > Sent: Thursday, August 18, 2005 2:23 AM > To: Nagios User > Subject: [Nagios-users] unknown variable :- for "inter_check_delay_methods > and log_passive_service_checks" in nagios.cfg > > Hi > When I un-mark the comments in "nagios.cfg" file > for > log_passive_service_checks=1 This looks ok and shouldn't be giving you a problem. http://nagios.sourceforge.net/docs/1_0/configmain.html#log_passive_servi ce_checks > inter_check_delay_methods=s This should be 'inter_check_delay_method=s' http://nagios.sourceforge.net/docs/1_0/configmain.html#inter_check_delay _method -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Fri Aug 19 03:24:37 2005 From: pla at softflare.com (Paul L. Allen) Date: Fri, 19 Aug 2005 02:24:37 +0100 Subject: Whoops error on mandrake 10.1 In-Reply-To: <7A76D1C6A1387C428AE891C4A1CD8C6B04242954@mail.jennyfer.fr> References: <7A76D1C6A1387C428AE891C4A1CD8C6B04242954@mail.jennyfer.fr> Message-ID: <20050819012437.28746.qmail@mullet.softflare.net> Gerald GENIAUT writes: > My configuration is : Mandrake 10.1 - Nagios 2.0 - Apache 2 [...] > Where is my mistake ? The one time we played with Mandrake (I think it was 8 but it could have been 9) we concluded that while it had some minor advantages as a desktop OS it wasn't very suitable as a server OS. Anything we wanted to do hit the "2001" barrier of "I'm sorry, I can't let you do that, Dave." No doubt if we'd persevered we could have made Mandrake see sense and let us do what we wanted to do. We didn't have the time or the patience. As I recall, it was the pain of getting virtual domains working under Apache that caused us to decide that Mandrake was being overly-protective and it would be quicker to install Red Hat on the box rather than battling Mandrake's insistence that it knew better than us what we wanted to do. I would say the same thing about SELinux. The day there is documentation about getting virtual domains working on Apache that doesn't say something along the lines of "this is 'hard work' and you'll have to figure it out for yourself and you probably won't get what you want anyway" is the day I might consider enabling the SELinux features. Given the number of posts I see here and on other lists saying "your problem is SELinux and the simplest fix is to disable it completely" I suspect that day is far in the future. None of that helps you much. But you didn't give us much to work on except saying you were using Mandrake. -- Paul Allen Softflare Support ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Lutz.Koop.external at astrium.eads.net Fri Aug 19 07:40:57 2005 From: Lutz.Koop.external at astrium.eads.net (Koop, Lutz (external)) Date: Fri, 19 Aug 2005 07:40:57 +0200 Subject: AW: Nagios startup Message-ID: <7579CAECCAF7D211B9600008C79139D80BA8C3D8@exdssfdh01.south.de.astrium.corp> the GUI is your browser. See the documentation, chapter "Setting Up The Web Interface" Kind regards / Mit freundlichen Gr??en Lutz Koop ----------------------------------------------- UNIX-Support EADS Astrium GmbH, Dept. AOI23 -----Urspr?ngliche Nachricht----- Von: Ronaldo Garry Muller [mailto:rgmuller at resenet.com.br] Gesendet: Donnerstag, 18. August 2005 23:37 An: nagios-users at lists.sourceforge.net Betreff: [Nagios-users] Nagios startup Dear Sirs I have instaled nagios in my UBUNTU, using Synaptic and everthing seemed being OK. Even though it doesnt run! What could be the matter? How can I run it in GUI? I have seen a number of snapshots. Best regards Ronaldo G. M?ller ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From frederik.vanhee at perso.be Fri Aug 19 07:55:52 2005 From: frederik.vanhee at perso.be (Frederik Vanhee) Date: Fri, 19 Aug 2005 07:55:52 +0200 Subject: problem with nsca daemon In-Reply-To: References: Message-ID: <43057468.6070408@perso.be> Marc Powell wrote: > > >>-----Original Message----- >>From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- >>admin at lists.sourceforge.net] On Behalf Of Frederik Vanhee >>Sent: Thursday, August 18, 2005 2:22 AM >>To: Nagios User >>Subject: [Nagios-users] problem with nsca daemon >> >>Hi, >> >>in my distributed Nagios environment, I use the nsca-daemon to send >> >> >the > > >>check_results from the distributed Nagios servers to the central >> >> >Nagios > > >>server running the web-interface. Nagios 2.0b3 and NSCA 2.4 >> >>So far, so good. Everything runs fine, all check results arrive at the >>central server. >> >>On my local network (where the central Nagios server is), I want to >>catch some SNMP traps and import them into Nagios. >>I managed to do this using snmptrapd and snmptt. Snmptt sends the trap >>to Nagios via 'send_nsca'. The host that catches the traps is the same >>hosts that runs Nagios and the nsca-daemon >> >>The only problem I have is : when I send the trap to the Nagios server >>(running nsca-daemon) with send_nsca, I always get the message '0 data >>packet(s) where sent succesfully', when I do the same from a another >>box, everything runs fine and I get the message '1 data packet(s) >> >> >where > > >>sent succesfully' >> >> >> > >What do you see in your messages file when you enable debug in nsca.cfg? > >-- >Marc > > >------------------------------------------------------- >SF.Net email is Sponsored by the Better Software Conference & EXPO >September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices >Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA >Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >::: Messages without supporting info will risk being sent to /dev/null > > > Hi Marc (and others), this is what I see in the messages file with debug=1 in nsca.cfg As you can see, there is a connection that's handled, but no service check is sent. First I thought I used a wrong syntax for send_nsca, but when I send the same send_nsca command from another box, it works and then a service check is sent. Aug 18 08:44:58 nagserver nsca[32004]: Connection from 172.18.3.155 port 25618 Aug 18 08:44:58 nagserver nsca[32004]: Host address checks out ok Aug 18 08:44:58 nagserver nsca[32004]: Handling the connection... Aug 18 08:44:58 nagserver nsca[32004]: End of connection... ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From GRieger at PROBUSINESS.DE Fri Aug 19 10:01:44 2005 From: GRieger at PROBUSINESS.DE (=?iso-8859-1?Q?G=F6tz_Rieger?=) Date: Fri, 19 Aug 2005 10:01:44 +0200 Subject: AW: Nagat like interface for 2.0 beta? Message-ID: Hi all, > -----Urspr?ngliche Nachricht----- > Von: Toby Kraft [mailto:Toby_Kraft at KSAinc.com] > Gesendet: Donnerstag, 18. August 2005 22:23 > Unless I missed something when I looked at it, NagiosQL does > not support templates which is a major benefit of Nagios 2.0. AFAIK thats right and the major shortcoming of NagiosQL. But I was rather impressed to have at least a working solution... ;-) > Monarch will work with 2.0 but it takes a different approach I just gave it a try. Real cute and the install is pretty easy, at least on a Sarge. > Fruity supports 2.0 also - you might want to have a look at > it too - but Will check that one out, too. Bye, Goetz > it's supposed to be merged with Monarch in the future. > > Toby > > nagios-users-admin at lists.sourceforge.net wrote on 08/17/2005 > 02:25:11 PM: > > > I use NagiosQL as well and it's good. > > > > You may also want to look at Groundwork, I think they have a nice > solution > > for Nagios management. > > > > -----Original Message----- > > From: G?tz Rieger [mailto:GRieger at PROBUSINESS.DE] > > Sent: Tuesday, August 16, 2005 3:22 AM > > To: nagios-users at lists.sourceforge.net > > Subject: AW: [Nagios-users] Nagat like interface for 2.0 beta? > > > > > > Hi, > > > > NagiosQL 2005 looks nice and indeed _works_. > > > > Monarch seems not to be completely adapted to 2.0. > > > > Check www.nagiosexchange.org > > > > Bye, > > Goetz > > > > > -----Urspr?ngliche Nachricht----- > > > Von: Jeffry Bilder [mailto:JBilder at bacons.com] > > > Gesendet: Dienstag, 16. August 2005 04:29 > > > An: nagios-users at lists.sourceforge.net > > > Betreff: [Nagios-users] Nagat like interface for 2.0 beta? > > > > > > > > > Is there currently anything for Nagios 2.0 that provides a > > > GUI interface > > > for configuring hosts/services/etc? I am completely fine > > > with handling > > > the CLI myself (seeing how I set it up and whatnot), but > my boss needs > > > something that will help those people that aren't > completely familiar > > > with VI out. Thanks... > > > > > > - Jeff > > > > > > > > > ------------------------------------------------------- > > > SF.Net email is Sponsored by the Better Software Conference & EXPO > > > September 19-22, 2005 * San Francisco, CA * Development > > > Lifecycle Practices > > > Agile & Plan-Driven Development * Managing Projects & Teams * > > > Testing & QA > > > Security * Process Improvement & Measurement * > > > http://www.sqe.com/bsce5sf > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > ::: Please include Nagios version, plugin version (-v) and OS > > > when reporting any issue. > > > ::: Messages without supporting info will risk being sent > to /dev/null > > > > > > > > > ------------------------------------------------------- > > SF.Net email is Sponsored by the Better Software Conference & EXPO > > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > Practices > > Agile & Plan-Driven Development * Managing Projects & Teams > * Testing & > QA > > Security * Process Improvement & Measurement * > http://www.sqe.com/bsce5sf > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > reporting > > any issue. > > ::: Messages without supporting info will risk being sent > to /dev/null > > > > > ______________________________________________________________________ > > This email has been scanned by the MessageLabs Email > Security System. > > For more information please visit http://www.messagelabs.com/email > > > ______________________________________________________________________ > > > > > > ------------------------------------------------------- > > SF.Net email is Sponsored by the Better Software Conference & EXPO > > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > Practices > > Agile & Plan-Driven Development * Managing Projects & Teams > * Testing & > QA > > Security * Process Improvement & Measurement * > http://www.sqe.com/bsce5sf > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > > reporting any issue. > > ::: Messages without supporting info will risk being sent > to /dev/null > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development > Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * > Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From amontibello at gmail.com Fri Aug 19 13:27:19 2005 From: amontibello at gmail.com (Anthony Montibello) Date: Fri, 19 Aug 2005 07:27:19 -0400 Subject: check_nt - COUNTER In-Reply-To: <626FC7C6A97381468FB872072AB5DDC801FEE1@XCH-SW-42.sw.nos.boeing.com> References: <626FC7C6A97381468FB872072AB5DDC801FEE1@XCH-SW-42.sw.nos.boeing.com> Message-ID: What Windows client are you connecting check_nt to? NC_Net or NS_Client becauses it may be a problem with the client and not check_nt NOTE: most applications will return a 0 for %processor time, because it is an value for the instant it is checked. The majority of % processor time whould ussually be on the agent that is doing the check and on System Idle. so double check via WMI or performance counter that the %processor time should be something other than 0. IT may be better to check something under System like threads or processes. NC_Net's newest version also allows for a ^ delimiter instead of all the \\ and ( ) thus if you were using NC_Net v2.28 or latter the you can use -l "^Process^hmi^Processor Time" naturally it still accepts the standard format as well provided it does not start with ^ however the syntex of your command should be: Example: check_nt -H hostname -p 12489 -v COUNTER -l "\\Process(hmi)\\% Processor Time"," " there should be a comma delimiter between the performance counter and the File section of your command because is not part of the performance counter. The label after the actual performance counter is an optional parameter. Hope this helps, Tony On 8/17/05, EXT-Fuentes, James P wrote: > Greetings list, > > I am using: > > check_nt -V > check_nt (nagios-plugins 1.4) 1.39 > > I've looked through the archives and attempted to use various examples found there but can't seem to get the info I am looking for. > > Specifically, I would like to look at different characteristics of a process. > > Example: check_nt -H hostname -p 12489 -v COUNTER -l "\\Process(hmi)\\% Processor Time " > > I've brought up the windows system monitor which clearly shows considerable resource consumption by this process but I still get nothing but "0" when I run this check. > > Does anybody have syntax examples of "Process" COUNTER checks that actually return something? > > TIA, > -Jim > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Fri Aug 19 15:08:08 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Fri, 19 Aug 2005 09:08:08 -0400 (EDT) Subject: check_smtp send message In-Reply-To: <20050818215518.155B44F4002@desire.netways.de> References: <20050818215518.155B44F4002@desire.netways.de> Message-ID: On Thu, 18 Aug 2005, David Gentry wrote: > Does anyone know if you can pass arguments to the check_smtp plugin, > and have it send a test email? I tried using the -C command, but > it doesnt work. I want to pass helo,mail from:(user),rcpt to:(usr),data > (message),. > > > No - check_smtp at this point does not allow you to pass a message. -- -sg ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tjl at topdanmark.dk Fri Aug 19 16:31:50 2005 From: tjl at topdanmark.dk (Thomas Jens Lauritsen) Date: Fri, 19 Aug 2005 16:31:50 +0200 Subject: Vedr.: Re: check_smtp send message Message-ID: Hello, Try a search on sendEmail - It's a commandline mailer. Then make a plugin script to make what you want...with this mailer.... Best regards Thomas ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From adisharon at gmail.com Fri Aug 19 16:52:33 2005 From: adisharon at gmail.com (Adi) Date: Fri, 19 Aug 2005 14:52:33 +0000 (UTC) Subject: Service Checks in pending state Message-ID: Hello im usgin nagios 1.2 and im getting really strange problem. when i start / restart the nagios service. im getting pending state and the information field says "Service check scheduled for Fri Aug 19 17:48:12 2005 ". ( the state retention is set to 0 ). after 60 seconds which is the page refresh settings im still getting PENDING state but now the information field says "Service check scheduled for Fri Aug 20 00:00:00 2005". and service checks are not scheduled. no matter how much restarts / starts i do it always schedule for tommorow 12:00 am. i double checked and there is only one running nagios proc. any one can help with this issue. thanks adi ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mpickering at charteroak.edu Fri Aug 19 17:58:42 2005 From: mpickering at charteroak.edu (Matt Pickering) Date: Fri, 19 Aug 2005 11:58:42 -0400 Subject: Nagios Reporting, Embedded CSV Message-ID: <0450F54245DF7C409406783F7D5F4E3001A68375@zeus.bsaa.pri> Hi All - I am looking into the Nagios reporting feature, and I followed the instructions under the Reporting menu, but for every host and service that I run a report, it shows them as being 100% Undetermined. Doesn't matter which host or service that I check. I have a feeling that I'm not set up for reporting, and I need to change a 0 to a 1 somewhere. Can't find it in the documentation, though. Any help is appreciated. Thanks, Matt > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Brian E. Seppanen > Sent: Wednesday, July 20, 2005 8:49 AM > To: nagios-users > Subject: [Nagios-users] Nagios Reporting, Embedded CSV > > Hello: > > I have several hosts running nagios, and I've been tasked with creating > service availability reports. In looking through the source code for > nagios-1.2 in avail.c it would appear that there are some options that > would enable creating reports in a comma seperated value format. I'm not > very C literate, so I'm not sure if this is just a base for future code, > or whether those options are actually available. Can I pass an option to > the cgi to create a csv report? Under the Reporting Menu, select Availability and follow the wizard. If you select All Hosts or All Services you have the option to output to CSV. Once you generate your desired report you can grab the link for it from the frame properties and process it however you like. > > Is there a nagios wiki? Anyone have pointers to good information > repository for dealing with nagios reporting? There's a wiki at http://www.nagiosexchange.org but it's new and there's not a lot of info there yet. -- Marc ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=ick _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pgoslin at amtrex.com Fri Aug 19 18:48:47 2005 From: pgoslin at amtrex.com (Paul Goslin) Date: Fri, 19 Aug 2005 09:48:47 -0700 Subject: Words of Wisdom for putting Nagios 1.2/1.4 plugins on SUSE SLES 9.1 Message-ID: Hi all, I have to take my Nagios 1.2/1.4 plugins and put it on a SUSE SLES 9.1, it was on a RH 7.3. [Due to a cooked server] I am fairly new to Linux (Nagios was my first server built from the ground up on RH 7.3). I recall seeing something about SUSE being different or at least needing to tweak SUSE for Nagios. Any assistance would be greatly appreciated, Paul ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From James.P.Fuentes at boeing.com Fri Aug 19 18:47:27 2005 From: James.P.Fuentes at boeing.com (EXT-Fuentes, James P) Date: Fri, 19 Aug 2005 09:47:27 -0700 Subject: check_nt - COUNTER Message-ID: <626FC7C6A97381468FB872072AB5DDC801FEE6@XCH-SW-42.sw.nos.boeing.com> > What Windows client are you connecting check_nt to? NC_Net or NS_Client > becauses it may be a problem with the client and not check_nt I'm using NSClient: NSClient++-0.2.4a.zip is the bundle I downloaded. > NOTE: most applications will return a 0 for %processor time, because > it is an value for the instant it is checked. The majority of % > processor time whould ussually be on the agent that is doing the > check and on System Idle. so double check via WMI or performance > counter that the %processor time should be something other than 0. IT > may be better to check something under System like threads or > processes. I've tried checking what you mentioned as well as some other things. I even tried checking on different systems which actually gave me some output so now I'm thinking there may be a problem with the particular system I really need to check. I'll have to investigate some more. > however the syntex of your command should be: > Example: check_nt -H hostname -p 12489 -v COUNTER -l > "\\Process(hmi)\\% Processor Time"," Processor Time> " Apparently, this %$%@& web mail client we're forced to use here put that crap in my message. I love how microsoft is always trying to help me out. I did NOT put that " wrote: > Greetings list, > > I am using: > > check_nt -V > check_nt (nagios-plugins 1.4) 1.39 > > I've looked through the archives and attempted to use various examples found there but can't seem to get the info I am looking for. > > Specifically, I would like to look at different characteristics of a process. > > Example: check_nt -H hostname -p 12489 -v COUNTER -l "\\Process(hmi)\\% Processor Time > " > > I've brought up the windows system monitor which clearly shows considerable resource consumption by this process but I still get nothing but "0" when I run this check. > > Does anybody have syntax examples of "Process" COUNTER checks that actually return something? > > TIA, > -Jim > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From harry.metske at flippo.demon.nl Fri Aug 19 19:09:45 2005 From: harry.metske at flippo.demon.nl (Harry Metske) Date: Fri, 19 Aug 2005 19:09:45 +0200 Subject: check_http plugin does not add : in Host: header Message-ID: <200508191909.45516.harry.metske@flippo.demon.nl> Hi, I'am new to this list, so forgive me any stupid questions. I'm using nagios 1.2 (feb 02 2004) and I'm trying to monitor applications running in WebSphere. I use the following chech_http command: check_http -H son1.rf.rabobank.nl -p 2210 -u /w5/dws_syst/PingServlet This gives a 404 response back, and after diagnosing the WebSphere trace, it appears that in the HTTP Headers sent by nagios, there is only the host name and not the port number 2210 (son1.rf.rabobank.nl instead of son1.rf.rabobank.nl:2210). In my opinion nagios should append :2210 in the case to the hostname, other http clients (browsers, JDKs) all do send the proper Host: header , including the :port . Is there a "hidden feature" or a way to get around it (except from changing the vhost definition on the server) ? I tried the following command: check_http -H 'son1.rf.rabobank.nl:2210' -p 2210 -u /w5/dws_syst/PingServlet But that gives me an "Invalid host name ...." response from the plugin. This sounds like a bug/restriction in check_http ? please advise, regards, Harry Metske ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From aloclarit at aol.com Fri Aug 19 19:19:52 2005 From: aloclarit at aol.com (aloclarit at aol.com) Date: Fri, 19 Aug 2005 13:19:52 -0400 Subject: fork() error Message-ID: <8C772F9583D46B4-9B0-3030@MBLK-M21.sysops.aol.com> guys I've been getting yeleld at left and right for false alarms which are caused by this error : blablablab could not be performed due to a fork() error. My log is filled with that. Am I running low on resources ? Nagios 1.2/Gentoo/2.6 I restarted nagios and it seems fine for now but I'm afraid this wil happen again. Alex ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bobby.bradshaw at gmail.com Fri Aug 19 20:43:47 2005 From: bobby.bradshaw at gmail.com (Bobby Bradshaw) Date: Fri, 19 Aug 2005 14:43:47 -0400 Subject: check_nt configurations/setup Message-ID: <591f191105081911431bf1822a@mail.gmail.com> Hi all, My Nagios setup is: Suse 9.3 Professional Nagios v1.2 Nagios plugins v1.4 Nagios nrpe v2.0 I have Nagios running correctly, sending notifications, checking ping and HTTP on several hosts. Although, I am having so much trouble trying to get Nagios to run "./check_nt -H 192.168.1.111 -v UPTIME" command without getting a "CRITICAL - Socket timeout after 10 seconds" error or any of the check_nt commands without an error. I have the Nsclient 2.01on my Windows XP host. Is there better documentation than what is provided with Nsclient? Can I get some pointers on ALL the cfg files that I have to edit to get the check_nt command to work. Thanks in advance! -- Bobby Bradshaw, Jr. bobby.bradshaw at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ae at op5.se Fri Aug 19 21:48:53 2005 From: ae at op5.se (Andreas Ericsson) Date: Fri, 19 Aug 2005 21:48:53 +0200 Subject: Words of Wisdom for putting Nagios 1.2/1.4 plugins on SUSE SLES 9.1 In-Reply-To: References: Message-ID: <430637A5.3010209@op5.se> Paul Goslin wrote: > Hi all, > I have to take my Nagios 1.2/1.4 plugins and put it on a SUSE SLES 9.1, > it was on a RH 7.3. [Due to a cooked server] > I am fairly new to Linux (Nagios was my first server built from the > ground up on RH 7.3). > I recall seeing something about SUSE being different or at least > needing to tweak SUSE for Nagios. > > Any assistance would be greatly appreciated, > As you haven't mentioned a specific problem, I think any assistance given would be equally vague, like "You could try setting the proper permissions" or "The correct libraries must be installed" or "APFQ (Ask A Proper Friggin' Question)". If you just want a step-by-step guide, you should call a consultant to do it for you. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From justin.shore at sktbcs.com Fri Aug 19 23:12:43 2005 From: justin.shore at sktbcs.com (Justin Shore) Date: Fri, 19 Aug 2005 16:12:43 -0500 Subject: Reclassifying an event's significance Message-ID: I have 2.0b4 monitoring a number of hosts that go down frequently, almost regularly. Even though we monitor them we do not care what their state is (unreachable, up, down, flaming, etc). These boxes are rebooted or are otherwise inaccessible at various time during the day due to numerous reasons. Is it possible to reclassify an unreachable or down state as nothing more than a simple warning at most or ideally not show up at all on the tactical overview? I do not want to get paged, nor do I want the web interface to send out any time of audible alert. Like I said before we do not care if these machines go offline. I wouldn't mind them showing up red in the status map. Other than that I want them to run silent. Scheduling downtime as needed for these hosts isn't an option. I also don't want to simply disable notifications for these hosts (what I'm currently doing). Having 2 dozen hosts' notifications listed as disabled prompts too many questions as to why they're disabled and causes too many people to be concerned. Is there a way to achieve this desired result without not monitoring these hosts at all and removing them from the config? Thanks Justin -- Justin Shore, Network Engineer SKT Business Communication Solutions Office: (316) 265-9555 x3217 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.338 / Virus Database: 267.10.13/78 - Release Date: 8/19/2005 ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From andrew at profitability.net Fri Aug 19 23:28:12 2005 From: andrew at profitability.net (Andrew Cruse) Date: Fri, 19 Aug 2005 17:28:12 -0400 Subject: Reclassifying an event's significance In-Reply-To: References: Message-ID: nagios-users-admin at lists.sourceforge.net wrote: > I have 2.0b4 monitoring a number of hosts that go down > frequently, almost regularly. Even though we monitor them we > do not care what their state is (unreachable, up, down, > flaming, etc). These boxes are rebooted or are otherwise > inaccessible at various time during the day due to numerous > reasons. Is it possible to reclassify an unreachable or down > state as nothing more than a simple warning at most or > ideally not show up at all on the tactical overview? I do > not want to get paged, nor do I want the web interface to > send out any time of audible alert. Like I said before we do > not care if these machines go offline. I wouldn't mind them > showing up red in the status map. Other than that I want > them to run silent. Scheduling downtime as needed for these > hosts isn't an option. I also don't want to simply disable > notifications for these hosts (what I'm currently doing). > Having 2 dozen hosts' notifications listed as disabled > prompts too many questions as to why they're disabled and > causes too many people to be concerned. Is there a way to > achieve this desired result without not monitoring these > hosts at all and removing them from the config? Why are you monitoring them if you don't want to know when they go down? But, to answer your question, why not change the host check to a dummy check that always returns ok, and then set each of the services for those hosts not to notify at any state. Andrew ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From drussell at mpifix.com Fri Aug 19 23:39:23 2005 From: drussell at mpifix.com (Danny Russell) Date: Fri, 19 Aug 2005 15:39:23 -0600 Subject: Services dependant on Host Message-ID: <028B223BB24E5443A9784BBE1CC5EBE04E4726@Lisa.mpifix.com> Is it possible that in dependencies you can be setup so that all of a Hosts services are dependant on the host being up? I have a Internet connection drop to a remote home/office and then I get 25 emails. One email saying that the host is down as well as the 24 services on the host. Thanks Danny Russell Mobile Productivity, Inc. drussell at mpifix.com work-801.437.5885 mbl-801.722.5837 Enabling the World To Work -------------- next part -------------- An HTML attachment was scrubbed... URL: From sghosh at sghosh.org Sat Aug 20 00:02:51 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Fri, 19 Aug 2005 18:02:51 -0400 (EDT) Subject: check_http plugin does not add : in Host: header In-Reply-To: <200508191909.45516.harry.metske@flippo.demon.nl> References: <200508191909.45516.harry.metske@flippo.demon.nl> Message-ID: On Fri, 19 Aug 2005, Harry Metske wrote: > Hi, > > I'am new to this list, so forgive me any stupid questions. > I'm using nagios 1.2 (feb 02 2004) and I'm trying to monitor applications running in WebSphere. > I use the following chech_http command: > > check_http -H son1.rf.rabobank.nl -p 2210 -u /w5/dws_syst/PingServlet > > This gives a 404 response back, and after diagnosing the WebSphere trace, it appears that in the HTTP Headers sent by nagios, there is only the host name > and not the port number 2210 (son1.rf.rabobank.nl instead of son1.rf.rabobank.nl:2210). > > In my opinion nagios should append :2210 in the case to the hostname, other http clients (browsers, JDKs) all do send the proper Host: header , including the :port . > > Is there a "hidden feature" or a way to get around it (except from changing the vhost definition on the server) ? > > I tried the following command: > check_http -H 'son1.rf.rabobank.nl:2210' -p 2210 -u /w5/dws_syst/PingServlet > > But that gives me an "Invalid host name ...." response from the plugin. > > This sounds like a bug/restriction in check_http ? > > please advise, > regards, > Harry Metske > This is a bug - Nobody has complained about it so far. ;) -- -sg ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jonsml at gmail.com Sat Aug 20 00:05:35 2005 From: jonsml at gmail.com (Jon) Date: Fri, 19 Aug 2005 18:05:35 -0400 Subject: check_nt - COUNTER In-Reply-To: <626FC7C6A97381468FB872072AB5DDC801FEE6@XCH-SW-42.sw.nos.boeing.com> References: <626FC7C6A97381468FB872072AB5DDC801FEE6@XCH-SW-42.sw.nos.boeing.com> Message-ID: <430657b0.6c596806.7a56.1321@mx.gmail.com> Did you download the NSClient from http://nsclient.ready2run.nl/download.htm ? The zip file comes with a readme.html that has examples how to use it. As for me I define the following in my checkcommands.cfg: # 'check_nt' command definition define command{ command_name check_nt command_line $USER1$/check_nt -H $HOSTADDRESS$ -v $ARG1$ -l $ARG2$ } (I use the host's IP address instead of the hostname) The $HOSTADDRESS$ nagios will pull from your hosts.cfg And then if you're checking multiple hosts it's better to define a hostgroup that will be using it. Also you have to define the service containing the 'check_command' like so: check_command check_nt!UPTIME If need to check other things such as processor time, you don't have to do anything except define a new service like so: check_command check_nt!COUNTER!"\Processor(_Total)\% Processor Time" I hope that works. I omit port number because I run nagios on the internal IP, but I hope I got that right and will help you out. -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of EXT-Fuentes, James P Sent: Friday, August 19, 2005 12:47 PM To: Anthony Montibello; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] check_nt - COUNTER > What Windows client are you connecting check_nt to? NC_Net or NS_Client > becauses it may be a problem with the client and not check_nt I'm using NSClient: NSClient++-0.2.4a.zip is the bundle I downloaded. > NOTE: most applications will return a 0 for %processor time, because > it is an value for the instant it is checked. The majority of % > processor time whould ussually be on the agent that is doing the > check and on System Idle. so double check via WMI or performance > counter that the %processor time should be something other than 0. IT > may be better to check something under System like threads or > processes. I've tried checking what you mentioned as well as some other things. I even tried checking on different systems which actually gave me some output so now I'm thinking there may be a problem with the particular system I really need to check. I'll have to investigate some more. > however the syntex of your command should be: > Example: check_nt -H hostname -p 12489 -v COUNTER -l > "\\Process(hmi)\\% Processor Time"," Processor Time> " Apparently, this %$%@& web mail client we're forced to use here put that crap in my message. I love how microsoft is always trying to help me out. I did NOT put that " wrote: > Greetings list, > > I am using: > > check_nt -V > check_nt (nagios-plugins 1.4) 1.39 > > I've looked through the archives and attempted to use various examples found there but can't seem to get the info I am looking for. > > Specifically, I would like to look at different characteristics of a process. > > Example: check_nt -H hostname -p 12489 -v COUNTER -l "\\Process(hmi)\\% Processor Time > " > > I've brought up the windows system monitor which clearly shows considerable resource consumption by this process but I still get nothing but "0" when I run this check. > > Does anybody have syntax examples of "Process" COUNTER checks that actually return something? > > TIA, > -Jim > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jonsml at gmail.com Sat Aug 20 00:33:32 2005 From: jonsml at gmail.com (Jon) Date: Fri, 19 Aug 2005 18:33:32 -0400 Subject: check_http plugin does not add : in Host: header In-Reply-To: <200508191909.45516.harry.metske@flippo.demon.nl> References: <200508191909.45516.harry.metske@flippo.demon.nl> Message-ID: <43065e3d.189f31d2.38db.ffffc8ec@mx.gmail.com> Hello, Is "son1.rf.rabobank.nl" the actual hostname? It's tough to get the check_http working, for me I hardcode it into my checkcommands.cfg. Basically I have: check_http -I www.xxx.yyy.zzz www.domain.com I specify where the actual server is with the IP then the address to do a GET on the top level. But I think you then add a more specific path to check with the -u option. Have you tried reading the help on check_http? That's how I figured it out. Go to the nagios/libexec directory and do a ./check_http -help to get more information on how to use it. HTH. -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Harry Metske Sent: Friday, August 19, 2005 1:10 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] check_http plugin does not add : in Host: header Hi, I'am new to this list, so forgive me any stupid questions. I'm using nagios 1.2 (feb 02 2004) and I'm trying to monitor applications running in WebSphere. I use the following chech_http command: check_http -H son1.rf.rabobank.nl -p 2210 -u /w5/dws_syst/PingServlet This gives a 404 response back, and after diagnosing the WebSphere trace, it appears that in the HTTP Headers sent by nagios, there is only the host name and not the port number 2210 (son1.rf.rabobank.nl instead of son1.rf.rabobank.nl:2210). In my opinion nagios should append :2210 in the case to the hostname, other http clients (browsers, JDKs) all do send the proper Host: header , including the :port . Is there a "hidden feature" or a way to get around it (except from changing the vhost definition on the server) ? I tried the following command: check_http -H 'son1.rf.rabobank.nl:2210' -p 2210 -u /w5/dws_syst/PingServlet But that gives me an "Invalid host name ...." response from the plugin. This sounds like a bug/restriction in check_http ? please advise, regards, Harry Metske ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lgetschel at denver.westerngeco.slb.com Sat Aug 20 00:38:55 2005 From: lgetschel at denver.westerngeco.slb.com (Lewis Getschel) Date: Fri, 19 Aug 2005 16:38:55 -0600 Subject: Reclassifying an event's significance In-Reply-To: References: Message-ID: <43065F7F.2040607@denver.westerngeco.slb.com> Besides using the 'check_dummy' plugin, how about setting up a dummy "Not Notified" group? Or set escalations to a huge value. (my 2 cents) Justin Shore wrote: >I have 2.0b4 monitoring a number of hosts that go down frequently, almost regularly. Even though we monitor them we do not care what their state is (unreachable, up, down, flaming, etc). These boxes are rebooted or are otherwise inaccessible at various time during the day due to numerous reasons. Is it possible to reclassify an unreachable or down state as nothing more than a simple warning at most or ideally not show up at all on the tactical overview? I do not want to get paged, nor do I want the web interface to send out any time of audible alert. Like I said before we do not care if these machines go offline. I wouldn't mind them showing up red in the status map. Other than that I want them to run silent. Scheduling downtime as needed for these hosts isn't an option. I also don't want to simply disable notifications for these hosts (what I'm currently doing). Having 2 dozen hosts' notifications listed as disabled prompts too many questions as to why they're disabled and causes too many people to be concerned. Is there a way to achieve this desired result without not monitoring these hosts at all and removing them from the config? > >Thanks > Justin > >-- >Justin Shore, Network Engineer >SKT Business Communication Solutions >Office: (316) 265-9555 x3217 > > > -- Lewis Getschel | Today is done... WesternGeco | Today was fun... 1625 Broadway | Tomorrow is another one. Denver, CO 80202 | Direct Phone - 303-389-4407| -- Dr. Seuss -- ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Sat Aug 20 17:30:04 2005 From: marc at ena.com (Marc Powell) Date: Sat, 20 Aug 2005 10:30:04 -0500 Subject: Services dependant on Host Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Danny Russell > Sent: Friday, August 19, 2005 4:39 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Services dependant on Host > > Is it possible that in dependencies you can be setup so that all of a > Hosts services are dependant on the host being up? I have a Internet > connection drop to a remote home/office and then I get 25 emails. One > email saying that the host is down as well as the 24 services on the host. Nagios does this by default presuming you have a valid host check_command that will return a CRITICAL state if the host is down. http://nagios.sourceforge.net/docs/1_0/networkreachability.html Second paragraph. -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From harry.metske at flippo.demon.nl Sat Aug 20 18:16:41 2005 From: harry.metske at flippo.demon.nl (Harry Metske) Date: Sat, 20 Aug 2005 18:16:41 +0200 Subject: check_http plugin does not add : in Host: header In-Reply-To: <43065e3d.189f31d2.38db.ffffc8ec@mx.gmail.com> References: <43065e3d.189f31d2.38db.ffffc8ec@mx.gmail.com> Message-ID: <200508201816.42242.harry.metske@flippo.demon.nl> Hello, thanks for the tip, it works when you specify both the -I and the -H option : ./check_http -I son1.rf.rabobank.nl -H son1.rf.rabobank.nl:2210 -p 2210 -u /w5/dws_syst/PingServlet ............ (so it's not a bug) thanks, Harry Metske On Saturday 20 August 2005 00:33, Jon wrote: > Hello, > > Is "son1.rf.rabobank.nl" the actual hostname? It's tough to get the > check_http working, for me I hardcode it into my checkcommands.cfg. > Basically I have: > > check_http -I www.xxx.yyy.zzz www.domain.com > > I specify where the actual server is with the IP then the address to do a > GET on the top level. But I think you then add a more specific path to > check with the -u option. > > Have you tried reading the help on check_http? That's how I figured it out. > Go to the nagios/libexec directory and do a ./check_http -help to get more > information on how to use it. > > HTH. > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Harry Metske > Sent: Friday, August 19, 2005 1:10 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] check_http plugin does not add : in Host: > header > > Hi, > > I'am new to this list, so forgive me any stupid questions. > I'm using nagios 1.2 (feb 02 2004) and I'm trying to monitor applications > running in WebSphere. > I use the following chech_http command: > > check_http -H son1.rf.rabobank.nl -p 2210 -u /w5/dws_syst/PingServlet > > This gives a 404 response back, and after diagnosing the WebSphere trace, it > appears that in the HTTP Headers sent by nagios, there is only the host name > and not the port number 2210 (son1.rf.rabobank.nl instead of > son1.rf.rabobank.nl:2210). > > In my opinion nagios should append :2210 in the case to the hostname, other > http clients (browsers, JDKs) all do send the proper Host: header , > including the :port . > > Is there a "hidden feature" or a way to get around it (except from changing > the vhost definition on the server) ? > > I tried the following command: > check_http -H 'son1.rf.rabobank.nl:2210' -p 2210 -u /w5/dws_syst/PingServlet > > But that gives me an "Invalid host name ...." response from the plugin. > > This sounds like a bug/restriction in check_http ? > > please advise, > regards, > Harry Metske > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nagios at jehster.net Sat Aug 20 20:54:00 2005 From: nagios at jehster.net (Roy Kidder) Date: Sat, 20 Aug 2005 14:54:00 -0400 (EDT) Subject: contacts question Message-ID: <37019.192.168.1.105.1124564040.squirrel@192.168.1.105> I'm trying to wrap my head around how to set up contacts/notifications for my instance of Nagios. The entities I monitor, can be split into two categories: important (for lack of a better term), non-important. For example, the core switch in my network is important, whereas a router in a remote location (connected via DSL) is non-important. I have two time periods I care about, 24x7, and business hours (bhours). I have the standard two email addresses: email and pager. I want to set up notifications thusly: critical alert + important element + 24x7 = page and email critical alert + non-important element + bhours = page and email critical alert + non-important element + non-bhours = email warning alert + important element + 24x7 = email warning alert + non-important element + 24x7 = email and obviously, I'd like to avoid duplicat alerts. I'd also like to have as few contact definitions per person as possible. Anyone have suggestions as to the best approach for this? Thanks in advance, Roy ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Sun Aug 21 00:56:30 2005 From: ae at op5.se (Andreas Ericsson) Date: Sun, 21 Aug 2005 00:56:30 +0200 Subject: contacts question In-Reply-To: <37019.192.168.1.105.1124564040.squirrel@192.168.1.105> References: <37019.192.168.1.105.1124564040.squirrel@192.168.1.105> Message-ID: <4307B51E.8090501@op5.se> Roy Kidder wrote: > I'm trying to wrap my head around how to set up contacts/notifications for > my instance of Nagios. > > The entities I monitor, can be split into two categories: important (for > lack of a better term), non-important. For example, the core switch in my > network is important, whereas a router in a remote location (connected via > DSL) is non-important. > > I have two time periods I care about, 24x7, and business hours (bhours). > > I have the standard two email addresses: email and pager. > > I want to set up notifications thusly: > > critical alert + important element + 24x7 = page and email > critical alert + non-important element + bhours = page and email > critical alert + non-important element + non-bhours = email > warning alert + important element + 24x7 = email > warning alert + non-important element + 24x7 = email > > and obviously, I'd like to avoid duplicat alerts. I'd also like to have as > few contact definitions per person as possible. Anyone have suggestions as > to the best approach for this? > There's no way of doing it without specifying dual contacts for every person. That's what you need to do when you want different notification options for the same people. As for the rest, two different host and service-templates should do the trick. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lmstone at rnome.com Sun Aug 21 05:00:44 2005 From: lmstone at rnome.com (L. Mark Stone) Date: Sat, 20 Aug 2005 23:00:44 -0400 Subject: Words of Wisdom for putting Nagios 1.2/1.4 plugins on SUSE SLES 9.1 In-Reply-To: <430637A5.3010209@op5.se> References: <430637A5.3010209@op5.se> Message-ID: <20050820230044.bybw7fk1pwoooosw@webmail.rnome.com> > Paul Goslin wrote: >> Hi all, >> I have to take my Nagios 1.2/1.4 plugins and put it on a SUSE SLES 9.1, >> it was on a RH 7.3. [Due to a cooked server] >> I am fairly new to Linux (Nagios was my first server built from the >> ground up on RH 7.3). >> I recall seeing something about SUSE being different or at least >> needing to tweak SUSE for Nagios. >> >> Any assistance would be greatly appreciated, I'd start by using the SuSE rpms and installing them with YaST. Then modify the /etc/nagios/ files for your situation. If you want to use nrpe to monitor the Nagios monitoring host, you will need to edit /etc/services to change the port definiton for port 1248 from hermes to nrpe, and then tweak the nrpe config file in xinet.d according to the nrpe readme located in the /usr/share/doc/packages tree. Make sure you install all of the appropriate nagios packages in YaST! We've done a bunch of Nagios installs on both SuSE Pro 9.1/9.2 as well as SLES9 (nagios 1.2 and 2.0bx). SuSE does put things in different places than Red Hat, but not that different (well, except probably the Gnome stuff, but that's another mailing list...) Good luck! Mark -- _________________________________________________________ A Message From... L. Mark Stone Reliable Networks of Maine, LLC "We manage your network so you can manage your business" 477 Congress Street Portland, ME 04101 Tel: (207) 772-5678 Web: http://www.rnome.com This email was sent from Reliable Networks of Maine LLC. It may contain information that is privileged and confidential. If you suspect that you were not intended to receive it, please delete it and notify us as soon as possible. Thank you. ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jnichols at pbp.net Sun Aug 21 06:41:09 2005 From: jnichols at pbp.net (Jonathan Nichols) Date: Sat, 20 Aug 2005 21:41:09 -0700 Subject: Nagios Web Seminar In-Reply-To: <3d2eb72a05081517177ec53407@mail.gmail.com> References: <3d2eb72a05081517177ec53407@mail.gmail.com> Message-ID: <430805E5.9000408@pbp.net> > If you're interested in the 3rd party software that's taking Nagios to > the next level, especially the Status Viewer UI I've developed, come > take a look. > Are you guys going to archive this at all? I'll be at work at that time, and my work PC is a complete pile of junk that barely meets the minimum system requirements for WebEx. ;) ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bobby.bradshaw at gmail.com Sat Aug 20 15:21:57 2005 From: bobby.bradshaw at gmail.com (Bobby Bradshaw) Date: Sat, 20 Aug 2005 09:21:57 -0400 Subject: check_nt configurations/setup Message-ID: <591f191105082006216015f283@mail.gmail.com> (I'm resending this email, because I never received it, sorry if this is a duplicate) Hi all, My Nagios setup is: Suse 9.3 Professional, Nagios v1.2, Nagios plugins v1.4, Nagios nrpe v2.0 I have Nagios running correctly, sending notifications, checking ping and HTTP on several hosts. Although, I am having so much trouble trying to get Nagios to run "./check_nt -H 192.168.1.111 -v UPTIME" command without getting a "CRITICAL - Socket timeout after 10 seconds" error or any of the check_nt commands without an error. I have the Nsclient 2.01on my Windows XP host. Is there better documentation than what is provided with Nsclient? Can I get some pointers on ALL the cfg files that I have to edit to get the check_nt command to work. Thanks in advance! -- Bobby Bradshaw, Jr. bobby.bradshaw at gmail.com ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Joseph.Petrucci at ddiworld.com Sun Aug 21 13:48:26 2005 From: Joseph.Petrucci at ddiworld.com (Petrucci, Joseph) Date: Sun, 21 Aug 2005 07:48:26 -0400 Subject: check_nt configurations/setup Message-ID: There are a few things you can check. First check that the "Nagios Agent" is running as a service on the Windows machine. Second check if port 1248 is opened between the Nagios machine and the Windows machine. These are first steps I would think you have already done, but since you didn't mention them I thought I would. If you have already done this post a description of the steps you have taken so far and there results so we can help further. Joseph A. Petrucci E Systems DBA ------------------------------------------------ Desk: 412-220-2646 Cell: 412-916-2867 Text message (e-mail) 4129162867 at mobile.att.net e-mail joseph.petrucci at ddiworld.com Personal Cell: 724-462-0443 Personal e-mail: japetrucci at hotmail.com ________________________________ From: nagios-users-admin at lists.sourceforge.net on behalf of Bobby Bradshaw Sent: Fri 8/19/2005 2:43 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] check_nt configurations/setup Hi all, My Nagios setup is: Suse 9.3 Professional Nagios v1.2 Nagios plugins v1.4 Nagios nrpe v2.0 I have Nagios running correctly, sending notifications, checking ping and HTTP on several hosts. Although, I am having so much trouble trying to get Nagios to run "./check_nt -H 192.168.1.111 -v UPTIME" command without getting a "CRITICAL - Socket timeout after 10 seconds" error or any of the check_nt commands without an error. I have the Nsclient 2.01 on my Windows XP host. Is there better documentation than what is provided with Nsclient? Can I get some pointers on ALL the cfg files that I have to edit to get the check_nt command to work. Thanks in advance! -- Bobby Bradshaw, Jr. bobby.bradshaw at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From bobby.bradshaw at gmail.com Sun Aug 21 16:55:52 2005 From: bobby.bradshaw at gmail.com (Bobby Bradshaw) Date: Sun, 21 Aug 2005 10:55:52 -0400 Subject: check_nt configurations/setup In-Reply-To: References: Message-ID: <591f191105082107555e80056b@mail.gmail.com> I changed the nrpe listening port to 1250, because I read somewhere that MS Exchange uses port 1248. So, I opened tcp port 1250 on both the nagios server and the windows xp host. I edited nrpe.cfg - the listening port to 1250 and added the xp host ip to allowed_hosts section. I added the following to command.cfg: command[check_nt_disk]=$USER1$/check_nt -H $HOSTADDRESS$ -p 1250 -v USEDDISKSPACE -l $ARG1$ -w $ARG2$ -c $ARG3$ command[check_nt_cpuload]=$USER1$/check_nt -H $HOSTADDRESS$ -p 1250 -v CPULOAD -l $ARG1$ command[check_nt_uptime]=$USER1$/check_nt -H $HOSTADDRESS$ -p 1250 -v UPTIME command[check_nt_service]=$USER1$/check_nt -H $HOSTADDRESS$ -P 1250 -v SERVICESTATE -l $ARG1$ command[check_nt_memuse]=$USER1$/check_nt -H $HOSTADDRESS$ -p 1250 -v MEMUSE -w $ARG1$ -c $ARG2$ Also, I have NOT edited checkcommands.cfg, because I don't know if I have to and not sure what to put in there if I do have to. Please advise if I am doing something wrong or if there is extra steps to be taken. Thanks! On 8/21/05, Petrucci, Joseph wrote: > > > There are a few things you can check. > First check that the "Nagios Agent" is running as a service on the Windows > machine. > Second check if port 1248 is opened between the Nagios machine and the > Windows machine. > > These are first steps I would think you have already done, but since you > didn't mention them I thought I would. > > If you have already done this post a description of the steps you have taken > so far and there results so we can help further. > > Joseph A. Petrucci E Systems > DBA ------------------------------------------------ Desk: > 412-220-2646 Cell: 412-916-2867 Text message (e-mail) > 4129162867 at mobile.att.net e-mail joseph.petrucci at ddiworld.com Personal Cell: > 724-462-0443 Personal e-mail: japetrucci at hotmail.com > > ________________________________ > From: nagios-users-admin at lists.sourceforge.net on behalf of > Bobby Bradshaw > Sent: Fri 8/19/2005 2:43 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] check_nt configurations/setup > > > Hi all, > > My Nagios setup is: > Suse 9.3 Professional > Nagios v1.2 > Nagios plugins v1.4 > Nagios nrpe v2.0 > > I have Nagios running correctly, sending notifications, checking ping and > HTTP on several hosts. Although, I am having so much trouble trying to get > Nagios to run "./check_nt -H 192.168.1.111 -v UPTIME" command without > getting a "CRITICAL - Socket timeout after 10 seconds" error or any of the > check_nt commands without an error. I have the Nsclient 2.01 on my Windows > XP host. Is there better documentation than what is provided with Nsclient? > Can I get some pointers on ALL the cfg files that I have to edit to get the > check_nt command to work. > > Thanks in advance! > > -- > Bobby Bradshaw, Jr. > bobby.bradshaw at gmail.com -- Bobby Bradshaw, Jr. bobby.bradshaw at gmail.com ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bobby.bradshaw at gmail.com Sun Aug 21 16:58:51 2005 From: bobby.bradshaw at gmail.com (Bobby Bradshaw) Date: Sun, 21 Aug 2005 10:58:51 -0400 Subject: check_nt configurations/setup In-Reply-To: References: Message-ID: <591f191105082107584f53c4a7@mail.gmail.com> Also, the Nagios agent is running as a service on the xp host, service was in the running state when I did the testing and I changed the registry setting of the nsclient to port 1250. Forgot to put that in the last post....Oops! On 8/21/05, Petrucci, Joseph wrote: > > > There are a few things you can check. > First check that the "Nagios Agent" is running as a service on the Windows > machine. > Second check if port 1248 is opened between the Nagios machine and the > Windows machine. > > These are first steps I would think you have already done, but since you > didn't mention them I thought I would. > > If you have already done this post a description of the steps you have taken > so far and there results so we can help further. > > Joseph A. Petrucci E Systems > DBA ------------------------------------------------ Desk: > 412-220-2646 Cell: 412-916-2867 Text message (e-mail) > 4129162867 at mobile.att.net e-mail joseph.petrucci at ddiworld.com Personal Cell: > 724-462-0443 Personal e-mail: japetrucci at hotmail.com > > ________________________________ > From: nagios-users-admin at lists.sourceforge.net on behalf of > Bobby Bradshaw > Sent: Fri 8/19/2005 2:43 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] check_nt configurations/setup > > > Hi all, > > My Nagios setup is: > Suse 9.3 Professional > Nagios v1.2 > Nagios plugins v1.4 > Nagios nrpe v2.0 > > I have Nagios running correctly, sending notifications, checking ping and > HTTP on several hosts. Although, I am having so much trouble trying to get > Nagios to run "./check_nt -H 192.168.1.111 -v UPTIME" command without > getting a "CRITICAL - Socket timeout after 10 seconds" error or any of the > check_nt commands without an error. I have the Nsclient 2.01 on my Windows > XP host. Is there better documentation than what is provided with Nsclient? > Can I get some pointers on ALL the cfg files that I have to edit to get the > check_nt command to work. > > Thanks in advance! > > -- > Bobby Bradshaw, Jr. > bobby.bradshaw at gmail.com -- Bobby Bradshaw, Jr. bobby.bradshaw at gmail.com ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Sun Aug 21 17:07:58 2005 From: ae at op5.se (Andreas Ericsson) Date: Sun, 21 Aug 2005 17:07:58 +0200 Subject: check_nt configurations/setup In-Reply-To: <591f191105082107555e80056b@mail.gmail.com> References: <591f191105082107555e80056b@mail.gmail.com> Message-ID: <430898CE.1010900@op5.se> Bobby Bradshaw wrote: > I changed the nrpe listening port to 1250, because I read somewhere > that MS Exchange uses port 1248. This is not exactly true. MS Exchange doesn't care what ports it uses, it just starts off at 1024 and keeps stealing ports upwards. If you want to be sure of not getting caught in the Exchange trap, use a port in the range 50000-65535. > So, I opened tcp port 1250 on both > the nagios server and the windows xp host. I edited nrpe.cfg - the > listening port to 1250 and added the xp host ip to allowed_hosts > section. I added the following to command.cfg: > > command[check_nt_disk]=$USER1$/check_nt -H $HOSTADDRESS$ -p 1250 -v > USEDDISKSPACE -l $ARG1$ -w $ARG2$ -c $ARG3$ > command[check_nt_cpuload]=$USER1$/check_nt -H $HOSTADDRESS$ -p 1250 -v > CPULOAD -l $ARG1$ > command[check_nt_uptime]=$USER1$/check_nt -H $HOSTADDRESS$ -p 1250 -v UPTIME > command[check_nt_service]=$USER1$/check_nt -H $HOSTADDRESS$ -P 1250 -v > SERVICESTATE -l $ARG1$ > command[check_nt_memuse]=$USER1$/check_nt -H $HOSTADDRESS$ -p 1250 -v > MEMUSE -w $ARG1$ -c $ARG2$ > > Also, I have NOT edited checkcommands.cfg, because I don't know if I > have to and not sure what to put in there if I do have to. > > Please advise if I am doing something wrong or if there is extra steps > to be taken. What's the problem, and what ports does nmap tell you are open? > Thanks! > > > On 8/21/05, Petrucci, Joseph wrote: > >> >>There are a few things you can check. >>First check that the "Nagios Agent" is running as a service on the Windows >>machine. >>Second check if port 1248 is opened between the Nagios machine and the >>Windows machine. >> >>These are first steps I would think you have already done, but since you >>didn't mention them I thought I would. >> >>If you have already done this post a description of the steps you have taken >>so far and there results so we can help further. >> >>Joseph A. Petrucci > > E Systems > >>DBA > > ------------------------------------------------ > Desk: > >>412-220-2646 > > Cell: 412-916-2867 > Text message (e-mail) > >>4129162867 at mobile.att.net > > e-mail joseph.petrucci at ddiworld.com > Personal Cell: > >>724-462-0443 > > Personal e-mail: japetrucci at hotmail.com > >>________________________________ >>From: nagios-users-admin at lists.sourceforge.net on behalf of >>Bobby Bradshaw >>Sent: Fri 8/19/2005 2:43 PM >>To: nagios-users at lists.sourceforge.net >>Subject: [Nagios-users] check_nt configurations/setup >> >> >>Hi all, >> >>My Nagios setup is: >>Suse 9.3 Professional >>Nagios v1.2 >>Nagios plugins v1.4 >>Nagios nrpe v2.0 >> >>I have Nagios running correctly, sending notifications, checking ping and >>HTTP on several hosts. Although, I am having so much trouble trying to get >>Nagios to run "./check_nt -H 192.168.1.111 -v UPTIME" command without >>getting a "CRITICAL - Socket timeout after 10 seconds" error or any of the >>check_nt commands without an error. I have the Nsclient 2.01 on my Windows >>XP host. Is there better documentation than what is provided with Nsclient? >> Can I get some pointers on ALL the cfg files that I have to edit to get the >>check_nt command to work. >> >>Thanks in advance! >> >>-- >>Bobby Bradshaw, Jr. >>bobby.bradshaw at gmail.com > > > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Joseph.Petrucci at ddiworld.com Sun Aug 21 21:27:29 2005 From: Joseph.Petrucci at ddiworld.com (Petrucci, Joseph) Date: Sun, 21 Aug 2005 15:27:29 -0400 Subject: check_nt configurations/setup Message-ID: Can you check if you can telnet to the machine from the Nagios machine. telnet machineIP 1250 Also if you change from the default port you need to put that in the command or it will try 1248. Joseph A. Petrucci E Systems DBA ------------------------------------------------ Desk: 412-220-2646 Cell: 412-916-2867 Text message (e-mail) 4129162867 at mobile.att.net e-mail joseph.petrucci at ddiworld.com Personal Cell: 724-462-0443 Personal e-mail: japetrucci at hotmail.com ________________________________ From: nagios-users-admin at lists.sourceforge.net on behalf of Andreas Ericsson Sent: Sun 8/21/2005 11:07 AM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] check_nt configurations/setup Bobby Bradshaw wrote: > I changed the nrpe listening port to 1250, because I read somewhere > that MS Exchange uses port 1248. This is not exactly true. MS Exchange doesn't care what ports it uses, it just starts off at 1024 and keeps stealing ports upwards. If you want to be sure of not getting caught in the Exchange trap, use a port in the range 50000-65535. > So, I opened tcp port 1250 on both > the nagios server and the windows xp host. I edited nrpe.cfg - the > listening port to 1250 and added the xp host ip to allowed_hosts > section. I added the following to command.cfg: > > command[check_nt_disk]=$USER1$/check_nt -H $HOSTADDRESS$ -p 1250 -v > USEDDISKSPACE -l $ARG1$ -w $ARG2$ -c $ARG3$ > command[check_nt_cpuload]=$USER1$/check_nt -H $HOSTADDRESS$ -p 1250 -v > CPULOAD -l $ARG1$ > command[check_nt_uptime]=$USER1$/check_nt -H $HOSTADDRESS$ -p 1250 -v UPTIME > command[check_nt_service]=$USER1$/check_nt -H $HOSTADDRESS$ -P 1250 -v > SERVICESTATE -l $ARG1$ > command[check_nt_memuse]=$USER1$/check_nt -H $HOSTADDRESS$ -p 1250 -v > MEMUSE -w $ARG1$ -c $ARG2$ > > Also, I have NOT edited checkcommands.cfg, because I don't know if I > have to and not sure what to put in there if I do have to. > > Please advise if I am doing something wrong or if there is extra steps > to be taken. What's the problem, and what ports does nmap tell you are open? > Thanks! > > > On 8/21/05, Petrucci, Joseph wrote: > >> >>There are a few things you can check. >>First check that the "Nagios Agent" is running as a service on the Windows >>machine. >>Second check if port 1248 is opened between the Nagios machine and the >>Windows machine. >> >>These are first steps I would think you have already done, but since you >>didn't mention them I thought I would. >> >>If you have already done this post a description of the steps you have taken >>so far and there results so we can help further. >> >>Joseph A. Petrucci > > E Systems > >>DBA > > ------------------------------------------------ > Desk: > >>412-220-2646 > > Cell: 412-916-2867 > Text message (e-mail) > >>4129162867 at mobile.att.net > > e-mail joseph.petrucci at ddiworld.com > Personal Cell: > >>724-462-0443 > > Personal e-mail: japetrucci at hotmail.com > >>________________________________ >>From: nagios-users-admin at lists.sourceforge.net on behalf of >>Bobby Bradshaw >>Sent: Fri 8/19/2005 2:43 PM >>To: nagios-users at lists.sourceforge.net >>Subject: [Nagios-users] check_nt configurations/setup >> >> >>Hi all, >> >>My Nagios setup is: >>Suse 9.3 Professional >>Nagios v1.2 >>Nagios plugins v1.4 >>Nagios nrpe v2.0 >> >>I have Nagios running correctly, sending notifications, checking ping and >>HTTP on several hosts. Although, I am having so much trouble trying to get >>Nagios to run "./check_nt -H 192.168.1.111 -v UPTIME" command without >>getting a "CRITICAL - Socket timeout after 10 seconds" error or any of the >>check_nt commands without an error. I have the Nsclient 2.01 on my Windows >>XP host. Is there better documentation than what is provided with Nsclient? >> Can I get some pointers on ALL the cfg files that I have to edit to get the >>check_nt command to work. >> >>Thanks in advance! >> >>-- >>Bobby Bradshaw, Jr. >>bobby.bradshaw at gmail.com > > > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- An HTML attachment was scrubbed... URL: From tdondich at gmail.com Sun Aug 21 21:32:23 2005 From: tdondich at gmail.com (Taylor Dondich) Date: Sun, 21 Aug 2005 12:32:23 -0700 Subject: Nagios Web Seminar In-Reply-To: <430805E5.9000408@pbp.net> References: <3d2eb72a05081517177ec53407@mail.gmail.com> <430805E5.9000408@pbp.net> Message-ID: <3d2eb72a050821123220a49a53@mail.gmail.com> The web seminar will be archived, and will be presented at 11am PST. Taylor On 8/20/05, Jonathan Nichols wrote: > > If you're interested in the 3rd party software that's taking Nagios to > > the next level, especially the Status Viewer UI I've developed, come > > take a look. > > > > Are you guys going to archive this at all? I'll be at work at that time, > and my work PC is a complete pile of junk that barely meets the minimum > system requirements for WebEx. ;) > > > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bobby.bradshaw at gmail.com Sun Aug 21 22:01:12 2005 From: bobby.bradshaw at gmail.com (Bobby Bradshaw) Date: Sun, 21 Aug 2005 16:01:12 -0400 Subject: check_nt configurations/setup In-Reply-To: References: Message-ID: <591f191105082113013e39a731@mail.gmail.com> Thanks! Now I can get the system uptime with this command "./check_nt -H (ip address) -v UPTIME -p 1250" from running the command while in the plugins directory. BUT, how do I put that in the cfg files and in which cfg files? Please advise. Thanks! On 8/21/05, Petrucci, Joseph wrote: > > Can you check if you can telnet to the machine from the Nagios machine. > > telnet machineIP 1250 > > Also if you change from the default port you need to put that in the command > or it will try 1248. > > Joseph A. Petrucci E Systems > DBA ------------------------------------------------ Desk: > 412-220-2646 Cell: 412-916-2867 Text message (e-mail) > 4129162867 at mobile.att.net e-mail joseph.petrucci at ddiworld.com Personal Cell: > 724-462-0443 Personal e-mail: japetrucci at hotmail.com > > ________________________________ > From: nagios-users-admin at lists.sourceforge.net on behalf of > Andreas Ericsson > Sent: Sun 8/21/2005 11:07 AM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] check_nt configurations/setup > > > > > Bobby Bradshaw wrote: > > I changed the nrpe listening port to 1250, because I read somewhere > > that MS Exchange uses port 1248. > > This is not exactly true. MS Exchange doesn't care what ports it uses, > it just starts off at 1024 and keeps stealing ports upwards. If you want > to be sure of not getting caught in the Exchange trap, use a port in the > range 50000-65535. > > > So, I opened tcp port 1250 on both > > the nagios server and the windows xp host. I edited nrpe.cfg - the > > listening port to 1250 and added the xp host ip to allowed_hosts > > section. I added the following to command.cfg: > > > > command[check_nt_disk]=$USER1$/check_nt -H $HOSTADDRESS$ > -p 1250 -v > > USEDDISKSPACE -l $ARG1$ -w $ARG2$ -c $ARG3$ > > command[check_nt_cpuload]=$USER1$/check_nt -H > $HOSTADDRESS$ -p 1250 -v > > CPULOAD -l $ARG1$ > > command[check_nt_uptime]=$USER1$/check_nt -H > $HOSTADDRESS$ -p 1250 -v UPTIME > > command[check_nt_service]=$USER1$/check_nt -H > $HOSTADDRESS$ -P 1250 -v > > SERVICESTATE -l $ARG1$ > > command[check_nt_memuse]=$USER1$/check_nt -H > $HOSTADDRESS$ -p 1250 -v > > MEMUSE -w $ARG1$ -c $ARG2$ > > > > Also, I have NOT edited checkcommands.cfg, because I don't know if I > > have to and not sure what to put in there if I do have to. > > > > Please advise if I am doing something wrong or if there is extra steps > > to be taken. > > What's the problem, and what ports does nmap tell you are open? > > > Thanks! > > > > > > On 8/21/05, Petrucci, Joseph wrote: > > > >> > >>There are a few things you can check. > >>First check that the "Nagios Agent" is running as a service on the Windows > >>machine. > >>Second check if port 1248 is opened between the Nagios machine and the > >>Windows machine. > >> > >>These are first steps I would think you have already done, but since you > >>didn't mention them I thought I would. > >> > >>If you have already done this post a description of the steps you have > taken > >>so far and there results so we can help further. > >> > >>Joseph A. Petrucci > > > > E Systems > > > >>DBA > > > > ------------------------------------------------ > > Desk: > > > >>412-220-2646 > > > > Cell: 412-916-2867 > > Text message (e-mail) > > > >>4129162867 at mobile.att.net > > > > e-mail joseph.petrucci at ddiworld.com > > Personal Cell: > > > >>724-462-0443 > > > > Personal e-mail: japetrucci at hotmail.com > > > >>________________________________ > >>From: nagios-users-admin at lists.sourceforge.net on behalf > of > >>Bobby Bradshaw > >>Sent: Fri 8/19/2005 2:43 PM > >>To: nagios-users at lists.sourceforge.net > >>Subject: [Nagios-users] check_nt configurations/setup > >> > >> > >>Hi all, > >> > >>My Nagios setup is: > >>Suse 9.3 Professional > >>Nagios v1.2 > >>Nagios plugins v1.4 > >>Nagios nrpe v2.0 > >> > >>I have Nagios running correctly, sending notifications, checking ping and > >>HTTP on several hosts. Although, I am having so much trouble trying to > get > >>Nagios to run "./check_nt -H 192.168.1.111 -v UPTIME" command without > >>getting a "CRITICAL - Socket timeout after 10 seconds" error or any of the > >>check_nt commands without an error. I have the Nsclient 2.01 on my > Windows > >>XP host. Is there better documentation than what is provided with > Nsclient? > >> Can I get some pointers on ALL the cfg files that I have to edit to get > the > >>check_nt command to work. > >> > >>Thanks in advance! > >> > >>-- > >>Bobby Bradshaw, Jr. > >>bobby.bradshaw at gmail.com > > > > > > > > -- > Andreas Ericsson andreas.ericsson at op5.se > OP5 AB www.op5.se > Lead Developer > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > -- Bobby Bradshaw, Jr. bobby.bradshaw at gmail.com ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jjk_saji at yahoo.com Mon Aug 22 08:13:13 2005 From: jjk_saji at yahoo.com (John Joseph) Date: Mon, 22 Aug 2005 07:13:13 +0100 (BST) Subject: =?iso-8859-1?q?Re:=20[Nagios-users]=20=20=20unknown=20variable=20:-=20for?= =?iso-8859-1?q?=20=93inter=5Fcheck=5Fdelay=5Fmethods=20and=20log=5Fpassive?= =?iso-8859-1?q?=5Fservice=5Fchecks=94=20in=20nagios.cfg=20?= In-Reply-To: <430468B6.3000406@op5.se> References: <430468B6.3000406@op5.se> Message-ID: <20050822061313.68090.qmail@web40829.mail.yahoo.com> Hi Andreas Thanks for the mail , I did try to help myself first , but some confusion arrived , I was using Nagios ?Nagios 2.0b4? , it worked fine , then I did install oreon , unfortunately the oreon was detecting the nagios installation as ?nagios1.2? and from ?oreon ? when I try to regenerate *.cfg files , this parameters which in only in 1.2 is coming to the nagios.cfg and was creating problems for me , and made me confused I will be reading more of the documents and I will be noting down where all I got stuck , planning to write to help people like me 1> A (Dummies guide) new comers quick , nagios setup with Orean 2> A (Dummiess Guide ) new comers quick Zabbix setup So that Thanks for your support --- Andreas Ericsson wrote: > This is because those variables have no meaning in > Nagios 2.0, as you > would have found out had you bothered to read the > docs (any of them, > really). > > ___________________________________________________________ How much free photo storage do you get? Store your holiday snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lee at effective-it.co.uk Mon Aug 22 13:12:25 2005 From: lee at effective-it.co.uk (Lee Ball) Date: Mon, 22 Aug 2005 12:12:25 +0100 Subject: Nagios CGIs Message-ID: <4309B319.1040503@effective-it.co.uk> Hello list, Sorry to email with this but there doesn't appear to be an active Nagios forum for English users anymore (once I understand Nagios more I plan on setting one up). A quick question, I appear to be missing some cgi files, these are: statusmap.cgi trends.cgi histogram.cgi The contents of my /usr/src/nagios/nagios-1.2/cgi/ directory which is where I installed from contains the following: [root at nagios cgi]# ls auth.c avail.cgi cgiutils.o config.cgi extinfo.c getcgi.o lifo.c Makefile.in outages.cgi showlog.c statusmap.c statuswrl.cgi tac.cgi auth.h cgiutils.c cmd.c edata.c extinfo.cgi histogram.c lifo.h notifications.c popen.c showlog.cgi statuswml.c summary.c trends.c auth.o cgiutils.h cmd.cgi edata.h getcgi.c history.c lifo.o notifications.cgi popen.h status.c statuswml.cgi summary.cgi avail.c cgiutils.h.in config.c edata.o getcgi.h history.cgi Makefile outages.c popen.o status.cgi statuswrl.c tac.c I followed the instructions on this page: http://www.nagios.org/faqs/viewfaq.php?faq_id=55 But it didn't appear to work. Does the /usr/src/nagios/nagios-1.2/cgi/ only get populated once the configure script is ran? The commands I used to recompile were: make devclean ./configure --prefix=/usr/local/nagios --with-gd-lib=/usr/local/lib --with-gd-inc=/usr/local/include make all make install Is there anything I can do to confirm I have the relevant dependancies? I'm sure I installed them, but I guess they might have slipped my list. Thanks for the help in advance ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Joseph.Petrucci at ddiworld.com Mon Aug 22 13:45:15 2005 From: Joseph.Petrucci at ddiworld.com (Petrucci, Joseph) Date: Mon, 22 Aug 2005 07:45:15 -0400 Subject: check_nt configurations/setup Message-ID: Change your checkcommand.cfg entry for it to look something like this #'check_nt_uptime' command definition define command{ command_name check_nt_uptime command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1250 -v UPTIME ) Then in your services.cfg use call check_nt_uptime without parameters Joseph A. Petrucci E Systems DBA ------------------------------------------------ Desk: 412-220-2646 Cell: 412-916-2867 Text message (e-mail) 4129162867 at mobile.att.net e-mail joseph.petrucci at ddiworld.com Personal Cell: 724-462-0443 Personal e-mail: japetrucci at hotmail.com ________________________________ From: Bobby Bradshaw [mailto:bobby.bradshaw at gmail.com] Sent: Sun 8/21/2005 4:01 PM To: Petrucci, Joseph Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] check_nt configurations/setup Thanks! Now I can get the system uptime with this command "./check_nt -H (ip address) -v UPTIME -p 1250" from running the command while in the plugins directory. BUT, how do I put that in the cfg files and in which cfg files? Please advise. Thanks! On 8/21/05, Petrucci, Joseph wrote: > > Can you check if you can telnet to the machine from the Nagios machine. > > telnet machineIP 1250 > > Also if you change from the default port you need to put that in the command > or it will try 1248. > > Joseph A. Petrucci E Systems > DBA ------------------------------------------------ Desk: > 412-220-2646 Cell: 412-916-2867 Text message (e-mail) > 4129162867 at mobile.att.net e-mail joseph.petrucci at ddiworld.com Personal Cell: > 724-462-0443 Personal e-mail: japetrucci at hotmail.com > > ________________________________ > From: nagios-users-admin at lists.sourceforge.net on behalf of > Andreas Ericsson > Sent: Sun 8/21/2005 11:07 AM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] check_nt configurations/setup > > > > > Bobby Bradshaw wrote: > > I changed the nrpe listening port to 1250, because I read somewhere > > that MS Exchange uses port 1248. > > This is not exactly true. MS Exchange doesn't care what ports it uses, > it just starts off at 1024 and keeps stealing ports upwards. If you want > to be sure of not getting caught in the Exchange trap, use a port in the > range 50000-65535. > > > So, I opened tcp port 1250 on both > > the nagios server and the windows xp host. I edited nrpe.cfg - the > > listening port to 1250 and added the xp host ip to allowed_hosts > > section. I added the following to command.cfg: > > > > command[check_nt_disk]=$USER1$/check_nt -H $HOSTADDRESS$ > -p 1250 -v > > USEDDISKSPACE -l $ARG1$ -w $ARG2$ -c $ARG3$ > > command[check_nt_cpuload]=$USER1$/check_nt -H > $HOSTADDRESS$ -p 1250 -v > > CPULOAD -l $ARG1$ > > command[check_nt_uptime]=$USER1$/check_nt -H > $HOSTADDRESS$ -p 1250 -v UPTIME > > command[check_nt_service]=$USER1$/check_nt -H > $HOSTADDRESS$ -P 1250 -v > > SERVICESTATE -l $ARG1$ > > command[check_nt_memuse]=$USER1$/check_nt -H > $HOSTADDRESS$ -p 1250 -v > > MEMUSE -w $ARG1$ -c $ARG2$ > > > > Also, I have NOT edited checkcommands.cfg, because I don't know if I > > have to and not sure what to put in there if I do have to. > > > > Please advise if I am doing something wrong or if there is extra steps > > to be taken. > > What's the problem, and what ports does nmap tell you are open? > > > Thanks! > > > > > > On 8/21/05, Petrucci, Joseph wrote: > > > >> > >>There are a few things you can check. > >>First check that the "Nagios Agent" is running as a service on the Windows > >>machine. > >>Second check if port 1248 is opened between the Nagios machine and the > >>Windows machine. > >> > >>These are first steps I would think you have already done, but since you > >>didn't mention them I thought I would. > >> > >>If you have already done this post a description of the steps you have > taken > >>so far and there results so we can help further. > >> > >>Joseph A. Petrucci > > > > E Systems > > > >>DBA > > > > ------------------------------------------------ > > Desk: > > > >>412-220-2646 > > > > Cell: 412-916-2867 > > Text message (e-mail) > > > >>4129162867 at mobile.att.net > > > > e-mail joseph.petrucci at ddiworld.com > > Personal Cell: > > > >>724-462-0443 > > > > Personal e-mail: japetrucci at hotmail.com > > > >>________________________________ > >>From: nagios-users-admin at lists.sourceforge.net on behalf > of > >>Bobby Bradshaw > >>Sent: Fri 8/19/2005 2:43 PM > >>To: nagios-users at lists.sourceforge.net > >>Subject: [Nagios-users] check_nt configurations/setup > >> > >> > >>Hi all, > >> > >>My Nagios setup is: > >>Suse 9.3 Professional > >>Nagios v1.2 > >>Nagios plugins v1.4 > >>Nagios nrpe v2.0 > >> > >>I have Nagios running correctly, sending notifications, checking ping and > >>HTTP on several hosts. Although, I am having so much trouble trying to > get > >>Nagios to run "./check_nt -H 192.168.1.111 -v UPTIME" command without > >>getting a "CRITICAL - Socket timeout after 10 seconds" error or any of the > >>check_nt commands without an error. I have the Nsclient 2.01 on my > Windows > >>XP host. Is there better documentation than what is provided with > Nsclient? > >> Can I get some pointers on ALL the cfg files that I have to edit to get > the > >>check_nt command to work. > >> > >>Thanks in advance! > >> > >>-- > >>Bobby Bradshaw, Jr. > >>bobby.bradshaw at gmail.com > > > > > > > > -- > Andreas Ericsson andreas.ericsson at op5.se > OP5 AB www.op5.se > Lead Developer > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > -- Bobby Bradshaw, Jr. bobby.bradshaw at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From lee at effective-it.co.uk Mon Aug 22 13:52:55 2005 From: lee at effective-it.co.uk (Lee Ball) Date: Mon, 22 Aug 2005 12:52:55 +0100 Subject: Nagios CGIs In-Reply-To: <4309B319.1040503@effective-it.co.uk> References: <4309B319.1040503@effective-it.co.uk> Message-ID: <4309BC97.6030800@effective-it.co.uk> Looks like I don't have the correct libraries installed: *** GD, PNG, and/or JPEG libraries could not be located... ********* Boutell's GD library is required to compile the statusmap, trends and histogram CGIs. Get it from http://www.boutell.com/gd/, compile it, and use the --with-gd-lib and --with-gd-inc arguments to specify the locations of the GD library and include files. NOTE: In addition to the gd-devel library, you'll also need to make sure you have the png-devel and jpeg-devel libraries installed on your system. NOTE: After you install the necessary libraries on your system: 1. Make sure /etc/ld.so.conf has an entry for the directory in which the GD, PNG, and JPEG libraries are installed. 2. Run 'ldconfig' to update the run-time linker options. 3. Run 'make clean' in the Nagios distribution to clean out any old references to your previous compile. 4. Rerun the configure script. NOTE: If you can't get the configure script to recognize the GD libs on your system, get over it and move on to other things. The CGIs that use the GD libs are just a small part of the entire Nagios package. Get everything else working first and then revisit the problem. Make sure to check the nagios-users mailing list archives for possible solutions to GD library problems when you resume your troubleshooting. I think I will revisit this once I have sorted out configuratation of services as I think I am going to have to install everything to test my procedure. Looks like I'll need to REALLY pay attention. You may as well disregard this until later. I had dependancy issues and file conflicts, I think because I used yum to install most of the gd packages. I guess I could try removing them and trying again but those features (trends, statusmap, histogram) will probably be most useful on a reinstall. Lee Ball wrote: > Hello list, > > Sorry to email with this but there doesn't appear to be an active > Nagios forum for English users anymore (once I understand Nagios more > I plan on setting one up). > > A quick question, I appear to be missing some cgi files, these are: > > statusmap.cgi > trends.cgi > histogram.cgi > > The contents of my /usr/src/nagios/nagios-1.2/cgi/ directory which is > where I installed from contains the following: > > [root at nagios cgi]# ls > auth.c avail.cgi cgiutils.o config.cgi extinfo.c > getcgi.o lifo.c Makefile.in outages.cgi showlog.c > statusmap.c statuswrl.cgi tac.cgi > auth.h cgiutils.c cmd.c edata.c extinfo.cgi > histogram.c lifo.h notifications.c popen.c showlog.cgi > statuswml.c summary.c trends.c > auth.o cgiutils.h cmd.cgi edata.h getcgi.c > history.c lifo.o notifications.cgi popen.h status.c > statuswml.cgi summary.cgi > avail.c cgiutils.h.in config.c edata.o getcgi.h > history.cgi Makefile outages.c popen.o status.cgi > statuswrl.c tac.c > > I followed the instructions on this page: > http://www.nagios.org/faqs/viewfaq.php?faq_id=55 > > But it didn't appear to work. Does the /usr/src/nagios/nagios-1.2/cgi/ > only get populated once the configure script is ran? > > The commands I used to recompile were: > > make devclean > ./configure --prefix=/usr/local/nagios --with-gd-lib=/usr/local/lib > --with-gd-inc=/usr/local/include > make all > make install > > Is there anything I can do to confirm I have the relevant > dependancies? I'm sure I installed them, but I guess they might have > slipped my list. > > Thanks for the help in advance > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing > & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. ::: Messages without supporting info will risk > being sent to /dev/null -- Lee Ball 08707 45 87 14 effective it. ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bobby.bradshaw at gmail.com Mon Aug 22 14:21:07 2005 From: bobby.bradshaw at gmail.com (Bobby Bradshaw) Date: Mon, 22 Aug 2005 08:21:07 -0400 Subject: check_nt configurations/setup In-Reply-To: References: Message-ID: <591f19110508220521704e0bc6@mail.gmail.com> Thank you very much! That worked. Also, I was able to get check_nt_MEMUSE working, too! :) That got the UPTIME to show, but when I try to run for CPULOAD, USEDDISKSPACE and SERVICESTATE it gives me an error saying "missing -L parameters". What is supposed to be supplied in the -L parameters of the command "./check_nt -H (ip address) -v USEDDISKSPACE -p 1250 -l" (also for cpuload and servicestate)??? Please advise. Thanks in advance. >On 8/22/05, Petrucci, Joseph wrote: > > Change your checkcommand.cfg entry for it to look something like this > > #'check_nt_uptime' command definition > define command{ > command_name check_nt_uptime > command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1250 -v UPTIME > ) > > Then in your services.cfg use call check_nt_uptime without parameters > Joseph A. Petrucci E Systems > DBA ------------------------------------------------ Desk: > 412-220-2646 Cell: 412-916-2867 Text message (e-mail) > 4129162867 at mobile.att.net e-mail joseph.petrucci at ddiworld.com Personal Cell: > 724-462-0443 Personal e-mail: japetrucci at hotmail.com > > ________________________________ > From: Bobby Bradshaw [mailto:bobby.bradshaw at gmail.com] > Sent: Sun 8/21/2005 4:01 PM > To: Petrucci, Joseph > Cc: nagios-users at lists.sourceforge.net > > Subject: Re: [Nagios-users] check_nt configurations/setup > > > > > Thanks! Now I can get the system uptime with this command "./check_nt > -H (ip address) -v UPTIME -p 1250" from running the command while in > the plugins directory. BUT, how do I put that in the cfg files and in > which cfg files? > > Please advise. Thanks! > > > > On 8/21/05, Petrucci, Joseph wrote: > > > > Can you check if you can telnet to the machine from the Nagios machine. > > > > telnet machineIP 1250 > > > > Also if you change from the default port you need to put that in the > command > > or it will try 1248. > > > > Joseph A. Petrucci > E Systems > > DBA > ------------------------------------------------ > Desk: > > 412-220-2646 > Cell: 412-916-2867 > Text message (e-mail) > > 4129162867 at mobile.att.net > e-mail joseph.petrucci at ddiworld.com > Personal Cell: > > 724-462-0443 > Personal e-mail: japetrucci at hotmail.com > > > > ________________________________ > > From: nagios-users-admin at lists.sourceforge.net on behalf > of > > Andreas Ericsson > > Sent: Sun 8/21/2005 11:07 AM > > To: nagios-users at lists.sourceforge.net > > Subject: Re: [Nagios-users] check_nt configurations/setup > > > > > > > > > > Bobby Bradshaw wrote: > > > I changed the nrpe listening port to 1250, because I read somewhere > > > that MS Exchange uses port 1248. > > > > This is not exactly true. MS Exchange doesn't care what ports it uses, > > it just starts off at 1024 and keeps stealing ports upwards. If you want > > to be sure of not getting caught in the Exchange trap, use a port in the > > range 50000-65535. > > > > > So, I opened tcp port 1250 on both > > > the nagios server and the windows xp host. I edited nrpe.cfg - the > > > listening port to 1250 and added the xp host ip to allowed_hosts > > > section. I added the following to command.cfg: > > > > > > command[check_nt_disk]=$USER1$/check_nt -H > $HOSTADDRESS$ > > -p 1250 -v > > > USEDDISKSPACE -l $ARG1$ -w $ARG2$ -c $ARG3$ > > > command[check_nt_cpuload]=$USER1$/check_nt -H > > $HOSTADDRESS$ -p 1250 -v > > > CPULOAD -l $ARG1$ > > > command[check_nt_uptime]=$USER1$/check_nt -H > > $HOSTADDRESS$ -p 1250 -v UPTIME > > > command[check_nt_service]=$USER1$/check_nt -H > > $HOSTADDRESS$ -P 1250 -v > > > SERVICESTATE -l $ARG1$ > > > command[check_nt_memuse]=$USER1$/check_nt -H > > $HOSTADDRESS$ -p 1250 -v > > > MEMUSE -w $ARG1$ -c $ARG2$ > > > > > > Also, I have NOT edited checkcommands.cfg, because I don't know if I > > > have to and not sure what to put in there if I do have to. > > > > > > Please advise if I am doing something wrong or if there is extra steps > > > to be taken. > > > > What's the problem, and what ports does nmap tell you are open? > > > > > Thanks! > > > > > > > > > On 8/21/05, Petrucci, Joseph wrote: > > > > > >> > > >>There are a few things you can check. > > >>First check that the "Nagios Agent" is running as a service on the > Windows > > >>machine. > > >>Second check if port 1248 is opened between the Nagios machine and the > > >>Windows machine. > > >> > > >>These are first steps I would think you have already done, but since you > > >>didn't mention them I thought I would. > > >> > > >>If you have already done this post a description of the steps you have > > taken > > >>so far and there results so we can help further. > > >> > > >>Joseph A. Petrucci > > > > > > E Systems > > > > > >>DBA > > > > > > ------------------------------------------------ > > > Desk: > > > > > >>412-220-2646 > > > > > > Cell: 412-916-2867 > > > Text message (e-mail) > > > > > >>4129162867 at mobile.att.net > > > > > > e-mail joseph.petrucci at ddiworld.com > > > Personal Cell: > > > > > >>724-462-0443 > > > > > > Personal e-mail: japetrucci at hotmail.com > > > > > >>________________________________ > > >>From: nagios-users-admin at lists.sourceforge.net on > behalf > > of > > >>Bobby Bradshaw > > >>Sent: Fri 8/19/2005 2:43 PM > > >>To: nagios-users at lists.sourceforge.net > > >>Subject: [Nagios-users] check_nt configurations/setup > > >> > > >> > > >>Hi all, > > >> > > >>My Nagios setup is: > > >>Suse 9.3 Professional > > >>Nagios v1.2 > > >>Nagios plugins v1.4 > > >>Nagios nrpe v2.0 > > >> > > >>I have Nagios running correctly, sending notifications, checking ping > and > > >>HTTP on several hosts. Although, I am having so much trouble trying to > > get > > >>Nagios to run "./check_nt -H 192.168.1.111 -v UPTIME" command without > > >>getting a "CRITICAL - Socket timeout after 10 seconds" error or any of > the > > >>check_nt commands without an error. I have the Nsclient 2.01 on my > > Windows > > >>XP host. Is there better documentation than what is provided with > > Nsclient? > > >> Can I get some pointers on ALL the cfg files that I have to edit to get > > the > > >>check_nt command to work. > > >> > > >>Thanks in advance! > > >> > > >>-- > > >>Bobby Bradshaw, Jr. > > >>bobby.bradshaw at gmail.com > > > > > > > > > > > > > -- > > Andreas Ericsson andreas.ericsson at op5.se > > OP5 AB www.op5.se > > Lead Developer > > > > > > ------------------------------------------------------- > > SF.Net email is Sponsored by the Better Software Conference & EXPO > > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > Practices > > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > reporting > > any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > > > > > -- > Bobby Bradshaw, Jr. > bobby.bradshaw at gmail.com > > -- Bobby Bradshaw, Jr. bobby.bradshaw at gmail.com ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Joseph.Petrucci at ddiworld.com Mon Aug 22 15:25:39 2005 From: Joseph.Petrucci at ddiworld.com (Petrucci, Joseph) Date: Mon, 22 Aug 2005 09:25:39 -0400 Subject: check_nt configurations/setup Message-ID: I do not remamber the parameter of fhand I know it was in the documentation in the zip file that nsclient was in. Joseph A. Petrucci E Systems DBA ------------------------------------------------ Desk: 412-220-2646 Cell: 412-916-2867 Text message (e-mail) 4129162867 at mobile.att.net e-mail joseph.petrucci at ddiworld.com Personal Cell: 724-462-0443 Personal e-mail: japetrucci at hotmail.com ________________________________ From: Bobby Bradshaw [mailto:bobby.bradshaw at gmail.com] Sent: Mon 8/22/2005 8:21 AM To: Petrucci, Joseph Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] check_nt configurations/setup Thank you very much! That worked. Also, I was able to get check_nt_MEMUSE working, too! :) That got the UPTIME to show, but when I try to run for CPULOAD, USEDDISKSPACE and SERVICESTATE it gives me an error saying "missing -L parameters". What is supposed to be supplied in the -L parameters of the command "./check_nt -H (ip address) -v USEDDISKSPACE -p 1250 -l" (also for cpuload and servicestate)??? Please advise. Thanks in advance. >On 8/22/05, Petrucci, Joseph wrote: > > Change your checkcommand.cfg entry for it to look something like this > > #'check_nt_uptime' command definition > define command{ > command_name check_nt_uptime > command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1250 -v UPTIME > ) > > Then in your services.cfg use call check_nt_uptime without parameters > Joseph A. Petrucci E Systems > DBA ------------------------------------------------ Desk: > 412-220-2646 Cell: 412-916-2867 Text message (e-mail) > 4129162867 at mobile.att.net e-mail joseph.petrucci at ddiworld.com Personal Cell: > 724-462-0443 Personal e-mail: japetrucci at hotmail.com > > ________________________________ > From: Bobby Bradshaw [mailto:bobby.bradshaw at gmail.com] > Sent: Sun 8/21/2005 4:01 PM > To: Petrucci, Joseph > Cc: nagios-users at lists.sourceforge.net > > Subject: Re: [Nagios-users] check_nt configurations/setup > > > > > Thanks! Now I can get the system uptime with this command "./check_nt > -H (ip address) -v UPTIME -p 1250" from running the command while in > the plugins directory. BUT, how do I put that in the cfg files and in > which cfg files? > > Please advise. Thanks! > > > > On 8/21/05, Petrucci, Joseph wrote: > > > > Can you check if you can telnet to the machine from the Nagios machine. > > > > telnet machineIP 1250 > > > > Also if you change from the default port you need to put that in the > command > > or it will try 1248. > > > > Joseph A. Petrucci > E Systems > > DBA > ------------------------------------------------ > Desk: > > 412-220-2646 > Cell: 412-916-2867 > Text message (e-mail) > > 4129162867 at mobile.att.net > e-mail joseph.petrucci at ddiworld.com > Personal Cell: > > 724-462-0443 > Personal e-mail: japetrucci at hotmail.com > > > > ________________________________ > > From: nagios-users-admin at lists.sourceforge.net on behalf > of > > Andreas Ericsson > > Sent: Sun 8/21/2005 11:07 AM > > To: nagios-users at lists.sourceforge.net > > Subject: Re: [Nagios-users] check_nt configurations/setup > > > > > > > > > > Bobby Bradshaw wrote: > > > I changed the nrpe listening port to 1250, because I read somewhere > > > that MS Exchange uses port 1248. > > > > This is not exactly true. MS Exchange doesn't care what ports it uses, > > it just starts off at 1024 and keeps stealing ports upwards. If you want > > to be sure of not getting caught in the Exchange trap, use a port in the > > range 50000-65535. > > > > > So, I opened tcp port 1250 on both > > > the nagios server and the windows xp host. I edited nrpe.cfg - the > > > listening port to 1250 and added the xp host ip to allowed_hosts > > > section. I added the following to command.cfg: > > > > > > command[check_nt_disk]=$USER1$/check_nt -H > $HOSTADDRESS$ > > -p 1250 -v > > > USEDDISKSPACE -l $ARG1$ -w $ARG2$ -c $ARG3$ > > > command[check_nt_cpuload]=$USER1$/check_nt -H > > $HOSTADDRESS$ -p 1250 -v > > > CPULOAD -l $ARG1$ > > > command[check_nt_uptime]=$USER1$/check_nt -H > > $HOSTADDRESS$ -p 1250 -v UPTIME > > > command[check_nt_service]=$USER1$/check_nt -H > > $HOSTADDRESS$ -P 1250 -v > > > SERVICESTATE -l $ARG1$ > > > command[check_nt_memuse]=$USER1$/check_nt -H > > $HOSTADDRESS$ -p 1250 -v > > > MEMUSE -w $ARG1$ -c $ARG2$ > > > > > > Also, I have NOT edited checkcommands.cfg, because I don't know if I > > > have to and not sure what to put in there if I do have to. > > > > > > Please advise if I am doing something wrong or if there is extra steps > > > to be taken. > > > > What's the problem, and what ports does nmap tell you are open? > > > > > Thanks! > > > > > > > > > On 8/21/05, Petrucci, Joseph wrote: > > > > > >> > > >>There are a few things you can check. > > >>First check that the "Nagios Agent" is running as a service on the > Windows > > >>machine. > > >>Second check if port 1248 is opened between the Nagios machine and the > > >>Windows machine. > > >> > > >>These are first steps I would think you have already done, but since you > > >>didn't mention them I thought I would. > > >> > > >>If you have already done this post a description of the steps you have > > taken > > >>so far and there results so we can help further. > > >> > > >>Joseph A. Petrucci > > > > > > E Systems > > > > > >>DBA > > > > > > ------------------------------------------------ > > > Desk: > > > > > >>412-220-2646 > > > > > > Cell: 412-916-2867 > > > Text message (e-mail) > > > > > >>4129162867 at mobile.att.net > > > > > > e-mail joseph.petrucci at ddiworld.com > > > Personal Cell: > > > > > >>724-462-0443 > > > > > > Personal e-mail: japetrucci at hotmail.com > > > > > >>________________________________ > > >>From: nagios-users-admin at lists.sourceforge.net on > behalf > > of > > >>Bobby Bradshaw > > >>Sent: Fri 8/19/2005 2:43 PM > > >>To: nagios-users at lists.sourceforge.net > > >>Subject: [Nagios-users] check_nt configurations/setup > > >> > > >> > > >>Hi all, > > >> > > >>My Nagios setup is: > > >>Suse 9.3 Professional > > >>Nagios v1.2 > > >>Nagios plugins v1.4 > > >>Nagios nrpe v2.0 > > >> > > >>I have Nagios running correctly, sending notifications, checking ping > and > > >>HTTP on several hosts. Although, I am having so much trouble trying to > > get > > >>Nagios to run "./check_nt -H 192.168.1.111 -v UPTIME" command without > > >>getting a "CRITICAL - Socket timeout after 10 seconds" error or any of > the > > >>check_nt commands without an error. I have the Nsclient 2.01 on my > > Windows > > >>XP host. Is there better documentation than what is provided with > > Nsclient? > > >> Can I get some pointers on ALL the cfg files that I have to edit to get > > the > > >>check_nt command to work. > > >> > > >>Thanks in advance! > > >> > > >>-- > > >>Bobby Bradshaw, Jr. > > >>bobby.bradshaw at gmail.com > > > > > > > > > > > > > -- > > Andreas Ericsson andreas.ericsson at op5.se > > OP5 AB www.op5.se > > Lead Developer > > > > > > ------------------------------------------------------- > > SF.Net email is Sponsored by the Better Software Conference & EXPO > > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > Practices > > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > reporting > > any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > > > > > -- > Bobby Bradshaw, Jr. > bobby.bradshaw at gmail.com > > -- Bobby Bradshaw, Jr. bobby.bradshaw at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From marc at ena.com Mon Aug 22 15:35:18 2005 From: marc at ena.com (Marc Powell) Date: Mon, 22 Aug 2005 08:35:18 -0500 Subject: Nagios CGIs Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Lee Ball > Sent: Monday, August 22, 2005 6:53 AM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Nagios CGIs > > Looks like I don't have the correct libraries installed: > > *** GD, PNG, and/or JPEG libraries could not be located... ********* > > Boutell's GD library is required to compile the statusmap, trends > and histogram CGIs. Get it from http://www.boutell.com/gd/, compile > it, and use the --with-gd-lib and --with-gd-inc arguments to specify > the locations of the GD library and include files. > [snip] > You may as well disregard this until later. I had dependancy issues and > file conflicts, I think because I used yum to install most of the gd > packages. I guess I could try removing them and trying again but those > features (trends, statusmap, histogram) will probably be most useful on > a reinstall. For future reference, this is noted in the FAQ, although not yum specific. -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From frederik.vanhee at perso.be Mon Aug 22 15:46:27 2005 From: frederik.vanhee at perso.be (Frederik Vanhee) Date: Mon, 22 Aug 2005 15:46:27 +0200 Subject: temperature sensors Message-ID: <4309D733.6020403@perso.be> Hello out there, what kind of temperature sensors are you using to measure the temperature in the computerroom for example ? Network connection is necessary. Any experience with the Esensors promoted on the Nagios website ? Thanks, Frederik ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ddycus at hubbardone.com Mon Aug 22 15:53:47 2005 From: ddycus at hubbardone.com (Dan Dycus) Date: Mon, 22 Aug 2005 08:53:47 -0500 Subject: temperature sensors Message-ID: <60DBA75417975F4FB478C90A01B4905B03323310@chopsmx2.hubbardone.net> I've used Temptrax in the past with great success. http://www.openxtra.co.uk/products/temptrax.php Dan Dycus Senior Systems Engineer -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddycus at hubbardone.com Mon Aug 22 15:57:36 2005 From: ddycus at hubbardone.com (Dan Dycus) Date: Mon, 22 Aug 2005 08:57:36 -0500 Subject: temperature sensors Message-ID: <60DBA75417975F4FB478C90A01B4905B03323313@chopsmx2.hubbardone.net> I've used Temptrax in the past with great success. http://www.openxtra.co.uk/products/temptrax.php Dan Dycus Senior Systems Engineer -------------- next part -------------- An HTML attachment was scrubbed... URL: From Joseph.Petrucci at ddiworld.com Mon Aug 22 16:09:18 2005 From: Joseph.Petrucci at ddiworld.com (Petrucci, Joseph) Date: Mon, 22 Aug 2005 10:09:18 -0400 Subject: temperature sensors Message-ID: I have just setup the esensor in my QA lab and so far it seems to be working fine. Joseph A. Petrucci E Systems DBA ------------------------------------------------ Desk: 412-220-2646 Cell: 412-916-2867 Text message (e-mail) 4129162867 at mobile.att.net e-mail joseph.petrucci at ddiworld.com Personal Cell: 724-462-0443 Personal e-mail: japetrucci at hotmail.com ________________________________ From: nagios-users-admin at lists.sourceforge.net on behalf of Frederik Vanhee Sent: Mon 8/22/2005 9:46 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] temperature sensors Hello out there, what kind of temperature sensors are you using to measure the temperature in the computerroom for example ? Network connection is necessary. Any experience with the Esensors promoted on the Nagios website ? Thanks, Frederik ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- An HTML attachment was scrubbed... URL: From mykea at SES-Ins.COM Mon Aug 22 16:26:45 2005 From: mykea at SES-Ins.COM (Michael Adams) Date: Mon, 22 Aug 2005 07:26:45 -0700 Subject: temperature sensors In-Reply-To: <4309D733.6020403@perso.be> References: <4309D733.6020403@perso.be> Message-ID: <200508221423.HAA13517@lincoln.SES-Ins.COM> I have been using a TempTrax sensor for a couple of years now and it has been flawless. ------------------------------------ SES Insurance Services, Inc. ------------------------------------ Michael Adams Senior Systems Network Administrator michael.adams at ses-ins.com ------------------------------------ -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Frederik Vanhee Sent: Monday, August 22, 2005 6:46 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] temperature sensors Hello out there, what kind of temperature sensors are you using to measure the temperature in the computerroom for example ? Network connection is necessary. Any experience with the Esensors promoted on the Nagios website ? Thanks, Frederik ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From christian.masopust at siemens.com Mon Aug 22 16:34:29 2005 From: christian.masopust at siemens.com (Masopust Christian) Date: Mon, 22 Aug 2005 16:34:29 +0200 Subject: temperature sensors Message-ID: as i remarked here some times ago i built some of them myself.. (total cost was about 20EUR)... if you're interessted, don't hesitate to contact me chris > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf > Of Frederik Vanhee > Sent: Monday, August 22, 2005 3:46 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] temperature sensors > > Hello out there, > > what kind of temperature sensors are you using to measure the > temperature in the computerroom for example ? > Network connection is necessary. > Any experience with the Esensors promoted on the Nagios website ? > > Thanks, > > Frederik > > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development > Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * > Testing & QA > Security * Process Improvement & Measurement * > http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Lutz.Koop.external at astrium.eads.net Mon Aug 22 16:44:30 2005 From: Lutz.Koop.external at astrium.eads.net (Koop, Lutz (external)) Date: Mon, 22 Aug 2005 16:44:30 +0200 Subject: AW: temperature sensors Message-ID: <7579CAECCAF7D211B9600008C79139D80BA8C3E1@exdssfdh01.south.de.astrium.corp> www.digitemp.com kind regards Lutz Koop -----Urspr?ngliche Nachricht----- Von: Frederik Vanhee [mailto:frederik.vanhee at perso.be] Gesendet: Montag, 22. August 2005 15:46 An: nagios-users at lists.sourceforge.net Betreff: [Nagios-users] temperature sensors Hello out there, what kind of temperature sensors are you using to measure the temperature in the computerroom for example ? Network connection is necessary. Any experience with the Esensors promoted on the Nagios website ? Thanks, Frederik ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ddycus at hubbardone.com Mon Aug 22 17:15:07 2005 From: ddycus at hubbardone.com (Dan Dycus) Date: Mon, 22 Aug 2005 10:15:07 -0500 Subject: check_nt configurations/setup Message-ID: <60DBA75417975F4FB478C90A01B4905B03323361@chopsmx2.hubbardone.net> Make sure you have the nsclient service running on the remote server you are trying to connect to. Also, make sure that if you have a firewall on that box that you allow port 1248 inbound. Dan Dycus Senior Systems Engineer -------------- next part -------------- An HTML attachment was scrubbed... URL: From bobby.bradshaw at gmail.com Mon Aug 22 17:18:48 2005 From: bobby.bradshaw at gmail.com (Bobby Bradshaw) Date: Mon, 22 Aug 2005 11:18:48 -0400 Subject: check_nt configurations/setup In-Reply-To: References: Message-ID: <591f191105082208183bbe2678@mail.gmail.com> Found it. Thank you guys very much. Much appreciated. On 8/22/05, Petrucci, Joseph wrote: > > I do not remamber the parameter of fhand I know it was in the documentation > in the zip file that nsclient was in. > > Joseph A. Petrucci E Systems > DBA ------------------------------------------------ Desk: > 412-220-2646 Cell: 412-916-2867 Text message (e-mail) > 4129162867 at mobile.att.net e-mail joseph.petrucci at ddiworld.com Personal Cell: > 724-462-0443 Personal e-mail: japetrucci at hotmail.com > > ________________________________ > From: Bobby Bradshaw [mailto:bobby.bradshaw at gmail.com] > Sent: Mon 8/22/2005 8:21 AM > > To: Petrucci, Joseph > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] check_nt configurations/setup > > > > > Thank you very much! That worked. Also, I was able to get > check_nt_MEMUSE working, too! :) > > That got the UPTIME to show, but when I try to run for CPULOAD, > USEDDISKSPACE and SERVICESTATE it gives me an error saying "missing -L > parameters". What is supposed to be supplied in the -L parameters of > the command "./check_nt -H (ip address) -v USEDDISKSPACE -p 1250 -l" > (also for cpuload and servicestate)??? > > Please advise. Thanks in advance. > > > >On 8/22/05, Petrucci, Joseph wrote: > > > > Change your checkcommand.cfg entry for it to look something like this > > > > #'check_nt_uptime' command definition > > define command{ > > command_name check_nt_uptime > > command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1250 -v > UPTIME > > ) > > > > Then in your services.cfg use call check_nt_uptime without parameters > > Joseph A. Petrucci > E Systems > > DBA > ------------------------------------------------ > Desk: > > 412-220-2646 > Cell: 412-916-2867 > Text message (e-mail) > > 4129162867 at mobile.att.net > e-mail joseph.petrucci at ddiworld.com > Personal Cell: > > 724-462-0443 > Personal e-mail: japetrucci at hotmail.com > > > > ________________________________ > > From: Bobby Bradshaw [mailto:bobby.bradshaw at gmail.com] > > Sent: Sun 8/21/2005 4:01 PM > > To: Petrucci, Joseph > > Cc: nagios-users at lists.sourceforge.net > > > > Subject: Re: [Nagios-users] check_nt configurations/setup > > > > > > > > > > Thanks! Now I can get the system uptime with this command "./check_nt > > -H (ip address) -v UPTIME -p 1250" from running the command while in > > the plugins directory. BUT, how do I put that in the cfg files and in > > which cfg files? > > > > Please advise. Thanks! > > > > > > > > On 8/21/05, Petrucci, Joseph wrote: > > > > > > Can you check if you can telnet to the machine from the Nagios machine. > > > > > > telnet machineIP 1250 > > > > > > Also if you change from the default port you need to put that in the > > command > > > or it will try 1248. > > > > > > Joseph A. Petrucci > > E Systems > > > DBA > > ------------------------------------------------ > > Desk: > > > 412-220-2646 > > Cell: 412-916-2867 > > Text message (e-mail) > > > 4129162867 at mobile.att.net > > e-mail joseph.petrucci at ddiworld.com > > Personal Cell: > > > 724-462-0443 > > Personal e-mail: japetrucci at hotmail.com > > > > > > ________________________________ > > > From: nagios-users-admin at lists.sourceforge.net on > behalf > > of > > > Andreas Ericsson > > > Sent: Sun 8/21/2005 11:07 AM > > > To: nagios-users at lists.sourceforge.net > > > Subject: Re: [Nagios-users] check_nt configurations/setup > > > > > > > > > > > > > > > Bobby Bradshaw wrote: > > > > I changed the nrpe listening port to 1250, because I read somewhere > > > > that MS Exchange uses port 1248. > > > > > > This is not exactly true. MS Exchange doesn't care what ports it uses, > > > it just starts off at 1024 and keeps stealing ports upwards. If you want > > > to be sure of not getting caught in the Exchange trap, use a port in the > > > range 50000-65535. > > > > > > > So, I opened tcp port 1250 on both > > > > the nagios server and the windows xp host. I edited nrpe.cfg - the > > > > listening port to 1250 and added the xp host ip to allowed_hosts > > > > section. I added the following to command.cfg: > > > > > > > > command[check_nt_disk]=$USER1$/check_nt -H > > $HOSTADDRESS$ > > > -p 1250 -v > > > > USEDDISKSPACE -l $ARG1$ -w $ARG2$ -c $ARG3$ > > > > command[check_nt_cpuload]=$USER1$/check_nt -H > > > $HOSTADDRESS$ -p 1250 -v > > > > CPULOAD -l $ARG1$ > > > > command[check_nt_uptime]=$USER1$/check_nt -H > > > $HOSTADDRESS$ -p 1250 -v UPTIME > > > > command[check_nt_service]=$USER1$/check_nt -H > > > $HOSTADDRESS$ -P 1250 -v > > > > SERVICESTATE -l $ARG1$ > > > > command[check_nt_memuse]=$USER1$/check_nt -H > > > $HOSTADDRESS$ -p 1250 -v > > > > MEMUSE -w $ARG1$ -c $ARG2$ > > > > > > > > Also, I have NOT edited checkcommands.cfg, because I don't know if I > > > > have to and not sure what to put in there if I do have to. > > > > > > > > Please advise if I am doing something wrong or if there is extra steps > > > > to be taken. > > > > > > What's the problem, and what ports does nmap tell you are open? > > > > > > > Thanks! > > > > > > > > > > > > On 8/21/05, Petrucci, Joseph wrote: > > > > > > > >> > > > >>There are a few things you can check. > > > >>First check that the "Nagios Agent" is running as a service on the > > Windows > > > >>machine. > > > >>Second check if port 1248 is opened between the Nagios machine and the > > > >>Windows machine. > > > >> > > > >>These are first steps I would think you have already done, but since > you > > > >>didn't mention them I thought I would. > > > >> > > > >>If you have already done this post a description of the steps you have > > > taken > > > >>so far and there results so we can help further. > > > >> > > > >>Joseph A. Petrucci > > > > > > > > E Systems > > > > > > > >>DBA > > > > > > > > ------------------------------------------------ > > > > Desk: > > > > > > > >>412-220-2646 > > > > > > > > Cell: 412-916-2867 > > > > Text message (e-mail) > > > > > > > >>4129162867 at mobile.att.net > > > > > > > > e-mail joseph.petrucci at ddiworld.com > > > > Personal Cell: > > > > > > > >>724-462-0443 > > > > > > > > Personal e-mail: japetrucci at hotmail.com > > > > > > > >>________________________________ > > > >>From: nagios-users-admin at lists.sourceforge.net on > > behalf > > > of > > > >>Bobby Bradshaw > > > >>Sent: Fri 8/19/2005 2:43 PM > > > >>To: nagios-users at lists.sourceforge.net > > > >>Subject: [Nagios-users] check_nt configurations/setup > > > >> > > > >> > > > >>Hi all, > > > >> > > > >>My Nagios setup is: > > > >>Suse 9.3 Professional > > > >>Nagios v1.2 > > > >>Nagios plugins v1.4 > > > >>Nagios nrpe v2.0 > > > >> > > > >>I have Nagios running correctly, sending notifications, checking ping > > and > > > >>HTTP on several hosts. Although, I am having so much trouble trying > to > > > get > > > >>Nagios to run "./check_nt -H 192.168.1.111 -v UPTIME" command without > > > >>getting a "CRITICAL - Socket timeout after 10 seconds" error or any of > > the > > > >>check_nt commands without an error. I have the Nsclient 2.01 on my > > > Windows > > > >>XP host. Is there better documentation than what is provided with > > > Nsclient? > > > >> Can I get some pointers on ALL the cfg files that I have to edit to > get > > > the > > > >>check_nt command to work. > > > >> > > > >>Thanks in advance! > > > >> > > > >>-- > > > >>Bobby Bradshaw, Jr. > > > >>bobby.bradshaw at gmail.com > > > > > > > > > > > > > > > > > > -- > > > Andreas Ericsson andreas.ericsson at op5.se > > > OP5 AB www.op5.se > > > Lead Developer > > > > > > > > > ------------------------------------------------------- > > > SF.Net email is Sponsored by the Better Software Conference & EXPO > > > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > > Practices > > > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & > QA > > > Security * Process Improvement & Measurement * > http://www.sqe.com/bsce5sf > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > ::: Please include Nagios version, plugin version (-v) and OS when > > reporting > > > any issue. > > > ::: Messages without supporting info will risk being sent to /dev/null > > > > > > > > > > > > -- > > Bobby Bradshaw, Jr. > > bobby.bradshaw at gmail.com > > > > > > > -- > Bobby Bradshaw, Jr. > bobby.bradshaw at gmail.com > > -- Bobby Bradshaw, Jr. bobby.bradshaw at gmail.com ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From csmith at radioframenetworks.com Mon Aug 22 17:42:35 2005 From: csmith at radioframenetworks.com (Chris Smith) Date: Mon, 22 Aug 2005 15:42:35 +0000 (UTC) Subject: Flagging alerts and notifications as urgent Message-ID: I needed a way to send alerts from Nagios (incidentally, I am on 2.0b4) but have them flagged at Urgent. Granted, the RFC surrounding email doesn't allow for this, but my staff utilize MS Outlook 2k3 and Treo 650 phones, so, I wanted to flag those emails differently. With some hacking and perl, here is what I have come up with. Thought that I would share it with you. Here is the script file that we placed in /usr/local/bin: <----------- cut here ---------------> #!/usr/bin/perl my $line; print "From: \"Nagios Alert\" \n"; print "To: @ARGV[0]\n"; print "Subject: @ARGV[1]\n"; print "Content-Type: text/plain\n"; print "X-Priority: 1\n"; print "X-MSMail-Priority: High\n"; print "\n"; while () { $line = $_; print "$line"; } print ".\n"; <----------- cut here ---------------> And, we changed the alerting in the misccommands.cfg and command.cfg files: (from misccommand.cfg) # 'notify-by-email' command definition define command{ command_name notify-by-email command_line /usr/bin/printf "%b" "Note: DO NOT REPLY TO THIS EMAIL\n\n$NOTIFICATIONTYPE$\nThe service $SERVICEDESC$ on host $HOSTALIAS$ and at address $HOSTADDRESS$ is in a state of $SERVICESTATE$.\n\nThe output from the service check:$OUTPUT$\n\nService URL: http:///nagios/cgi- bin/extinfo.cgi?type=1&host=$HOSTNAME$\n\n(Note: This link will take you to the service problem and not show the sidebar.)\n\nNagios homepage: http:///nagios/" | /usr/local/bin/urgent $CONTACTEMAIL$ "** $NOTIFICATIONTYPE$ alert - $HOSTNAME$ is $HOSTSTATE$ **" | /usr/sbin/sendmail -t } (from command.cfg) # Service notification command - send email with problem summary command[notify-by-email]=/usr/bin/printf "Note: DO NOT REPLY TO THIS EMAIL\n\nThe servicestate \"$SERVICESTATE$\" for $HOSTALIAS$ and $SERVICEDESC$ located at IP $HOSTADDRESS$ is in a $HOSTSTATE$ state.\n\nThe output from the host check: $OUTPUT$\n\nHost URL:\"http:///nagios/cgi-bin/extinfo.cgi? type=2&host=$HOSTNAME$\"\n(Note: This link will take you to the host in question and not show the sidebar.)\n\nNagios homepage: http:///nagios/" | /usr/local/bin/urgent $CONTACTEMAIL$ "$HOSTALIAS$ is in a $HOSTSTATE$ state" | /usr/sbin/sendmail -t Christopher M. Smith I.T. Manager RadioFrame Networks ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From RLAdams at Kelsey-Seybold.com Mon Aug 22 18:06:18 2005 From: RLAdams at Kelsey-Seybold.com (Adams, Russell L.) Date: Mon, 22 Aug 2005 11:06:18 -0500 Subject: temperature sensors In-Reply-To: <7579CAECCAF7D211B9600008C79139D80BA8C3E1@exdssfdh01.south.de.a strium.corp> References: <7579CAECCAF7D211B9600008C79139D80BA8C3E1@exdssfdh01.south.de.as trium.corp> Message-ID: <20050822160617.GA1802@pingu.ksnet.com> AKCP sensorProbe. Works great. Russell On Mon, Aug 22, 2005 at 04:44:30PM +0200, Koop, Lutz (external) wrote: > www.digitemp.com > > kind regards > > Lutz Koop > > > > -----Urspr?ngliche Nachricht----- > Von: Frederik Vanhee [mailto:frederik.vanhee at perso.be] > Gesendet: Montag, 22. August 2005 15:46 > An: nagios-users at lists.sourceforge.net > Betreff: [Nagios-users] temperature sensors > > > Hello out there, > > what kind of temperature sensors are you using to measure the > temperature in the computerroom for example ? > Network connection is necessary. > Any experience with the Esensors promoted on the Nagios website ? > > Thanks, > > Frederik > > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO September > 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & > Plan-Driven Development * Managing Projects & Teams * Testing & QA Security > * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Chester.Hosey at gianteagle.com Mon Aug 22 18:30:42 2005 From: Chester.Hosey at gianteagle.com (Chester R. Hosey) Date: Mon, 22 Aug 2005 12:30:42 -0400 Subject: Flagging alerts and notifications as urgent In-Reply-To: References: Message-ID: <43589.9475742646$1124728484@news.gmane.org> >From the wheel-reinvention department, Chris Smith sent forth: > I needed a way to send alerts from Nagios (incidentally, I am on 2.0b4) but > have them flagged at Urgent. Granted, the RFC surrounding email doesn't allow > for this, but my staff utilize MS Outlook 2k3 and Treo 650 phones, so, I wanted > to flag those emails differently. > > With some hacking and perl, here is what I have come up with. Thought that I > would share it with you. Egads, man! Perl is nice, but sometimes it's easier to use someone else's program than to roll your own. Look around for a copy of formail -- it comes with procmail. A simple: /usr/bin/formail -A "X-Priority: 1" -A "X-MSMail-Priority: High" in your call path should do the trick. You'll just need to add a '-A' flag for each header you'd like to append. Chet ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dgentry at ultainc.com Mon Aug 22 18:42:41 2005 From: dgentry at ultainc.com (David Gentry) Date: Mon, 22 Aug 2005 18:42:41 +0200 (CEST) Subject: check_email_loop problem Message-ID: <20050822164241.4F24A4F4002@desire.netways.de> Hi Everyone, I am trying to use the check_email_loop for the first time, and I am getting a "check_email_loop.stat:failed to open mail-ID database" in nagios. I can run the plugin fine, but it wont execute through the nagios process. The check_email_loop.stat was created in the /libexec director as root, and I changed it to chmod 777, but no go. Any ideas? - David ----------------------- The mailing list archive is found here: http://www.nagiosexchange.org/nagios-users.34.0.html ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Mon Aug 22 19:00:43 2005 From: marc at ena.com (Marc Powell) Date: Mon, 22 Aug 2005 12:00:43 -0500 Subject: check_email_loop problem Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of David Gentry > Sent: Monday, August 22, 2005 11:43 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] check_email_loop problem > > Hi Everyone, > > > > I am trying to use the check_email_loop for the first time, and > I am getting a "check_email_loop.stat:failed to open mail-ID database" > in nagios. I can run the plugin fine, but it wont execute through > the nagios process. The check_email_loop.stat > > was created in the /libexec director as root, and I changed it to > chmod 777, but no go. > > > > Any ideas? Remove the file and make sure that /libexec is writeable by the nagios user. Only perform your testing (for any plugin) as the nagios user. Alternately, change the full path to check_email_loop.stat in the script (line 55) to point to somewhere that the nagios user _can_ write to. -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From benny at bennyvision.com Mon Aug 22 20:45:25 2005 From: benny at bennyvision.com (C. Bensend) Date: Mon, 22 Aug 2005 13:45:25 -0500 (CDT) Subject: Two contacts using the same HTTP auth? Message-ID: <3248.134.244.169.17.1124736325.squirrel@webmail.stinkweasel.net> Hey folks, I've been mulling this over in my head, but I can't quite figure out how to do this, so I thought I'd ask here. I need to set up a "host" that is always down, with notifications disabled by default. I have done that, no big deal. The problem I have, is that this fake host needs to have a separate contact, and I'd like to have the user use the same HTTP auth username and password she already has. Hence, she can log in using her original username and password just fine, but since that username is not a contact for this new fake host, she cannot see it (and more importantly, she cannot enable/disable notifications). I'm not sure if this is completely clear; my brain is all mixed up trying to straighten this out. I'm not even sure it's possible, but I'd really like to get it going if it is. If I'm missing some important info, please let me know. This is 2.0b4 on a SuSE SLES 9 server. Thanks! Benny -- "Now, that next spring you find in your garage a creature that looks like a cross-bred badger and anaconda. A badgerconda." -- bash.org ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lgetschel at denver.westerngeco.slb.com Mon Aug 22 20:55:44 2005 From: lgetschel at denver.westerngeco.slb.com (Lewis Getschel) Date: Mon, 22 Aug 2005 12:55:44 -0600 Subject: temperature sensors In-Reply-To: <4309D733.6020403@perso.be> References: <4309D733.6020403@perso.be> Message-ID: <430A1FB0.5030709@denver.westerngeco.slb.com> For me, thinking outside the box, I came up with using the "Supervisor module 5 asic 2 temperature Sensor" of our Cisco 65xx router. It's a couple of degrees higher than the room itself, but not enough for me to need something else. SNMPv2-SMI::mib-2.47.1.1.1.1.2.7010 = STRING: "Supervisor module 5 asic 2 temperature Sensor" SNMPv2-SMI::enterprises.9.9.91.1.1.1.1.4.7010 = INTEGER: 27 That's C degrees. Here in Colorado, I think in F degrees, so: # Convert degrees C to degrees F ( F=((C * 1.8) + 32) ) CURRENT_F_TEMP=`echo "scale=0; ($MODULETEMP * 1.8) +32" | /usr/bin/bc | /usr/bin/awk -F. '{print $1}'` This yields 80 degrees, which matches the A/C temp display (If anyone wants this plugin, just ask.) Lewis Frederik Vanhee wrote: > Hello out there, > > what kind of temperature sensors are you using to measure the > temperature in the computerroom for example ? > Network connection is necessary. > Any experience with the Esensors promoted on the Nagios website ? > > Thanks, > > Frederik > -- Lewis Getschel | Today is done... WesternGeco | Today was fun... 1625 Broadway | Tomorrow is another one. Denver, CO 80202 | Direct Phone - 303-389-4407| -- Dr. Seuss -- ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Mon Aug 22 22:15:29 2005 From: marc at ena.com (Marc Powell) Date: Mon, 22 Aug 2005 15:15:29 -0500 Subject: temperature sensors Message-ID: Or you can use check_snmp directly if you just need to know good/bad and not what it really is in deg F. We use the following on our 720x serires routers to monitor inlet temperature -- define command{ command_name check_temperature_server_sites command_line $USER1$/check_snmp -H $HOSTADDRESS$ -u 'Degrees Celsius' -o .1.3.6.1.4.1.9.9.13.1.3.1.3.2 -C $USER3$ -w 32:28 -c 99:33 -l 'Temperature is' } -- Marc > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Lewis Getschel > Sent: Monday, August 22, 2005 1:56 PM > To: Frederik Vanhee > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] temperature sensors > > For me, thinking outside the box, I came up with using the "Supervisor > module 5 asic 2 temperature Sensor" of our Cisco 65xx router. It's a > couple of degrees higher than the room itself, but not enough for me to > need something else. > > SNMPv2-SMI::mib-2.47.1.1.1.1.2.7010 = STRING: "Supervisor module 5 asic > 2 temperature Sensor" > SNMPv2-SMI::enterprises.9.9.91.1.1.1.1.4.7010 = INTEGER: 27 > That's C degrees. > > Here in Colorado, I think in F degrees, so: > # Convert degrees C to degrees F ( F=((C * 1.8) + 32) ) > CURRENT_F_TEMP=`echo "scale=0; ($MODULETEMP * 1.8) +32" | /usr/bin/bc | > /usr/bin/awk -F. '{print $1}'` > This yields 80 degrees, which matches the A/C temp display > > (If anyone wants this plugin, just ask.) > Lewis > > > Frederik Vanhee wrote: > > > Hello out there, > > > > what kind of temperature sensors are you using to measure the > > temperature in the computerroom for example ? > > Network connection is necessary. > > Any experience with the Esensors promoted on the Nagios website ? > > > > Thanks, > > > > Frederik > > > -- > Lewis Getschel | Today is done... > WesternGeco | Today was fun... > 1625 Broadway | Tomorrow is another one. > Denver, CO 80202 | > Direct Phone - 303-389-4407| -- Dr. Seuss -- > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Mon Aug 22 22:41:27 2005 From: marc at ena.com (Marc Powell) Date: Mon, 22 Aug 2005 15:41:27 -0500 Subject: Two contacts using the same HTTP auth? Message-ID: The question isn't quite clear but in a nutshell I interpret it to be the following -- 'I have a host that doesn't send notifications that two contacts, who happen to be the same person, need to see." > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of C. Bensend > Sent: Monday, August 22, 2005 1:45 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Two contacts using the same HTTP auth? > > > Hey folks, > > I've been mulling this over in my head, but I can't quite > figure out how to do this, so I thought I'd ask here. > > I need to set up a "host" that is always down, with notifications > disabled by default. I have done that, no big deal. > > The problem I have, is that this fake host needs to have a > separate contact, and I'd like to have the user use the same > HTTP auth username and password she already has. > > Hence, she can log in using her original username and password > just fine, but since that username is not a contact for this new > fake host, she cannot see it (and more importantly, she cannot > enable/disable notifications). The question isn't quite clear, at least to me, but it would seem to me that you just need to add the username she's logging in with as a contact in the contact_group for the host in question. Why isn't it that simple? -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From benny at bennyvision.com Mon Aug 22 22:52:14 2005 From: benny at bennyvision.com (C. Bensend) Date: Mon, 22 Aug 2005 15:52:14 -0500 (CDT) Subject: Two contacts using the same HTTP auth? In-Reply-To: References: Message-ID: <4296.134.244.169.17.1124743934.squirrel@webmail.stinkweasel.net> > The question isn't quite clear but in a nutshell I interpret it to be > the following -- > > 'I have a host that doesn't send notifications that two contacts, who > happen to be the same person, need to see." Um... No, my question wasn't clear then. :/ Sorry. These users just got new handhelds (Blackberries). They want to play with the notifications until they get their filters correct. So, I thought it would be pretty cool to set up a fake host that is always down, with notifications disabled. When they want to test again, they enable the notifications, Nagios fires off an alert, and they can see what happens. When they're done testing, they can just disable notifications again. This fake host's contact is the new contact I set up to alert their Blackberries. Their other contacts are used for paging them; I wanted to avoid alerting to that contact as well while they play with this. So, in a nutshell: 1) The fake host alerts only their Blackberry contact 2) Unfortunately, their normal contact cannot see the fake host, since their normal contact (their HTTP auth username) is not a contact for the fake host 3) Hence, I'd need a second HTTP auth username/password for them to log in with, to manipulate the notifications for the fake host, which I'd like to avoid if possible I hope that's clearer... It seems like an overly complex solution, but I couldn't come up with a better way to do it. I'm open for suggestions. :) Benny -- "Now, that next spring you find in your garage a creature that looks like a cross-bred badger and anaconda. A badgerconda." -- bash.org ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From listas at dud.com.br Mon Aug 22 19:51:19 2005 From: listas at dud.com.br (Roberto Dud (listas)) Date: Mon, 22 Aug 2005 17:51:19 +0000 Subject: Nagios x Opennms Message-ID: <430A1097.7050600@dud.com.br> Mrs. I have a good question, I like to implement a good NMS, and I like to use SNMP to monitoring routers, servers, switchs and others, to receive traps and others informations. The *Nagios* is very good to monitoring, services and hosts, with plugins and icmp ping. Have a implementations to receive traps, but don't is the better solutions to use snmp. The *OpenNMS *it seems very better to use snmp. Anyone have a good suggestion to me, is the better solution use OpenNMS in my case? Thanks a lot, Dud. ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From teng at dataway.com Mon Aug 22 23:13:36 2005 From: teng at dataway.com (Tedman Eng) Date: Mon, 22 Aug 2005 14:13:36 -0700 Subject: temperature sensors Message-ID: <37ED92F9890FAF4BB947613C66FF8B1A08BB2B5C@dw-mail.dataway.com> I use the inlet/outlet temp sensors built into my routers. Best part is that they're cheap (free) > -----Original Message----- > From: Frederik Vanhee [mailto:frederik.vanhee at perso.be] > Sent: Monday, August 22, 2005 6:46 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] temperature sensors > > > Hello out there, > > what kind of temperature sensors are you using to measure the > temperature in the computerroom for example ? > Network connection is necessary. > Any experience with the Esensors promoted on the Nagios website ? > > Thanks, > > Frederik > > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development > Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * > Testing & QA > Security * Process Improvement & Measurement * > http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From az at whoever.org Mon Aug 22 23:20:48 2005 From: az at whoever.org (Az) Date: Tue, 23 Aug 2005 07:20:48 +1000 Subject: temperature sensors In-Reply-To: <4309D733.6020403@perso.be> References: <4309D733.6020403@perso.be> Message-ID: <430A41B0.4090109@whoever.org> Frederik Vanhee wrote: > what kind of temperature sensors are you using to measure the > temperature in the computerroom for example ? > Network connection is necessary. > Any experience with the Esensors promoted on the Nagios website ? We use the APC environmental monitoring units. Not cheap but they do more than just temp/humidity, and have a big flashing orange light which is good for scaring people with. :) ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Mon Aug 22 23:21:33 2005 From: pla at softflare.com (Paul L. Allen) Date: Mon, 22 Aug 2005 22:21:33 +0100 Subject: Two contacts using the same HTTP auth? In-Reply-To: <4296.134.244.169.17.1124743934.squirrel@webmail.stinkweasel.net> References: <4296.134.244.169.17.1124743934.squirrel@webmail.stinkweasel.net> Message-ID: <20050822212133.14394.qmail@mullet.softflare.net> C. Bensend writes: > 1) The fake host alerts only their Blackberry contact > > 2) Unfortunately, their normal contact cannot see the fake host, > since their normal contact (their HTTP auth username) is not > a contact for the fake host > > 3) Hence, I'd need a second HTTP auth username/password for them > to log in with, to manipulate the notifications for the fake > host, which I'd like to avoid if possible > > I hope that's clearer... It seems like an overly complex solution, > but I couldn't come up with a better way to do it. I'm open for > suggestions. :) The default notification command essentially shells out to your command-line mail utility and sends the appropriate lines of data. Have it instead shell to a custom script that determines if it's a real host or the fake host and over-rides the contact address with the appropriate blackberry address if it's the fake host. Unless you're comfortable with shell/perl scripting go with the idea you already have. :) -- Paul Allen Softflare Support ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lqiang at ipass.com Mon Aug 22 23:37:54 2005 From: lqiang at ipass.com (Li Qiang) Date: Mon, 22 Aug 2005 14:37:54 -0700 Subject: Contact Group in Nagios1.X and Nagios 2.x Message-ID: Hello, Installed 2.0b4 code, and moved most of the .cfg files from a working nagios (1.X code), but running into a lot of "Contact Group(s)" error when running nagios -v command on Nagios 2.0b4. Seems like the 2.x code doesn't support this anymore. Any advice? Thanks a lot, BTW, if you know a doc that descripts this issue, please point me to it. Thanks again, li ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From monitoring_with_nagios at yahoo.com Tue Aug 23 00:01:42 2005 From: monitoring_with_nagios at yahoo.com (Bill Stevenson) Date: Mon, 22 Aug 2005 15:01:42 -0700 (PDT) Subject: Firewalled hosts Message-ID: <20050822220142.51495.qmail@web35311.mail.mud.yahoo.com> Everyone -- As you're about to find out I am new to Nagios. I have a question about passive checks. I have a remote network, accesible only by a single public IP address. Behind the firewall that is bound to that IP address are 5 Windows 2003 hosts. I've looked into monitoring performance on these hosts with the Nsclient. So good so far. What I'm actually having trouble with is this: can I have the Windows hosts send the results of the of the Nsclient checks back to the Nagios server across the Internet? Of course I would have to have a port forwarded from the firewall on the "local" network to the Nagios server in order to accept the data sent from the Windows server. How can I send the check results from the Windows servers to the Nagios server? Maybe I've missed this in TFM if someone could point me in the right direction or give advise, it would be much appreciated. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Tue Aug 23 00:22:09 2005 From: marc at ena.com (Marc Powell) Date: Mon, 22 Aug 2005 17:22:09 -0500 Subject: Two contacts using the same HTTP auth? Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Paul L. Allen > Sent: Monday, August 22, 2005 4:22 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Re: Two contacts using the same HTTP auth? > > C. Bensend writes: > > > 1) The fake host alerts only their Blackberry contact > > > > 2) Unfortunately, their normal contact cannot see the fake host, > > since their normal contact (their HTTP auth username) is not > > a contact for the fake host > > > > 3) Hence, I'd need a second HTTP auth username/password for them > > to log in with, to manipulate the notifications for the fake > > host, which I'd like to avoid if possible > > > > I hope that's clearer... It seems like an overly complex solution, > > but I couldn't come up with a better way to do it. I'm open for > > suggestions. :) > > The default notification command essentially shells out to your > command-line mail utility and sends the appropriate lines of data. > Have it instead shell to a custom script that determines if it's a real > host or the fake host and over-rides the contact address with the > appropriate blackberry address if it's the fake host. Unless you're > comfortable with shell/perl scripting go with the idea you already have. > :) Yup, this is how I'd do it. An alternate method would be to add their blackberry address to their contact e-mail (comma separated) and have your notification script chop off everything after the comma if it's not their test host. Either way a little bit of scripting is going to be necessary. -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Tue Aug 23 00:29:04 2005 From: marc at ena.com (Marc Powell) Date: Mon, 22 Aug 2005 17:29:04 -0500 Subject: Contact Group in Nagios1.X and Nagios 2.x Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Li Qiang > Sent: Monday, August 22, 2005 4:38 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Contact Group in Nagios1.X and Nagios 2.x > > Hello, > > Installed 2.0b4 code, and moved most of the .cfg files from a working > nagios (1.X code), but running into a lot of "Contact Group(s)" error > when running nagios -v command on Nagios 2.0b4. Seems like the 2.x code > doesn't support this anymore. There were many significant changes. > Any advice? Thanks a lot, > > BTW, if you know a doc that descripts this issue, please point me to it. Release Notes/Changelog. A very important document for almost all OSS software to reference when upgrading. - http://nagios.sourceforge.net/docs/2_0/whatsnew.html Hostgroup definitions - http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#hostgroup Host definitions - http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#host General Nagios Documentation - http://nagios.sourceforge.net/docs/2_0/toc.html -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From pla at softflare.com Tue Aug 23 00:41:13 2005 From: pla at softflare.com (Paul L. Allen) Date: Mon, 22 Aug 2005 23:41:13 +0100 Subject: Two contacts using the same HTTP auth? In-Reply-To: References: Message-ID: <20050822224113.10431.qmail@mullet.softflare.net> Marc Powell writes: > Yup, this is how I'd do it. An alternate method would be to add their > blackberry address to their contact e-mail (comma separated) and have > your notification script chop off everything after the comma if it's not > their test host. Because of the flexibility of Nagios there are probably many ways of skinning this particular cat. That was the first one that popped into my head (but I'm late into leisure time again so my head is fairly vacuous right now and sucking in anything around). > Either way a little bit of scripting is going to be necessary. Not with his original idea, if I remember it correctly (correct me if I'm wrong, but it involved using an obsidian knife to sacrifice virgins on the top of a Technotlican pyramid, but maybe I'm confusing it with something else). In the end it boils down to whether it's going to be easier to do the complex fiddle you know how to do or the simpler fiddle you don't know how to do. And since the simpler fiddle you don't know how to do involves a learning curve of unknown duration, maybe it's best to stick with what you know. So pass me the virgins... -- Paul Allen Softflare Support ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dhopp at GOCSC.com Tue Aug 23 00:53:38 2005 From: dhopp at GOCSC.com (Dennis Hopp) Date: Mon, 22 Aug 2005 17:53:38 -0500 Subject: Perl plugins: No output from plugin Message-ID: <395D09D0C949AF40B9DDFEE9C93A47FF04434FAA@hudson.gocsc.com> I'm trying to use the check_snmp_load.pl and check_snmp_storage.pl I can run the plugin from the command line (as both root and nagios user) and get the right results but when it's fired off automatically I keep getting "No output from plugin". Here are the relevant config: define service{ use generic-service hostgroup_name LinuxServers service_description LOAD is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups domain-admins check_command check_linux_load!2,2,3!3,3,4 } define command{ command_name check_linux_load command_line $USER1$/check_snmp_load.pl -H $HOSTADDRESS$ -C public -w $ARG1$ -c $ARG2$ -L } $USER1$=/opt/nagios/plugins [root at cartier plugins]# ls -l /opt/nagios/plugins/check_snmp_load.pl -rwxr-xr-x 1 root root 14168 Aug 22 12:42 /opt/nagios/plugins/check_snmp_load.pl Thanks, --Dennis * "Privileged/Confidential Information of Communications Supply Corp. may be contained in this message. If you are not the addressee of this message, you may not copy, use or deliver this message to anyone. In such event, you should destroy the message and kindly notify the sender by reply e-mail. It is understood that opinions or conclusions that do not relate to the official business of Communications Supply Corp. are neither given nor endorsed by Communications Supply Corp." -------------- next part -------------- An HTML attachment was scrubbed... URL: From teng at dataway.com Tue Aug 23 01:17:11 2005 From: teng at dataway.com (Tedman Eng) Date: Mon, 22 Aug 2005 16:17:11 -0700 Subject: Firewalled hosts Message-ID: <37ED92F9890FAF4BB947613C66FF8B1A08BB2B5E@dw-mail.dataway.com> > -----Original Message----- > From: Bill Stevenson [mailto:monitoring_with_nagios at yahoo.com] > Sent: Monday, August 22, 2005 3:02 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Firewalled hosts > > > Everyone -- As you're about to find out I am new to > Nagios. I have a question about passive checks. I have > a remote network, accesible only by a single public IP > address. Behind the firewall that is bound to that IP > address are 5 Windows 2003 hosts. I've looked into > monitoring performance on these hosts with the > Nsclient. So good so far. > > What I'm actually having trouble with is this: can I > have the Windows hosts send the results of the of the > Nsclient checks back to the Nagios server across the > Internet? Of course I would have to have a port > forwarded from the firewall on the "local" network to > the Nagios server in order to accept the data sent > from the Windows server. How can I send the check > results from the Windows servers to the Nagios server? > > Maybe I've missed this in TFM if someone could point > me in the right direction or give advise, it would be > much appreciated. You've only missed it in TFM because you didn't actually R it. Here's the section in the docs about your question: "NSCA - Daemon and client program for sending passive check results across the network" http://nagios.sourceforge.net/docs/2_0/addons.html#nsca Download it here: http://www.nagiosexchange.org/Communication.41.0.html (windows send_nsca program) ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ladams at cloudmark.com Tue Aug 23 02:44:01 2005 From: ladams at cloudmark.com (Lori Adams) Date: Mon, 22 Aug 2005 17:44:01 -0700 Subject: Perl plugins: No output from plugin Message-ID: When you ran it by hand as nagios user, did you include all relevant arguments? /opt/nagios/plugins/check_snmp_load.pl -H x.x.x.x -C public -w 2,2,3 -c 3,3,4 -L Another trick to verify that you're running it by hand correctly is to do define command{ command_name check_linux_load command_line echo $USER1$/check_snmp_load.pl -H $HOSTADDRESS$ -C public -w $ARG1$ -c $ARG2$ -L } The command will appear in the UI, and then you can run what is shown. "No output from plugin" means just that. Nagios is expecting some kind of statement about the check. Your check is not outputting anything. You're getting a difference between running by hand and running automatically. Get those to be the same, it'll be easier to track down. -Lori ________________________________ From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Dennis Hopp Sent: Monday, August 22, 2005 3:54 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Perl plugins: No output from plugin I'm trying to use the check_snmp_load.pl and check_snmp_storage.pl I can run the plugin from the command line (as both root and nagios user) and get the right results but when it's fired off automatically I keep getting "No output from plugin". Here are the relevant config: define service{ use generic-service hostgroup_name LinuxServers service_description LOAD is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups domain-admins check_command check_linux_load!2,2,3!3,3,4 } define command{ command_name check_linux_load command_line $USER1$/check_snmp_load.pl -H $HOSTADDRESS$ -C public -w $ARG1$ -c $ARG2$ -L } $USER1$=/opt/nagios/plugins [root at cartier plugins]# ls -l /opt/nagios/plugins/check_snmp_load.pl -rwxr-xr-x 1 root root 14168 Aug 22 12:42 /opt/nagios/plugins/check_snmp_load.pl Thanks, --Dennis * "Privileged/Confidential Information of Communications Supply Corp. may be contained in this message. If you are not the addressee of this message, you may not copy, use or deliver this message to anyone. In such event, you should destroy the message and kindly notify the sender by reply e-mail. It is understood that opinions or conclusions that do not relate to the official business of Communications Supply Corp. are neither given nor endorsed by Communications Supply Corp." -------------- next part -------------- An HTML attachment was scrubbed... URL: From benny at bennyvision.com Tue Aug 23 02:51:21 2005 From: benny at bennyvision.com (C. Bensend) Date: Mon, 22 Aug 2005 19:51:21 -0500 (CDT) Subject: Two contacts using the same HTTP auth? In-Reply-To: References: Message-ID: <58633.63.227.74.41.1124758281.squirrel@webmail.stinkweasel.net> >> The default notification command essentially shells out to your >> command-line mail utility and sends the appropriate lines of data. >> Have it instead shell to a custom script that determines if it's a > real >> host or the fake host and over-rides the contact address with the >> appropriate blackberry address if it's the fake host. Unless you're >> comfortable with shell/perl scripting go with the idea you already > have. >> :) > > Yup, this is how I'd do it. An alternate method would be to add their > blackberry address to their contact e-mail (comma separated) and have > your notification script chop off everything after the comma if it's not > their test host. Either way a little bit of scripting is going to be > necessary. Yeah, OK, that'll work. It should be cake to script it. Thanks, folks! Benny -- "Now, that next spring you find in your garage a creature that looks like a cross-bred badger and anaconda. A badgerconda." -- bash.org ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jjk_saji at yahoo.com Tue Aug 23 09:16:09 2005 From: jjk_saji at yahoo.com (John Joseph) Date: Tue, 23 Aug 2005 08:16:09 +0100 (BST) Subject: Contact Group in Nagios1.X and Nagios 2.x In-Reply-To: References: Message-ID: <20050823071609.502.qmail@web40824.mail.yahoo.com> Hi Qiang I also faced the same problem + some other problem in nagios.cfg with the help from the mailing list , I was able to solve it Three files I had to edit 1> nagios.cfg In ?nagios.cfg? removed the reference of the following lines , remark it or remove it log_passive_service_checks=1 inter_check_delay_methods=s this parameter are not there in 2.x 2> hostgroups.cfg In ?hostgroups.cfg? , I remarked /removed the ?contact_groups? reference 3> in hosts.cfg In the template for the generic host definition , I added the ? contact_groups yourcontact? or u can use in the host definition section of hosts.cfg Now check using /usr/local/nagios/bin/nagios -v ../etc/nagios.cfg Hope this is useful Thanks Joseph John --- Li Qiang wrote: > Hello, > > Installed 2.0b4 code, and moved most of the .cfg > files from a working > nagios (1.X code), but running into a lot of > "Contact Group(s)" error > when running nagios -v command on Nagios 2.0b4. > Seems like the 2.x code > doesn't support this anymore. > > Any advice? Thanks a lot, > > BTW, if you know a doc that descripts this issue, > please point me to it. > > Thanks again, > > li > > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software > Conference & EXPO > September 19-22, 2005 * San Francisco, CA * > Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects > & Teams * Testing & QA > Security * Process Improvement & Measurement * > http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version > (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being > sent to /dev/null > ___________________________________________________________ To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dtuecks at neuwied.de Tue Aug 23 10:07:57 2005 From: dtuecks at neuwied.de (Daniel Tuecks) Date: Tue, 23 Aug 2005 10:07:57 +0200 Subject: Nagios 2.0b4 wont use hostextinfo.cfg References: 0B86E.CNM331641CA Message-ID: <20050823T100757Z_BD3300140000@neuwied.de> Hi I recently installed the 2.0 version of Nagios. Unfortunally my hostextinfo.cfg file isn't used by nagios anymore... I configured Nagios as shown below: ./configure \ --prefix=/usr/sbin/ \ --datadir=/usr/share/nagios \ --libexecdir=/usr/lib/nagios/plugins \ --localstatedir=/var/log/nagios \ --sbindir=/usr/lib/nagios/cgi \ --sysconfdir=/etc/nagios \ --with-cgiurl=/nagios/cgi-bin \ --with-gd-lib=/lib \ --with-gd-inc=/usr/include \ --with-htmlurl=/nagios \ --with-lockfile=/var/log/nagios/run/nagios.pid \ --with-mail=/bin/mail \ --with-nagios-user=daemon \ --with-nagios-group=daemon \ --with-command-user=nobody \ --with-command-grp=www \ --with-perlcache \ --with-template-objects \ --with-template-extinfo \ --enable-event-broker I have a hostextinfo.cfg file located in /etc/nagios/hostextinfo.cfg My cgi.cfg has an entry xedtemplate_config_file=/etc/nagios/hostextinfo.cfg And the hostextinfo.cfg looks like this: define hostextinfo{ host_name SR_PROCURVE_2848_1 notes Backbone HP Procurve 2848 icon_image switch40.png icon_image_alt HP Procurve 2848 vrml_image switch40.png statusmap_image switch40.gd2 } How do I get my hostextinfo back to work? --- Stadtverwaltung Neuwied Daniel T?cks - EDV - Tel.: 02631 / 802 410 Fax: 02631 / 802 850 email: dtuecks at neuwied.de ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Tue Aug 23 10:26:34 2005 From: ae at op5.se (Andreas Ericsson) Date: Tue, 23 Aug 2005 10:26:34 +0200 Subject: Nagios 2.0b4 wont use hostextinfo.cfg In-Reply-To: <20050823T100757Z_BD3300140000@neuwied.de> References: 0B86E.CNM331641CA <20050823T100757Z_BD3300140000@neuwied.de> Message-ID: <430ADDBA.8010001@op5.se> Daniel Tuecks wrote: > Hi > > I recently installed the 2.0 version of Nagios. Unfortunally my hostextinfo.cfg file isn't used by nagios anymore... I configured Nagios as shown below: > > ./configure \ > --prefix=/usr/sbin/ \ > --datadir=/usr/share/nagios \ > --libexecdir=/usr/lib/nagios/plugins \ > --localstatedir=/var/log/nagios \ > --sbindir=/usr/lib/nagios/cgi \ > --sysconfdir=/etc/nagios \ > --with-cgiurl=/nagios/cgi-bin \ > --with-gd-lib=/lib \ > --with-gd-inc=/usr/include \ > --with-htmlurl=/nagios \ > --with-lockfile=/var/log/nagios/run/nagios.pid \ > --with-mail=/bin/mail \ > --with-nagios-user=daemon \ > --with-nagios-group=daemon \ > --with-command-user=nobody \ > --with-command-grp=www \ > --with-perlcache \ > --with-template-objects \ > --with-template-extinfo \ > --enable-event-broker > > > > I have a hostextinfo.cfg file located in /etc/nagios/hostextinfo.cfg > > My cgi.cfg has an entry > > xedtemplate_config_file=/etc/nagios/hostextinfo.cfg > > > > And the hostextinfo.cfg looks like this: > > define hostextinfo{ > host_name SR_PROCURVE_2848_1 > notes Backbone HP Procurve 2848 > icon_image switch40.png > icon_image_alt HP Procurve 2848 > vrml_image switch40.png > statusmap_image switch40.gd2 > } > > > How do I get my hostextinfo back to work? > RTFM. Especially the "What's new" section from the 2.0 docs. It's really a must when upgrading major versions (the first digit of the version number changes, i.e. 1.2 to 2.0). Perhaps you'll learn to do so from now on. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From srunschke at abit.de Tue Aug 23 10:28:02 2005 From: srunschke at abit.de (srunschke at abit.de) Date: Tue, 23 Aug 2005 10:28:02 +0200 Subject: Antwort: Two contacts using the same HTTP auth? In-Reply-To: <3248.134.244.169.17.1124736325.squirrel@webmail.stinkweasel.net> References: <3248.134.244.169.17.1124736325.squirrel@webmail.stinkweasel.net> Message-ID: nagios-users-admin at lists.sourceforge.net schrieb am 22.08.2005 20:45:25: > I've been mulling this over in my head, but I can't quite > figure out how to do this, so I thought I'd ask here. > > I need to set up a "host" that is always down, with notifications > disabled by default. I have done that, no big deal. > > The problem I have, is that this fake host needs to have a > separate contact, and I'd like to have the user use the same > HTTP auth username and password she already has. > > Hence, she can log in using her original username and password > just fine, but since that username is not a contact for this new > fake host, she cannot see it (and more importantly, she cannot > enable/disable notifications). I'd use a little trick. Define the host with their original contact. Define an escalation for the host which starts at notification 1 and overwrites the contact with their blackberry contact. Voila. They got access to the host with their original contact, but mails go to the blackberry contact. sash -------------------------------------------------- Sascha Runschke Netzwerk Administration IT-Services ABIT AG Robert-Bosch-Str. 1 40668 Meerbusch Tel.:+49 (0) 2150.9153.226 Mobil:+49 (0) 173.5419665 mailto:SRunschke at abit.de http://www.abit.net http://www.abit-epos.net --------------------------------- Sicherheitshinweis zur E-Mail Kommunikation / Security note regarding email communication: http://www.abit.net/sicherheitshinweis.html ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From harry at cc.kuleuven.be Tue Aug 23 15:03:23 2005 From: harry at cc.kuleuven.be (Harry de Grote) Date: Tue, 23 Aug 2005 15:03:23 +0200 Subject: log errors in nagios.log Message-ID: <200508231503.23488.harry@cc.kuleuven.be> sorry to bother you guys/women again, can someone explain how these logs are possible? what i can do about it? : 14:58 monitor var/archives ;grep mail2\;imap nagios-*-2005-00.log nagios-01-16-2005-00.log:[1105544244] SERVICE ALERT: mail2;imap;CRITICAL;HARD;1;Socket timeout after 10 seconds nagios-01-16-2005-00.log:[1105544676] SERVICE ALERT: mail2;imap;CRITICAL;SOFT;1;Socket timeout after 10 seconds nagios-01-16-2005-00.log:[1105544885] SERVICE ALERT: mail2;imap;OK;SOFT;2;IMAP OK - 0.010 second response time on port 143 [* OK [CAPABILITY IMAP4REV1 LITERAL+ SASL-IR LOGIN-REFERRALS AUTH=LOGIN] mail2 IMAP4rev1 2004.350 at Wed, 12 Jan 2005 16:45:57 +0100 (NFT)] nagios-01-16-2005-00.log:[1105616925] SERVICE ALERT: mail2;imap;CRITICAL;HARD;1;Socket timeout after 10 seconds nagios-01-16-2005-00.log:[1105617982] SERVICE ALERT: mail2;imap;CRITICAL;SOFT;1;Socket timeout after 10 seconds nagios-01-16-2005-00.log:[1105617995] SERVICE ALERT: mail2;imap;OK;SOFT;2;IMAP OK - 0.035 second response time on port 143 [* OK [CAPABILITY IMAP4REV1 LITERAL+ SASL-IR LOGIN-REFERRALS AUTH=LOGIN] mail2 IMAP4rev1 2004.350 at Thu, 13 Jan 2005 13:06:39 +0100 (NFT)] nagios-03-20-2005-00.log:[1110796247] SERVICE ALERT: mail2;imap;CRITICAL;HARD;1;Socket timeout after 10 seconds nagios-03-20-2005-00.log:[1110796836] SERVICE ALERT: mail2;imap;CRITICAL;SOFT;1;Socket timeout after 10 seconds nagios-03-20-2005-00.log:[1110796847] SERVICE ALERT: mail2;imap;OK;SOFT;2;IMAP OK - 0.008 second response time on port 143 [* OK [CAPABILITY IMAP4REV1 LITERAL+ SASL-IR LOGIN-REFERRALS AUTH=LOGIN] mail2 IMAP4rev1 2004.350 at Mon, 14 Mar 2005 11:40:41 +0100 (NFT)] nagios-03-20-2005-00.log:[1110797405] SERVICE ALERT: mail2;imap;CRITICAL;HARD;1;Socket timeout after 10 seconds nagios-03-20-2005-00.log:[1110797722] SERVICE ALERT: mail2;imap;CRITICAL;SOFT;1;Socket timeout after 10 seconds nagios-03-20-2005-00.log:[1110797757] SERVICE ALERT: mail2;imap;OK;SOFT;2;IMAP OK - 0.007 second response time on port 143 [* OK [CAPABILITY IMAP4REV1 LITERAL+ SASL-IR LOGIN-REFERRALS AUTH=LOGIN] mail2 IMAP4rev1 2004.350 at Mon, 14 Mar 2005 11:55:24 +0100 (NFT)] nagios-05-01-2005-00.log:[1114787348] SERVICE ALERT: mail2;imap;CRITICAL;SOFT;1;Socket timeout after 10 seconds nagios-05-01-2005-00.log:[1114787380] SERVICE ALERT: mail2;imap;OK;SOFT;2;IMAP OK - 0.017 second response time on port 143 [* OK [CAPABILITY IMAP4REV1 LITERAL+ SASL-IR LOGIN-REFERRALS AUTH=LOGIN] mail2 IMAP4rev1 2004.350 at Fri, 29 Apr 2005 17:09:30 +0200 (DFT)] nagios-05-01-2005-00.log:[1114789950] SERVICE ALERT: mail2;imap;CRITICAL;SOFT;1;Socket timeout after 10 seconds nagios-05-01-2005-00.log:[1114790310] SERVICE ALERT: mail2;imap;OK;SOFT;2;IMAP OK - 0.008 second response time on port 143 [* OK [CAPABILITY IMAP4REV1 LITERAL+ SASL-IR LOGIN-REFERRALS AUTH=LOGIN] mail2 IMAP4rev1 2004.350 at Fri, 29 Apr 2005 17:58:20 +0200 (DFT)] nagios-05-01-2005-00.log:[1114817238] SERVICE ALERT: mail2;imap;CRITICAL;SOFT;1;Socket timeout after 10 seconds nagios-05-01-2005-00.log:[1114817660] SERVICE ALERT: mail2;imap;OK;SOFT;2;IMAP OK - 0.008 second response time on port 143 [* OK [CAPABILITY IMAP4REV1 LITERAL+ SASL-IR LOGIN-REFERRALS AUTH=LOGIN] mail2 IMAP4rev1 2004.350 at Sat, 30 Apr 2005 01:33:27 +0200 (DFT)] nagios-05-01-2005-00.log:[1114842438] SERVICE ALERT: mail2;imap;CRITICAL;SOFT;1;Socket timeout after 10 seconds nagios-05-01-2005-00.log:[1114842470] SERVICE ALERT: mail2;imap;OK;SOFT;2;IMAP OK - 0.052 second response time on port 143 [* OK [CAPABILITY IMAP4REV1 LITERAL+ SASL-IR LOGIN-REFERRALS AUTH=LOGIN] mail2 IMAP4rev1 2004.350 at Sat, 30 Apr 2005 08:27:41 +0200 (DFT)] nagios-05-01-2005-00.log:[1114844289] SERVICE ALERT: mail2;imap;CRITICAL;SOFT;1;Socket timeout after 10 seconds nagios-05-01-2005-00.log:[1114844350] SERVICE ALERT: mail2;imap;OK;SOFT;2;IMAP OK - 0.011 second response time on port 143 [* OK [CAPABILITY IMAP4REV1 LITERAL+ SASL-IR LOGIN-REFERRALS AUTH=LOGIN] mail2 IMAP4rev1 2004.350 at Sat, 30 Apr 2005 08:59:01 +0200 (DFT)] nagios-05-01-2005-00.log:[1114861604] SERVICE ALERT: mail2;imap;CRITICAL;SOFT;1;Socket timeout after 10 seconds nagios-05-01-2005-00.log:[1114861890] SERVICE ALERT: mail2;imap;OK;SOFT;2;IMAP OK - 0.008 second response time on port 143 [* OK [CAPABILITY IMAP4REV1 LITERAL+ SASL-IR LOGIN-REFERRALS AUTH=LOGIN] mail2 IMAP4rev1 2004.350 at Sat, 30 Apr 2005 13:51:21 +0200 (DFT)] nagios-05-08-2005-00.log:[1114918221] SERVICE ALERT: mail2;imap;CRITICAL;SOFT;1;Socket timeout after 10 seconds nagios-05-08-2005-00.log:[1114918830] SERVICE ALERT: mail2;imap;OK;SOFT;2;IMAP OK - 0.008 second response time on port 143 [* OK [CAPABILITY IMAP4REV1 LITERAL+ SASL-IR LOGIN-REFERRALS AUTH=LOGIN] mail2 IMAP4rev1 2004.350 at Sun, 1 May 2005 05:40:15 +0200 (DFT)] nagios-05-08-2005-00.log:[1114932023] SERVICE ALERT: mail2;imap;CRITICAL;SOFT;1;Socket timeout after 10 seconds nagios-05-08-2005-00.log:[1114932170] SERVICE ALERT: mail2;imap;OK;SOFT;2;IMAP OK - 0.030 second response time on port 143 [* OK [CAPABILITY IMAP4REV1 LITERAL+ SASL-IR LOGIN-REFERRALS AUTH=LOGIN] mail2 IMAP4rev1 2004.350 at Sun, 1 May 2005 09:22:39 +0200 (DFT)] nagios-05-08-2005-00.log:[1114993427] SERVICE ALERT: mail2;imap;CRITICAL;SOFT;1;Socket timeout after 10 seconds nagios-05-08-2005-00.log:[1114993879] SERVICE ALERT: mail2;imap;OK;SOFT;2;IMAP OK - 0.007 second response time on port 143 [* OK [CAPABILITY IMAP4REV1 LITERAL+ SASL-IR LOGIN-REFERRALS AUTH=LOGIN] mail2 IMAP4rev1 2004.350 at Mon, 2 May 2005 02:28:10 +0200 (DFT)] nagios-06-19-2005-00.log:[1118670395] SERVICE ALERT: mail2;imap;CRITICAL;HARD;1;Socket timeout after 10 seconds nagios-06-19-2005-00.log:[1118670529] SERVICE ALERT: mail2;imap;OK;HARD;1;IMAP OK - 0.007 second response time on port 143 [* OK [CAPABILITY IMAP4REV1 LITERAL+ SASL-IR LOGIN-REFERRALS AUTH=LOGIN] mail2 IMAP4rev1 2004.350 at Mon, 13 Jun 2005 15:48:24 +0200 (DFT)] so... i get a service down for half a year!!! this was certainly NOT the case ;) is it me, am i doing something terribly wrong here? thanks in advance! -- harry aka Rik Bobbaers K.U.Leuven - LUDIT -=- Tel: +32 485 52 71 50 Rik.Bobbaers at cc.kuleuven.be -=- http://harry.ulyssis.org Disclaimer: By sending an email to ANY of my addresses you are agreeing that: 1. I am by definition, "the intended recipient" 2. All information in the email is mine to do with as I see fit and make such financial profit, political mileage, or good joke as it lends itself to. In particular, I may quote it on usenet. 3. I may take the contents as representing the views of your company. 4. This overrides any disclaimer or statement of confidentiality that may be included on your message. ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From srunschke at abit.de Tue Aug 23 15:20:16 2005 From: srunschke at abit.de (srunschke at abit.de) Date: Tue, 23 Aug 2005 15:20:16 +0200 Subject: Antwort: log errors in nagios.log In-Reply-To: <200508231503.23488.harry@cc.kuleuven.be> References: <200508231503.23488.harry@cc.kuleuven.be> Message-ID: > sorry to bother you guys/women again, > > can someone explain how these logs are possible? what i can do about it? > > nagios-01-16-2005-00.log:[1105544244] SERVICE ALERT: mail2;imap; > CRITICAL;HARD;1;Socket timeout after 10 seconds [...] > nagios-03-20-2005-00.log:[1110796836] SERVICE ALERT: mail2;imap; > CRITICAL;SOFT;1;Socket timeout after 10 seconds [...] > nagios-05-01-2005-00.log:[1114787348] SERVICE ALERT: mail2;imap; > CRITICAL;SOFT;1;Socket timeout after 10 seconds [...] > nagios-05-08-2005-00.log:[1114918221] SERVICE ALERT: mail2;imap; > CRITICAL;SOFT;1;Socket timeout after 10 seconds [...] > nagios-06-19-2005-00.log:[1118670395] SERVICE ALERT: mail2;imap; > CRITICAL;HARD;1;Socket timeout after 10 seconds [..] > so... i get a service down for half a year!!! > > this was certainly NOT the case ;) > is it me, am i doing something terribly wrong here? I fail to see what you mean? What's wrong with those errors? It shows that you IMAP Service seems to have been unavailable for a few minutes every few weeks. That tends to happen when you work on your servers. Where do you see the actual problem? It might have been a good idea to post some more information what we should look for or what you consider suspicious. regards sash -------------------------------------------------- Sascha Runschke Netzwerk Administration IT-Services ABIT AG Robert-Bosch-Str. 1 40668 Meerbusch Tel.:+49 (0) 2150.9153.226 Mobil:+49 (0) 173.5419665 mailto:SRunschke at abit.de http://www.abit.net http://www.abit-epos.net --------------------------------- Sicherheitshinweis zur E-Mail Kommunikation / Security note regarding email communication: http://www.abit.net/sicherheitshinweis.html ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dhopp at GOCSC.com Tue Aug 23 15:39:17 2005 From: dhopp at GOCSC.com (Dennis Hopp) Date: Tue, 23 Aug 2005 08:39:17 -0500 Subject: Perl plugins: No output from plugin Message-ID: <395D09D0C949AF40B9DDFEE9C93A47FF0443557A@hudson.gocsc.com> I changed the check command to echo the output. In the UI I get this: /opt/nagios/plugins/check_snmp_load.pl -H 10.12.10.29 -C public -w 2,2,3 -c 3,3,4 -L? So then as the nagios user I copied and pasted that.... -sh-3.00$ /opt/nagios/plugins/check_snmp_load.pl -H 10.12.10.29 -C public -w 2,2,3 -c 3,3,4 -L Load : 0.00 0.01 0.00 : OK -sh-3.00$ As you can see there is output...but for some reason nagios is saying there isn't when it fires it off on it's own. --Dennis -----Original Message----- From: Lori Adams [mailto:ladams at cloudmark.com] Sent: Monday, August 22, 2005 7:44 PM To: Dennis Hopp; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Perl plugins: No output from plugin When you ran it by hand as nagios user, did you include all relevant arguments? /opt/nagios/plugins/check_snmp_load.pl -H x.x.x.x -C public -w 2,2,3 -c 3,3,4 -L Another trick to verify that you're running it by hand correctly is to do define command{ ?????? command_name??? check_linux_load ???????command_line??? echo $USER1$/check_snmp_load.pl -H $HOSTADDRESS$ -C public -w $ARG1$ -c $ARG2$ -L }? The command will appear in the UI, and then you can run what is shown.? "No output from plugin" means just that.? Nagios is expecting some kind of statement about the check.? Your check is not outputting anything. ??You're getting a difference between running by hand and running automatically.? Get those to be the same, it'll be easier to track down. -Lori From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Dennis Hopp Sent: Monday, August 22, 2005 3:54 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Perl plugins: No output from plugin I'm trying to use the check_snmp_load.pl and check_snmp_storage.pl ? I can run the plugin from the command line (as both root and nagios user) and get the right results but when it's fired off automatically I keep getting "No output from plugin". ? Here are the relevant config: ? define? service{ ??????? use???????????????????????????? generic-service ??????? hostgroup_name????????????????? LinuxServers ??????? service_description???????????? LOAD ??????? is_volatile???????????????????? 0 ??????? check_period??????????????????? 24x7 ??????? max_check_attempts????????????? 3 ??????? normal_check_interval?????????? 5 ??????? retry_check_interval??????????? 1 ??????? contact_groups????????????????? domain-admins ??????? check_command???????? ??????????check_linux_load!2,2,3!3,3,4 } ? ? define command{ ??????? command_name??? check_linux_load ??????? command_line??? $USER1$/check_snmp_load.pl -H $HOSTADDRESS$ -C public -w $ARG1$ -c $ARG2$ -L } ? $USER1$=/opt/nagios/plugins ? [root at cartier plugins]# ls -l /opt/nagios/plugins/check_snmp_load.pl -rwxr-xr-x? 1 root root 14168 Aug 22 12:42 /opt/nagios/plugins/check_snmp_load.pl ? Thanks, ? --Dennis * "Privileged/Confidential Information of Communications Supply Corp. may be contained in this message.? If you are not the addressee of this message, you may not copy, use or deliver this message to anyone.? In such event, you should destroy the message and kindly notify the sender by reply e-mail.? It is understood that opinions or conclusions that do not relate to the official business of Communications Supply Corp. are neither given nor endorsed by Communications Supply Corp." ? ? ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tom.brown at goodtechnology.com Tue Aug 23 15:47:48 2005 From: tom.brown at goodtechnology.com (Tom Brown) Date: Tue, 23 Aug 2005 14:47:48 +0100 Subject: check_by_ssh - Usage Message-ID: <430B2904.9020500@goodtechnology.com> Hi I have a host and on this i have to parse a log file for errors etc. Normally i would do this by nrpe however i do not have xinet.d available to me so i _think_ i can use check_by_ssh Is there any info on usage of this plugin? As i'm having trouble with its use. Also is this a plugin that will do what i want? thanks ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Lutz.Koop.external at astrium.eads.net Tue Aug 23 15:52:35 2005 From: Lutz.Koop.external at astrium.eads.net (Koop, Lutz (external)) Date: Tue, 23 Aug 2005 15:52:35 +0200 Subject: WG: check_by_ssh - Usage Message-ID: <7579CAECCAF7D211B9600008C79139D80BA8C3EB@exdssfdh01.south.de.astrium.corp> check_by_ssh --help be sure, you have installed a public key in .ssh/authorized_keys before Lutz -----Urspr?ngliche Nachricht----- Von: Tom Brown [mailto:tom.brown at goodtechnology.com] Gesendet: Dienstag, 23. August 2005 15:48 An: nagios-users at lists.sourceforge.net Betreff: [Nagios-users] check_by_ssh - Usage Hi I have a host and on this i have to parse a log file for errors etc. Normally i would do this by nrpe however i do not have xinet.d available to me so i _think_ i can use check_by_ssh Is there any info on usage of this plugin? As i'm having trouble with its use. Also is this a plugin that will do what i want? thanks ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From harry at cc.kuleuven.be Tue Aug 23 15:57:19 2005 From: harry at cc.kuleuven.be (Harry de Grote) Date: Tue, 23 Aug 2005 15:57:19 +0200 Subject: Antwort: log errors in nagios.log In-Reply-To: References: Message-ID: <200508231557.19301.harry@cc.kuleuven.be> On Tuesday 23 August 2005 15:20, srunschke at abit.de wrote: > I fail to see what you mean? > What's wrong with those errors? > It shows that you IMAP Service seems to have been unavailable > for a few minutes every few weeks. That tends to happen when > you work on your servers. > > Where do you see the actual problem? > It might have been a good idea to post some more information > what we should look for or what you consider suspicious. hi all, sorry, i sent another mail, but i made a little mistake... this is the first one: hey all, i have a huge problem with nagios 2.0b4 (and all the other ones) we're running a nagios 1.2 (before that, the 1.1) for almost 2 years now. i want to create availability reports for the hosts and services (to give to the management guys). now here's the problem... there are a lot of services in an unknown state for a very long time. although we KNOW they were online, and nagios even said they were online. after a long search, i found the following: when you add a service check, and restart nagios, it says: status ok, but it doesn't write anything in the logs ==> no hard ok ==> still unknown in the availability report. even when it gets a soft critical, and becomes ok again, it still writes soft OK in the logs... still not enough to show ok in the availability report. the only way to get it to show up, is to get it hard critical, and then ok again... this will put a hard critical and hard ok in the logs, which will result in ok status in the reports. here the logs of my tests (explanation inserted in the log): !!! restart because i added a webserver check on host damien.kotnet.org !!! [1124788029] Caught SIGHUP, restarting... [1124788029] Nagios 2.0b4 starting... (PID=22971) [1124788029] LOG VERSION: 2.0 [1124788114] Caught SIGTERM, shutting down... [1124788114] Successfully shutdown... (PID=22971) [1124788114] Nagios 2.0b4 starting... (PID=8575) [1124788114] LOG VERSION: 2.0 [1124788114] Finished daemonizing... (New PID=892) !!! in availability report: 100% undetermined, while it says, service up !!! !!! i shut down the webserver on host damien.kotnet.org and forced a http check !!! SCHEDULE_FORCED_SVC_CHECK;damien.kotnet.org;web;1124788671 [1124788674] SERVICE ALERT: damien.kotnet.org;web;CRITICAL;SOFT;1;Connection refused !!! service critical, but only soft error... still 100% undetermined!!! !!! restarted webserver before the service became hard critical !!! [1124788824] SERVICE ALERT: damien.kotnet.org;web;OK;SOFT;2;HTTP OK HTTP/1.1 200 OK - 1205 bytes in 0.031 seconds !!! recover from a soft critical ==> soft ok ==> still 100% undetermined !!! [1124791524] SERVICE ALERT: damien.kotnet.org;web;CRITICAL;SOFT;1;Connection refused [1124791584] SERVICE ALERT: damien.kotnet.org;web;CRITICAL;SOFT;2;Connection refused [1124791644] SERVICE ALERT: damien.kotnet.org;web;CRITICAL;SOFT;3;Connection refused [1124791704] SERVICE ALERT: damien.kotnet.org;web;CRITICAL;HARD;4;Connection refused !!! shutdown of webserver again, waiting for a hard critical !!! !!! ==> undetermined BEFORE this event, critical after !!! [1124792004] SERVICE ALERT: damien.kotnet.org;web;OK;HARD;4;HTTP OK HTTP/1.1 200 OK - 1205 bytes in 0.037 seconds !!! only NOW, the service is ok for the first time in the availability log !!! Is this normal behaviour?? because, i want my services to be shown as up, when they are up, and down when they are down this behaviour makes it very hard to get an accurate availability figure. can i do something about this? maybe write more logs? (server is powerfull enough, and there is enough storage ;)) can anyone help? maybe inform me if i do something wrong? thanx in advance, anyway... the problem with these logs is, it gives availability reports as follows: http://harry.ulyssis.org/report.jpg service looks down for half a year, while it was not... again, sorry for the spam... greetings, -- harry aka Rik Bobbaers K.U.Leuven - LUDIT -=- Tel: +32 485 52 71 50 Rik.Bobbaers at cc.kuleuven.be -=- http://harry.ulyssis.org Disclaimer: By sending an email to ANY of my addresses you are agreeing that: 1. I am by definition, "the intended recipient" 2. All information in the email is mine to do with as I see fit and make such financial profit, political mileage, or good joke as it lends itself to. In particular, I may quote it on usenet. 3. I may take the contents as representing the views of your company. 4. This overrides any disclaimer or statement of confidentiality that may be included on your message. ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dhopp at GOCSC.com Tue Aug 23 16:29:24 2005 From: dhopp at GOCSC.com (Dennis Hopp) Date: Tue, 23 Aug 2005 09:29:24 -0500 Subject: Perl plugins: No output from plugin Message-ID: <395D09D0C949AF40B9DDFEE9C93A47FF0444BCED@hudson.gocsc.com> Here's some more information.... If I change the check command to: command_line echo $USER1$/check_snmp_load.pl -h I get the last two lines of the help output as my Status Information and Performance Data respectively. --Dennis > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Dennis Hopp > Sent: Tuesday, August 23, 2005 8:39 AM > To: Lori Adams; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Perl plugins: No output from plugin > > I changed the check command to echo the output. In the UI I get this: > > /opt/nagios/plugins/check_snmp_load.pl -H 10.12.10.29 -C public -w 2,2,3 - > c 3,3,4 -L > > So then as the nagios user I copied and pasted that.... > > -sh-3.00$ /opt/nagios/plugins/check_snmp_load.pl -H 10.12.10.29 -C public > -w 2,2,3 -c 3,3,4 -L > Load : 0.00 0.01 0.00 : OK > -sh-3.00$ > > As you can see there is output...but for some reason nagios is saying > there isn't when it fires it off on it's own. > > --Dennis > > -----Original Message----- > From: Lori Adams [mailto:ladams at cloudmark.com] > Sent: Monday, August 22, 2005 7:44 PM > To: Dennis Hopp; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Perl plugins: No output from plugin > > When you ran it by hand as nagios user, did you include all relevant > arguments? > /opt/nagios/plugins/check_snmp_load.pl -H x.x.x.x -C public -w 2,2,3 -c > 3,3,4 -L > > Another trick to verify that you're running it by hand correctly is to do > define command{ > ?????? command_name??? check_linux_load > ???????command_line??? echo $USER1$/check_snmp_load.pl -H $HOSTADDRESS$ -C > public -w $ARG1$ -c $ARG2$ -L > } > The command will appear in the UI, and then you can run what is shown. > > "No output from plugin" means just that.? Nagios is expecting some kind of > statement about the check.? Your check is not outputting anything. > ??You're getting a difference between running by hand and running > automatically.? Get those to be the same, it'll be easier to track down. > > -Lori > > > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Dennis Hopp > Sent: Monday, August 22, 2005 3:54 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Perl plugins: No output from plugin > > I'm trying to use the check_snmp_load.pl and check_snmp_storage.pl > > I can run the plugin from the command line (as both root and nagios user) > and get the right results but when it's fired off automatically I keep > getting "No output from plugin". > > Here are the relevant config: > > define? service{ > ??????? use???????????????????????????? generic-service > ??????? hostgroup_name????????????????? LinuxServers > ??????? service_description???????????? LOAD > ??????? is_volatile???????????????????? 0 > ??????? check_period??????????????????? 24x7 > ??????? max_check_attempts????????????? 3 > ??????? normal_check_interval?????????? 5 > ??????? retry_check_interval??????????? 1 > ??????? contact_groups????????????????? domain-admins > ??????? check_command???????? ??????????check_linux_load!2,2,3!3,3,4 > } > > > define command{ > ??????? command_name??? check_linux_load > ??????? command_line??? $USER1$/check_snmp_load.pl -H $HOSTADDRESS$ -C > public -w $ARG1$ -c $ARG2$ -L > } > > > $USER1$=/opt/nagios/plugins > > [root at cartier plugins]# ls -l /opt/nagios/plugins/check_snmp_load.pl > -rwxr-xr-x? 1 root root 14168 Aug 22 12:42 > /opt/nagios/plugins/check_snmp_load.pl > > Thanks, > > --Dennis > * "Privileged/Confidential Information of Communications Supply Corp. may > be contained in this message.? If you are not the addressee of this > message, you may not copy, use or deliver this message to anyone.? In such > event, you should destroy the message and kindly notify the sender by > reply e-mail.? It is understood that opinions or conclusions that do not > relate to the official business of Communications Supply Corp. are neither > given nor endorsed by Communications Supply Corp." > > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Tue Aug 23 16:58:37 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 23 Aug 2005 10:58:37 -0400 (EDT) Subject: Perl plugins: No output from plugin In-Reply-To: <395D09D0C949AF40B9DDFEE9C93A47FF0444BCED@hudson.gocsc.com> References: <395D09D0C949AF40B9DDFEE9C93A47FF0444BCED@hudson.gocsc.com> Message-ID: How do you start the plugins - explicit path to perl ? On Tue, 23 Aug 2005, Dennis Hopp wrote: > Here's some more information.... > > If I change the check command to: > > command_line echo $USER1$/check_snmp_load.pl -h > > I get the last two lines of the help output as my Status Information and Performance Data respectively. > > --Dennis > >> -----Original Message----- >> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- >> admin at lists.sourceforge.net] On Behalf Of Dennis Hopp >> Sent: Tuesday, August 23, 2005 8:39 AM >> To: Lori Adams; nagios-users at lists.sourceforge.net >> Subject: RE: [Nagios-users] Perl plugins: No output from plugin >> >> I changed the check command to echo the output. In the UI I get this: >> >> /opt/nagios/plugins/check_snmp_load.pl -H 10.12.10.29 -C public -w 2,2,3 - >> c 3,3,4 -L >> >> So then as the nagios user I copied and pasted that.... >> >> -sh-3.00$ /opt/nagios/plugins/check_snmp_load.pl -H 10.12.10.29 -C public >> -w 2,2,3 -c 3,3,4 -L >> Load : 0.00 0.01 0.00 : OK >> -sh-3.00$ >> >> As you can see there is output...but for some reason nagios is saying >> there isn't when it fires it off on it's own. >> >> --Dennis >> >> -----Original Message----- >> From: Lori Adams [mailto:ladams at cloudmark.com] >> Sent: Monday, August 22, 2005 7:44 PM >> To: Dennis Hopp; nagios-users at lists.sourceforge.net >> Subject: RE: [Nagios-users] Perl plugins: No output from plugin >> >> When you ran it by hand as nagios user, did you include all relevant >> arguments? >> /opt/nagios/plugins/check_snmp_load.pl -H x.x.x.x -C public -w 2,2,3 -c >> 3,3,4 -L >> >> Another trick to verify that you're running it by hand correctly is to do >> define command{ >> ?????? command_name??? check_linux_load >> ???????command_line??? echo $USER1$/check_snmp_load.pl -H $HOSTADDRESS$ -C >> public -w $ARG1$ -c $ARG2$ -L >> } >> The command will appear in the UI, and then you can run what is shown. >> >> "No output from plugin" means just that.? Nagios is expecting some kind of >> statement about the check.? Your check is not outputting anything. >> ??You're getting a difference between running by hand and running >> automatically.? Get those to be the same, it'll be easier to track down. >> >> -Lori >> >> >> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- >> admin at lists.sourceforge.net] On Behalf Of Dennis Hopp >> Sent: Monday, August 22, 2005 3:54 PM >> To: nagios-users at lists.sourceforge.net >> Subject: [Nagios-users] Perl plugins: No output from plugin >> >> I'm trying to use the check_snmp_load.pl and check_snmp_storage.pl >> >> I can run the plugin from the command line (as both root and nagios user) >> and get the right results but when it's fired off automatically I keep >> getting "No output from plugin". >> >> Here are the relevant config: >> >> define? service{ >> ??????? use???????????????????????????? generic-service >> ??????? hostgroup_name????????????????? LinuxServers >> ??????? service_description???????????? LOAD >> ??????? is_volatile???????????????????? 0 >> ??????? check_period??????????????????? 24x7 >> ??????? max_check_attempts????????????? 3 >> ??????? normal_check_interval?????????? 5 >> ??????? retry_check_interval??????????? 1 >> ??????? contact_groups????????????????? domain-admins >> ??????? check_command???????? ??????????check_linux_load!2,2,3!3,3,4 >> } >> >> >> define command{ >> ??????? command_name??? check_linux_load >> ??????? command_line??? $USER1$/check_snmp_load.pl -H $HOSTADDRESS$ -C >> public -w $ARG1$ -c $ARG2$ -L >> } >> >> >> $USER1$=/opt/nagios/plugins >> >> [root at cartier plugins]# ls -l /opt/nagios/plugins/check_snmp_load.pl >> -rwxr-xr-x? 1 root root 14168 Aug 22 12:42 >> /opt/nagios/plugins/check_snmp_load.pl >> >> Thanks, >> >> --Dennis >> * "Privileged/Confidential Information of Communications Supply Corp. may >> be contained in this message.? If you are not the addressee of this >> message, you may not copy, use or deliver this message to anyone.? In such >> event, you should destroy the message and kindly notify the sender by >> reply e-mail.? It is understood that opinions or conclusions that do not >> relate to the official business of Communications Supply Corp. are neither >> given nor endorsed by Communications Supply Corp." >> >> >> >> >> ------------------------------------------------------- >> SF.Net email is Sponsored by the Better Software Conference & EXPO >> September 19-22, 2005 * San Francisco, CA * Development Lifecycle >> Practices >> Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA >> Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. >> ::: Messages without supporting info will risk being sent to /dev/null > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- From dhopp at GOCSC.com Tue Aug 23 17:04:14 2005 From: dhopp at GOCSC.com (Dennis Hopp) Date: Tue, 23 Aug 2005 10:04:14 -0500 Subject: Perl plugins: No output from plugin Message-ID: <395D09D0C949AF40B9DDFEE9C93A47FF0444BF4D@hudson.gocsc.com> I got the plugins from: http://www.manubulon.com/nagios The first line in the is: #!/usr/bin/perl -w So yes, the explicit path. I did a strace on nagios and I can see where it calls the perl interpreter (at /usr/bin/perl) and I can see the plugin being opened and communicating with the other machine. After a lot of strace output I see the "No output from plugin" being written by nagios. --Dennis > -----Original Message----- > From: Subhendu Ghosh [mailto:sghosh at sghosh.org] > Sent: Tuesday, August 23, 2005 9:59 AM > To: Dennis Hopp > Cc: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Perl plugins: No output from plugin > > > How do you start the plugins - explicit path to perl ? > > > On Tue, 23 Aug 2005, Dennis Hopp wrote: > > > Here's some more information.... > > > > If I change the check command to: > > > > command_line echo $USER1$/check_snmp_load.pl -h > > > > I get the last two lines of the help output as my Status Information and > Performance Data respectively. > > > > --Dennis > > > >> -----Original Message----- > >> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > >> admin at lists.sourceforge.net] On Behalf Of Dennis Hopp > >> Sent: Tuesday, August 23, 2005 8:39 AM > >> To: Lori Adams; nagios-users at lists.sourceforge.net > >> Subject: RE: [Nagios-users] Perl plugins: No output from plugin > >> > >> I changed the check command to echo the output. In the UI I get this: > >> > >> /opt/nagios/plugins/check_snmp_load.pl -H 10.12.10.29 -C public -w > 2,2,3 - > >> c 3,3,4 -L > >> > >> So then as the nagios user I copied and pasted that.... > >> > >> -sh-3.00$ /opt/nagios/plugins/check_snmp_load.pl -H 10.12.10.29 -C > public > >> -w 2,2,3 -c 3,3,4 -L > >> Load : 0.00 0.01 0.00 : OK > >> -sh-3.00$ > >> > >> As you can see there is output...but for some reason nagios is saying > >> there isn't when it fires it off on it's own. > >> > >> --Dennis > >> > >> -----Original Message----- > >> From: Lori Adams [mailto:ladams at cloudmark.com] > >> Sent: Monday, August 22, 2005 7:44 PM > >> To: Dennis Hopp; nagios-users at lists.sourceforge.net > >> Subject: RE: [Nagios-users] Perl plugins: No output from plugin > >> > >> When you ran it by hand as nagios user, did you include all relevant > >> arguments? > >> /opt/nagios/plugins/check_snmp_load.pl -H x.x.x.x -C public -w 2,2,3 -c > >> 3,3,4 -L > >> > >> Another trick to verify that you're running it by hand correctly is to > do > >> define command{ > >> ?????? command_name??? check_linux_load > >> ???????command_line??? echo $USER1$/check_snmp_load.pl -H $HOSTADDRESS$ > -C > >> public -w $ARG1$ -c $ARG2$ -L > >> } > >> The command will appear in the UI, and then you can run what is shown. > >> > >> "No output from plugin" means just that.? Nagios is expecting some kind > of > >> statement about the check.? Your check is not outputting anything. > >> ??You're getting a difference between running by hand and running > >> automatically.? Get those to be the same, it'll be easier to track > down. > >> > >> -Lori > >> > >> > >> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > >> admin at lists.sourceforge.net] On Behalf Of Dennis Hopp > >> Sent: Monday, August 22, 2005 3:54 PM > >> To: nagios-users at lists.sourceforge.net > >> Subject: [Nagios-users] Perl plugins: No output from plugin > >> > >> I'm trying to use the check_snmp_load.pl and check_snmp_storage.pl > >> > >> I can run the plugin from the command line (as both root and nagios > user) > >> and get the right results but when it's fired off automatically I keep > >> getting "No output from plugin". > >> > >> Here are the relevant config: > >> > >> define? service{ > >> ??????? use???????????????????????????? generic-service > >> ??????? hostgroup_name????????????????? LinuxServers > >> ??????? service_description???????????? LOAD > >> ??????? is_volatile???????????????????? 0 > >> ??????? check_period??????????????????? 24x7 > >> ??????? max_check_attempts????????????? 3 > >> ??????? normal_check_interval?????????? 5 > >> ??????? retry_check_interval??????????? 1 > >> ??????? contact_groups????????????????? domain-admins > >> ??????? check_command???????? ??????????check_linux_load!2,2,3!3,3,4 > >> } > >> > >> > >> define command{ > >> ??????? command_name??? check_linux_load > >> ??????? command_line??? $USER1$/check_snmp_load.pl -H $HOSTADDRESS$ -C > >> public -w $ARG1$ -c $ARG2$ -L > >> } > >> > >> > >> $USER1$=/opt/nagios/plugins > >> > >> [root at cartier plugins]# ls -l /opt/nagios/plugins/check_snmp_load.pl > >> -rwxr-xr-x? 1 root root 14168 Aug 22 12:42 > >> /opt/nagios/plugins/check_snmp_load.pl > >> > >> Thanks, > >> > >> --Dennis > >> * "Privileged/Confidential Information of Communications Supply Corp. > may > >> be contained in this message.? If you are not the addressee of this > >> message, you may not copy, use or deliver this message to anyone.? In > such > >> event, you should destroy the message and kindly notify the sender by > >> reply e-mail.? It is understood that opinions or conclusions that do > not > >> relate to the official business of Communications Supply Corp. are > neither > >> given nor endorsed by Communications Supply Corp." > >> > >> > >> > >> > >> ------------------------------------------------------- > >> SF.Net email is Sponsored by the Better Software Conference & EXPO > >> September 19-22, 2005 * San Francisco, CA * Development Lifecycle > >> Practices > >> Agile & Plan-Driven Development * Managing Projects & Teams * Testing & > QA > >> Security * Process Improvement & Measurement * > http://www.sqe.com/bsce5sf > >> _______________________________________________ > >> Nagios-users mailing list > >> Nagios-users at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/nagios-users > >> ::: Please include Nagios version, plugin version (-v) and OS when > >> reporting any issue. > >> ::: Messages without supporting info will risk being sent to /dev/null > > > > > > ------------------------------------------------------- > > SF.Net email is Sponsored by the Better Software Conference & EXPO > > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > Practices > > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & > QA > > Security * Process Improvement & Measurement * > http://www.sqe.com/bsce5sf > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > > -- ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Tue Aug 23 17:10:27 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 23 Aug 2005 11:10:27 -0400 (EDT) Subject: Perl plugins: No output from plugin In-Reply-To: <395D09D0C949AF40B9DDFEE9C93A47FF0444BF4D@hudson.gocsc.com> References: <395D09D0C949AF40B9DDFEE9C93A47FF0444BF4D@hudson.gocsc.com> Message-ID: Can you try the following in the command def $USER1$/plugin options > /tmp/plugin_output.tmp |echo $? The tmp file should caontain any output on STDOUT and $? should give you the plugin exit code. -sg On Tue, 23 Aug 2005, Dennis Hopp wrote: > I got the plugins from: > > http://www.manubulon.com/nagios > > The first line in the is: > > #!/usr/bin/perl -w > > So yes, the explicit path. > > I did a strace on nagios and I can see where it calls the perl interpreter (at /usr/bin/perl) and I can see the plugin being opened and communicating with the other machine. After a lot of strace output I see the "No output from plugin" being written by nagios. > > --Dennis > >> -----Original Message----- >> From: Subhendu Ghosh [mailto:sghosh at sghosh.org] >> Sent: Tuesday, August 23, 2005 9:59 AM >> To: Dennis Hopp >> Cc: nagios-users at lists.sourceforge.net >> Subject: RE: [Nagios-users] Perl plugins: No output from plugin >> >> >> How do you start the plugins - explicit path to perl ? >> >> >> On Tue, 23 Aug 2005, Dennis Hopp wrote: >> >>> Here's some more information.... >>> >>> If I change the check command to: >>> >>> command_line echo $USER1$/check_snmp_load.pl -h >>> >>> I get the last two lines of the help output as my Status Information and >> Performance Data respectively. >>> >>> --Dennis >>> >>>> -----Original Message----- >>>> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- >>>> admin at lists.sourceforge.net] On Behalf Of Dennis Hopp >>>> Sent: Tuesday, August 23, 2005 8:39 AM >>>> To: Lori Adams; nagios-users at lists.sourceforge.net >>>> Subject: RE: [Nagios-users] Perl plugins: No output from plugin >>>> >>>> I changed the check command to echo the output. In the UI I get this: >>>> >>>> /opt/nagios/plugins/check_snmp_load.pl -H 10.12.10.29 -C public -w >> 2,2,3 - >>>> c 3,3,4 -L >>>> >>>> So then as the nagios user I copied and pasted that.... >>>> >>>> -sh-3.00$ /opt/nagios/plugins/check_snmp_load.pl -H 10.12.10.29 -C >> public >>>> -w 2,2,3 -c 3,3,4 -L >>>> Load : 0.00 0.01 0.00 : OK >>>> -sh-3.00$ >>>> >>>> As you can see there is output...but for some reason nagios is saying >>>> there isn't when it fires it off on it's own. >>>> >>>> --Dennis >>>> >>>> -----Original Message----- >>>> From: Lori Adams [mailto:ladams at cloudmark.com] >>>> Sent: Monday, August 22, 2005 7:44 PM >>>> To: Dennis Hopp; nagios-users at lists.sourceforge.net >>>> Subject: RE: [Nagios-users] Perl plugins: No output from plugin >>>> >>>> When you ran it by hand as nagios user, did you include all relevant >>>> arguments? >>>> /opt/nagios/plugins/check_snmp_load.pl -H x.x.x.x -C public -w 2,2,3 -c >>>> 3,3,4 -L >>>> >>>> Another trick to verify that you're running it by hand correctly is to >> do >>>> define command{ >>>> ?????? command_name??? check_linux_load >>>> ???????command_line??? echo $USER1$/check_snmp_load.pl -H $HOSTADDRESS$ >> -C >>>> public -w $ARG1$ -c $ARG2$ -L >>>> } >>>> The command will appear in the UI, and then you can run what is shown. >>>> >>>> "No output from plugin" means just that.? Nagios is expecting some kind >> of >>>> statement about the check.? Your check is not outputting anything. >>>> ??You're getting a difference between running by hand and running >>>> automatically.? Get those to be the same, it'll be easier to track >> down. >>>> >>>> -Lori >>>> >>>> >>>> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- >>>> admin at lists.sourceforge.net] On Behalf Of Dennis Hopp >>>> Sent: Monday, August 22, 2005 3:54 PM >>>> To: nagios-users at lists.sourceforge.net >>>> Subject: [Nagios-users] Perl plugins: No output from plugin >>>> >>>> I'm trying to use the check_snmp_load.pl and check_snmp_storage.pl >>>> >>>> I can run the plugin from the command line (as both root and nagios >> user) >>>> and get the right results but when it's fired off automatically I keep >>>> getting "No output from plugin". >>>> >>>> Here are the relevant config: >>>> >>>> define? service{ >>>> ??????? use???????????????????????????? generic-service >>>> ??????? hostgroup_name????????????????? LinuxServers >>>> ??????? service_description???????????? LOAD >>>> ??????? is_volatile???????????????????? 0 >>>> ??????? check_period??????????????????? 24x7 >>>> ??????? max_check_attempts????????????? 3 >>>> ??????? normal_check_interval?????????? 5 >>>> ??????? retry_check_interval??????????? 1 >>>> ??????? contact_groups????????????????? domain-admins >>>> ??????? check_command???????? ??????????check_linux_load!2,2,3!3,3,4 >>>> } >>>> >>>> >>>> define command{ >>>> ??????? command_name??? check_linux_load >>>> ??????? command_line??? $USER1$/check_snmp_load.pl -H $HOSTADDRESS$ -C >>>> public -w $ARG1$ -c $ARG2$ -L >>>> } >>>> >>>> >>>> $USER1$=/opt/nagios/plugins >>>> >>>> [root at cartier plugins]# ls -l /opt/nagios/plugins/check_snmp_load.pl >>>> -rwxr-xr-x? 1 root root 14168 Aug 22 12:42 >>>> /opt/nagios/plugins/check_snmp_load.pl >>>> >>>> Thanks, >>>> >>>> --Dennis >>>> * "Privileged/Confidential Information of Communications Supply Corp. >> may >>>> be contained in this message.? If you are not the addressee of this >>>> message, you may not copy, use or deliver this message to anyone.? In >> such >>>> event, you should destroy the message and kindly notify the sender by >>>> reply e-mail.? It is understood that opinions or conclusions that do >> not >>>> relate to the official business of Communications Supply Corp. are >> neither >>>> given nor endorsed by Communications Supply Corp." >>>> >>>> >>>> >>>> >>>> ------------------------------------------------------- >>>> SF.Net email is Sponsored by the Better Software Conference & EXPO >>>> September 19-22, 2005 * San Francisco, CA * Development Lifecycle >>>> Practices >>>> Agile & Plan-Driven Development * Managing Projects & Teams * Testing & >> QA >>>> Security * Process Improvement & Measurement * >> http://www.sqe.com/bsce5sf >>>> _______________________________________________ >>>> Nagios-users mailing list >>>> Nagios-users at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/nagios-users >>>> ::: Please include Nagios version, plugin version (-v) and OS when >>>> reporting any issue. >>>> ::: Messages without supporting info will risk being sent to /dev/null >>> >>> >>> ------------------------------------------------------- >>> SF.Net email is Sponsored by the Better Software Conference & EXPO >>> September 19-22, 2005 * San Francisco, CA * Development Lifecycle >> Practices >>> Agile & Plan-Driven Development * Managing Projects & Teams * Testing & >> QA >>> Security * Process Improvement & Measurement * >> http://www.sqe.com/bsce5sf >>> _______________________________________________ >>> Nagios-users mailing list >>> Nagios-users at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/nagios-users >>> ::: Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. >>> ::: Messages without supporting info will risk being sent to /dev/null >>> >> >> -- > -- From marc at ena.com Tue Aug 23 17:10:28 2005 From: marc at ena.com (Marc Powell) Date: Tue, 23 Aug 2005 10:10:28 -0500 Subject: Perl plugins: No output from plugin Message-ID: Did you compile nagios with the embedded perl interpreter? There are some special requirements for perl plugins when the embedded perl interpreter is present and this plugin may not meet them. I don't know if this is it as I don't use embedded perl but it looks like everything else is probably OK so far... -- Marc > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Dennis Hopp > Sent: Tuesday, August 23, 2005 8:39 AM > To: Lori Adams; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Perl plugins: No output from plugin > > I changed the check command to echo the output. In the UI I get this: > > /opt/nagios/plugins/check_snmp_load.pl -H 10.12.10.29 -C public -w 2,2,3 - > c 3,3,4 -L > > So then as the nagios user I copied and pasted that.... > > -sh-3.00$ /opt/nagios/plugins/check_snmp_load.pl -H 10.12.10.29 -C public > -w 2,2,3 -c 3,3,4 -L > Load : 0.00 0.01 0.00 : OK > -sh-3.00$ > > As you can see there is output...but for some reason nagios is saying > there isn't when it fires it off on it's own. > > --Dennis > > -----Original Message----- > From: Lori Adams [mailto:ladams at cloudmark.com] > Sent: Monday, August 22, 2005 7:44 PM > To: Dennis Hopp; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Perl plugins: No output from plugin > > When you ran it by hand as nagios user, did you include all relevant > arguments? > /opt/nagios/plugins/check_snmp_load.pl -H x.x.x.x -C public -w 2,2,3 -c > 3,3,4 -L > > Another trick to verify that you're running it by hand correctly is to do > define command{ > ?????? command_name??? check_linux_load > ???????command_line??? echo $USER1$/check_snmp_load.pl -H $HOSTADDRESS$ -C > public -w $ARG1$ -c $ARG2$ -L > } > The command will appear in the UI, and then you can run what is shown. > > "No output from plugin" means just that.? Nagios is expecting some kind of > statement about the check.? Your check is not outputting anything. > ??You're getting a difference between running by hand and running > automatically.? Get those to be the same, it'll be easier to track down. > > -Lori > > > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Dennis Hopp > Sent: Monday, August 22, 2005 3:54 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Perl plugins: No output from plugin > > I'm trying to use the check_snmp_load.pl and check_snmp_storage.pl > > I can run the plugin from the command line (as both root and nagios user) > and get the right results but when it's fired off automatically I keep > getting "No output from plugin". > > Here are the relevant config: > > define? service{ > ??????? use???????????????????????????? generic-service > ??????? hostgroup_name????????????????? LinuxServers > ??????? service_description???????????? LOAD > ??????? is_volatile???????????????????? 0 > ??????? check_period??????????????????? 24x7 > ??????? max_check_attempts????????????? 3 > ??????? normal_check_interval?????????? 5 > ??????? retry_check_interval??????????? 1 > ??????? contact_groups????????????????? domain-admins > ??????? check_command???????? ??????????check_linux_load!2,2,3!3,3,4 > } > > > define command{ > ??????? command_name??? check_linux_load > ??????? command_line??? $USER1$/check_snmp_load.pl -H $HOSTADDRESS$ -C > public -w $ARG1$ -c $ARG2$ -L > } > > > $USER1$=/opt/nagios/plugins > > [root at cartier plugins]# ls -l /opt/nagios/plugins/check_snmp_load.pl > -rwxr-xr-x? 1 root root 14168 Aug 22 12:42 > /opt/nagios/plugins/check_snmp_load.pl > > Thanks, > > --Dennis > * "Privileged/Confidential Information of Communications Supply Corp. may > be contained in this message.? If you are not the addressee of this > message, you may not copy, use or deliver this message to anyone.? In such > event, you should destroy the message and kindly notify the sender by > reply e-mail.? It is understood that opinions or conclusions that do not > relate to the official business of Communications Supply Corp. are neither > given nor endorsed by Communications Supply Corp." > > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dhopp at GOCSC.com Tue Aug 23 17:14:33 2005 From: dhopp at GOCSC.com (Dennis Hopp) Date: Tue, 23 Aug 2005 10:14:33 -0500 Subject: Perl plugins: No output from plugin Message-ID: <395D09D0C949AF40B9DDFEE9C93A47FF0444C009@hudson.gocsc.com> Yes I did compile with the embedded perl interpreter. I've used this script with rpm packages on other systems that compile the embedded perl interpreter...but I'll try to recompile without the embedded perl interpreter and see what happens. --Dennis > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Marc Powell > Sent: Tuesday, August 23, 2005 10:10 AM > To: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Perl plugins: No output from plugin > > Did you compile nagios with the embedded perl interpreter? There are some > special requirements for perl plugins when the embedded perl interpreter > is present and this plugin may not meet them. I don't know if this is it > as I don't use embedded perl but it looks like everything else is probably > OK so far... > > -- > Marc > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > > admin at lists.sourceforge.net] On Behalf Of Dennis Hopp > > Sent: Tuesday, August 23, 2005 8:39 AM > > To: Lori Adams; nagios-users at lists.sourceforge.net > > Subject: RE: [Nagios-users] Perl plugins: No output from plugin > > > > I changed the check command to echo the output. In the UI I get this: > > > > /opt/nagios/plugins/check_snmp_load.pl -H 10.12.10.29 -C public -w 2,2,3 > - > > c 3,3,4 -L > > > > So then as the nagios user I copied and pasted that.... > > > > -sh-3.00$ /opt/nagios/plugins/check_snmp_load.pl -H 10.12.10.29 -C > public > > -w 2,2,3 -c 3,3,4 -L > > Load : 0.00 0.01 0.00 : OK > > -sh-3.00$ > > > > As you can see there is output...but for some reason nagios is saying > > there isn't when it fires it off on it's own. > > > > --Dennis > > > > -----Original Message----- > > From: Lori Adams [mailto:ladams at cloudmark.com] > > Sent: Monday, August 22, 2005 7:44 PM > > To: Dennis Hopp; nagios-users at lists.sourceforge.net > > Subject: RE: [Nagios-users] Perl plugins: No output from plugin > > > > When you ran it by hand as nagios user, did you include all relevant > > arguments? > > /opt/nagios/plugins/check_snmp_load.pl -H x.x.x.x -C public -w 2,2,3 -c > > 3,3,4 -L > > > > Another trick to verify that you're running it by hand correctly is to > do > > define command{ > > ?????? command_name??? check_linux_load > > ???????command_line??? echo $USER1$/check_snmp_load.pl -H $HOSTADDRESS$ > -C > > public -w $ARG1$ -c $ARG2$ -L > > } > > The command will appear in the UI, and then you can run what is shown. > > > > "No output from plugin" means just that.? Nagios is expecting some kind > of > > statement about the check.? Your check is not outputting anything. > > ??You're getting a difference between running by hand and running > > automatically.? Get those to be the same, it'll be easier to track down. > > > > -Lori > > > > > > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > > admin at lists.sourceforge.net] On Behalf Of Dennis Hopp > > Sent: Monday, August 22, 2005 3:54 PM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Perl plugins: No output from plugin > > > > I'm trying to use the check_snmp_load.pl and check_snmp_storage.pl > > > > I can run the plugin from the command line (as both root and nagios > user) > > and get the right results but when it's fired off automatically I keep > > getting "No output from plugin". > > > > Here are the relevant config: > > > > define? service{ > > ??????? use???????????????????????????? generic-service > > ??????? hostgroup_name????????????????? LinuxServers > > ??????? service_description???????????? LOAD > > ??????? is_volatile???????????????????? 0 > > ??????? check_period??????????????????? 24x7 > > ??????? max_check_attempts????????????? 3 > > ??????? normal_check_interval?????????? 5 > > ??????? retry_check_interval??????????? 1 > > ??????? contact_groups????????????????? domain-admins > > ??????? check_command???????? ??????????check_linux_load!2,2,3!3,3,4 > > } > > > > > > define command{ > > ??????? command_name??? check_linux_load > > ??????? command_line??? $USER1$/check_snmp_load.pl -H $HOSTADDRESS$ -C > > public -w $ARG1$ -c $ARG2$ -L > > } > > > > > > $USER1$=/opt/nagios/plugins > > > > [root at cartier plugins]# ls -l /opt/nagios/plugins/check_snmp_load.pl > > -rwxr-xr-x? 1 root root 14168 Aug 22 12:42 > > /opt/nagios/plugins/check_snmp_load.pl > > > > Thanks, > > > > --Dennis > > * "Privileged/Confidential Information of Communications Supply Corp. > may > > be contained in this message.? If you are not the addressee of this > > message, you may not copy, use or deliver this message to anyone.? In > such > > event, you should destroy the message and kindly notify the sender by > > reply e-mail.? It is understood that opinions or conclusions that do not > > relate to the official business of Communications Supply Corp. are > neither > > given nor endorsed by Communications Supply Corp." > > > > > > > > > > ------------------------------------------------------- > > SF.Net email is Sponsored by the Better Software Conference & EXPO > > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > > Practices > > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & > QA > > Security * Process Improvement & Measurement * > http://www.sqe.com/bsce5sf > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > > reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dhopp at GOCSC.com Tue Aug 23 17:29:24 2005 From: dhopp at GOCSC.com (Dennis Hopp) Date: Tue, 23 Aug 2005 10:29:24 -0500 Subject: Perl plugins: No output from plugin Message-ID: <395D09D0C949AF40B9DDFEE9C93A47FF0444C122@hudson.gocsc.com> I don't get a file in /tmp... # 'check_linux_load' command definition define command{ command_name check_linux_load command_line $USER1$/check_snmp_load.pl -H $HOSTADDRESS$ -C public -w $ARG1$ -c $ARG2$ -L > /tmp/plugin_output.tmp |echo $? # command_line $USER1$/check_snmp_load.pl -h } --Dennis > -----Original Message----- > From: Subhendu Ghosh [mailto:sghosh at sghosh.org] > Sent: Tuesday, August 23, 2005 10:10 AM > To: Dennis Hopp > Cc: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Perl plugins: No output from plugin > > > Can you try the following in the command def > > $USER1$/plugin options > /tmp/plugin_output.tmp |echo $? > > The tmp file should caontain any output on STDOUT and $? should give you > the plugin exit code. > > -sg > > > On Tue, 23 Aug 2005, Dennis Hopp wrote: > > > I got the plugins from: > > > > http://www.manubulon.com/nagios > > > > The first line in the is: > > > > #!/usr/bin/perl -w > > > > So yes, the explicit path. > > > > I did a strace on nagios and I can see where it calls the perl > interpreter (at /usr/bin/perl) and I can see the plugin being opened and > communicating with the other machine. After a lot of strace output I see > the "No output from plugin" being written by nagios. > > > > --Dennis > > > >> -----Original Message----- > >> From: Subhendu Ghosh [mailto:sghosh at sghosh.org] > >> Sent: Tuesday, August 23, 2005 9:59 AM > >> To: Dennis Hopp > >> Cc: nagios-users at lists.sourceforge.net > >> Subject: RE: [Nagios-users] Perl plugins: No output from plugin > >> > >> > >> How do you start the plugins - explicit path to perl ? > >> > >> > >> On Tue, 23 Aug 2005, Dennis Hopp wrote: > >> > >>> Here's some more information.... > >>> > >>> If I change the check command to: > >>> > >>> command_line echo $USER1$/check_snmp_load.pl -h > >>> > >>> I get the last two lines of the help output as my Status Information > and > >> Performance Data respectively. > >>> > >>> --Dennis > >>> > >>>> -----Original Message----- > >>>> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > >>>> admin at lists.sourceforge.net] On Behalf Of Dennis Hopp > >>>> Sent: Tuesday, August 23, 2005 8:39 AM > >>>> To: Lori Adams; nagios-users at lists.sourceforge.net > >>>> Subject: RE: [Nagios-users] Perl plugins: No output from plugin > >>>> > >>>> I changed the check command to echo the output. In the UI I get > this: > >>>> > >>>> /opt/nagios/plugins/check_snmp_load.pl -H 10.12.10.29 -C public -w > >> 2,2,3 - > >>>> c 3,3,4 -L > >>>> > >>>> So then as the nagios user I copied and pasted that.... > >>>> > >>>> -sh-3.00$ /opt/nagios/plugins/check_snmp_load.pl -H 10.12.10.29 -C > >> public > >>>> -w 2,2,3 -c 3,3,4 -L > >>>> Load : 0.00 0.01 0.00 : OK > >>>> -sh-3.00$ > >>>> > >>>> As you can see there is output...but for some reason nagios is saying > >>>> there isn't when it fires it off on it's own. > >>>> > >>>> --Dennis > >>>> > >>>> -----Original Message----- > >>>> From: Lori Adams [mailto:ladams at cloudmark.com] > >>>> Sent: Monday, August 22, 2005 7:44 PM > >>>> To: Dennis Hopp; nagios-users at lists.sourceforge.net > >>>> Subject: RE: [Nagios-users] Perl plugins: No output from plugin > >>>> > >>>> When you ran it by hand as nagios user, did you include all relevant > >>>> arguments? > >>>> /opt/nagios/plugins/check_snmp_load.pl -H x.x.x.x -C public -w 2,2,3 > -c > >>>> 3,3,4 -L > >>>> > >>>> Another trick to verify that you're running it by hand correctly is > to > >> do > >>>> define command{ > >>>> ?????? command_name??? check_linux_load > >>>> ???????command_line??? echo $USER1$/check_snmp_load.pl -H > $HOSTADDRESS$ > >> -C > >>>> public -w $ARG1$ -c $ARG2$ -L > >>>> } > >>>> The command will appear in the UI, and then you can run what is > shown. > >>>> > >>>> "No output from plugin" means just that.? Nagios is expecting some > kind > >> of > >>>> statement about the check.? Your check is not outputting anything. > >>>> ??You're getting a difference between running by hand and running > >>>> automatically.? Get those to be the same, it'll be easier to track > >> down. > >>>> > >>>> -Lori > >>>> > >>>> > >>>> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > >>>> admin at lists.sourceforge.net] On Behalf Of Dennis Hopp > >>>> Sent: Monday, August 22, 2005 3:54 PM > >>>> To: nagios-users at lists.sourceforge.net > >>>> Subject: [Nagios-users] Perl plugins: No output from plugin > >>>> > >>>> I'm trying to use the check_snmp_load.pl and check_snmp_storage.pl > >>>> > >>>> I can run the plugin from the command line (as both root and nagios > >> user) > >>>> and get the right results but when it's fired off automatically I > keep > >>>> getting "No output from plugin". > >>>> > >>>> Here are the relevant config: > >>>> > >>>> define? service{ > >>>> ??????? use???????????????????????????? generic-service > >>>> ??????? hostgroup_name????????????????? LinuxServers > >>>> ??????? service_description???????????? LOAD > >>>> ??????? is_volatile???????????????????? 0 > >>>> ??????? check_period??????????????????? 24x7 > >>>> ??????? max_check_attempts????????????? 3 > >>>> ??????? normal_check_interval?????????? 5 > >>>> ??????? retry_check_interval??????????? 1 > >>>> ??????? contact_groups????????????????? domain-admins > >>>> ??????? check_command???????? ??????????check_linux_load!2,2,3!3,3,4 > >>>> } > >>>> > >>>> > >>>> define command{ > >>>> ??????? command_name??? check_linux_load > >>>> ??????? command_line??? $USER1$/check_snmp_load.pl -H $HOSTADDRESS$ - > C > >>>> public -w $ARG1$ -c $ARG2$ -L > >>>> } > >>>> > >>>> > >>>> $USER1$=/opt/nagios/plugins > >>>> > >>>> [root at cartier plugins]# ls -l /opt/nagios/plugins/check_snmp_load.pl > >>>> -rwxr-xr-x? 1 root root 14168 Aug 22 12:42 > >>>> /opt/nagios/plugins/check_snmp_load.pl > >>>> > >>>> Thanks, > >>>> > >>>> --Dennis > >>>> * "Privileged/Confidential Information of Communications Supply Corp. > >> may > >>>> be contained in this message.? If you are not the addressee of this > >>>> message, you may not copy, use or deliver this message to anyone.? In > >> such > >>>> event, you should destroy the message and kindly notify the sender by > >>>> reply e-mail.? It is understood that opinions or conclusions that do > >> not > >>>> relate to the official business of Communications Supply Corp. are > >> neither > >>>> given nor endorsed by Communications Supply Corp." > >>>> > >>>> > >>>> > >>>> > >>>> ------------------------------------------------------- > >>>> SF.Net email is Sponsored by the Better Software Conference & EXPO > >>>> September 19-22, 2005 * San Francisco, CA * Development Lifecycle > >>>> Practices > >>>> Agile & Plan-Driven Development * Managing Projects & Teams * Testing > & > >> QA > >>>> Security * Process Improvement & Measurement * > >> http://www.sqe.com/bsce5sf > >>>> _______________________________________________ > >>>> Nagios-users mailing list > >>>> Nagios-users at lists.sourceforge.net > >>>> https://lists.sourceforge.net/lists/listinfo/nagios-users > >>>> ::: Please include Nagios version, plugin version (-v) and OS when > >>>> reporting any issue. > >>>> ::: Messages without supporting info will risk being sent to > /dev/null > >>> > >>> > >>> ------------------------------------------------------- > >>> SF.Net email is Sponsored by the Better Software Conference & EXPO > >>> September 19-22, 2005 * San Francisco, CA * Development Lifecycle > >> Practices > >>> Agile & Plan-Driven Development * Managing Projects & Teams * Testing > & > >> QA > >>> Security * Process Improvement & Measurement * > >> http://www.sqe.com/bsce5sf > >>> _______________________________________________ > >>> Nagios-users mailing list > >>> Nagios-users at lists.sourceforge.net > >>> https://lists.sourceforge.net/lists/listinfo/nagios-users > >>> ::: Please include Nagios version, plugin version (-v) and OS when > >> reporting any issue. > >>> ::: Messages without supporting info will risk being sent to /dev/null > >>> > >> > >> -- > > > > -- ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Chester.Hosey at gianteagle.com Tue Aug 23 17:32:45 2005 From: Chester.Hosey at gianteagle.com (Chester R. Hosey) Date: Tue, 23 Aug 2005 11:32:45 -0400 Subject: Perl plugins: No output from plugin In-Reply-To: <395D09D0C949AF40B9DDFEE9C93A47FF0444C122@hudson.gocsc.com> References: <395D09D0C949AF40B9DDFEE9C93A47FF0444C122@hudson.gocsc.com> Message-ID: <28484.0161250488$1124811390@news.gmane.org> On Tue, 2005-08-23 at 10:29 -0500, Dennis Hopp wrote: > I don't get a file in /tmp... > > > # 'check_linux_load' command definition > define command{ > command_name check_linux_load > command_line $USER1$/check_snmp_load.pl -H $HOSTADDRESS$ -C > public -w $ARG1$ -c $ARG2$ -L > /tmp/plugin_output.tmp |echo $? > > # command_line $USER1$/check_snmp_load.pl -h > } > > --Dennis Try using the 'tee' command in your definition -- even if the command generates no output, tee will at least create a 0-length file. command_line $USER1$/check_snmp_load.pl -H $HOSTADDRESS$ -C public -w $ARG1$ -c $ARG2$ -L | /usr/bin/tee /tmp/plugin_output.tmp (Verify path to 'tee', of course.) Chet ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dhopp at GOCSC.com Tue Aug 23 17:39:08 2005 From: dhopp at GOCSC.com (Dennis Hopp) Date: Tue, 23 Aug 2005 10:39:08 -0500 Subject: Perl plugins: No output from plugin Message-ID: <395D09D0C949AF40B9DDFEE9C93A47FF0444C1B6@hudson.gocsc.com> Well I recompiled without the embedded perl interpreter and everything seems to be working now. I've seen the SPEC files of the rpm packages and they configure with --embedded-perl and --perl-cache ...must be something I did wrong... Oh well for now, I don't have enough hosts/services to worry about the overhead. Thanks for everybody's help! --Dennis > -----Original Message----- > From: Chester R. Hosey [mailto:Chester.Hosey at gianteagle.com] > Sent: Tuesday, August 23, 2005 10:33 AM > To: Dennis Hopp > Cc: Subhendu Ghosh; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Perl plugins: No output from plugin > > On Tue, 2005-08-23 at 10:29 -0500, Dennis Hopp wrote: > > I don't get a file in /tmp... > > > > > > # 'check_linux_load' command definition > > define command{ > > command_name check_linux_load > > command_line $USER1$/check_snmp_load.pl -H $HOSTADDRESS$ -C > > public -w $ARG1$ -c $ARG2$ -L > /tmp/plugin_output.tmp |echo $? > > > > # command_line $USER1$/check_snmp_load.pl -h > > } > > > > --Dennis > > Try using the 'tee' command in your definition -- even if the command > generates no output, tee will at least create a 0-length file. > > command_line $USER1$/check_snmp_load.pl -H $HOSTADDRESS$ -C public -w > $ARG1$ -c $ARG2$ -L | /usr/bin/tee /tmp/plugin_output.tmp > > (Verify path to 'tee', of course.) > > Chet ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cdoblado at pulsartec.com Tue Aug 23 17:44:38 2005 From: cdoblado at pulsartec.com (Cristina Doblado) Date: Tue, 23 Aug 2005 17:44:38 +0200 Subject: Whoops error on mandrake 10.1 In-Reply-To: <7A76D1C6A1387C428AE891C4A1CD8C6B04242954@mail.jennyfer.fr> References: <7A76D1C6A1387C428AE891C4A1CD8C6B04242954@mail.jennyfer.fr> Message-ID: <430B4466.8080204@pulsartec.com> If you're not using "default_user_name" in cgi.cfg, you will probably need to configure your web server with authentication control in both HTML and CGI directories (/usr/share/nagios/ and /usr/lib/nagios/cgi/ or equivalent). If using Apache's authentication try with ".htaccess" files into those two directories allowing your nagios users access to the interface. Gerald GENIAUT wrote: > Hello, > > I check everywhere but I'm continuing to get the whoosp error : could > not read object configuration data! > > The verbose mode is ok (no error) > The log are clean (no error) > The CGI are installed correctly I think. > > My configuration is : Mandrake 10.1 - Nagios 2.0 - Apache 2 > > What I do : configure all file with tutorial french web site. After I > check in an other web site to verify my configuration files, and all > seems to be ok. > > I try to set right to apache.apache to the cgi folder like I read it > in a thread, but nothing change all continue to be wrong. > > Someone know what I miss ? Where is my mistake ? > > Thanks for your reply. > > G?rald ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nagios-user at proy.org Tue Aug 23 17:56:46 2005 From: nagios-user at proy.org (Patrick Proy) Date: Tue, 23 Aug 2005 17:56:46 +0200 Subject: Perl plugins: No output from plugin In-Reply-To: <395D09D0C949AF40B9DDFEE9C93A47FF0444C1B6@hudson.gocsc.com> References: <395D09D0C949AF40B9DDFEE9C93A47FF0444C1B6@hudson.gocsc.com> Message-ID: <20050823155647.ECA1BAB6E1@www.manubulon.com> Hi, You can also try (if you can I would be interrested by the result with embeded Perl) : command_line /usr/bin/perl $USER1$/check_snmp_load.pl -H $HOSTADDRESS$ -C public -w $ARG1$ -c $ARG2$ -L Patrick http://www.manubulon.com/nagios/ -----Message d'origine----- De : nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] De la part de Dennis Hopp Envoy? : mardi 23 ao?t 2005 17:39 ? : Chester R. Hosey Cc : Subhendu Ghosh; nagios-users at lists.sourceforge.net Objet : RE: [Nagios-users] Perl plugins: No output from plugin Well I recompiled without the embedded perl interpreter and everything seems to be working now. I've seen the SPEC files of the rpm packages and they configure with --embedded-perl and --perl-cache ...must be something I did wrong... Oh well for now, I don't have enough hosts/services to worry about the overhead. Thanks for everybody's help! --Dennis > -----Original Message----- > From: Chester R. Hosey [mailto:Chester.Hosey at gianteagle.com] > Sent: Tuesday, August 23, 2005 10:33 AM > To: Dennis Hopp > Cc: Subhendu Ghosh; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Perl plugins: No output from plugin > > On Tue, 2005-08-23 at 10:29 -0500, Dennis Hopp wrote: > > I don't get a file in /tmp... > > > > > > # 'check_linux_load' command definition define command{ > > command_name check_linux_load > > command_line $USER1$/check_snmp_load.pl -H $HOSTADDRESS$ -C > > public -w $ARG1$ -c $ARG2$ -L > /tmp/plugin_output.tmp |echo $? > > > > # command_line $USER1$/check_snmp_load.pl -h > > } > > > > --Dennis > > Try using the 'tee' command in your definition -- even if the command > generates no output, tee will at least create a 0-length file. > > command_line $USER1$/check_snmp_load.pl -H $HOSTADDRESS$ -C public -w > $ARG1$ -c $ARG2$ -L | /usr/bin/tee /tmp/plugin_output.tmp > > (Verify path to 'tee', of course.) > > Chet ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From justin.shore at sktbcs.com Tue Aug 23 18:13:07 2005 From: justin.shore at sktbcs.com (Justin Shore) Date: Tue, 23 Aug 2005 11:13:07 -0500 Subject: Reclassifying an event's significance Message-ID: > -----Original Message----- > From: Andrew Cruse [mailto:andrew at profitability.net] > Sent: Friday, August 19, 2005 4:28 PM > To: Justin Shore; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Reclassifying an event's significance > > nagios-users-admin at lists.sourceforge.net wrote: > > I have 2.0b4 monitoring a number of hosts that go down > > frequently, almost regularly. Even though we monitor them we > > do not care what their state is (unreachable, up, down, > > flaming, etc). These boxes are rebooted or are otherwise > > inaccessible at various time during the day due to numerous > > reasons. Is it possible to reclassify an unreachable or down > > state as nothing more than a simple warning at most or > > ideally not show up at all on the tactical overview? I do > > not want to get paged, nor do I want the web interface to > > send out any time of audible alert. Like I said before we do > > not care if these machines go offline. I wouldn't mind them > > showing up red in the status map. Other than that I want > > them to run silent. Scheduling downtime as needed for these > > hosts isn't an option. I also don't want to simply disable > > notifications for these hosts (what I'm currently doing). > > Having 2 dozen hosts' notifications listed as disabled > > prompts too many questions as to why they're disabled and > > causes too many people to be concerned. Is there a way to > > achieve this desired result without not monitoring these > > hosts at all and removing them from the config? > > Why are you monitoring them if you don't want to know when they go down? > But, to answer your question, why not change the host check to a dummy > check that always returns ok, and then set each of the services for > those hosts not to notify at any state. These machines are controlled by numerous people who will reboot these machines as is necessary. Few of these machines are shared between different people though. I believe that the desired result will be for the helpdesk to know if a machine is currently offline if someone asks but to not be concerned about it in the least otherwise. That's just for this very specific group of servers. All the other "normal" servers are monitored like one would expect. It's a rather unusual arrangement. I'll give your suggestion a try. Thanks Justin -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.338 / Virus Database: 267.10.14/79 - Release Date: 8/22/2005 ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From justin.shore at sktbcs.com Tue Aug 23 18:14:24 2005 From: justin.shore at sktbcs.com (Justin Shore) Date: Tue, 23 Aug 2005 11:14:24 -0500 Subject: Reclassifying an event's significance Message-ID: Those are viable options. I already have a null contact for testing purposes. I'll give these options some thought. Thanks Justin > Besides using the 'check_dummy' plugin, how about setting up a dummy > "Not Notified" group? > Or set escalations to a huge value. > (my 2 cents) > > > Justin Shore wrote: > > >I have 2.0b4 monitoring a number of hosts that go down frequently, almost > regularly. Even though we monitor them we do not care what their state is > (unreachable, up, down, flaming, etc). These boxes are rebooted or are > otherwise inaccessible at various time during the day due to numerous > reasons. Is it possible to reclassify an unreachable or down state as > nothing more than a simple warning at most or ideally not show up at all > on the tactical overview? I do not want to get paged, nor do I want the > web interface to send out any time of audible alert. Like I said before > we do not care if these machines go offline. I wouldn't mind them showing > up red in the status map. Other than that I want them to run silent. > Scheduling downtime as needed for these hosts isn't an option. I also > don't want to simply disable notifications for these hosts (what I'm > currently doing). Having 2 dozen hosts' notifications listed as disabled > prompts too many questions as to why they're disabled and causes too many > people to be concerned. Is there a way to achieve this desired result > without not monitoring these hosts at all and removing them from the > config? -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.338 / Virus Database: 267.10.14/79 - Release Date: 8/22/2005 ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dhopp at GOCSC.com Tue Aug 23 18:53:06 2005 From: dhopp at GOCSC.com (Dennis Hopp) Date: Tue, 23 Aug 2005 11:53:06 -0500 Subject: Perl plugins: No output from plugin Message-ID: <395D09D0C949AF40B9DDFEE9C93A47FF0444C5E8@hudson.gocsc.com> I recompiled again with embedded perl. I left the checkcommand the way it was and got the "No output from plugin" error. I then added /usr/bin/perl to the checkcommand. Nagios then got the proper Load information from the plugin. --Dennis > -----Original Message----- > From: Patrick Proy [mailto:nagios-user at proy.org] > Sent: Tuesday, August 23, 2005 10:57 AM > To: Dennis Hopp > Cc: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Perl plugins: No output from plugin > > Hi, > > You can also try (if you can I would be interrested by the result with > embeded Perl) : > > command_line /usr/bin/perl $USER1$/check_snmp_load.pl -H > $HOSTADDRESS$ > -C public -w $ARG1$ -c $ARG2$ -L > > > Patrick > http://www.manubulon.com/nagios/ > > > -----Message d'origine----- > De : nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] De la part de Dennis > Hopp > Envoy? : mardi 23 ao?t 2005 17:39 > ? : Chester R. Hosey > Cc : Subhendu Ghosh; nagios-users at lists.sourceforge.net > Objet : RE: [Nagios-users] Perl plugins: No output from plugin > > Well I recompiled without the embedded perl interpreter and everything > seems > to be working now. > > I've seen the SPEC files of the rpm packages and they configure with > --embedded-perl and --perl-cache ...must be something I did wrong... > > Oh well for now, I don't have enough hosts/services to worry about the > overhead. > > Thanks for everybody's help! > > --Dennis > > > -----Original Message----- > > From: Chester R. Hosey [mailto:Chester.Hosey at gianteagle.com] > > Sent: Tuesday, August 23, 2005 10:33 AM > > To: Dennis Hopp > > Cc: Subhendu Ghosh; nagios-users at lists.sourceforge.net > > Subject: RE: [Nagios-users] Perl plugins: No output from plugin > > > > On Tue, 2005-08-23 at 10:29 -0500, Dennis Hopp wrote: > > > I don't get a file in /tmp... > > > > > > > > > # 'check_linux_load' command definition define command{ > > > command_name check_linux_load > > > command_line $USER1$/check_snmp_load.pl -H $HOSTADDRESS$ > -C > > > public -w $ARG1$ -c $ARG2$ -L > /tmp/plugin_output.tmp |echo $? > > > > > > # command_line $USER1$/check_snmp_load.pl -h > > > } > > > > > > --Dennis > > > > Try using the 'tee' command in your definition -- even if the command > > generates no output, tee will at least create a 0-length file. > > > > command_line $USER1$/check_snmp_load.pl -H $HOSTADDRESS$ -C public > -w > > $ARG1$ -c $ARG2$ -L | /usr/bin/tee /tmp/plugin_output.tmp > > > > (Verify path to 'tee', of course.) > > > > Chet > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September > 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & > Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security > * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From zsitfa at t-online.hu Tue Aug 23 22:26:19 2005 From: zsitfa at t-online.hu (Horvath Tamas) Date: Tue, 23 Aug 2005 22:26:19 +0200 Subject: Host check behavior Message-ID: <20050823202618.CB73E33C079@mail.t-online.hu> Hi List! MY QUESTION: Does Nagios checks host status at every normal_check_interval after it put a service associated to the host to a hard non-OK state? (When hard state change has NOT occurred and the service remains in the same non-OK state.) BACKGROUND: I've been used Nagios 1.2 since 01.2004. I read all of its documents, so I know about "retry_check_interval", "normal_check_interval" and so on. I know that: "When a service check results in a non-OK state, Nagios will check the host that the service is associated with to determine whether or not is up." I have a lots of routers with leasd lines and ISDN backup lines. I'm going to set up Nagios int he following way: if it can't ping leased line inetrface it uns host check command, which ping ISDN interface. So if router is reachable, I send notification only about leased line status. (Leased line is a service of the router.) If router is not reachable, Nagios send me a host status message. Thanks in advance, Tamas. ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From niceforums at yahoo.com Wed Aug 24 09:29:30 2005 From: niceforums at yahoo.com (hamideh daliri) Date: Wed, 24 Aug 2005 00:29:30 -0700 (PDT) Subject: time problem Message-ID: <20050824072930.63742.qmail@web30102.mail.mud.yahoo.com> hi all, i have a problem with update times, suppose now is 11:53 AM,in the nagios web interface laste updated is 8:30 AM for on my servers,and when i check its services last updated time is 12:01 AM. why is it so ? is there some mistake in configuration ? __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From niceforums at yahoo.com Wed Aug 24 09:42:33 2005 From: niceforums at yahoo.com (hamideh daliri) Date: Wed, 24 Aug 2005 00:42:33 -0700 (PDT) Subject: last update & last check ! Message-ID: <20050824074233.89777.qmail@web30103.mail.mud.yahoo.com> what is differences between ' last status check ' and 'last update' ? i thought they should be te same , but they have difference value in my nagios web interface ! should they be the same ? ____________________________________________________ Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From brettcarr at ripe.net Wed Aug 24 10:30:00 2005 From: brettcarr at ripe.net (Brett Carr) Date: Wed, 24 Aug 2005 10:30:00 +0200 Subject: Integration with a ticketing system (HEAT) Message-ID: <200508240830.j7O8U0mq001515@birch.ripe.net> We will shortly be deploying the HEAT ticketing system within our organisation and I wondered if anybody had any experiences in integrating it with Nagios, as a starting point I would at least like Nagios to open tickets automatically (easy to do via e-mail of course) but also close relevant tickets automatically on recovery messages. Brett.. ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From andre.bergei at ementor.no Wed Aug 24 12:14:05 2005 From: andre.bergei at ementor.no (Andre Bergei) Date: Wed, 24 Aug 2005 12:14:05 +0200 Subject: last update & last check ! Message-ID: <447B76ECA7A8ED45B831D4D419A7AE560D766D@100NOOSLMSG004.common.alpharoot.net> > what is differences between ' last status check ' and 'last > update' ? i thought they should be te same , but they have > difference value in my nagios web interface ! > should they be the same ? "Last update" is the last time the web browser refreshed the page, "last status check" is The last time the plugin was executed. /andr? ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From deidson at seton.org Wed Aug 24 16:33:20 2005 From: deidson at seton.org (Dominic J. Eidson) Date: Wed, 24 Aug 2005 09:33:20 -0500 Subject: Using regex host matches in service definitions Message-ID: <430C8530.10902@seton.org> According to the documentation's section on "Time-Saving Tricks For Object Definitions" - I can use regular expressions to specify which hosts to apply a service to, if I enable the option use_regexp_matching. The example they give at http://nagios.sourceforge.net/docs/2_0/templatetricks.html - is as follows: All Hosts: If you want to create identical services that are assigned to all hosts that are defined in your configuration files, you can use a wildcard in the host_name directive as follows: define service{ host_name * service_description SOMESERVICE other service directives ... } When I configure this in nagios-2.04b4, I get the following: # grep 'regex' nagios.cfg # Values: 1 = enable regexp matching, 0 = disable regexp matching use_regexp_matching=1 # (* and ?). If the option is ENABLED, regexp matching occurs use_true_regexp_matching=0 # less services.cfg .. skip template def. .. define service { use generic-service host_name * name ping service_description PING is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups unix-admins notification_interval 240 notification_period 24x7 notification_options c,r check_command check_ping!170.0,30%!900.0,100% } # bin/nagios -v etc/nagios.cfg Nagios 2.0b4 Copyright (c) 1999-2005 Ethan Galstad (http://www.nagios.org) Last Modified: 08-02-2005 License: GPL Reading configuration data... Error: Could not find any host matching '*' Error: Could not expand hostgroups and/or hosts specified in service (config file '/usr/local/nagios/etc/services.cfg', starting on line 39) Does this mean that the regex matching is broken in the current release of nagios? We'll have several services/hostgroups that include hundreds (if not thousands) of objects, and it would be very benefitial to just use regexp matching, instead of having to list all members of a service (or hostgroup). - d. -- Dominic J. Eidson http://www.faqs.org/rfcs/rfc1855.html Network Engineer Atos Origin 512-324-9914 ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From km4hr at netscape.net Wed Aug 24 17:43:44 2005 From: km4hr at netscape.net (km4hr at netscape.net) Date: Wed, 24 Aug 2005 11:43:44 -0400 Subject: What is the guest user for? Message-ID: <52699F66.4FFDEC58.00014202@netscape.net> I assumed the purpose of the guest user was to provide all users view-only access to the nagios web pages. But it looks like guest has to log in and provide a password just like everybody else. If that's the case, then what is guest for? What's special about it? Do I not have something set up correctly? Is there any way to allow everone to view the pages without logging in? xyz __________________________________________________________________ Switch to Netscape Internet Service. As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register Netscape. Just the Net You Need. New! Netscape Toolbar for Internet Explorer Search from anywhere on the Web and block those annoying pop-ups. Download now at http://channels.netscape.com/ns/search/install.jsp ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Wed Aug 24 18:00:17 2005 From: ae at op5.se (Andreas Ericsson) Date: Wed, 24 Aug 2005 18:00:17 +0200 Subject: Using regex host matches in service definitions In-Reply-To: <430C8530.10902@seton.org> References: <430C8530.10902@seton.org> Message-ID: <430C9991.1070905@op5.se> Dominic J. Eidson wrote: > > According to the documentation's section on "Time-Saving Tricks For > Object Definitions" - I can use regular expressions to specify which > hosts to apply a service to, if I enable the option use_regexp_matching. > > The example they give at > http://nagios.sourceforge.net/docs/2_0/templatetricks.html - is as follows: > > All Hosts: If you want to create identical services that are assigned to > all hosts that are defined in your configuration files, you can use a > wildcard in the host_name directive as follows: > > define service{ > host_name * > service_description SOMESERVICE > other service directives ... > } > > > When I configure this in nagios-2.04b4, I get the following: > > # grep 'regex' nagios.cfg > # Values: 1 = enable regexp matching, 0 = disable regexp matching > use_regexp_matching=1 > # (* and ?). If the option is ENABLED, regexp matching occurs > use_true_regexp_matching=0 > Wildcard matching and regexes are two quite different things. man regex(7) and man fnmatch(3) and glob(7) for more info on differences. Nagios does only regex matching (the basic POSIX kind), so you need a proper regular expression for it to work. > # less services.cfg > > .. skip template def. .. > > define service { > use generic-service > host_name * Change this to host_name ^.*$ and you'll be good to go. host_name .* would also work, but that would parse a lot slower when matching. > name ping > service_description PING > is_volatile 0 > check_period 24x7 > max_check_attempts 3 > normal_check_interval 5 > retry_check_interval 1 > contact_groups unix-admins > notification_interval 240 > notification_period 24x7 > notification_options c,r > check_command check_ping!170.0,30%!900.0,100% > } > > # bin/nagios -v etc/nagios.cfg > > Nagios 2.0b4 > Copyright (c) 1999-2005 Ethan Galstad (http://www.nagios.org) > Last Modified: 08-02-2005 > License: GPL > > Reading configuration data... > > Error: Could not find any host matching '*' > Error: Could not expand hostgroups and/or hosts specified in service > (config file '/usr/local/nagios/etc/services.cfg', starting on line 39) > > Does this mean that the regex matching is broken in the current release > of nagios? We'll have several services/hostgroups that include hundreds > (if not thousands) of objects, and it would be very benefitial to just > use regexp matching, instead of having to list all members of a service > (or hostgroup). > > > - d. > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From deidson at seton.org Wed Aug 24 17:11:22 2005 From: deidson at seton.org (Dominic J. Eidson) Date: Wed, 24 Aug 2005 10:11:22 -0500 Subject: Using regex host matches in service definitions In-Reply-To: <430C9991.1070905@op5.se> References: <430C8530.10902@seton.org> <430C9991.1070905@op5.se> Message-ID: <430C8E1A.2040105@seton.org> Andreas Ericsson wrote: > Dominic J. Eidson wrote: > >> >> According to the documentation's section on "Time-Saving Tricks For >> Object Definitions" - I can use regular expressions to specify which >> hosts to apply a service to, if I enable the option use_regexp_matching. >> >> The example they give at >> http://nagios.sourceforge.net/docs/2_0/templatetricks.html - is as >> follows: >> >> All Hosts: If you want to create identical services that are assigned >> to all hosts that are defined in your configuration files, you can use >> a wildcard in the host_name directive as follows: >> >> define service{ >> host_name * >> service_description SOMESERVICE >> other service directives ... >> } >> >> >> When I configure this in nagios-2.04b4, I get the following: >> >> # grep 'regex' nagios.cfg >> # Values: 1 = enable regexp matching, 0 = disable regexp matching >> use_regexp_matching=1 >> # (* and ?). If the option is ENABLED, regexp matching occurs >> use_true_regexp_matching=0 >> > > Wildcard matching and regexes are two quite different things. man > regex(7) and man fnmatch(3) and glob(7) for more info on differences. > Nagios does only regex matching (the basic POSIX kind), so you need a > proper regular expression for it to work. Yes, I'm familiar with the difference between regex and globbing. As you can see above, though - the documentation has an incorrect example, and that was what I was going by. I tried your ^.*$ - and it works like a charm. It would be worth for someone to fix the docs, though.... ;) - d. -- Dominic J. Eidson http://www.faqs.org/rfcs/rfc1855.html Network Engineer Atos Origin 512-324-9914 ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Wed Aug 24 18:51:30 2005 From: marc at ena.com (Marc Powell) Date: Wed, 24 Aug 2005 11:51:30 -0500 Subject: remote nagios server report to main Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Peder Bach > Sent: Wednesday, August 24, 2005 10:46 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] remote nagios server report to main > > Hi.. > > I got one remote nagios server that's monitor some routers, switches and > other stuff at my colocation. I want to have this remote nagios server to > report to a central nagios server at HQ. > > How can this bee done ? NSCA. It's pretty thoroughly covered in the Distributed Monitoring section of the documentation. -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Wed Aug 24 18:49:31 2005 From: marc at ena.com (Marc Powell) Date: Wed, 24 Aug 2005 11:49:31 -0500 Subject: What is the guest user for? Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of km4hr at netscape.net > Sent: Wednesday, August 24, 2005 10:44 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] What is the guest user for? > > I assumed the purpose of the guest user was to provide all users view-only Nagios has no facility for a view-only interface. It can be emulated by using .htaccess to limit access to cmd.cgi based on criteria supported by mod_auth. I believe there may be other ways of accomplishing it in the archives. > access to the nagios web pages. But it looks like guest has to log in and > provide a password just like everybody else. If that's the case, then what If you've enabled .htaccess then yes, they'll have to log in unless you provide some other or additional ALLOW FROM directive that doesn't REQUIRE valid-user (IP or domain based for example). > is guest for? What's special about it? Do I not have something set up The default_user_name, in your case 'guest', as specified in cgi.cfg is used whenever your web server doesn't provide or set the REMOTE_USER variable (the username used to log in). This is normally only set when basic authentication is enabled and the user has successfully logged in. As indicated in the comments above the directive in cgi.cfg -- "# without authenticating. You may want to use this to avoid basic # authentication if you are not using a sercure(sic) server since basic # authentication transmits passwords in the clear." 'basic authentication' == htaccess. So, if you didn't have htaccess enabled, that would be the username that nagios used to determine what hosts to show based on the same criteria as normal contacts _as well as_ any additional permissions you might grant it using the authorized_for_* directives in cgi.cfg. If you were to add to your .htaccess something like 'Allow from netscape.net', users with netscape.net in their reverse dns hostname would be allowed in without authorization, therefore REMOTE_USER wouldn't be set by your webserver and nagios would use your specified default_user_name for that user. > correctly? Is there any way to allow everone to view the pages without > logging in? Disable htaccess. Your default_user_name would then determine what hosts/services they were able to see and manage. -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From peder at ipnett.no Wed Aug 24 17:46:02 2005 From: peder at ipnett.no (Peder Bach) Date: Wed, 24 Aug 2005 17:46:02 +0200 (CEST) Subject: remote nagios server report to main Message-ID: Hi.. I got one remote nagios server that's monitor some routers, switches and other stuff at my colocation. I want to have this remote nagios server to report to a central nagios server at HQ. How can this bee done ? Peder ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Wed Aug 24 19:22:46 2005 From: marc at ena.com (Marc Powell) Date: Wed, 24 Aug 2005 12:22:46 -0500 Subject: Host check behavior Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Horvath Tamas > Sent: Tuesday, August 23, 2005 3:26 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Host check behavior > > Hi List! > > MY QUESTION: Does Nagios checks host status at every normal_check_interval > after it put a service associated to the host to a hard non-OK state? > (When > hard state change has NOT occurred and the service remains in the same > non-OK state.) The short answer is no, it won't. I've tried to find this in the documentation but I can't. To the best of my understanding and recollection, Nagios only runs the host checks when a service on that host changes state. In an ideal situation where a host goes hard down, nagios will only check the host when the service changes from OK and then again when the service returns to OK. I'm not 100% sure on the last part of that statement but looking at base/checks.c seems to bear that out quite nicely. I don't use host checks at all so I can't directly verify. Service checks _do_ continue at normal_check_interval while the host is down however. > > BACKGROUND: > > I've been used Nagios 1.2 since 01.2004. I read all of its documents, so I > know about "retry_check_interval", "normal_check_interval" and so on. > > I know that: "When a service check results in a non-OK state, Nagios will > check the host that the service is associated with to determine whether or > not is up." > > I have a lots of routers with leasd lines and ISDN backup lines. I'm going > to set up Nagios int he following way: if it can't ping leased line > inetrface it uns host check command, which ping ISDN interface. So if > router > is reachable, I send notification only about leased line status. (Leased > line is a service of the router.) If router is not reachable, Nagios send > me > a host status message. This looks workable. -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jlin at myvest.com Wed Aug 24 19:56:55 2005 From: jlin at myvest.com (jlin at myvest.com) Date: Wed, 24 Aug 2005 10:56:55 -0700 Subject: smarter nagios Message-ID: Hi I'm wondering if I can configure nagios 1.2 to page only after the third re-try? I have crappy net, causing ping to fail. I'd like it not to notify me on the first critical failure, but wait until there's 3 critical ones before paging. Any help or pointing in the right direction greatly appreciated. I've searched and searched, but found nothing. Sincerely, Julie ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From zsitfa at t-online.hu Wed Aug 24 20:03:46 2005 From: zsitfa at t-online.hu (Horvath Tamas) Date: Wed, 24 Aug 2005 20:03:46 +0200 Subject: check_icmp behavior Message-ID: <20050824180348.388D133C306@mail.t-online.hu> Hi! The plugin output of "ICMP Unreachable" reply is OK. May I suggest to change check_icmp behavior to mark this kind of output as WARNING. In which situation do I got this kind of reply? As I googled in Internet, the cause can be: - too busy router, - fragment needed, but don't fragment bit set. I could not find those simptoms in my network. But about half of my responses are ICMP Unreachable, the others are normal OKs. My version of check_icmp plugin is: /opt/nagios/libexec/check_icmp -v check_icmp: Version 0.8.1 $Date: 2004/09/07 09:29:29 $ check_icmp: comments to ae at op5.se My topology is: Internet RAS | | ----------------------------------------------------Customer Public Network | | | | | | VPN concentrator Firewall CentralRouter----Customer WAN | | | | | | | | | ----------------------------------------------------Customer private LAN | | HostA We provide remote monitoring to our customer. Nagios host connect VPN Concentrator via IPSec. So I can only ping RAS indirectly. I go to HostA via SSH and run check_icmp against RAS. The route is the following: HostA-CentralRouter-Firewall-RAS. Everything works fine, but there are some "ICMP Unreachable from CentralRouter-IP for ICMP Echo sent to RAS-IP" messages. Thanks in advance! Tamas! ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Wed Aug 24 20:02:55 2005 From: marc at ena.com (Marc Powell) Date: Wed, 24 Aug 2005 13:02:55 -0500 Subject: smarter nagios Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of jlin at myvest.com > Sent: Wednesday, August 24, 2005 12:57 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] smarter nagios > > Hi > > I'm wondering if I can configure nagios 1.2 to page only after the third > re-try? I have crappy net, causing ping to fail. I'd like it not to > notify > me on the first critical failure, but wait until there's 3 critical ones > before paging. Any help or pointing in the right direction greatly > appreciated. max_check_attempts 3 http://nagios.sourceforge.net/docs/1_0/xodtemplate.html#host http://nagios.sourceforge.net/docs/1_0/xodtemplate.html#service "max_check_attempts: This directive is used to define the number of times that Nagios will retry the service check command if it returns any state other than an OK state. Setting this value to 1 will cause Nagios to generate an alert without retrying the service check again." -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Wed Aug 24 20:05:50 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Wed, 24 Aug 2005 14:05:50 -0400 (EDT) Subject: smarter nagios In-Reply-To: References: Message-ID: On Wed, 24 Aug 2005 jlin at myvest.com wrote: > Hi > I'm wondering if I can configure nagios 1.2 to page only after the third > re-try? I have crappy net, causing ping to fail. I'd like it not to notify > me on the first critical failure, but wait until there's 3 critical ones > before paging. Any help or pointing in the right direction greatly > appreciated. > I've searched and searched, but found nothing. > Sincerely, > Julie Retry and retry intervals are the first step Escalations are the second. -- -sg ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Wed Aug 24 20:26:52 2005 From: ae at op5.se (Andreas Ericsson) Date: Wed, 24 Aug 2005 20:26:52 +0200 Subject: check_icmp behavior In-Reply-To: <20050824180348.388D133C306@mail.t-online.hu> References: <20050824180348.388D133C306@mail.t-online.hu> Message-ID: <430CBBEC.6000408@op5.se> Horvath Tamas wrote: > Hi! > > The plugin output of "ICMP Unreachable" reply is OK. May I suggest to change > check_icmp behavior to mark this kind of output as WARNING. > This isn't a good idea, as ICMP_UNREACH messages indicate that the host really can't be reached. Any and all threshold values will be passed when no responses are received. > In which situation do I got this kind of reply? As I googled in Internet, > the cause can be: > - too busy router, > - fragment needed, but don't fragment bit set. > Not true. Too busy router would result in too high response times (or lost packets), while fragment needed but no fragment bit set would cause a very specific icmp error message. check_icmp can't trigger "fragment needed" errors, because the packets it sends are within the lowest acceptable boundary for non-fragmented packets (64 bytes). > I could not find those simptoms in my network. But about half of my > responses are ICMP Unreachable, the others are normal OKs. > > > My version of check_icmp plugin is: > > /opt/nagios/libexec/check_icmp -v > check_icmp: Version 0.8.1 $Date: 2004/09/07 09:29:29 $ The latest modifications were made 2005-06-16. I believe one of the things I added was forced packet interval when one of the packets return, and a continuous trying (until packets_sent == packets_to_send at least) even if an icmp error is received. Try the check_icmp delivered in the package at http://oss.op5.se/nagios/op5plugins-2005-08-22.tar.gz and see if that works better for you. It might, but I'm not sure. If it doesn't, try sniffing the net with some capable sniffer when things go sour for you and let me know what you find. > check_icmp: comments to ae at op5.se > > My topology is: > > Internet RAS > | | > ----------------------------------------------------Customer Public Network > | | > | | > | | > VPN concentrator Firewall CentralRouter----Customer WAN > > | | | > | | | > | | | > ----------------------------------------------------Customer private LAN > | > | > HostA > > We provide remote monitoring to our customer. Nagios host connect VPN > Concentrator via IPSec. So I can only ping RAS indirectly. I go to HostA via > SSH and run check_icmp against RAS. The route is the following: > HostA-CentralRouter-Firewall-RAS. > > Everything works fine, but there are some "ICMP Unreachable from > CentralRouter-IP for ICMP Echo sent to RAS-IP" messages. > > Thanks in advance! > > Tamas! > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From adisharon at gmail.com Wed Aug 24 20:25:10 2005 From: adisharon at gmail.com (Adi) Date: Wed, 24 Aug 2005 18:25:10 +0000 (UTC) Subject: Service Checks in pending state - Take 2 Message-ID: Hello since no one had answered my question. im trying again. please help if you can since this problem is very strange its not occuring always. and this whats worries me the most. again thanks in advance im using nagios 1.2 and im getting really strange problem. when i start / restart the nagios service. im getting pending state and the information field says "Service check scheduled for Fri Aug 19 17:48:12 2005 ". ( the state retention is set to 0 ). after 60 seconds which is the page refresh settings im still getting PENDING state but now the information field says "Service check scheduled for Fri Aug 20 00:00:00 2005". and service checks are not scheduled. no matter how much restarts / starts i do it always schedule for tommorow 12:00 am. i double checked and there is only one running nagios proc. any one can help with this issue. thanks adi ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Wed Aug 24 20:41:08 2005 From: ae at op5.se (Andreas Ericsson) Date: Wed, 24 Aug 2005 20:41:08 +0200 Subject: Service Checks in pending state - Take 2 In-Reply-To: References: Message-ID: <430CBF44.60006@op5.se> Adi wrote: > Hello > > since no one had answered my question. im trying again. please help if you can > since this problem is very strange its not occuring always. and this whats > worries me the most. > > again thanks in advance > > im using nagios 1.2 and im getting really strange problem. when i start / > restart the nagios service. im getting pending state and the information field > says "Service check scheduled for Fri Aug 19 17:48:12 2005 ". ( the state > retention is set to 0 ). after 60 seconds which is the page refresh settings im > still getting PENDING state but now the information field says "Service check > scheduled for Fri Aug 20 00:00:00 2005". and service checks are not scheduled. > no matter how much restarts / starts i do it always schedule for tommorow 12:00 > am. i double checked and there is only one running nagios proc. > You have several nagios instances running. Google for a solution, or look in the archives. > any one can help with this issue. > > thanks > > adi > > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Wed Aug 24 20:55:04 2005 From: marc at ena.com (Marc Powell) Date: Wed, 24 Aug 2005 13:55:04 -0500 Subject: Service Checks in pending state - Take 2 Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Adi > Sent: Wednesday, August 24, 2005 1:25 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Service Checks in pending state - Take 2 > > Hello > > since no one had answered my question. im trying again. please help if you > can > since this problem is very strange its not occuring always. and this whats > worries me the most. > > again thanks in advance > > im using nagios 1.2 and im getting really strange problem. when i start / > restart the nagios service. im getting pending state and the information > field > says "Service check scheduled for Fri Aug 19 17:48:12 2005 ". ( the state > retention is set to 0 ). after 60 seconds which is the page refresh > settings im > still getting PENDING state but now the information field says "Service > check > scheduled for Fri Aug 20 00:00:00 2005". and service checks are not > scheduled. > no matter how much restarts / starts i do it always schedule for tommorow > 12:00 > am. i double checked and there is only one running nagios proc. > > any one can help with this issue. It does seem like a strange problem with no immediately apparent answers based on the information provided. That's probably why you didn't get a response. -What is the output of '/path/to/nagios -s /path/to/nagios.cfg'? -What values do you have for these directives in nagios.cfg -- inter_check_delay_method service_interleave_factor max_concurrent_checks service_reaper_frequency retain_state_information state_retention_file (does the file exist if specified? Stop nagios and delete it if so) use_retained_program_state execute_service_checks -Is there anything interesting in nagios.log? -Can you provide a sample service definition and its associated template if there is one? -What OS are you running on? -How was nagios installed (tarball, rpm, deb, etc) and where did you get it? -If you compiled nagios yourself, what configure options did you use? -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lfisher at newworldapps.com Wed Aug 24 21:05:56 2005 From: lfisher at newworldapps.com (Leah Fisher) Date: Wed, 24 Aug 2005 15:05:56 -0400 Subject: problem with scheduling downtime externally Message-ID: After moving from Nagios 1.2 to 2.03b, I have not been able to get recurring downtime scheduled. I used to use the schedule downtime via cronjob scripts gotten off nagios exchange. When I moved to the new version, these scripts no longer worked even though I confirmed that they were pointing to the right place. I also tried to issue the command directly to the FIFO pipe file and that didn't seem to help either. Has anyone else experienced this problem or is this specific to my setup? Thanks, Leah ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From teng at dataway.com Wed Aug 24 21:22:36 2005 From: teng at dataway.com (Tedman Eng) Date: Wed, 24 Aug 2005 12:22:36 -0700 Subject: Using regex host matches in service definition s Message-ID: <37ED92F9890FAF4BB947613C66FF8B1A08BB2B68@dw-mail.dataway.com> > -----Original Message----- > From: Dominic J. Eidson [mailto:deidson at seton.org] > Sent: Wednesday, August 24, 2005 8:11 AM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Using regex host matches in service > definitions > > Yes, I'm familiar with the difference between regex and > globbing. As you > can see above, though - the documentation has an incorrect > example, and > that was what I was going by. > > I tried your ^.*$ - and it works like a charm. > > It would be worth for someone to fix the docs, though.... ;) > The docs are not worded wrong (perhaps not completely intuitive, but not wrong). Re-read the first statement in that section: "Regular Expression Matching --------------------------- The examples I give below use "standard" matching of object names." host_name * ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Wed Aug 24 21:28:51 2005 From: ae at op5.se (Andreas Ericsson) Date: Wed, 24 Aug 2005 21:28:51 +0200 Subject: problem with scheduling downtime externally In-Reply-To: References: Message-ID: <430CCA73.8080701@op5.se> Leah Fisher wrote: > After moving from Nagios 1.2 to 2.03b, I have not been able to get recurring downtime scheduled. > > I used to use the schedule downtime via cronjob scripts gotten off nagios exchange. When I moved to the new version, these scripts no longer worked even though I confirmed that they were pointing to the right place. I also tried to issue the command directly to the FIFO pipe file and that didn't seem to help either. Has anyone else experienced this problem or is this specific to my setup? > Read the What's New section in the docs. It's entirely possible that the downtime command format has changed so that Nagios no longer understand your scripts. Also, 2.04b went out a while ago, with some bugfixes here and there. You should consider upgrading often while Nagios is in beta testing. > Thanks, > > Leah > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jmarcus at mvalent.com Wed Aug 24 21:38:56 2005 From: jmarcus at mvalent.com (James R. Marcus) Date: Wed, 24 Aug 2005 15:38:56 -0400 Subject: Error: Could not read host and service status information Message-ID: <67FACD5BE963B0418D12365DD3C7E4CD36F324@exchanger.mvalent.local> I have been looking at old posts and the FAQ to find a solution to this issue: Error: Could not read host and service status information! All I get in my log file is: [1124913728] Warning: Contact group 'switch-admins' is not used in any hostgroup/service definitions or host/hostgroup/service escalations! [1124913728] Warning: Contact group 'win-admins' is not used in any hostgroup/service definitions or host/hostgroup/service escalations! [1124913728] Finished daemonizing... (New PID=6184) I think I have done a pretty good job of reviewing permissions etc. There are no errors in the Apache2 logs. I'm running Gentoo, Nagios 1.2 and Monarch for configuration. Can anyone point me to a better way of troubleshooting this issue? Thanks, James ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From adisharon at gmail.com Wed Aug 24 21:41:11 2005 From: adisharon at gmail.com (Adi) Date: Wed, 24 Aug 2005 19:41:11 +0000 (UTC) Subject: Service Checks in pending state - Take 2 References: Message-ID: hello first thanks for the fast response. well its only a very small configured enviroment. i almost removed all services here is some info. nagios -v nagios.cfg Checking services... Checked 5 services. Checking hosts... Checked 4 hosts. Checking host groups... Checked 1 host groups. Checking contacts... Checked 1 contacts. Total Warnings: 0 Total Errors: 0 Things look okay - No serious problems were detected during the pre-flight check the nagios.cfg log_passive_service_checks=0 inter_check_delay_method=0.5 service_interleave_factor=0.5 max_concurrent_checks=1500 service_reaper_frequency=22 state_retention_file=/usr/local/nagios/var/status.sav ( file is deleted when test. i cleared all var directory. but its with db support so file does not really matter ) retain_state_information=0 retention_update_interval=1 use_retained_program_state=0 execute_service_checks=1 sample service.cfg define service{ use generic-service-5-min host_name Web_server service_description PING active_checks_enabled 1 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 3 contact_groups admin_users notifications_enabled 1 notification_interval 0 notification_period 24x7 notification_options w,u,r,c check_command check_ping!100.0,20%!500.0,60% } template define service{ name generic-service-5-min check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 3 notifications_enabled 1 notification_interval 0 notification_period 24x7 notification_options w,u,r,c check_command check_none register 0 } tried on fedora core 3 and also on Cent OS 4 nagios installed from source (downloaded from nagios.org) compiled with mysql support: --with-mysql-status --with-mysql-comments --with-mysql-retention --with-mysql- downtime and last nagios.log does not show anything : [1124870948] Caught SIGTERM, shutting down... [1124870949] Nagios 1.2 starting... (PID=17862) [1124870949] Finished daemonizing... (New PID=17863) and then nothing apears. well just to make clear some things. im pretty familier with nagios working with it over several years now. usually things got solve pretty fast. i already have several installations running fine. this is very strange problem i bumped recently. and andreas i know you like to snap at people as usual(instead of trying to help) but if you ever tried to read all the message i posted you would have seen ". i double checked and there is only one running nagios proc. " again thanks for the fast response. Adi ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Wed Aug 24 21:50:18 2005 From: ae at op5.se (Andreas Ericsson) Date: Wed, 24 Aug 2005 21:50:18 +0200 Subject: Using regex host matches in service definition s In-Reply-To: <37ED92F9890FAF4BB947613C66FF8B1A08BB2B68@dw-mail.dataway.com> References: <37ED92F9890FAF4BB947613C66FF8B1A08BB2B68@dw-mail.dataway.com> Message-ID: <430CCF7A.4070505@op5.se> Tedman Eng wrote: >>-----Original Message----- >>From: Dominic J. Eidson [mailto:deidson at seton.org] >>Sent: Wednesday, August 24, 2005 8:11 AM >>To: nagios-users at lists.sourceforge.net >>Subject: Re: [Nagios-users] Using regex host matches in service >>definitions >> > > >>Yes, I'm familiar with the difference between regex and >>globbing. As you >>can see above, though - the documentation has an incorrect >>example, and >>that was what I was going by. >> >>I tried your ^.*$ - and it works like a charm. >> >>It would be worth for someone to fix the docs, though.... ;) >> > > > > The docs are not worded wrong (perhaps not completely intuitive, but not > wrong). > Re-read the first statement in that section: > > "Regular Expression Matching > --------------------------- > The examples I give below use "standard" matching of object names." > But what's "standard" matching in a section about regular expressions? It seems a bit unclear, and the syntax in the example doesn't work (no fnmatch(3) matching is done anywhere in Nagios). I suppose I could hack up some glob()-like wildcard support, but it seems a waste when regex-matching is already in. > > host_name * > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jmccomb at uscellular.com Wed Aug 24 22:15:39 2005 From: jmccomb at uscellular.com (John McComb) Date: Wed, 24 Aug 2005 22:15:39 +0200 (CEST) Subject: Checking status of notifications... Message-ID: <20050824201539.C99C54F4002@desire.netways.de> Hi list I am working on an event_handler that sends a trap for service or host checks out to our main monitoring system....All is well, except that I need to check and make sure the host/service's notifications are not disabled before sending the trap. Where can I find the "notification status" per host ?? THANKS !! - (jmccomb) ----------------------- The mailing list archive is found here: http://www.nagiosexchange.org/nagios-users.34.0.html ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Wed Aug 24 22:33:07 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Wed, 24 Aug 2005 16:33:07 -0400 (EDT) Subject: Checking status of notifications... In-Reply-To: <20050824201539.C99C54F4002@desire.netways.de> References: <20050824201539.C99C54F4002@desire.netways.de> Message-ID: http://nagios.org/faqs/viewfaq.php?faq_id=66&expand=false&showdesc=false There is field for notifications enabled (0/1) ... On Wed, 24 Aug 2005, John McComb wrote: > Hi list > > > > I am working on an event_handler that sends a trap for service or > host checks out to our main monitoring system....All is well, except > that I need to check and make sure the host/service's notifications > are not disabled before sending the trap. Where can I find the > "notification status" per host ?? > > > > THANKS !! > > > > - (jmccomb) > -- ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Wed Aug 24 22:37:40 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Wed, 24 Aug 2005 16:37:40 -0400 (EDT) Subject: Checking status of notifications... In-Reply-To: <20050824201539.C99C54F4002@desire.netways.de> References: <20050824201539.C99C54F4002@desire.netways.de> Message-ID: On Wed, 24 Aug 2005, John McComb wrote: > Hi list > > > > I am working on an event_handler that sends a trap for service or > host checks out to our main monitoring system....All is well, except > that I need to check and make sure the host/service's notifications > are not disabled before sending the trap. Where can I find the > "notification status" per host ?? > > Also take a look at the NagiosMIB definition for traps... http://sourceforge.net/project/showfiles.php?group_id=29880&package_id=153315 -- -sg ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ladams at cloudmark.com Thu Aug 25 00:08:57 2005 From: ladams at cloudmark.com (Lori Adams) Date: Wed, 24 Aug 2005 15:08:57 -0700 Subject: Error: Could not read host and service status information Message-ID: Have you tried killing off all nagios processes? Make sure there are no more, and then restart your nagios. Below is the error I get if nagios is not running. I assume you got this entire message too. Follow all instructions when setting up your nagios. More specifically make sure that you have a status.log (see nagios.cfg). Did you try all of these steps? Definitely try /your/nagios/dir/nagios -v to make sure there's no errors. Error: Could not read host and service status information! The most common cause of this error message (especially for new users), is the fact that Nagios is not actually running. If Nagios is indeed not running, this is a normal error message. It simply indicates that the CGIs could not obtain the current status of hosts and services that are being monitored. If you've just installed things, make sure you read the documentation on starting Nagios. Some other things you should check in order to resolve this error include: 1. Check the Nagios log file for messages relating to startup or status data errors. 2. Always verify configuration options using the -v command-line option before starting or restarting Nagios! 3. Make sure you've compiled the main program and the CGIs to use the same status data storage options (i.e. text file or database). If the main program is storing status data in a text file and the CGIs are trying to read status data from a database, you'll have problems. Make sure you read the documentation on installing, configuring and running Nagios thoroughly before continuing. If all else fails, try sending a message to one of the mailing lists. More information can be found at http://www.nagios.org . -Lori -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of James R. Marcus Sent: Wednesday, August 24, 2005 12:39 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Error: Could not read host and service status information I have been looking at old posts and the FAQ to find a solution to this issue: Error: Could not read host and service status information! All I get in my log file is: [1124913728] Warning: Contact group 'switch-admins' is not used in any hostgroup/service definitions or host/hostgroup/service escalations! [1124913728] Warning: Contact group 'win-admins' is not used in any hostgroup/service definitions or host/hostgroup/service escalations! [1124913728] Finished daemonizing... (New PID=6184) I think I have done a pretty good job of reviewing permissions etc. There are no errors in the Apache2 logs. I'm running Gentoo, Nagios 1.2 and Monarch for configuration. Can anyone point me to a better way of troubleshooting this issue? Thanks, James ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- An HTML attachment was scrubbed... URL: From tony at thewordzone.co.uk Thu Aug 25 00:09:59 2005 From: tony at thewordzone.co.uk (Tony) Date: Wed, 24 Aug 2005 23:09:59 +0100 Subject: Web authentication via Radius Message-ID: <200508242209.j7OM9wdt002709@sg1.games-master.co.uk> We have a radius server that is used to authenticate staff logging onto our routers and switches, I?d like to be able to use the radius server to authenticate staff logging into the Nagios web interface also. I?ve been able to install the mod_auth_xradius module on our Nagios server and can get authentication working via the radius server without any problems, however any users I want to be able to access and view the Nagios pages needs to be added to the cgi.cfg file in all the relevant places. What would be good is not to have to add these usernames to the cgi.cfg file which means any new users that are added to the radius users database doesn?t also have to be added to the cgi.cfg file. So is there a way to just let Nagios give full access to all web functions as long as they pass the web authentication first without having to add the usernames into the cgi.cfg file? All users would be admin users anyway so they would not need to be limited to certain functions. I know we can give one login username/password to everyone but I?d like to be able to see who is logging in and keep track of what they are doing and with one generic username/password that would be hard to do. Thanks Tony -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.338 / Virus Database: 267.10.14/79 - Release Date: 22/08/2005 -------------- next part -------------- An HTML attachment was scrubbed... URL: From sghosh at sghosh.org Thu Aug 25 00:31:42 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Wed, 24 Aug 2005 18:31:42 -0400 (EDT) Subject: Web authentication via Radius In-Reply-To: <200508242209.j7OM9wdt002709@sg1.games-master.co.uk> References: <200508242209.j7OM9wdt002709@sg1.games-master.co.uk> Message-ID: On Wed, 24 Aug 2005, Tony wrote: > We have a radius server that is used to authenticate staff logging onto our > routers and switches, I?d like to be able to use the radius server to > authenticate staff logging into the Nagios web interface also. > > I?ve been able to install the mod_auth_xradius module on our Nagios server > and can get authentication working via the radius server without any > problems, however any users I want to be able to access and view the Nagios > pages needs to be added to the cgi.cfg file in all the relevant places. > > What would be good is not to have to add these usernames to the cgi.cfg file > which means any new users that are added to the radius users database > doesn?t also have to be added to the cgi.cfg file. > > > > So is there a way to just let Nagios give full access to all web functions > as long as they pass the web authentication first without having to add the > usernames into the cgi.cfg file? > > All users would be admin users anyway so they would not need to be limited > to certain functions. > > > > I know we can give one login username/password to everyone but I?d like to > be able to see who is logging in and keep track of what they are doing and > with one generic username/password that would be hard to do. > > > use wildcard in cgi.cfg - for all the authorized_for* entries put in "*". This lets any user authenticated to the web server see/do stuff. The ones of particular interest are: authorized_for_all_services=* authorized_for_all_hosts=* This way they can see hosts and services for which they are not a contact. -- -sg From marc at ena.com Thu Aug 25 01:44:07 2005 From: marc at ena.com (Marc Powell) Date: Wed, 24 Aug 2005 18:44:07 -0500 Subject: Service Checks in pending state - Take 2 Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Adi > Sent: Wednesday, August 24, 2005 2:41 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Re: Service Checks in pending state - Take 2 > > hello > > first thanks for the fast response. well its only a very small configured > enviroment. i almost removed all services here is some info. > > nagios -v nagios.cfg > Checking services... > Checked 5 services. > Checking hosts... > Checked 4 hosts. > Checking host groups... > Checked 1 host groups. > Checking contacts... > Checked 1 contacts. > > Total Warnings: 0 > Total Errors: 0 > > Things look okay - No serious problems were detected during the pre-flight > check > > the nagios.cfg > log_passive_service_checks=0 > inter_check_delay_method=0.5 You're the first person I know of that's actually using a number here ;) If you're not going to use 's' (smart; recommended) here, then I would suggest trying a number >= 1. You're telling nagios that the initial checks should be scheduled at 1/2 second intervals when almost everything about nagios operates at a base interval of 1 second. > service_interleave_factor=0.5 If you're going to use a number here it must be >= 1 (documented). This is my guess for your problem. I'd recommend using 's' and so do the docs. http://nagios.sourceforge.net/docs/1_0/configmain.html#service_interleav e_factor > max_concurrent_checks=1500 Very high but isn't a problem. On a host that does 1200+ service checks every 5 minutes I have this set to 150. > service_reaper_frequency=22 Lower is better here. 10 is recommended meaning nagios will look for service check results every 10 seconds. I have mine set at 2. > state_retention_file=/usr/local/nagios/var/status.sav ( file is deleted > when > test. i cleared all var directory. but its with db support so file does > not > really matter ) > retain_state_information=0 > retention_update_interval=1 > use_retained_program_state=0 > execute_service_checks=1 These look fine. > > sample service.cfg > define service{ > use generic-service-5-min > host_name Web_server > service_description PING > active_checks_enabled 1 > check_period 24x7 > max_check_attempts 3 > normal_check_interval 5 > retry_check_interval 3 > contact_groups admin_users > notifications_enabled 1 > notification_interval 0 > notification_period 24x7 > notification_options w,u,r,c > check_command check_ping!100.0,20%!500.0,60% > } > > template > define service{ > name generic-service-5-min > check_period 24x7 > max_check_attempts 3 > normal_check_interval 5 > retry_check_interval 3 > notifications_enabled 1 > notification_interval 0 > notification_period 24x7 > notification_options w,u,r,c > check_command check_none > register 0 > } > These look fine. > tried on fedora core 3 and also on Cent OS 4 No known issues that I recall outside of SELinux problems on CentOS4. I don't see how it could be causing this issue though. > > nagios installed from source (downloaded from nagios.org) > > compiled with mysql support: > --with-mysql-status --with-mysql-comments --with-mysql-retention --with- > mysql- > downtime I'd check the retention tables in the database and verify that they don't have any data in them. HTH, -- marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From monitoring_with_nagios at yahoo.com Thu Aug 25 03:28:11 2005 From: monitoring_with_nagios at yahoo.com (Bill Stevenson) Date: Wed, 24 Aug 2005 18:28:11 -0700 (PDT) Subject: passive host checking Message-ID: <20050825012811.80409.qmail@web35308.mail.mud.yahoo.com> Okay here it goes: I have a handful of windows servers that would like to have collect data on themselves and send back to a Nagios server. These, of course, would be passive host checks. I have nrpe_nt installed and it can collect data. I have send_nsca on the windows boxes and it can establish a connection with the Nagios server. But how can I get the results of the nrpe_nt checks to the Nagios server? Doing some like this "c:\cpuload_nrpe_nt.exe 70 90 | send_nsca -H 12.34.56.78 -c send_nsca.cfg" cause the program to hang. My one real burning question, is how can I configure the Nagios server to accept the data that the Windows boxes sent to it via send_nsca? What command in checkcommands.cfg would I use to look for incoming data from the windows servers, this incoming data is going to come from one single IP address as these hosts are behind a firewall and sending check results across the Internet to the Nagios server. Thanks, Bill ____________________________________________________ Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Alan_Maxwell at hilton.com Thu Aug 25 03:56:10 2005 From: Alan_Maxwell at hilton.com (Alan Maxwell) Date: Wed, 24 Aug 2005 20:56:10 -0500 Subject: Custom return address? Message-ID: <0CE7BC7B93C2F949ADF277B8995479340B7B7EDF@cmxsmbx1.hq.ad.hilton.com> Is there a way to set the return address for email sent out from nagios? My monitoring server is not the email server nor do I use the accounts there. I'd like to set the return address manually. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmarcus at mvalent.com Thu Aug 25 04:18:04 2005 From: jmarcus at mvalent.com (James R. Marcus) Date: Wed, 24 Aug 2005 22:18:04 -0400 Subject: Error: Could not read host and service status information Message-ID: <67FACD5BE963B0418D12365DD3C7E4CD03E1F9@exchanger.mvalent.local> Hi, Yes I have killed all the Nagios processes and restarted. I don't have a status.log, I have nagios.log, it was my understanding that when you use mySQL and Nagios the status.log isn't written. I have run nagios -v and although I have had warnings, which I corrected, nothing has really changed. I have double checked permissions. The other interesting thing to note is that according the log, it looks like it is doing the checks correctly. I guess it is back to the doc :-) James ________________________________ From: Lori Adams [mailto:ladams at cloudmark.com] Sent: Wed 8/24/2005 6:08 PM To: James R. Marcus; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Error: Could not read host and service status information Have you tried killing off all nagios processes? Make sure there are no more, and then restart your nagios. Below is the error I get if nagios is not running. I assume you got this entire message too. Follow all instructions when setting up your nagios. More specifically make sure that you have a status.log (see nagios.cfg). Did you try all of these steps? Definitely try /your/nagios/dir/nagios -v to make sure there's no errors. Error: Could not read host and service status information! The most common cause of this error message (especially for new users), is the fact that Nagios is not actually running. If Nagios is indeed not running, this is a normal error message. It simply indicates that the CGIs could not obtain the current status of hosts and services that are being monitored. If you've just installed things, make sure you read the documentation on starting Nagios. Some other things you should check in order to resolve this error include: 1. Check the Nagios log file for messages relating to startup or status data errors. 2. Always verify configuration options using the -v command-line option before starting or restarting Nagios! 3. Make sure you've compiled the main program and the CGIs to use the same status data storage options (i.e. text file or database). If the main program is storing status data in a text file and the CGIs are trying to read status data from a database, you'll have problems. Make sure you read the documentation on installing, configuring and running Nagios thoroughly before continuing. If all else fails, try sending a message to one of the mailing lists. More information can be found at http://www.nagios.org . -Lori -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of James R. Marcus Sent: Wednesday, August 24, 2005 12:39 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Error: Could not read host and service status information I have been looking at old posts and the FAQ to find a solution to this issue: Error: Could not read host and service status information! All I get in my log file is: [1124913728] Warning: Contact group 'switch-admins' is not used in any hostgroup/service definitions or host/hostgroup/service escalations! [1124913728] Warning: Contact group 'win-admins' is not used in any hostgroup/service definitions or host/hostgroup/service escalations! [1124913728] Finished daemonizing... (New PID=6184) I think I have done a pretty good job of reviewing permissions etc. There are no errors in the Apache2 logs. I'm running Gentoo, Nagios 1.2 and Monarch for configuration. Can anyone point me to a better way of troubleshooting this issue? Thanks, James ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Thu Aug 25 05:33:02 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Wed, 24 Aug 2005 23:33:02 -0400 (EDT) Subject: Custom return address? In-Reply-To: <0CE7BC7B93C2F949ADF277B8995479340B7B7EDF@cmxsmbx1.hq.ad.hilton.com> References: <0CE7BC7B93C2F949ADF277B8995479340B7B7EDF@cmxsmbx1.hq.ad.hilton.com> Message-ID: On Wed, 24 Aug 2005, Alan Maxwell wrote: > Is there a way to set the return address for email sent out from nagios? > My monitoring server is not the email server nor do I use the accounts > there. > I'd like to set the return address manually. > Then you have to write your own notification scripts. "mail" used in the sample notification scripts shipped with nagios does not allow setting the from address. Call sendmail directly using it -f option (but it will add an X-Authentication warning header). Perl's Mail::Sendmail or other modules may be useful. -- -sg ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Aug 25 06:02:32 2005 From: marc at ena.com (Marc Powell) Date: Wed, 24 Aug 2005 23:02:32 -0500 Subject: Error: Could not read host and service status information Message-ID: Would you be willing to send ls -al's on ~nagios/etc and ~nagios/var as well as the user/group that nagios and your web server run under? It does sound like it might be a permissions issue and another set of eyes can't hurt. Additionally, do you see and 'could not update' errors in nagios.log? -- Marc > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of James R. Marcus > Sent: Wednesday, August 24, 2005 9:18 PM > To: Lori Adams; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Error: Could not read host and service status > information > > Hi, > Yes I have killed all the Nagios processes and restarted. I don't have a > status.log, I have nagios.log, it was my understanding that when you use > mySQL and Nagios the status.log isn't written. I have run nagios -v and > although I have had warnings, which I corrected, nothing has really > changed. I have double checked permissions. > > The other interesting thing to note is that according the log, it looks > like it is doing the checks correctly. > > I guess it is back to the doc :-) > > James > > ________________________________ > > From: Lori Adams [mailto:ladams at cloudmark.com] > Sent: Wed 8/24/2005 6:08 PM > To: James R. Marcus; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Error: Could not read host and service status > information > > > > Have you tried killing off all nagios processes? Make sure there are no > more, and then restart your nagios. > > > > Below is the error I get if nagios is not running. I assume you got this > entire message too. Follow all instructions when setting up your nagios. > More specifically make sure that you have a status.log (see nagios.cfg). > > > > Did you try all of these steps? Definitely try /your/nagios/dir/nagios -v > to make sure there's no errors. > > > > Error: Could not read host and service status information! > > > > The most common cause of this error message (especially for new users), is > the fact that Nagios is not actually running. If Nagios is indeed not > running, this is a normal error message. It simply indicates that the CGIs > could not obtain the current status of hosts and services that are being > monitored. If you've just installed things, make sure you read the > documentation on starting Nagios. > > > > Some other things you should check in order to resolve this error include: > > > > 1. Check the Nagios log file for messages relating to startup > or status data errors. > > 2. Always verify configuration options using the -v command- > line option before starting or restarting Nagios! > > 3. Make sure you've compiled the main program and the CGIs to use the same > status data storage options (i.e. text file or database). If the main > program is storing status data in a text file and the CGIs are trying to > read status data from a database, you'll have problems. > > > > Make sure you read the documentation on installing, configuring and > running Nagios thoroughly before continuing. If all else fails, try > sending a message to one of the mailing lists. More information can be > found at http://www.nagios.org . > > > > -Lori > > > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of James R. Marcus > Sent: Wednesday, August 24, 2005 12:39 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Error: Could not read host and service status > information > > > > > > I have been looking at old posts and the FAQ to find a solution to this > > issue: > > > > Error: Could not read host and service status information! > > > > All I get in my log file is: > > [1124913728] Warning: Contact group 'switch-admins' is not used in any > > hostgroup/service definitions or host/hostgroup/service escalations! > > [1124913728] Warning: Contact group 'win-admins' is not used in any > > hostgroup/service definitions or host/hostgroup/service escalations! > > [1124913728] Finished daemonizing... (New PID=6184) > > > > I think I have done a pretty good job of reviewing permissions etc. > > There are no errors in the Apache2 logs. > > > > I'm running Gentoo, Nagios 1.2 and Monarch for configuration. > > > > Can anyone point me to a better way of troubleshooting this issue? > > > > > > Thanks, > > James > > > > > > ------------------------------------------------------- > > SF.Net email is Sponsored by the Better Software Conference & EXPO > > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > Practices > > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From unki at netshadow.at Thu Aug 25 08:30:09 2005 From: unki at netshadow.at (Andreas Unterkircher) Date: Thu, 25 Aug 2005 08:30:09 +0200 Subject: regexp match problem Message-ID: <20050825.ma2.37504300@egroupware.netshadow.at> Hello! I'm experiencing a problem with regular expression match in service check definitions. Nagios version is 2.04b. In nagios.cfg I enabled regexp: use_regexp_matching=1 use_true_regexp_matching=0 As far as I understand (documentation), because I disabled the true regexp matching, regexp match would only occur if I use wildcard characters (*,?). Now I have two hosts with the names: *) LNX_SRVAPPNET *) LNX_SRVAPPNET02 defined like the following: # 'LNX_SRVAPPNET' define host{ use generic-host host_name LNX_SRVAPPNET address 192.168.1.1 alias Appnet Server } # 'LNX_SRVAPPNET02' define host{ use generic-host host_name LNX_SRVAPPNET02 address 192.168.1.2 alias Appnet2 Server } On LNX_SRVAPPNET process inetd should be monitored through nrpe & check_proc, but not on LNX_SRVAPPNET. So a service is defined like the following: define service { use generic-service service_description PROC_inetd hosts LNX_SRVAPPNET check_command check_nrpe!check_procs!1: 1: inetd } The problem is, that not only LNX_SRVAPPNET has the check PROC_inetd, it also appears on LNX_SRVAPPNET02 too. This happens also to any other service check defined for LNX_SRVAPPNET. They are all appear on LNX_SRVAPPNET02 too. I can reproduce this problem every time a hostname appears in a part of a other hostname (LNX_SRVEBS, [LNX_SRVEBS]TEST,...). There is no other service check definition which could cause this. Some has the same phenomenon and probably a solution? Cheers, Andreas ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Thu Aug 25 08:52:06 2005 From: ae at op5.se (Andreas Ericsson) Date: Thu, 25 Aug 2005 08:52:06 +0200 Subject: regexp match problem In-Reply-To: <20050825.ma2.37504300@egroupware.netshadow.at> References: <20050825.ma2.37504300@egroupware.netshadow.at> Message-ID: <430D6A96.9050703@op5.se> Andreas Unterkircher wrote: > Hello! > > I'm experiencing a problem with regular expression match in service check > definitions. Nagios version is 2.04b. In nagios.cfg I enabled regexp: > > use_regexp_matching=1 > use_true_regexp_matching=0 > > As far as I understand (documentation), because I disabled the true regexp > matching, regexp match would only occur if I use wildcard characters (*,?). > > Now I have two hosts with the names: > *) LNX_SRVAPPNET > *) LNX_SRVAPPNET02 > > defined like the following: > > # 'LNX_SRVAPPNET' > define host{ > use generic-host > host_name LNX_SRVAPPNET > address 192.168.1.1 > alias Appnet Server > } > > # 'LNX_SRVAPPNET02' > define host{ > use generic-host > host_name LNX_SRVAPPNET02 > address 192.168.1.2 > alias Appnet2 Server > } > > On LNX_SRVAPPNET process inetd should be monitored through nrpe & check_proc, > but not on LNX_SRVAPPNET. So a service is defined like the following: > > define service { > use generic-service > service_description PROC_inetd > hosts LNX_SRVAPPNET > check_command check_nrpe!check_procs!1: 1: inetd > } > > The problem is, that not only LNX_SRVAPPNET has the check PROC_inetd, it also > appears on LNX_SRVAPPNET02 too. This happens also to any other service check > defined for LNX_SRVAPPNET. They are all appear on LNX_SRVAPPNET02 too. > > I can reproduce this problem every time a hostname appears in a part of a > other hostname (LNX_SRVEBS, [LNX_SRVEBS]TEST,...). > > There is no other service check definition which could cause this. > > Some has the same phenomenon and probably a solution? > It seems that Nagios doesn't recognize that there are no regex chars in there. To mitigate the problem you can put a dollar-sign at the end of the variable value. This might break in the future (in case Nagios works around it by simply surrounding the variable value with ^$). -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From adisharon at gmail.com Thu Aug 25 08:50:10 2005 From: adisharon at gmail.com (Adi Sharon) Date: Thu, 25 Aug 2005 06:50:10 +0000 (UTC) Subject: Service Checks in pending state - Take 2 References: Message-ID: Hello Thanks Marc for all the suggestions. i know all this tweaking i did are not standard. but this was taken from another installation in our network. this installtion running about 2500+ service checks ( which i plan to do with this new server also). . and i got a lot of delays in service checks and updated information. after setting these paramters nagios is running proprelly. i will set: inter_check_delay_method=0.5 --> s service_interleave_factor=0.5 --> s max_concurrent_checks=1500 --> 250 service_reaper_frequency=22 --> 10 i also raised the update retention interval to 5 minutes from 1 SELINUX is disabled. and i checked all sql tables after shuting down. all are cleared. (i've made a shutdown script which delete data from sql.) thanks alot for all the help i will follow and let you know. Adi ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From unki at netshadow.at Thu Aug 25 09:12:01 2005 From: unki at netshadow.at (Andreas Unterkircher) Date: Thu, 25 Aug 2005 09:12:01 +0200 Subject: =?iso-8859-1?Q?=5BNagios=2Dusers=5D?= regexp match problem In-Reply-To: <430D6A96.9050703@op5.se> References: <430D6A96.9050703@op5.se> Message-ID: <20050825.VEy.70007600@egroupware.netshadow.at> Andreas Ericsson (ae at op5.se) schrieb: > > Andreas Unterkircher wrote: > > Hello! > > > > I'm experiencing a problem with regular expression match in service check > > definitions. Nagios version is 2.04b. In nagios.cfg I enabled regexp: > > > > use_regexp_matching=1 > > use_true_regexp_matching=0 > > > > As far as I understand (documentation), because I disabled the true regexp > > matching, regexp match would only occur if I use wildcard characters (*,?). > > > > Now I have two hosts with the names: > > *) LNX_SRVAPPNET > > *) LNX_SRVAPPNET02 > > > > defined like the following: > > > > # 'LNX_SRVAPPNET' > > define host{ > > use generic-host > > host_name LNX_SRVAPPNET > > address 192.168.1.1 > > alias Appnet Server > > } > > > > # 'LNX_SRVAPPNET02' > > define host{ > > use generic-host > > host_name LNX_SRVAPPNET02 > > address 192.168.1.2 > > alias Appnet2 Server > > } > > > > On LNX_SRVAPPNET process inetd should be monitored through nrpe & check_proc, > > but not on LNX_SRVAPPNET. So a service is defined like the following: > > > > define service { > > use generic-service > > service_description PROC_inetd > > hosts LNX_SRVAPPNET > > check_command check_nrpe!check_procs!1: 1: inetd > > } > > > > The problem is, that not only LNX_SRVAPPNET has the check PROC_inetd, it also > > appears on LNX_SRVAPPNET02 too. This happens also to any other service check > > defined for LNX_SRVAPPNET. They are all appear on LNX_SRVAPPNET02 too. > > > > I can reproduce this problem every time a hostname appears in a part of a > > other hostname (LNX_SRVEBS, [LNX_SRVEBS]TEST,...). > > > > There is no other service check definition which could cause this. > > > > Some has the same phenomenon and probably a solution? > > > > It seems that Nagios doesn't recognize that there are no regex chars in > there. To mitigate the problem you can put a dollar-sign at the end of > the variable value. This might break in the future (in case Nagios works > around it by simply surrounding the variable value with ^$). Hello Andreas, Yes, this is currently the solution I'm using to get ride of the problem. But the question is, if this is a wanted behaviour or a mistake somewhere in the xodtemplate.c source. Cheers, Andreas > > -- > Andreas Ericsson andreas.ericsson at op5.se > OP5 AB www.op5.se > Lead Developer > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Thu Aug 25 09:29:59 2005 From: ae at op5.se (Andreas Ericsson) Date: Thu, 25 Aug 2005 09:29:59 +0200 Subject: [Nagios-users] regexp match problem In-Reply-To: <20050825.VEy.70007600@egroupware.netshadow.at> References: <20050825.VEy.70007600@egroupware.netshadow.at> Message-ID: <430D7377.4050907@op5.se> Andreas Unterkircher wrote: > Andreas Ericsson (ae at op5.se) schrieb: > >> >>It seems that Nagios doesn't recognize that there are no regex chars in >>there. To mitigate the problem you can put a dollar-sign at the end of >>the variable value. This might break in the future (in case Nagios works >>around it by simply surrounding the variable value with ^$). > > > Hello Andreas, > > Yes, this is currently the solution I'm using to get ride of the problem. But > the question is, if this is a wanted behaviour or a mistake somewhere in the > xodtemplate.c source. > Seeing as Nagios doesn't recognize it, I'd say its a bug. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dang.quocdan at gmail.com Thu Aug 25 09:54:06 2005 From: dang.quocdan at gmail.com (dan dang) Date: Thu, 25 Aug 2005 09:54:06 +0200 Subject: check_nt configuration Message-ID: hi all, I have the same problem as Bobby Bradshaw (from whom I quoted the message below) : My Nagios setup is: Nagios v1.3 (October 24, 2004) Nagios plugins v1.4.1 I have Nagios running correctly, sending notifications, checking ping and HTTP on several hosts. BUT I have exactly the same problem as Bobby Bradshaw which is the fact that I can't get Nagios to run "./check_nt -H 192.168.1.111 -v UPTIME" command without getting a "CRITICAL - Socket timeout after 10 seconds" error or any of the check_nt commands without an error. I have the Nsclient 2.01 on my Windows NT host. The error I have is the fact that the system doesn't find the *check_nt*service BUT I have installed it in the /usr/local/nagios/libexec/ file, in fact in my case I changed the path to /usr/lib/nagios/plugins/ since it's where the services are located in my configuration. I have exactly the same question as Bobby Brawn : Is there better documentation than what is provided with Nsclient? Can I get some pointers on ALL the cfg files that I have to edit to get the *check_nt* command to work. Bobby Bradshaw, I saw that u solved your problem, can u tell how did u do ? If anyone has an idea, please advise. Thanks in advance !! Quoc-Dan DANG NB: I have edited the "checkcommands.cfg" file by adding the following lines : # 'check_nt_disk' command definition define command{ command_name check_nt_disk command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v USEDDISKSPACE -l $ARG1$ -w $ARG2$ -c $ARG3$ } # 'check_nt_upload' command definition define command { command_name check_nt_cpuload command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v CPULOAD -l $ARG1$ } # 'check_nt_uptime' command definition define command { command_name check_nt_uptime command_line $USER1$/check_nt #-H $HOSTADDRESS$ -p 1248 -v UPTIME } # 'check_nt_clientversion' command definition define command { command_name check_nt_clientversion command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v CLIENTVERSION } # 'check_nt_process' command definition define command { command_name check_nt_process command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v PROCSTATE -l $ARG1$ } # 'check_nt_service' command definition define command{ command_name check_nt_service command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v SERVICESTATE -d SHOWALL -l $ARG1$ } # 'check_nt_memuse' command definition define command{ command_name check_nt_memuse command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v MEMUSE -w $ARG1$ -c $ARG2$ } # 'check_nt_fileage' command definition define command{ command_name check_nt_fileage command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v FILEAGE ?l $ARG1$ -w $ARG2$ -c $ARG3$ } # 'check_nt_pagingfile' command definition define command{ command_name check_nt_pagingfile command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v COUNTER -l " \\Paging File(_Total)\\%% Usage","Paging File usage is %.2f %%" -w $ARG1$ -c $ARG2$ } *QUOTE from Bobby Bradshaw who had the same problem as I currently have :* "From: nagios-users-admin at li... on > behalf > > of > > >>Bobby Bradshaw > > >>Sent: Fri 8/19/2005 2:43 PM > > >>To: nagios-users at li... > > >>Subject: [Nagios-users] check_nt configurations/setup > > >> > > >> > > >>Hi all, > > >> > > >>My Nagios setup is: > > >>Suse 9.3 Professional > > >>Nagios v1.2 > > >>Nagios plugins v1.4 > > >>Nagios nrpe v2.0 > > >> > > >>I have Nagios running correctly, sending notifications, checking ping > and > > >>HTTP on several hosts. Although, I am having so much trouble trying to > > get > > >>Nagios to run "./check_nt -H 192.168.1.111 -v UPTIME" command without > > >>getting a "CRITICAL - Socket timeout after 10 seconds" error or any of > the > > >>check_nt commands without an error. I have the Nsclient 2.01 on my > > Windows > > >>XP host. Is there better documentation than what is provided with > > Nsclient? > > >> Can I get some pointers on ALL the cfg files that I have to edit to get > > the > > >>check_nt command to work. > > >> > > >>Thanks in advance! > > >> > > >>-- > > >>Bobby Bradshaw, Jr. > > >>bobby.bradshaw at gm... > > > > > > > > > > > > > -- > > Andreas Ericsson andreas.ericsson at op... > > OP5 AB http://www.op5.se > > Lead Developer > > > > > > ------------------------------------------------------- > > SF.Net email is Sponsored by the Better Software Conference & EXPO > > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > Practices > > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at li... > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > reporting > > any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > > > > > -- > Bobby Bradshaw, Jr. > bobby.bradshaw at gm... > > -- Bobby Bradshaw, Jr. bobby.bradshaw at gm... From: Bobby Bradshaw * Re: check_nt configurations/setup* 2005-08-22 08:18 Found it. Thank you guys very much. Much appreciated -------------- next part -------------- An HTML attachment was scrubbed... URL: From roux.emmanuel at gmail.com Thu Aug 25 11:54:41 2005 From: roux.emmanuel at gmail.com (Emmanuel Roux) Date: Thu, 25 Aug 2005 11:54:41 +0200 Subject: [CGI] service acknowledgement Message-ID: <478bd36905082502547bc2d4bf@mail.gmail.com> Hello, I would like to have the possibility to acknowledge one service problem before the end of attempts plannified in the CGI, but i think it's not possible without modified the source code of nagios .. Someone has already did that or has an idea of how doing that ? Thanks a Lot Kind regards Emmanuel ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From peder at ipnett.no Thu Aug 25 12:04:23 2005 From: peder at ipnett.no (Peder Christian Bach) Date: Thu, 25 Aug 2005 12:04:23 +0200 Subject: more - remote nagios server report to main Message-ID: <65582C6D4E704640B5E76948D06C27B95D1E19@pompel.ipnett.com> Hi.. I have installed nsca and done the config in distributed readme.. But I get this error message.. Aug 25 11:51:42 mikkelrev nagios: SERVICE ALERT: FNNCES;FNN IPSEC ruter;WARNING;SOFT;1;(No output!) Aug 25 11:52:01 mikkelrev crond(pam_unix)[30233]: session opened for user jffnms by (uid=0) Aug 25 11:52:02 mikkelrev crond(pam_unix)[30233]: session closed for user jffnms Aug 25 11:52:42 mikkelrev nagios: SERVICE ALERT: FNNCES;FNN IPSEC ruter;WARNING;SOFT;2;(No output!) My host config file looks like this. define service { use generic-service host_name FNNCES service_description FNN IPSEC ruter is_volatile 0 contact_groups FNN check_command check_ping!100.0,20%!900.0,60% check_command submit_check_result } Check_commands define command{ command_name submit_check_result command_line /usr/lib/nagios/plugins/submit_check_result $HOSTNAME$ '$SERVICEDESC$' $SERVICESTATE$ '$OUTPUT$' My question, should is on the service on the host, should the check_command be there ?? Or what can be wrong ? Peder ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From schoenfeld at in-medias-res.com Thu Aug 25 12:04:26 2005 From: schoenfeld at in-medias-res.com (=?ISO-8859-15?Q?sch=F6nfeld_/_in-medias-res?=) Date: Thu, 25 Aug 2005 12:04:26 +0200 Subject: Central Nagios Management Solution Message-ID: <430D97AA.8060704@in-medias-res.com> Hi there, we run two nagios servers at two different sites, checking local servers and each other. Looks somewhat like that: nagios1 <---- check ----> nagios2 | | | | | | | | | | | | | `- server2 | `- server1 server1 server2 Now we want a central management web-ui that enables us to manage the configuration of each independent nagios server. The only configuration aspect that is the same on each server is the administration of the contactpersons and groups, so we want to do changes in the contacts configuration to be reflected on each nagios server. I'm aware of some nagios management solutions out there, but i'm unsure about there reliability and if they match our wishes. So i wanted to ask if anybodys out there who has running a management solution, in a matching or simililar situation. It would be nice if some could share there experience. Thanks in advance Patrick Sch?nfeld -- in medias res Gesellschaft f?r Kommunikationstechnologien mbH Dahlenerstr. 570 D-41239 M?nchengladbach tel. +49 (0) 2166 - 9999 - 685 fax. +49 (0) 2166 - 9999 - 800 email: schoenfeld at in-medias-res.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: OpenPGP digital signature URL: From Rik.Bobbaers at cc.kuleuven.be Thu Aug 25 12:30:53 2005 From: Rik.Bobbaers at cc.kuleuven.be (Rik Bobbaers) Date: Thu, 25 Aug 2005 12:30:53 +0200 Subject: documentation error Message-ID: <200508251230.53740.Rik.Bobbaers@cc.kuleuven.be> hellow all, first of all, sorry, i've been totally stupid, so forget the previous mails of me, all is solved. i reread all the documentation for the third time and i found my mistake(s). # RETAIN STATE INFORMATION # This setting determines whether or not Nagios will save state # information for services and hosts before it shuts down. Upon # startup Nagios will reload all saved service and host state # information before starting to monitor. This is useful for # maintaining long-term data on state statistics, etc, but will # slow Nagios down a bit when it (re)starts. Since its only # a one-time penalty, I think its well worth the additional # startup delay. retain_state_information=1 # STATE RETENTION FILE # This is the file that Nagios should use to store host and # service state information before it shuts down. The state # information in this file is also read immediately prior to # starting to monitor the network when Nagios is restarted. # This file is used only if the preserve_state_information # variable is set to 1. state_retention_file=/usr/local/nagios-test/var/retention.dat it says : This file is used only if the preserve_state_information variable is set to 1 shouldn't that be retain_state_information is set to 1 ? greetings ps. thanks for this nice piece of software! -- harry aka Rik Bobbaers K.U.Leuven - LUDIT -=- Tel: +32 485 52 71 50 Rik.Bobbaers at cc.kuleuven.be -=- http://harry.ulyssis.org Disclaimer: By sending an email to ANY of my addresses you are agreeing that: 1. I am by definition, "the intended recipient" 2. All information in the email is mine to do with as I see fit and make such financial profit, political mileage, or good joke as it lends itself to. In particular, I may quote it on usenet. 3. I may take the contents as representing the views of your company. 4. This overrides any disclaimer or statement of confidentiality that may be included on your message. ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From DCastelhano at OSIP.com Thu Aug 25 14:53:31 2005 From: DCastelhano at OSIP.com (Castelhano, Dan) Date: Thu, 25 Aug 2005 08:53:31 -0400 Subject: Socket timeout causes immediate critical notification Message-ID: <60F6FB7B8A1B13419ADB9339EEBC3CA280FF39@fd-mail2.osip.com> Hi, We periodically get socket timeout errors with nrpe service checks. Problem is, a notification is sent on the very first socket timeout error (which is causing a critical status)...its not adhering to the max_check_attempts number defined in the host and service templates (its set to 3). We'll get a recovery email 30-60 seconds after the critical email. i did a grep search on all the config files just to make sure i didn't miss any max_check_attempts definitions hidden in the config files and confirmed they're all set to a minimum of 3 (one template is set to 10) i'm at a loss, and it doesn't help that these emails are being sent to my cell after hours. I'm running nagios 1.2 on redhat 9.0 i'm using nsclient++ 1.22 on windows servers, and nrpe 2.0 on linux servers. All the socket timeouts are coming from nrpe service checks on the linux clients. any ideas what could be wrong? Thanks, dan ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jmarcus at mvalent.com Thu Aug 25 15:58:19 2005 From: jmarcus at mvalent.com (James R. Marcus) Date: Thu, 25 Aug 2005 09:58:19 -0400 Subject: Error: Could not read host and service status information Message-ID: <67FACD5BE963B0418D12365DD3C7E4CD36F3C4@exchanger.mvalent.local> Gladly: ncheck / # grep nagios /etc/group apache:x:81:nagios,monarch nagios:x:407:monarch,apache ncheck / # ls -al /etc/nagios/ total 104 drwxrwx--- 2 nagios nagios 4096 Aug 24 08:09 . drwxr-xr-x 51 root root 4096 Aug 24 18:24 .. -rw-r--r-- 1 nagios nagios 0 Aug 16 17:28 .keep -rwxrwxr-x 1 nagios nagios 1887 Aug 24 17:03 cgi.cfg -rwxrwxr-x 1 nagios nagios 2690 Aug 24 17:03 checkcommands.cfg -rwxrwxr-x 1 nagios nagios 1381 Aug 24 17:03 contact_templates.cfg -rwxrwxr-x 1 nagios nagios 956 Aug 24 17:03 contactgroups.cfg -rwxrwxr-x 1 nagios nagios 1243 Aug 24 17:03 contacts.cfg -rwxrwxr-x 1 nagios nagios 1663 Aug 10 01:28 dependencies.cfg -rwxrwxr-x 1 nagios nagios 748 Aug 24 17:03 escalation_templates.cfg -rwxrwxr-x 1 nagios nagios 330 Aug 24 17:03 escalations.cfg -rwxrwxr-x 1 nagios nagios 1265 Aug 24 17:03 host_templates.cfg -rwxrwxr-x 1 nagios nagios 854 Aug 24 17:03 hostgroups.cfg -rwxrwxr-x 1 nagios nagios 687 Aug 24 17:03 hosts.cfg -rw-r--r-- 1 root root 15 Aug 18 18:20 htpasswd.group -rw-r--r-- 1 root root 21 Aug 18 18:18 htpasswd.users -rwxrwxr-x 1 nagios nagios 2418 Aug 24 17:03 misccommands.cfg -rwxrwxr-x 1 nagios nagios 4192 Aug 24 17:03 nagios.cfg -rwxrwxr-x 1 nagios nagios 3501 Aug 16 17:29 nrpe.cfg -rwxrwxr-x 1 nagios nagios 4960 Aug 18 18:09 nsca.cfg -rwxrwxr-x 1 nagios nagios 2981 Aug 10 14:10 resource.cfg -rwxrwxr-x 1 nagios nagios 1628 Aug 16 17:24 send_nsca.cfg -rwxrwxr-x 1 nagios nagios 4022 Aug 24 17:03 service_templates.cfg -rwxrwxr-x 1 nagios nagios 741 Aug 24 17:03 services.cfg -rwxrwxr-x 1 nagios nagios 1459 Aug 24 17:03 timeperiods.cfg ncheck / # ls -l /var/nagios/ total 20 drwxr-xr-x 2 nagios nagios 4096 Aug 25 00:00 archives -rw-r--r-- 1 root apache 5 Aug 24 17:03 nagios.lock -rw-r--r-- 1 nagios nagios 33 Aug 25 00:00 nagios.log -rw-r--r-- 1 root root 2 Aug 25 09:54 nagios_seek.tmp drwxr-xr-x 2 nagios apache 4096 Aug 16 17:28 rw -rw-r--r-- 1 nagios nagios 0 Aug 24 17:03 status.sav ncheck / # grep -i not /var/nagios/nagios.log ncheck / # Apache2: ### ### Nagios Stuff ### ScriptAlias /nagios/cgi-bin/ /usr/nagios/sbin/ Alias /nagios/ /usr/nagios/share AllowOverride AuthConfig Options +ExecCGI Order allow,deny Allow from all Options None AllowOverride AuthConfig Order allow,deny Allow from all Thanks, James -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Marc Powell Sent: Thursday, August 25, 2005 12:03 AM To: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Error: Could not read host and service status information Would you be willing to send ls -al's on ~nagios/etc and ~nagios/var as well as the user/group that nagios and your web server run under? It does sound like it might be a permissions issue and another set of eyes can't hurt. Additionally, do you see and 'could not update' errors in nagios.log? -- Marc > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of James R. Marcus > Sent: Wednesday, August 24, 2005 9:18 PM > To: Lori Adams; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Error: Could not read host and service status > information > > Hi, > Yes I have killed all the Nagios processes and restarted. I don't have a > status.log, I have nagios.log, it was my understanding that when you use > mySQL and Nagios the status.log isn't written. I have run nagios -v and > although I have had warnings, which I corrected, nothing has really > changed. I have double checked permissions. > > The other interesting thing to note is that according the log, it looks > like it is doing the checks correctly. > > I guess it is back to the doc :-) > > James > > ________________________________ > > From: Lori Adams [mailto:ladams at cloudmark.com] > Sent: Wed 8/24/2005 6:08 PM > To: James R. Marcus; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Error: Could not read host and service status > information > > > > Have you tried killing off all nagios processes? Make sure there are no > more, and then restart your nagios. > > > > Below is the error I get if nagios is not running. I assume you got this > entire message too. Follow all instructions when setting up your nagios. > More specifically make sure that you have a status.log (see nagios.cfg). > > > > Did you try all of these steps? Definitely try /your/nagios/dir/nagios -v > to make sure there's no errors. > > > > Error: Could not read host and service status information! > > > > The most common cause of this error message (especially for new users), is > the fact that Nagios is not actually running. If Nagios is indeed not > running, this is a normal error message. It simply indicates that the CGIs > could not obtain the current status of hosts and services that are being > monitored. If you've just installed things, make sure you read the > documentation on starting Nagios. > > > > Some other things you should check in order to resolve this error include: > > > > 1. Check the Nagios log file for messages relating to startup > or status data errors. > > 2. Always verify configuration options using the -v command- > line option before starting or restarting Nagios! > > 3. Make sure you've compiled the main program and the CGIs to use the same > status data storage options (i.e. text file or database). If the main > program is storing status data in a text file and the CGIs are trying to > read status data from a database, you'll have problems. > > > > Make sure you read the documentation on installing, configuring and > running Nagios thoroughly before continuing. If all else fails, try > sending a message to one of the mailing lists. More information can be > found at http://www.nagios.org . > > > > -Lori > > > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of James R. Marcus > Sent: Wednesday, August 24, 2005 12:39 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Error: Could not read host and service status > information > > > > > > I have been looking at old posts and the FAQ to find a solution to this > > issue: > > > > Error: Could not read host and service status information! > > > > All I get in my log file is: > > [1124913728] Warning: Contact group 'switch-admins' is not used in any > > hostgroup/service definitions or host/hostgroup/service escalations! > > [1124913728] Warning: Contact group 'win-admins' is not used in any > > hostgroup/service definitions or host/hostgroup/service escalations! > > [1124913728] Finished daemonizing... (New PID=6184) > > > > I think I have done a pretty good job of reviewing permissions etc. > > There are no errors in the Apache2 logs. > > > > I'm running Gentoo, Nagios 1.2 and Monarch for configuration. > > > > Can anyone point me to a better way of troubleshooting this issue? > > > > > > Thanks, > > James > > > > > > ------------------------------------------------------- > > SF.Net email is Sponsored by the Better Software Conference & EXPO > > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > Practices > > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From RLAdams at Kelsey-Seybold.com Thu Aug 25 16:22:35 2005 From: RLAdams at Kelsey-Seybold.com (Adams, Russell L.) Date: Thu, 25 Aug 2005 09:22:35 -0500 Subject: [RLAdams@Kelsey-Seybold.com: Re: NCSA for AIX] Message-ID: <20050825142235.GC23322@pingu.ksnet.com> ----- Forwarded message from "Adams, Russell L." ----- Date: Thu, 25 Aug 2005 09:16:30 -0500 From: "Adams, Russell L." To: Ricardo Silva Cc: nagios-users at sourceforge.net Subject: Re: NCSA for AIX >From AIX I use the perl script send_nsca.pl to push service data up to my Nagios box running the NSCA daemon. I run a few shell scripts from a cron job at 5 minute intervals to check specific items on the local system and send the results to Nagios. I can't install the whole plugin suite or additional binaries in my environment, but a few simple shell scripts do the trick for what I need. Here are my scripts for checking disks and processes. Note that you must update the destination hostname. I have nagios.mydomain.com in as an example. In my cron job I test for multiple processes, and so I cache a copy of the ps list to disk via "ps auxw > /tmp/proclist" before running check_proc.sh. A sample from the cron job: ps auxw > /tmp/proclist check_proc.sh /usr/sbin/inetd -ge 1 check_proc.sh /usr/sbin/cron -ge 1 check_proc.sh /usr/sbin/syslogd -ge 1 check_proc.sh sendmail -ge 1 check_disk.sh /$ 90 95 check_disk.sh /usr 90 95 check_disk.sh /var 90 95 check_disk.sh /tmp 90 95 I have passive services setup on Nagios to match the input from NSCA, such as: Disk /usr Process /usr/sbin/syslogd Hope that helps! Russell check_disk.sh --------------------------------------------------------------- #!/bin/sh # $Id: check_disk.sh,v 1.9 2004/11/23 16:10:12 rladams Exp $ # check_disk.sh # Used to check a given disk for space, and send the data to netsaint. # # Syntax: # # check_disk.sh ###################################################################### # Functions first function send_nsca { MYDISK=`/bin/echo "$1" | tr -d '$'` /bin/echo "`/usr/bin/hostname`\tDisk $MYDISK\t$RESULT\t$USED% used." | \ /usr/local/bin/send_nsca.pl -H nagios.mydomain.com [ -n "$DEBUG" ] && /bin/echo "`/usr/bin/hostname`\tDisk $MYDISK\t$RESULT\t$USED% used." exit } ###################################################################### # Main script # Default to 3, which is state unknown. RESULT=3 USED="Unknown" # Get disk line RAW=`/usr/bin/df -m 2> /dev/null | /usr/bin/egrep "$1" | head -n1` # If disk $1 was not found, return unknown immediately. [ -z "$RAW" ] && send_nsca # Get percent used USED=`echo "$RAW" | /usr/bin/awk '{print $4}' | tr -d '%'` # If current is less than warning, change result code. [ $USED -lt "$2" ] && RESULT=0 # If current is at warning threshold, change result code. [ $USED -ge "$2" ] && RESULT=1 # If current is at critical threshold, change result code. [ $USED -ge "$3" ] && RESULT=2 send_nsca "$1" ---------------------------------------------------------------------- check_proc.sh ---------------------------------------------------------------- #!/bin/sh # $Id: check_proc.sh,v 1.4 2004/11/23 22:52:07 rladams Exp $ # check_proc.sh # Used to check for a process # # Syntax: # # check_proc.sh # # Example: # # check_proc.sh cron -ge 1 ###################################################################### # Functions first function send_nsca { /bin/echo "`/usr/bin/hostname`\tProcess $1\t$RESULT\t$NUM running." | \ /usr/local/bin/send_nsca.pl -H nagios.mydomain.com [ -n "$DEBUG" ] && \ /bin/echo "`/usr/bin/hostname`\tProcess $1\t$RESULT\t$NUM running." exit } ###################################################################### # Main script # Default to 3, which is state unknown. RESULT=3 # Wants ps auxw in /tmp/proclist, cached by wrapper script NUM=`cat /tmp/proclist | grep "$1" | grep -v grep | wc -l | tr -d ' '` [ $NUM $2 "$3" ] || RESULT=2 [ $NUM $2 "$3" ] && RESULT=0 send_nsca "$1" ---------------------------------------------------------------------- ----- End forwarded message ----- ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From aaronhcarr at gmail.com Thu Aug 25 16:27:10 2005 From: aaronhcarr at gmail.com (Aaron Carr) Date: Thu, 25 Aug 2005 10:27:10 -0400 Subject: Contacts/Contact Groups/Paging options Message-ID: I've been thinking for a little bit now about how to handle on call paging easiest in my current environment. One idea that I just came up with, is to create a contact group called "on call" or something similar, then have secondary user accounts for pagers, and put the active person on pager in that group (that way, their normal account receives email all the time and the pager account only receives pages during the designated time periods, etc). I know it seems a little too involved, but we don't have one centralized pager, we have paging functionality on our phones, and the on call person needs to be rotated without passing off a piece of hardware, and hopefully minimal administrative overhead. Does anyone else have any strategies for this that have served them especially well? I'd love to hear any useful tips from people who've already done this particular method. Aaron ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Thu Aug 25 16:56:41 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Thu, 25 Aug 2005 10:56:41 -0400 (EDT) Subject: Contacts/Contact Groups/Paging options In-Reply-To: References: Message-ID: Have an external config file that store the contact info for on-call. Modify the notifications command to have it read the config file instead of the data in contacts. The key here is not touching the nagios config to update on-call info. On Thu, 25 Aug 2005, Aaron Carr wrote: > I've been thinking for a little bit now about how to handle on call > paging easiest in my current environment. > > One idea that I just came up with, is to create a contact group called > "on call" or something similar, then have secondary user accounts for > pagers, and put the active person on pager in that group (that way, > their normal account receives email all the time and the pager account > only receives pages during the designated time periods, etc). > > I know it seems a little too involved, but we don't have one > centralized pager, we have paging functionality on our phones, and the > on call person needs to be rotated without passing off a piece of > hardware, and hopefully minimal administrative overhead. > > Does anyone else have any strategies for this that have served them > especially well? > > I'd love to hear any useful tips from people who've already done this > particular method. > > Aaron > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From maquaro at yahoo.com Thu Aug 25 17:32:39 2005 From: maquaro at yahoo.com (Dale Offret Jr.) Date: Thu, 25 Aug 2005 10:32:39 -0500 Subject: Performance information not processing or being returned Message-ID: <430DE497.7030601@yahoo.com> I have a FreeBSD 5.4 system with Nagios 2.0b3. It is not giving me performace data when a command is called through the Nagios system. If I manually run the command I see the 2 performance data items listed (loss, rta): root at nagios /usr/local/libexec/nagios #./check_fping -H www.yahoo.com -w 200,50% -c 150,10% -n 5 FPING OK - www.yahoo.com (loss=0%, rta=51.000000 ms)|loss=0%;50;10;0;100 rta=0.051000s;0.200000;0.150000;0.000000 When I run the same command in Nagios, the following happens: 1) I can see the performance data results when I look at the service detailed informatinon web page. 2) None of the performance data is wrote to the performance data file. I have service performance data processing set to 1 and have a processing command define as: define command{ command_name process-service-perfdata command_line /bin/echo -e "$LASTSERVICECHECK$\t$HOSTNAME$\t$SERVICEDESC$\t$SERVICESTATE$\t$SERVICEATTEMPT$\t$SERVICESTATETYPE$\t$SERVICEEXECUTIONTIME$\t$SERVICELATENCY$\t$SERVICEOUTPUT$\t$SERVICEPERFDATA$" >> /usr/local/nagios/var/service-perfdata.dat } (This is the example specified in the 2.0b3 documentation on the system in the Performance Data page) Now I don't know if I need to change how the macros are arranged in the process-service-perfdata command ($VALUENAME$). I did see that the value ordering in the command is different from what the plugin performance data guidelines are at http://nagiosplug.sourceforge.net/developer-guidelines.html#AEN142 . Am I to assume that I need to change the perfdata command values to the correct order of the plugin guidelines or am I just going at this all wrong? Thanks, Dale Offret Jr. maquaro at yahoo.com ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From zsitfa at t-online.hu Thu Aug 25 18:45:02 2005 From: zsitfa at t-online.hu (Horvath Tamas) Date: Thu, 25 Aug 2005 18:45:02 +0200 Subject: Host check behavior Message-ID: <20050825164501.5F2CC33C1DE@mail.t-online.hu> Hi! Thank you Marc your answer! I can't understand C, so I can'tcheck this in the code. I was afraid of the behavior of flap detection also: "A host will be checked for flapping if its state has changed since the last time the flap detection was performed for that host or if its state has not changed but at least x amount of time has passed since the flap detection was performed. The x amount of time is equal to the average check interval of all services associated with the host." But I checked router logs and I found that ISDN lines did not went up and down periodically, so I think you are rigth, and falp detection also don't run host chekc commands periodaically. Thanks again. Have a good day. Bye, Tamas! ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Aug 25 19:23:09 2005 From: marc at ena.com (Marc Powell) Date: Thu, 25 Aug 2005 12:23:09 -0500 Subject: Error: Could not read host and service status information Message-ID: Those look reasonable. Was apache restarted _after_ it was added to the nagios group? If so, I'd start looking at the mysql end of things. Is it possible that the version of mysql libraries nagios was compiled against is different than the mysql server itself? When you start nagios, can you perform selects on the tables in the database using the same authentication as nagios and see the data? -- Marc > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of James R. Marcus > Sent: Thursday, August 25, 2005 8:58 AM > To: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Error: Could not read host and service status > information > > Gladly: > > ncheck / # grep nagios /etc/group > apache:x:81:nagios,monarch > nagios:x:407:monarch,apache > > > ncheck / # ls -al /etc/nagios/ > total 104 > drwxrwx--- 2 nagios nagios 4096 Aug 24 08:09 . > drwxr-xr-x 51 root root 4096 Aug 24 18:24 .. > -rw-r--r-- 1 nagios nagios 0 Aug 16 17:28 .keep > -rwxrwxr-x 1 nagios nagios 1887 Aug 24 17:03 cgi.cfg > -rwxrwxr-x 1 nagios nagios 2690 Aug 24 17:03 checkcommands.cfg > -rwxrwxr-x 1 nagios nagios 1381 Aug 24 17:03 contact_templates.cfg > -rwxrwxr-x 1 nagios nagios 956 Aug 24 17:03 contactgroups.cfg > -rwxrwxr-x 1 nagios nagios 1243 Aug 24 17:03 contacts.cfg > -rwxrwxr-x 1 nagios nagios 1663 Aug 10 01:28 dependencies.cfg > -rwxrwxr-x 1 nagios nagios 748 Aug 24 17:03 escalation_templates.cfg > -rwxrwxr-x 1 nagios nagios 330 Aug 24 17:03 escalations.cfg > -rwxrwxr-x 1 nagios nagios 1265 Aug 24 17:03 host_templates.cfg > -rwxrwxr-x 1 nagios nagios 854 Aug 24 17:03 hostgroups.cfg > -rwxrwxr-x 1 nagios nagios 687 Aug 24 17:03 hosts.cfg > -rw-r--r-- 1 root root 15 Aug 18 18:20 htpasswd.group > -rw-r--r-- 1 root root 21 Aug 18 18:18 htpasswd.users > -rwxrwxr-x 1 nagios nagios 2418 Aug 24 17:03 misccommands.cfg > -rwxrwxr-x 1 nagios nagios 4192 Aug 24 17:03 nagios.cfg > -rwxrwxr-x 1 nagios nagios 3501 Aug 16 17:29 nrpe.cfg > -rwxrwxr-x 1 nagios nagios 4960 Aug 18 18:09 nsca.cfg > -rwxrwxr-x 1 nagios nagios 2981 Aug 10 14:10 resource.cfg > -rwxrwxr-x 1 nagios nagios 1628 Aug 16 17:24 send_nsca.cfg > -rwxrwxr-x 1 nagios nagios 4022 Aug 24 17:03 service_templates.cfg > -rwxrwxr-x 1 nagios nagios 741 Aug 24 17:03 services.cfg > -rwxrwxr-x 1 nagios nagios 1459 Aug 24 17:03 timeperiods.cfg > > ncheck / # ls -l /var/nagios/ > total 20 > drwxr-xr-x 2 nagios nagios 4096 Aug 25 00:00 archives > -rw-r--r-- 1 root apache 5 Aug 24 17:03 nagios.lock > -rw-r--r-- 1 nagios nagios 33 Aug 25 00:00 nagios.log > -rw-r--r-- 1 root root 2 Aug 25 09:54 nagios_seek.tmp > drwxr-xr-x 2 nagios apache 4096 Aug 16 17:28 rw > -rw-r--r-- 1 nagios nagios 0 Aug 24 17:03 status.sav > > ncheck / # grep -i not /var/nagios/nagios.log > ncheck / # > > Apache2: > > ### > ### Nagios Stuff > ### > ScriptAlias /nagios/cgi-bin/ /usr/nagios/sbin/ > Alias /nagios/ /usr/nagios/share > > AllowOverride AuthConfig > Options +ExecCGI > Order allow,deny > Allow from all > > > > Options None > AllowOverride AuthConfig > Order allow,deny > Allow from all > > > Thanks, > James > > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Marc > Powell > Sent: Thursday, August 25, 2005 12:03 AM > To: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Error: Could not read host and service > status information > > Would you be willing to send ls -al's on ~nagios/etc and ~nagios/var as > well as the user/group that nagios and your web server run under? It > does sound like it might be a permissions issue and another set of eyes > can't hurt. Additionally, do you see and 'could not update' errors in > nagios.log? > > -- > Marc > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > > admin at lists.sourceforge.net] On Behalf Of James R. Marcus > > Sent: Wednesday, August 24, 2005 9:18 PM > > To: Lori Adams; nagios-users at lists.sourceforge.net > > Subject: RE: [Nagios-users] Error: Could not read host and service > status > > information > > > > Hi, > > Yes I have killed all the Nagios processes and restarted. I don't > have a > > status.log, I have nagios.log, it was my understanding that when you > use > > mySQL and Nagios the status.log isn't written. I have run nagios -v > and > > although I have had warnings, which I corrected, nothing has really > > changed. I have double checked permissions. > > > > The other interesting thing to note is that according the log, it > looks > > like it is doing the checks correctly. > > > > I guess it is back to the doc :-) > > > > James > > > > ________________________________ > > > > From: Lori Adams [mailto:ladams at cloudmark.com] > > Sent: Wed 8/24/2005 6:08 PM > > To: James R. Marcus; nagios-users at lists.sourceforge.net > > Subject: RE: [Nagios-users] Error: Could not read host and service > status > > information > > > > > > > > Have you tried killing off all nagios processes? Make sure there are > no > > more, and then restart your nagios. > > > > > > > > Below is the error I get if nagios is not running. I assume you got > this > > entire message too. Follow all instructions when setting up your > nagios. > > More specifically make sure that you have a status.log (see > nagios.cfg). > > > > > > > > Did you try all of these steps? Definitely try > /your/nagios/dir/nagios -v > > to make sure there's no errors. > > > > > > > > Error: Could not read host and service status information! > > > > > > > > The most common cause of this error message (especially for new > users), is > > the fact that Nagios is not actually running. If Nagios is indeed not > > running, this is a normal error message. It simply indicates that the > CGIs > > could not obtain the current status of hosts and services that are > being > > monitored. If you've just installed things, make sure you read the > > documentation on starting Nagios. > > > > > > > > Some other things you should check in order to resolve this error > include: > > > > > > > > 1. Check the Nagios log file for messages relating to > startup > > or status data errors. > > > > 2. Always verify configuration options using the -v > command- > > line option before starting or restarting Nagios! > > > > 3. Make sure you've compiled the main program and the CGIs to use the > same > > status data storage options (i.e. text file or database). If the main > > program is storing status data in a text file and the CGIs are trying > to > > read status data from a database, you'll have problems. > > > > > > > > Make sure you read the documentation on installing, configuring and > > running Nagios thoroughly before continuing. If all else fails, try > > sending a message to one of the mailing lists. More information can be > > found at http://www.nagios.org . > > > > > > > > -Lori > > > > > > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > > admin at lists.sourceforge.net] On Behalf Of James R. Marcus > > Sent: Wednesday, August 24, 2005 12:39 PM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Error: Could not read host and service status > > information > > > > > > > > > > > > I have been looking at old posts and the FAQ to find a solution to > this > > > > issue: > > > > > > > > Error: Could not read host and service status information! > > > > > > > > All I get in my log file is: > > > > [1124913728] Warning: Contact group 'switch-admins' is not used in any > > > > hostgroup/service definitions or host/hostgroup/service escalations! > > > > [1124913728] Warning: Contact group 'win-admins' is not used in any > > > > hostgroup/service definitions or host/hostgroup/service escalations! > > > > [1124913728] Finished daemonizing... (New PID=6184) > > > > > > > > I think I have done a pretty good job of reviewing permissions etc. > > > > There are no errors in the Apache2 logs. > > > > > > > > I'm running Gentoo, Nagios 1.2 and Monarch for configuration. > > > > > > > > Can anyone point me to a better way of troubleshooting this issue? > > > > > > > > > > > > Thanks, > > > > James > > > > > > > > > > > > ------------------------------------------------------- > > > > SF.Net email is Sponsored by the Better Software Conference & EXPO > > > > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > > Practices > > > > Agile & Plan-Driven Development * Managing Projects & Teams * Testing > & QA > > > > Security * Process Improvement & Measurement * > http://www.sqe.com/bsce5sf > > > > _______________________________________________ > > > > Nagios-users mailing list > > > > Nagios-users at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > ::: Please include Nagios version, plugin version (-v) and OS when > > reporting any issue. > > > > ::: Messages without supporting info will risk being sent to /dev/null > > > > > > > > ------------------------------------------------------- > > SF.Net email is Sponsored by the Better Software Conference & EXPO > > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > > Practices > > Agile & Plan-Driven Development * Managing Projects & Teams * Testing > & QA > > Security * Process Improvement & Measurement * > http://www.sqe.com/bsce5sf > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > > reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & > QA > Security * Process Improvement & Measurement * > http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dhopp at GOCSC.com Thu Aug 25 19:26:56 2005 From: dhopp at GOCSC.com (Dennis Hopp) Date: Thu, 25 Aug 2005 12:26:56 -0500 Subject: Notification clarification Message-ID: <395D09D0C949AF40B9DDFEE9C93A47FF0451268A@hudson.gocsc.com> I've got nagios monitoring different aspects of our servers (CPU, disk, etc.). For ease of administration I have a service that looks like this: define service{ use generic-service hostgroup_name WindowsServers, WindowsXP service_description CPU is_volatile 0 check_period Non-Backup-Hours max_check_attempts 5 normal_check_interval 5 retry_check_interval 3 contact_groups domain-admins check_command check_win_cpu!80!90 } The hostgroups have a number of servers providing all sorts of different services. I'm going to add a new contactgroup for our dbas but I ONLY want to notify the dbas for services that affect their servers (they don't need to know that the CPU on our internal jabber server is spiking)... What I want to know is if I add the db-admin group to the contact_groups for the CPU service, will the db-admin group get ALL notifications regarding ANY servers CPU usage or will they only get a message regarding the CPU usage of hosts (in the host definition) they are listed as a contact? I've read the notification part of the documentation and it is a little unclear on this. Thanks --Dennis * "Privileged/Confidential Information of Communications Supply Corp. may be contained in this message. If you are not the addressee of this message, you may not copy, use or deliver this message to anyone. In such event, you should destroy the message and kindly notify the sender by reply e-mail. It is understood that opinions or conclusions that do not relate to the official business of Communications Supply Corp. are neither given nor endorsed by Communications Supply Corp." ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Aug 25 19:29:55 2005 From: marc at ena.com (Marc Powell) Date: Thu, 25 Aug 2005 12:29:55 -0500 Subject: Contacts/Contact Groups/Paging options Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Aaron Carr > Sent: Thursday, August 25, 2005 9:27 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Contacts/Contact Groups/Paging options > > I've been thinking for a little bit now about how to handle on call > paging easiest in my current environment. > > One idea that I just came up with, is to create a contact group called > "on call" or something similar, then have secondary user accounts for > pagers, and put the active person on pager in that group (that way, > their normal account receives email all the time and the pager account > only receives pages during the designated time periods, etc). This is what we did for a long time but for e-mail to blackberrys. We'd have one person on call each week so I pre-created a years worth of contact.cfg files and replaced the one nagios was looking at every Sunday night via cron. It was hands off once it was set up presuming nobody left, switched weeks, etc. We do it differently now that wouldn't work with a pager setup. > I'd love to hear any useful tips from people who've already done this > particular method. Bear in mind that the notification commands are/can be scripts that do anything you want. If you store the on-call information in a database or other more easily managed information store you could always have the script look there to determine who the lucky pager was and notify appropriately. -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ladams at cloudmark.com Thu Aug 25 20:02:20 2005 From: ladams at cloudmark.com (Lori Adams) Date: Thu, 25 Aug 2005 11:02:20 -0700 Subject: passive host checking Message-ID: Bill, I think you're a little bit confused. nrpe is an active check. On your nagios machine, you would call check_nrpe -H -c (see nrpe.cfg). nrpe_nt will run the program listed in nrpe.cfg, and the results will come back through nrpe to your nagios machine. send_nsca works differently. nsca runs some program that you've defined (nsca.cfg) on your remote machine, and pushes that data to the nagios server. nagios does not submit the request to your remote machine, it only collects the data. Check the documentation for nrpe and nsca. Then decide which one it is you want. In my specific case, I had to go with nrpe, as we didn't want any of our remote machines to push data. short story: nrpe pulls data, nsca pushes data. Read the docs. -Lori -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Bill Stevenson Sent: Wednesday, August 24, 2005 6:28 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] passive host checking Okay here it goes: I have a handful of windows servers that would like to have collect data on themselves and send back to a Nagios server. These, of course, would be passive host checks. I have nrpe_nt installed and it can collect data. I have send_nsca on the windows boxes and it can establish a connection with the Nagios server. But how can I get the results of the nrpe_nt checks to the Nagios server? Doing some like this "c:\cpuload_nrpe_nt.exe 70 90 | send_nsca -H 12.34.56.78 -c send_nsca.cfg" cause the program to hang. My one real burning question, is how can I configure the Nagios server to accept the data that the Windows boxes sent to it via send_nsca? What command in checkcommands.cfg would I use to look for incoming data from the windows servers, this incoming data is going to come from one single IP address as these hosts are behind a firewall and sending check results across the Internet to the Nagios server. Thanks, Bill ____________________________________________________ Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ladams at cloudmark.com Thu Aug 25 20:30:26 2005 From: ladams at cloudmark.com (Lori Adams) Date: Thu, 25 Aug 2005 11:30:26 -0700 Subject: check_nt configuration Message-ID: Did you follow everything that was mentioned in the Bobby Bradshaw thread? Do you have nsclient (Nagios Agent) running on your remote machine? -Lori > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of dan dang > Sent: Thursday, August 25, 2005 12:54 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] check_nt configuration > > hi all, > > I have the same problem as Bobby Bradshaw (from whom I quoted the message > below) : > My Nagios setup is: > Nagios v1.3 (October 24, 2004) > Nagios plugins v1.4.1 > > I have Nagios running correctly, sending notifications, checking ping and > HTTP on several hosts. BUT I have exactly the same problem as Bobby > Bradshaw which is the fact that I can't get Nagios to run "./check_nt -H > 192.168.1.111 -v UPTIME" command without getting a "CRITICAL - Socket > timeout after 10 seconds" error or any of the check_nt commands without an > error. I have the Nsclient 2.01 on my Windows NT host. > > The error I have is the fact that the system doesn't find the check_nt > service BUT I have installed it in the /usr/local/nagios/libexec/ file, in > fact in my case I changed the path to /usr/lib/nagios/plugins/ since it's > where the services are located in my configuration. > > I have exactly the same question as Bobby Brawn : Is there better > documentation than what is provided with Nsclient? Can I get some pointers > on ALL the cfg files that I have to edit to get the check_nt command to > work. > Bobby Bradshaw, I saw that u solved your problem, can u tell how did u do > ? If anyone has an idea, please advise. Thanks in advance !! > > Quoc-Dan DANG > > > NB: I have edited the "checkcommands.cfg" file by adding the following > lines : > > > # 'check_nt_disk' command definition > define command{ > command_name check_nt_disk > command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v USEDDISKSPACE > -l $ARG1$ -w $ARG2$ -c $ARG3$ > } > > > # 'check_nt_upload' command definition > define command { > command_name check_nt_cpuload > command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v CPULOAD -l > $ARG1$ > } > > > # 'check_nt_uptime' command definition > define command { > command_name check_nt_uptime > command_line $USER1$/check_nt #-H $HOSTADDRESS$ -p 1248 -v UPTIME > } I see that you have the above line with a comment. This will make it hard to run correctly. Also have you tried -p 1250 as suggested in the Bobby Bradshaw thread. > # 'check_nt_clientversion' command definition > define command { > command_name check_nt_clientversion > command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v > CLIENTVERSION > } > > > # 'check_nt_process' command definition > define command { > command_name check_nt_process > command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v PROCSTATE -l > $ARG1$ > } > > > # 'check_nt_service' command definition > define command{ > command_name check_nt_service > command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v SERVICESTATE -d > SHOWALL -l $ARG1$ > } > > > # 'check_nt_memuse' command definition > define command{ > command_name check_nt_memuse > command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v MEMUSE -w > $ARG1$ -c $ARG2$ > } > > > # 'check_nt_fileage' command definition > define command{ > command_name check_nt_fileage > command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v FILEAGE -l > $ARG1$ -w $ARG2$ -c $ARG3$ > } > > > # 'check_nt_pagingfile' command definition > define command{ > command_name check_nt_pagingfile > command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v COUNTER -l > "\\Paging File(_Total)\\%% Usage","Paging File usage is > %.2f %%" -w $ARG1$ -c $ARG2$ > } > > > > > QUOTE from Bobby Bradshaw who had the same problem as I currently have : > > "From: nagios-users-admin at li... on > > behalf > > > of > > > >>Bobby Bradshaw > > > >>Sent: Fri 8/19/2005 2:43 PM > > > >>To: nagios-users at li... > > > >>Subject: [Nagios-users] check_nt configurations/setup > > > >> > > > >> > > > >>Hi all, > > > >> > > > >>My Nagios setup is: > > > >>Suse 9.3 Professional > > > >>Nagios v1.2 > > > >>Nagios plugins v1.4 > > > >>Nagios nrpe v2.0 > > > >> > > > >>I have Nagios running correctly, sending notifications, checking > ping > > and > > > >>HTTP on several hosts. Although, I am having so much trouble trying > to > > > get > > > >>Nagios to run "./check_nt -H 192.168.1.111 -v UPTIME" command > without > > > >>getting a "CRITICAL - Socket timeout after 10 seconds" error or any > of > > the > > > >>check_nt commands without an error. I have the Nsclient 2.01 on my > > > Windows > > > >>XP host. Is there better documentation than what is provided with > > > Nsclient? > > > >> Can I get some pointers on ALL the cfg files that I have to edit to > get > > > the > > > >>check_nt command to work. > > > >> > > > >>Thanks in advance! > > > >> > > > >>-- > > > >>Bobby Bradshaw, Jr. > > > >>bobby.bradshaw at gm... > > > > > > > > > > > > > > > > > > -- > > > Andreas Ericsson andreas.ericsson at op... > > > OP5 AB http://www.op5.se > > > > Lead Developer > > > > > > > > > ------------------------------------------------------- > > > SF.Net email is Sponsored by the Better Software Conference & EXPO > > > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > > Practices > > > Agile & Plan-Driven Development * Managing Projects & Teams * Testing > & QA > > > Security * Process Improvement & Measurement * > http://www.sqe.com/bsce5sf > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at li... > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > ::: Please include Nagios version, plugin version (-v) and OS when > > reporting > > > any issue. > > > ::: Messages without supporting info will risk being sent to /dev/null > > > > > > > > > > > > -- > > Bobby Bradshaw, Jr. > > bobby.bradshaw at gm ... > > > > > > > -- > Bobby Bradshaw, Jr. > bobby.bradshaw at gm... > > > > From: Bobby Bradshaw > Re: check_nt configurations/setup > > 2005-08-22 08:18 > Found it. Thank you guys very much. > > Much appreciated > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jonsml at gmail.com Thu Aug 25 20:45:40 2005 From: jonsml at gmail.com (Jon) Date: Thu, 25 Aug 2005 14:45:40 -0400 Subject: check_nt configuration In-Reply-To: References: Message-ID: <430e11de.42e9d9bc.77d8.348d@mx.gmail.com> Hi, Since you mentioned that you have installed the plugins in a different location, did you make change to the $USER1$ variable to point it to the correct location? To set the variable $USER1$ to /usr/lib/nagios/plugins/ you need to edit the resource.cfg. You can also try executing the command to see if it actually works. Just go to where the check_nt is located and run it. That would eliminate a few things. HTH, Jon _____ From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of dan dang Sent: Thursday, August 25, 2005 3:54 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] check_nt configuration hi all, I have the same problem as Bobby Bradshaw (from whom I quoted the message below) : My Nagios setup is: Nagios v1.3 (October 24, 2004) Nagios plugins v1.4.1 I have Nagios running correctly, sending notifications, checking ping and HTTP on several hosts. BUT I have exactly the same problem as Bobby Bradshaw which is the fact that I can't get Nagios to run "./check_nt -H 192.168.1.111 -v UPTIME" command without getting a "CRITICAL - Socket timeout after 10 seconds" error or any of the check_nt commands without an error. I have the Nsclient 2.01 on my Windows NT host. The error I have is the fact that the system doesn't find the check_nt service BUT I have installed it in the /usr/local/nagios/libexec/ file, in fact in my case I changed the path to /usr/lib/nagios/plugins/ since it's where the services are located in my configuration. I have exactly the same question as Bobby Brawn : Is there better documentation than what is provided with Nsclient? Can I get some pointers on ALL the cfg files that I have to edit to get the check_nt command to work. Bobby Bradshaw, I saw that u solved your problem, can u tell how did u do ? If anyone has an idea, please advise. Thanks in advance !! Quoc-Dan DANG NB: I have edited the "checkcommands.cfg" file by adding the following lines : # 'check_nt_disk' command definition define command{ command_name check_nt_disk command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v USEDDISKSPACE -l $ARG1$ -w $ARG2$ -c $ARG3$ } # 'check_nt_upload' command definition define command { command_name check_nt_cpuload command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v CPULOAD -l $ARG1$ } # 'check_nt_uptime' command definition define command { command_name check_nt_uptime command_line $USER1$/check_nt #-H $HOSTADDRESS$ -p 1248 -v UPTIME } # 'check_nt_clientversion' command definition define command { command_name check_nt_clientversion command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v CLIENTVERSION } # 'check_nt_process' command definition define command { command_name check_nt_process command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v PROCSTATE -l $ARG1$ } # 'check_nt_service' command definition define command{ command_name check_nt_service command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v SERVICESTATE -d SHOWALL -l $ARG1$ } # 'check_nt_memuse' command definition define command{ command_name check_nt_memuse command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v MEMUSE -w $ARG1$ -c $ARG2$ } # 'check_nt_fileage' command definition define command{ command_name check_nt_fileage command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v FILEAGE -l $ARG1$ -w $ARG2$ -c $ARG3$ } # 'check_nt_pagingfile' command definition define command{ command_name check_nt_pagingfile command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v COUNTER -l "\\Paging File(_Total)\\%% Usage","Paging File usage is %.2f %%" -w $ARG1$ -c $ARG2$ } QUOTE from Bobby Bradshaw who had the same problem as I currently have : "From: nagios-users-admin at li... on > behalf > > of > > >>Bobby Bradshaw > > >>Sent: Fri 8/19/2005 2:43 PM > > >>To: nagios-users at li... > > >>Subject: [Nagios-users] check_nt configurations/setup > > >> > > >> > > >>Hi all, > > >> > > >>My Nagios setup is: > > >>Suse 9.3 Professional > > >>Nagios v1.2 > > >>Nagios plugins v1.4 > > >>Nagios nrpe v2.0 > > >> > > >>I have Nagios running correctly, sending notifications, checking ping > and > > >>HTTP on several hosts. Although, I am having so much trouble trying to > > get > > >>Nagios to run "./check_nt -H 192.168.1.111 -v UPTIME" command without > > >>getting a "CRITICAL - Socket timeout after 10 seconds" error or any of > the > > >>check_nt commands without an error. I have the Nsclient 2.01 on my > > Windows > > >>XP host. Is there better documentation than what is provided with > > Nsclient? > > >> Can I get some pointers on ALL the cfg files that I have to edit to get > > the > > >>check_nt command to work. > > >> > > >>Thanks in advance! > > >> > > >>-- > > >>Bobby Bradshaw, Jr. > > >>bobby.bradshaw at gm... > > > > > > > > > > > > > -- > > Andreas Ericsson andreas.ericsson at op... > > OP5 AB http://www.op5.se > > Lead Developer > > > > > > ------------------------------------------------------- > > SF.Net email is Sponsored by the Better Software Conference & EXPO > > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > Practices > > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at li... > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > reporting > > any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > > > > > -- > Bobby Bradshaw, Jr. > bobby.bradshaw at gm ... > > -- Bobby Bradshaw, Jr. bobby.bradshaw at gm... From: Bobby Bradshaw Re: check_nt configurations/setup 2005-08-22 08:18 Found it. Thank you guys very much. Much appreciated -------------- next part -------------- An HTML attachment was scrubbed... URL: From chandresh.suthar at gmail.com Thu Aug 25 21:11:09 2005 From: chandresh.suthar at gmail.com (Chandresh Suthar) Date: Fri, 26 Aug 2005 00:41:09 +0530 Subject: Need Help Message-ID: Hello Friends, It's my first mail to you. I have configured Nagios for my organisation. Problem is that i want to monitor disk usage, mailq etc of remote servers. But i don't want to install any plugin on remote servers. I want to do such things by using "check_by_ssh" . Please suggest me how can i do that. Thanks Chandresh ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nuffers at tsainc.com Thu Aug 25 21:16:04 2005 From: nuffers at tsainc.com (nuffers at tsainc.com) Date: Thu, 25 Aug 2005 14:16:04 -0500 Subject: Help Desk Software In-Reply-To: <20050825180442.A96BA89663@sc8-sf-spam1.sourceforge.net> References: <20050825180442.A96BA89663@sc8-sf-spam1.sourceforge.net> Message-ID: I want to integrate Nagios with a Help Desk (ticketing tool). Can anyone recommend a OpenSource solution that might work or have used? Steve Nuffer ( Office: (402) 390-7938 ( Fax: (402) 778-1413 * Email: nuffers at tsainc.com _________________________________________________________________________________________________ Transaction Systems Architects, Inc. 330 S. 108th Ave. Omaha, NE 68154-2684 This e-mail message and any attachments may contain confidential, proprietary or non-public information. This information is intended solely for the designated recipient(s). If an addressing or transmission error has misdirected this e-mail, please notify the sender immediately and destroy this e-mail. Any review, dissemination, use or reliance upon this information by unintended recipients is prohibited. Any opinions expressed in this e-mail are those of the author personally. -------------- next part -------------- An HTML attachment was scrubbed... URL: From marc at ena.com Thu Aug 25 21:18:50 2005 From: marc at ena.com (Marc Powell) Date: Thu, 25 Aug 2005 14:18:50 -0500 Subject: more - remote nagios server report to main Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Peder Christian Bach > Sent: Thursday, August 25, 2005 5:04 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] more - remote nagios server report to main > > Hi.. I have installed nsca and done the config in distributed readme.. > > But I get this error message.. > > Aug 25 11:51:42 mikkelrev nagios: SERVICE ALERT: FNNCES;FNN IPSEC > ruter;WARNING;SOFT;1;(No output!) > Aug 25 11:52:01 mikkelrev crond(pam_unix)[30233]: session opened for > user jffnms by (uid=0) > Aug 25 11:52:02 mikkelrev crond(pam_unix)[30233]: session closed for > user jffnms > Aug 25 11:52:42 mikkelrev nagios: SERVICE ALERT: FNNCES;FNN IPSEC > ruter;WARNING;SOFT;2;(No output!) > > > My host config file looks like this. > > define service { > use generic-service > host_name FNNCES > service_description FNN IPSEC ruter > is_volatile 0 > contact_groups FNN > check_command check_ping!100.0,20%!900.0,60% > check_command submit_check_result > } This is incorrect. There should only be one check_command, check_ping. If you have enabled the OCSP behavior in nagios.cfg and have specified in the template generic-service to obsess_over_service, since it's not specifically in the definition above, then nagios will automagically run your ocsp_command for each check of that service. -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bobby.bradshaw at gmail.com Thu Aug 25 21:19:04 2005 From: bobby.bradshaw at gmail.com (Bobby Bradshaw) Date: Thu, 25 Aug 2005 15:19:04 -0400 Subject: Help Desk Software In-Reply-To: References: <20050825180442.A96BA89663@sc8-sf-spam1.sourceforge.net> Message-ID: <591f19110508251219428e16d@mail.gmail.com> I like that question. Can anyone tell me if DCL (double choco latte) can be integrated with Nagios? Thanks. On 8/25/05, nuffers at tsainc.com wrote: > > I want to integrate Nagios with a Help Desk (ticketing tool). Can anyone > recommend a OpenSource solution that might work or have used? > > > Steve Nuffer > ( Office: (402) 390-7938 > ( Fax: (402) 778-1413 > * Email: nuffers at tsainc.com > _________________________________________________________________________________________________ > Transaction Systems Architects, Inc. 330 S. 108th > Ave. Omaha, NE 68154-2684 > This e-mail message and any attachments may contain confidential, > proprietary or non-public information. This information > is intended solely for the designated recipient(s). If an addressing or > transmission error has misdirected this e-mail, please > notify the sender immediately and destroy this e-mail. Any review, > dissemination, use or reliance upon this information by > unintended recipients is prohibited. Any opinions expressed in this e-mail > are those of the author personally. -- Bobby Bradshaw, Jr. bobby.bradshaw at gmail.com ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From Millard.Matt at principal.com Thu Aug 25 21:20:45 2005 From: Millard.Matt at principal.com (Millard, Matt) Date: Thu, 25 Aug 2005 14:20:45 -0500 Subject: Help Desk Software Message-ID: <6201DF063335254BA0D6AA7053D101170A62A702@pfgdsmmbx006.principalusa.corp.principal.com> RT is the best OS help desk out there. There are several messages in the archives about possible Nagios integrations. http://www.bestpractical.com Matt _____ From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of nuffers at tsainc.com Sent: Thursday, August 25, 2005 2:16 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Help Desk Software I want to integrate Nagios with a Help Desk (ticketing tool). Can anyone recommend a OpenSource solution that might work or have used? -----Message Disclaimer----- This e-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 and exempt from disclosure under applicable law. If you are not the intended recipient, any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by reply email to Connect at principal.com and delete or destroy all copies of the original message and attachments thereto. Email sent to or from the Principal Financial Group or any of its member companies may be retained as required by law or regulation. Nothing in this message is intended to constitute an Electronic signature for purposes of the Uniform Electronic Transactions Act (UETA) or the Electronic Signatures in Global and National Commerce Act ("E-Sign") unless a specific statement to the contrary is included in this message. -------------- next part -------------- An HTML attachment was scrubbed... URL: From marc at ena.com Thu Aug 25 21:23:46 2005 From: marc at ena.com (Marc Powell) Date: Thu, 25 Aug 2005 14:23:46 -0500 Subject: Need Help Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Chandresh Suthar > Sent: Thursday, August 25, 2005 2:11 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Need Help > > Hello Friends, > > It's my first mail to you. I have configured Nagios for my > organisation. Problem is that i want to monitor disk usage, mailq etc > of remote servers. But i don't want to install any plugin on remote > servers. I want to do such things by using "check_by_ssh" . > > Please suggest me how can i do that. > You can't. check_by_ssh is only a wrapper that will execute a nagios plugin hosted on the remote machine and return the results to nagios. -- Marc p.s. You shouldn't assume that the way you have your mind set on is the correct way. There's tons of information on monitoring remote hosts in the archives but here's a hint: SNMP is pretty much the only option if you don't want to install the plugins. ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Thu Aug 25 21:40:19 2005 From: marc at ena.com (Marc Powell) Date: Thu, 25 Aug 2005 14:40:19 -0500 Subject: Host check behavior Message-ID: > -----Original Message----- > From: Horvath Tamas [mailto:zsitfa at t-online.hu] > Sent: Thursday, August 25, 2005 11:45 AM > To: nagios-users at lists.sourceforge.net > Cc: Marc Powell > Subject: Re: RE: Host check behavior > > Hi! > > Thank you Marc your answer! > > I can't understand C, so I can'tcheck this in the code. I don't either really but the comments in the code are very descriptive as well as the subroutine names. You shouldn't be turned off just because you don't think you'll understand it. Sometimes just getting an overview is enough and you may just be able to understand more than you think. -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jmarcus at mvalent.com Fri Aug 26 05:53:53 2005 From: jmarcus at mvalent.com (James R. Marcus) Date: Thu, 25 Aug 2005 23:53:53 -0400 Subject: Error: Could not read host and service status information Message-ID: <67FACD5BE963B0418D12365DD3C7E4CD36F4C8@exchanger.mvalent.local> Marc, I did have to reinstall MySQL, but I did make sure all the dependencies on Gentoo were dealt with, by recompiling (with emerge) Nagios, and used a command that checks all .so dependencies on the system to make sure nothing is broken. So I'm not so worried about MySQL. So I think that since Groundwork monitor is using its own database to store the configuration data I don't think that the original Nagios database, that I setup isn't being used. So I'm not so sure about the second question. Here is my config: ##########GROUNDWORK#################################################### ######################################### #GW #GW nagios.cfg generated 2005-08-24 17:03:18 by super_user from monarch.cgi nagios 1.x #GW ##########GROUNDWORK#################################################### ######################################### # LOG FILE log_file=/var/nagios/nagios.log # OBJECT CONFIGURATION FILE(S) cfg_file=/etc/nagios/checkcommands.cfg cfg_file=/etc/nagios/contact_templates.cfg cfg_file=/etc/nagios/contactgroups.cfg cfg_file=/etc/nagios/contacts.cfg cfg_file=/etc/nagios/escalation_templates.cfg cfg_file=/etc/nagios/escalations.cfg cfg_file=/etc/nagios/host_templates.cfg cfg_file=/etc/nagios/hostgroups.cfg cfg_file=/etc/nagios/hosts.cfg cfg_file=/etc/nagios/misccommands.cfg cfg_file=/etc/nagios/service_templates.cfg cfg_file=/etc/nagios/services.cfg cfg_file=/etc/nagios/timeperiods.cfg # RESOURCE FILE resource_file=/etc/nagios/resource.cfg # TEMP FILE temp_file=/var/nagios/nagios.tmp # STATUS FILE status_file=/var/nagios/status.log # AGGREGATE STATUS UPDATES aggregate_status_updates=1 # STATUS UPDATE INTERVAL status_update_interval=15 # NAGIOS USER nagios_user=nagios # NAGIOS GROUP nagios_group=nagios # ENABLE NOTIFICATIONS enable_notifications=1 # EXECUTE SERVICE CHECKS execute_service_checks=1 # ACCEPT PASSIVE SERVICE CHECKS accept_passive_service_checks=1 # ENABLE EVENT HANDLERS enable_event_handlers=1 # LOG ROTATION METHOD log_rotation_method=d # LOG ARCHIVE PATH log_archive_path=/var/nagios/archives # CHECK EXTERNAL COMMANDS check_external_commands=0 # COMMAND CHECK INTERVAL command_check_interval=1 # COMMAND FILE command_file=/var/nagios/rw/nagios.cmd # DOWNTIME FILE downtime_file=/var/nagios/nagiosdowntime.log # COMMENT FILE comment_file=/var/nagios/nagioscomment.log # LOCK FILE lock_file=/var/nagios/nagios.lock # RETAIN STATE INFORMATION retain_state_information=0 # STATE RETENTION FILE state_retention_file=/var/nagios/nagiosstatus.sav # RETENTION UPDATE INTERVAL retention_update_interval=60 # USE RETAINED PROGRAM STATE use_retained_program_state=1 # USE SYSLOG use_syslog=1 # LOG NOTIFICATIONS log_notifications=1 # LOG SERVICE RETRIES log_service_retries=1 # LOG HOST RETRIES log_host_retries=1 # LOG EVENT HANDLERS log_event_handlers=1 # LOG INITIAL STATES log_initial_states=0 # LOG EXTERNAL COMMANDS log_external_commands=1 # LOG PASSIVE SERVICE CHECKS log_passive_service_checks=1 # GLOBAL HOST EVENT HANDLER # global_host_event_handler= # GLOBAL SERVICE EVENT HANDLER # global_service_event_handler= # SLEEP TIME sleep_time=1 # INTER CHECK DELAY METHOD inter_check_delay_method=s # SERVICE INTERLEAVE FACTOR service_interleave_factor=s # MAX CONCURRENT CHECKS max_concurrent_checks=0 # SERVICE REAPER FREQUENCY service_reaper_frequency=10 # INTERVAL LENGTH interval_length=60 # USE AGRESSIVE HOST CHECKING use_agressive_host_checking=0 # ENABLE FLAP DETECTION enable_flap_detection=0 # LOW SERVICE FLAP THRESHOLD low_service_flap_threshold=25.0 # HIGH SERVICE FLAP THRESHOLD high_service_flap_threshold=50.0 # LOW HOST FLAP THRESHOLD low_host_flap_threshold=25.0 # HIGH HOST FLAP THRESHOLD high_host_flap_threshold=50.0 # SOFT STATE DEPENDENCIES soft_state_dependencies=0 # SERVICE CHECK TIMEOUT service_check_timeout=60 # HOST CHECK TIMEOUT host_check_timeout=30 # EVENT HANDLER TIMEOUT event_handler_timeout=30 # NOTIFICATION TIMEOUT notification_timeout=30 # OCSP TIMEOUT ocsp_timeout=5 # PERFDATA TIMEOUT perfdata_timeout=5 # OBSESS OVER SERVICES obsess_over_services=0 # OCSP COMMAND # ocsp_command= # PROCESS PERFORMANCE DATA process_performance_data=0 # HOST PERFDATA COMMAND # host_perfdata_command= # SERVICE PERFDATA COMMAND # service_perfdata_command= # CHECK FOR ORPHANED SERVICES check_for_orphaned_services=1 # CHECK SERVICE FRESHNESS check_service_freshness=0 # FRESHNESS CHECK INTERVAL freshness_check_interval=60 # DATE FORMAT date_format=us # ILLEGAL OBJECT NAME CHARS illegal_object_name_chars=`~!$%^&*|'"<>?,()'= # ILLEGAL MACRO OUTPUT CHARS illegal_macro_output_chars=`~$&|'"<> # ADMIN EMAIL admin_email=monitoring at domain.local # ADMIN PAGER # admin_pager= ncheck ~ # -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Marc Powell Sent: Thursday, August 25, 2005 1:23 PM To: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Error: Could not read host and service status information Those look reasonable. Was apache restarted _after_ it was added to the nagios group? If so, I'd start looking at the mysql end of things. Is it possible that the version of mysql libraries nagios was compiled against is different than the mysql server itself? When you start nagios, can you perform selects on the tables in the database using the same authentication as nagios and see the data? -- Marc > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of James R. Marcus > Sent: Thursday, August 25, 2005 8:58 AM > To: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Error: Could not read host and service status > information > > Gladly: > > ncheck / # grep nagios /etc/group > apache:x:81:nagios,monarch > nagios:x:407:monarch,apache > > > ncheck / # ls -al /etc/nagios/ > total 104 > drwxrwx--- 2 nagios nagios 4096 Aug 24 08:09 . > drwxr-xr-x 51 root root 4096 Aug 24 18:24 .. > -rw-r--r-- 1 nagios nagios 0 Aug 16 17:28 .keep > -rwxrwxr-x 1 nagios nagios 1887 Aug 24 17:03 cgi.cfg > -rwxrwxr-x 1 nagios nagios 2690 Aug 24 17:03 checkcommands.cfg > -rwxrwxr-x 1 nagios nagios 1381 Aug 24 17:03 contact_templates.cfg > -rwxrwxr-x 1 nagios nagios 956 Aug 24 17:03 contactgroups.cfg > -rwxrwxr-x 1 nagios nagios 1243 Aug 24 17:03 contacts.cfg > -rwxrwxr-x 1 nagios nagios 1663 Aug 10 01:28 dependencies.cfg > -rwxrwxr-x 1 nagios nagios 748 Aug 24 17:03 escalation_templates.cfg > -rwxrwxr-x 1 nagios nagios 330 Aug 24 17:03 escalations.cfg > -rwxrwxr-x 1 nagios nagios 1265 Aug 24 17:03 host_templates.cfg > -rwxrwxr-x 1 nagios nagios 854 Aug 24 17:03 hostgroups.cfg > -rwxrwxr-x 1 nagios nagios 687 Aug 24 17:03 hosts.cfg > -rw-r--r-- 1 root root 15 Aug 18 18:20 htpasswd.group > -rw-r--r-- 1 root root 21 Aug 18 18:18 htpasswd.users > -rwxrwxr-x 1 nagios nagios 2418 Aug 24 17:03 misccommands.cfg > -rwxrwxr-x 1 nagios nagios 4192 Aug 24 17:03 nagios.cfg > -rwxrwxr-x 1 nagios nagios 3501 Aug 16 17:29 nrpe.cfg > -rwxrwxr-x 1 nagios nagios 4960 Aug 18 18:09 nsca.cfg > -rwxrwxr-x 1 nagios nagios 2981 Aug 10 14:10 resource.cfg > -rwxrwxr-x 1 nagios nagios 1628 Aug 16 17:24 send_nsca.cfg > -rwxrwxr-x 1 nagios nagios 4022 Aug 24 17:03 service_templates.cfg > -rwxrwxr-x 1 nagios nagios 741 Aug 24 17:03 services.cfg > -rwxrwxr-x 1 nagios nagios 1459 Aug 24 17:03 timeperiods.cfg > > ncheck / # ls -l /var/nagios/ > total 20 > drwxr-xr-x 2 nagios nagios 4096 Aug 25 00:00 archives > -rw-r--r-- 1 root apache 5 Aug 24 17:03 nagios.lock > -rw-r--r-- 1 nagios nagios 33 Aug 25 00:00 nagios.log > -rw-r--r-- 1 root root 2 Aug 25 09:54 nagios_seek.tmp > drwxr-xr-x 2 nagios apache 4096 Aug 16 17:28 rw > -rw-r--r-- 1 nagios nagios 0 Aug 24 17:03 status.sav > > ncheck / # grep -i not /var/nagios/nagios.log > ncheck / # > > Apache2: > > ### > ### Nagios Stuff > ### > ScriptAlias /nagios/cgi-bin/ /usr/nagios/sbin/ > Alias /nagios/ /usr/nagios/share > > AllowOverride AuthConfig > Options +ExecCGI > Order allow,deny > Allow from all > > > > Options None > AllowOverride AuthConfig > Order allow,deny > Allow from all > > > Thanks, > James > > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Marc > Powell > Sent: Thursday, August 25, 2005 12:03 AM > To: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Error: Could not read host and service > status information > > Would you be willing to send ls -al's on ~nagios/etc and ~nagios/var as > well as the user/group that nagios and your web server run under? It > does sound like it might be a permissions issue and another set of eyes > can't hurt. Additionally, do you see and 'could not update' errors in > nagios.log? > > -- > Marc > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > > admin at lists.sourceforge.net] On Behalf Of James R. Marcus > > Sent: Wednesday, August 24, 2005 9:18 PM > > To: Lori Adams; nagios-users at lists.sourceforge.net > > Subject: RE: [Nagios-users] Error: Could not read host and service > status > > information > > > > Hi, > > Yes I have killed all the Nagios processes and restarted. I don't > have a > > status.log, I have nagios.log, it was my understanding that when you > use > > mySQL and Nagios the status.log isn't written. I have run nagios -v > and > > although I have had warnings, which I corrected, nothing has really > > changed. I have double checked permissions. > > > > The other interesting thing to note is that according the log, it > looks > > like it is doing the checks correctly. > > > > I guess it is back to the doc :-) > > > > James > > > > ________________________________ > > > > From: Lori Adams [mailto:ladams at cloudmark.com] > > Sent: Wed 8/24/2005 6:08 PM > > To: James R. Marcus; nagios-users at lists.sourceforge.net > > Subject: RE: [Nagios-users] Error: Could not read host and service > status > > information > > > > > > > > Have you tried killing off all nagios processes? Make sure there are > no > > more, and then restart your nagios. > > > > > > > > Below is the error I get if nagios is not running. I assume you got > this > > entire message too. Follow all instructions when setting up your > nagios. > > More specifically make sure that you have a status.log (see > nagios.cfg). > > > > > > > > Did you try all of these steps? Definitely try > /your/nagios/dir/nagios -v > > to make sure there's no errors. > > > > > > > > Error: Could not read host and service status information! > > > > > > > > The most common cause of this error message (especially for new > users), is > > the fact that Nagios is not actually running. If Nagios is indeed not > > running, this is a normal error message. It simply indicates that the > CGIs > > could not obtain the current status of hosts and services that are > being > > monitored. If you've just installed things, make sure you read the > > documentation on starting Nagios. > > > > > > > > Some other things you should check in order to resolve this error > include: > > > > > > > > 1. Check the Nagios log file for messages relating to > startup > > or status data errors. > > > > 2. Always verify configuration options using the -v > command- > > line option before starting or restarting Nagios! > > > > 3. Make sure you've compiled the main program and the CGIs to use the > same > > status data storage options (i.e. text file or database). If the main > > program is storing status data in a text file and the CGIs are trying > to > > read status data from a database, you'll have problems. > > > > > > > > Make sure you read the documentation on installing, configuring and > > running Nagios thoroughly before continuing. If all else fails, try > > sending a message to one of the mailing lists. More information can be > > found at http://www.nagios.org . > > > > > > > > -Lori > > > > > > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > > admin at lists.sourceforge.net] On Behalf Of James R. Marcus > > Sent: Wednesday, August 24, 2005 12:39 PM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Error: Could not read host and service status > > information > > > > > > > > > > > > I have been looking at old posts and the FAQ to find a solution to > this > > > > issue: > > > > > > > > Error: Could not read host and service status information! > > > > > > > > All I get in my log file is: > > > > [1124913728] Warning: Contact group 'switch-admins' is not used in any > > > > hostgroup/service definitions or host/hostgroup/service escalations! > > > > [1124913728] Warning: Contact group 'win-admins' is not used in any > > > > hostgroup/service definitions or host/hostgroup/service escalations! > > > > [1124913728] Finished daemonizing... (New PID=6184) > > > > > > > > I think I have done a pretty good job of reviewing permissions etc. > > > > There are no errors in the Apache2 logs. > > > > > > > > I'm running Gentoo, Nagios 1.2 and Monarch for configuration. > > > > > > > > Can anyone point me to a better way of troubleshooting this issue? > > > > > > > > > > > > Thanks, > > > > James > > > > > > > > > > > > ------------------------------------------------------- > > > > SF.Net email is Sponsored by the Better Software Conference & EXPO > > > > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > > Practices > > > > Agile & Plan-Driven Development * Managing Projects & Teams * Testing > & QA > > > > Security * Process Improvement & Measurement * > http://www.sqe.com/bsce5sf > > > > _______________________________________________ > > > > Nagios-users mailing list > > > > Nagios-users at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > ::: Please include Nagios version, plugin version (-v) and OS when > > reporting any issue. > > > > ::: Messages without supporting info will risk being sent to /dev/null > > > > > > > > ------------------------------------------------------- > > SF.Net email is Sponsored by the Better Software Conference & EXPO > > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > > Practices > > Agile & Plan-Driven Development * Managing Projects & Teams * Testing > & QA > > Security * Process Improvement & Measurement * > http://www.sqe.com/bsce5sf > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > > reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & > QA > Security * Process Improvement & Measurement * > http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sangprabv at gmail.com Fri Aug 26 06:43:46 2005 From: sangprabv at gmail.com (Willy) Date: Fri, 26 Aug 2005 11:43:46 +0700 Subject: Error: Could not read program retention data from table programretention Message-ID: <004c01c5a9f8$c1d32130$0d00a8c0@sarah> Hi, Im new to nagios and just installed 1.1 for trial. There is no error during nagios -v nagios.cfg, and I start it with nagios -d nagios.cfg and I get this error on /var/log/messages Aug 26 11:32:16 jay nagios: Error: Could not read program retention data from table programretention Aug 26 11:32:16 jay nagios: Error: Could not read host retention data from table hostretention Aug 26 11:32:16 jay nagios: Error: Could not read service retention data from table serviceretention Aug 26 11:32:16 jay nagios: Error: Could not lock status data tables in database '' What miss here? Any help will do and thank you very much. Regards Willy -------------- next part -------------- An HTML attachment was scrubbed... URL: From sghosh at sghosh.org Fri Aug 26 07:02:49 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Fri, 26 Aug 2005 01:02:49 -0400 (EDT) Subject: Error: Could not read program retention data from table programretention In-Reply-To: <004c01c5a9f8$c1d32130$0d00a8c0@sarah> References: <004c01c5a9f8$c1d32130$0d00a8c0@sarah> Message-ID: On Fri, 26 Aug 2005, Willy wrote: > Hi, > Im new to nagios and just installed 1.1 for trial. There is no error during nagios -v nagios.cfg, and I start it with nagios -d nagios.cfg and I get this error on /var/log/messages > > Aug 26 11:32:16 jay nagios: Error: Could not read program retention data from table programretention > Aug 26 11:32:16 jay nagios: Error: Could not read host retention data from table hostretention > Aug 26 11:32:16 jay nagios: Error: Could not read service retention data from table serviceretention > Aug 26 11:32:16 jay nagios: Error: Could not lock status data tables in database '' > > What miss here? Any help will do and thank you very much. > > Regards > > > Willy > > Did you initialiaze your database? add appropriate db login info? -- ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Fri Aug 26 00:26:27 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Thu, 25 Aug 2005 18:26:27 -0400 (EDT) Subject: Need Help In-Reply-To: References: Message-ID: On Fri, 26 Aug 2005, Chandresh Suthar wrote: > Hello Friends, > > It's my first mail to you. I have configured Nagios for my > organisation. Problem is that i want to monitor disk usage, mailq etc > of remote servers. But i don't want to install any plugin on remote > servers. I want to do such things by using "check_by_ssh" . > > Please suggest me how can i do that. You cannot do that. You need to install plugins on the remote host in order to check status of services that have local visibility (mailq, etc). Some things like disk usage may be available via snmp if you have an appropriate agent configured... -- -sg ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sangprabv at gmail.com Fri Aug 26 08:23:01 2005 From: sangprabv at gmail.com (Willy) Date: Fri, 26 Aug 2005 13:23:01 +0700 Subject: Error: Could not read program retention data from table programretention References: <004c01c5a9f8$c1d32130$0d00a8c0@sarah> Message-ID: <005201c5aa06$9fb59390$0d00a8c0@sarah> I think I haven't done that part? Which cfg should I edit? I found resource.cfg and I found xsddb_*, xdddb_*, xcddb_*, and xrddb_* which one should I configure? And is it a mysql connection? How about the tables? What script should I run to create it? Thank you. Regards Willy ----- Original Message ----- From: "Subhendu Ghosh" To: "Willy" Cc: Sent: Friday, August 26, 2005 12:02 PM Subject: Re: [Nagios-users] Error: Could not read program retention data from table programretention > On Fri, 26 Aug 2005, Willy wrote: > > > Hi, > > Im new to nagios and just installed 1.1 for trial. There is no error during nagios -v nagios.cfg, and I start it with nagios -d nagios.cfg and I get this error on /var/log/messages > > > > Aug 26 11:32:16 jay nagios: Error: Could not read program retention data from table programretention > > Aug 26 11:32:16 jay nagios: Error: Could not read host retention data from table hostretention > > Aug 26 11:32:16 jay nagios: Error: Could not read service retention data from table serviceretention > > Aug 26 11:32:16 jay nagios: Error: Could not lock status data tables in database '' > > > > What miss here? Any help will do and thank you very much. > > > > Regards > > > > > > Willy > > > > > > Did you initialiaze your database? > add appropriate db login info? > > -- > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dixiep at library.ucsd.edu Fri Aug 26 01:04:37 2005 From: dixiep at library.ucsd.edu (Dixie Peterson) Date: Thu, 25 Aug 2005 16:04:37 -0700 Subject: Checking Tomcat 5.5 with the check_http plugin Message-ID: <1125011077.1106.41.camel@tinman.ucsd.edu> Hello! We've just upgraded our Tomcat servers from 5.0.28 to 5.5.9. Before we upgraded, we were able to check Tomcat with the check_http plugin with the following command line: check_http -H -S -P 8443 -u We can't anymore. Now when we run this command to check our servers we get: [nagios server]$ ./check_http -H -S -p 8443 -u -v SSL seeding: OK CRITICAL - Cannot retrieve server certificate. We think this has something to do with the tomcat upgrade, but don't know what the problem might be. Can anyone help? BTW, we can access the url via a web browser just fine. Thanks! Dixie ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dang.quocdan at gmail.com Fri Aug 26 10:47:32 2005 From: dang.quocdan at gmail.com (dan dang) Date: Fri, 26 Aug 2005 10:47:32 +0200 Subject: how to compile check_nt.c Message-ID: I have installed the c-compiler however I still can't compile "check_nt.c" though I'm in the right directory and I have the c-compiler. Does anyone know how to compile this plugin under Linux-Debian ? I have downloaded the c-compiler with the command "aptitude" and I have added the necessary libraries to enable the compiler to run properly BUT I can't manage to compile the plugin "check_nt.c" that I have downloaded (nagios-plugins-1.4.1). As mentioned to *Lori Adams and Jon*, when I run the service, the system does NOT recognize it, I'm pretty sure the service is NOT installed and I can't compile it ! I'm open to your advices, thanks in advance !! Dan. From: *dan dang * To: *Lori Adams * Date: *Aug 26, 2005 10:30 AM* Subject: *Re: [Nagios-users] check_nt configuration* Reply | Reply to all | Forward | Print | Add sender to Contacts list | Trash this message | Show original Yes I have NSClient installed on the remote machine. Actually I think the problem comes from the c-compiler that I have NOT installed yet, I'll try to install it and run the command : *gcc -o check_nt check_nt.c * to see whether I can compile the "check_nt" plugin or not. In fact, when I run the command "check_nt", the system does NOT recognize the service. That's why I think the service is NOT installed yet. Thx for your help, don't hesitate to advise me more if u have any other ideas, Dan. - Hide quoted text - On 8/25/05, Lori Adams wrote: > > Did you follow everything that was mentioned in the Bobby Bradshaw > thread? > Do you have nsclient (Nagios Agent) running on your remote machine? > > -Lori From: *dan dang * To: *Jon * Date: *Aug 26, 2005 10:23 AM* Subject: *Re: [Nagios-users] check_nt configuration* Reply | Reply to all | Forward | Print | Add sender to Contacts list | Trash this message | Show original I did but I think I have figured out what was wrong, I think that I have NOT installed the c-compiler, I'll try to install it and run the command : *gcc -o check_nt check_nt.c * to see whether I can compile the "check_nt" plugin or not. In fact, when I run the command "check_nt", the system does NOT recognize the service. That's why I think the service is NOT installed yet. Thx for your help, don't hesitate to advise me more if u have ideas, Dan. - Hide quoted text - On 8/25/05, Jon wrote: > > Hi, > > Since you mentioned that you have installed the plugins in a different > location, did you make change to the $USER1$ variable to point it to the > correct location? To set the variable $USER1$ to /usr/lib/nagios/plugins/ > you need to edit the resource.cfg. > > You can also try executing the command to see if it actually works. Just > go to where the check_nt is located and run it. That would eliminate a few > things. > > HTH, > > Jon > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tom.brown at goodtechnology.com Fri Aug 26 10:57:04 2005 From: tom.brown at goodtechnology.com (Tom Brown) Date: Fri, 26 Aug 2005 09:57:04 +0100 Subject: WG: check_by_ssh - Usage In-Reply-To: <7579CAECCAF7D211B9600008C79139D80BA8C3EB@exdssfdh01.south.de.astrium.corp> References: <7579CAECCAF7D211B9600008C79139D80BA8C3EB@exdssfdh01.south.de.astrium.corp> Message-ID: <430ED960.7020609@goodtechnology.com> >check_by_ssh --help > >be sure, you have installed a public key in .ssh/authorized_keys before > > > thanks but that does not really seem to help me on how to use it - does anyone have any 'how-tos's around ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Fri Aug 26 11:07:12 2005 From: ae at op5.se (Andreas Ericsson) Date: Fri, 26 Aug 2005 11:07:12 +0200 Subject: WG: check_by_ssh - Usage In-Reply-To: <430ED960.7020609@goodtechnology.com> References: <7579CAECCAF7D211B9600008C79139D80BA8C3EB@exdssfdh01.south.de.astrium.corp> <430ED960.7020609@goodtechnology.com> Message-ID: <430EDBC0.6050709@op5.se> Tom Brown wrote: > >> check_by_ssh --help >> >> be sure, you have installed a public key in .ssh/authorized_keys before >> >> >> > thanks but that does not really seem to help me on how to use it - does > anyone have any 'how-tos's around > man ssh man sshd man ssh-keygen Run ssh-keygen with whatever options you want. Keep the secret key on the nagios server and put the public one in the file $HOME/.ssh/authorized_keys on the server you want to check. If things fail, check the logs for error messages. It's most likely down to permissions. They need to be 0600 on the authorized_keys file and 0700 on $HOME/.ssh. If you want more indepth explanations, turn to man-pages, the docs shipped with openssh, google or, in extreme cases, a paid consultant (although I've never yet heard of anyone daft enough not to grasp the concept after reading enough docs). -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From gottfried.hufnagel at onb.ac.at Fri Aug 26 11:06:49 2005 From: gottfried.hufnagel at onb.ac.at (gottfried hufnagel) Date: Fri, 26 Aug 2005 11:06:49 +0200 Subject: WG: check_by_ssh - Usage In-Reply-To: <430ED960.7020609@goodtechnology.com> References: <7579CAECCAF7D211B9600008C79139D80BA8C3EB@exdssfdh01.south.de.astrium.corp> <430ED960.7020609@goodtechnology.com> Message-ID: <200508261106.49864.gottfried.hufnagel@onb.ac.at> imho the mentioned help is a very good documentation. in what specific point do you have problems? or is it the general way the plugin works that you don't understand? lg gottfried hufnagel Am Freitag 26 August 2005 10:57 schrieb Tom Brown: > >check_by_ssh --help > > > >be sure, you have installed a public key in .ssh/authorized_keys before > > thanks but that does not really seem to help me on how to use it - does > anyone have any 'how-tos's around > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > ::: reporting any issue. Messages without supporting info will risk being > ::: sent to /dev/null -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From Lutz.Koop.external at astrium.eads.net Fri Aug 26 11:07:50 2005 From: Lutz.Koop.external at astrium.eads.net (Koop, Lutz (external)) Date: Fri, 26 Aug 2005 11:07:50 +0200 Subject: AW: WG: check_by_ssh - Usage Message-ID: <7579CAECCAF7D211B9600008C79139D80BA8C3F4@exdssfdh01.south.de.astrium.corp> ok, i think you need help with ssh (?) first you have to generate a public key on your nagios-server with your nagios user (man ssh-keygen) then install this key on your destination host in ://.ssh/authorized_keys) then check if you can login over ssh without typing a password after that you can use check_by_ssh i have copied all the plugins to the destination host to /usr/lib/nagios/libexec my checkcommand: # 'check_by_ssh' command definition define command{ command_name check_by_ssh command_line $USER1$/check_by_ssh -H $HOSTADDRESS$ -C $ARG1$ -l root } service: # Service definition define service{ use generic-service ; Name of service template to use host_name t1ws02 service_description DISK / is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups unix-support notification_interval 120 notification_period 24x7 notification_options c,r check_command check_by_ssh!"/usr/local/nagios/libexec/check_disk -w 10% -c 5% -p /" } i hope that helps you Lutz -----Urspr?ngliche Nachricht----- Von: Tom Brown [mailto:tom.brown at goodtechnology.com] Gesendet: Freitag, 26. August 2005 10:57 An: Koop, Lutz (external) Cc: nagios-users at lists.sourceforge.net Betreff: Re: WG: [Nagios-users] check_by_ssh - Usage >check_by_ssh --help > >be sure, you have installed a public key in .ssh/authorized_keys before > > > thanks but that does not really seem to help me on how to use it - does anyone have any 'how-tos's around ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dang.quocdan at gmail.com Fri Aug 26 11:15:07 2005 From: dang.quocdan at gmail.com (dan dang) Date: Fri, 26 Aug 2005 11:15:07 +0200 Subject: Hour problem under Nagios Message-ID: The problems are additioning. Now, I still can't activate the "check_nt" service BUT the hour under Nagios is false !! My station shutted down this night between 11pm and 8 am, could this have an incidence on the time error ? Thanks in advance, Dan -------------- next part -------------- An HTML attachment was scrubbed... URL: From ae at op5.se Fri Aug 26 11:37:49 2005 From: ae at op5.se (Andreas Ericsson) Date: Fri, 26 Aug 2005 11:37:49 +0200 Subject: Hour problem under Nagios In-Reply-To: References: Message-ID: <430EE2ED.4060108@op5.se> dan dang wrote: > The problems are additioning. Now, I still can't activate the "check_nt" > service BUT the hour under Nagios is false !! My station shutted down this > night between 11pm and 8 am, could this have an incidence on the time error > ? www.catb.org/~esr/faqs/smart-questions.html Read it twice. It will make you a Better Person(tm). > Thanks in advance, You're welcome. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Fri Aug 26 11:36:19 2005 From: ae at op5.se (Andreas Ericsson) Date: Fri, 26 Aug 2005 11:36:19 +0200 Subject: how to compile check_nt.c In-Reply-To: References: Message-ID: <430EE293.9000100@op5.se> dan dang wrote: > I have installed the c-compiler however I still can't compile "check_nt.c" > though I'm in the right directory and I have the c-compiler. Does anyone > know how to compile this plugin under Linux-Debian ? I have downloaded the > c-compiler with the command "aptitude" and I have added the necessary > libraries to enable the compiler to run properly BUT I can't manage to > compile the plugin "check_nt.c" that I have downloaded (nagios-plugins-1.4.1). > As mentioned to *Lori Adams and Jon*, when I run the service, the system > does NOT recognize it, I'm pretty sure the service is NOT installed and I > can't compile it ! > I'm open to your advices, thanks in advance !! I'm sure you are. Sorry to say this, but given the lack of detail in your error-report and the way you're trying to compile the plugin makes me think you don't know squat about neither unix nor the process of compiling source-code into software. I seriously suggest you pay your local unix guru a bottle of scotch. He'll sort it out in somewhere between 30 seconds and two minutes, but explaining the process to you will take several days, because you will give wrong and incomplete info about what's going on every step of the way. Sorry, but it's the harsh truth. One way to get you going though, is to learn you the importance of the man command. Type man man at the prompt, and you'll instantly notice the wealth of information at your disposal. > Dan. > From: *dan dang * > To: *Lori Adams * > Date: *Aug 26, 2005 10:30 AM* > Subject: *Re: [Nagios-users] check_nt configuration* > Reply | Reply to all | Forward | Print | Add sender to Contacts list | Trash > this message | Show original > Yes I have NSClient installed on the remote machine. > Actually I think the problem comes from the c-compiler that I have NOT > installed yet, I'll try to install it and run the command : *gcc -o check_nt > check_nt.c * > to see whether I can compile the "check_nt" plugin or not. In fact, when I > run the command "check_nt", the system does NOT recognize the service. > That's why I think the service is NOT installed yet. > Thx for your help, don't hesitate to advise me more if u have any other > ideas, > Dan. > - Hide quoted text - > > > On 8/25/05, Lori Adams wrote: > >>Did you follow everything that was mentioned in the Bobby Bradshaw >>thread? >>Do you have nsclient (Nagios Agent) running on your remote machine? >> >>-Lori > > > > From: *dan dang * > To: *Jon * > Date: *Aug 26, 2005 10:23 AM* > Subject: *Re: [Nagios-users] check_nt configuration* > Reply | Reply to all | Forward | Print | Add sender to Contacts list | Trash > this message | Show original > I did but I think I have figured out what was wrong, I think that I have > NOT installed the c-compiler, I'll try to install it and run the command : *gcc > -o check_nt check_nt.c * > to see whether I can compile the "check_nt" plugin or not. In fact, when I > run the command "check_nt", the system does NOT recognize the service. > That's why I think the service is NOT installed yet. > Thx for your help, don't hesitate to advise me more if u have ideas, > Dan. > > - Hide quoted text - > On 8/25/05, Jon wrote: > >> Hi, >> >> Since you mentioned that you have installed the plugins in a different >>location, did you make change to the $USER1$ variable to point it to the >>correct location? To set the variable $USER1$ to /usr/lib/nagios/plugins/ >>you need to edit the resource.cfg. >> >> You can also try executing the command to see if it actually works. Just >>go to where the check_nt is located and run it. That would eliminate a few >>things. >> >> HTH, >> >> Jon >> > > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From az at whoever.org Fri Aug 26 12:29:05 2005 From: az at whoever.org (Az) Date: Fri, 26 Aug 2005 20:29:05 +1000 Subject: Contacts/Contact Groups/Paging options In-Reply-To: References: Message-ID: <430EEEF1.9070506@whoever.org> We have a home grown pager system that has, amongst other things, the concept of aliases. Basically, we define an on-call alias that points to a given mobile number. The users of the system can change this as their on-call person changes. In Nagios, we have a contact for those on-call "users". Nagios is setup once... all changes are done in the pager system by those who care (not those looking after Nagios). Cheers. ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From radhakrishnanv at kvh.co.jp Fri Aug 26 13:58:24 2005 From: radhakrishnanv at kvh.co.jp (Radhakrishnan, Vipin) Date: Fri, 26 Aug 2005 20:58:24 +0900 Subject: Query : Support for Red Hat Linux ES2.1 Message-ID: <38A719ACCFC4E34EA40C890EC15C0C18EBFA51@CLSMS302.tel.kvh.co.jp> Hi , I would like to know whether nagios can support monitoring of Red Hat ES2.1 version. IF any additional plug ins are needed please advise on that as well. Information on the exact Nagios version/build needed along with plug ins would help a lot. Help much appreciated. Warm regards, Vipin Radhakrishnan **************************************************************** "PLEASE NOTE: This email, and any attachments hereto, are intended only for use by the specified addressee(s) and may contain legally privileged and/or confidential and/or proprietary information of KVH Co., Ltd. and/or its affiliates (including personal information). If you are not the intended recipient of this email, please immediately notify the sender by email, and please permanently delete the original, any print out and any copies of the foregoing. " **************************************************************** ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cdoblado at pulsartec.com Fri Aug 26 14:19:02 2005 From: cdoblado at pulsartec.com (Cristina Doblado) Date: Fri, 26 Aug 2005 14:19:02 +0200 Subject: Socket timeout causes immediate critical notification In-Reply-To: <60F6FB7B8A1B13419ADB9339EEBC3CA280FF39@fd-mail2.osip.com> References: <60F6FB7B8A1B13419ADB9339EEBC3CA280FF39@fd-mail2.osip.com> Message-ID: <430F08B6.1090903@pulsartec.com> Check that you've got "is_volatile" set to 0 because if it's set to 1, it will override all interval settings. More details in: http://nagios.sourceforge.net/docs/1_0/xodtemplate.html#service Cristina Castelhano, Dan wrote: >Hi, > >We periodically get socket timeout errors with nrpe service checks. Problem >is, a notification is sent on the very first socket timeout error (which is >causing a critical status)...its not adhering to the max_check_attempts >number defined in the host and service templates (its set to 3). We'll get a >recovery email 30-60 seconds after the critical email. > >i did a grep search on all the config files just to make sure i didn't miss >any max_check_attempts definitions hidden in the config files and confirmed >they're all set to a minimum of 3 (one template is set to 10) > >i'm at a loss, and it doesn't help that these emails are being sent to my >cell after hours. > >I'm running nagios 1.2 on redhat 9.0 >i'm using nsclient++ 1.22 on windows servers, and nrpe 2.0 on linux servers. > > >All the socket timeouts are coming from nrpe service checks on the linux >clients. > >any ideas what could be wrong? > >Thanks, >dan > > >------------------------------------------------------- >SF.Net email is Sponsored by the Better Software Conference & EXPO >September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices >Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA >Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >::: Messages without supporting info will risk being sent to /dev/null > > > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mikko.kaipila at nic.fi Fri Aug 26 15:16:11 2005 From: mikko.kaipila at nic.fi (Mikko Kaipila) Date: Fri, 26 Aug 2005 16:16:11 +0300 Subject: Howto make Nagios send notifications if just output of plugin changes Message-ID: <1125062171.23732.0.camel@rento.seclan.com> Hi! In nagios, there is option "is volative 1", which send notifications always if some service is in non-OK state. This option can be good in passive checks, but I need some further feature for active check. My need is: I want nagios send notification always, when output of plugins changes (and state is non-OK). If next check of output is same as before, no need notification (excluding change of state). stalking_options is nearly good, because that logs the changes of output, but that is not sending notification. is that feature possible todo? ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Fri Aug 26 15:40:40 2005 From: marc at ena.com (Marc Powell) Date: Fri, 26 Aug 2005 08:40:40 -0500 Subject: Error: Could not read program retention data from table programretention Message-ID: This is well documented. -- Marc > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Willy > Sent: Friday, August 26, 2005 1:23 AM > To: Subhendu Ghosh > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Error: Could not read program retention data > from table programretention > > I think I haven't done that part? Which cfg should I edit? I found > resource.cfg and I found xsddb_*, xdddb_*, xcddb_*, and xrddb_* which one > should I configure? And is it a mysql connection? How about the tables? > What > script should I run to create it? Thank you. > > Regards > > > Willy > ----- Original Message ----- > From: "Subhendu Ghosh" > To: "Willy" > Cc: > Sent: Friday, August 26, 2005 12:02 PM > Subject: Re: [Nagios-users] Error: Could not read program retention data > from table programretention > > > > On Fri, 26 Aug 2005, Willy wrote: > > > > > Hi, > > > Im new to nagios and just installed 1.1 for trial. There is no error > during nagios -v nagios.cfg, and I start it with nagios -d nagios.cfg and > I > get this error on /var/log/messages > > > > > > Aug 26 11:32:16 jay nagios: Error: Could not read program retention > data > from table programretention > > > Aug 26 11:32:16 jay nagios: Error: Could not read host retention data > from table hostretention > > > Aug 26 11:32:16 jay nagios: Error: Could not read service retention > data > from table serviceretention > > > Aug 26 11:32:16 jay nagios: Error: Could not lock status data tables > in > database '' > > > > > > What miss here? Any help will do and thank you very much. > > > > > > Regards > > > > > > > > > Willy > > > > > > > > > > Did you initialiaze your database? > > add appropriate db login info? > > > > -- > > > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Fri Aug 26 15:44:41 2005 From: marc at ena.com (Marc Powell) Date: Fri, 26 Aug 2005 08:44:41 -0500 Subject: more - remote nagios server report to main Message-ID: Please always reply on list for the benefit of the community. > -----Original Message----- > From: Peder Christian Bach [mailto:peder at ipnett.no] > Sent: Friday, August 26, 2005 4:21 AM > To: Marc Powell > Subject: SV: [Nagios-users] more - remote nagios server report to main > > > > -----Opprinnelig melding----- > Fra: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] P? vegne av Marc Powell > Sendt: 25. august 2005 21:19 > Til: nagios-users at lists.sourceforge.net > Emne: RE: [Nagios-users] more - remote nagios server report to main > > > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > > admin at lists.sourceforge.net] On Behalf Of Peder Christian Bach > > Sent: Thursday, August 25, 2005 5:04 AM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] more - remote nagios server report to main > > > > Hi.. I have installed nsca and done the config in distributed readme.. > > > > But I get this error message.. > > > > Aug 25 11:51:42 mikkelrev nagios: SERVICE ALERT: FNNCES;FNN IPSEC > > ruter;WARNING;SOFT;1;(No output!) > > Aug 25 11:52:01 mikkelrev crond(pam_unix)[30233]: session opened for > > user jffnms by (uid=0) > > Aug 25 11:52:02 mikkelrev crond(pam_unix)[30233]: session closed for > > user jffnms > > Aug 25 11:52:42 mikkelrev nagios: SERVICE ALERT: FNNCES;FNN IPSEC > > ruter;WARNING;SOFT;2;(No output!) > > > > > > My host config file looks like this. > > > > define service { > > use generic-service > > host_name FNNCES > > service_description FNN IPSEC ruter > > is_volatile 0 > > contact_groups FNN > > check_command check_ping!100.0,20%!900.0,60% > > check_command submit_check_result > > } > > > If I have understood it correct I don't need to do anything on the define > service for the client ? I just have to enable OCSP in the nagios.cfg and > define submit_check_result in the checkcommands.cfg. You also have to specify 'obsess_over_service' in the service definition. You may also want to disable notifications on the distributed box but that's a decision for you to make. I'd suggest reviewing the documentation on Distributed Monitoring. -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Fri Aug 26 15:47:56 2005 From: marc at ena.com (Marc Powell) Date: Fri, 26 Aug 2005 08:47:56 -0500 Subject: Query : Support for Red Hat Linux ES2.1 Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Radhakrishnan, Vipin > Sent: Friday, August 26, 2005 6:58 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Query : Support for Red Hat Linux ES2.1 > > > > Hi , > > I would like to know whether nagios can support monitoring of Red Hat > ES2.1 > version. IF any additional plug ins are needed please advise on that as > well. > Information on the exact Nagios version/build needed along with plug ins > would help a lot. Help much appreciated. Note: I haven't used RHES 2.1 but... I can't imagine that there would be anything special about it. Standard nagios, standard plugins should work as long as you have met all the REQUIREMENTS. You don't really say how you'll be monitoring it or what you'll be monitoring so we can't comment on whether you'll need additional plugins or addons. -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Fri Aug 26 15:52:34 2005 From: marc at ena.com (Marc Powell) Date: Fri, 26 Aug 2005 08:52:34 -0500 Subject: Howto make Nagios send notifications if just output of plugin changes Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Mikko Kaipila > Sent: Friday, August 26, 2005 8:16 AM > To: Nagios > Subject: [Nagios-users] Howto make Nagios send notifications if just > output of plugin changes > > Hi! > > In nagios, there is option "is volative 1", which send notifications > always if some service is in non-OK state. This option can be good in > passive checks, but I need some further feature for active check. > > My need is: I want nagios send notification always, when output of > plugins changes (and state is non-OK). If next check of output is same > as before, no need notification (excluding change of state). You'll have to make your own wrapper or plugin. Nagios has no capability to parse the plugin output text and it's only there for human readability. Nagios relies on the plugin exit code for all of its status determination. > is that feature possible todo? Anything's possible ;) really though, there hasn't been much call for it in the past. -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mikko.kaipila at nic.fi Fri Aug 26 16:10:03 2005 From: mikko.kaipila at nic.fi (Mikko Kaipila) Date: Fri, 26 Aug 2005 17:10:03 +0300 Subject: Howto make Nagios send notifications if just output of plugin changes In-Reply-To: References: Message-ID: <1125065403.23732.6.camel@rento.seclan.com> > > You'll have to make your own wrapper or plugin. Nagios has no capability > to parse the plugin output text and it's only there for human > readability. Nagios relies on the plugin exit code for all of its status > determination. > > > is that feature possible todo? > > Anything's possible ;) really though, there hasn't been much call for it > in the past. > > -- > Marc > Ok, but Nagios has capability to parse the plugin output text because of stalking_options I think... ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Fri Aug 26 16:28:14 2005 From: ae at op5.se (Andreas Ericsson) Date: Fri, 26 Aug 2005 16:28:14 +0200 Subject: Howto make Nagios send notifications if just output of plugin changes In-Reply-To: <1125065403.23732.6.camel@rento.seclan.com> References: <1125065403.23732.6.camel@rento.seclan.com> Message-ID: <430F26FE.9040109@op5.se> Mikko Kaipila wrote: >>You'll have to make your own wrapper or plugin. Nagios has no capability >>to parse the plugin output text and it's only there for human >>readability. Nagios relies on the plugin exit code for all of its status >>determination. >> >> >>>is that feature possible todo? >> >>Anything's possible ;) really though, there hasn't been much call for it >>in the past. >> >>-- >>Marc >> > > > Ok, but Nagios has capability to parse the plugin output text because of > stalking_options I think... > Nopes. The stalking_options just makes it log blindly, which causes the status to always update. In 2.0 this has been changed so that the GUI always shows the latest output. You still can't get notifications for it just because the text changes though. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jhmartin at toger.us Fri Aug 26 16:40:14 2005 From: jhmartin at toger.us (Jason Martin) Date: Fri, 26 Aug 2005 07:40:14 -0700 Subject: Howto make Nagios send notifications if just output of plugin changes In-Reply-To: <1125065403.23732.6.camel@rento.seclan.com> References: <1125065403.23732.6.camel@rento.seclan.com> Message-ID: <20050826144013.GS22187@zippy.toger.us> On Fri, Aug 26, 2005 at 05:10:03PM +0300, Mikko Kaipila wrote: > Ok, but Nagios has capability to parse the plugin output text because of > stalking_options I think... stalking just tells it to *log* every change in output, but it doesn't trigger any actions. Nagios doesn't parse the output text ever, just record it. -Jason Martin -- Sorry Rabbit, Phasers are for kids... This message is PGP/MIME signed. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 211 bytes Desc: not available URL: From mikko.kaipila at nic.fi Fri Aug 26 17:15:03 2005 From: mikko.kaipila at nic.fi (Mikko Kaipila) Date: Fri, 26 Aug 2005 18:15:03 +0300 Subject: Howto make Nagios send notifications if just output of plugin changes In-Reply-To: <20050826144013.GS22187@zippy.toger.us> References: <1125065403.23732.6.camel@rento.seclan.com> <20050826144013.GS22187@zippy.toger.us> Message-ID: <1125069303.23732.16.camel@rento.seclan.com> On Fri, 2005-08-26 at 07:40 -0700, Jason Martin wrote: > On Fri, Aug 26, 2005 at 05:10:03PM +0300, Mikko Kaipila wrote: > > Ok, but Nagios has capability to parse the plugin output text because of > > stalking_options I think... > stalking just tells it to *log* every change in output, but it > doesn't trigger any actions. Nagios doesn't parse the output > text ever, just record it. > > -Jason Martin Ok, I made the plugin which is now smarter :) That changes exit value if text output changes... btw, how Nagios create availibilty report (%)? Is that percent value (by desired timeperiod) of different states duration of some service - or what? ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Fri Aug 26 17:21:27 2005 From: marc at ena.com (Marc Powell) Date: Fri, 26 Aug 2005 10:21:27 -0500 Subject: Howto make Nagios send notifications if justoutput of plugin changes Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Mikko Kaipila > Sent: Friday, August 26, 2005 10:15 AM > To: Jason Martin > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Howto make Nagios send notifications if > justoutput of plugin changes > > btw, how Nagios create availibilty report (%)? Is that percent value (by > desired timeperiod) of different states duration of some service - or > what? State durations for whatever host/service you are looking at. -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Fri Aug 26 17:52:48 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Fri, 26 Aug 2005 11:52:48 -0400 (EDT) Subject: Error: Could not read program retention data from table programretention In-Reply-To: <005201c5aa06$9fb59390$0d00a8c0@sarah> References: <004c01c5a9f8$c1d32130$0d00a8c0@sarah> <005201c5aa06$9fb59390$0d00a8c0@sarah> Message-ID: Please read the database support article under Advanced Topics in the documentation. On Fri, 26 Aug 2005, Willy wrote: > I think I haven't done that part? Which cfg should I edit? I found > resource.cfg and I found xsddb_*, xdddb_*, xcddb_*, and xrddb_* which one > should I configure? And is it a mysql connection? How about the tables? What > script should I run to create it? Thank you. > > Regards > > > Willy > ----- Original Message ----- > From: "Subhendu Ghosh" > To: "Willy" > Cc: > Sent: Friday, August 26, 2005 12:02 PM > Subject: Re: [Nagios-users] Error: Could not read program retention data > from table programretention > > >> On Fri, 26 Aug 2005, Willy wrote: >> >>> Hi, >>> Im new to nagios and just installed 1.1 for trial. There is no error > during nagios -v nagios.cfg, and I start it with nagios -d nagios.cfg and I > get this error on /var/log/messages >>> >>> Aug 26 11:32:16 jay nagios: Error: Could not read program retention data > from table programretention >>> Aug 26 11:32:16 jay nagios: Error: Could not read host retention data > from table hostretention >>> Aug 26 11:32:16 jay nagios: Error: Could not read service retention data > from table serviceretention >>> Aug 26 11:32:16 jay nagios: Error: Could not lock status data tables in > database '' >>> >>> What miss here? Any help will do and thank you very much. >>> >>> Regards >>> >>> >>> Willy >>> >>> >> >> Did you initialiaze your database? >> add appropriate db login info? >> >> -- >> > -- ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jonsml at gmail.com Fri Aug 26 18:10:47 2005 From: jonsml at gmail.com (Jon) Date: Fri, 26 Aug 2005 12:10:47 -0400 Subject: how to compile check_nt.c In-Reply-To: <430EE293.9000100@op5.se> References: <430EE293.9000100@op5.se> Message-ID: <430f3f0b.5225c52f.7440.ffffcd74@mx.gmail.com> Hi, Installing the Nagios plugin is just simply a ./configure, make, make install from source. HTH, Jon -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Andreas Ericsson Sent: Friday, August 26, 2005 5:36 AM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] how to compile check_nt.c dan dang wrote: > I have installed the c-compiler however I still can't compile "check_nt.c" > though I'm in the right directory and I have the c-compiler. Does anyone > know how to compile this plugin under Linux-Debian ? I have downloaded the > c-compiler with the command "aptitude" and I have added the necessary > libraries to enable the compiler to run properly BUT I can't manage to > compile the plugin "check_nt.c" that I have downloaded (nagios-plugins-1.4.1). > As mentioned to *Lori Adams and Jon*, when I run the service, the system > does NOT recognize it, I'm pretty sure the service is NOT installed and I > can't compile it ! > I'm open to your advices, thanks in advance !! I'm sure you are. Sorry to say this, but given the lack of detail in your error-report and the way you're trying to compile the plugin makes me think you don't know squat about neither unix nor the process of compiling source-code into software. I seriously suggest you pay your local unix guru a bottle of scotch. He'll sort it out in somewhere between 30 seconds and two minutes, but explaining the process to you will take several days, because you will give wrong and incomplete info about what's going on every step of the way. Sorry, but it's the harsh truth. One way to get you going though, is to learn you the importance of the man command. Type man man at the prompt, and you'll instantly notice the wealth of information at your disposal. > Dan. > From: *dan dang * > To: *Lori Adams * > Date: *Aug 26, 2005 10:30 AM* > Subject: *Re: [Nagios-users] check_nt configuration* > Reply | Reply to all | Forward | Print | Add sender to Contacts list | Trash > this message | Show original > Yes I have NSClient installed on the remote machine. > Actually I think the problem comes from the c-compiler that I have NOT > installed yet, I'll try to install it and run the command : *gcc -o check_nt > check_nt.c * > to see whether I can compile the "check_nt" plugin or not. In fact, when I > run the command "check_nt", the system does NOT recognize the service. > That's why I think the service is NOT installed yet. > Thx for your help, don't hesitate to advise me more if u have any other > ideas, > Dan. > - Hide quoted text - > > > On 8/25/05, Lori Adams wrote: > >>Did you follow everything that was mentioned in the Bobby Bradshaw >>thread? >>Do you have nsclient (Nagios Agent) running on your remote machine? >> >>-Lori > > > > From: *dan dang * > To: *Jon * > Date: *Aug 26, 2005 10:23 AM* > Subject: *Re: [Nagios-users] check_nt configuration* > Reply | Reply to all | Forward | Print | Add sender to Contacts list | Trash > this message | Show original > I did but I think I have figured out what was wrong, I think that I have > NOT installed the c-compiler, I'll try to install it and run the command : *gcc > -o check_nt check_nt.c * > to see whether I can compile the "check_nt" plugin or not. In fact, when I > run the command "check_nt", the system does NOT recognize the service. > That's why I think the service is NOT installed yet. > Thx for your help, don't hesitate to advise me more if u have ideas, > Dan. > > - Hide quoted text - > On 8/25/05, Jon wrote: > >> Hi, >> >> Since you mentioned that you have installed the plugins in a different >>location, did you make change to the $USER1$ variable to point it to the >>correct location? To set the variable $USER1$ to /usr/lib/nagios/plugins/ >>you need to edit the resource.cfg. >> >> You can also try executing the command to see if it actually works. Just >>go to where the check_nt is located and run it. That would eliminate a few >>things. >> >> HTH, >> >> Jon >> > > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ravikmrs at yahoo.com Fri Aug 26 18:55:36 2005 From: ravikmrs at yahoo.com (Ravi Kumar) Date: Fri, 26 Aug 2005 09:55:36 -0700 (PDT) Subject: Nagios-users digest, Vol 1 #2774 - 11 msgs In-Reply-To: <20050826031516.4425A888FC@sc8-sf-spam1.sourceforge.net> References: <20050826031516.4425A888FC@sc8-sf-spam1.sourceforge.net> Message-ID: <20050826165536.3451.qmail@web53907.mail.yahoo.com> I'm getting error message "UNKNOWN;HARD;5;No perf-definition for service" after configuring new linux box.Please advice nagios-users-request at lists.sourceforge.net wrote:Send Nagios-users mailing list submissions to nagios-users at lists.sourceforge.net To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/nagios-users or, via email, send a message with subject or body 'help' to nagios-users-request at lists.sourceforge.net You can reach the person managing the list at nagios-users-admin at lists.sourceforge.net When replying, please edit your Subject line so it is more specific than "Re: Contents of Nagios-users digest..." Today's Topics: 1. RE: check_nt configuration (Lori Adams) 2. RE: check_nt configuration (Jon) 3. Need Help (Chandresh Suthar) 4. Help Desk Software (nuffers at tsainc.com) 5. RE: more - remote nagios server report to main (Marc Powell) 6. Re: Help Desk Software (Bobby Bradshaw) 7. RE: Help Desk Software (Millard, Matt) 8. RE: Need Help (Marc Powell) 9. RE: RE: Host check behavior (Marc Powell) 10. Re: Need Help (Subhendu Ghosh) 11. Checking Tomcat 5.5 with the check_http plugin (Dixie Peterson) --__--__-- Message: 1 Subject: RE: [Nagios-users] check_nt configuration Date: Thu, 25 Aug 2005 11:30:26 -0700 From: "Lori Adams" To: "dan dang" , Did you follow everything that was mentioned in the Bobby Bradshaw thread? =20 Do you have nsclient (Nagios Agent) running on your remote machine? =20 -Lori > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of dan dang > Sent: Thursday, August 25, 2005 12:54 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] check_nt configuration >=20 > hi all, >=20 > I have the same problem as Bobby Bradshaw (from whom I quoted the message > below) : > My Nagios setup is: > Nagios v1.3 (October 24, 2004) > Nagios plugins v1.4.1 >=20 > I have Nagios running correctly, sending notifications, checking ping and > HTTP on several hosts. BUT I have exactly the same problem as Bobby > Bradshaw which is the fact that I can't get Nagios to run "./check_nt -H > 192.168.1.111 -v UPTIME" command without getting a "CRITICAL - Socket > timeout after 10 seconds" error or any of the check_nt commands without an > error. I have the Nsclient 2.01 on my Windows NT host. >=20 > The error I have is the fact that the system doesn't find the check_nt > service BUT I have installed it in the /usr/local/nagios/libexec/ file, in > fact in my case I changed the path to /usr/lib/nagios/plugins/ since it's > where the services are located in my configuration. >=20 > I have exactly the same question as Bobby Brawn : Is there better > documentation than what is provided with Nsclient? Can I get some pointers > on ALL the cfg files that I have to edit to get the check_nt command to > work. > Bobby Bradshaw, I saw that u solved your problem, can u tell how did u do > ? If anyone has an idea, please advise. Thanks in advance !! >=20 > Quoc-Dan DANG >=20 >=20 > NB: I have edited the "checkcommands.cfg" file by adding the following > lines : >=20 >=20 > # 'check_nt_disk' command definition > define command{ > command_name check_nt_disk > command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v USEDDISKSPACE > -l $ARG1$ -w $ARG2$ -c $ARG3$ > } >=20 >=20 > # 'check_nt_upload' command definition > define command { > command_name check_nt_cpuload > command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v CPULOAD -l > $ARG1$ > } >=20 >=20 > # 'check_nt_uptime' command definition > define command { > command_name check_nt_uptime > command_line $USER1$/check_nt #-H $HOSTADDRESS$ -p 1248 -v UPTIME > } I see that you have the above line with a comment. This will make it hard to run correctly. Also have you tried -p 1250 as suggested in the Bobby Bradshaw thread. =20 > # 'check_nt_clientversion' command definition > define command { > command_name check_nt_clientversion > command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v > CLIENTVERSION > } >=20 >=20 > # 'check_nt_process' command definition > define command { > command_name check_nt_process > command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v PROCSTATE -l > $ARG1$ > } >=20 >=20 > # 'check_nt_service' command definition > define command{ > command_name check_nt_service > command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v SERVICESTATE -d > SHOWALL -l $ARG1$ > } >=20 >=20 > # 'check_nt_memuse' command definition > define command{ > command_name check_nt_memuse > command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v MEMUSE -w > $ARG1$ -c $ARG2$ > } >=20 >=20 > # 'check_nt_fileage' command definition > define command{ > command_name check_nt_fileage > command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v FILEAGE -l > $ARG1$ -w $ARG2$ -c $ARG3$ > } >=20 >=20 > # 'check_nt_pagingfile' command definition > define command{ > command_name check_nt_pagingfile > command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v COUNTER -l > "\\Paging File(_Total)\\%% Usage","Paging File usage is > %.2f %%" -w $ARG1$ -c $ARG2$ > } >=20 >=20 >=20 >=20 > QUOTE from Bobby Bradshaw who had the same problem as I currently have : >=20 > "From: nagios-users-admin at li... on > > behalf > > > of > > > >>Bobby Bradshaw > > > >>Sent: Fri 8/19/2005 2:43 PM > > > >>To: nagios-users at li... > > > >>Subject: [Nagios-users] check_nt configurations/setup > > > >> > > > >> > > > >>Hi all, > > > >> > > > >>My Nagios setup is: > > > >>Suse 9.3 Professional > > > >>Nagios v1.2 > > > >>Nagios plugins v1.4 > > > >>Nagios nrpe v2.0 > > > >> > > > >>I have Nagios running correctly, sending notifications, checking > ping > > and > > > >>HTTP on several hosts. Although, I am having so much trouble trying > to > > > get > > > >>Nagios to run "./check_nt -H 192.168.1.111 -v UPTIME" command > without > > > >>getting a "CRITICAL - Socket timeout after 10 seconds" error or any > of > > the > > > >>check_nt commands without an error. I have the Nsclient 2.01 on my > > > Windows > > > >>XP host. Is there better documentation than what is provided with > > > Nsclient? > > > >> Can I get some pointers on ALL the cfg files that I have to edit to > get > > > the > > > >>check_nt command to work. > > > >> > > > >>Thanks in advance! > > > >> > > > >>-- > > > >>Bobby Bradshaw, Jr. > > > >>bobby.bradshaw at gm... > > > > > > > > > > > > > > > > > > -- > > > Andreas Ericsson andreas.ericsson at op... > > > OP5 AB http://www.op5.se > > > > Lead Developer > > > > > > > > > ------------------------------------------------------- > > > SF.Net email is Sponsored by the Better Software Conference & EXPO > > > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > > Practices > > > Agile & Plan-Driven Development * Managing Projects & Teams * Testing > & QA > > > Security * Process Improvement & Measurement * > http://www.sqe.com/bsce5sf > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at li... > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > ::: Please include Nagios version, plugin version (-v) and OS when > > reporting > > > any issue. > > > ::: Messages without supporting info will risk being sent to /dev/null > > > > > > > > > > > > -- > > Bobby Bradshaw, Jr. > > bobby.bradshaw at gm ... > > > > >=20 >=20 > -- > Bobby Bradshaw, Jr. > bobby.bradshaw at gm... >=20 >=20 >=20 > From: Bobby Bradshaw > Re: check_nt configurations/setup > > 2005-08-22 08:18 > Found it. Thank you guys very much. >=20 > Much appreciated >=20 --__--__-- Message: 2 From: "Jon" To: "Nagios-Users" Subject: RE: [Nagios-users] check_nt configuration Date: Thu, 25 Aug 2005 14:45:40 -0400 This is a multi-part message in MIME format. ------=_NextPart_000_0022_01C5A983.AF035BD0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi, Since you mentioned that you have installed the plugins in a different location, did you make change to the $USER1$ variable to point it to the correct location? To set the variable $USER1$ to /usr/lib/nagios/plugins/ you need to edit the resource.cfg. You can also try executing the command to see if it actually works. Just go to where the check_nt is located and run it. That would eliminate a few things. HTH, Jon _____ From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of dan dang Sent: Thursday, August 25, 2005 3:54 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] check_nt configuration hi all, I have the same problem as Bobby Bradshaw (from whom I quoted the message below) : My Nagios setup is: Nagios v1.3 (October 24, 2004) Nagios plugins v1.4.1 I have Nagios running correctly, sending notifications, checking ping and HTTP on several hosts. BUT I have exactly the same problem as Bobby Bradshaw which is the fact that I can't get Nagios to run "./check_nt -H 192.168.1.111 -v UPTIME" command without getting a "CRITICAL - Socket timeout after 10 seconds" error or any of the check_nt commands without an error. I have the Nsclient 2.01 on my Windows NT host. The error I have is the fact that the system doesn't find the check_nt service BUT I have installed it in the /usr/local/nagios/libexec/ file, in fact in my case I changed the path to /usr/lib/nagios/plugins/ since it's where the services are located in my configuration. I have exactly the same question as Bobby Brawn : Is there better documentation than what is provided with Nsclient? Can I get some pointers on ALL the cfg files that I have to edit to get the check_nt command to work. Bobby Bradshaw, I saw that u solved your problem, can u tell how did u do ? If anyone has an idea, please advise. Thanks in advance !! Quoc-Dan DANG NB: I have edited the "checkcommands.cfg" file by adding the following lines : # 'check_nt_disk' command definition define command{ command_name check_nt_disk command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v USEDDISKSPACE -l $ARG1$ -w $ARG2$ -c $ARG3$ } # 'check_nt_upload' command definition define command { command_name check_nt_cpuload command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v CPULOAD -l $ARG1$ } # 'check_nt_uptime' command definition define command { command_name check_nt_uptime command_line $USER1$/check_nt #-H $HOSTADDRESS$ -p 1248 -v UPTIME } # 'check_nt_clientversion' command definition define command { command_name check_nt_clientversion command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v CLIENTVERSION } # 'check_nt_process' command definition define command { command_name check_nt_process command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v PROCSTATE -l $ARG1$ } # 'check_nt_service' command definition define command{ command_name check_nt_service command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v SERVICESTATE -d SHOWALL -l $ARG1$ } # 'check_nt_memuse' command definition define command{ command_name check_nt_memuse command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v MEMUSE -w $ARG1$ -c $ARG2$ } # 'check_nt_fileage' command definition define command{ command_name check_nt_fileage command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v FILEAGE -l $ARG1$ -w $ARG2$ -c $ARG3$ } # 'check_nt_pagingfile' command definition define command{ command_name check_nt_pagingfile command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v COUNTER -l "\\Paging File(_Total)\\%% Usage","Paging File usage is %.2f %%" -w $ARG1$ -c $ARG2$ } QUOTE from Bobby Bradshaw who had the same problem as I currently have : "From: nagios-users-admin at li... on > behalf > > of > > >>Bobby Bradshaw > > >>Sent: Fri 8/19/2005 2:43 PM > > >>To: nagios-users at li... > > >>Subject: [Nagios-users] check_nt configurations/setup > > >> > > >> > > >>Hi all, > > >> > > >>My Nagios setup is: > > >>Suse 9.3 Professional > > >>Nagios v1.2 > > >>Nagios plugins v1.4 > > >>Nagios nrpe v2.0 > > >> > > >>I have Nagios running correctly, sending notifications, checking ping > and > > >>HTTP on several hosts. Although, I am having so much trouble trying to > > get > > >>Nagios to run "./check_nt -H 192.168.1.111 -v UPTIME" command without > > >>getting a "CRITICAL - Socket timeout after 10 seconds" error or any of > the > > >>check_nt commands without an error. I have the Nsclient 2.01 on my > > Windows > > >>XP host. Is there better documentation than what is provided with > > Nsclient? > > >> Can I get some pointers on ALL the cfg files that I have to edit to get > > the > > >>check_nt command to work. > > >> > > >>Thanks in advance! > > >> > > >>-- > > >>Bobby Bradshaw, Jr. > > >>bobby.bradshaw at gm... > > > > > > > > > > > > > -- > > Andreas Ericsson andreas.ericsson at op... > > OP5 AB http://www.op5.se > > Lead Developer > > > > > > ------------------------------------------------------- > > SF.Net email is Sponsored by the Better Software Conference & EXPO > > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > Practices > > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at li... > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > reporting > > any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > > > > > -- > Bobby Bradshaw, Jr. > bobby.bradshaw at gm ... > > -- Bobby Bradshaw, Jr. bobby.bradshaw at gm... From: Bobby Bradshaw Re: check_nt configurations/setup 2005-08-22 08:18 Found it. Thank you guys very much. Much appreciated ------=_NextPart_000_0022_01C5A983.AF035BD0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable xmlns:o=3D"urn:schemas-microsoft-com:office:office" = xmlns:w=3D"urn:schemas-microsoft-com:office:word" = xmlns:st1=3D"urn:schemas-microsoft-com:office:smarttags" = xmlns=3D"http://www.w3.org/TR/REC-html40"> charset=3Dus-ascii"> v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags" = name=3D"State"/> namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags" name=3D"City"/> namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags" name=3D"place"/> st1\:*{behavior:url(#default#ieooui) } /* Font Definitions */ @font-face {font-family:Wingdings; panose-1:5 0 0 0 0 0 0 0 0 0;} @font-face {font-family:Tahoma; panose-1:2 11 6 4 3 5 4 4 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {color:blue; text-decoration:underline;} p {mso-margin-top-alt:auto; margin-right:0in; mso-margin-bottom-alt:auto; margin-left:0in; font-size:12.0pt; font-family:"Times New Roman";} pre {margin:0in; margin-bottom:.0001pt; font-size:10.0pt; font-family:"Courier New";} span.EmailStyle20 {mso-style-type:personal-reply; font-family:Arial; color:navy;} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in;} div.Section1 {page:Section1;} /* List Definitions */ @list l0 {mso-list-id:701705761; mso-list-template-ids:-1480584024;} @list l0:level1 {mso-level-number-format:bullet; mso-level-text:\F0B7; mso-level-tab-stop:.5in; mso-level-number-position:left; text-indent:-.25in; mso-ansi-font-size:10.0pt; font-family:Symbol;} ol {margin-bottom:0in;} ul {margin-bottom:0in;} --> style=3D'font-size: 10.0pt;font-family:Arial;color:navy'>Hi, style=3D'font-size: 10.0pt;font-family:Arial;color:navy'> style=3D'font-size: 10.0pt;font-family:Arial;color:navy'>Since you mentioned that you have installed the plugins in a different location, did you make change to = the $USER1$ variable to point it to the correct location? To set the = variable $USER1$ to /usr/lib/nagios/plugins/ you need to edit the = resource.cfg. style=3D'font-size: 10.0pt;font-family:Arial;color:navy'> style=3D'font-size: 10.0pt;font-family:Arial;color:navy'>You can also try executing the = command to see if it actually works. Just go to where the check_nt is located = and run it. That would eliminate a few things. style=3D'font-size: 10.0pt;font-family:Arial;color:navy'> style=3D'font-size: 10.0pt;font-family:Arial;color:navy'>HTH, style=3D'font-size: 10.0pt;font-family:Arial;color:navy'> style=3D'font-size: 10.0pt;font-family:Arial;color:navy'>Jon style=3D'font-size: 10.0pt;font-family:Arial;color:navy'> size=3D3 face=3D"Times New Roman"> --------------------------------- style=3D'font-size:10.0pt; font-family:Tahoma;font-weight:bold'>From:size=3D2 face=3DTahoma> = nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] style=3D'font-weight: bold'>On Behalf Of dan dang Sent: Thursday, August = 25, 2005 3:54 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] = check_nt configuration style=3D'font-size: 12.0pt'> style=3D'font-size: 12.0pt'>hi all, style=3D'font-size: 12.0pt'> style=3D'font-size: 12.0pt'>I have the same problem as Bobby Bradshaw (from whom I = quoted the message below) : style=3D'font-size: 12.0pt'>My Nagios setup is: === message truncated === __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From chandresh.suthar at gmail.com Fri Aug 26 19:44:59 2005 From: chandresh.suthar at gmail.com (Chandresh Suthar) Date: Fri, 26 Aug 2005 23:14:59 +0530 Subject: http port problem Message-ID: Hi, I want to check http on port 80 for some servers and on port 8003 for others. Entry in "checkcommands.cfg" file is as follows 'check_http' command definition command_name check_http command_line $USER1$/check_http -H $HOSTADDRESS$ Entry in "minimal.cfg" define service{ use generic-service host_name mail4 service_description HTTP is_volatile 0 check_period 24x7 max_check_attempts 4 normal_check_interval 5 retry_check_interval 1 contact_groups admins notification_interval 960 notification_period 24x7 check_command check_http } Please suggest any changes in above entries. Please also tell if i want to check http service for every 3 minutes then what changes are required. Chandresh Suthar ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ladams at cloudmark.com Fri Aug 26 19:53:24 2005 From: ladams at cloudmark.com (Lori Adams) Date: Fri, 26 Aug 2005 10:53:24 -0700 Subject: http port problem Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Chandresh Suthar > Sent: Friday, August 26, 2005 10:45 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] http port problem > > Hi, > > I want to check http on port 80 for some servers and on port 8003 for > others. > > Entry in "checkcommands.cfg" file is as follows > > 'check_http' command definition > command_name check_http > command_line $USER1$/check_http -H $HOSTADDRESS$ Make sure your $USER1$ set in resource.cfg is where check_http lives. Then run ./check_http -h in that directory to see all a complete help menu. See section on ports. > Entry in "minimal.cfg" > > define service{ > use generic-service > host_name mail4 > service_description HTTP > is_volatile 0 > check_period 24x7 > max_check_attempts 4 > normal_check_interval 5 > retry_check_interval 1 > contact_groups admins > notification_interval 960 > notification_period 24x7 > check_command check_http > } > > Please suggest any changes in above entries. > > Please also tell if i want to check http service for every 3 minutes > then what changes are required. If you want to check every 3 minutes while the service check is in an "OK" state, set normal_check_interval to 3. If you want to check every 3 minutes while the service is in a SOFT state (not in "OK" state), set retry_check_interval to 3. I suggest reading the docs: http://nagios.sourceforge.net/docs/2_0/xodtemplate.html This will tell you about every option available to you in each config/object file and what those options do. > Chandresh Suthar > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- An HTML attachment was scrubbed... URL: From marc at ena.com Fri Aug 26 20:08:17 2005 From: marc at ena.com (Marc Powell) Date: Fri, 26 Aug 2005 13:08:17 -0500 Subject: Nagios-users digest, Vol 1 #2774 - 11 msgs Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Ravi Kumar > Sent: Friday, August 26, 2005 11:56 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Re: Nagios-users digest, Vol 1 #2774 - 11 msgs > > I'm getting error message "UNKNOWN;HARD;5;No perf-definition for service" > after configuring new linux box.Please advice http://www.catb.org/~esr/faqs/smart-questions.html > > nagios-users-request at lists.sourceforge.net wrote: > > Send Nagios-users mailing list submissions to > nagios-users at lists.sourceforge.net [entire(?!) digest removed] -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From chandresh.suthar at gmail.com Fri Aug 26 20:15:52 2005 From: chandresh.suthar at gmail.com (Chandresh Suthar) Date: Fri, 26 Aug 2005 23:45:52 +0530 Subject: http port problem In-Reply-To: References: Message-ID: Thanks a lot. Please also give me solution of my first problem. *I want to check http on port 80 for some servers and on port 8003 for others. * Chandresh On 8/26/05, Lori Adams wrote: > > > > -----Original Message----- > > > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users- > > > admin at lists.sourceforge.net] On Behalf Of Chandresh Suthar > > > Sent: Friday, August 26, 2005 10:45 AM > > > To: nagios-users at lists.sourceforge.net > > > Subject: [Nagios-users] http port problem > > > > > > Hi, > > > > > > I want to check http on port 80 for some servers and on port 8003 for > > > others. > > > > > > Entry in "checkcommands.cfg" file is as follows > > > > > > 'check_http' command definition > > > command_name check_http > > > command_line $USER1$/check_http -H $HOSTADDRESS$ > > > > Make sure your $USER1$ set in resource.cfg is where check_http lives. > > Then run ./check_http ?h in that directory to see all a complete help menu. > See section on ports. > > > > > Entry in "minimal.cfg" > > > > > > define service{ > > > use > generic-service > > > host_name mail4 > > > service_description HTTP > > > is_volatile 0 > > > check_period 24x7 > > > max_check_attempts 4 > > > normal_check_interval 5 > > > retry_check_interval 1 > > > contact_groups admins > > > notification_interval 960 > > > notification_period 24x7 > > > check_command check_http > > > } > > > > > > Please suggest any changes in above entries. > > > > > > Please also tell if i want to check http service for every 3 minutes > > > then what changes are required. > > > > If you want to check every 3 minutes while the service check is in an "OK" > state, set normal_check_interval to 3. If you want to check every 3 minutes > while the service is in a SOFT state (not in "OK" state), set > retry_check_interval to 3. > > > > I suggest reading the docs: > http://nagios.sourceforge.net/docs/2_0/xodtemplate.html > > This will tell you about every option available to you in each config/object > file and what those options do. > > > > > Chandresh Suthar > > > > > > > > > ------------------------------------------------------- > > > SF.Net email is Sponsored by the Better Software Conference & EXPO > > > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > > > Practices > > > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > > > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > ::: Please include Nagios version, plugin version (-v) and OS when > > > reporting any issue. > > > ::: Messages without supporting info will risk being sent to /dev/null -------------- next part -------------- An HTML attachment was scrubbed... URL: From sghosh at sghosh.org Fri Aug 26 20:21:17 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Fri, 26 Aug 2005 14:21:17 -0400 (EDT) Subject: http port problem In-Reply-To: References: Message-ID: On Fri, 26 Aug 2005, Chandresh Suthar wrote: > Thanks a lot. Please also give me solution of my first problem. *I want to check http on port 80 for some servers and on port 8003 for others. * Chandresh Have you looked at the options and help provided by "check_http -h" Please understand we want to help if you are having problems. But we really don't want to do your work for you. -- -sg ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Fri Aug 26 20:24:07 2005 From: marc at ena.com (Marc Powell) Date: Fri, 26 Aug 2005 13:24:07 -0500 Subject: http port problem Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Chandresh Suthar > Sent: Friday, August 26, 2005 12:45 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] http port problem > > Hi, > > I want to check http on port 80 for some servers and on port 8003 for > others. > > Entry in "checkcommands.cfg" file is as follows > [snip] > > Please suggest any changes in above entries. Command definitions can include arguments separated by '!' which are passed to the command as $ARG1$, $ARG2$, etc. Look at how the $ARGx$ macros are used in the sample config files. Combine that with looking at 'check_http --help' and it should be pretty clear. Alternately you can create two different command definitions and reference them appropriately. You'll be better off understanding how it's done than if someone just hands it to you. What would you do if it broke? Come back to the list first thing? > > Please also tell if i want to check http service for every 3 minutes > then what changes are required. This is clearly documented. http://nagios.sourceforge.net/docs/1_0/xodtemplate.html#service -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Fri Aug 26 20:23:34 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Fri, 26 Aug 2005 14:23:34 -0400 (EDT) Subject: http port problem In-Reply-To: References: Message-ID: On Fri, 26 Aug 2005, Chandresh Suthar wrote: > Hi, > > I want to check http on port 80 for some servers and on port 8003 for others. > > Entry in "checkcommands.cfg" file is as follows > > 'check_http' command definition > command_name check_http > command_line $USER1$/check_http -H $HOSTADDRESS$ > > Entry in "minimal.cfg" > > define service{ > use generic-service > host_name mail4 > service_description HTTP > is_volatile 0 > check_period 24x7 > max_check_attempts 4 > normal_check_interval 5 > retry_check_interval 1 > contact_groups admins > notification_interval 960 > notification_period 24x7 > check_command check_http > } > > Please suggest any changes in above entries. > > Please also tell if i want to check http service for every 3 minutes > then what changes are required. > > Chandresh Suthar > Please see the use of $ARGx$ macros in command definitions combined with the use of options you need for check_http -- -sg ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From chandresh.suthar at gmail.com Fri Aug 26 21:59:26 2005 From: chandresh.suthar at gmail.com (Chandresh Suthar) Date: Sat, 27 Aug 2005 01:29:26 +0530 Subject: http port problem In-Reply-To: References: Message-ID: Yes i have checked the options. I want following command to executes. *./check_http -H 203.124.230.11 -p 80* **I used following option in minimal.cfg define service{ ..................................... check_command check_http!8003 } but things are not working On 8/26/05, Subhendu Ghosh wrote: > > On Fri, 26 Aug 2005, Chandresh Suthar wrote: > > > Thanks a lot. > > Please also give me solution of my first problem. > > *I want to check http on port 80 for some servers and on port 8003 for > others. > * > Chandresh > > > > Have you looked at the options and help provided by "check_http -h" > > Please understand we want to help if you are having problems. But we > really don't want to do your work for you. > > -- > -sg > -------------- next part -------------- An HTML attachment was scrubbed... URL: From simont at mitre.org Fri Aug 26 22:33:31 2005 From: simont at mitre.org (Simon I. Tetelbaum) Date: Fri, 26 Aug 2005 16:33:31 -0400 Subject: Exclude doesn't seem to work? Message-ID: <430F7C9B.1040403@mitre.org> I've seen in messages on this forum, that nagios 2 supports exclusions using the '!' wildcard. This doesn't appear to work for me? Is there any nagios configuration variable I should be setting to enable this feature? Also regular expressions seem to behave quirky in version 2.0... I sometimes have to use '.*' rather than '*' to represent all hosts/services. Any tips would be much appreciated. -Simon ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Fri Aug 26 22:38:03 2005 From: marc at ena.com (Marc Powell) Date: Fri, 26 Aug 2005 15:38:03 -0500 Subject: http port problem Message-ID: That's a good start. Did you modify the command definition to understand what the 8003 was for? -- Marc > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Chandresh Suthar > Sent: Friday, August 26, 2005 2:59 PM > To: Subhendu Ghosh > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] http port problem > > Yes i have checked the options. > I want following command to executes. > > ./check_http -H MailScanner warning: numerical links are often malicious: > 203.124.230.11 -p 80 > I used following option in minimal.cfg > > define service{ > ..................................... > check_command check_http!8003 > } > but things are not working > > > On 8/26/05, Subhendu Ghosh wrote: > > On Fri, 26 Aug 2005, Chandresh Suthar wrote: > > > Thanks a lot. > > Please also give me solution of my first problem. > > *I want to check http on port 80 for some servers and on port 8003 > for > others. > * > Chandresh > > > > Have you looked at the options and help provided by "check_http -h" > > Please understand we want to help if you are having problems. But > we > really don't want to do your work for you. > > -- > -sg > > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lee at effective-it.co.uk Fri Aug 26 22:49:18 2005 From: lee at effective-it.co.uk (Lee Ball) Date: Fri, 26 Aug 2005 21:49:18 +0100 Subject: Howto make Nagios send notifications if just output of plugin changes In-Reply-To: <1125069303.23732.16.camel@rento.seclan.com> References: <1125065403.23732.6.camel@rento.seclan.com> <20050826144013.GS22187@zippy.toger.us> <1125069303.23732.16.camel@rento.seclan.com> Message-ID: <430F804E.4090507@effective-it.co.uk> I've seen a problem with availability reports. The total % seems to include some undetermined time. For example if I ran an availability report for the last 24 hours where the host was only setup to be monitored 12 hours ago I'll have 50% undetermined and it seems like the host only has lets say a 47% UP status and maybe 3% Critical and 50% Undetermined. It doesn't become a problem I think after the initial 24 hours. Mikko Kaipila wrote: > On Fri, 2005-08-26 at 07:40 -0700, Jason Martin wrote: > >>On Fri, Aug 26, 2005 at 05:10:03PM +0300, Mikko Kaipila wrote: >> >>>Ok, but Nagios has capability to parse the plugin output text because of >>>stalking_options I think... >> >>stalking just tells it to *log* every change in output, but it >>doesn't trigger any actions. Nagios doesn't parse the output >>text ever, just record it. >> >>-Jason Martin > > > Ok, I made the plugin which is now smarter :) That changes exit value if > text output changes... > > btw, how Nagios create availibilty report (%)? Is that percent value (by > desired timeperiod) of different states duration of some service - or > what? > > > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From raema at osuosl.org Fri Aug 26 22:49:25 2005 From: raema at osuosl.org (Matt Rae) Date: Fri, 26 Aug 2005 13:49:25 -0700 Subject: new issue? CHECK_NRPE: Error - Could not complete SSL handshake. Message-ID: <430F8055.1090501@osuosl.org> I've got quite a few boxes running nrpe with the same nrpe.cfg. Gone through the faq solutions for this problem but I still get: CHECK_NRPE: Error - Could not complete SSL handshake. This same messages shows up in both the nagios log the nagios server and the nrpe log on the host its checking. I've tried reinstalling nrpe with no luck. nrpe.cfg has the same permissions as the other working nrpe. I'm confused what could cause this problem. It started after the last reboot but was working fine before hand. Any ideas? -- Matt Rae Open Source Lab Oregon State University -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: OpenPGP digital signature URL: From jonsml at gmail.com Fri Aug 26 22:55:09 2005 From: jonsml at gmail.com (Jon) Date: Fri, 26 Aug 2005 16:55:09 -0400 Subject: http port problem In-Reply-To: References: Message-ID: <430f81af.03a26e7c.7342.ffff8af2@mx.gmail.com> Hi, Read the doc on command definition http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#command -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Marc Powell Sent: Friday, August 26, 2005 4:38 PM To: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] http port problem That's a good start. Did you modify the command definition to understand what the 8003 was for? -- Marc > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Chandresh Suthar > Sent: Friday, August 26, 2005 2:59 PM > To: Subhendu Ghosh > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] http port problem > > Yes i have checked the options. > I want following command to executes. > > ./check_http -H MailScanner warning: numerical links are often malicious: > 203.124.230.11 -p 80 > I used following option in minimal.cfg > > define service{ > ..................................... > check_command check_http!8003 > } > but things are not working > > > On 8/26/05, Subhendu Ghosh wrote: > > On Fri, 26 Aug 2005, Chandresh Suthar wrote: > > > Thanks a lot. > > Please also give me solution of my first problem. > > *I want to check http on port 80 for some servers and on port 8003 > for > others. > * > Chandresh > > > > Have you looked at the options and help provided by "check_http -h" > > Please understand we want to help if you are having problems. But > we > really don't want to do your work for you. > > -- > -sg > > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ladams at cloudmark.com Fri Aug 26 22:57:46 2005 From: ladams at cloudmark.com (Lori Adams) Date: Fri, 26 Aug 2005 13:57:46 -0700 Subject: new issue? CHECK_NRPE: Error - Could not complete SSL handshake. Message-ID: Did you check the FAQs? Make sure that your "allowed hosts" line in nrpe.cfg includes the IP address of your nagios machine. Restart nrpe. -Lori > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Matt Rae > Sent: Friday, August 26, 2005 1:49 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] new issue? CHECK_NRPE: Error - Could not complete > SSL handshake. > > I've got quite a few boxes running nrpe with the same nrpe.cfg. Gone > through the faq solutions for this problem but I still get: > > CHECK_NRPE: Error - Could not complete SSL handshake. > > This same messages shows up in both the nagios log the nagios server and > the nrpe log on the host its checking. > > I've tried reinstalling nrpe with no luck. nrpe.cfg has the same > permissions as the other working nrpe. I'm confused what could cause > this problem. It started after the last reboot but was working fine > before hand. > > Any ideas? > > -- > Matt Rae > Open Source Lab > Oregon State University ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From raema at osuosl.org Fri Aug 26 23:07:54 2005 From: raema at osuosl.org (Matt Rae) Date: Fri, 26 Aug 2005 14:07:54 -0700 Subject: new issue? CHECK_NRPE: Error - Could not complete SSL handshake. In-Reply-To: References: Message-ID: <430F84AA.4090706@osuosl.org> just checked. "allowed hosts" does include the nagios machine. the nrpe.cfg on this machine a exact copy from other working machines and has the same permissions. Lori Adams wrote: > Did you check the FAQs? > > Make sure that your "allowed hosts" line in nrpe.cfg includes the IP > address of your nagios machine. Restart nrpe. > > -Lori > > >>-----Original Message----- >>From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- >>admin at lists.sourceforge.net] On Behalf Of Matt Rae >>Sent: Friday, August 26, 2005 1:49 PM >>To: nagios-users at lists.sourceforge.net >>Subject: [Nagios-users] new issue? CHECK_NRPE: Error - Could not > > complete > >>SSL handshake. >> >>I've got quite a few boxes running nrpe with the same nrpe.cfg. Gone >>through the faq solutions for this problem but I still get: >> >>CHECK_NRPE: Error - Could not complete SSL handshake. >> >>This same messages shows up in both the nagios log the nagios server > > and > >>the nrpe log on the host its checking. >> >>I've tried reinstalling nrpe with no luck. nrpe.cfg has the same >>permissions as the other working nrpe. I'm confused what could cause >>this problem. It started after the last reboot but was working fine >>before hand. >> >>Any ideas? >> >>-- >>Matt Rae >>Open Source Lab >>Oregon State University > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Matt Rae Open Source Lab Oregon State University -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: OpenPGP digital signature URL: From sghosh at sghosh.org Fri Aug 26 23:52:58 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Fri, 26 Aug 2005 17:52:58 -0400 (EDT) Subject: http port problem In-Reply-To: References: Message-ID: On Sat, 27 Aug 2005, Chandresh Suthar wrote: > Yes i have checked the options. > I want following command to executes. > *./check_http -H 203.124.230.11 -p 80* > **I used following option in minimal.cfg > define service{ > ..................................... > check_command check_http!8003 > } define command { check_http_port $USER1$/check_http -H $HOSTADDRESS$ -p$ARG1$ } define service{ ... command check_http_port!8003 } define service{ ... Command check_http_port!80 } -- -sg ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From schoenfeld at in-medias-res.com Fri Aug 26 23:58:40 2005 From: schoenfeld at in-medias-res.com (=?Windows-1252?Q?sch=F6nfeld_/_in-medias-res?=) Date: Fri, 26 Aug 2005 23:58:40 +0200 Subject: http port problem References: Message-ID: <001001c5aa89$51cedc80$7202a8c0@MF2> Hi, you did not specify your define command {} block. What about it? Greets Patrick in medias res - Gesellschaft f?r Kommunikationssysteme mbH Dahlenerstr. 570 41239 M?nchengladbach Tel. +49 (0) 2166-9999-685 Fax. +49 (0) 2166-9999-850 ----- Original Message ----- From: Chandresh Suthar To: Subhendu Ghosh Cc: nagios-users at lists.sourceforge.net Sent: Friday, August 26, 2005 9:59 PM Subject: Re: [Nagios-users] http port problem Yes i have checked the options. I want following command to executes. ./check_http -H 203.124.230.11 -p 80 I used following option in minimal.cfg define service{ ..................................... check_command check_http!8003 } but things are not working On 8/26/05, Subhendu Ghosh wrote: On Fri, 26 Aug 2005, Chandresh Suthar wrote: > Thanks a lot. Please also give me solution of my first problem. *I want to check http on port 80 for some servers and on port 8003 for others. * Chandresh Have you looked at the options and help provided by "check_http -h" Please understand we want to help if you are having problems. But we really don't want to do your work for you. -- -sg ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Sat Aug 27 00:06:25 2005 From: ae at op5.se (Andreas Ericsson) Date: Sat, 27 Aug 2005 00:06:25 +0200 Subject: Exclude doesn't seem to work? In-Reply-To: <430F7C9B.1040403@mitre.org> References: <430F7C9B.1040403@mitre.org> Message-ID: <430F9261.6000604@op5.se> Simon I. Tetelbaum wrote: > I've seen in messages on this forum, that nagios 2 supports exclusions > using the '!' wildcard. This doesn't appear to work for me? Is there any > nagios configuration variable I should be setting to enable this > feature? Also regular expressions seem to behave quirky in version > 2.0... I sometimes have to use '.*' rather than '*' to represent all > hosts/services. Any tips would be much appreciated. > * by itself is not a regular expression. The dot is actually needed to make it do what you want. > -Simon > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. ::: Messages without supporting info will risk > being sent to /dev/null > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From amontibello at gmail.com Sat Aug 27 10:30:49 2005 From: amontibello at gmail.com (Anthony Montibello) Date: Sat, 27 Aug 2005 04:30:49 -0400 Subject: how to compile check_nt.c In-Reply-To: <430f3f0b.5225c52f.7440.ffffcd74@mx.gmail.com> References: <430EE293.9000100@op5.se> <430f3f0b.5225c52f.7440.ffffcd74@mx.gmail.com> Message-ID: Due to my lack Unix expeiance, I usualy do the same procedure as Jon. except I typically do not use "make install" becasue I do not want to overwrite the plugins that nagios is using. I just want to compile and then run the plugin from the command line. Tony On 8/26/05, Jon wrote: > > Hi, > > Installing the Nagios plugin is just simply a ./configure, make, make > install from source. > > HTH, > > Jon > > -----Original Message----- > <> -------------- next part -------------- An HTML attachment was scrubbed... URL: From niceforums at yahoo.com Sat Aug 27 13:27:05 2005 From: niceforums at yahoo.com (hamideh daliri) Date: Sat, 27 Aug 2005 04:27:05 -0700 (PDT) Subject: how tochange policy of SELinux for runnig CGI scripts ! Message-ID: <20050827112705.13310.qmail@web30106.mail.mud.yahoo.com> hi about 1-2 months ago i ask from the users of nagios here about an error accoured when i want to use nagios web interface and it was about runninf cgi scripts on it , some friens here said it is because of selinux is active and it was right so i diasble selinux and the nagios worked well,but now the we want to make selnix active because of increasing the security but we have faced with the old problem with cgis,how can we solve this problem ? we know we have to change some part of targeted polcy of selinux,but we don't know how and where !! would you help us again ? tnx . __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From monitoring_with_nagios at yahoo.com Sat Aug 27 22:59:11 2005 From: monitoring_with_nagios at yahoo.com (Bill Stevenson) Date: Sat, 27 Aug 2005 13:59:11 -0700 (PDT) Subject: submit_check_result problem Message-ID: <20050827205911.61521.qmail@web35302.mail.mud.yahoo.com> Hey everyone -- I'm having a problem with submit_check_result. I'm attempting to setup a distributed configuration with Nagios 2.0. On the distributed server I have obsess_over_services=1 ocsp_command=submit_check_result and from the submit_check_result script: /usr/bin/printf "%s\t%s\t%s\t%s\n" "$1" "$2" "$return_code" "$4" | /usr/local/libexec/nagios/send_nsca 192.168.11.27 -c /usr/local/etc/nagios/send_nsca.cfg and in the checkcommands.cfg: define command{ command_name submit_check_result command_line /usr/local/libexec/nagios/submit_check_result $HOSTNAME$ '$SERVICEDESC$' $SERVICESTATE$ '$OUTPUT$' } Here seems to be the problem, i never get a PROCESS_SVC_CHECK_RESULT command entered. I have debugging turned on for nsca and when watch /var/log/messages on the central server I see this entry: Aug 27 15:33:13 nagios3 nsca[10900]: SERVICE CHECK -> Host Name: 'w2k-813', Service Description: 'submit', Return Code: '0', Output: '$OUTPUT$' Aug 27 15:33:13 nagios3 nsca[10900]: End of connection... This is all running on FreeBSD as well. Is there something wrong with printf or one of the variables? As you can tell, i'm not very good with shell programming. If there is any more information I can provide, please let me know. Any insight at all into this problem would be very much appreciated. Thanks, Bill __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From monitoring_with_nagios at yahoo.com Sun Aug 28 04:37:56 2005 From: monitoring_with_nagios at yahoo.com (Bill Stevenson) Date: Sat, 27 Aug 2005 19:37:56 -0700 (PDT) Subject: submit_check_result problem In-Reply-To: <20050827205911.61521.qmail@web35302.mail.mud.yahoo.com> References: <20050827205911.61521.qmail@web35302.mail.mud.yahoo.com> Message-ID: <20050828023756.15772.qmail@web35309.mail.mud.yahoo.com> This an attempted distributed configuration with Nagios 2.0b2 on FreeBSD. Update: The problem is submit_check_result is sending the wrong data...somewhat. Here's an entry from /var/log/messages on the distributed server(send_nsca debug is on): Aug 27 20:45:20 nagios3 nsca[58000]: SERVICE CHECK -> Host Name: 'w2k-813', Service Description: 'submit', Return Code: '0', Output: '1 data packet(s) sent to host successfully.' Here's the entry from /var/spool/nagios/nagios.log on the central server: [1125193534] EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;w2k-813;submit;0;1 data packet(s) sent to host successfully. My submit_check_result command is this: define command{ command_name submit_check_result command_line /usr/local/libexec/nagios/submit_check_result $HOSTNAME$ '$SERVICEDESC$' $SERVICESTATE$ '$SERVICEOUTPUT$' } I changed from '$OUTPUT$' to '$SERVICEOUTPUT$' to see what would happen now this Output: '1 data packet(s) sent to host successfully.' is send to the server instead of this Output: '$OUTPUT$' My submit_check_result contains: /usr/bin/printf "%s\t%s\t%s\t%s\n" "$1" "$2" "$return_code" "$4" | /usr/local/libexec/nagios/send_nsca 192.168.11.27 -c /usr/local/etc/nagios/send_nsca.cfg On the Nagios central server I have accept_passive_service_checks=1 And on the distributed server I have obsess_over_services=1 and ocsp_command=submit_check_result According to the http interface, all services are in PENDING status. This most likely a dumb question among many, but is this caused by the incorrect format being submitted by the distributed server? Thanks, Bill --- Bill Stevenson wrote: > Hey everyone -- I'm having a problem with > submit_check_result. I'm attempting to setup a > distributed configuration with Nagios 2.0. On the > distributed server I have > > obsess_over_services=1 > ocsp_command=submit_check_result > > and from the submit_check_result script: > > /usr/bin/printf "%s\t%s\t%s\t%s\n" "$1" "$2" > "$return_code" "$4" | > /usr/local/libexec/nagios/send_nsca 192.168.11.27 -c > /usr/local/etc/nagios/send_nsca.cfg > > and in the checkcommands.cfg: > > define command{ > command_name submit_check_result > command_line > /usr/local/libexec/nagios/submit_check_result > $HOSTNAME$ '$SERVICEDESC$' $SERVICESTATE$ '$OUTPUT$' > } > > > Here seems to be the problem, i never get a > PROCESS_SVC_CHECK_RESULT command entered. I have > debugging turned on for nsca and when watch > /var/log/messages on the central server I see this > entry: > > Aug 27 15:33:13 nagios3 nsca[10900]: SERVICE CHECK > -> > Host Name: 'w2k-813', Service Description: 'submit', > Return Code: '0', Output: '$OUTPUT$' > Aug 27 15:33:13 nagios3 nsca[10900]: End of > connection... > > This is all running on FreeBSD as well. Is there > something wrong with printf or one of the variables? > As you can tell, i'm not very good with shell > programming. If there is any more information I can > provide, please let me know. Any insight at all into > this problem would be very much appreciated. > > Thanks, > Bill > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam > protection around > http://mail.yahoo.com > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software > Conference & EXPO > September 19-22, 2005 * San Francisco, CA * > Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects > & Teams * Testing & QA > Security * Process Improvement & Measurement * > http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version > (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being > sent to /dev/null > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From morten.guldager at gmail.com Sun Aug 28 16:17:48 2005 From: morten.guldager at gmail.com (Morten Guldager) Date: Sun, 28 Aug 2005 16:17:48 +0200 Subject: Missing "su" in /etc/init.d/nagios Message-ID: Aloha! I tried to create a SuSE online_update plugin for my nagios (nagios-2.0b4). But for some reason the program (/usr/bin/online_update) fails to run. I modified my /etc/init.d/nagios (line ~120) to do a (+) su - $NagiosUser -c "$NagiosBin -d $NagiosCfgFile" instead of the normal (-) $NagiosBin -d $NagiosCfgFile line. That helped, and I have not noticed any bad side effects yet. I guess nagios is not that good at cleaning up after SuSE's init scripts. Comments? -- /Morten %-) ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From akrall-lists at intruder.com.mx Sun Aug 28 21:30:36 2005 From: akrall-lists at intruder.com.mx (Anton Krall) Date: Sun, 28 Aug 2005 14:30:36 -0500 Subject: mail address for notifications Message-ID: <20050828193151.A8DD85B402E@intruder.com.mx> Is there a way to change the email address for notifications, etc. So that they dont come from root at localhost but another email? Thx for any help Guys ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lee at effective-it.co.uk Sun Aug 28 21:34:16 2005 From: lee at effective-it.co.uk (Lee Ball) Date: Sun, 28 Aug 2005 20:34:16 +0100 Subject: mail address for notifications In-Reply-To: <20050828193151.A8DD85B402E@intruder.com.mx> References: <20050828193151.A8DD85B402E@intruder.com.mx> Message-ID: <431211B8.1050007@effective-it.co.uk> The fact that they come from root at localhost tells me that your running nagios as root. Which version of Nagios are you running? Anton Krall wrote: > Is there a way to change the email address for notifications, etc. So that > they dont come from root at localhost but another email? > > Thx for any help Guys > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From akrall-lists at intruder.com.mx Sun Aug 28 21:47:12 2005 From: akrall-lists at intruder.com.mx (Anton Krall) Date: Sun, 28 Aug 2005 14:47:12 -0500 Subject: mail address for notifications In-Reply-To: <431211B8.1050007@effective-it.co.uk> References: <431211B8.1050007@effective-it.co.uk> Message-ID: <20050828194826.B46F35B402E@intruder.com.mx> Im using version 1.2 I need to change that on nagios.cfg and I know the from on email comes from checkcommand.cfg but I just can figure out the param for mail to do that :( |-----Original Message----- |From: nagios-users-admin at lists.sourceforge.net |[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Lee Ball |Sent: Domingo, 28 de Agosto de 2005 02:34 p.m. |To: nagios-users at lists.sourceforge.net |Subject: Re: [Nagios-users] mail address for notifications | |The fact that they come from root at localhost tells me that your |running nagios as root. | |Which version of Nagios are you running? | |Anton Krall wrote: |> Is there a way to change the email address for |notifications, etc. So |> that they dont come from root at localhost but another email? |> |> Thx for any help Guys |> |> |> |> ------------------------------------------------------- |> SF.Net email is Sponsored by the Better Software Conference & EXPO |> September 19-22, 2005 * San Francisco, CA * Development Lifecycle |> Practices Agile & Plan-Driven Development * Managing |Projects & Teams |> * Testing & QA Security * Process Improvement & Measurement * |> http://www.sqe.com/bsce5sf |> _______________________________________________ |> Nagios-users mailing list |> Nagios-users at lists.sourceforge.net |> https://lists.sourceforge.net/lists/listinfo/nagios-users |> ::: Please include Nagios version, plugin version (-v) and |OS when reporting any issue. |> ::: Messages without supporting info will risk being sent to |/dev/null | | |------------------------------------------------------- |SF.Net email is Sponsored by the Better Software Conference & |EXPO September 19-22, 2005 * San Francisco, CA * Development |Lifecycle Practices Agile & Plan-Driven Development * Managing |Projects & Teams * Testing & QA Security * Process Improvement |& Measurement * http://www.sqe.com/bsce5sf |_______________________________________________ |Nagios-users mailing list |Nagios-users at lists.sourceforge.net |https://lists.sourceforge.net/lists/listinfo/nagios-users |::: Please include Nagios version, plugin version (-v) and OS |when reporting any issue. |::: Messages without supporting info will risk being sent to /dev/null | | ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From davea at support.kcm.org Sun Aug 28 22:07:34 2005 From: davea at support.kcm.org (Dave Augustus) Date: Sun, 28 Aug 2005 15:07:34 -0500 Subject: Problem using snpp.pl for notifications Message-ID: <1125259665.25170.10.camel@springer> I woke up this morning to find that one of my servers died. However, I didn't receive any notifications on my alpha pager. Checking /var/log/messages has numerous entries like the following: Aug 28 10:14:56 monitor nagios: **ePN failed to compile /usr/bin/snpp: "Global symbol "$cmd" requires explicit package name at (eval 6) li ne 156, Global symbol "$arg" requires explicit package name at (eval 6) line 163. Global symbol "$cmd" requires explicit package name at ( eval 6) line 165. Global symbol "$arg" requires expl" at /usr/bin/p1.pl line 153 I use snpp.pl for alpha notifications. Here is my misc_command for snpp: define command { command_name host-notify-by-tap command_line /usr/bin/snpp -d -n -m "Service: $SERVICEDESC$ Host: $HOSTALIAS$ Address: $HOSTADDRESS$ State: $SERVICESTATE$ Info: $OUTPUT$ Date: $DATETIME$" $CONTACTPAGER$ } Running the following on Centos4: nagios-nrpe-2.0-3.2 nagios-2.0-0.b4.1 nagios-plugins-1.4.1-1.2 nagios-plugins-nrpe-2.0-3.2 If I run snpp from the command line, it works fine. Is there a parameter that I need to pass for it to invoke snpp properly? Thanks, Dave ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Sun Aug 28 23:13:04 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Sun, 28 Aug 2005 17:13:04 -0400 (EDT) Subject: Problem using snpp.pl for notifications In-Reply-To: <1125259665.25170.10.camel@springer> References: <1125259665.25170.10.camel@springer> Message-ID: On Sun, 28 Aug 2005, Dave Augustus wrote: > I woke up this morning to find that one of my servers died. However, I > didn't receive any notifications on my alpha pager. > > Checking /var/log/messages has numerous entries like the following: > > Aug 28 10:14:56 monitor nagios: **ePN failed to compile /usr/bin/snpp: > "Global symbol "$cmd" requires explicit package name at (eval 6) li > ne 156, Global symbol "$arg" requires explicit package name at (eval 6) > line 163. Global symbol "$cmd" requires explicit package name at ( > eval 6) line 165. Global symbol "$arg" requires expl" at /usr/bin/p1.pl > line 153 > > I use snpp.pl for alpha notifications. Here is my misc_command for > snpp: > > define command { > command_name host-notify-by-tap > command_line /usr/bin/snpp -d -n -m "Service: $SERVICEDESC$ Host: > $HOSTALIAS$ Address: $HOSTADDRESS$ State: $SERVICESTATE$ Info: $OUTPUT$ > Date: $DATETIME$" $CONTACTPAGER$ > } > > Running the following on Centos4: > nagios-nrpe-2.0-3.2 > nagios-2.0-0.b4.1 > nagios-plugins-1.4.1-1.2 > nagios-plugins-nrpe-2.0-3.2 > > If I run snpp from the command line, it works fine. Is there a parameter > that I need to pass for it to invoke snpp properly? > in the nagios tarball is a program call mini_epn.c - it mimics Nagios' embeded Perl interpreter. You might want to try running snpp.pl thru that to see if it is ePN safe. -- -sg ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Sun Aug 28 23:14:38 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Sun, 28 Aug 2005 17:14:38 -0400 (EDT) Subject: mail address for notifications In-Reply-To: <20050828194826.B46F35B402E@intruder.com.mx> References: <20050828194826.B46F35B402E@intruder.com.mx> Message-ID: The standard mail command does not support it. You must run the Nagios daemon under the user you want the notifications to come from - or write your own notification scripts. On Sun, 28 Aug 2005, Anton Krall wrote: > Im using version 1.2 > > I need to change that on nagios.cfg and I know the from on email comes from > checkcommand.cfg but I just can figure out the param for mail to do that :( > > > |-----Original Message----- > |From: nagios-users-admin at lists.sourceforge.net > |[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Lee Ball > |Sent: Domingo, 28 de Agosto de 2005 02:34 p.m. > |To: nagios-users at lists.sourceforge.net > |Subject: Re: [Nagios-users] mail address for notifications > | > |The fact that they come from root at localhost tells me that your > |running nagios as root. > | > |Which version of Nagios are you running? > | > |Anton Krall wrote: > |> Is there a way to change the email address for > |notifications, etc. So > |> that they dont come from root at localhost but another email? > |> > |> Thx for any help Guys > |> -- ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From misc at viceconsulting.co.nz Mon Aug 29 00:57:03 2005 From: misc at viceconsulting.co.nz (misc at viceconsulting.co.nz) Date: Mon, 29 Aug 2005 10:57:03 +1200 (NZST) Subject: service_inter_check_delay_method directive in nagios.cfg Message-ID: <32868.127.0.0.1.1125269823.squirrel@www.goldenfields.co.nz> Hey All, Seems to be a problem with: service_inter_check_delay_method=s (ie, the smart method) with my Central Nagios server. I have a bunch of distributed Nagios servers that push their results to the central server (via NSCA). The central server has 74 hosts, and about a 1000 services which are all PASSIVE services. The only active services is for the central server itself which is self-monitoring itself, and herein lies the problem. When I restart Nagios at 10am in the morning, setting service_inter_check_delay_method=s causes the service checks for the central server to be scheduled 3 hours later at 1pm! If i set service_inter_check_delay_method=d (dumb method) it schedules at around 10:05am as expected. I'm assuming that the smart method is not meant to behave like this? Any thoughts, is this a bug? Cheer Alex ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From akrall-lists at intruder.com.mx Mon Aug 29 02:11:18 2005 From: akrall-lists at intruder.com.mx (Anton Krall) Date: Sun, 28 Aug 2005 19:11:18 -0500 Subject: mail address for notifications In-Reply-To: References: Message-ID: <20050829001233.17C845B402E@intruder.com.mx> Im trying to switch mail to sendEmail but the command line parameter for the recipients is not the same and sendEmail is not working right now. How can I find out the expanded command line that nagios is running when sending the notifications? |-----Original Message----- |From: Subhendu Ghosh [mailto:sghosh at sghosh.org] |Sent: Domingo, 28 de Agosto de 2005 04:15 p.m. |To: Anton Krall |Cc: 'Lee Ball'; nagios-users at lists.sourceforge.net |Subject: RE: [Nagios-users] mail address for notifications | |The standard mail command does not support it. You must run |the Nagios daemon under the user you want the notifications to |come from - or write your own notification scripts. | |On Sun, 28 Aug 2005, Anton Krall wrote: | |> Im using version 1.2 |> |> I need to change that on nagios.cfg and I know the from on |email comes |> from checkcommand.cfg but I just can figure out the param |for mail to |> do that :( |> |> |> |-----Original Message----- |> |From: nagios-users-admin at lists.sourceforge.net |> |[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Lee |> |Ball |> |Sent: Domingo, 28 de Agosto de 2005 02:34 p.m. |> |To: nagios-users at lists.sourceforge.net |> |Subject: Re: [Nagios-users] mail address for notifications |> | |> |The fact that they come from root at localhost tells me that your |> |running nagios as root. |> | |> |Which version of Nagios are you running? |> | |> |Anton Krall wrote: |> |> Is there a way to change the email address for |> |notifications, etc. So |> |> that they dont come from root at localhost but another email? |> |> |> |> Thx for any help Guys |> |> | |-- | | | ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From srunschke at abit.de Mon Aug 29 09:52:01 2005 From: srunschke at abit.de (srunschke at abit.de) Date: Mon, 29 Aug 2005 09:52:01 +0200 Subject: Antwort: RE: mail address for notifications In-Reply-To: <20050829001233.17C845B402E@intruder.com.mx> References: <20050829001233.17C845B402E@intruder.com.mx> Message-ID: nagios-users-admin at lists.sourceforge.net schrieb am 29.08.2005 02:11:18: > Im trying to switch mail to sendEmail but the command line parameter for the > recipients is not the same and sendEmail is not working right now. > > How can I find out the expanded command line that nagios is running when > sending the notifications? It's all in the misccommands.cfg Actually it is not Nagios' responsebility to control the sender email address, but that of your system. If you are sending as root at locahost it shows that your sendmail is not fully configured. What you might want to do is either fix your sendmail installation (no, I'm not going into details how to do that), or change misccommands.cfg. /sbin/mail becomes /sbin/sendmail and you might want to add -fnagios at my.mailserver.is.broken.com to force the envelope-sender. Note that this only works if Nagios is run under a user that has rights to change the envelope in sendmail. -> man sendmail regards sash -------------------------------------------------- Sascha Runschke Netzwerk Administration IT-Services ABIT AG Robert-Bosch-Str. 1 40668 Meerbusch Tel.:+49 (0) 2150.9153.226 Mobil:+49 (0) 173.5419665 mailto:SRunschke at abit.de http://www.abit.net http://www.abit-epos.net --------------------------------- Sicherheitshinweis zur E-Mail Kommunikation / Security note regarding email communication: http://www.abit.net/sicherheitshinweis.html ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From akrall-lists at intruder.com.mx Mon Aug 29 14:36:11 2005 From: akrall-lists at intruder.com.mx (Anton Krall) Date: Mon, 29 Aug 2005 07:36:11 -0500 Subject: Antwort: RE: mail address for notifications In-Reply-To: References: Message-ID: <20050829123723.EB0E55B402E@intruder.com.mx> Its been done! Working nice again using another user on mail from: :) Thx! |-----Original Message----- |From: srunschke at abit.de [mailto:srunschke at abit.de] |Sent: Lunes, 29 de Agosto de 2005 02:52 a.m. |To: Anton Krall |Cc: nagios-users at lists.sourceforge.net |Subject: Antwort: RE: [Nagios-users] mail address for notifications | |nagios-users-admin at lists.sourceforge.net schrieb am 29.08.2005 |02:11:18: | |> Im trying to switch mail to sendEmail but the command line parameter |> for |the |> recipients is not the same and sendEmail is not working right now. |> |> How can I find out the expanded command line that nagios is running |> when sending the notifications? | |It's all in the misccommands.cfg | |Actually it is not Nagios' responsebility to control the |sender email address, but that of your system. If you are |sending as root at locahost it shows that your sendmail is not |fully configured. |What you might want to do is either fix your sendmail |installation (no, I'm not going into details how to do that), |or change misccommands.cfg. /sbin/mail becomes /sbin/sendmail |and you might want to add -fnagios at my.mailserver.is.broken.com |to force the envelope-sender. Note that this only works if |Nagios is run under a user that has rights to change the |envelope in sendmail. | | -> man sendmail | |regards | sash | |-------------------------------------------------- |Sascha Runschke |Netzwerk Administration |IT-Services | |ABIT AG |Robert-Bosch-Str. 1 |40668 Meerbusch | |Tel.:+49 (0) 2150.9153.226 |Mobil:+49 (0) 173.5419665 |mailto:SRunschke at abit.de | |http://www.abit.net |http://www.abit-epos.net |--------------------------------- |Sicherheitshinweis zur E-Mail Kommunikation / | Security note regarding email communication: |http://www.abit.net/sicherheitshinweis.html | | ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From boinger at tradingtechnologies.com Mon Aug 29 16:15:27 2005 From: boinger at tradingtechnologies.com (jeff vier) Date: Mon, 29 Aug 2005 09:15:27 -0500 Subject: Ignoring a particular alarm (on purpose)? In-Reply-To: <43118035.9060001@spymac.com> References: <1108654689.7902.25.camel@localhost> <43118035.9060001@spymac.com> Message-ID: <1125324935.19276.3.camel@chi100400> Please don't reply just to me. *Always* reply to the list (except, perhaps, to only say "thanks" :) ), thanks. On Sun, 2005-08-28 at 11:13 +0200, max wrote: > How do you check for Windows Update availability with nagios? define command{ command_name check_nt_windows_update command_line $USER1$/negate $USER1$/check_nt -H $HOSTADDRESS$ -v PROCSTATE -d SHOWALL -l wuauclt.exe check_nt uses the NSClient suite (or NC_Net, or whatever other replacement). What that check is doing, in case it's unclear, is checking for the existence of a running 'wuauclt.exe' process, then negating the result (so, running==critical, no process==OK) > jeff vier wrote: > > >Here's a weird one. > > > >I have a request to be able to filter out a particular alarm on the > >Service Status Page. > > > >The problem is that I have Nagios set up to watch for Windows Update > >(WU) availability, but it can take WEEKS for the Windows Admin to roll > >them out to all the Windows Servers. So, in the interim, we're staring > >down a few hundred WU alerts. > > > >A couple of the folks in the NOC have asked if there's a way to not see > >them (but still see everything else). > > > >I figure I *COULD* code it out of the cgi, but then why watch for the > >WUs at all (we don't page on them). > > > >Any idea? (regex filter that can be passed arbitrary values via GET > >variables? *fingers crossed*) > > > >Thanks for any help. > > > >--jeff -------------- 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 Alan_Maxwell at hilton.com Mon Aug 29 17:22:01 2005 From: Alan_Maxwell at hilton.com (Alan Maxwell) Date: Mon, 29 Aug 2005 10:22:01 -0500 Subject: check_by_ssh documentation Message-ID: <0CE7BC7B93C2F949ADF277B8995479340B95EA25@cmxsmbx1.hq.ad.hilton.com> Is there a more comprehensive documentation on check_by_ssh? I'm used to nrpe.. pretty simple to setup, on server check_nrpe!my_check_name remote host has nrpe.cfg my_check_name.... Is there something similar for check_by_ssh? What is the passive mode? The -s shows a services list, services on the remote host? If I only install the plugins on the remote, why would I have a services.cfg file? -------------- next part -------------- An HTML attachment was scrubbed... URL: From potus98 at yahoo.com Mon Aug 29 20:40:02 2005 From: potus98 at yahoo.com (John Christian) Date: Mon, 29 Aug 2005 11:40:02 -0700 (PDT) Subject: statusmap.cgi can't find libgd.so.2 in /usr/local/lib Message-ID: <20050829184002.19448.qmail@web54712.mail.yahoo.com> Hello, I've RTFM, Googled, and checked the list archives but can't seem to really fix this issue. Any assistance would be very appreciated! It seems that statusmap.cgi in nagios-plugins-1.4.1 is not finding libgd.so.2 in /usr/local/lib. If I copy libgd.so.2 from /usr/local/lib to /usr/lib, nagios-plugins finds it just fine and statusmap.cgi works fine. How do I get nagios-plugins-1.4.1 to "see" the libgd.so.2 library in /usr/local/lib? BTW: I did an ldd of all the Nagios CGI's and there are other CGI's that DO find other libraries in /usr/local/lib. For example, trends.cgi found libfreetype.so.6 in /usr/local/lib just fine. Seems strange that statusmap.cgi doesn't find what it needs in /usr/local/lib. Nagios 2.0b4 Linux foo.foo.com 2.4.21-27.0.2.ELsmp #1 SMP Wed Jan 13 22:32:42 EST 2005 i686 i686 i386 GNU/Linux GNU Make version 3.79.1, by Richard Stallman and Roland McGrath. Built for i386-redhat-linux-gnu TIA! -John __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From forums at emat.be Mon Aug 29 21:23:28 2005 From: forums at emat.be (js) Date: Mon, 29 Aug 2005 19:23:28 +0000 Subject: Plugin output a clickable http link / feature request Message-ID: <431360B0.5050108@emat.be> Hi all, I there a way to have a clickable link in a plugin-output? If I'm mistaken, there is no way, maybe I overlooked something, or maybe there are some tricks,..... This way when a service is in a critical state (or whatever state), I could provide a link in the status information where people can click on resulting in whatever you program behind that link. If this is not possible, it could be a nice optional feature. Thanks! ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Mon Aug 29 21:42:32 2005 From: marc at ena.com (Marc Powell) Date: Mon, 29 Aug 2005 14:42:32 -0500 Subject: Plugin output a clickable http link / feature request Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of js > Sent: Monday, August 29, 2005 2:23 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Plugin output a clickable http link / feature > request > > Hi all, > > I there a way to have a clickable link in a plugin-output? If I'm > mistaken, there is no way, maybe I overlooked something, or maybe there > are some tricks,..... [libexec]$ ./urlize --help urlize (nagios-plugins 1.3.0-alpha1) 1.1.1.1 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) 2000 Karl DeBisschop (kdebiss at alum.mit.edu) This plugin wraps the text output of another command (plugin) in HTML tags, thus displaying the plugin output in as a clickable link in the Nagios status screen. The return status is the same as the invoked plugin. Usage: urlize ... ------------------ My example usage -- # 'check_ping' command definition define command{ command_name check_ping command_line $USER1$/urlize "http://my.host.net/cgi/tools.cgi?ip=$HOSTADDRESS$&host=$HOSTALIAS$&serv ice=PING" $USER1$/check_fping $HOSTADDRESS$ -n 10 -w500.0 30 -c1000.0 60 } -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jailbait at gmail.com Mon Aug 29 22:08:52 2005 From: jailbait at gmail.com (JB Segal) Date: Mon, 29 Aug 2005 16:08:52 -0400 Subject: Monitoring a matrix of load-balanced VirtualHosts? Message-ID: <916aba350508291308330be724@mail.gmail.com> Hi. I've searched through the archives, the nagiosexchange site, and google in general, but have yet to find a satisfactory answer to this: I'm running (ok, my employer is running and has been for a while now) 1.2, talking to a variety of machines running various vintages of RedHat and various versions of nrpe and the plugins package. I have a series of web servers - call them A, B and C - which are running apache, which is serving a variety of VirtualHosts - let's call them foo.com, bar.com and baz.com. Each machine responds to both www.(foo|bar|baz).com and {hostname}.(foo|bar|baz).com (say: A.foo.com) I need to check each server for the aliveness of each VHost. I really am not sure how best to do this. Ok, I'm not really sure how to do this in any sort of clean fashion. I would expect this to be a common need, but I seem to be wrong. Help, Advice, Pointers to things I missed in TFM, etc. all welcome. I'll summarize my findings to the list. I'm also reachable via gtalk at this addres. Thanks! JB ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Mon Aug 29 22:20:33 2005 From: marc at ena.com (Marc Powell) Date: Mon, 29 Aug 2005 15:20:33 -0500 Subject: Monitoring a matrix of load-balanced VirtualHosts? Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of JB Segal > Sent: Monday, August 29, 2005 3:09 PM > To: Nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Monitoring a matrix of load-balanced VirtualHosts? > > Hi. I've searched through the archives, the nagiosexchange site, and > google in general, but have yet to find a satisfactory answer to this: > > I'm running (ok, my employer is running and has been for a while now) > 1.2, talking to a variety of machines running various vintages of > RedHat and various versions of nrpe and the plugins package. > > I have a series of web servers - call them A, B and C - which are > running apache, which is serving a variety of VirtualHosts - let's > call them foo.com, bar.com and baz.com. > > Each machine responds to both www.(foo|bar|baz).com and > {hostname}.(foo|bar|baz).com (say: A.foo.com) > > I need to check each server for the aliveness of each VHost. > > I really am not sure how best to do this. Ok, I'm not really sure how > to do this in any sort of clean fashion. > > I would expect this to be a common need, but I seem to be wrong. > > Help, Advice, Pointers to things I missed in TFM, etc. all welcome. Perhaps I'm misunderstanding, but have you looked at check_http? It should be able to easily handle what you want using the -H, -I, -e and possibly -u arguments. Each machine would have at least 3 (or 6 if you want to also check host.foo.com) services associated with it; Website_foo.com, Website_bar.com and Website_baz.com, each of which uses check_http to verify the site is active and returning content you expect. -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From bjd at compudentsystems.com Mon Aug 29 22:43:21 2005 From: bjd at compudentsystems.com (Brian J. Dent) Date: Mon, 29 Aug 2005 13:43:21 -0700 Subject: NSClient on 2K3 64-bit OS Message-ID: Has anyone tried installing and running these clients under the 64-bit OS. I've got a 64-bit server and NSClient 2.0.1 fails to respond. I don't think there is a 64-bit version. Regards, bjd ~Brian J. Dent CompuDent Systems v (831) 649-2575, c (831) 224-2875, f (831) 649-0948 bjd at compudentsystems.com http://www.compudentsystems.com NOTE: This e-mail is confidential and is intended only for the recipient(s) listed. Unauthorized use or disclosure of this e-mail or any of the information in it is strictly prohibited. If you are not a listed recipient or someone authorized to receive e-mail on behalf of a listed recipient, please reply to the sender that the e-mail was misdirected and delete the e-mail. Thank you. -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 6626 bytes Desc: not available URL: From jailbait at gmail.com Mon Aug 29 23:34:12 2005 From: jailbait at gmail.com (JB Segal) Date: Mon, 29 Aug 2005 17:34:12 -0400 Subject: Monitoring a matrix of load-balanced VirtualHosts? In-Reply-To: References: Message-ID: <916aba350508291434493168d5@mail.gmail.com> On 8/29/05, Marc Powell wrote: > > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > > admin at lists.sourceforge.net] On Behalf Of JB Segal > > Sent: Monday, August 29, 2005 3:09 PM > > To: Nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Monitoring a matrix of load-balanced > VirtualHosts? > > > > Hi. I've searched through the archives, the nagiosexchange site, and > > google in general, but have yet to find a satisfactory answer to this: > > > > I'm running (ok, my employer is running and has been for a while now) > > 1.2, talking to a variety of machines running various vintages of > > RedHat and various versions of nrpe and the plugins package. > > > > I have a series of web servers - call them A, B and C - which are > > running apache, which is serving a variety of VirtualHosts - let's > > call them foo.com, bar.com and baz.com. > > > > Each machine responds to both www.(foo|bar|baz).com and > > {hostname}.(foo|bar|baz).com (say: A.foo.com) > > > > I need to check each server for the aliveness of each VHost. > > > > I really am not sure how best to do this. Ok, I'm not really sure how > > to do this in any sort of clean fashion. > > > > I would expect this to be a common need, but I seem to be wrong. > > > > Help, Advice, Pointers to things I missed in TFM, etc. all welcome. > > Perhaps I'm misunderstanding, but have you looked at check_http? It > should be able to easily handle what you want using the -H, -I, -e and > possibly -u arguments. Each machine would have at least 3 (or 6 if you > want to also check host.foo.com) services associated with it; > Website_foo.com, Website_bar.com and Website_baz.com, each of which uses > check_http to verify the site is active and returning content you > expect. > > -- > Marc To start with, thanks for responding. 2nd: I left out from my 1st mail the fact that I'd really really prefer to do this in as few cfg stanzas as possible, as 1) I'd like this solution to scale if, say, we were to end up with 20 webservers and 45 domains - I /do/ have to check host.foo.com per boss's reqests - so I'd love to not have to add another {number of websites} stanzas for each new server. 2) I just cleaned up the previous admin's installation and reduced 3000 lines of cfg to 800 lines, and I'd love to not have to expand back to that again right now. So, not to sound like a complete idiot - but probably unable to avoid it, I continue my query: I've spent a while (before I sent my 1st mail, even) staring at the check_http -h output and being... nonplussed. Unfortunately, that's been my response to most of the nagios docs. Your response puzzles me even more, by implying that the '-u' might be optional. I'll keep poking around, but if you have any suggestions - example cfg stanzas would be great - of how to put this together (especially if you can think of a way to put together a generalized service{} stanza so that I can A) just add a new domain one place, and B) just add the new host to the right hostgroup and have it all Do The Right Thing.) (No need to do my whole job for me, really. If you get so motivated, though... ;) Thanks! JB ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From misc at viceconsulting.co.nz Tue Aug 30 00:15:27 2005 From: misc at viceconsulting.co.nz (misc at viceconsulting.co.nz) Date: Tue, 30 Aug 2005 10:15:27 +1200 (NZST) Subject: Memory leak in 2.0b4 Message-ID: <49211.127.0.0.1.1125353727.squirrel@www.goldenfields.co.nz> Hi All, Seems to be a memory leak in Nagios 2.0b4. I've just upgraded my 6 Nagios servers to 2.0b4 (5 are distributed, one is a central Nagios server). Was previously using 2.0b2. All 6 of them are exhibiting identical problems. I restart Nagios once every 24 hours. With 2.0b4: Within 24 hours, memory went from 80% free to 40% free, and swap from 512mb free to around 200mb free. With 2.0b2: Within 24 hours, Memory drops about 10%, swap is untouched. Additionally 2 of my distributed servers crashed stone cold. I know my servers are losing memory and swap because I graph these metrics (data polled every 5 minutes). Is this a known issue? Is there any info I can supply to help developers troubleshoot this? Needless to say I've downgraded back to 2.0b2 in the interim. Cheers Alex. ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From davea at support.kcm.org Tue Aug 30 00:42:37 2005 From: davea at support.kcm.org (Dave Augustus) Date: Mon, 29 Aug 2005 17:42:37 -0500 Subject: Problem using snpp.pl for notifications In-Reply-To: References: <1125259665.25170.10.camel@springer> Message-ID: <1125355357.3942.2.camel@kcm40202> OK I tried your idea. Here is the response I got: Enter file name: /usr/bin/snpp -m test davea embedded perl plugin return code and output was: 3 & '**ePN /usr/bin/snpp: "Can't use string ("") as a subroutine ref while"strict refs" in use at p1.pl line 260,". At this point, I appears that Sendpage will NOT work with Nagios 2.0 .... sigh.... So I can use quickpage at this point although sendpage looks more mature. Any ideas? Dave On Sun, 2005-08-28 at 17:13 -0400, Subhendu Ghosh wrote: > On Sun, 28 Aug 2005, Dave Augustus wrote: > > > I woke up this morning to find that one of my servers died. However, I > > didn't receive any notifications on my alpha pager. > > > > Checking /var/log/messages has numerous entries like the following: > > > > Aug 28 10:14:56 monitor nagios: **ePN failed to compile /usr/bin/snpp: > > "Global symbol "$cmd" requires explicit package name at (eval 6) li > > ne 156, Global symbol "$arg" requires explicit package name at (eval 6) > > line 163. Global symbol "$cmd" requires explicit package name at ( > > eval 6) line 165. Global symbol "$arg" requires expl" at /usr/bin/p1.pl > > line 153 > > > > I use snpp.pl for alpha notifications. Here is my misc_command for > > snpp: > > > > define command { > > command_name host-notify-by-tap > > command_line /usr/bin/snpp -d -n -m "Service: $SERVICEDESC$ Host: > > $HOSTALIAS$ Address: $HOSTADDRESS$ State: $SERVICESTATE$ Info: $OUTPUT$ > > Date: $DATETIME$" $CONTACTPAGER$ > > } > > > > Running the following on Centos4: > > nagios-nrpe-2.0-3.2 > > nagios-2.0-0.b4.1 > > nagios-plugins-1.4.1-1.2 > > nagios-plugins-nrpe-2.0-3.2 > > > > If I run snpp from the command line, it works fine. Is there a parameter > > that I need to pass for it to invoke snpp properly? > > > > > in the nagios tarball is a program call mini_epn.c - it mimics Nagios' > embeded Perl interpreter. > > You might want to try running snpp.pl thru that to see if it is ePN safe. > -- Dave Augustus ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From RLAdams at AdamsInfoServ.Com Tue Aug 30 02:12:21 2005 From: RLAdams at AdamsInfoServ.Com (Russell Adams) Date: Mon, 29 Aug 2005 19:12:21 -0500 Subject: Problem using snpp.pl for notifications In-Reply-To: <1125355357.3942.2.camel@kcm40202> References: <1125259665.25170.10.camel@springer> <1125355357.3942.2.camel@kcm40202> Message-ID: <20050830001221.GA31290@keroberos> What if you avoid embedded perl? Russell On Mon, Aug 29, 2005 at 05:42:37PM -0500, Dave Augustus wrote: > OK I tried your idea. Here is the response I got: > > Enter file name: /usr/bin/snpp -m test davea > embedded perl plugin return code and output was: 3 & > '**ePN /usr/bin/snpp: "Can't use string ("") as a subroutine ref > while"strict refs" in use at p1.pl line 260,". > > At this point, I appears that Sendpage will NOT work with Nagios > 2.0 .... sigh.... > > So I can use quickpage at this point although sendpage looks more > mature. > > Any ideas? > > Dave > > > > > > On Sun, 2005-08-28 at 17:13 -0400, Subhendu Ghosh wrote: > > On Sun, 28 Aug 2005, Dave Augustus wrote: > > > > > I woke up this morning to find that one of my servers died. However, I > > > didn't receive any notifications on my alpha pager. > > > > > > Checking /var/log/messages has numerous entries like the following: > > > > > > Aug 28 10:14:56 monitor nagios: **ePN failed to compile /usr/bin/snpp: > > > "Global symbol "$cmd" requires explicit package name at (eval 6) li > > > ne 156, Global symbol "$arg" requires explicit package name at (eval 6) > > > line 163. Global symbol "$cmd" requires explicit package name at ( > > > eval 6) line 165. Global symbol "$arg" requires expl" at /usr/bin/p1.pl > > > line 153 > > > > > > I use snpp.pl for alpha notifications. Here is my misc_command for > > > snpp: > > > > > > define command { > > > command_name host-notify-by-tap > > > command_line /usr/bin/snpp -d -n -m "Service: $SERVICEDESC$ Host: > > > $HOSTALIAS$ Address: $HOSTADDRESS$ State: $SERVICESTATE$ Info: $OUTPUT$ > > > Date: $DATETIME$" $CONTACTPAGER$ > > > } > > > > > > Running the following on Centos4: > > > nagios-nrpe-2.0-3.2 > > > nagios-2.0-0.b4.1 > > > nagios-plugins-1.4.1-1.2 > > > nagios-plugins-nrpe-2.0-3.2 > > > > > > If I run snpp from the command line, it works fine. Is there a parameter > > > that I need to pass for it to invoke snpp properly? > > > > > > > > > in the nagios tarball is a program call mini_epn.c - it mimics Nagios' > > embeded Perl interpreter. > > > > You might want to try running snpp.pl thru that to see if it is ePN safe. > > > -- > Dave Augustus > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > ----------------------------- Russell Adams RLAdams at AdamsInfoServ.com http://www.adamsinfoserv.com/ ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From cguo at at-sd.com Tue Aug 30 01:55:41 2005 From: cguo at at-sd.com (Chris Guo) Date: Mon, 29 Aug 2005 16:55:41 -0700 Subject: Nagios still send the notification email after the notification function was disabled Message-ID: <000601c5acf5$29b463a0$df03a8c0@archnet2.atgsd.com> Hi, All, We are using nagios 1.2 as the network monitoring system to monitor our network, and we found out it still send the notification email after we disabled the notification email, is this a known bug? Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: From marc at ena.com Tue Aug 30 04:02:46 2005 From: marc at ena.com (Marc Powell) Date: Mon, 29 Aug 2005 21:02:46 -0500 Subject: Nagios still send the notification email after the notification function was disabled Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Chris Guo > Sent: Monday, August 29, 2005 6:56 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Nagios still send the notification email after the > notification function was disabled > > Hi, All, > > > > We are using nagios 1.2 as the network monitoring system to monitor our > network, and we found out it still send the notification email after we > disabled the notification email, is this a known bug? No. -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Tue Aug 30 09:51:56 2005 From: ae at op5.se (Andreas Ericsson) Date: Tue, 30 Aug 2005 09:51:56 +0200 Subject: statusmap.cgi can't find libgd.so.2 in /usr/local/lib In-Reply-To: <20050829184002.19448.qmail@web54712.mail.yahoo.com> References: <20050829184002.19448.qmail@web54712.mail.yahoo.com> Message-ID: <4314101C.4070401@op5.se> John Christian wrote: > Hello, > > I've RTFM, Googled, and checked the list archives but > can't seem to really fix this issue. Any assistance > would be very appreciated! > > It seems that statusmap.cgi in nagios-plugins-1.4.1 is > not finding libgd.so.2 in /usr/local/lib. If I copy > libgd.so.2 from /usr/local/lib to /usr/lib, > nagios-plugins finds it just fine and statusmap.cgi > works fine. > > How do I get nagios-plugins-1.4.1 to "see" the > libgd.so.2 library in /usr/local/lib? > echo /usr/local/lib >> /etc/ld.so.conf; ldconfig > BTW: I did an ldd of all the Nagios CGI's and there > are other CGI's that DO find other libraries in > /usr/local/lib. For example, trends.cgi found > libfreetype.so.6 in /usr/local/lib just fine. Seems > strange that statusmap.cgi doesn't find what it needs > in /usr/local/lib. > Those were probably compiled with a static library location, or with /usr/local/lib added to the library path in the binary. Normally it just links to libc.so, for instance, and not /lib/libc.so. The dynamic link-loader takes care of looking in the configured path to find the proper library. This is good because it lets you run dynamically compiled binaries against a debugging library (for instance) without having to re-compile them. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Tue Aug 30 09:59:00 2005 From: ae at op5.se (Andreas Ericsson) Date: Tue, 30 Aug 2005 09:59:00 +0200 Subject: Monitoring a matrix of load-balanced VirtualHosts? In-Reply-To: <916aba350508291434493168d5@mail.gmail.com> References: <916aba350508291434493168d5@mail.gmail.com> Message-ID: <431411C4.4030708@op5.se> JB Segal wrote: > On 8/29/05, Marc Powell wrote: > >> >>>-----Original Message----- >>>From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- >>>admin at lists.sourceforge.net] On Behalf Of JB Segal >>>Sent: Monday, August 29, 2005 3:09 PM >>>To: Nagios-users at lists.sourceforge.net >>>Subject: [Nagios-users] Monitoring a matrix of load-balanced >> >>VirtualHosts? >> >>>Hi. I've searched through the archives, the nagiosexchange site, and >>>google in general, but have yet to find a satisfactory answer to this: >>> >>>I'm running (ok, my employer is running and has been for a while now) >>>1.2, talking to a variety of machines running various vintages of >>>RedHat and various versions of nrpe and the plugins package. >>> >>>I have a series of web servers - call them A, B and C - which are >>>running apache, which is serving a variety of VirtualHosts - let's >>>call them foo.com, bar.com and baz.com. >>> >>>Each machine responds to both www.(foo|bar|baz).com and >>>{hostname}.(foo|bar|baz).com (say: A.foo.com) >>> >>>I need to check each server for the aliveness of each VHost. >>> >>>I really am not sure how best to do this. Ok, I'm not really sure how >>>to do this in any sort of clean fashion. >>> >>>I would expect this to be a common need, but I seem to be wrong. >>> >>>Help, Advice, Pointers to things I missed in TFM, etc. all welcome. >> >>Perhaps I'm misunderstanding, but have you looked at check_http? It >>should be able to easily handle what you want using the -H, -I, -e and >>possibly -u arguments. Each machine would have at least 3 (or 6 if you >>want to also check host.foo.com) services associated with it; >>Website_foo.com, Website_bar.com and Website_baz.com, each of which uses >>check_http to verify the site is active and returning content you >>expect. >> >>-- >>Marc > > > To start with, thanks for responding. > > 2nd: I left out from my 1st mail the fact that I'd really really > prefer to do this in as few cfg stanzas as possible, as 1) I'd like > this solution to scale if, say, we were to end up with 20 webservers > and 45 domains - I /do/ have to check host.foo.com per boss's reqests > - so I'd love to not have to add another {number of websites} stanzas > for each new server. > 2) I just cleaned up the previous admin's installation and reduced > 3000 lines of cfg to 800 lines, and I'd love to not have to expand > back to that again right now. > > So, not to sound like a complete idiot - but probably unable to avoid > it, I continue my query: > > I've spent a while (before I sent my 1st mail, even) staring at the > check_http -h output and being... nonplussed. Unfortunately, that's > been my response to most of the nagios docs. > With 1.2 your best bet would probably be to write a wrapper script that checks all the vhosts. check_http and some clever sed'ing should do the trick, really. With 2.0 you can assign services to hostgroups (I'm not sure that worked in 1.2...) > Your response puzzles me even more, by implying that the '-u' might be optional. > It is. If it's not specified, the url requested is '/'. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Tue Aug 30 10:04:19 2005 From: ae at op5.se (Andreas Ericsson) Date: Tue, 30 Aug 2005 10:04:19 +0200 Subject: Memory leak in 2.0b4 In-Reply-To: <49211.127.0.0.1.1125353727.squirrel@www.goldenfields.co.nz> References: <49211.127.0.0.1.1125353727.squirrel@www.goldenfields.co.nz> Message-ID: <43141303.9060103@op5.se> misc at viceconsulting.co.nz wrote: > Hi All, > > Seems to be a memory leak in Nagios 2.0b4. > > I've just upgraded my 6 Nagios servers to 2.0b4 (5 are distributed, one is > a central Nagios server). Was previously using 2.0b2. > > All 6 of them are exhibiting identical problems. > > I restart Nagios once every 24 hours. > > With 2.0b4: Within 24 hours, memory went from 80% free to 40% free, and > swap from 512mb free to around 200mb free. > > With 2.0b2: Within 24 hours, Memory drops about 10%, swap is untouched. > > Additionally 2 of my distributed servers crashed stone cold. > > I know my servers are losing memory and swap because I graph these metrics > (data polled every 5 minutes). > > Is this a known issue? Is there any info I can supply to help developers > troubleshoot this? > Architecture, OS flavour and version, compiler flavour and version, library versions, Nagios ./configure options (not paths) and such would be the absolute minimum, I suppose. There are historically problems with embedded perl, but according to Stanley Hopcroft those issues have mostly been resolved (although I believe poorly written perl-scripts can still make it leak quite a bit, especially with perl version prior 5.8). For reference though; On Openwall GNU/*/Linux, without embedded perl, Nagios 2.04b leaks nothing at all. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From amontibello at gmail.com Tue Aug 30 11:32:26 2005 From: amontibello at gmail.com (Anthony Montibello) Date: Tue, 30 Aug 2005 05:32:26 -0400 Subject: NSClient on 2K3 64-bit OS In-Reply-To: References: Message-ID: Try NC_Net - It was designed as a drop in replacement for ns_client. it should work because it was writen in C#, and for the most part only uses Dot NEt v1.1 thus the VM should take care of the platform specific issues. nc_net is also capable of passive checks via Send_NSCA. Also you may want to look into some of the other windows plugins like ns_Client++ NS_Client++ shares the benefits of ns_Client and nrpe TOny On 8/29/05, Brian J. Dent wrote: > > Has anyone tried installing and running these clients under the 64-bit OS. > I've got a 64-bit server and NSClient 2.0.1 fails to respond. I don't > think > there is a 64-bit version. > > Regards, > bjd > > ~Brian J. Dent > CompuDent Systems > > v (831) 649-2575, c (831) 224-2875, f (831) 649-0948 > bjd at compudentsystems.com > http://www.compudentsystems.com > > NOTE: This e-mail is confidential and is intended only for the > recipient(s) > listed. Unauthorized use or disclosure of this e-mail or any of the > information in it is strictly prohibited. If you are not a listed > recipient > or someone authorized to receive e-mail on behalf of a listed recipient, > please reply to the sender that the e-mail was misdirected and delete the > e-mail. Thank you. > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From az at whoever.org Tue Aug 30 12:09:19 2005 From: az at whoever.org (Az) Date: Tue, 30 Aug 2005 20:09:19 +1000 Subject: Change of display of status on hard change only. Message-ID: <4314304F.4040806@whoever.org> Hi all, After poking through the Nagios (v1.2) configs, I gather there's no way (barring code changes) to get the cgi to only show "red", for example, once the state change is hard? In a call centre/NOC situation, red seems to cause panic... but if its only a soft state change, we dont want them to see red until its a hard fault. Setting max_check_attempts to 1 would theoretically do the job, but thats not what we want. I didnt see anything that might do the job in the v2 docs either. Any suggestions for work arounds? Feature request perhaps? Cheers. ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From chris at aidworld.org Tue Aug 30 12:16:30 2005 From: chris at aidworld.org (Chris Wilson) Date: Tue, 30 Aug 2005 11:16:30 +0100 Subject: Monitoring a matrix of load-balanced VirtualHosts? In-Reply-To: <431411C4.4030708@op5.se> References: <916aba350508291434493168d5@mail.gmail.com> <431411C4.4030708@op5.se> Message-ID: <1125396978.1013.19.camel@localhost> Hi Andreas, > > 2nd: I left out from my 1st mail the fact that I'd really really > > prefer to do this in as few cfg stanzas as possible, as 1) I'd like > > this solution to scale if, say, we were to end up with 20 webservers > > and 45 domains - I /do/ have to check host.foo.com per boss's reqests > > - so I'd love to not have to add another {number of websites} stanzas > > for each new server. > > 2) I just cleaned up the previous admin's installation and reduced > > 3000 lines of cfg to 800 lines, and I'd love to not have to expand > > back to that again right now. > With 1.2 your best bet would probably be to write a wrapper script that > checks all the vhosts. check_http and some clever sed'ing should do the > trick, really. With 2.0 you can assign services to hostgroups (I'm not > sure that worked in 1.2...) It does work with 1.2 :-) > [chris at dev chris]$ grep hostgroup_name /usr/local/nagios/etc/services.cfg > hostgroup_name loband-virtual-ips It seems like a good option, although the status CGI might get a little cramped (and slow) if you had a lot of servers and a lot of websites. Cheers, Chris. -- (aidworld) chris wilson | chief engineer (chris at aidworld.org) ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jamie.baddeley at vpc.co.nz Tue Aug 30 13:04:24 2005 From: jamie.baddeley at vpc.co.nz (Jamie Baddeley) Date: Tue, 30 Aug 2005 23:04:24 +1200 Subject: Flap detection ignored In-Reply-To: <40080721.1040704@sd.com> References: <40080721.1040704@sd.com> Message-ID: <1125399864.12094.19.camel@munter> I have exactly the same problem. Did you ever find what it was? jamie On Fri, 2004-01-16 at 17:45 +0200, Marco Supino wrote: > Hi, > > I have a problem with the flap detection, its enabled in the nagios.cfg > file, and a general template enables it for most services, i have two > services which i have specificaly defined flap detection off, still, > they both enter the "service flapping" state if the status changes too > often, > > in the "view config", i can see that the services have "No" in the flap > detection table, > > Anyone has this working like it should be ? > > Marco. > > > > ------------------------------------------------------- > The SF.Net email is sponsored by EclipseCon 2004 > Premiere Conference on Open Tools Development and Integration > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. > http://www.eclipsecon.org/osdn > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Jamie Baddeley ViewPoint Consulting Ltd ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From davea at support.kcm.org Tue Aug 30 13:26:23 2005 From: davea at support.kcm.org (Dave Augustus) Date: Tue, 30 Aug 2005 06:26:23 -0500 Subject: Problem using snpp.pl for notifications In-Reply-To: <20050830001221.GA31290@keroberos> References: <1125259665.25170.10.camel@springer> <1125355357.3942.2.camel@kcm40202> <20050830001221.GA31290@keroberos> Message-ID: <1125401193.5531.2.camel@springer> I am new to Nagios. So I am not sure how you *avoid embedded perl*. I just set up the misc commands according to what worked. How does one avoid embedded perl and what are the benefits and drawbacks? Dave On Mon, 2005-08-29 at 19:12 -0500, Russell Adams wrote: > What if you avoid embedded perl? > > Russell > > On Mon, Aug 29, 2005 at 05:42:37PM -0500, Dave Augustus wrote: > > OK I tried your idea. Here is the response I got: > > > > Enter file name: /usr/bin/snpp -m test davea > > embedded perl plugin return code and output was: 3 & > > '**ePN /usr/bin/snpp: "Can't use string ("") as a subroutine ref > > while"strict refs" in use at p1.pl line 260,". > > > > At this point, I appears that Sendpage will NOT work with Nagios > > 2.0 .... sigh.... > > > > So I can use quickpage at this point although sendpage looks more > > mature. > > > > Any ideas? > > > > Dave > > > > > > > > > > > > On Sun, 2005-08-28 at 17:13 -0400, Subhendu Ghosh wrote: > > > On Sun, 28 Aug 2005, Dave Augustus wrote: > > > > > > > I woke up this morning to find that one of my servers died. However, I > > > > didn't receive any notifications on my alpha pager. > > > > > > > > Checking /var/log/messages has numerous entries like the following: > > > > > > > > Aug 28 10:14:56 monitor nagios: **ePN failed to compile /usr/bin/snpp: > > > > "Global symbol "$cmd" requires explicit package name at (eval 6) li > > > > ne 156, Global symbol "$arg" requires explicit package name at (eval 6) > > > > line 163. Global symbol "$cmd" requires explicit package name at ( > > > > eval 6) line 165. Global symbol "$arg" requires expl" at /usr/bin/p1.pl > > > > line 153 > > > > > > > > I use snpp.pl for alpha notifications. Here is my misc_command for > > > > snpp: > > > > > > > > define command { > > > > command_name host-notify-by-tap > > > > command_line /usr/bin/snpp -d -n -m "Service: $SERVICEDESC$ Host: > > > > $HOSTALIAS$ Address: $HOSTADDRESS$ State: $SERVICESTATE$ Info: $OUTPUT$ > > > > Date: $DATETIME$" $CONTACTPAGER$ > > > > } > > > > > > > > Running the following on Centos4: > > > > nagios-nrpe-2.0-3.2 > > > > nagios-2.0-0.b4.1 > > > > nagios-plugins-1.4.1-1.2 > > > > nagios-plugins-nrpe-2.0-3.2 > > > > > > > > If I run snpp from the command line, it works fine. Is there a parameter > > > > that I need to pass for it to invoke snpp properly? > > > > > > > > > > > > > in the nagios tarball is a program call mini_epn.c - it mimics Nagios' > > > embeded Perl interpreter. > > > > > > You might want to try running snpp.pl thru that to see if it is ePN safe. > > > > > -- > > Dave Augustus > > > > > > > > ------------------------------------------------------- > > SF.Net email is Sponsored by the Better Software Conference & EXPO > > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > > > ----------------------------- > Russell Adams > RLAdams at AdamsInfoServ.com > http://www.adamsinfoserv.com/ > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nagios-user at proy.org Tue Aug 30 13:58:35 2005 From: nagios-user at proy.org (Patrick Proy) Date: Tue, 30 Aug 2005 13:58:35 +0200 Subject: Problem using snpp.pl for notifications In-Reply-To: <1125401193.5531.2.camel@springer> References: <1125401193.5531.2.camel@springer> Message-ID: <20050830115836.ABB96AB6E1@www.manubulon.com> Add /usr/bin/perl in the command definition. Benefits : script will work. Drawbacks : performance. Patrick -----Message d'origine----- De : nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] De la part de Dave Augustus Envoy? : mardi 30 ao?t 2005 13:26 ? : Russell Adams Cc : nagios-users at lists.sourceforge.net Objet : Re: [Nagios-users] Problem using snpp.pl for notifications I am new to Nagios. So I am not sure how you *avoid embedded perl*. I just set up the misc commands according to what worked. How does one avoid embedded perl and what are the benefits and drawbacks? Dave On Mon, 2005-08-29 at 19:12 -0500, Russell Adams wrote: > What if you avoid embedded perl? > > Russell > > On Mon, Aug 29, 2005 at 05:42:37PM -0500, Dave Augustus wrote: > > OK I tried your idea. Here is the response I got: > > > > Enter file name: /usr/bin/snpp -m test davea embedded perl plugin > > return code and output was: 3 & '**ePN /usr/bin/snpp: "Can't use > > string ("") as a subroutine ref while"strict refs" in use at p1.pl > > line 260,". > > > > At this point, I appears that Sendpage will NOT work with Nagios 2.0 > > .... sigh.... > > > > So I can use quickpage at this point although sendpage looks more > > mature. > > > > Any ideas? > > > > Dave > > > > > > > > > > > > On Sun, 2005-08-28 at 17:13 -0400, Subhendu Ghosh wrote: > > > On Sun, 28 Aug 2005, Dave Augustus wrote: > > > > > > > I woke up this morning to find that one of my servers died. > > > > However, I didn't receive any notifications on my alpha pager. > > > > > > > > Checking /var/log/messages has numerous entries like the following: > > > > > > > > Aug 28 10:14:56 monitor nagios: **ePN failed to compile /usr/bin/snpp: > > > > "Global symbol "$cmd" requires explicit package name at (eval 6) > > > > li ne 156, Global symbol "$arg" requires explicit package name > > > > at (eval 6) line 163. Global symbol "$cmd" requires explicit > > > > package name at ( eval 6) line 165. Global symbol "$arg" > > > > requires expl" at /usr/bin/p1.pl line 153 > > > > > > > > I use snpp.pl for alpha notifications. Here is my misc_command > > > > for > > > > snpp: > > > > > > > > define command { > > > > command_name host-notify-by-tap > > > > command_line /usr/bin/snpp -d -n -m "Service: $SERVICEDESC$ Host: > > > > $HOSTALIAS$ Address: $HOSTADDRESS$ State: $SERVICESTATE$ Info: > > > > $OUTPUT$ > > > > Date: $DATETIME$" $CONTACTPAGER$ > > > > } > > > > > > > > Running the following on Centos4: > > > > nagios-nrpe-2.0-3.2 > > > > nagios-2.0-0.b4.1 > > > > nagios-plugins-1.4.1-1.2 > > > > nagios-plugins-nrpe-2.0-3.2 > > > > > > > > If I run snpp from the command line, it works fine. Is there a > > > > parameter that I need to pass for it to invoke snpp properly? > > > > > > > > > > > > > in the nagios tarball is a program call mini_epn.c - it mimics Nagios' > > > embeded Perl interpreter. > > > > > > You might want to try running snpp.pl thru that to see if it is ePN safe. > > > > > -- > > Dave Augustus > > > > > > > > ------------------------------------------------------- > > SF.Net email is Sponsored by the Better Software Conference & EXPO > > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > > Practices Agile & Plan-Driven Development * Managing Projects & > > Teams * Testing & QA Security * Process Improvement & Measurement * > > http://www.sqe.com/bsce5sf > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > > ::: Messages without supporting info will risk being sent to > > /dev/null > > > > > ----------------------------- > Russell Adams > RLAdams at AdamsInfoServ.com > http://www.adamsinfoserv.com/ > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > Practices Agile & Plan-Driven Development * Managing Projects & Teams > * Testing & QA Security * Process Improvement & Measurement * > http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From davea at support.kcm.org Tue Aug 30 14:05:50 2005 From: davea at support.kcm.org (Dave Augustus) Date: Tue, 30 Aug 2005 07:05:50 -0500 Subject: Problem using snpp.pl for notifications In-Reply-To: <20050830115836.ABB96AB6E1@www.manubulon.com> References: <20050830115836.ABB96AB6E1@www.manubulon.com> Message-ID: <1125403561.6675.4.camel@springer> Thanks Patrick for the information. A small light bulb has just appeared above my head. :) So using the embedded perl is *least expensive* ? What about Quickpage versus Sendpage? Quickpage is compiled C program and Sendpage is perl. Would embedded perl calling Quickpage be *less expensive* than using Sendpage with /usr/bin/perl ? Dave On Tue, 2005-08-30 at 13:58 +0200, Patrick Proy wrote: > Add /usr/bin/perl in the command definition. > Benefits : script will work. > Drawbacks : performance. > > Patrick > > -----Message d'origine----- > De : nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] De la part de Dave > Augustus > Envoy? : mardi 30 ao?t 2005 13:26 > ? : Russell Adams > Cc : nagios-users at lists.sourceforge.net > Objet : Re: [Nagios-users] Problem using snpp.pl for notifications > > I am new to Nagios. So I am not sure how you *avoid embedded perl*. I just > set up the misc commands according to what worked. > > How does one avoid embedded perl and what are the benefits and drawbacks? > > Dave > > > > On Mon, 2005-08-29 at 19:12 -0500, Russell Adams wrote: > > What if you avoid embedded perl? > > > > Russell > > > > On Mon, Aug 29, 2005 at 05:42:37PM -0500, Dave Augustus wrote: > > > OK I tried your idea. Here is the response I got: > > > > > > Enter file name: /usr/bin/snpp -m test davea embedded perl plugin > > > return code and output was: 3 & '**ePN /usr/bin/snpp: "Can't use > > > string ("") as a subroutine ref while"strict refs" in use at p1.pl > > > line 260,". > > > > > > At this point, I appears that Sendpage will NOT work with Nagios 2.0 > > > .... sigh.... > > > > > > So I can use quickpage at this point although sendpage looks more > > > mature. > > > > > > Any ideas? > > > > > > Dave > > > > > > > > > > > > > > > > > > On Sun, 2005-08-28 at 17:13 -0400, Subhendu Ghosh wrote: > > > > On Sun, 28 Aug 2005, Dave Augustus wrote: > > > > > > > > > I woke up this morning to find that one of my servers died. > > > > > However, I didn't receive any notifications on my alpha pager. > > > > > > > > > > Checking /var/log/messages has numerous entries like the following: > > > > > > > > > > Aug 28 10:14:56 monitor nagios: **ePN failed to compile > /usr/bin/snpp: > > > > > "Global symbol "$cmd" requires explicit package name at (eval 6) > > > > > li ne 156, Global symbol "$arg" requires explicit package name > > > > > at (eval 6) line 163. Global symbol "$cmd" requires explicit > > > > > package name at ( eval 6) line 165. Global symbol "$arg" > > > > > requires expl" at /usr/bin/p1.pl line 153 > > > > > > > > > > I use snpp.pl for alpha notifications. Here is my misc_command > > > > > for > > > > > snpp: > > > > > > > > > > define command { > > > > > command_name host-notify-by-tap > > > > > command_line /usr/bin/snpp -d -n -m "Service: $SERVICEDESC$ > Host: > > > > > $HOSTALIAS$ Address: $HOSTADDRESS$ State: $SERVICESTATE$ Info: > > > > > $OUTPUT$ > > > > > Date: $DATETIME$" $CONTACTPAGER$ > > > > > } > > > > > > > > > > Running the following on Centos4: > > > > > nagios-nrpe-2.0-3.2 > > > > > nagios-2.0-0.b4.1 > > > > > nagios-plugins-1.4.1-1.2 > > > > > nagios-plugins-nrpe-2.0-3.2 > > > > > > > > > > If I run snpp from the command line, it works fine. Is there a > > > > > parameter that I need to pass for it to invoke snpp properly? > > > > > > > > > > > > > > > > > in the nagios tarball is a program call mini_epn.c - it mimics Nagios' > > > > > embeded Perl interpreter. > > > > > > > > You might want to try running snpp.pl thru that to see if it is ePN > safe. > > > > > > > -- > > > Dave Augustus > > > > > > > > > > > > ------------------------------------------------------- > > > SF.Net email is Sponsored by the Better Software Conference & EXPO > > > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > > > Practices Agile & Plan-Driven Development * Managing Projects & > > > Teams * Testing & QA Security * Process Improvement & Measurement * > > > http://www.sqe.com/bsce5sf > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > > > ::: Messages without supporting info will risk being sent to > > > /dev/null > > > > > > > > ----------------------------- > > Russell Adams > > RLAdams at AdamsInfoServ.com > > http://www.adamsinfoserv.com/ > > > > > > ------------------------------------------------------- > > SF.Net email is Sponsored by the Better Software Conference & EXPO > > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > > Practices Agile & Plan-Driven Development * Managing Projects & Teams > > * Testing & QA Security * Process Improvement & Measurement * > > http://www.sqe.com/bsce5sf > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Tue Aug 30 14:19:44 2005 From: ae at op5.se (Andreas Ericsson) Date: Tue, 30 Aug 2005 14:19:44 +0200 Subject: Problem using snpp.pl for notifications In-Reply-To: <1125403561.6675.4.camel@springer> References: <20050830115836.ABB96AB6E1@www.manubulon.com> <1125403561.6675.4.camel@springer> Message-ID: <43144EE0.8030404@op5.se> Dave Augustus wrote: > Thanks Patrick for the information. A small light bulb has just appeared > above my head. :) > > > > So using the embedded perl is *least expensive* ? > > What about Quickpage versus Sendpage? Quickpage is compiled C program > and Sendpage is perl. Would embedded perl calling Quickpage be *less > expensive* than using Sendpage with /usr/bin/perl ? > Naturally. Running compiled code is always a lot faster than running a script. The embedded perl interpreter compiles the (perl) script the first time it's run and then caches the compiled version of it in memory, making it a lot faster to call again later. A much larger benefit can be made by removing the -wT switches that are in some of the hashbang lines. Perl compiles its script ridiculously slow when those are enabled (typically 5 times slower). > Dave > > > On Tue, 2005-08-30 at 13:58 +0200, Patrick Proy wrote: > >>Add /usr/bin/perl in the command definition. >>Benefits : script will work. >>Drawbacks : performance. >> >>Patrick >> >>-----Message d'origine----- >>De : nagios-users-admin at lists.sourceforge.net >>[mailto:nagios-users-admin at lists.sourceforge.net] De la part de Dave >>Augustus >>Envoy?? : mardi 30 ao??t 2005 13:26 >>?? : Russell Adams >>Cc : nagios-users at lists.sourceforge.net >>Objet : Re: [Nagios-users] Problem using snpp.pl for notifications >> >>I am new to Nagios. So I am not sure how you *avoid embedded perl*. I just >>set up the misc commands according to what worked. >> >>How does one avoid embedded perl and what are the benefits and drawbacks? >> >>Dave >> >> >> >>On Mon, 2005-08-29 at 19:12 -0500, Russell Adams wrote: >> >>>What if you avoid embedded perl? >>> >>>Russell >>> >>>On Mon, Aug 29, 2005 at 05:42:37PM -0500, Dave Augustus wrote: >>> >>>>OK I tried your idea. Here is the response I got: >>>> >>>>Enter file name: /usr/bin/snpp -m test davea embedded perl plugin >>>>return code and output was: 3 & '**ePN /usr/bin/snpp: "Can't use >>>>string ("") as a subroutine ref while"strict refs" in use at p1.pl >>>>line 260,". >>>> >>>>At this point, I appears that Sendpage will NOT work with Nagios 2.0 >>>>.... sigh.... >>>> >>>>So I can use quickpage at this point although sendpage looks more >>>>mature. >>>> >>>>Any ideas? >>>> >>>>Dave >>>> >>>> >>>> >>>> >>>> >>>>On Sun, 2005-08-28 at 17:13 -0400, Subhendu Ghosh wrote: >>>> >>>>>On Sun, 28 Aug 2005, Dave Augustus wrote: >>>>> >>>>> >>>>>>I woke up this morning to find that one of my servers died. >>>>>>However, I didn't receive any notifications on my alpha pager. >>>>>> >>>>>>Checking /var/log/messages has numerous entries like the following: >>>>>> >>>>>>Aug 28 10:14:56 monitor nagios: **ePN failed to compile >> >>/usr/bin/snpp: >> >>>>>>"Global symbol "$cmd" requires explicit package name at (eval 6) >>>>>>li ne 156, Global symbol "$arg" requires explicit package name >>>>>>at (eval 6) line 163. Global symbol "$cmd" requires explicit >>>>>>package name at ( eval 6) line 165. Global symbol "$arg" >>>>>>requires expl" at /usr/bin/p1.pl line 153 >>>>>> >>>>>>I use snpp.pl for alpha notifications. Here is my misc_command >>>>>>for >>>>>>snpp: >>>>>> >>>>>>define command { >>>>>> command_name host-notify-by-tap >>>>>> command_line /usr/bin/snpp -d -n -m "Service: $SERVICEDESC$ >> >>Host: >> >>>>>>$HOSTALIAS$ Address: $HOSTADDRESS$ State: $SERVICESTATE$ Info: >>>>>>$OUTPUT$ >>>>>>Date: $DATETIME$" $CONTACTPAGER$ >>>>>> } >>>>>> >>>>>>Running the following on Centos4: >>>>>>nagios-nrpe-2.0-3.2 >>>>>>nagios-2.0-0.b4.1 >>>>>>nagios-plugins-1.4.1-1.2 >>>>>>nagios-plugins-nrpe-2.0-3.2 >>>>>> >>>>>>If I run snpp from the command line, it works fine. Is there a >>>>>>parameter that I need to pass for it to invoke snpp properly? >>>>>> >>>>> >>>>> >>>>>in the nagios tarball is a program call mini_epn.c - it mimics Nagios' >> >>>>>embeded Perl interpreter. >>>>> >>>>>You might want to try running snpp.pl thru that to see if it is ePN >> >>safe. >> >>>>-- >>>>Dave Augustus >>>> >>>> >>>> >>>>------------------------------------------------------- >>>>SF.Net email is Sponsored by the Better Software Conference & EXPO >>>>September 19-22, 2005 * San Francisco, CA * Development Lifecycle >>>>Practices Agile & Plan-Driven Development * Managing Projects & >>>>Teams * Testing & QA Security * Process Improvement & Measurement * >>>>http://www.sqe.com/bsce5sf >>>>_______________________________________________ >>>>Nagios-users mailing list >>>>Nagios-users at lists.sourceforge.net >>>>https://lists.sourceforge.net/lists/listinfo/nagios-users >>>>::: Please include Nagios version, plugin version (-v) and OS when >> >>reporting any issue. >> >>>>::: Messages without supporting info will risk being sent to >>>>/dev/null >>>> >>>> >>> >>>----------------------------- >>>Russell Adams >>>RLAdams at AdamsInfoServ.com >>>http://www.adamsinfoserv.com/ >>> >>> >>>------------------------------------------------------- >>>SF.Net email is Sponsored by the Better Software Conference & EXPO >>>September 19-22, 2005 * San Francisco, CA * Development Lifecycle >>>Practices Agile & Plan-Driven Development * Managing Projects & Teams >>>* Testing & QA Security * Process Improvement & Measurement * >>>http://www.sqe.com/bsce5sf >>>_______________________________________________ >>>Nagios-users mailing list >>>Nagios-users at lists.sourceforge.net >>>https://lists.sourceforge.net/lists/listinfo/nagios-users >>>::: Please include Nagios version, plugin version (-v) and OS when >> >>reporting any issue. >> >>>::: Messages without supporting info will risk being sent to /dev/null > > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jailbait at gmail.com Tue Aug 30 15:04:36 2005 From: jailbait at gmail.com (JB Segal) Date: Tue, 30 Aug 2005 09:04:36 -0400 Subject: Monitoring a matrix of load-balanced VirtualHosts? In-Reply-To: <431411C4.4030708@op5.se> References: <916aba350508291434493168d5@mail.gmail.com> <431411C4.4030708@op5.se> Message-ID: <916aba3505083006045e0689df@mail.gmail.com> On 8/30/05, Andreas Ericsson wrote:> Earlier, I < jailbait at gmail.com> wrote: > 2nd: I left out from my 1st mail the fact that I'd really really > > prefer to do this in as few cfg stanzas as possible, as 1) I'd like > > this solution to scale if, say, we were to end up with 20 webservers > > and 45 domains - I /do/ have to check host.foo.com per boss's reqests > > - so I'd love to not have to add another {number of websites} stanzas > > for each new server. > > 2) I just cleaned up the previous admin's installation and reduced > > 3000 lines of cfg to 800 lines, and I'd love to not have to expand > > back to that again right now. > > > > So, not to sound like a complete idiot - but probably unable to avoid > > it, I continue my query: > > > > I've spent a while (before I sent my 1st mail, even) staring at the > > check_http -h output and being... nonplussed. Unfortunately, that's > > been my response to most of the nagios docs. > > > > With 1.2 your best bet would probably be to write a wrapper script that > checks all the vhosts. check_http and some clever sed'ing should do the > trick, really. With 2.0 you can assign services to hostgroups (I'm not > sure that worked in 1.2...) As Chris Wilson noted, hostgroups do the right thing in 1.2... but I really have no idea how I'd make the right host entries for a series of VirtualHosts. > Your response puzzles me even more, by implying that the '-u' might be > optional. > > > > It is. If it's not specified, the url requested is '/'. But if I'm trying to check the website "www.bar.com " on the host "a.foo.com ", the -u is not, as near as I can tell, optional, no? JB -------------- next part -------------- An HTML attachment was scrubbed... URL: From chris at aidworld.org Tue Aug 30 15:04:31 2005 From: chris at aidworld.org (Chris Wilson) Date: Tue, 30 Aug 2005 14:04:31 +0100 Subject: Problem using snpp.pl for notifications In-Reply-To: <1125403561.6675.4.camel@springer> References: <20050830115836.ABB96AB6E1@www.manubulon.com> <1125403561.6675.4.camel@springer> Message-ID: <1125407071.9255.135.camel@localhost> Hi Dave, > So using the embedded perl is *least expensive* ? Well, less expensive than starting a new Perl interpreter. I'm not sure how it compares to Nagios forking a new process for Quickpage. Depending on the platform, and the Perl script, it might be more or less expensive. > What about Quickpage versus Sendpage? Quickpage is compiled C program > and Sendpage is perl. Would embedded perl calling Quickpage be *less > expensive* than using Sendpage with /usr/bin/perl ? Why would you want embedded perl to call Quickpage? Nagios can start Quickpage directly, just like any other C program. Nagios normally forks processes for notifications (and service checks). The embedded Perl interpreter, EPN, is a way to avoid that overhead, and the Perl interpreter startup overhead, in the case that the notification/service check command is a Perl script. As far as I know, it does nothing else. The EPN is disabled by default, at least in 1.x; maybe this changed in 2.x. It seems that your Nagios is built with EPN enabled, and this has bitten you. You could recompile Nagios with EPN disabled if it doesn't do what you want, or you don't want to take the risk of badly written plugins taking down the whole of Nagios. Cheers, Chris. -- (aidworld) chris wilson | chief engineer (chris at aidworld.org) ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From chris at aidworld.org Tue Aug 30 15:11:16 2005 From: chris at aidworld.org (Chris Wilson) Date: Tue, 30 Aug 2005 14:11:16 +0100 Subject: Monitoring a matrix of load-balanced VirtualHosts? In-Reply-To: <916aba3505083006045e0689df@mail.gmail.com> References: <916aba350508291434493168d5@mail.gmail.com> <431411C4.4030708@op5.se> <916aba3505083006045e0689df@mail.gmail.com> Message-ID: <1125407475.9255.152.camel@localhost> Hi JB, > As Chris Wilson noted, hostgroups do the right thing in 1.2... but I > really have no idea how I'd make the right host entries for a series > of VirtualHosts. define service { use vhost-service service_description www.bar.com check_command my_check_http!www.bar.com hostgroup_name bar_com_servers } define command { command_name my_check_http command_line $USER1$/check_http -I $HOSTADDRESS$ -H $ARG1$ } This will call check_http with the host address (hostname) of each server in the group "bar_com_servers". I've used a template, vhost-service, to inherit the check interval and notification options (not shown here). > But if I'm trying to check the website "www.bar.com" on the host > "a.foo.com", the -u is not, as near as I can tell, optional, no? As long as www.bar.com actually has a "/" page (it doens't return an error or a redirect code). Hope this helps, Cheers, Chris. -- (aidworld) chris wilson | chief engineer (chris at aidworld.org) ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From andre.bergei at ementor.no Tue Aug 30 15:52:58 2005 From: andre.bergei at ementor.no (Andre Bergei) Date: Tue, 30 Aug 2005 15:52:58 +0200 Subject: Change of display of status on hard change only. Message-ID: <447B76ECA7A8ED45B831D4D419A7AE560D769D@100NOOSLMSG004.common.alpharoot.net> > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Az > Sent: Tuesday, August 30, 2005 12:09 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Change of display of status on hard > change only. > > Hi all, > > After poking through the Nagios (v1.2) configs, I gather > there's no way (barring code changes) to get the cgi to only > show "red", for example, once the state change is hard? In a > call centre/NOC situation, red seems to cause panic... but if > its only a soft state change, we dont want them to see red > until its a hard fault. > > Setting max_check_attempts to 1 would theoretically do the > job, but thats not what we want. I didnt see anything that > might do the job in the v2 docs either. > > Any suggestions for work arounds? Feature request perhaps? > > Cheers. > It's not possible to get this behavoiur today. I also think the tac.cgi should have an option to respect the max_check_attempts, I will make it so much More "tactical" :) /andr? ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nagios at jehster.net Tue Aug 30 18:34:36 2005 From: nagios at jehster.net (Roy Kidder) Date: Tue, 30 Aug 2005 12:34:36 -0400 (EDT) Subject: Check remote MS service status Message-ID: <33555.206.131.211.142.1125419676.squirrel@206.131.211.142> As many of you are, I'm finding myself monitoring a variety of remote platforms, using a variety of different methods (check_*, snmp, nrpe, home-grown scripts, etc). For *nix machines, nrpe works well with a shell or perl script on the remote box. But for Microsoft, which doesn't have a decent scripting ability (natively), I'm wondering what many of you use? Do you use batch files? Do you install perl on all these boxes? Do you do something else? My main interest is checking if a remote service is running (one that is not network-reachable). Anyone ever heard of a perl script I can run on my Linux box to ask the NT box via RPC if a service is running? Or is nrpe the way to go? Thanks in advance, Roy ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Tue Aug 30 20:18:14 2005 From: marc at ena.com (Marc Powell) Date: Tue, 30 Aug 2005 13:18:14 -0500 Subject: Check remote MS service status Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Roy Kidder > Sent: Tuesday, August 30, 2005 11:35 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Check remote MS service status > > As many of you are, I'm finding myself monitoring a variety of remote > platforms, using a variety of different methods (check_*, snmp, nrpe, > home-grown scripts, etc). > > For *nix machines, nrpe works well with a shell or perl script on the > remote box. But for Microsoft, which doesn't have a decent scripting > ability (natively), I'm wondering what many of you use? Do you use batch > files? Do you install perl on all these boxes? Do you do something else? There are a few options -- http://www.nagiosexchange.org/Windows.49.0.html We've been using NSClient but one of the others might suit your needs better or you could roll your own as you indicate above. -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jailbait at gmail.com Tue Aug 30 20:28:08 2005 From: jailbait at gmail.com (JB Segal) Date: Tue, 30 Aug 2005 14:28:08 -0400 Subject: $HOSTNAME$ in commands? (Was: Re: Monitoring a matrix of load-balanced VirtualHosts?) In-Reply-To: <1125407475.9255.152.camel@localhost> References: <916aba350508291434493168d5@mail.gmail.com> <431411C4.4030708@op5.se> <916aba3505083006045e0689df@mail.gmail.com> <1125407475.9255.152.camel@localhost> Message-ID: <916aba35050830112821fafe18@mail.gmail.com> On 8/30/05, Chris Wilson wrote: > > Hi JB, > > > As Chris Wilson noted, hostgroups do the right thing in 1.2... but I > > really have no idea how I'd make the right host entries for a series > > of VirtualHosts. > > define service { > use vhost-service > service_description www.bar.com > check_command my_check_http!www.bar.com > hostgroup_name bar_com_servers > } > > define command { > command_name my_check_http > command_line $USER1$/check_http -I $HOSTADDRESS$ -H $ARG1$ > } > > This will call check_http with the host address (hostname) of each > server in the group "bar_com_servers". I've used a template, > vhost-service, to inherit the check interval and notification options > (not shown here). > > > But if I'm trying to check the website "www.bar.com " > on the host > > "a.foo.com ", the -u is not, as near as I can tell, > optional, no? > > As long as www.bar.com actually has a "/" page (it > doens't return an > error or a redirect code). > > Hope this helps, It absolutely has. Thank you. (Especially: Thanks for prompting me to dig more into cfg recursion. I've been able to clean up things even more.) Now comes the final part of this particular task: I've been told to check '{machinename}.foo.com', but - according to docs/macros.html - I can't use $HOSTNAME$ or $HOSTALIAS$ in either host or service checks. My 1st instinct is to do just that - something like check_command check_lb_vhost!$HOSTNAME$.foo.com but it seems I can't. This is more than a bit annoying, and seems a very odd design decision. I can't be the only one who wants this functionality. Cheers, Chris. > -- > (aidworld) chris wilson | chief engineer (chris at aidworld.org) > > Thanks again, JB -------------- next part -------------- An HTML attachment was scrubbed... URL: From nagios-user at proy.org Tue Aug 30 20:31:32 2005 From: nagios-user at proy.org (Patrick Proy) Date: Tue, 30 Aug 2005 20:31:32 +0200 Subject: Check remote MS service status In-Reply-To: <33555.206.131.211.142.1125419676.squirrel@206.131.211.142> References: <33555.206.131.211.142.1125419676.squirrel@206.131.211.142> Message-ID: <20050830183132.9F551AB6E1@www.manubulon.com> Hi, Here is a script to check windows services via snmp (still something to install/configure but it's a standard windows service). It's still beta so give me feedback ! (do "check_snmp_win.pl -h" for help). Download : http://www.manubulon.com/nagios/check_snmp_win.pl Patrick > -----Message d'origine----- > De : nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] De la part > de Roy Kidder > Envoy? : mardi 30 ao?t 2005 18:35 > ? : nagios-users at lists.sourceforge.net > Objet : [Nagios-users] Check remote MS service status > > As many of you are, I'm finding myself monitoring a variety > of remote platforms, using a variety of different methods > (check_*, snmp, nrpe, home-grown scripts, etc). > > For *nix machines, nrpe works well with a shell or perl > script on the remote box. But for Microsoft, which doesn't > have a decent scripting ability (natively), I'm wondering > what many of you use? Do you use batch files? Do you install > perl on all these boxes? Do you do something else? > > My main interest is checking if a remote service is running > (one that is not network-reachable). Anyone ever heard of a > perl script I can run on my Linux box to ask the NT box via > RPC if a service is running? Or is nrpe the way to go? > > Thanks in advance, > Roy > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & > EXPO September 19-22, 2005 * San Francisco, CA * Development > Lifecycle Practices Agile & Plan-Driven Development * > Managing Projects & Teams * Testing & QA Security * Process > Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dgentry at ultainc.com Tue Aug 30 21:44:26 2005 From: dgentry at ultainc.com (David Gentry) Date: Tue, 30 Aug 2005 21:44:26 +0200 (CEST) Subject: check_email_loop.pl problem fixed In-Reply-To: <42DCF17E.5040002@notss.com> References: <42DCF17E.5040002@notss.com> Message-ID: <20050830194426.6BF914F4002@desire.netways.de> Hi Dave Since I am not perl savvy, can you tell me if this is correct? This is what my script shows: Take line 104-116: 104 105 # Ok - check if it's time to release another mail 106 107 # ... 108 109 # creating new serial id 110 my $serial = time(); 111 $serial = "ID#" . $serial . "#$$"; 112 113 114 # sending new ping email 115 %other_smtp_opts={}; 116 if ( $debug == 1 ) { 117 $other_smtp_opts{'Debug'} = 1; 118 } Move it after line 149: 147 148 # Count messages, that we are looking 4: Ins 149 while ($msgcount > 0) { 150 @msglines = @{$pop->top($msgcount,1)}; 151 for (my $i=0; $i < scalar @messageids; $i++) { 152 if (messagematchsid(\@msglines,$messageids[$i])) { 153 $matchcount++; 154 # newest received mail than the others, ok remeber id. 155 $newestid = $messageids[$i] if ($messageids[$i] > $newestid || !defined $newestid); 156 $pop->delete($msgcount); # remove E-Mail from POP3 server Right after the Ins. Thanks. - David Gentry (davidtechie) ----------------------- This thread is located in the archive at this URL: http://www.nagiosexchange.org/nagios-users.34.0.html?&tx_maillisttofaq_pi 1[showUid]=8776 ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From moshesharon at gmail.com Tue Aug 30 22:05:53 2005 From: moshesharon at gmail.com (Moshe Sharon) Date: Tue, 30 Aug 2005 20:05:53 +0000 (UTC) Subject: Check remote MS service status References: <33555.206.131.211.142.1125419676.squirrel@206.131.211.142> <20050830183132.9F551AB6E1@www.manubulon.com> Message-ID: Hello we have a production enviroment with over 100 windows server (NT --> 2003). and we are monitoring it in 2 ways. one standard NRPE NT client. which is very similiar to NRPE on *nix system. there several plugins for windows. and one of them doing exactly what you need. the second solutions in enviroment we couldnt install NRPE. we are using the excellent contribution of Groundwork agentless WMI Plugins this solutions also can provide your needs. NSClient is pretty old. and NC_Net is based on .NET and its a little memory consuming then the NRPE itself. also there is NSClient++ which is still in beta and we are not sure what is the status of it (Stability, bugs etc..). Hope it shade some light on NT Issue. Moshe Sharon ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at gridshield.net Tue Aug 30 22:28:12 2005 From: marc at gridshield.net (Marc DeTrano) Date: Tue, 30 Aug 2005 14:28:12 -0600 Subject: circular ballon status map quesition Message-ID: <4314C15C.1070306@gridshield.net> I have read the fine manual, but I have been unable to find any info about what the Circular (Ballon) status map layout actually displays--the colors, circle sizes, fills, etc. Can anyone help me? Thanks, Marc DeTrano Gridshield, S.A. ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From James.P.Fuentes at boeing.com Tue Aug 30 22:58:48 2005 From: James.P.Fuentes at boeing.com (EXT-Fuentes, James P) Date: Tue, 30 Aug 2005 13:58:48 -0700 Subject: circular ballon status map quesition Message-ID: <626FC7C6A97381468FB872072AB5DDC801FEF8@XCH-SW-42.sw.nos.boeing.com> If you select Circular Baloon under the Layout Method drop down menu on the status map, you should see an over-view of your network/system topology. Depending on how many devices you have defined, you may see many little icons or a few bigger icons of the color associated with whatever state the device is in. -Jim ________________________________ From: Marc DeTrano [mailto:marc at gridshield.net] Sent: Tue 8/30/2005 1:28 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] circular ballon status map quesition I have read the fine manual, but I have been unable to find any info about what the Circular (Ballon) status map layout actually displays--the colors, circle sizes, fills, etc. Can anyone help me? Thanks, Marc DeTrano Gridshield, S.A. ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at gridshield.net Tue Aug 30 23:22:48 2005 From: marc at gridshield.net (Marc DeTrano) Date: Tue, 30 Aug 2005 15:22:48 -0600 Subject: circular ballon status map quesition In-Reply-To: <626FC7C6A97381468FB872072AB5DDC801FEF8@XCH-SW-42.sw.nos.boeing.com> References: <626FC7C6A97381468FB872072AB5DDC801FEF8@XCH-SW-42.sw.nos.boeing.com> Message-ID: <4314CE28.9010100@gridshield.net> There are some more features I do not understand. Sometimes the circles are filled--why are they filled and what governs the color it is filled with? Also, what controls the size of the circle? Thanks for your help, Marc EXT-Fuentes, James P wrote: >If you select Circular Baloon under the Layout Method drop down menu on the status map, you should see an over-view of your network/system topology. Depending on how many devices you have defined, you may see many little icons or a few bigger icons of the color associated with whatever state the device is in. >-Jim > >________________________________ > >From: Marc DeTrano [mailto:marc at gridshield.net] >Sent: Tue 8/30/2005 1:28 PM >To: nagios-users at lists.sourceforge.net >Subject: [Nagios-users] circular ballon status map quesition > > > >I have read the fine manual, but I have been unable to find any info >about what the Circular (Ballon) status map layout actually >displays--the colors, circle sizes, fills, etc. Can anyone help me? > >Thanks, > >Marc DeTrano >Gridshield, S.A. > > >------------------------------------------------------- >SF.Net email is Sponsored by the Better Software Conference & EXPO >September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices >Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA >Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >::: Messages without supporting info will risk being sent to /dev/null > > > > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dwish at indco.net Tue Aug 30 23:05:27 2005 From: dwish at indco.net (Dustin Wish with INDCo Networks) Date: Tue, 30 Aug 2005 16:05:27 -0500 Subject: Google Maps? In-Reply-To: <916aba3505083006045e0689df@mail.gmail.com> References: <916aba3505083006045e0689df@mail.gmail.com> Message-ID: Haves anyone integrated Nagios with Google maps for SNMP management and alarms? -------------- next part -------------- An HTML attachment was scrubbed... URL: From James.P.Fuentes at boeing.com Tue Aug 30 23:43:20 2005 From: James.P.Fuentes at boeing.com (EXT-Fuentes, James P) Date: Tue, 30 Aug 2005 14:43:20 -0700 Subject: circular ballon status map quesition Message-ID: <626FC7C6A97381468FB872072AB5DDC801FEFA@XCH-SW-42.sw.nos.boeing.com> Don't know what determines the size of the circles but note that things like LAN/WAN interfaces are small and devices hanging off the LAN segments like servers, workstations and printers are bigger on my map. None of the circles are filled on my map at this time. The color of the circles on my map corresponds to UP/DOWN state of the device. -Jim ________________________________ From: Marc DeTrano [mailto:marc at gridshield.net] Sent: Tue 8/30/2005 2:22 PM Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] circular ballon status map quesition There are some more features I do not understand. Sometimes the circles are filled--why are they filled and what governs the color it is filled with? Also, what controls the size of the circle? Thanks for your help, Marc EXT-Fuentes, James P wrote: >If you select Circular Baloon under the Layout Method drop down menu on the status map, you should see an over-view of your network/system topology. Depending on how many devices you have defined, you may see many little icons or a few bigger icons of the color associated with whatever state the device is in. >-Jim > >________________________________ > >From: Marc DeTrano [mailto:marc at gridshield.net] >Sent: Tue 8/30/2005 1:28 PM >To: nagios-users at lists.sourceforge.net >Subject: [Nagios-users] circular ballon status map quesition > > > >I have read the fine manual, but I have been unable to find any info >about what the Circular (Ballon) status map layout actually >displays--the colors, circle sizes, fills, etc. Can anyone help me? > >Thanks, > >Marc DeTrano >Gridshield, S.A. > > >------------------------------------------------------- >SF.Net email is Sponsored by the Better Software Conference & EXPO >September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices >Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA >Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >::: Messages without supporting info will risk being sent to /dev/null > > > > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From boinger at tradingtechnologies.com Wed Aug 31 00:08:06 2005 From: boinger at tradingtechnologies.com (jeff vier) Date: Tue, 30 Aug 2005 17:08:06 -0500 Subject: Ignoring a particular alarm (on purpose)? In-Reply-To: <4314CE86.4060802@spymac.com> References: <1108654689.7902.25.camel@localhost> <43118035.9060001@spymac.com> <1125324935.19276.3.camel@chi100400> <4314CE86.4060802@spymac.com> Message-ID: <1125439686.31599.35.camel@chi101100.int.tt.local> On Tue, 2005-08-30 at 23:24 +0200, max wrote: > I though you where able to monitor if there are new update to install > on server (install and do the reboot). With the check you sent, don't > you just check if the agent that manage the update is running, not > that new update is available. > > Am I missing something? That process only runs when a new update is available. I believe it corresponds to the little icon in the bottom-right "dock" thing. I have managed to avoid dealing with Windoze on any real level for the past 8 years or so, so forgive me for skipping the precise details. (I don't touch any MS products directly at my current position - I just monitor them.) I can tell you that the alert only "goes off" when a new update comes out, though. > Max > > jeff vier wrote: > > Please don't reply just to me. *Always* reply to the list (except, > > perhaps, to only say "thanks" :) ), thanks. > > > > On Sun, 2005-08-28 at 11:13 +0200, max wrote: > > > > > How do you check for Windows Update availability with nagios? > > > > > > > define command{ > > command_name check_nt_windows_update > > command_line $USER1$/negate $USER1$/check_nt -H $HOSTADDRESS$ > > -v PROCSTATE -d SHOWALL -l wuauclt.exe > > > > > > check_nt uses the NSClient suite (or NC_Net, or whatever other > > replacement). > > > > What that check is doing, in case it's unclear, is checking for the > > existence of a running 'wuauclt.exe' process, then negating the result > > (so, running==critical, no process==OK) > > > > > > > jeff vier wrote: > > > > > > > > > > Here's a weird one. > > > > > > > > I have a request to be able to filter out a particular alarm on the > > > > Service Status Page. > > > > > > > > The problem is that I have Nagios set up to watch for Windows Update > > > > (WU) availability, but it can take WEEKS for the Windows Admin to roll > > > > them out to all the Windows Servers. So, in the interim, we're staring > > > > down a few hundred WU alerts. > > > > > > > > A couple of the folks in the NOC have asked if there's a way to not see > > > > them (but still see everything else). > > > > > > > > I figure I *COULD* code it out of the cgi, but then why watch for the > > > > WUs at all (we don't page on them). > > > > > > > > Any idea? (regex filter that can be passed arbitrary values via GET > > > > variables? *fingers crossed*) > > > > > > > > Thanks for any help. > > > > > > > > --jeff > > > > > > > > > -------------- 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 elizar.palad at gmail.com Wed Aug 31 03:38:05 2005 From: elizar.palad at gmail.com (Elizar M. Palad) Date: Wed, 31 Aug 2005 09:38:05 +0800 Subject: @sysconfdir@/cgi.cfg - Installation setup problem Message-ID: Hi list! This is my first time in nagios and first time in this list. I tried following the direction in the documentation in the source and browsed the archive for this basic/common (iguess) problem in setting up nagios. I hope someone out there can help me. When i access nagios using IE (http://localhosts/nagios) the web interface shows up, but clicking the monitoring links (cgis) i have this: Whoops! *Error: Could not open CGI config file '@sysconfdir@/cgi.cfg' for reading!* I have every config file in /usr/local/nagios/etc (cgi.cfg, nagios.cfg and other cfg files) pre-flight check shows no errors Total Warnings: 0 Total Errors: 0 Things look okay - No serious problems were detected during the pre-flight check What could be wrong? what did i miss? no errors in apache logs or in configuation of httpd.conf. Help me please? someone? if there's additional info you guys might need, please let me know.. thanks! eli -- ---- Don't Tell Me How Hard You Work.. Show Me How Much You'd Accomplished.. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sghosh at sghosh.org Wed Aug 31 03:53:02 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 30 Aug 2005 21:53:02 -0400 (EDT) Subject: @sysconfdir@/cgi.cfg - Installation setup problem In-Reply-To: References: Message-ID: On Wed, 31 Aug 2005, Elizar M. Palad wrote: > Hi list! > This is my first time in nagios and first time in this list. > I tried following the direction in the documentation in the source > and browsed the archive for this basic/common (iguess) problem > in setting up nagios. I hope someone out there can help me. > When i access nagios using IE (http://localhosts/nagios) the > web interface shows up, but clicking the monitoring links (cgis) > i have this: > Whoops! > > *Error: Could not open CGI config file '@sysconfdir@/cgi.cfg' for reading!* > I have every config file in /usr/local/nagios/etc > (cgi.cfg, nagios.cfg and other cfg files) > pre-flight check shows no errors > > Total Warnings: 0 > Total Errors: 0 > > Things look okay - No serious problems were detected during the pre-flight > check > > What could be wrong? what did i miss? no errors in apache logs or in > configuation of httpd.conf. > Help me please? someone? if there's additional info you guys might need, > please let me know.. > thanks! > eli > > Did you do your own compile or install from somewhere else? 1. Pre-flight check does not looks at cgi.cfg (not needed for nagios to function - only the UI) 2. @sysconfdir@ is supposed to be replaced at "configure" time before compile. The base path is hardcoded into the cgis. Looks like either the compile process bombed or you have a bad package. -- -sg ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From elizar.palad at gmail.com Wed Aug 31 04:04:19 2005 From: elizar.palad at gmail.com (Elizar M. Palad) Date: Wed, 31 Aug 2005 10:04:19 +0800 Subject: @sysconfdir@/cgi.cfg - Installation setup problem In-Reply-To: References: Message-ID: Hi Subhendu! I did my own compile. I am running it in solaris 2.6 machine with gcc/make. I just followed the instruction in the documentation and all went well. Should i redo it from ./configure? thanks! eli On 8/31/05, Subhendu Ghosh wrote: > > On Wed, 31 Aug 2005, Elizar M. Palad wrote: > > > Hi list! > > This is my first time in nagios and first time in this list. > > I tried following the direction in the documentation in the source > > and browsed the archive for this basic/common (iguess) problem > > in setting up nagios. I hope someone out there can help me. > > When i access nagios using IE (http://localhosts/nagios) the > > web interface shows up, but clicking the monitoring links (cgis) > > i have this: > > Whoops! > > > > *Error: Could not open CGI config file '@sysconfdir@/cgi.cfg' for > reading!* > > I have every config file in /usr/local/nagios/etc > > (cgi.cfg, nagios.cfg and other cfg files) > > pre-flight check shows no errors > > > > Total Warnings: 0 > > Total Errors: 0 > > > > Things look okay - No serious problems were detected during the > pre-flight > > check > > > > What could be wrong? what did i miss? no errors in apache logs or in > > configuation of httpd.conf. > > Help me please? someone? if there's additional info you guys might need, > > please let me know.. > > thanks! > > eli > > > > > > Did you do your own compile or install from somewhere else? > > 1. Pre-flight check does not looks at cgi.cfg (not needed for nagios to > function - only the UI) > 2. @sysconfdir@ is supposed to be replaced at "configure" time before > compile. The base path is hardcoded into the cgis. > > Looks like either the compile process bombed or you have a bad package. > > -- > -sg > -- ---- Don't Tell Me How Hard You Work.. Show Me How Much You'd Accomplished.. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sghosh at sghosh.org Wed Aug 31 04:16:19 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 30 Aug 2005 22:16:19 -0400 (EDT) Subject: @sysconfdir@/cgi.cfg - Installation setup problem In-Reply-To: References: Message-ID: yes - please run configure again - check for errors On Wed, 31 Aug 2005, Elizar M. Palad wrote: > Hi Subhendu! > I did my own compile. I am running it in solaris 2.6 machine with > gcc/make. > I just followed the instruction in the documentation and all went well. > Should i redo it from ./configure? thanks! > eli > > On 8/31/05, Subhendu Ghosh wrote: >> >> On Wed, 31 Aug 2005, Elizar M. Palad wrote: >> >>> Hi list! >>> This is my first time in nagios and first time in this list. >>> I tried following the direction in the documentation in the source >>> and browsed the archive for this basic/common (iguess) problem >>> in setting up nagios. I hope someone out there can help me. >>> When i access nagios using IE (http://localhosts/nagios) the >>> web interface shows up, but clicking the monitoring links (cgis) >>> i have this: >>> Whoops! >>> >>> *Error: Could not open CGI config file '@sysconfdir@/cgi.cfg' for >> reading!* >>> I have every config file in /usr/local/nagios/etc >>> (cgi.cfg, nagios.cfg and other cfg files) >>> pre-flight check shows no errors >>> >>> Total Warnings: 0 >>> Total Errors: 0 >>> >>> Things look okay - No serious problems were detected during the >> pre-flight >>> check >>> >>> What could be wrong? what did i miss? no errors in apache logs or in >>> configuation of httpd.conf. >>> Help me please? someone? if there's additional info you guys might need, >>> please let me know.. >>> thanks! >>> eli >>> >>> >> >> Did you do your own compile or install from somewhere else? >> >> 1. Pre-flight check does not looks at cgi.cfg (not needed for nagios to >> function - only the UI) >> 2. @sysconfdir@ is supposed to be replaced at "configure" time before >> compile. The base path is hardcoded into the cgis. >> >> Looks like either the compile process bombed or you have a bad package. >> >> -- >> -sg >> > > > > -- ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Wed Aug 31 04:22:23 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 30 Aug 2005 22:22:23 -0400 (EDT) Subject: email config rant (warned) Message-ID: Umm - could folks subscribing to the list please include it in their filters. Surprised I haven't seen anyone else complain as yet. -sg Hi, You've just sent a message to @uol.com.br In order to confirm the sent message, please click here This confirmation is necessary because @uol.com.br uses Antispam UOL, a service that avoids unwanted messages like advertising, pornography, viruses, and spams. Other messages sent to @uol.com.br won't need to be confirmed*. *If you receive another confirmation request, please ask @uol.com.br to include you in his/her authorized e-mail list. -- ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From elizar.palad at gmail.com Wed Aug 31 05:11:11 2005 From: elizar.palad at gmail.com (Elizar M. Palad) Date: Wed, 31 Aug 2005 11:11:11 +0800 Subject: @sysconfdir@/cgi.cfg - Installation setup problem In-Reply-To: References: Message-ID: I rerun ./configure --prefix=/usr/local/nagios --with-cgiurl=/nagios/cgi-bin --with-htmlurl=/nagios --with-nagios-user=nagios --with-nagios-groupp=nagios --with-gd-lib=/usr/local/lib and summary is below: *** Configuration summary for nagios 2.0b4 08-02-2005 ***: General Options: ------------------------- Nagios executable: nagios Nagios user/group: nagios,nagios Command user/group: nagios,nagios Embedded Perl: no Event Broker: yes Install ${prefix}: /usr/local/nagios Lock file: ${prefix}/var/nagios.lock Init directory: /etc/init.d Host OS: solaris2.6 Web Interface Options: ------------------------ HTML URL: http://localhost/nagios/ CGI URL: http://localhost/nagios/cgi-bin/ Traceroute (used by WAP): Review the options above for accuracy. If they look okay, type 'make all' to compile the main program and CGIs. ------------------ Looks ok isn't it? then when i do 'make all', i have this error: # make all cd ./base && make make: Fatal error: Don't know how to make target `../include/locations.h' Current working directory /packages/nagios-2.0b4/base *** Error code 1 make: Fatal error: Command failed for target `all' This is also my second time with this error. What I did was i copy locations.h.in as locations.h :-) and the compilation continues.. (was that not right? :) thanks! On 8/31/05, Subhendu Ghosh wrote: > > > > yes - please run configure again - check for errors > > > On Wed, 31 Aug 2005, Elizar M. Palad wrote: > > > Hi Subhendu! > > I did my own compile. I am running it in solaris 2.6 machine with > > gcc/make. > > I just followed the instruction in the documentation and all went well. > > Should i redo it from ./configure? thanks! > > eli > > > > On 8/31/05, Subhendu Ghosh wrote: > >> > >> On Wed, 31 Aug 2005, Elizar M. Palad wrote: > >> > >>> Hi list! > >>> This is my first time in nagios and first time in this list. > >>> I tried following the direction in the documentation in the source > >>> and browsed the archive for this basic/common (iguess) problem > >>> in setting up nagios. I hope someone out there can help me. > >>> When i access nagios using IE (http://localhosts/nagios) the > >>> web interface shows up, but clicking the monitoring links (cgis) > >>> i have this: > >>> Whoops! > >>> > >>> *Error: Could not open CGI config file '@sysconfdir@/cgi.cfg' for > >> reading!* > >>> I have every config file in /usr/local/nagios/etc > >>> (cgi.cfg, nagios.cfg and other cfg files) > >>> pre-flight check shows no errors > >>> > >>> Total Warnings: 0 > >>> Total Errors: 0 > >>> > >>> Things look okay - No serious problems were detected during the > >> pre-flight > >>> check > >>> > >>> What could be wrong? what did i miss? no errors in apache logs or in > >>> configuation of httpd.conf. > >>> Help me please? someone? if there's additional info you guys might > need, > >>> please let me know.. > >>> thanks! > >>> eli > >>> > >>> > >> > >> Did you do your own compile or install from somewhere else? > >> > >> 1. Pre-flight check does not looks at cgi.cfg (not needed for nagios to > >> function - only the UI) > >> 2. @sysconfdir@ is supposed to be replaced at "configure" time before > >> compile. The base path is hardcoded into the cgis. > >> > >> Looks like either the compile process bombed or you have a bad package. > >> > >> -- > >> -sg > >> > > > > > > > > > > -- > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- ---- Don't Tell Me How Hard You Work.. Show Me How Much You'd Accomplished.. -------------- next part -------------- An HTML attachment was scrubbed... URL: From elizar.palad at gmail.com Wed Aug 31 05:15:00 2005 From: elizar.palad at gmail.com (Elizar M. Palad) Date: Wed, 31 Aug 2005 11:15:00 +0800 Subject: @sysconfdir@/cgi.cfg - Installation setup problem In-Reply-To: References: Message-ID: Should i uncomment some of its entries? I think configure should have than that itself.. But if i must, which one? thanks! #define DEFAULT_TEMP_FILE "@localstatedir@/tempfile" #define DEFAULT_STATUS_FILE "@localstatedir@/status.dat" #define DEFAULT_LOG_FILE "@localstatedir@/nagios.log" #define DEFAULT_LOG_ARCHIVE_PATH "@localstatedir@/archives/" #define DEFAULT_COMMENT_FILE "@localstatedir@/comments.dat" #define DEFAULT_DOWNTIME_FILE "@localstatedir@/downtime.dat" #define DEFAULT_RETENTION_FILE "@localstatedir@/retention.dat" #define DEFAULT_COMMAND_FILE "@localstatedir@/rw/nagios.cmd" #define DEFAULT_CONFIG_FILE "@sysconfdir@/nagios.cfg" #define DEFAULT_PHYSICAL_HTML_PATH "@datadir@" #define DEFAULT_URL_HTML_PATH "@htmurl@" #define DEFAULT_PHYSICAL_CGIBIN_PATH "@sbindir@" #define DEFAULT_URL_CGIBIN_PATH "@cgiurl@" #define DEFAULT_CGI_CONFIG_FILE "@sysconfdir@/cgi.cfg" #define DEFAULT_LOCK_FILE "@lockfile@" #define DEFAULT_OBJECT_CACHE_FILE "@localstatedir@/objects.cache" #define DEFAULT_EVENT_BROKER_FILE "@localstatedir@/broker.socket" #define DEFAULT_P1_FILE "@bindir@/p1.pl" /**** EMBEDDED PERL ****/ #define DEFAULT_AUTH_FILE "" /**** EMBEDDED PERL - IS THIS USED? ****/ On 8/31/05, Elizar M. Palad wrote: > > I rerun ./configure --prefix=/usr/local/nagios > --with-cgiurl=/nagios/cgi-bin --with-htmlurl=/nagios > --with-nagios-user=nagios --with-nagios-groupp=nagios > --with-gd-lib=/usr/local/lib > and summary is below: > *** Configuration summary for nagios 2.0b4 08-02-2005 ***: > > General Options: > ------------------------- > Nagios executable: nagios > Nagios user/group: nagios,nagios > Command user/group: nagios,nagios > Embedded Perl: no > Event Broker: yes > Install ${prefix}: /usr/local/nagios > Lock file: ${prefix}/var/nagios.lock > Init directory: /etc/init.d > Host OS: solaris2.6 > > Web Interface Options: > ------------------------ > HTML URL: http://localhost/nagios/ > CGI URL: http://localhost/nagios/cgi-bin/ > Traceroute (used by WAP): > > > Review the options above for accuracy. If they look okay, > type 'make all' to compile the main program and CGIs. > ------------------ > Looks ok isn't it? > then when i do 'make all', i have this error: > # make all > cd ./base && make > make: Fatal error: Don't know how to make target `../include/locations.h' > Current working directory /packages/nagios-2.0b4/base > *** Error code 1 > make: Fatal error: Command failed for target `all' > This is also my second time with this error. What I did was i copy > locations.h.in as locations.h :-) > and the compilation continues.. (was that not right? :) > thanks! > > > On 8/31/05, Subhendu Ghosh wrote: > > > > > > > > yes - please run configure again - check for errors > > > > > > On Wed, 31 Aug 2005, Elizar M. Palad wrote: > > > > > Hi Subhendu! > > > I did my own compile. I am running it in solaris 2.6 machine with > > > gcc/make. > > > I just followed the instruction in the documentation and all went > > well. > > > Should i redo it from ./configure? thanks! > > > eli > > > > > > On 8/31/05, Subhendu Ghosh wrote: > > >> > > >> On Wed, 31 Aug 2005, Elizar M. Palad wrote: > > >> > > >>> Hi list! > > >>> This is my first time in nagios and first time in this list. > > >>> I tried following the direction in the documentation in the source > > >>> and browsed the archive for this basic/common (iguess) problem > > >>> in setting up nagios. I hope someone out there can help me. > > >>> When i access nagios using IE (http://localhosts/nagios) the > > >>> web interface shows up, but clicking the monitoring links (cgis) > > >>> i have this: > > >>> Whoops! > > >>> > > >>> *Error: Could not open CGI config file '@sysconfdir@/cgi.cfg' for > > >> reading!* > > >>> I have every config file in /usr/local/nagios/etc > > >>> (cgi.cfg, nagios.cfg and other cfg files) > > >>> pre-flight check shows no errors > > >>> > > >>> Total Warnings: 0 > > >>> Total Errors: 0 > > >>> > > >>> Things look okay - No serious problems were detected during the > > >> pre-flight > > >>> check > > >>> > > >>> What could be wrong? what did i miss? no errors in apache logs or in > > >>> configuation of httpd.conf. > > >>> Help me please? someone? if there's additional info you guys might > > need, > > >>> please let me know.. > > >>> thanks! > > >>> eli > > >>> > > >>> > > >> > > >> Did you do your own compile or install from somewhere else? > > >> > > >> 1. Pre-flight check does not looks at cgi.cfg (not needed for nagios > > to > > >> function - only the UI) > > >> 2. @sysconfdir@ is supposed to be replaced at "configure" time before > > >> compile. The base path is hardcoded into the cgis. > > >> > > >> Looks like either the compile process bombed or you have a bad > > package. > > >> > > >> -- > > >> -sg > > >> > > > > > > > > > > > > > > > > -- > > > > > > > > ------------------------------------------------------- > > SF.Net email is Sponsored by the Better Software Conference & EXPO > > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > > Practices > > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & > > QA > > Security * Process Improvement & Measurement * > > http://www.sqe.com/bsce5sf > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > > reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > > > > -- > ---- > Don't Tell Me How Hard You Work.. > Show Me How Much You'd Accomplished.. > -- ---- Don't Tell Me How Hard You Work.. Show Me How Much You'd Accomplished.. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sghosh at sghosh.org Wed Aug 31 06:39:55 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Wed, 31 Aug 2005 00:39:55 -0400 (EDT) Subject: @sysconfdir@/cgi.cfg - Installation setup problem In-Reply-To: References: Message-ID: On Wed, 31 Aug 2005, Elizar M. Palad wrote: > I rerun ./configure --prefix=/usr/local/nagios --with-cgiurl=/nagios/cgi-bin > --with-htmlurl=/nagios --with-nagios-user=nagios --with-nagios-groupp=nagios > --with-gd-lib=/usr/local/lib > and summary is below: > *** Configuration summary for nagios 2.0b4 08-02-2005 ***: > > General Options: > ------------------------- > Nagios executable: nagios > Nagios user/group: nagios,nagios > Command user/group: nagios,nagios > Embedded Perl: no > Event Broker: yes > Install ${prefix}: /usr/local/nagios > Lock file: ${prefix}/var/nagios.lock > Init directory: /etc/init.d > Host OS: solaris2.6 > > Web Interface Options: > ------------------------ > HTML URL: http://localhost/nagios/ > CGI URL: http://localhost/nagios/cgi-bin/ > Traceroute (used by WAP): > > > Review the options above for accuracy. If they look okay, > type 'make all' to compile the main program and CGIs. > ------------------ > Looks ok isn't it? > then when i do 'make all', i have this error: > # make all > cd ./base && make > make: Fatal error: Don't know how to make target `../include/locations.h' > Current working directory /packages/nagios-2.0b4/base > *** Error code 1 > make: Fatal error: Command failed for target `all' > This is also my second time with this error. What I did was i copy > locations.h.in as locations.h :-) > and the compilation continues.. (was that not right? :) > thanks! NOOOOO - configure must have produced an error before the summary was printed. configure should create a locations.h from locations.h.in after appropriate substitutions. If the file is not being created properly - you may have a file permission issue. run "chown -R user:group nagios_src_dir/" replace the user and group with the user and group info fort he person running configure replace nagios_src_dir with the dir that contains the nagios src. Never copy a *.*.in file into a *.* file. -- -sg ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From elizar.palad at gmail.com Wed Aug 31 07:21:21 2005 From: elizar.palad at gmail.com (Elizar M. Palad) Date: Wed, 31 Aug 2005 13:21:21 +0800 Subject: @sysconfdir@/cgi.cfg - Installation setup problem In-Reply-To: References: Message-ID: Hi, thanks! from ./configure's output: creating html/index.html creating html/side.html creating include/config.h creating include/snprintf.h creating include/nagios.h creating include/cgiutils.h ./configure: perl: not found ./configure: perl: not found Creating sample config files in sample-config/ ... ./configure: perl: not found ./configure: perl: not found ./configure: perl: not found ./configure: perl: not found ./configure: perl: not found ./configure: perl: not found ./configure: perl: not found ./configure: perl: not found *** Configuration summary for nagios 2.0b4 08-02-2005 ***: General Options: ------------------------- Nagios executable: nagios Nagios user/group: nagios,nagios Command user/group: nagios,nagios Embedded Perl: no Event Broker: yes Install ${prefix}: /usr/local/nagios Lock file: ${prefix}/var/nagios.lock Init directory: /etc/init.d Host OS: solaris2.6 .... Im going to install now perl and see if it will create the location.h file. Thanks! eli On 8/31/05, Subhendu Ghosh wrote: > > On Wed, 31 Aug 2005, Elizar M. Palad wrote: > > > I rerun ./configure --prefix=/usr/local/nagios > --with-cgiurl=/nagios/cgi-bin > > --with-htmlurl=/nagios --with-nagios-user=nagios > --with-nagios-groupp=nagios > > --with-gd-lib=/usr/local/lib > > and summary is below: > > *** Configuration summary for nagios 2.0b4 08-02-2005 ***: > > > > General Options: > > ------------------------- > > Nagios executable: nagios > > Nagios user/group: nagios,nagios > > Command user/group: nagios,nagios > > Embedded Perl: no > > Event Broker: yes > > Install ${prefix}: /usr/local/nagios > > Lock file: ${prefix}/var/nagios.lock > > Init directory: /etc/init.d > > Host OS: solaris2.6 > > > > Web Interface Options: > > ------------------------ > > HTML URL: http://localhost/nagios/ > > CGI URL: http://localhost/nagios/cgi-bin/ > > Traceroute (used by WAP): > > > > > > Review the options above for accuracy. If they look okay, > > type 'make all' to compile the main program and CGIs. > > ------------------ > > Looks ok isn't it? > > then when i do 'make all', i have this error: > > # make all > > cd ./base && make > > make: Fatal error: Don't know how to make target > `../include/locations.h' > > Current working directory /packages/nagios-2.0b4/base > > *** Error code 1 > > make: Fatal error: Command failed for target `all' > > This is also my second time with this error. What I did was i copy > > locations.h.in as > locations.h :-) > > and the compilation continues.. (was that not right? :) > > thanks! > > > NOOOOO - configure must have produced an error before the summary was > printed. > > configure should create a locations.h from locations.h.inafter > appropriate substitutions. > > If the file is not being created properly - you may have a file permission > issue. > > run "chown -R user:group nagios_src_dir/" > > replace the user and group with the user and group info fort he person > running configure > > replace nagios_src_dir with the dir that contains the nagios src. > > Never copy a *.*.in file into a *.* file. > > > > -- > > -sg > -- ---- Don't Tell Me How Hard You Work.. Show Me How Much You'd Accomplished.. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sghosh at sghosh.org Wed Aug 31 07:24:09 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Wed, 31 Aug 2005 01:24:09 -0400 (EDT) Subject: @sysconfdir@/cgi.cfg - Installation setup problem In-Reply-To: References: Message-ID: Yes - autoconf which creates configure uses perl :) You can either compile your own or sunfreeware.com has some nice pkgadd versions. -sg On Wed, 31 Aug 2005, Elizar M. Palad wrote: > Hi, thanks! > from ./configure's output: > > creating html/index.html > creating html/side.html > creating include/config.h > creating include/snprintf.h > creating include/nagios.h > creating include/cgiutils.h > ./configure: perl: not found > ./configure: perl: not found > > Creating sample config files in sample-config/ ... > ./configure: perl: not found > ./configure: perl: not found > ./configure: perl: not found > ./configure: perl: not found > ./configure: perl: not found > ./configure: perl: not found > ./configure: perl: not found > ./configure: perl: not found > > > *** Configuration summary for nagios 2.0b4 08-02-2005 ***: > > General Options: > ------------------------- > Nagios executable: nagios > Nagios user/group: nagios,nagios > Command user/group: nagios,nagios > Embedded Perl: no > Event Broker: yes > Install ${prefix}: /usr/local/nagios > Lock file: ${prefix}/var/nagios.lock > Init directory: /etc/init.d > Host OS: solaris2.6 > .... > Im going to install now perl and see if it will create the location.h file. > Thanks! > eli > > On 8/31/05, Subhendu Ghosh wrote: >> >> On Wed, 31 Aug 2005, Elizar M. Palad wrote: >> >>> I rerun ./configure --prefix=/usr/local/nagios >> --with-cgiurl=/nagios/cgi-bin >>> --with-htmlurl=/nagios --with-nagios-user=nagios >> --with-nagios-groupp=nagios >>> --with-gd-lib=/usr/local/lib >>> and summary is below: >>> *** Configuration summary for nagios 2.0b4 08-02-2005 ***: >>> >>> General Options: >>> ------------------------- >>> Nagios executable: nagios >>> Nagios user/group: nagios,nagios >>> Command user/group: nagios,nagios >>> Embedded Perl: no >>> Event Broker: yes >>> Install ${prefix}: /usr/local/nagios >>> Lock file: ${prefix}/var/nagios.lock >>> Init directory: /etc/init.d >>> Host OS: solaris2.6 >>> >>> Web Interface Options: >>> ------------------------ >>> HTML URL: http://localhost/nagios/ >>> CGI URL: http://localhost/nagios/cgi-bin/ >>> Traceroute (used by WAP): >>> >>> >>> Review the options above for accuracy. If they look okay, >>> type 'make all' to compile the main program and CGIs. >>> ------------------ >>> Looks ok isn't it? >>> then when i do 'make all', i have this error: >>> # make all >>> cd ./base && make >>> make: Fatal error: Don't know how to make target >> `../include/locations.h' >>> Current working directory /packages/nagios-2.0b4/base >>> *** Error code 1 >>> make: Fatal error: Command failed for target `all' >>> This is also my second time with this error. What I did was i copy >>> locations.h.in as >> locations.h :-) >>> and the compilation continues.. (was that not right? :) >>> thanks! >> >> >> NOOOOO - configure must have produced an error before the summary was >> printed. >> >> configure should create a locations.h from locations.h.inafter >> appropriate substitutions. >> >> If the file is not being created properly - you may have a file permission >> issue. >> >> run "chown -R user:group nagios_src_dir/" >> >> replace the user and group with the user and group info fort he person >> running configure >> >> replace nagios_src_dir with the dir that contains the nagios src. >> >> Never copy a *.*.in file into a *.* file. >> >> >> >> -- >> >> -sg >> > > > > -- ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mailings at good-it.com Wed Aug 31 07:51:58 2005 From: mailings at good-it.com (Johan Barelds) Date: Wed, 31 Aug 2005 07:51:58 +0200 Subject: Downtime Message-ID: <200508310751.59060.mailings@good-it.com> Hi all, Is it true that i can't schedule the downtime for all services on a specific host by only scheduling downtime for that particular host? I have hosts with more then 70 services and you can imagine it's a bit time-consuming if i have disable every single service of that host by hand. Grz. Johan ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Wed Aug 31 09:17:40 2005 From: ae at op5.se (Andreas Ericsson) Date: Wed, 31 Aug 2005 09:17:40 +0200 Subject: @sysconfdir@/cgi.cfg - Installation setup problem In-Reply-To: References: Message-ID: <43155994.1070105@op5.se> Subhendu Ghosh wrote: > > Yes - autoconf which creates configure uses perl :) > That doesn't matter though. The ./configure script is built to be able to run with only shell, grep, sed and awk (required SUSv1 tools). The perl-script is Ethan's doing and it can be taken care of. > You can either compile your own or sunfreeware.com has some nice pkgadd > versions. > This is probably easier. It's definitely faster anyway. > -sg > > > On Wed, 31 Aug 2005, Elizar M. Palad wrote: > >> Hi, thanks! >> from ./configure's output: >> >> creating html/index.html >> creating html/side.html >> creating include/config.h >> creating include/snprintf.h >> creating include/nagios.h >> creating include/cgiutils.h >> ./configure: perl: not found >> ./configure: perl: not found >> >> Creating sample config files in sample-config/ ... >> ./configure: perl: not found >> ./configure: perl: not found >> ./configure: perl: not found >> ./configure: perl: not found >> ./configure: perl: not found >> ./configure: perl: not found >> ./configure: perl: not found >> ./configure: perl: not found >> >> >> *** Configuration summary for nagios 2.0b4 08-02-2005 ***: >> >> General Options: >> ------------------------- >> Nagios executable: nagios >> Nagios user/group: nagios,nagios >> Command user/group: nagios,nagios >> Embedded Perl: no >> Event Broker: yes >> Install ${prefix}: /usr/local/nagios >> Lock file: ${prefix}/var/nagios.lock >> Init directory: /etc/init.d >> Host OS: solaris2.6 >> .... >> Im going to install now perl and see if it will create the location.h >> file. >> Thanks! >> eli >> >> On 8/31/05, Subhendu Ghosh wrote: >> >>> >>> On Wed, 31 Aug 2005, Elizar M. Palad wrote: >>> >>>> I rerun ./configure --prefix=/usr/local/nagios >>> >>> --with-cgiurl=/nagios/cgi-bin >>> >>>> --with-htmlurl=/nagios --with-nagios-user=nagios >>> >>> --with-nagios-groupp=nagios >>> >>>> --with-gd-lib=/usr/local/lib >>>> and summary is below: >>>> *** Configuration summary for nagios 2.0b4 08-02-2005 ***: >>>> >>>> General Options: >>>> ------------------------- >>>> Nagios executable: nagios >>>> Nagios user/group: nagios,nagios >>>> Command user/group: nagios,nagios >>>> Embedded Perl: no >>>> Event Broker: yes >>>> Install ${prefix}: /usr/local/nagios >>>> Lock file: ${prefix}/var/nagios.lock >>>> Init directory: /etc/init.d >>>> Host OS: solaris2.6 >>>> >>>> Web Interface Options: >>>> ------------------------ >>>> HTML URL: http://localhost/nagios/ >>>> CGI URL: http://localhost/nagios/cgi-bin/ >>>> Traceroute (used by WAP): >>>> >>>> >>>> Review the options above for accuracy. If they look okay, >>>> type 'make all' to compile the main program and CGIs. >>>> ------------------ >>>> Looks ok isn't it? >>>> then when i do 'make all', i have this error: >>>> # make all >>>> cd ./base && make >>>> make: Fatal error: Don't know how to make target >>> >>> `../include/locations.h' >>> >>>> Current working directory /packages/nagios-2.0b4/base >>>> *** Error code 1 >>>> make: Fatal error: Command failed for target `all' >>>> This is also my second time with this error. What I did was i copy >>>> locations.h.in as >>> >>> locations.h :-) >>> >>>> and the compilation continues.. (was that not right? :) >>>> thanks! >>> >>> >>> >>> NOOOOO - configure must have produced an error before the summary was >>> printed. >>> >>> configure should create a locations.h from >>> locations.h.inafter >>> appropriate substitutions. >>> >>> If the file is not being created properly - you may have a file >>> permission >>> issue. >>> >>> run "chown -R user:group nagios_src_dir/" >>> >>> replace the user and group with the user and group info fort he person >>> running configure >>> >>> replace nagios_src_dir with the dir that contains the nagios src. >>> >>> Never copy a *.*.in file into a *.* file. >>> >>> >>> >>> -- >>> >>> -sg >>> >> >> >> >> > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Wed Aug 31 09:19:03 2005 From: ae at op5.se (Andreas Ericsson) Date: Wed, 31 Aug 2005 09:19:03 +0200 Subject: Downtime In-Reply-To: <200508310751.59060.mailings@good-it.com> References: <200508310751.59060.mailings@good-it.com> Message-ID: <431559E7.8090501@op5.se> Johan Barelds wrote: > Hi all, > > Is it true that i can't schedule the downtime for all services on a specific > host by only scheduling downtime for that particular host? > No. Check the box named "Schedule downtime for services too" (or some such). > I have hosts with more then 70 services and you can imagine it's a bit > time-consuming if i have disable every single service of that host by hand. > Indeed I can. > Grz. Johan > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From moshesharon at gmail.com Wed Aug 31 09:28:23 2005 From: moshesharon at gmail.com (Moshe Sharon) Date: Wed, 31 Aug 2005 07:28:23 +0000 (UTC) Subject: Google Maps? References: <916aba3505083006045e0689df@mail.gmail.com> Message-ID: Hello im not sure exactly what you asked here. but if you want to setup nice maps with earth / cities background. here are few examples i found on the web. http://woody.archive.org/nagios/cgi-bin/statusmap.cgi http://datatag-nagios.pi.infn.it/main.php if you need something more proactive SNMP Aware then check out openNMS Moshe Sharon ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From jjk_saji at yahoo.com Wed Aug 31 09:44:43 2005 From: jjk_saji at yahoo.com (John Joseph) Date: Wed, 31 Aug 2005 08:44:43 +0100 (BST) Subject: Google Maps? In-Reply-To: References: Message-ID: <20050831074443.47395.qmail@web40805.mail.yahoo.com> Thanks for the link --- Moshe Sharon wrote: > Hello > > im not sure exactly what you asked here. but if you > want to setup nice maps > with earth / cities background. here are few > examples i found on the web. > http://woody.archive.org/nagios/cgi-bin/statusmap.cgi > http://datatag-nagios.pi.infn.it/main.php > > if you need something more proactive SNMP Aware then > check out openNMS > > Moshe Sharon > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software > Conference & EXPO > September 19-22, 2005 * San Francisco, CA * > Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects > & Teams * Testing & QA > Security * Process Improvement & Measurement * > http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version > (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being > sent to /dev/null > ___________________________________________________________ To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rituraj at pune.nevisnetworks.com Wed Aug 31 10:10:53 2005 From: rituraj at pune.nevisnetworks.com (Rituraj Buddhisagar) Date: Wed, 31 Aug 2005 13:40:53 +0530 Subject: new to nagios Message-ID: <4315660D.80106@pune.nevisnetworks.com> An HTML attachment was scrubbed... URL: From chris at aidworld.org Wed Aug 31 11:44:16 2005 From: chris at aidworld.org (Chris Wilson) Date: Wed, 31 Aug 2005 10:44:16 +0100 Subject: $HOSTNAME$ in commands? (Was: Re: Monitoring a matrix of load-balanced VirtualHosts?) In-Reply-To: <916aba35050830112821fafe18@mail.gmail.com> References: <916aba350508291434493168d5@mail.gmail.com> <431411C4.4030708@op5.se> <916aba3505083006045e0689df@mail.gmail.com> <1125407475.9255.152.camel@localhost> <916aba35050830112821fafe18@mail.gmail.com> Message-ID: <1125481456.24725.24.camel@localhost> Hi JB, > I've been told to check '{machinename}.foo.com', but - according to > docs/macros.html - I can't use $HOSTNAME$ or $HOSTALIAS$ in either > host or service checks. > > My 1st instinct is to do just that - something like > check_command check_lb_vhost!$HOSTNAME$.foo.com > > but it seems I can't. This is more than a bit annoying, and seems a > very odd design decision. I can't be the only one who wants this > functionality. I agree that that is very odd. The information must be available, and you could probably patch Nagios to make those macros work. Looking at the source code, it should work now. base/checks.c grabs all macros for hosts and services before running the check. The only problem might be the nesting of macros, which I haven't tried and don't know if it works. You could try this: define service { use vhost-service service_description $HOSTNAME$.bar.com check_command my_check_http_on_host!bar.com hostgroup_name bar_com_servers } define command { command_name my_check_http_on_host command_line $USER1$/check_http -I $HOSTADDRESS$ -H $HOSTNAME$.$ARG1$ } If not, let me know (with details about exactly what happens when you try) and I'll have another look. Or maybe a higher guru will. Cheers, Chris. -- (aidworld) chris wilson | chief engineer (chris at aidworld.org) ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From niceforums at yahoo.com Wed Aug 31 12:27:16 2005 From: niceforums at yahoo.com (hamideh daliri) Date: Wed, 31 Aug 2005 03:27:16 -0700 (PDT) Subject: mysql user nagiosadmin not found error ! Message-ID: <20050831102717.15418.qmail@web30112.mail.mud.yahoo.com> hi, i want to use web and cgi authentication for nagios web interface , i do the instructions in nagios doc ,the prompt for entering username and password for accessing to nagios appears but it doesn't accept my username and password , i checked /var/log/httpd/error_log and what is logged there is ' mysql user nagiosadmin not found /nagios/ ' . why is it so ? i have installed nagios about 5-6 times before but i haven't seen such problem , the os is RHEL4 . tnx . ____________________________________________________ Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Wed Aug 31 12:29:24 2005 From: ae at op5.se (Andreas Ericsson) Date: Wed, 31 Aug 2005 12:29:24 +0200 Subject: $HOSTNAME$ in commands? (Was: Re: Monitoring a matrix of load-balanced VirtualHosts?) In-Reply-To: <1125481456.24725.24.camel@localhost> References: <916aba350508291434493168d5@mail.gmail.com> <431411C4.4030708@op5.se> <916aba3505083006045e0689df@mail.gmail.com> <1125407475.9255.152.camel@localhost> <916aba35050830112821fafe18@mail.gmail.com> <1125481456.24725.24.camel@localhost> Message-ID: <43158684.5070106@op5.se> Chris Wilson wrote: > Hi JB, > > >>I've been told to check '{machinename}.foo.com', but - according to >>docs/macros.html - I can't use $HOSTNAME$ or $HOSTALIAS$ in either >>host or service checks. >> >>My 1st instinct is to do just that - something like >> check_command check_lb_vhost!$HOSTNAME$.foo.com >> >>but it seems I can't. This is more than a bit annoying, and seems a >>very odd design decision. I can't be the only one who wants this >>functionality. > > > I agree that that is very odd. The information must be available, and > you could probably patch Nagios to make those macros work. > > Looking at the source code, it should work now. base/checks.c grabs all > macros for hosts and services before running the check. The only problem > might be the nesting of macros, which I haven't tried and don't know if > it works. You could try this: > It's for this precise reason that it doesn't work. $HOSTNAME$ is translated to $ARG1$ in the above example. $ARG1$ is properly expanded and $HOSTNAME$ (which is an invalid shell variable) is passed to popen(3) as is, and subsequently dropped by the shell. > define service { > use vhost-service > service_description $HOSTNAME$.bar.com > check_command my_check_http_on_host!bar.com > hostgroup_name bar_com_servers > } > > define command { > command_name my_check_http_on_host > command_line $USER1$/check_http -I $HOSTADDRESS$ -H > $HOSTNAME$.$ARG1$ > } > This will work, because it isn't nested anymore (although $HOSTNAME$.$ARG1$ could just as easily be replaced by $SERVICEDESCRIPTION$ or whatever that macro is called). > If not, let me know (with details about exactly what happens when you > try) and I'll have another look. Or maybe a higher guru will. > > Cheers, Chris. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rituraj at pune.nevisnetworks.com Wed Aug 31 14:38:52 2005 From: rituraj at pune.nevisnetworks.com (Rituraj Buddhisagar) Date: Wed, 31 Aug 2005 18:08:52 +0530 Subject: new to nagios In-Reply-To: <59734.192.168.1.105.1125484947.squirrel@192.168.1.105> References: <4315660D.80106@pune.nevisnetworks.com> <59734.192.168.1.105.1125484947.squirrel@192.168.1.105> Message-ID: <4315A4DC.8050207@pune.nevisnetworks.com> An HTML attachment was scrubbed... URL: From ae at op5.se Wed Aug 31 14:56:37 2005 From: ae at op5.se (Andreas Ericsson) Date: Wed, 31 Aug 2005 14:56:37 +0200 Subject: new to nagios In-Reply-To: <4315A4DC.8050207@pune.nevisnetworks.com> References: <4315660D.80106@pune.nevisnetworks.com> <59734.192.168.1.105.1125484947.squirrel@192.168.1.105> <4315A4DC.8050207@pune.nevisnetworks.com> Message-ID: <4315A905.1050609@op5.se> Rituraj Buddhisagar wrote: > Hi Roy; > > Thanks. > > I will try from your tip. > Regarding the GUI problem...i have .htaccess on both the nagios/sbin and > nagios/share directories. Also one observation is that i do not see GUI > properly...also when i click on "3-d status map" statuswrl.cgi does not execute > in browser ...it gives me option in browser as "save as" in browser. All other > cgi are working fine. > "do not see GUI properly" isn't exactly a good error description. As for the 3d issues, you need to download and install the proper 3d plugin for your browser. There's something about it in the readme or the FAQ, I think. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rituraj at pune.nevisnetworks.com Wed Aug 31 15:04:41 2005 From: rituraj at pune.nevisnetworks.com (Rituraj Buddhisagar) Date: Wed, 31 Aug 2005 18:34:41 +0530 Subject: new to nagios In-Reply-To: <4315A905.1050609@op5.se> References: <4315660D.80106@pune.nevisnetworks.com> <59734.192.168.1.105.1125484947.squirrel@192.168.1.105> <4315A4DC.8050207@pune.nevisnetworks.com> <4315A905.1050609@op5.se> Message-ID: <4315AAE9.3030409@pune.nevisnetworks.com> An HTML attachment was scrubbed... URL: From rituraj at pune.nevisnetworks.com Wed Aug 31 15:12:34 2005 From: rituraj at pune.nevisnetworks.com (Rituraj Buddhisagar) Date: Wed, 31 Aug 2005 18:42:34 +0530 Subject: new to nagios In-Reply-To: <59734.192.168.1.105.1125484947.squirrel@192.168.1.105> References: <4315660D.80106@pune.nevisnetworks.com> <59734.192.168.1.105.1125484947.squirrel@192.168.1.105> Message-ID: <4315ACC2.2010603@pune.nevisnetworks.com> An HTML attachment was scrubbed... URL: From ae at op5.se Wed Aug 31 15:12:17 2005 From: ae at op5.se (Andreas Ericsson) Date: Wed, 31 Aug 2005 15:12:17 +0200 Subject: new to nagios In-Reply-To: <4315AAE9.3030409@pune.nevisnetworks.com> References: <4315660D.80106@pune.nevisnetworks.com> <59734.192.168.1.105.1125484947.squirrel@192.168.1.105> <4315A4DC.8050207@pune.nevisnetworks.com> <4315A905.1050609@op5.se> <4315AAE9.3030409@pune.nevisnetworks.com> Message-ID: <4315ACB1.2060703@op5.se> Rituraj Buddhisagar wrote: > Hi ; > > > What i mean by "do not see GUI properly " is ...there is this "Logged in as ?" > On every page top corner - as explained in my first mail. Also, I see host > status details as "up 0 down 0 unreachable 0 " etc etc.... Read the docs regarding cgi.cfg, especially the authorized_for options. >and the right frame of > my GUI is lain html tables unlike what is see on site screenshots - colorful. > > Also when i click on "hostgroup overview" then also the status.cgi does not > execute in browser...it asks me for save option. > This is a webserver configuration issue. http://httpd.apache.org/docs (or some such). -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From andrew at profitability.net Wed Aug 31 15:36:15 2005 From: andrew at profitability.net (Andrew Cruse) Date: Wed, 31 Aug 2005 09:36:15 -0400 Subject: circular ballon status map quesition In-Reply-To: <626FC7C6A97381468FB872072AB5DDC801FEFA@XCH-SW-42.sw.nos.boeing.com> References: <626FC7C6A97381468FB872072AB5DDC801FEFA@XCH-SW-42.sw.nos.boeing.com> Message-ID: nagios-users-admin at lists.sourceforge.net wrote: > Don't know what determines the size of the circles but note > that things like LAN/WAN interfaces are small and devices > hanging off the LAN segments like servers, workstations and > printers are bigger on my map. The size of the circle corresponds to the relative number of services associated with the host. Andrew ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rituraj at pune.nevisnetworks.com Wed Aug 31 15:41:16 2005 From: rituraj at pune.nevisnetworks.com (Rituraj Buddhisagar) Date: Wed, 31 Aug 2005 19:11:16 +0530 Subject: new to nagios In-Reply-To: <4315ACB1.2060703@op5.se> References: <4315660D.80106@pune.nevisnetworks.com> <59734.192.168.1.105.1125484947.squirrel@192.168.1.105> <4315A4DC.8050207@pune.nevisnetworks.com> <4315A905.1050609@op5.se> <4315AAE9.3030409@pune.nevisnetworks.com> <4315ACB1.2060703@op5.se> Message-ID: <4315B37C.3030209@pune.nevisnetworks.com> An HTML attachment was scrubbed... URL: From dist-list at LEXUM.UMontreal.CA Wed Aug 31 16:01:23 2005 From: dist-list at LEXUM.UMontreal.CA (FM) Date: Wed, 31 Aug 2005 10:01:23 -0400 Subject: 1 webserver with multiple web sites Message-ID: <4315B833.3080804@lexum.umontreal.ca> Hello, I just installed nagios 2.x and I'm using doc + google to understand it. The doc is one of the hardest I read but I'm learning :-) My question : On web server I have several web site (virtual host and multiple IP address). Is-it possible to create 1 host : web server and check all website with this webserver ? For now, I created 2 host per website. Is there a better solution ? PS : this software is very very impressive !!!! -------- FM ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rituraj at pune.nevisnetworks.com Wed Aug 31 16:06:01 2005 From: rituraj at pune.nevisnetworks.com (Rituraj Buddhisagar) Date: Wed, 31 Aug 2005 19:36:01 +0530 Subject: 1 webserver with multiple web sites In-Reply-To: <4315B833.3080804@lexum.umontreal.ca> References: <4315B833.3080804@lexum.umontreal.ca> Message-ID: <4315B949.4080504@pune.nevisnetworks.com> An HTML attachment was scrubbed... URL: From moshesharon at gmail.com Wed Aug 31 16:21:13 2005 From: moshesharon at gmail.com (Moshe Sharon) Date: Wed, 31 Aug 2005 14:21:13 +0000 (UTC) Subject: 1 webserver with multiple web sites References: <4315B833.3080804@lexum.umontreal.ca> Message-ID: Hello You can do it easily with check_http plugin. in the check commands file define: command_name check_vhost command_line check_http -H $ARG1$ in the service you define: service_description WEBSITE 1 check_command check_vhost!www.yourwebsite.com if you need more info on http parameters do check_http -h in your plugins dir Moshe Sharon ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From fmml at cedval.org Wed Aug 31 16:35:12 2005 From: fmml at cedval.org (Francois Meehan) Date: Wed, 31 Aug 2005 10:35:12 -0400 (EDT) Subject: Data extraction from Nagios logs... Message-ID: <56619.206.47.191.243.1125498912.squirrel@whoami7.cedval.org> Hi all, I have a customer that has the following need (as part of Sarbox): Need to produce a monthly report, listing all notifications for a given host over that period. If we could extract data from logs and put it in a DB, that might be the best approach... Any ideas if tools exists to do this, or any thought on our to achieve this? Best regards, Francois Meehan Random Thought: --------------- The most happy marriage I can picture or imagine to myself would be the union of a deaf man to a blind woman. - Samuel Taylor Coleridge, 1772 - 1834 ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From nagios at jehster.net Wed Aug 31 16:47:36 2005 From: nagios at jehster.net (Roy Kidder) Date: Wed, 31 Aug 2005 10:47:36 -0400 (EDT) Subject: 1 webserver with multiple web sites In-Reply-To: <4315B833.3080804@lexum.umontreal.ca> References: <4315B833.3080804@lexum.umontreal.ca> Message-ID: <33383.206.131.211.142.1125499656.squirrel@206.131.211.142> Someone may have a better suggestion, but the way I handeled this was to write a script called check_http_virtual which accepted an argument of the virtual host to check and simply passed that on to check_http using that the as -H argument. Then, assuming your host in Nagios is called 'web1' and you have two virtuals called 'virtual1' and 'virtual2' you can create a service for web1 which uses check_http_virtual to check virtual1 and virtual2 (check_http_virtual!virtual1 and check_http_virtual!virtual2, respectively). Hope that helps, Roy FM said: > Hello, > I just installed nagios 2.x and I'm using doc + google to understand it. > The doc is one of the hardest I read but I'm learning :-) > My question : > On web server I have several web site (virtual host and multiple IP > address). > Is-it possible to create 1 host : web server > and check all website with this webserver ? > > For now, I created 2 host per website. Is there a better solution ? > > PS : this software is very very impressive !!!! > > -------- > FM > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mailings at good-it.com Wed Aug 31 17:01:55 2005 From: mailings at good-it.com (mailings at good-it.com) Date: Wed, 31 Aug 2005 17:01:55 +0200 (CEST) Subject: Downtime In-Reply-To: <431559E7.8090501@op5.se> References: <200508310751.59060.mailings@good-it.com> <431559E7.8090501@op5.se> Message-ID: <63379.145.221.92.40.1125500515.squirrel@www.good-it.com> > Johan Barelds wrote: > No. Check the box named "Schedule downtime for services too" (or some > such). I am probably overlooking, but where can i find that box?? I can't find it in the Nagios gui. Is it in the configuration? Grz. Johan ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Wed Aug 31 17:25:14 2005 From: marc at ena.com (Marc Powell) Date: Wed, 31 Aug 2005 10:25:14 -0500 Subject: mysql user nagiosadmin not found error ! Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of hamideh daliri > Sent: Wednesday, August 31, 2005 5:27 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] mysql user nagiosadmin not found error ! > > hi, > i want to use web and cgi authentication for nagios > web interface , i do the instructions in nagios doc > ,the prompt for entering username and password for > accessing to nagios appears but it doesn't accept my > username and password , i checked > /var/log/httpd/error_log and what is logged there is ' > mysql user nagiosadmin not found /nagios/ ' . > why is it so ? > i have installed nagios about 5-6 times before but i > haven't seen such problem , the os is RHEL4 . It looks like you have mod_auth_mysql enabled in apache and it is overriding the standard .htaccess AuthUserFile directive. This RHN bug report and advisory look pertinent -- https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=144466 https://rhn.redhat.com/errata/RHBA-2005-111.html -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From rituraj at pune.nevisnetworks.com Wed Aug 31 18:42:03 2005 From: rituraj at pune.nevisnetworks.com (Rituraj Buddhisagar) Date: Wed, 31 Aug 2005 22:12:03 +0530 Subject: new to nagios In-Reply-To: <4315AAE9.3030409@pune.nevisnetworks.com> References: <4315660D.80106@pune.nevisnetworks.com> <59734.192.168.1.105.1125484947.squirrel@192.168.1.105> <4315A4DC.8050207@pune.nevisnetworks.com> <4315A905.1050609@op5.se> <4315AAE9.3030409@pune.nevisnetworks.com> Message-ID: <4315DDDB.5080205@pune.nevisnetworks.com> An HTML attachment was scrubbed... URL: From tom.brown at goodtechnology.com Wed Aug 31 18:19:59 2005 From: tom.brown at goodtechnology.com (Tom Brown) Date: Wed, 31 Aug 2005 17:19:59 +0100 (BST) Subject: Data extraction from Nagios logs... In-Reply-To: <56619.206.47.191.243.1125498912.squirrel@whoami7.cedval.org> References: <56619.206.47.191.243.1125498912.squirrel@whoami7.cedval.org> Message-ID: <4772.80.168.121.21.1125505199.squirrel@80.168.121.21> > If we could extract data from logs and put it in a DB, that might be the > best approach... > > Any ideas if tools exists to do this, or any thought on our to achieve > this? http://sourceforge.net/projects/nagios-db/ ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at gridshield.net Wed Aug 31 17:31:47 2005 From: marc at gridshield.net (Marc DeTrano) Date: Wed, 31 Aug 2005 09:31:47 -0600 Subject: circular ballon status map quesition In-Reply-To: References: Message-ID: <4315CD63.3000203@gridshield.net> Thanks for the help--still working on the fill colors. I thought it might have something to do with indicating problem states in the services, but when I checked it over that did not add up (some hosts with service problems would still have no fills). Sometimes the color is yellow, sometime orange, think I might have seen gray once. On a related note, anyone know of any alternative status map cgi's (checked Nagios Exchange and googled, did not find much)--perhaps there is something in the works? This cgi was never a big deal to me personally except to check outages, but potential clients always point at the maps in (insert $6-figure proprietary solution here) and say "wow, cool map" (how's that for a design spec---"make it cooler"). I am mulling over starting a project myself, but it seems a little daunting. Marc Andrew Cruse wrote: >nagios-users-admin at lists.sourceforge.net wrote: > > >>Don't know what determines the size of the circles but note >>that things like LAN/WAN interfaces are small and devices >>hanging off the LAN segments like servers, workstations and >>printers are bigger on my map. >> >> > >The size of the circle corresponds to the relative number of services >associated with the host. > >Andrew > > > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tylerawoods at gmail.com Wed Aug 31 18:51:20 2005 From: tylerawoods at gmail.com (Tyler Woods) Date: Wed, 31 Aug 2005 09:51:20 -0700 Subject: 404 Not Found Message-ID: <4315E008.8050303@gmail.com> Getting the following after installing: Not Found The requested URL /nagios/ was not found on this server. ------------------------------------------------------------------------ Apache/2.0.46 (Red Hat) Server at docapp Port 443 I'm pretty sure this is an Apache error but can't get it resolved. Right now the server is only allowing connection through HTTPS but I'm working on getting that resolved currently. Did I mess up the Nagios install some how? -tyler ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ae at op5.se Wed Aug 31 19:42:54 2005 From: ae at op5.se (Andreas Ericsson) Date: Wed, 31 Aug 2005 19:42:54 +0200 Subject: Downtime In-Reply-To: <63379.145.221.92.40.1125500515.squirrel@www.good-it.com> References: <200508310751.59060.mailings@good-it.com> <431559E7.8090501@op5.se> <63379.145.221.92.40.1125500515.squirrel@www.good-it.com> Message-ID: <4315EC1E.20703@op5.se> mailings at good-it.com wrote: >>Johan Barelds wrote: >>No. Check the box named "Schedule downtime for services too" (or some >>such). > > I am probably overlooking, but where can i find that box?? > I can't find it in the Nagios gui. Is it in the configuration? > My bad. It's "Schedule downtime for all services on this host" (in the command menu on the right hand side in the status-view for the host) and then check the box "Schedule downtime for host too", rather than the other way around. -- Andreas Ericsson andreas.ericsson at op5.se OP5 AB www.op5.se Lead Developer ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Wed Aug 31 19:50:13 2005 From: marc at ena.com (Marc Powell) Date: Wed, 31 Aug 2005 12:50:13 -0500 Subject: 404 Not Found Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Tyler Woods > Sent: Wednesday, August 31, 2005 11:51 AM > To: Nagios-users at lists.sourceforge.net > Subject: [Nagios-users] 404 Not Found > > Getting the following after installing: > > > Not Found > > The requested URL /nagios/ was not found on this server. > > ------------------------------------------------------------------------ > Apache/2.0.46 (Red Hat) Server at docapp Port 443 > > > > I'm pretty sure this is an Apache error but can't get it resolved. Right > now the server is only allowing connection through HTTPS but I'm working > on getting that resolved currently. Did I mess up the Nagios install > some how? Did you follow these instructions? : http://nagios.sourceforge.net/docs/1_0/installweb.html -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dist-list at LEXUM.UMontreal.CA Wed Aug 31 21:09:01 2005 From: dist-list at LEXUM.UMontreal.CA (FM) Date: Wed, 31 Aug 2005 15:09:01 -0400 Subject: error code 127 after each server reload Message-ID: <4316004D.6090005@lexum.umontreal.ca> Hello, I'm having a great time configuring this beast ! Each time that I reload or restart NAGIOS I recevied error 127 for all services (and also lots of false positive email) ex : Warning: Return code of 127 for check of service 'NFS' on host 'SERVER' was out of bounds. Make sure the plugin you're trying to run actually exists. I'm using nagios 2.0b4 -- Frederic Medery System Administrator LexUM, University of Montreal ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From sghosh at sghosh.org Wed Aug 31 21:17:03 2005 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Wed, 31 Aug 2005 15:17:03 -0400 (EDT) Subject: error code 127 after each server reload In-Reply-To: <4316004D.6090005@lexum.umontreal.ca> References: <4316004D.6090005@lexum.umontreal.ca> Message-ID: On Wed, 31 Aug 2005, FM wrote: > Hello, > I'm having a great time configuring this beast ! > Each time that I reload or restart NAGIOS I recevied error 127 for all > services (and also lots of false positive email) > ex : > Warning: Return code of 127 for check of service 'NFS' on host 'SERVER' was > out of bounds. Make sure the plugin you're trying to run actually exists. > > I'm using nagios 2.0b4 > > FAQ ID F0017 -- ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From mailings at good-it.com Wed Aug 31 21:18:31 2005 From: mailings at good-it.com (Johan Barelds) Date: Wed, 31 Aug 2005 21:18:31 +0200 Subject: Downtime In-Reply-To: <4315EC1E.20703@op5.se> References: <200508310751.59060.mailings@good-it.com> <63379.145.221.92.40.1125500515.squirrel@www.good-it.com> <4315EC1E.20703@op5.se> Message-ID: <200508312118.32303.mailings@good-it.com> Op woensdag 31 augustus 2005 19:42, schreef Andreas Ericsson: > > I am probably overlooking, but where can i find that box?? > > I can't find it in the Nagios gui. Is it in the configuration? > > My bad. It's "Schedule downtime for all services on this host" (in the > command menu on the right hand side in the status-view for the host) and > then check the box "Schedule downtime for host too", rather than the > other way around. Mmmm.....which version of Nagios are we talking about? I am running version 2.04b and the only thing which comes close is the following: 1. Goto "Host Detail" 2. select a host by clicking on its name 3. on the right-hand site i see a box called "Host Commands" 4. The only option about downtime i see here is "Schedule downtime for this host". But....there is no box saying "Schedule downtime for host too" or "Schedule downtime for all services on this host"...:-( -- Kind Regards / Met vriendelijke groet, Johan Barelds Good-IT! Tel.+31(0)70-3965230 Strijplaan 320 Mob.+31(0)6-54253750 2285 HZ Rijswijk(ZH) j.barelds at good-it.com http://www.good-it.com ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Wed Aug 31 21:27:51 2005 From: marc at ena.com (Marc Powell) Date: Wed, 31 Aug 2005 14:27:51 -0500 Subject: error code 127 after each server reload Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of FM > Sent: Wednesday, August 31, 2005 2:09 PM > To: Mailing List Nagios-Users > Subject: [Nagios-users] error code 127 after each server reload > > Hello, > I'm having a great time configuring this beast ! > Each time that I reload or restart NAGIOS I recevied error 127 for all > services (and also lots of false positive email) > ex : > Warning: Return code of 127 for check of service 'NFS' on host 'SERVER' > was out of bounds. Make sure the plugin you're trying to run actually > exists. > > I'm using nagios 2.0b4 This indicates that the command definition doesn't contain the correct path to the plugin, the plugins weren't installed in the standard location of /usr/local/nagios/libexec or the plugins weren't installed at all. I'd start by verifying that the $USER1$ macro in resource.cfg points to where the plugins were installed -- Example command definition -- # 'check_ping' command definition define command{ command_name check_ping command_line $USER1$/check_fping $HOSTADDRESS$ -n 10 -w500.0 30 -c1000.0 60 } $USER1$ as defined in resource.cfg -- $USER1$=/usr/local/nagios/libexec -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From tylerawoods at gmail.com Wed Aug 31 20:05:46 2005 From: tylerawoods at gmail.com (Tyler Woods) Date: Wed, 31 Aug 2005 11:05:46 -0700 Subject: 404 Not Found In-Reply-To: References: Message-ID: <4315F17A.7030002@gmail.com> Yep, did that exactly as it said to. I downloaded the PDF manual. Marc Powell wrote: > > >>-----Original Message----- >>From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- >>admin at lists.sourceforge.net] On Behalf Of Tyler Woods >>Sent: Wednesday, August 31, 2005 11:51 AM >>To: Nagios-users at lists.sourceforge.net >>Subject: [Nagios-users] 404 Not Found >> >>Getting the following after installing: >> >> >> Not Found >> >>The requested URL /nagios/ was not found on this server. >> >> >> >> >------------------------------------------------------------------------ > > >>Apache/2.0.46 (Red Hat) Server at docapp Port 443 >> >> >> >>I'm pretty sure this is an Apache error but can't get it resolved. >> >> >Right > > >>now the server is only allowing connection through HTTPS but I'm >> >> >working > > >>on getting that resolved currently. Did I mess up the Nagios install >>some how? >> >> > >Did you follow these instructions? : >http://nagios.sourceforge.net/docs/1_0/installweb.html > >-- >Marc > > >------------------------------------------------------- >SF.Net email is Sponsored by the Better Software Conference & EXPO >September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices >Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA >Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users >::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. >::: Messages without supporting info will risk being sent to /dev/null > > > ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Wed Aug 31 20:29:11 2005 From: marc at ena.com (Marc Powell) Date: Wed, 31 Aug 2005 13:29:11 -0500 Subject: 404 Not Found Message-ID: Please try to respond in context. It makes it difficult for someone reading this thread in the future to follow exactly what's going on. [re-arranging] > > Marc Powell wrote: > > > > > > >>-----Original Message----- > >>From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > >>admin at lists.sourceforge.net] On Behalf Of Tyler Woods > >>Sent: Wednesday, August 31, 2005 11:51 AM > >>To: Nagios-users at lists.sourceforge.net > >>Subject: [Nagios-users] 404 Not Found > >> > >>Getting the following after installing: > >> > >> > >> Not Found > >> > >>The requested URL /nagios/ was not found on this server. > >> > >----------------------------------------------------------------------- - > > > >>Apache/2.0.46 (Red Hat) Server at docapp Port 443 > >> > >>I'm pretty sure this is an Apache error but can't get it resolved. > >>Right now the server is only allowing connection through HTTPS but I'm > >>working > > > >>on getting that resolved currently. Did I mess up the Nagios install > >>some how? > >> > >Did you follow these instructions? : > >http://nagios.sourceforge.net/docs/1_0/installweb.html > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Tyler Woods > Sent: Wednesday, August 31, 2005 1:06 PM > To: Nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] 404 Not Found > > Yep, did that exactly as it said to. I downloaded the PDF manual. It seems clear to me that the Alias -- Alias /nagios/ /usr/local/nagios/share/ isn't working _or_ /usr/local/nagios/share doesn't exist. Was apache restarted after you added the config options? **What is your web server error log indicating?** Does /usr/local/nagios/share exist and contain the CGI's? -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From marc at ena.com Wed Aug 31 21:52:08 2005 From: marc at ena.com (Marc Powell) Date: Wed, 31 Aug 2005 14:52:08 -0500 Subject: error code 127 after each server reload Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of FM > Sent: Wednesday, August 31, 2005 2:38 PM > To: Mailing List Nagios-Users > Subject: Re: [Nagios-users] error code 127 after each server reload > > I already red this FAQ thank you :-) > > For ex, tomcat service > in my nagios.cfg : > resource_file=/etc/nagios/resource.cfg This is a resource file. I believe you can only have one. > resource_file=/etc/nagios/services.cfg > resource_file=/etc/nagios/checkcommands.cfg These are cfg_file's. They're different from, and treated differently than, the resource_file. You need to change these lines in nagios.cfg > -- Marc ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ladams at cloudmark.com Wed Aug 31 22:10:18 2005 From: ladams at cloudmark.com (Lori Adams) Date: Wed, 31 Aug 2005 13:10:18 -0700 Subject: error code 127 after each server reload Message-ID: > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of FM > Sent: Wednesday, August 31, 2005 12:38 PM > To: Mailing List Nagios-Users > Subject: Re: [Nagios-users] error code 127 after each server reload > > I already red this FAQ thank you :-) > > For ex, tomcat service > in my nagios.cfg : > resource_file=/etc/nagios/resource.cfg > resource_file=/etc/nagios/services.cfg > resource_file=/etc/nagios/checkcommands.cfg > > > inside /etc/nagios/services.cfg > My service for tomact for example : > define command { > command_name check_tomcat > command_line $USER1$/check_http -H $HOSTADDRESS$ -p 8080 First off: ls -lh /usr/lib/nagios/plugins/check_http Does it exist? If so, then Put in an "echo" in the checkcommand, restart nagios and see what is output to your nagios gui. Copy and paste that line and actually run the entire line as nagios user. See if there are any errors. Basically this will test whether you can run example: define command { command_name check_tomcat command_line echo $USER1$/check_http -H $HOSTADDRESS$ -p 8080 } > inside /etc/nagios/resource.cfg : > $USER1$=/usr/lib/nagios/plugins > > inside /etc/nagios/services.cfg : > define service{ > use generic-service ; Name of service > template to use > > host_name salerno.lan.lexum.pri > service_description TOMCAT > 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 w,u,c,r > check_command check_tomcat > } > > Bu I still have : > > > Subhendu Ghosh wrote: > > On Wed, 31 Aug 2005, FM wrote: > > > >> Hello, > >> I'm having a great time configuring this beast ! > >> Each time that I reload or restart NAGIOS I recevied error 127 for all > >> services (and also lots of false positive email) > >> ex : > >> Warning: Return code of 127 for check of service 'NFS' on host > >> 'SERVER' was out of bounds. Make sure the plugin you're trying to run > >> actually exists. > >> > >> I'm using nagios 2.0b4 > >> > >> > > > > FAQ ID F0017 > > > > -- Good luck. ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From ladams at cloudmark.com Wed Aug 31 22:16:12 2005 From: ladams at cloudmark.com (Lori Adams) Date: Wed, 31 Aug 2005 13:16:12 -0700 Subject: Downtime Message-ID: I think there has been some confusion. I just tested this out. If you put the HOST into a scheduled downtime, that includes all services for that host. If you put just a SERVICE into a downtime, then the downtime is only for that service. The checkbox is for rescheduling checks, not downtimes. -Lori > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of Johan Barelds > Sent: Wednesday, August 31, 2005 12:19 PM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Downtime > > Op woensdag 31 augustus 2005 19:42, schreef Andreas Ericsson: > > > I am probably overlooking, but where can i find that box?? > > > I can't find it in the Nagios gui. Is it in the configuration? > > > > My bad. It's "Schedule downtime for all services on this host" (in the > > command menu on the right hand side in the status-view for the host) and > > then check the box "Schedule downtime for host too", rather than the > > other way around. > > Mmmm.....which version of Nagios are we talking about? > I am running version 2.04b and the only thing which comes close is the > following: > > 1. Goto "Host Detail" > 2. select a host by clicking on its name > 3. on the right-hand site i see a box called "Host Commands" > 4. The only option about downtime i see here is "Schedule downtime for > this > host". > > But....there is no box saying "Schedule downtime for host too" or > "Schedule > downtime for all services on this host"...:-( > > > -- > Kind Regards / Met vriendelijke groet, > > Johan Barelds Good-IT! > Tel.+31(0)70-3965230 Strijplaan 320 > Mob.+31(0)6-54253750 2285 HZ Rijswijk(ZH) > j.barelds at good-it.com http://www.good-it.com > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From lee at effective-it.co.uk Wed Aug 31 22:20:13 2005 From: lee at effective-it.co.uk (Lee Ball) Date: Wed, 31 Aug 2005 21:20:13 +0100 Subject: 404 Not Found In-Reply-To: References: Message-ID: <431610FD.50700@effective-it.co.uk> I found that although the manual says you can get to it at /nagios/ its actually /nagios instead. Try that. Whats the contents of your /var/www folder? A simple ls on it will do and paste the output here :) Marc Powell wrote: > Please try to respond in context. It makes it difficult for someone > reading this thread in the future to follow exactly what's going on. > > [re-arranging] > > >>Marc Powell wrote: >> >> >>> >>>>-----Original Message----- >>>>From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- >>>>admin at lists.sourceforge.net] On Behalf Of Tyler Woods >>>>Sent: Wednesday, August 31, 2005 11:51 AM >>>>To: Nagios-users at lists.sourceforge.net >>>>Subject: [Nagios-users] 404 Not Found >>>> >>>>Getting the following after installing: >>>> >>>> >>>> Not Found >>>> >>>>The requested URL /nagios/ was not found on this server. >>>> >> >>----------------------------------------------------------------------- > > - > >>>>Apache/2.0.46 (Red Hat) Server at docapp Port 443 >>>> >>>>I'm pretty sure this is an Apache error but can't get it resolved. >>>>Right now the server is only allowing connection through HTTPS but > > I'm > >>>>working >>> >>>>on getting that resolved currently. Did I mess up the Nagios install >>>>some how? >>>> >>> >>>Did you follow these instructions? : >>>http://nagios.sourceforge.net/docs/1_0/installweb.html > > >>From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- >>admin at lists.sourceforge.net] On Behalf Of Tyler Woods >>Sent: Wednesday, August 31, 2005 1:06 PM >>To: Nagios-users at lists.sourceforge.net >>Subject: Re: [Nagios-users] 404 Not Found >> >>Yep, did that exactly as it said to. I downloaded the PDF manual. > > > It seems clear to me that the Alias -- > > Alias /nagios/ /usr/local/nagios/share/ > > isn't working _or_ /usr/local/nagios/share doesn't exist. Was apache > restarted after you added the config options? **What is your web server > error log indicating?** Does /usr/local/nagios/share exist and contain > the CGI's? > > -- > Marc > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dist-list at LEXUM.UMontreal.CA Wed Aug 31 21:38:04 2005 From: dist-list at LEXUM.UMontreal.CA (FM) Date: Wed, 31 Aug 2005 15:38:04 -0400 Subject: error code 127 after each server reload In-Reply-To: References: <4316004D.6090005@lexum.umontreal.ca> Message-ID: <4316071C.4080103@lexum.umontreal.ca> I already red this FAQ thank you :-) For ex, tomcat service in my nagios.cfg : resource_file=/etc/nagios/resource.cfg resource_file=/etc/nagios/services.cfg resource_file=/etc/nagios/checkcommands.cfg inside /etc/nagios/services.cfg My service for tomact for example : define command { command_name check_tomcat command_line $USER1$/check_http -H $HOSTADDRESS$ -p 8080 inside /etc/nagios/resource.cfg : $USER1$=/usr/lib/nagios/plugins inside /etc/nagios/services.cfg : define service{ use generic-service ; Name of service template to use host_name salerno.lan.lexum.pri service_description TOMCAT 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 w,u,c,r check_command check_tomcat } Bu I still have : Subhendu Ghosh wrote: > On Wed, 31 Aug 2005, FM wrote: > >> Hello, >> I'm having a great time configuring this beast ! >> Each time that I reload or restart NAGIOS I recevied error 127 for all >> services (and also lots of false positive email) >> ex : >> Warning: Return code of 127 for check of service 'NFS' on host >> 'SERVER' was out of bounds. Make sure the plugin you're trying to run >> actually exists. >> >> I'm using nagios 2.0b4 >> >> > > FAQ ID F0017 > -- Frederic Medery System Administrator LexUM, University of Montreal ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null From dist-list at LEXUM.UMontreal.CA Wed Aug 31 21:56:41 2005 From: dist-list at LEXUM.UMontreal.CA (FM) Date: Wed, 31 Aug 2005 15:56:41 -0400 Subject: error code 127 after each server reload (FIXED) In-Reply-To: References: Message-ID: <43160B79.4070401@lexum.umontreal.ca> nagios user did not have read access to the resource.cfg file :-) I added read access and error 127 disappeared Thanks to all ! ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null