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 ___________