From sandromergvaz at uol.com.br Sun Dec 1 01:03:55 2002 From: sandromergvaz at uol.com.br (Sandro Vaz) Date: Sat, 30 Nov 2002 21:03:55 -0300 Subject: RES: Hosts showing (Assumed to be up) In-Reply-To: <4355.192.168.1.11.1038689773.squirrel@mail.penrod.cc> References: <4355.192.168.1.11.1038689773.squirrel@mail.penrod.cc> Message-ID: Try the FAQ first. http://www.nagios.org/faqs/viewfaq.php?faq_id=86 Att., SMV -----Mensagem original----- De: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] Em nome de nagios at penrod.cc Enviada em: s?bado, 30 de novembro de 2002 17:56 Para: nagios-users at lists.sourceforge.net Assunto: [Nagios-users] Hosts showing (Assumed to be up) Is it normal to see the host listed as (Assumed to be up)? I am going to have non-technical managers looking at the stats and summarys on this, and they just will not understand... lol Thanks in advance, John P. ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.423 / Virus Database: 238 - Release Date: 25/11/2002 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.423 / Virus Database: 238 - Release Date: 25/11/2002 ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en From Brian.Ipsen at andebakken.dk Sun Dec 1 23:22:54 2002 From: Brian.Ipsen at andebakken.dk (Brian Ipsen) Date: Sun, 1 Dec 2002 23:22:54 +0100 Subject: Running NRPE via DaemonTools/ucspi-tcp ? Message-ID: Hi! I was wondering if it is possible to run the nrpe daemon in daemontools/ucspi-tcp (often used with Qmail) - instead of xinetd or inetd ?? And what about the nsca daemon ?? If anyone have had success with getting those two daemons up and running with those components, I'd really appreciate to hear about it... Regards, /Brian ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From Stanley.Hopcroft at IPAustralia.Gov.AU Sun Dec 1 23:39:14 2002 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Mon, 2 Dec 2002 09:39:14 +1100 Subject: Invitation to get plugin with Nagios CGIs In-Reply-To: ; from nagios-users-request@lists.sourceforge.net on Sun, Dec 01, 2002 at 01:17:54PM -0800 References: Message-ID: <20021202093913.A90233@IPAustralia.Gov.AU> Dear Ladies and Gentlemen, Nagios 1.0 invites me to get a Netscape plugin when I browse the CGIs with Navigator (4.79 for Unix). There is no such prompt from Mozilla 1.1. How can I suppress this plugin download invitation (apart form downloading the plugin - and unfortunately I don't know what the plugin is that it wants) ? Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From pamirian at calculus.ca Mon Dec 2 14:31:34 2002 From: pamirian at calculus.ca (Patrick Amirian) Date: Mon, 2 Dec 2002 08:31:34 -0500 Subject: parent and children Message-ID: <003501c29a07$22984bd0$c8040201@PAIE250> Hi guys, I'm trying to create parent/children relationship in my status map Ex: live site with many immediate child hosts. The problem is that I don't want nagios to check this parent. I want it to be a simple text not a host I don't want it to be marked as down because nagios can't ping it. It's not a real host it just a . separator between live and test hosts. Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Daniel.Siegers at bauerverlag.de Mon Dec 2 13:35:12 2002 From: Daniel.Siegers at bauerverlag.de (Daniel Siegers) Date: Mon, 02 Dec 2002 13:35:12 +0100 Subject: Antw: gdlib statusmap.cgi not compiling on RH8.0 despite advice here... Message-ID: Hi, had the same problem on Suse 8.0 Problem was that libpng rpm was installed under /usr/X11R6/lib. I don t know why, but ld is not able to find libpng in this dir. I just copied the libpng file over to /usr/lib and everything was fine ! I have all the pathes in ld.so.config, but nothing helped. Copying the files made it ! Mit freundlichen Gr??en / Kind regards Daniel Siegers Systemadministrator Heinrich Bauer Dienstleistungs KG Brieffach 4620 Burchardstra?e 11 D-20077 Hamburg Telefon +49 (40)-3019-1991 Fax +49 (40)-3019-140-1991 E-Mail Daniel.Siegers at Bauerverlag.de >>> Pete Dubler 30.11.2002 01:59 >>> Nagios is running great here, but I too cannot get the statusmap.cgi to compile under RH 8.0. I have studied the archives and seen that others have had the same problem but after trying everything suggested in the archives, I still do not get statusmap.cgi and the other cgi's that apparently depend on gd to compile. Here is what I have done: 1) gd, png, and jpeg are all already installed on the system. 2) used default config and makes and did not get a statusmap.cgi 3) did a"make clean" (this by the way, deletes config.cache) and then did a new ./configure using these options: --with-gd-lib=/usr/lib --with-gd-inc=/usr/lib/include and then all the makes... still no joy. 4) cleaned up and tried again... even less joy... Can I just separately compile the "missing" cgi's (and if so, how exactly) Anyone gotten this to work under RH8 yet? ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Daniel Siegers.vcf Type: text/x-vcard Size: 227 bytes Desc: not available URL: From frank.schafer at setuza.cz Mon Dec 2 14:55:08 2002 From: frank.schafer at setuza.cz (Frank Schafer) Date: 02 Dec 2002 14:55:08 +0100 Subject: Again NTClient sows services as NOT RUNNING Message-ID: <1038837308.299.3.camel@ADMIN> Hi all, I have an NT host, with the service ``ITS MANAGER - HOST''. This is the real name of the service, not the displayed one. If I start ./check_nt -H nt-adress -p 1248 -v PROCSTATE -l ITS Manager - HOST or ./check_nt -H nt-adress -p 1248 -v PROCSTATE -l 'ITS Manager - HOST' or ./check_nt -H nt-adress -p 1248 -v PROCSTATE -l "ITS Manager - HOST" i get ``not running'' in all the cases. The documentation says, that the list of the services shouldn't contain blanks. Could THIS be the reason? If so, ... does anyone know a workaround for this if the real service name ITSELF contains blanks? The real service name is given and I can't change it. (If I change the real name using regedit, an internal NT error occurs when I attempt to start the service) :( Thanks in advance Frank ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From brown.robertson at maac.net Mon Dec 2 16:03:22 2002 From: brown.robertson at maac.net (Robertson, Brown) Date: Mon, 2 Dec 2002 09:03:22 -0600 Subject: Null Returns from a check_nt call that works from command line, but not from .cfg??? Message-ID: <2CDD9C051F451F4BB0615B9547F1B4294D35@maacmail.maac.int> Need some brainstorming if you guys can see anything wrong with my config. I only have this problem when I'm using check_nt for counter monitoring on NT servers. Basically, I can get accurate integer returns when I type in the check_nt command manually from a command line for a specific server, but when I use the .cfg I get a "0" value in Nagios. Any ideas? Here's my check command: # 'check_nt_sql_userconnections' command definition define command{ command_name check_nt_sql_userconnections command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v COUNTER -l ?\\SQLServer:General Statistics\\User Connections?,?User Connections: %.f ? -w 80 -c 90 ------------------------------------------------------------------------- Here's my services.cfg entry: define service{ use generic-service ; Name of service template to use host_name Datawarehouse service_description SQL USER CONNECTIONS is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 3 retry_check_interval 1 contact_groups nt-admins notification_interval 120 notification_period 24x7 notification_options w,u,c,r check_command check_nt_sql_userconnections } I've tried using one backslash, 2 backslashes, in multiple orders, and playing with different -v and -c values, all to no avail. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From pascal.wessel at media-online.ch Mon Dec 2 15:36:00 2002 From: pascal.wessel at media-online.ch (Pascal Wessel) Date: Mon, 2 Dec 2002 15:36:00 +0100 Subject: check_snmp CPU Load strange result Message-ID: <000c01c29a10$2293a1d0$bd28bb0a@mediaonline.ch> Nagios gives me warning when snmp_check 'ing for Cisco 3640 CPU load / IOS is (C3640-IK9O3S-M), Version 12.2(10a) but the CPU load is below my Warning threshold. When launched from the command-line with verbose output: [libexec]# ./check_snmp -v -t 10 -H 192.168.1.1 -o .1.3.6.1.4.1.9.2.1.57.0,.1.3.6.1.4.1.9.2.1.58.0 -C publicro -w '60,69', -c '70,80' -l 'CPU usage 1min/5min' -D ' / ' /usr/bin/snmpget -m ALL -v 1 -c publicro 192.168.1.1:161 .1.3.6.1.4.1.9.2.1.57.0 .1.3.6.1.4.1.9.2.1.58.0 enterprises.9.2.1.57.0 = 4 enterprises.9.2.1.58.0 = 3 CPU usage 1min/5min WARNING - *4* / *3* As you can see.. (and if I understood the syntax) Warning status should be triggered when the CPU load is between 60 and 69% Critical status should be triggered when the router CPU is between 70 to 80% #---- My question is: why this check reports WARNING as my router CPU load (4% last minute and 3% last 5 min) is below the WARNING threshold ? #---- My Nagios system installation is as follows: System Intel i686, Mandrake 9.0, Kernel 2.4.19-16 NAGIOS: Nagios 1.0b6 Plugins: nagios-plugins-200211131100 Check_snmp: Revision: 1.17 SNMP: libsnmp0-4.2.3-4mdk ucd-snmp-4.2.3-4mdk ucd-snmp-utils-4.2.3-4mdk Below a snip of my "cfg file #--- hosts.cfg for myrouter define host { name generic-host notifications_enabled 1 ; Host notifications are enabled event_handler_enabled 1 ; Host event handler is enabled flap_detection_enabled 1 ; Flap detection is enabled process_perf_data 1 ; Process performance data retain_status_information 1 ; Retain status information across program restarts retain_nonstatus_information 1 ; Retain non-status information across program restarts max_check_attempts 10 register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE! } define host { use generic-host ; Name of host template to use host_name myrouter alias Router Gva Coulou -6 address 192.168.1.1 check_command check-host-alive notification_interval 60 notification_period 24x7 notification_options d,u,r } #--- services.cfg define service { name generic-service ; 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 obsess_over_service 1 ; We should obsess over this service (if necessary) check_freshness 0 ; Default is to NOT check service 'freshness' notifications_enabled 1 ; Service notifications are enabled event_handler_enabled 1 ; Service event handler is enabled flap_detection_enabled 1 ; Flap detection is enabled process_perf_data 1 ; Process performance data retain_status_information 1 ; Retain status information across program restarts retain_nonstatus_information 1 ; Retain non-status information across program restarts normal_check_interval 5 retry_check_interval 2 notification_period 24x7 notification_options u,c,r register 0 ; DONT REGISTER THIS DEFINITION } define service{ use generic-service host_name myrouter service_description CPU is_volatile 0 check_period 24x7 max_check_attempts 3 retry_check_interval 1 contact_groups router-admins notification_interval 120 notification_period 24x7 check_command check_cisco_cpu!publicro!60!69!70!80 } #--- checkcommands.cfg # 'check_snmp' generic command definition define command{ command_name check_snmp command_line $USER1$/check_snmp -t 10 -H $HOSTADDRESS$ -C $ARG1$ $ARG2$ $ARG3$ $ARG4$ $ARG5$ $ARG6$ $ARG7$ $ARG8$ $ARG9$ } # check_cisco_cpu: checks router CPU-usage # Syntax !Hostname!Community!WARN-1min-%!WARN-5min-%!CRIT-1min-%!CRIT-5min-% define command{ command_name check_cisco_cpu command_line $USER1$/check_snmp -t 10 -H $HOSTADDRESS$ -o.1.3.6.1.4.1.9.2.1.57.0,.1.3.6.1.4.1.9.2.1.58.0 -C $ARG1$ -w :$ARG2$,:$ARG3$ -c : $ARG4$,:$ARG5$ -l 'CPU usage 1min/5min' -D ' / ' } Btw, by looking at the code in check_snmp.c I'm wondering . Is there a problem with : #define mark(a) ((a)!=0?"*":"") in check_snmp.c ??? Or are my parms so bad ? :-o Thanks for your kind help. Warm regards, Pascal ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From peterpan at pvamu.edu Mon Dec 2 17:46:52 2002 From: peterpan at pvamu.edu (Peter Pan) Date: Mon, 2 Dec 2002 10:46:52 -0600 Subject: No Output Message-ID: <001201c29a22$6b0aa320$790ccf81@pantherland.pvamu.edu> I am currently running NSClient on my NT servers. All the services return results, except for uptime results. This is from my hosts.cfg service[EPO]=Check Uptime;0;24x7;3;5;1;nt-admins;120;24x7;1;1;0;;check_nt_uptime_epo I keep getting a No Output! result from the nagios monitor. I have checked everything, but I cannot figure this out. Any ideas would help alot, Thanks Justin -------------- next part -------------- An HTML attachment was scrubbed... URL: From GPotter at MarathonOil.com Mon Dec 2 18:03:21 2002 From: GPotter at MarathonOil.com (Potter, G M (Greg)) Date: Mon, 2 Dec 2002 11:03:21 -0600 Subject: I need help configuring Nagios to send notifications using qpage Message-ID: I have installed qpage for sending notifications to my cell phone. I can manually fire the command that I have configured as my notification within Nagios and the page goes out correctly. Mail notifications are working within Nagios. If I look at the notifications list, Nagios thinks it is calling the correct script, but I never receive the page or an error indication. I have read the on-line documentation, and tried searching sourceforge.net on this mailing list, but I didn't find any hits related to using qpage. Here are my config scripts for e-mail and qpage: define command{ command_name notify-by-qpage command_line /bin/echo "$HOSTALIAS$/$SERVICESTATE$/$SERVICEDESC$ $OUTPUT$" | /usr/local/bin/qpage -i -p greg } define command{ command_name notify-by-email command_line /bin/echo "$ARG1$\n$ARG2$\n$ARG3$\n$PERFDATA$\n$OUTPUT$" | /usr/bin/mailx -s '**$SERVICESTATE$ alert for $HOSTALIAS$/$SERVICEDESC$ **' $CONTACTEMAIL$ } I originally used $CONTACTPAGER$ but decided to try hard coding the page name to see if it was getting called. Here is the log entry where Nagios thinks it calls the script. [1038418513] HOST NOTIFICATION: greg-pager;okcu30;DOWN;notify-by-qpage;CRITICAL - Plugin timed out after 10 seconds Permissions on /usr/local/bin/qpage are 755. If anyone can point me in the right direction here, or tell me what I have missed I would appreciate it. Is there a way to find the output of the notify-by-qpage script? That would also be helpful. Thanks in Advance for your consideration of this problem. Greg M. Potter mailto:gpotter at marathonoil.com ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en From Jan-Peter.Koopmann at seceidos.de Mon Dec 2 18:39:36 2002 From: Jan-Peter.Koopmann at seceidos.de (Jan-Peter Koopmann) Date: Mon, 2 Dec 2002 18:39:36 +0100 Subject: Reset alerts from passive service checks Message-ID: <4E7026FF8A422749B1553FE508E00680053E41@message.intern.akctech.de> Hi, I started fooling aroung with the passive service checks to handle my SNMP traps. I have it up and running to the point that an SNMP trap triggers a service and puts it into critical. Is there an easy way to get this back to OK within the GUI. In case you are asking why: I want to be notified by firewall attacks but once I have the notification and acknowledged the alarm I want it to disappear. Regards, JP -- ----------------------------------------------------------------------- Seceidos GmbH | Jan-Peter Koopmann | Senior Engineer Wilhelminenstr. 2 | Tel.: +49 (6151) 66843-43 64283 Darmstadt | +49 (6151) 9511-252 (24H VoiceCenter) Germany | Fax: +49 (6151) 66843-52 ----------------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From chris.walker at band-x.net Mon Dec 2 18:55:23 2002 From: chris.walker at band-x.net (Chris Walker) Date: 02 Dec 2002 17:55:23 +0000 Subject: I need help configuring Nagios to send notifications using qpage In-Reply-To: References: Message-ID: <1038851723.29133.252.camel@localhost.localdomain> Hi, Are you sure that you need the -i (interactive) flag ? I call qpage in a similar way but with just : command[notify-by-qpage]=echo | /usr/local/bin/qpage you need to make sure that qpage is running as a daemon (qpage -q 10 to check spool every 10 secs) and that the spool directory /var/spool/qpage (or whatever you configured) has the correct permissions. HTH, -- Chris Walker ____________________________ UNIX Systems Administrator Band-X Ltd ___________________________ > Here are my config scripts for e-mail and qpage: > > define command{ > command_name notify-by-qpage > command_line /bin/echo "$HOSTALIAS$/$SERVICESTATE$/$SERVICEDESC$ $OUTPUT$" | /usr/local/bin/qpage -i -p greg > } > > define command{ > command_name notify-by-email > command_line /bin/echo "$ARG1$\n$ARG2$\n$ARG3$\n$PERFDATA$\n$OUTPUT$" | /usr/bin/mailx -s '**$SERVICESTATE$ alert for $HOSTALIAS$/$SERVICEDESC$ **' $CONTACTEMAIL$ > } > > > I originally used $CONTACTPAGER$ but decided to try hard coding the page name to see if it was getting called. > > Here is the log entry where Nagios thinks it calls the script. > [1038418513] HOST NOTIFICATION: greg-pager;okcu30;DOWN;notify-by-qpage;CRITICAL - Plugin timed out after 10 seconds > > Permissions on /usr/local/bin/qpage are 755. > > If anyone can point me in the right direction here, or tell me what I have missed I would appreciate it. Is there a way to find the output of the notify-by-qpage script? That would also be helpful. > > Thanks in Advance for your consideration of this problem. > ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en From brown.robertson at maac.net Mon Dec 2 18:52:03 2002 From: brown.robertson at maac.net (Robertson, Brown) Date: Mon, 2 Dec 2002 11:52:03 -0600 Subject: Statusmap .cgi help Message-ID: <2CDD9C051F451F4BB0615B9547F1B4294D38@maacmail.maac.int> Does anyone use custom logos for their hosts? I have tried editing the cgi.cfg and entering in extended host information such as : hostextinfo[Batman]=;smallserver.gif;smallserver.jpg;smallserver.gd2;NT 2k Server;;; and have also tried the template method in a hostsextinfo.cfg file, but I still see no change when I click on the status map link within nagios.All hosts continue to have a question mark icon, etc.. Am I overlooking something? Thanks in advance.. ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en From pascal.wessel at media-online.ch Mon Dec 2 18:52:23 2002 From: pascal.wessel at media-online.ch (Pascal Wessel) Date: Mon, 2 Dec 2002 18:52:23 +0100 Subject: check_snmp CPU Load strange result In-Reply-To: <1038850143.4847.41.camel@moishe> References: <1038850143.4847.41.camel@moishe> Message-ID: <001301c29a2b$91539380$bd28bb0a@mediaonline.ch> ----Original Message----- From: Pascal Miquet [mailto:p.miquet at hafiba.fr] Sent: lundi, 2. d?cembre 2002 18:29 To: Pascal Wessel Subject: Re: [Nagios-users] check_snmp CPU Load strange result Sorry but I've got no answer for You, Just some questions according to the Cisco 3640 Checks. On which system did you have you nagios service ? Linux ? YES on Linux : Mandrake 9.0, Kernel 2.4.19-16 And if yes how did you set the snmp service checks ? What added software is needed on your server ? All ucd-snmp stuff : SNMP: libsnmp0-4.2.3-4mdk ucd-snmp-4.2.3-4mdk ucd-snmp-utils-4.2.3-4mdk And how can we get informations according to the snmp services available on a 3640 router ? By queries against the MIB (OID or plain text if you have the Cisco-MIBS on your Linux box in /usr/share/snmp/mibs/ ) To test your snmp installation (UCD-SNMP, not Nagios scripts) just issue the following (logged on as user nagios): snmpwalk myroutername myROcommunity system where myroutername is the DNS FQDN router name, or use the management ip address where myROcommunity is the SNMP Read-Only comunity (very often set with the default string: public) where system is the start of the system MIB tree (to have the full picture don't even use system, just do: snmpwalk myrouter myROcummunity | more Thanks for your help You are welcome ! Regards Pascal Miquet Le lun 02/12/2002 ? 15:36, Pascal Wessel a ?crit : Nagios gives me warning when snmp_check 'ing for Cisco 3640 CPU load / IOS is (C3640-IK9O3S-M), Version 12.2(10a) but the CPU load is below my Warning threshold. When launched from the command-line with verbose output: [libexec]# ./check_snmp -v -t 10 -H 192.168.1.1 -o .1.3.6.1.4.1.9.2.1.57.0,.1.3.6.1.4.1.9.2.1.58.0 -C publicro -w '60,69', -c '70,80' -l 'CPU usage 1min/5min' -D ' / ' /usr/bin/snmpget -m ALL -v 1 -c publicro 192.168.1.1:161 .1.3.6.1.4.1.9.2.1.57.0 .1.3.6.1.4.1.9.2.1.58.0 enterprises.9.2.1.57.0 = 4 enterprises.9.2.1.58.0 = 3 CPU usage 1min/5min WARNING - *4* / *3* As you can see.. (and if I understood the syntax) Warning status should be triggered when the CPU load is between 60 and 69% Critical status should be triggered when the router CPU is between 70 to 80% #---- My question is: why this check reports WARNING as my router CPU load (4% last minute and 3% last 5 min) is below the WARNING threshold ? #---- My Nagios system installation is as follows: System Intel i686, Mandrake 9.0, Kernel 2.4.19-16 NAGIOS: Nagios 1.0b6 Plugins: nagios-plugins-200211131100 Check_snmp: Revision: 1.17 SNMP: libsnmp0-4.2.3-4mdk ucd-snmp-4.2.3-4mdk ucd-snmp-utils-4.2.3-4mdk Below a snip of my "cfg file #--- hosts.cfg for myrouter define host { name generic-host notifications_enabled 1 ; Host notifications are enabled event_handler_enabled 1 ; Host event handler is enabled flap_detection_enabled 1 ; Flap detection is enabled process_perf_data 1 ; Process performance data retain_status_information 1 ; Retain status information across program restarts retain_nonstatus_information 1 ; Retain non-status information across program restarts max_check_attempts 10 register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE! } define host { use generic-host ; Name of host template to use host_name myrouter alias Router Gva Coulou -6 address 192.168.1.1 check_command check-host-alive notification_interval 60 notification_period 24x7 notification_options d,u,r } #--- services.cfg define service { name generic-service ; 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 obsess_over_service 1 ; We should obsess over this service (if necessary) check_freshness 0 ; Default is to NOT check service 'freshness' notifications_enabled 1 ; Service notifications are enabled event_handler_enabled 1 ; Service event handler is enabled flap_detection_enabled 1 ; Flap detection is enabled process_perf_data 1 ; Process performance data retain_status_information 1 ; Retain status information across program restarts retain_nonstatus_information 1 ; Retain non-status information across program restarts normal_check_interval 5 retry_check_interval 2 notification_period 24x7 notification_options u,c,r register 0 ; DONT REGISTER THIS DEFINITION } define service{ use generic-service host_name myrouter service_description CPU is_volatile 0 check_period 24x7 max_check_attempts 3 retry_check_interval 1 contact_groups router-admins notification_interval 120 notification_period 24x7 check_command check_cisco_cpu!publicro!60!69!70!80 } #--- checkcommands.cfg # 'check_snmp' generic command definition define command{ command_name check_snmp command_line $USER1$/check_snmp -t 10 -H $HOSTADDRESS$ -C $ARG1$ $ARG2$ $ARG3$ $ARG4$ $ARG5$ $ARG6$ $ARG7$ $ARG8$ $ARG9$ } # check_cisco_cpu: checks router CPU-usage # Syntax !Hostname!Community!WARN-1min-%!WARN-5min-%!CRIT-1min-%!CRIT-5min-% define command{ command_name check_cisco_cpu command_line $USER1$/check_snmp -t 10 -H $HOSTADDRESS$ -o.1.3.6.1.4.1.9.2.1.57.0,.1.3.6.1.4.1.9.2.1.58.0 -C $ARG1$ -w :$ARG2$,:$ARG3$ -c : $ARG4$,:$ARG5$ -l 'CPU usage 1min/5min' -D ' / ' } Btw, by looking at the code in check_snmp.c I'm wondering . Is there a problem with : #define mark(a) ((a)!=0?"*":"") in check_snmp.c ??? Or are my parms so bad ? :-o Thanks for your kind help. Warm regards, Pascal ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From craig.massey at chh.co.nz Mon Dec 2 19:20:43 2002 From: craig.massey at chh.co.nz (Massey, Craig) Date: Tue, 3 Dec 2002 07:20:43 +1300 Subject: Again NTClient sows services as NOT RUNNING Message-ID: <554AAFCA2635D5119EDA00B0D0AAD4E3036E8DA1@sobscsr1.chh.co.nz> Don't you mean "... -v SERVICESTATE ..."? PROCSTATE looks for an active process. Can't comment on whether that will work with a space in the name, it hasn't come up for me yet. -----Original Message----- From: Frank Schafer [mailto:frank.schafer at setuza.cz] Sent: Tuesday, December 03, 2002 2:55 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Again NTClient sows services as NOT RUNNING Hi all, I have an NT host, with the service ``ITS MANAGER - HOST''. This is the real name of the service, not the displayed one. If I start ./check_nt -H nt-adress -p 1248 -v PROCSTATE -l ITS Manager - HOST or ./check_nt -H nt-adress -p 1248 -v PROCSTATE -l 'ITS Manager - HOST' or ./check_nt -H nt-adress -p 1248 -v PROCSTATE -l "ITS Manager - HOST" i get ``not running'' in all the cases. The documentation says, that the list of the services shouldn't contain blanks. Could THIS be the reason? If so, ... does anyone know a workaround for this if the real service name ITSELF contains blanks? The real service name is given and I can't change it. (If I change the real name using regedit, an internal NT error occurs when I attempt to start the service) :( Thanks in advance Frank ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users DISCLAIMER: This electronic message together with any attachments is confidential. If you are not the intended recipient, do not copy, disclose or use the contents in any way. Please also advise us by return e-mail that you have received the message and then please destroy. Carter Holt Harvey is not responsible for any changes made to this message and / or any attachments after sending by Carter Holt Harvey. We use virus scanning software but exclude all liability for viruses or anything similar in this email or any attachment. ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en From craig.massey at chh.co.nz Mon Dec 2 19:15:00 2002 From: craig.massey at chh.co.nz (Massey, Craig) Date: Tue, 3 Dec 2002 07:15:00 +1300 Subject: Null Returns from a check_nt call that works f rom command line, but not from .cfg??? Message-ID: <554AAFCA2635D5119EDA00B0D0AAD4E3036E8DA0@sobscsr1.chh.co.nz> A perfmon command I use. define command{ name check_nt_pagingfile command_name check_nt_pagingfile command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -s $USER3$ -v COUNTER -l "\Paging File(_Total)\% Usage","Paging File usage is %.2f %%" -w $ARG1$ -c $ARG2$ } -----Original Message----- From: Robertson, Brown [mailto:brown.robertson at maac.net] Sent: Tuesday, December 03, 2002 4:03 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Null Returns from a check_nt call that works from command line, but not from .cfg??? Need some brainstorming if you guys can see anything wrong with my config. I only have this problem when I'm using check_nt for counter monitoring on NT servers. Basically, I can get accurate integer returns when I type in the check_nt command manually from a command line for a specific server, but when I use the .cfg I get a "0" value in Nagios. Any ideas? Here's my check command: # 'check_nt_sql_userconnections' command definition define command{ command_name check_nt_sql_userconnections command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v COUNTER -l ?\\SQLServer:General Statistics\\User Connections?,?User Connections: %.f ? -w 80 -c 90 ------------------------------------------------------------------------- Here's my services.cfg entry: define service{ use generic-service ; Name of service template to use host_name Datawarehouse service_description SQL USER CONNECTIONS is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 3 retry_check_interval 1 contact_groups nt-admins notification_interval 120 notification_period 24x7 notification_options w,u,c,r check_command check_nt_sql_userconnections } I've tried using one backslash, 2 backslashes, in multiple orders, and playing with different -v and -c values, all to no avail. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users DISCLAIMER: This electronic message together with any attachments is confidential. If you are not the intended recipient, do not copy, disclose or use the contents in any way. Please also advise us by return e-mail that you have received the message and then please destroy. Carter Holt Harvey is not responsible for any changes made to this message and / or any attachments after sending by Carter Holt Harvey. We use virus scanning software but exclude all liability for viruses or anything similar in this email or any attachment. ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en From GPotter at MarathonOil.com Mon Dec 2 19:49:33 2002 From: GPotter at MarathonOil.com (Potter, G M (Greg)) Date: Mon, 2 Dec 2002 12:49:33 -0600 Subject: Statusmap .cgi help Message-ID: What directory do you put the gif files in? Mine are in /usr/local/nagios/share/images/logos and seem to work well. I am using .png files, but I don't think that should matter. Greg > -----Original Message----- > From: Robertson, Brown [mailto:brown.robertson at maac.net] > Sent: Monday, December 02, 2002 11:52 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Statusmap .cgi help > > > Does anyone use custom logos for their hosts? I have tried > editing the cgi.cfg and entering in extended host information > such as : > > hostextinfo[Batman]=;smallserver.gif;smallserver.jpg;smallserv > er.gd2;NT 2k Server;;; > > and have also tried the template method in a hostsextinfo.cfg > file, but I still see no change when I click on the status > map link within nagios.All hosts continue to have a question > mark icon, etc.. Am I overlooking something? Thanks in advance.. > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Get the new Palm Tungsten T > handheld. Power & Color in a compact size! > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en From craig.massey at chh.co.nz Mon Dec 2 20:06:18 2002 From: craig.massey at chh.co.nz (Massey, Craig) Date: Tue, 3 Dec 2002 08:06:18 +1300 Subject: I need help configuring Nagios to send notific ations using qpage Message-ID: <554AAFCA2635D5119EDA00B0D0AAD4E3036E8DA7@sobscsr1.chh.co.nz> It's been a while, I think with the -i flag you don't need to run it as a daemon? We found we had to pipe the message with the last line containing only a "." from Nagios to qpage. The command was printf "$HOSTALIAS$ is $HOSTSTATE$\n.\n"|qpage -p $PAGERALIAS$ -----Original Message----- From: Chris Walker [mailto:chris.walker at band-x.net] Sent: Tuesday, December 03, 2002 6:55 AM To: Potter, G M (Greg) Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] I need help configuring Nagios to send notifications using qpage Hi, Are you sure that you need the -i (interactive) flag ? I call qpage in a similar way but with just : command[notify-by-qpage]=echo | /usr/local/bin/qpage you need to make sure that qpage is running as a daemon (qpage -q 10 to check spool every 10 secs) and that the spool directory /var/spool/qpage (or whatever you configured) has the correct permissions. HTH, -- Chris Walker ____________________________ UNIX Systems Administrator Band-X Ltd ___________________________ > Here are my config scripts for e-mail and qpage: > > define command{ > command_name notify-by-qpage > command_line /bin/echo "$HOSTALIAS$/$SERVICESTATE$/$SERVICEDESC$ $OUTPUT$" | /usr/local/bin/qpage -i -p greg > } > > define command{ > command_name notify-by-email > command_line /bin/echo "$ARG1$\n$ARG2$\n$ARG3$\n$PERFDATA$\n$OUTPUT$" | /usr/bin/mailx -s '**$SERVICESTATE$ alert for $HOSTALIAS$/$SERVICEDESC$ **' $CONTACTEMAIL$ > } > > > I originally used $CONTACTPAGER$ but decided to try hard coding the page name to see if it was getting called. > > Here is the log entry where Nagios thinks it calls the script. > [1038418513] HOST NOTIFICATION: greg-pager;okcu30;DOWN;notify-by-qpage;CRITICAL - Plugin timed out after 10 seconds > > Permissions on /usr/local/bin/qpage are 755. > > If anyone can point me in the right direction here, or tell me what I have missed I would appreciate it. Is there a way to find the output of the notify-by-qpage script? That would also be helpful. > > Thanks in Advance for your consideration of this problem. > ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users DISCLAIMER: This electronic message together with any attachments is confidential. If you are not the intended recipient, do not copy, disclose or use the contents in any way. Please also advise us by return e-mail that you have received the message and then please destroy. Carter Holt Harvey is not responsible for any changes made to this message and / or any attachments after sending by Carter Holt Harvey. We use virus scanning software but exclude all liability for viruses or anything similar in this email or any attachment. ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en From GPotter at MarathonOil.com Mon Dec 2 20:19:21 2002 From: GPotter at MarathonOil.com (Potter, G M (Greg)) Date: Mon, 2 Dec 2002 13:19:21 -0600 Subject: I need help configuring Nagios to send notifications using qpage Message-ID: I think I may have stumbled across the answer. I ran truss on the Nagios process and found that qpage was starting, and being killed about the time it starts dialing. I ran the command manually and it took about 45 seconds to complete. So I suspect Nagios is timing out on the notification and killing the job. I have set the notification_timeout to 120 and told Nagios to re-read the cfg file with a kill -1. Nagios still killed the qpage process in the same place so I am trying with Nagios shutdown and starting manually. If this doesn't work, is there another place to set notification timeouts? Greg > -----Original Message----- > From: Massey, Craig [mailto:craig.massey at chh.co.nz] > Sent: Monday, December 02, 2002 1:06 PM > To: 'chris.walker at band-x.net'; Potter, G M (Greg) > Cc: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] I need help configuring Nagios to send > notifications using qpage > > > It's been a while, I think with the -i flag you don't need to > run it as a > daemon? > > We found we had to pipe the message with the last line > containing only a "." > from Nagios to qpage. > > The command was > printf "$HOSTALIAS$ is $HOSTSTATE$\n.\n"|qpage -p $PAGERALIAS$ > > > -----Original Message----- > From: Chris Walker [mailto:chris.walker at band-x.net] > Sent: Tuesday, December 03, 2002 6:55 AM > To: Potter, G M (Greg) > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] I need help configuring Nagios to send > notifications using qpage > > > Hi, > > Are you sure that you need the -i (interactive) flag ? > > I call qpage in a similar way but with just : > > command[notify-by-qpage]=echo | > /usr/local/bin/qpage > > > you need to make sure that qpage is running as a daemon > (qpage -q 10 to > check spool every 10 secs) > and that the spool directory /var/spool/qpage (or whatever you > configured) has the correct permissions. > > > HTH, > > > -- > Chris Walker > > > ____________________________ > > UNIX Systems Administrator > Band-X Ltd > > ___________________________ > > > > > > > Here are my config scripts for e-mail and qpage: > > > > define command{ > > command_name notify-by-qpage > > command_line /bin/echo > "$HOSTALIAS$/$SERVICESTATE$/$SERVICEDESC$ $OUTPUT$" > | /usr/local/bin/qpage -i -p greg > > } > > > > define command{ > > command_name notify-by-email > > command_line /bin/echo > "$ARG1$\n$ARG2$\n$ARG3$\n$PERFDATA$\n$OUTPUT$" | > /usr/bin/mailx -s '**$SERVICESTATE$ alert for > $HOSTALIAS$/$SERVICEDESC$ **' > $CONTACTEMAIL$ > > } > > > > > > I originally used $CONTACTPAGER$ but decided to try hard > coding the page > name to see if it was getting called. > > > > Here is the log entry where Nagios thinks it calls the script. > > [1038418513] HOST NOTIFICATION: > greg-pager;okcu30;DOWN;notify-by-qpage;CRITICAL - Plugin > timed out after 10 > seconds > > > > Permissions on /usr/local/bin/qpage are 755. > > > > If anyone can point me in the right direction here, or tell > me what I have > missed I would appreciate it. Is there a way to find the > output of the > notify-by-qpage script? That would also be helpful. > > > > Thanks in Advance for your consideration of this problem. > > > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Get the new Palm Tungsten T > handheld. Power & Color in a compact size! > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > DISCLAIMER: This electronic message together with any attachments is > confidential. If you are not the intended recipient, do not > copy, disclose or > use the contents in any way. Please also advise us by return > e-mail that you > have received the message and then please destroy. Carter > Holt Harvey is not > responsible for any changes made to this message and / or any > attachments after > sending by Carter Holt Harvey. We use virus scanning > software but exclude all > liability for viruses or anything similar in this email or > any attachment. > ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en From steve.freegard at lbsltd.co.uk Mon Dec 2 16:07:07 2002 From: steve.freegard at lbsltd.co.uk (Steve Freegard) Date: Mon, 2 Dec 2002 15:07:07 -0000 Subject: Again NTClient sows services as NOT RUNNING Message-ID: <67D9E7698329D411936E00508B6590B901DEA0B9@neelix.lbsltd.co.uk> Frank, If you are checking a service then you need to use '-v SERVICESTATE' as '-v PROCSTATE' only checks currently _running processes_ (as per the Task Manager, processes pane) such as 'explorer.exe'. Kind regards, Steve -- Steve Freegard Systems Manager Littlehampton Book Services Ltd. -----Original Message----- From: Frank Schafer [mailto:frank.schafer at setuza.cz] Sent: 02 December 2002 13:55 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Again NTClient sows services as NOT RUNNING Hi all, I have an NT host, with the service ``ITS MANAGER - HOST''. This is the real name of the service, not the displayed one. If I start ./check_nt -H nt-adress -p 1248 -v PROCSTATE -l ITS Manager - HOST or ./check_nt -H nt-adress -p 1248 -v PROCSTATE -l 'ITS Manager - HOST' or ./check_nt -H nt-adress -p 1248 -v PROCSTATE -l "ITS Manager - HOST" i get ``not running'' in all the cases. The documentation says, that the list of the services shouldn't contain blanks. Could THIS be the reason? If so, ... does anyone know a workaround for this if the real service name ITSELF contains blanks? The real service name is given and I can't change it. (If I change the real name using regedit, an internal NT error occurs when I attempt to start the service) :( Thanks in advance Frank ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.lbsltd.co.uk ********************************************************************** ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en From brown.robertson at maac.net Mon Dec 2 20:30:07 2002 From: brown.robertson at maac.net (Robertson, Brown) Date: Mon, 2 Dec 2002 13:30:07 -0600 Subject: Statusmap .cgi help Message-ID: <2CDD9C051F451F4BB0615B9547F1B4295BB5FF@maacmail.maac.int> I have them in /usr/local/nagios/share/images/logos also. It's baffling. I'm continuing to investigate why it doesn't seem to be working. -----Original Message----- From: Potter, G M (Greg) [mailto:GPotter at MarathonOil.com] Sent: Monday, December 02, 2002 12:50 PM To: Robertson, Brown Cc: Nagios-users (E-mail) Subject: RE: [Nagios-users] Statusmap .cgi help What directory do you put the gif files in? Mine are in /usr/local/nagios/share/images/logos and seem to work well. I am using .png files, but I don't think that should matter. Greg > -----Original Message----- > From: Robertson, Brown [mailto:brown.robertson at maac.net] > Sent: Monday, December 02, 2002 11:52 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Statusmap .cgi help > > > Does anyone use custom logos for their hosts? I have tried > editing the cgi.cfg and entering in extended host information > such as : > > hostextinfo[Batman]=;smallserver.gif;smallserver.jpg;smallserv > er.gd2;NT 2k Server;;; > > and have also tried the template method in a hostsextinfo.cfg > file, but I still see no change when I click on the status > map link within nagios.All hosts continue to have a question > mark icon, etc.. Am I overlooking something? Thanks in advance.. > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Get the new Palm Tungsten T > handheld. Power & Color in a compact size! > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en From sandromergvaz at uol.com.br Mon Dec 2 21:58:21 2002 From: sandromergvaz at uol.com.br (Sandro Vaz) Date: Mon, 2 Dec 2002 17:58:21 -0300 Subject: RES: Statusmap .cgi help In-Reply-To: <2CDD9C051F451F4BB0615B9547F1B4295BB5FF@maacmail.maac.int> References: <2CDD9C051F451F4BB0615B9547F1B4295BB5FF@maacmail.maac.int> Message-ID: You mention hostsextinfo.cfg. In my CGI.CFG i have... xedtemplate_config_file=/usr/local/nagios/etc/hostextinfo.cfg With host and NOT hosts... With the line above and the hostextinfo.cfg correct, i have no trouble with it. Below some part of this file. define hostextinfo{ host_name interopexch,interopweb notes_url icon_image win40.png vrml_image win40.png statusmap_image win40.gd2 } HTH, SMV -----Mensagem original----- De: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] Em nome de Robertson, Brown Enviada em: segunda-feira, 2 de dezembro de 2002 16:30 Para: Potter, G M (Greg) Cc: Nagios-users (E-mail) Assunto: RE: [Nagios-users] Statusmap .cgi help I have them in /usr/local/nagios/share/images/logos also. It's baffling. I'm continuing to investigate why it doesn't seem to be working. -----Original Message----- From: Potter, G M (Greg) [mailto:GPotter at MarathonOil.com] Sent: Monday, December 02, 2002 12:50 PM To: Robertson, Brown Cc: Nagios-users (E-mail) Subject: RE: [Nagios-users] Statusmap .cgi help What directory do you put the gif files in? Mine are in /usr/local/nagios/share/images/logos and seem to work well. I am using .png files, but I don't think that should matter. Greg > -----Original Message----- > From: Robertson, Brown [mailto:brown.robertson at maac.net] > Sent: Monday, December 02, 2002 11:52 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Statusmap .cgi help > > > Does anyone use custom logos for their hosts? I have tried > editing the cgi.cfg and entering in extended host information > such as : > > hostextinfo[Batman]=;smallserver.gif;smallserver.jpg;smallserv > er.gd2;NT 2k Server;;; > > and have also tried the template method in a hostsextinfo.cfg > file, but I still see no change when I click on the status > map link within nagios.All hosts continue to have a question > mark icon, etc.. Am I overlooking something? Thanks in advance.. > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Get the new Palm Tungsten T > handheld. Power & Color in a compact size! > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.423 / Virus Database: 238 - Release Date: 25/11/2002 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.423 / Virus Database: 238 - Release Date: 25/11/2002 ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en From jcarro10 at sprintspectrum.com Mon Dec 2 19:30:32 2002 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Mon, 2 Dec 2002 12:30:32 -0600 Subject: Running NRPE via DaemonTools/ucspi-tcp ? Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2E520B@PKDWB03C.ad.sprint.com> Not exactly the same thing, but HTH: http://www.connectionreset.it/documenti/daemontools.txt jc > -----Original Message----- > From: Brian Ipsen [mailto:Brian.Ipsen at andebakken.dk] > Sent: Sunday, December 01, 2002 4:23 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Running NRPE via DaemonTools/ucspi-tcp ? > > > Hi! > > I was wondering if it is possible to run the nrpe daemon in > daemontools/ucspi-tcp (often used with Qmail) - instead of > xinetd or inetd > ?? And what about the nsca daemon ?? If anyone have had > success with getting > those two daemons up and running with those components, I'd really > appreciate to hear about it... > > Regards, > > /Brian > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en From jcarro10 at sprintspectrum.com Mon Dec 2 19:24:01 2002 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Mon, 2 Dec 2002 12:24:01 -0600 Subject: parent and children Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2E520A@PKDWB03C.ad.sprint.com> Why not create a host check for this 'host' which uses /bin/true as the check? That way, it'll always be 'up'. :) Ditto a mock service on that 'host'. jc -----Original Message----- From: Patrick Amirian [mailto:pamirian at calculus.ca] Sent: Monday, December 02, 2002 7:32 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] parent and children Hi guys, I'm trying to create parent/children relationship in my status map Ex: live site with many immediate child hosts. The problem is that I don't want nagios to check this parent. I want it to be a simple text not a host I don't want it to be marked as down because nagios can't ping it. It's not a real host it just a ... separator between live and test hosts. Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From pmi at bluegrass.net Mon Dec 2 21:47:29 2002 From: pmi at bluegrass.net (Paul Impellizzeri) Date: Mon, 2 Dec 2002 15:47:29 -0500 Subject: cgi errors Message-ID: I have just finished installing on a FreeBSD 4.7-Stable system. My config has checked out on the pre-flight check list and my config is clean. I had to install Perl 5.8.0 because the base install of Perl on FreeBSD is only 5.0. The system is using the updated perl. Anytime i try to access one of the .cgi's I see this pop up in the apache error log... [Mon Dec 2 15:43:04 2002] [error] Unrecognized character \177 at /usr/local/share/nagios/cgi-bin/extinfo.cgi line 1. this error is the same no matter which one i call. I am getting an "Internal Server Error" in the browser. I have tried to search the archives on the mailing list for an answer but the search feature is not working (at least for me) on SourceForge. Am i missing something here? Thanks Paul --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.422 / Virus Database: 237 - Release Date: 11/20/2002 ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en From kray1 at travelersla.com Mon Dec 2 21:50:59 2002 From: kray1 at travelersla.com (Kenneth Ray) Date: Mon, 02 Dec 2002 15:50:59 -0500 Subject: Invitation to get plugin with Nagios CGIs Message-ID: <3DEBC7B3.911F36CC@travelersla.com> Hi, Dont know if you got your information. But the auto load of plugins is a Netscape thing, it just means that it couldnt translate the incoming data as a valid part of the Browser. There are two ways to handle this. Though to tell you I would have to kill you!! just kidding, first it might help if you tell us what version you are using. then we can continue a little further in determining where to go to find the Switch you need to deal with, But in my browser it is located under applications, Also, the exact word for word message that the "download plugin" prompt gives you will indicate what file extension it couldn't find a way of displaying, so that would be extremely helpful. with those things, im sure someone can help you maybe even me!! Sincerely, Kenneth Ray Message: 2 Date: Mon, 2 Dec 2002 09:39:14 +1100 From: Stanley Hopcroft To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Invitation to get plugin with Nagios CGIs Dear Ladies and Gentlemen, Nagios 1.0 invites me to get a Netscape plugin when I browse the CGIs with Navigator (4.79 for Unix). There is no such prompt from Mozilla 1.1. How can I suppress this plugin download invitation (apart form downloading the plugin - and unfortunately I don't know what the plugin is that it wants) ? Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. -- This message and any attachments are confidential to the ordinary user of the e-mail address to which it was addressed and may also be privileged. If you receive this message in error please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not, directly or indirectly, use, disclose, distribute, print or copy any part of this message if you are not the intended recipient. Internet communications cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, arrive late or contain viruses or unauthorized amendments. The sender, therefore, does not accept liability for any errors or omissions in the content of this message or any damage or other consequences arising as a result of Internet transmission. Opinions, conclusions and other information in this message that do not relate to the official business of CITIGROUP shall be understood as neither given nor endorsed by it. -------------- next part -------------- A non-text attachment was scrubbed... Name: kray1.vcf Type: text/x-vcard Size: 179 bytes Desc: Card for Kenneth Ray URL: From kray1 at travelersla.com Mon Dec 2 21:55:35 2002 From: kray1 at travelersla.com (Kenneth Ray) Date: Mon, 02 Dec 2002 15:55:35 -0500 Subject: my bad!!! Message-ID: <3DEBC8C7.9C0D0B2B@travelersla.com> My bad, guess im not paying attention, 4.71 for unix is the version. Stanley, i would bet it is png, that you are asked to download a plugin for. I dont think by default that the 4.79 supports png natively but of course I am probably wrong on that. (as usual) *smile* Sincerely, Kenneth Ray nagios-users at lists.sourceforge.net --__--__-- Message: 2 Date: Mon, 2 Dec 2002 09:39:14 +1100 From: Stanley Hopcroft To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Invitation to get plugin with Nagios CGIs Dear Ladies and Gentlemen, Nagios 1.0 invites me to get a Netscape plugin when I browse the CGIs with Navigator (4.79 for Unix). There is no such prompt from Mozilla 1.1. How can I suppress this plugin download invitation (apart form downloading the plugin - and unfortunately I don't know what the plugin is that it wants) ? Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. -- This message and any attachments are confidential to the ordinary user of the e-mail address to which it was addressed and may also be privileged. If you receive this message in error please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not, directly or indirectly, use, disclose, distribute, print or copy any part of this message if you are not the intended recipient. Internet communications cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, arrive late or contain viruses or unauthorized amendments. The sender, therefore, does not accept liability for any errors or omissions in the content of this message or any damage or other consequences arising as a result of Internet transmission. Opinions, conclusions and other information in this message that do not relate to the official business of CITIGROUP shall be understood as neither given nor endorsed by it. -------------- next part -------------- A non-text attachment was scrubbed... Name: kray1.vcf Type: text/x-vcard Size: 179 bytes Desc: Card for Kenneth Ray URL: From Stanley.Hopcroft at IPAustralia.Gov.AU Mon Dec 2 22:17:43 2002 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Tue, 3 Dec 2002 08:17:43 +1100 Subject: parent and children In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB2E520A@PKDWB03C.ad.sprint.com>; from jcarro10@sprintspectrum.com on Mon, Dec 02, 2002 at 12:24:01PM -0600 References: <74D428BDBFD5D04CB54E84499ECA29DB2E520A@PKDWB03C.ad.sprint.com> Message-ID: <20021203081739.A242@IPAustralia.Gov.AU> Dear Ladies and Gentlemen, On Mon, Dec 02, 2002 at 12:24:01PM -0600, Carroll, Jim P [Contractor] wrote: > Why not create a host check for this 'host' which uses /bin/true as the > check? or the very flexible check_dummy tsitc> /usr/local/nagios/libexec/check_dummy -h check_dummy (netsaint-plugins 1.2.9-b2) 1.8 The netsaint plugins come with ABSOLUTELY NO WARRANTY. You may redistribute copies of the plugins under the terms of the GNU General Public License. For more information about these matters, see the file named COPYING. Copyright (c) 1999 Ethan Galstad (netsaint at linuxbox.com) License: GPL Usage: /usr/local/nagios/libexec/check_dummy This plugin will simply return the state corresponding to the numeric value of the argument. eg tsitc> /usr/local/nagios/libexec/check_dummy 0 Status is OK > That way, it'll always be 'up'. :) Ditto a mock service on that > 'host'. > > jc > Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en From kray1 at travelersla.com Mon Dec 2 22:10:46 2002 From: kray1 at travelersla.com (Kenneth Ray) Date: Mon, 02 Dec 2002 16:10:46 -0500 Subject: help with Qpage configuration Message-ID: <3DEBCC56.9120A696@travelersla.com> Hi, you don't need the -p nor the -i especially the -i (that is probably what is causing the notification not to go out. As stated before you need to run Qpage as a Daemon just try /usr/bin/echo "message here anyway you like it " |/usr/bin/qpage $CONTACTPAGER$ that should work in all cases, the -p -i are not needed, the only reason the above wouldn't work is if you have the wrong information in your Config for qpage.cf but as you stated, it works from a command line so i would say that is a null issue. Sincerely, Kenneth Ray -- This message and any attachments are confidential to the ordinary user of the e-mail address to which it was addressed and may also be privileged. If you receive this message in error please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not, directly or indirectly, use, disclose, distribute, print or copy any part of this message if you are not the intended recipient. Internet communications cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, arrive late or contain viruses or unauthorized amendments. The sender, therefore, does not accept liability for any errors or omissions in the content of this message or any damage or other consequences arising as a result of Internet transmission. Opinions, conclusions and other information in this message that do not relate to the official business of CITIGROUP shall be understood as neither given nor endorsed by it. -------------- next part -------------- A non-text attachment was scrubbed... Name: kray1.vcf Type: text/x-vcard Size: 179 bytes Desc: Card for Kenneth Ray URL: From GPotter at MarathonOil.com Mon Dec 2 22:55:57 2002 From: GPotter at MarathonOil.com (Potter, G M (Greg)) Date: Mon, 2 Dec 2002 15:55:57 -0600 Subject: help with Qpage configuration Message-ID: I did get this working without the -i. Nagios was timing out and killing the process when running interactively. I tested the command line without the -p and it seems to work also. Thanks for the input. Greg > -----Original Message----- > From: Kenneth Ray [mailto:kray1 at travelersla.com] > Sent: Monday, December 02, 2002 3:11 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] RE: help with Qpage configuration > > > Hi, > you don't need the -p nor the -i > especially the -i (that is probably what is causing the > notification not > to go out. > As stated before you need to run Qpage as a Daemon > just try /usr/bin/echo "message here anyway you like it " > |/usr/bin/qpage $CONTACTPAGER$ > that should work in all cases, the -p -i are not needed, > the only reason the above wouldn't work is if you have the wrong > information in your Config for qpage.cf > but as you stated, it works from a command line so i would > say that is > a null issue. > Sincerely, > Kenneth Ray > > > > -- > This message and any attachments are confidential to the ordinary user > of the e-mail address to which it was addressed and may also be > privileged. If you receive this message in error please immediately > delete it and all copies of it from your system, destroy any > hard copies > > of it and notify the sender. You must not, directly or > indirectly, use, > > disclose, distribute, print or copy any part of this message > if you are > not the intended recipient. Internet communications cannot be > guaranteed > > to be secure or error-free as information could be intercepted, > corrupted, lost, arrive late or contain viruses or unauthorized > amendments. The sender, therefore, does not accept liability for any > errors or omissions in the content of this message or any damage or > other consequences arising as a result of Internet transmission. > Opinions, conclusions and other information in this message > that do not > relate to the official business of CITIGROUP shall be understood as > neither given nor endorsed by it. > > ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en From tinzauro at axiomintegration.com Mon Dec 2 23:25:27 2002 From: tinzauro at axiomintegration.com (Terry Inzauro) Date: 02 Dec 2002 16:25:27 -0600 Subject: cgi errors In-Reply-To: References: Message-ID: <1038867932.8109.91.camel@inzauro1.axiomintegration.com> Sounds like permission issues. Check all perms carefully and try it again. On Mon, 2002-12-02 at 14:47, Paul Impellizzeri wrote: I have just finished installing on a FreeBSD 4.7-Stable system. My config has checked out on the pre-flight check list and my config is clean. I had to install Perl 5.8.0 because the base install of Perl on FreeBSD is only 5.0. The system is using the updated perl. Anytime i try to access one of the .cgi's I see this pop up in the apache error log... [Mon Dec 2 15:43:04 2002] [error] Unrecognized character \177 at /usr/local/share/nagios/cgi-bin/extinfo.cgi line 1. this error is the same no matter which one i call. I am getting an "Internal Server Error" in the browser. I have tried to search the archives on the mailing list for an answer but the search feature is not working (at least for me) on SourceForge. Am i missing something here? Thanks Paul --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.422 / Virus Database: 237 - Release Date: 11/20/2002 ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users Terry Inzauro Systems Engineer Email: tinzauro at axiomintegration.com Phone: 402.345.5500 Fax: 402.345.5501 US Mail: Axiom Integration, Inc. One Owen Pkwy 2200 Abbott Drive Carter Lake, IA 51510 -------------- next part -------------- An HTML attachment was scrubbed... URL: From maxik at skatvis.lv Tue Dec 3 00:24:21 2002 From: maxik at skatvis.lv (Maxik) Date: Tue, 3 Dec 2002 01:24:21 +0200 Subject: help: statusmap.cgi trend.cgi don't display images Message-ID: <9639349250.20021203012421@skatvis.lv> Hello nagios-users, Libs instaled, compilation ok including GD lib (no errors,warnings).But I still cann't see image. I see only white square with red cross.What the problem ? -- Best regards, Maxik mailto:maxik at skatvis.lv ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en From Stanley.Hopcroft at IPAustralia.Gov.AU Tue Dec 3 00:19:59 2002 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Tue, 3 Dec 2002 10:19:59 +1100 Subject: my bad!!! In-Reply-To: <3DEBC8C7.9C0D0B2B@travelersla.com>; from kray1@travelersla.com on Mon, Dec 02, 2002 at 03:55:35PM -0500 References: <3DEBC8C7.9C0D0B2B@travelersla.com> Message-ID: <20021203101956.A8847@IPAustralia.Gov.AU> Dear Sir, I am writing to thank you for your help in this matter and say On Mon, Dec 02, 2002 at 03:55:35PM -0500, Kenneth Ray wrote: > My bad, guess im not paying attention, 4.71 for unix is the version. > Stanley, i would bet it is png, that you are asked to download a > plugin for. I dont think by default that the 4.79 supports png natively > but of course I am probably wrong on that. (as usual) *smile* that AFAIK the PNGs are not the culprits; browsing PNGs like histogram.png with does not prompt for a plugin download (and the image is rendered) A packet trace shows no sign of reqests for 'unusual' objects, nor does the web server access log. I cannot see anything in the CGI source (displayed by the browser) that looks bad. It is not all the CGIs but only some of them including the . status.cgi . tac.cgi but not the extinfo.cgi. Got it finally, it's the AUDIO plugin 0.000000 PC09011.aipo.gov.au -> squid.aipo.gov.au HTTP GET http://cgi.netscape.com/cgi-bin/plugins/get_plugin.cgi?mimetype =audio/x-wav HTTP/1.0 Disabling sounds should fix it. > Sincerely, > Kenneth Ray > So either, 1 Don't use a 4.x Nav browser with Nagios 2 Use a 4.x Nav browser with Nagios after you either - disable sounds in Nagios.Cfg - install the plugin Opera and other contemporary browsers (eg Mozilla, but I hate its memory demands) are fine (FreeBSD users have less choice in this regard). Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en From jcarro10 at sprintspectrum.com Mon Dec 2 23:55:15 2002 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Mon, 2 Dec 2002 16:55:15 -0600 Subject: Restrict users to view certain hostgroups in c gi's Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2E5215@PKDWB03C.ad.sprint.com> I think you're taking the right approach for what you're trying to do. I'm not aware of any features in Nagios to enable security through obscurity. jc > -----Original Message----- > From: Dushyanth Harinath [mailto:dushy at symonds.net] > Sent: Saturday, November 30, 2002 6:30 AM > To: nagios > Subject: [Nagios-users] Restrict users to view certain hostgroups in > cgi's > > > Hi guys, > > I want to restrict some users (http authenticated) to see only a > certain hostgroup. To make this work i have 2 separate copies > of nagios > on different locations with different cgi-url and html-url. And iam > running 2 instances of nagios with different set of > configuration files. > The reason why iam doing this is I have 2 set of users who > should'nt see each > others hosts information. > > Is it possible to achieve this with a single instance of nagios and > different set of configuration files. Or is there any other way ? > > TIA > Regards > Dushyanth > -- > The Definition of an Upgrade: Take old bugs out, put new ones in. > > http://symonds.net/~dushy > > > ------------------------------------------------------- > This SF.net email is sponsored by: Get the new Palm Tungsten T > handheld. Power & Color in a compact size! > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en From russell at quadrix.com Tue Dec 3 00:44:27 2002 From: russell at quadrix.com (Russell Scibetti) Date: Mon, 02 Dec 2002 18:44:27 -0500 Subject: help: statusmap.cgi trend.cgi don't display images References: <9639349250.20021203012421@skatvis.lv> Message-ID: <3DEBF05B.5060606@quadrix.com> Try going to the sbin directory and typing: ldd statusmap.cgi This should tell you all the library the cgi uses and if any of them are missing. -Russell Maxik wrote: >Hello nagios-users, > > Libs instaled, compilation ok including GD lib (no > errors,warnings).But I still cann't see image. I see only white > square with red cross.What the problem ? > -- Russell Scibetti Quadrix Solutions, Inc. http://www.quadrix.com (732) 235-2335, ext. 7038 ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en From maxik at skatvis.lv Tue Dec 3 01:36:10 2002 From: maxik at skatvis.lv (Maxik) Date: Tue, 3 Dec 2002 02:36:10 +0200 Subject: statuswrl.cgi not working... Message-ID: <2543658437.20021203023610@skatvis.lv> Hello nagios-users, When i try to view 3-D status IE say cannot download statuswrl.cgi?host=all from xx.xx.xx.xx . Is it problem with IE or some thing else ? -- Best regards, Maxik mailto:maxik at skatvis.lv ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en From jpp at frws.com Tue Dec 3 01:36:32 2002 From: jpp at frws.com (JPP) Date: Mon, 02 Dec 2002 17:36:32 -0700 Subject: Restrict users to view certain hostgroups in cgi's References: <74D428BDBFD5D04CB54E84499ECA29DB2E5215@PKDWB03C.ad.sprint.com> Message-ID: <3DEBFC90.3060007@frws.com> Hi all! Yes you can do this! And use only 1 Nagios! Create 2 separate hostgroups and assign them as contacts/Admins/whatever for those 2 separate hostgroups. And you have to give them 2 separate/distinct login names in the Apache htpasswd files or however you lock down the server directories/files. In a nutshell: 1. Create users in the Apache control/passwd file called Admin1 and Admin2 (however you do this in your case) 2. Create these users in contacts.cfg for each hostgroup you wish to separate. Call them Admin1 and Admin2 also 2. Create a group for each of them in contactgroups.cfg and place them and you as members in that group. Call them Admin1-Group and Admin2-Group But do not place either of them in the others group. 3. In the services.cfg file - separate the 2 groups using the contact_groups option. For Admin1-Server make the contact Admin1-Group For Admin2-Server make the contact Admin2-Group I restarted Nagios - but may not have to... Login as Admin1 and see what you see. Shut down your browser and login as Admin2 and see what you can see. Should be limited to the servers/services in their group! This works to make them only see the hosts assigned to their group IF: 1. The user name in Nagios matches the username used by Apache to authenticate them. 2. The groups are separated totally from each other. They cannot be on any other group or list but the one you want them to view. We do not use literal .htpasswd files, but I am sure the concept is the same. We use the equivalent files right in the httpd.conf to protect all the Nagios directories. And only one file, actually - with many names in it. Hope this does it for you! JPP Carroll, Jim P [Contractor] wrote: > I think you're taking the right approach for what you're trying to do. I'm > not aware of any features in Nagios to enable security through obscurity. > > jc > > >>-----Original Message----- >>From: Dushyanth Harinath [mailto:dushy at symonds.net] >>Sent: Saturday, November 30, 2002 6:30 AM >>To: nagios >>Subject: [Nagios-users] Restrict users to view certain hostgroups in >>cgi's >> >> >>Hi guys, >> >>I want to restrict some users (http authenticated) to see only a >>certain hostgroup. To make this work i have 2 separate copies >>of nagios >>on different locations with different cgi-url and html-url. And iam >>running 2 instances of nagios with different set of >>configuration files. >>The reason why iam doing this is I have 2 set of users who >>should'nt see each >>others hosts information. >> >>Is it possible to achieve this with a single instance of nagios and >>different set of configuration files. Or is there any other way ? >> >>TIA >>Regards >>Dushyanth >>-- >>The Definition of an Upgrade: Take old bugs out, put new ones in. >> >>http://symonds.net/~dushy >> >> >>------------------------------------------------------- >>This SF.net email is sponsored by: Get the new Palm Tungsten T >>handheld. Power & Color in a compact size! >>http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en >>_______________________________________________ >>Nagios-users mailing list >>Nagios-users at lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/nagios-users >> >> > > > ------------------------------------------------------- > This SF.net email is sponsored by: Get the new Palm Tungsten T > handheld. Power & Color in a compact size! > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en From Stanley.Hopcroft at IPAustralia.Gov.AU Tue Dec 3 01:33:15 2002 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Tue, 3 Dec 2002 11:33:15 +1100 Subject: Reset alerts from passive service checks In-Reply-To: <4E7026FF8A422749B1553FE508E00680053E41@message.intern.akctech.de>; from Jan-Peter.Koopmann@seceidos.de on Mon, Dec 02, 2002 at 06:39:36PM +0100 References: <4E7026FF8A422749B1553FE508E00680053E41@message.intern.akctech.de> Message-ID: <20021203113314.B8847@IPAustralia.Gov.AU> Dear Sir, This may be dealt with comprehensively in the superb docco for integrating nagios/neysaint with Net-SNMP (eg http://your_host/nagios/docs/int-snmptrap.html ). On Mon, Dec 02, 2002 at 06:39:36PM +0100, Jan-Peter Koopmann wrote: > Hi, > > I started fooling aroung with the passive service checks to handle my > SNMP traps. I have it up and running to the point that an SNMP trap > triggers a service and puts it into critical. Is there an easy way to > get this back to OK within the GUI. > The principle is that all service definitions need a check command_line but in fact this command_line is __never__ run. Make this command_line a check that always returns true (eg check_dummy or check_ping with appropriate args for the location of the source of the traps) and then all that's necessary is to force a service check. > In case you are asking why: I want to be notified by firewall attacks > but once I have the notification and acknowledged the alarm I want it to > disappear. > > Regards, > JP > HTH, Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en From pete at dublerfamily.com Tue Dec 3 01:57:19 2002 From: pete at dublerfamily.com (Pete Dubler) Date: Mon, 02 Dec 2002 17:57:19 -0700 Subject: logos, logos, and blanks... Message-ID: <3DEC016F.3010500@dublerfamily.com> Having recovered from getting statusmap.cgi running, I decided to attempt to customize the icons in the statusmap. So... I added the following to /usr/local/nagios/etc/cgi.cfg xedtemplate_config_file=/usr/local/nagios/etc/hostextinfo.cfg I then set-up the following hostextinfo.cfg file ## Extended Information Configuration File # # added 12/2/02 by PD define hostextinfo{ host_name radio icon_image antenna.png icon_image_alt AntennaImage statusmap_image antenna.png } I left all of the other hosts alone. (this is my wireless link, of course) For what it's worth, this file is owned by and grouped to nagios: -rw-r--r-- 1 nagios nagios 211 Dec 2 17:21 hostextinfo.cfg restarted nagios: service nagios restart and for good measure, cleared the caches on my Mozilla 1.0.1 which is running locally on my nagios machine. All of my logos files are in the /usr/local/nagios/share/images/logos directory. They all have clean ownership, grouping and permissions: eg -rw-r--r-- 1 nagios nagios 1240 Dec 2 14:36 antenna.png NOW, what happened: bringing up the statusmap, all of the "?" marks are gone, not just the one on the host named radio. Also, when I mouse over the host named radio, the window that pops up shows the "antenna" logo. And, there is a green circle with two cross lines (like a rifle sight) over the host "radio" (bigger than the box that's also there). (There is just a box, the host name, and "Up" at all of the other hosts. Why did I loose the question marks? Why is there no logo shown for the host radio on the statusmap display (level 5, circular marked-up). Why is this so hard...? Hint: pngtogd generates the following error: No PNG library support available. Segmentation fault However all of the png libs and their devel libs are present on the system. ANY HELP IS WELCOME! ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en From sandromergvaz at uol.com.br Tue Dec 3 03:04:44 2002 From: sandromergvaz at uol.com.br (Sandro Vaz) Date: Mon, 2 Dec 2002 23:04:44 -0300 Subject: RES: statuswrl.cgi not working... In-Reply-To: <2543658437.20021203023610@skatvis.lv> References: <2543658437.20021203023610@skatvis.lv> Message-ID: Did you install a VRML client? If you don?t try: http://www.blaxxun.com/services/support/download/install.shtml (lighter, but has no walk option menu) http://www.parallelgraphics.com/products/cortona/download/ (easier, but heavier) HTH, SMV -----Mensagem original----- De: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] Em nome de Maxik Enviada em: segunda-feira, 2 de dezembro de 2002 21:36 Para: nagios-users at lists.sourceforge.net Assunto: [Nagios-users] statuswrl.cgi not working... Hello nagios-users, When i try to view 3-D status IE say cannot download statuswrl.cgi?host=all from xx.xx.xx.xx . Is it problem with IE or some thing else ? -- Best regards, Maxik mailto:maxik at skatvis.lv ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.423 / Virus Database: 238 - Release Date: 25/11/2002 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.423 / Virus Database: 238 - Release Date: 25/11/2002 ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en From maxik at skatvis.lv Tue Dec 3 02:14:58 2002 From: maxik at skatvis.lv (Maxik) Date: Tue, 3 Dec 2002 03:14:58 +0200 Subject: RES: statuswrl.cgi not working... In-Reply-To: References: Message-ID: <4145985781.20021203031458@skatvis.lv> Hello Sandro, Tuesday, December 3, 2002, 4:04:44 AM, you wrote: Yes i did ... still same problem ... May be this problem come from ssl ? nagios work on apahe-ssl ... SV> Did you install a VRML client? SV> If you don?t try: SV> http://www.blaxxun.com/services/support/download/install.shtml (lighter, SV> but has no walk option menu) SV> http://www.parallelgraphics.com/products/cortona/download/ (easier, but SV> heavier) SV> HTH, SV> SMV SV> -----Mensagem original----- SV> De: nagios-users-admin at lists.sourceforge.net SV> [mailto:nagios-users-admin at lists.sourceforge.net] Em nome de Maxik SV> Enviada em: segunda-feira, 2 de dezembro de 2002 21:36 SV> Para: nagios-users at lists.sourceforge.net SV> Assunto: [Nagios-users] statuswrl.cgi not working... SV> Hello nagios-users, SV> When i try to view 3-D status IE say cannot download SV> statuswrl.cgi?host=all from xx.xx.xx.xx . SV> Is it problem with IE or some thing else ? -- Best regards, Maxik mailto:maxik at skatvis.lv ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en From pete at dublerfamily.com Tue Dec 3 02:25:20 2002 From: pete at dublerfamily.com (Pete Dubler) Date: Mon, 02 Dec 2002 18:25:20 -0700 Subject: RH8.0 Installation details (answers, not questions) Message-ID: <3DEC0800.8000303@dublerfamily.com> I finally got it all right... Here, in detail are the steps I followed to get nagios installed, with all of the neat graphic cgi's, on Redhat 8.0. There are just a few subtle details. Installation (on RedHat 8.0): Nagios requires the following: gd from http://www.boutell.com/gd libjpeg (RH CD #1) and libjpeg-devel (RH CD #2) libpng (RH CD #1) and libpng-devel (RH CD #2) Unpack gd with the following command: tar -xzvf gd.2.0.8.tar.gz Boutell's version of gd will update the RedHat version by using the following configure invocation from the directory in which gd was unpacked: ./configure --prefix=/usr make make install Prior to attempting to build the nagios distribution, /etc/ld.so.conf needs to be edited to include the path to gd (and libjpeg and libpng) by adding the line: /usr/lib then you must run the following command: ldconfig Now you are ready to configure and make nagios. Nagios is expanded by running the command: tar -xzvf nagios-1.0.tar.gz The configure invocation must include options for the path to your gd lib and gd includes. Running from the directory in which nagios was expanded: ./configure --with-gd-lib=/usr/lib \ --with-gd-inc=/usr/include Then execute the following commands in turn (note, you will see lots of warning messages as a result of the specified paths in the configure command. This is not a problem).: make all make install make install-init make install-commandmode make install-config Now you are ready to edit all of the necessary nagios config files which are located in /usr/local/nagios/etc. Refer to the excellent documentation that comes with nagios. (Sit and read the doc, especially the tips and tricks, before editing any files and you will find it much easier...) THANKS FOR THE HELP FOLKS... -------------- next part -------------- An HTML attachment was scrubbed... URL: From terry at eurocompton.net Tue Dec 3 03:59:41 2002 From: terry at eurocompton.net (Terry Baranski) Date: Mon, 2 Dec 2002 21:59:41 -0500 Subject: Distributed SNMP monitoring. Message-ID: <000001c29a78$07231d50$0a00640a@netsec.net> Hello. Hoping I can get some thoughts on this from those experienced with Nagios. I'm looking to deploy a network monitoring solution primarily to monitor host resources such as disk space, processor usage, and so forth via SNMP, and also to receive SNMP traps and notify accordingly. The hosts are Open/FreeBSD, Solaris, Linux, and Windows. I'm in need of a solution that supports tiering -- I need an external server to monitor exernal devices and an internal server to monitor internal devices, with the external server pumping its data to the internal server, making the internal server the central/master server. I first looked an OpenNMS, but it doesn't have tier support yet. Then I ran across Nagios, which does seem to have tier support, but also seems to be geared more towards up/down monitoring than SNMP monitoring. So, I'm wondering what those who have used Nagios think of its appropriateness (or lack thereof) for what I'm trying to accomplish. >From the documentation I've read so far, it appears to me that tiered host resource monitoring is possible with the NRPE daemon running on each monitored host. Is this accurate? If so, does this daemon work on Open/FreeBSD? These OS's represent the majority of our hosts. Any help/advice on this will be greatly appreciated. Thanks, Terry ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en From BWhitworth at clivepeeters.com.au Tue Dec 3 04:57:40 2002 From: BWhitworth at clivepeeters.com.au (Whitworth, Ben) Date: Tue, 3 Dec 2002 14:57:40 +1100 Subject: Exclude a host from a hostgroup Message-ID: <38CC1F19FD37794597FCFA4F801DD65D46A52A@dingo.clivepeeters.com.au> When specifying a "hostgroup" in for example a "service dependency" can you exclude one or more hosts from that group within the definition. Eg. define servicedependency{ host_name router1 service_description * dependent_hostgroup_name routers dependent_service_description * execution_failure_criteria n notification_failure_criteria w,u,c } "router1" is part of "hostgroup routers" but of course cannot be dependant on itself however all other routers connect to it and are therefore dependant. Yours truly, Ben ############################################################################ Disclaimer: This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. Clive Peeters reserve the right to monitor all e-mail communications through its networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity. Clive Peeters accepts no responsibility for the content of any email which is sent by an employee which is of a personal nature. This message has been scanned for and cleared of known viruses and inappropriate content. ############################################################################ ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en From mmcclure at pneservices.com Tue Dec 3 05:26:25 2002 From: mmcclure at pneservices.com (Mike McClure) Date: Mon, 2 Dec 2002 22:26:25 -0600 (CST) Subject: Distributed SNMP monitoring. In-Reply-To: <000001c29a78$07231d50$0a00640a@netsec.net> References: <000001c29a78$07231d50$0a00640a@netsec.net> Message-ID: <2926.192.168.1.9.1038889585.squirrel@xyzzy.homeip.net> Hi Terry, > Hello. > > Hoping I can get some thoughts on this from those experienced with > Nagios. > > I'm looking to deploy a network monitoring solution primarily to monitor > host resources such as disk space, processor usage, and so forth via > SNMP, and also to receive SNMP traps and notify accordingly. The hosts > are Open/FreeBSD, Solaris, Linux, and Windows. Actually, Nagios has agents (NRPE, NCSA, NSClient) for all those platforms that are arguably easier to use than most of the SNMP-based systems I've seen. I recommend that you tunnel the various protocols through stunnel (SSL TCP tunnels), especially NRPE and NSClient. Those two do not encrypt their authentication data. If you must be able to do something based on SNMP traps, then you might have quite a bit of work ahead of you. They aren't integrated into Nagios (as is discussed in the docs), and probably never will be for various reasons. Nagios is based on polling. > I'm in need of a > solution that supports tiering -- I need an external server to monitor > exernal devices and an internal server to monitor internal devices, with > the external server pumping its data to the internal server, making the > internal server the central/master server. That's certainly possible with Nagios, however, is this absolutely required? There's no way for the internal system to connect to the external devices? The way I'd implement that, assuming you can't do it all from one box, is have the secondary system run the Nagios daemon (but not the CGI programs), and pass the data back with NSCA, MySQL, or scp it and parse the contents into the external command pipe. You'd have to keep the configurations on each system in sync, but not check external devices from the internal device, and vice-versa. It could be a messy situation. > > I first looked an OpenNMS, but it doesn't have tier support yet. Then I > ran across Nagios, which does seem to have tier support, but also seems > to be geared more towards up/down monitoring than SNMP monitoring. It depends on what you mean by "SNMP monitoring". Nagios (and it's specialized agents) can collect resource statistics, just like with SNMP. Disk, memory and processor utilization are all available. Traps really aren't necessary, since collection is polled regularly. However, Nagios is really built to be a polling/alerting system. There's very little collection or visualization of statistical information. For a solution to that, I'd recommend Cacti, Cricket or MRTG, in that order. Integration with Nagios is possible. > > So, I'm wondering what those who have used Nagios think of its > appropriateness (or lack thereof) for what I'm trying to accomplish. > From the documentation I've read so far, it appears to me that tiered > host resource monitoring is possible with the NRPE daemon running on > each monitored host. Is this accurate? If so, does this daemon work on > Open/FreeBSD? These OS's represent the majority of our hosts. Yes, NRPE works just fine on xBSD. > > Any help/advice on this will be greatly appreciated. > > Thanks, > Terry -- Mike McClure, CCIE # 5125, CISSP # 30232 PNE Services, Inc. - http://www.pneservices.com mmcclure at pneservices.com mobile: 913-636-5590 ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en From dushy at symonds.net Tue Dec 3 05:32:51 2002 From: dushy at symonds.net (Dushyanth Harinath) Date: Tue, 3 Dec 2002 10:02:51 +0530 Subject: Restrict users to view certain hostgroups in c gi's In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB2E5215@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB2E5215@PKDWB03C.ad.sprint.com> Message-ID: <20021203043251.GA2472@directi.com> Hi , * wrote from a remote bunker : > I think you're taking the right approach for what you're trying to do. I'm > not aware of any features in Nagios to enable security through obscurity. Security through obscurity ?. I dont get it. Does it make sense if each of my client/users can see each others servers & service status which they dont need or dont have to?. cheers dushyanth -- "God, root, what is difference?" I've always found it easier to hack root. http://symonds.net/~dushy ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en From Stanley.Hopcroft at IPAustralia.Gov.AU Tue Dec 3 06:41:02 2002 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Tue, 3 Dec 2002 16:41:02 +1100 Subject: Distributed SNMP monitoring. In-Reply-To: <000001c29a78$07231d50$0a00640a@netsec.net>; from terry@eurocompton.net on Mon, Dec 02, 2002 at 09:59:41PM -0500 References: <000001c29a78$07231d50$0a00640a@netsec.net> Message-ID: <20021203164100.H8847@IPAustralia.Gov.AU> Dear Sir, I am writing with a preliminary reply to this and hope that the authorites will correct it. On Mon, Dec 02, 2002 at 09:59:41PM -0500, Terry Baranski wrote: > Hello. > > Hoping I can get some thoughts on this from those experienced with > Nagios. > > I'm looking to deploy a network monitoring solution primarily to monitor > host resources such as disk space, processor usage, and so forth via > SNMP, and also to receive SNMP traps and notify accordingly. The hosts > are Open/FreeBSD, Solaris, Linux, and Windows. I'm in need of a > solution that supports tiering -- I need an external server to monitor > exernal devices and an internal server to monitor internal devices, with > the external server pumping its data to the internal server, making the > internal server the central/master server. > > I first looked an OpenNMS, but it doesn't have tier support yet. Then I > ran across Nagios, which does seem to have tier support, but also seems > to be geared more towards up/down monitoring than SNMP monitoring. > Yes, but not only up/down; more whether or not services are working regardless of whether the host is up. You should also have a look at 1 (either the copy in the docs that comes with Nagios/Netsaint) or http://nagios.sourceforge.net/docs/1_0/int-snmptrap.html This outlines the SNMP trap architecture for Nagios/Netsaint. This seems to me to be tiered in the sense that you can have any number of trap collectors that use NCSA to send the decoded trap to a NCSA daemon on a Nagios manager that submits them to Nagios as a passive service check result. (scalability is limited only by the capacity of the Nagios manager to read passive service check results from the command queue. Alternatively, Nagios supports multiple tiers of managers with distributed monitoring. See http://nagios.sourceforge.net/docs/1_0/distributed.html ) 2 There is also a third party piece of software called SNMPTT by Alex Burger on SourceForge. SNMPTT eliminates or substantially reduces the maintenance cost of supporting traps compared with the approach above by replacing the trap handler(s) by SNMPTT - something that is a lot easier to live with than a whole bunch of trap handlers. SNMPTT is known to work with Netsaint and therefore Nagios. You can see some of Mr Burgers remarks about using it with Netsaint in the Netsaint users archive (this month). > So, I'm wondering what those who have used Nagios think of its > appropriateness (or lack thereof) for what I'm trying to accomplish. > From the documentation I've read so far, it appears to me that tiered > host resource monitoring is possible with the NRPE daemon running on > each monitored host. Is this accurate? If so, does this daemon work on > Open/FreeBSD? These OS's represent the majority of our hosts. > NRPE is another means of distributing monitoring. Since NRPE is a means of having a service check plugin run on another host (returning the results to the central manager) it seems less suitable to your situation - if it's traps you want - than NCSA. I would be very suprised if NRPE __doesn't__ run on FreeBSD. In my experience Nagios only uses standard C or system call functions. I have only used Nagios with a handful of traps in a medium size network (and on FreeBSD also) but it seems quite adequate and able to scale. > Any help/advice on this will be greatly appreciated. > > Thanks, > Terry > > HTH, Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en From sghosh at sghosh.org Tue Dec 3 06:44:53 2002 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 3 Dec 2002 00:44:53 -0500 (EST) Subject: check_snmp CPU Load strange result In-Reply-To: <000c01c29a10$2293a1d0$bd28bb0a@mediaonline.ch> References: <000c01c29a10$2293a1d0$bd28bb0a@mediaonline.ch> Message-ID: Please post the version of the plugin/os/net-snmp check_snmp treats bare numbers in warning and critical as upper bounds, so -w'60,69' is interpreted as warn on 0-60 for the first and 0-69 for the second... -sg On Mon, 2 Dec 2002, Pascal Wessel wrote: > Nagios gives me warning when snmp_check 'ing for Cisco 3640 CPU load / > IOS is (C3640-IK9O3S-M), Version 12.2(10a) but the CPU load is below my > Warning threshold. > > When launched from the command-line with verbose output: > > [libexec]# ./check_snmp -v -t 10 -H 192.168.1.1 -o > .1.3.6.1.4.1.9.2.1.57.0,.1.3.6.1.4.1.9.2.1.58.0 -C publicro -w '60,69', > -c > '70,80' -l 'CPU usage 1min/5min' -D ' / ' > /usr/bin/snmpget -m ALL -v 1 -c publicro 192.168.1.1:161 > .1.3.6.1.4.1.9.2.1.57.0 .1.3.6.1.4.1.9.2.1.58.0 > enterprises.9.2.1.57.0 = 4 > enterprises.9.2.1.58.0 = 3 > > CPU usage 1min/5min WARNING - *4* / *3* > > As you can see.. (and if I understood the syntax) > Warning status should be triggered when the CPU load is between 60 and > 69% > Critical status should be triggered when the router CPU is between 70 to > 80% > > #---- > My question is: why this check reports WARNING as my router CPU load (4% > last minute and 3% last 5 min) is below the WARNING threshold ? > #---- > > My Nagios system installation is as follows: > > System Intel i686, Mandrake 9.0, Kernel 2.4.19-16 > NAGIOS: Nagios 1.0b6 > Plugins: nagios-plugins-200211131100 > Check_snmp: Revision: 1.17 > SNMP: > libsnmp0-4.2.3-4mdk > ucd-snmp-4.2.3-4mdk > ucd-snmp-utils-4.2.3-4mdk > > Below a snip of my "cfg file > > #--- hosts.cfg for myrouter > > define host { > name generic-host > notifications_enabled 1 ; Host notifications > are enabled > event_handler_enabled 1 ; Host event handler is > enabled > flap_detection_enabled 1 ; Flap detection is > enabled > process_perf_data 1 ; Process performance > data > retain_status_information 1 ; Retain status > information across program restarts > retain_nonstatus_information 1 ; Retain non-status > information across program restarts > max_check_attempts 10 > register 0 ; DONT REGISTER THIS > DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE! > } > > define host { > use generic-host ; Name > of host template to use > host_name myrouter > alias Router Gva Coulou -6 > address 192.168.1.1 > check_command check-host-alive > notification_interval 60 > notification_period 24x7 > notification_options d,u,r > } > > #--- services.cfg > define service { > name generic-service ; > 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 > obsess_over_service 1 ; We should obsess over this > service (if necessary) > check_freshness 0 ; Default is to NOT check > service 'freshness' > notifications_enabled 1 ; Service notifications are > enabled > event_handler_enabled 1 ; Service event handler is > enabled > flap_detection_enabled 1 ; Flap detection is enabled > process_perf_data 1 ; Process performance data > retain_status_information 1 ; Retain status information > across program restarts > retain_nonstatus_information 1 ; Retain non-status information > across program restarts > normal_check_interval 5 > retry_check_interval 2 > notification_period 24x7 > notification_options u,c,r > register 0 ; DONT REGISTER THIS > DEFINITION > } > > define service{ > use generic-service > host_name myrouter > service_description CPU > is_volatile 0 > check_period 24x7 > max_check_attempts 3 > retry_check_interval 1 > contact_groups router-admins > notification_interval 120 > notification_period 24x7 > check_command > check_cisco_cpu!publicro!60!69!70!80 > } > > > > #--- checkcommands.cfg > # 'check_snmp' generic command definition > define command{ > command_name check_snmp > command_line $USER1$/check_snmp -t 10 -H $HOSTADDRESS$ -C $ARG1$ > $ARG2$ $ARG3$ $ARG4$ $ARG5$ $ARG6$ $ARG7$ $ARG8$ $ARG9$ > } > # check_cisco_cpu: checks router CPU-usage > # Syntax > !Hostname!Community!WARN-1min-%!WARN-5min-%!CRIT-1min-%!CRIT-5min-% > define command{ > command_name check_cisco_cpu > command_line $USER1$/check_snmp -t 10 -H $HOSTADDRESS$ > -o.1.3.6.1.4.1.9.2.1.57.0,.1.3.6.1.4.1.9.2.1.58.0 -C $ARG1$ -w > :$ARG2$,:$ARG3$ -c : > $ARG4$,:$ARG5$ -l 'CPU usage 1min/5min' -D ' / ' > } > > > > Btw, by looking at the code in check_snmp.c I'm wondering . > Is there a problem with : #define mark(a) ((a)!=0?"*":"") in > check_snmp.c ??? Or are my parms so bad ? :-o > > Thanks for your kind help. > Warm regards, > Pascal > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > -- ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en From andrew.slater at netstrategy.net Tue Dec 3 07:06:34 2002 From: andrew.slater at netstrategy.net (andrew.slater at netstrategy.net) Date: Tue, 3 Dec 2002 17:06:34 +1100 Subject: Yet another NRPE issue... Message-ID: Hi all, The story goes like this; I had my Nagios setup and working beautifully with NRPE working fine on 20 odd hosts. I went away for a couple of weeks and as the system is somewhat developmental at the moment, was happy enough to have it shutdown for the time I was away. The problem is that now I am back, the system is plugged back in I cant get any response from any server with NRPE on it. The details; - check_nrpe run on the target machine works fine - Nagios called check_nrpe command fails with "CHECK_NRPE: Received 0 bytes. Are we allowed to connect to the host?" - telnet to port 5666 on target machine from Nagios machine fails - telnet to localhost:5666 on target machine fails; [root at cache01 xinetd.d]# telnet telnet> open xxx.xxx.xxx.xxx 5666 Trying xxx.xxx.xxx.xxx... Connected to xxx.xxx.xxx.xxx. Escape character is '^]'. Connection closed by foreign host. (Which happens instantaneously) - xinetd _is_ listening on port 5666 on the target machines; [root at cache01 xinetd.d]# netstat -pan | grep tcp 0 0 0.0.0.0:5666 0.0.0.0:* LISTEN 5320/xinetd - strace printout of a commandline "./check_nrpe xxx.xxx.xxx.xxx -p 5666 -c check_users" to a machine on the same subnet ... ... send(3, "\0\0\0\1\0\0\0\1\0\0\0\0\0\0\0\vcheck_users\0\0\0\0\0"..., 1040, 0) = 1040 time([1038894731]) = 1038894731 recv(3, 0xbffff2e0, 1040, 0) = -1 ECONNRESET (Connection reset by peer) fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 1), ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40014000 write(1, "CHECK_NRPE: Error receiving data"..., 44CHECK_NRPE: Error receiving data from host. ) = 44 close(3) = 0 alarm(0) = 10 munmap(0x40014000, 4096) = 0 _exit(3) = ? - strace printout of a commandline "./check_nrpe xxx.xxx.xxx.xxx -p 5666 -c check_users" to a machine on a different subnet ... ... send(3, "\0\0\0\1\0\0\0\1\0\0\0\0\0\0\0\vcheck_users\0\0\0\0\0"..., 1040, 0) = 1040 time([1038894876]) = 1038894876 recv(3, "", 1040, 0) = 0 fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 1), ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40014000 write(1, "CHECK_NRPE: Received 0 bytes. A"..., 70CHECK_NRPE: Received 0 bytes. Are we allowed to connect to the host? ) = 70 close(3) = 0 alarm(0) = 10 munmap(0x40014000, 4096) = 0 _exit(3) = ? I have to admit that i'm still pretty much in holiday mood so there could be something ridiculously simple I am missing (here's hoping) but I am getting to the end of my useful troubleshooting ideas, so any light from any listmembers would be greatly appreciated. Thanks to all, Andrew Slater ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en From twelsh at square-box.com Tue Dec 3 08:52:03 2002 From: twelsh at square-box.com (Tom Welsh) Date: Tue, 3 Dec 2002 07:52:03 -0000 Subject: Yet another NRPE issue... In-Reply-To: References: Message-ID: <000201c29aa0$de8fb500$0400a8c0@squarebox.com> I had this happen to me once on a similar system. It all worked well and when I returned from holiday it was not working. What I found out was it was a combination of the networking guys playing with the firewall guys and shutting ports down If you know your box configurations have not changed, and you know nobody has removed the nrpe configs on your remote boxes then id be looking in the network infrastructure change logs to see whats changed whilst you were away But then again I may be barking up the completely wrong tree Cheers Tom Welsh squareBOX technologies twelsh at square-box.com -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of andrew.slater at netstrategy.net Sent: 03 December 2002 06:07 To: Nagios-users at lists.sourceforge.net Subject: [Nagios-users] Yet another NRPE issue... Hi all, The story goes like this; I had my Nagios setup and working beautifully with NRPE working fine on 20 odd hosts. I went away for a couple of weeks and as the system is somewhat developmental at the moment, was happy enough to have it shutdown for the time I was away. The problem is that now I am back, the system is plugged back in I cant get any response from any server with NRPE on it. The details; - check_nrpe run on the target machine works fine - Nagios called check_nrpe command fails with "CHECK_NRPE: Received 0 bytes. Are we allowed to connect to the host?" - telnet to port 5666 on target machine from Nagios machine fails - telnet to localhost:5666 on target machine fails; [root at cache01 xinetd.d]# telnet telnet> open xxx.xxx.xxx.xxx 5666 Trying xxx.xxx.xxx.xxx... Connected to xxx.xxx.xxx.xxx. Escape character is '^]'. Connection closed by foreign host. (Which happens instantaneously) - xinetd _is_ listening on port 5666 on the target machines; [root at cache01 xinetd.d]# netstat -pan | grep tcp 0 0 0.0.0.0:5666 0.0.0.0:* LISTEN 5320/xinetd - strace printout of a commandline "./check_nrpe xxx.xxx.xxx.xxx -p 5666 -c check_users" to a machine on the same subnet ... ... send(3, "\0\0\0\1\0\0\0\1\0\0\0\0\0\0\0\vcheck_users\0\0\0\0\0"..., 1040, 0) = 1040 time([1038894731]) = 1038894731 recv(3, 0xbffff2e0, 1040, 0) = -1 ECONNRESET (Connection reset by peer) fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 1), ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40014000 write(1, "CHECK_NRPE: Error receiving data"..., 44CHECK_NRPE: Error receiving data from host. ) = 44 close(3) = 0 alarm(0) = 10 munmap(0x40014000, 4096) = 0 _exit(3) = ? - strace printout of a commandline "./check_nrpe xxx.xxx.xxx.xxx -p 5666 -c check_users" to a machine on a different subnet ... ... send(3, "\0\0\0\1\0\0\0\1\0\0\0\0\0\0\0\vcheck_users\0\0\0\0\0"..., 1040, 0) = 1040 time([1038894876]) = 1038894876 recv(3, "", 1040, 0) = 0 fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 1), ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40014000 write(1, "CHECK_NRPE: Received 0 bytes. A"..., 70CHECK_NRPE: Received 0 bytes. Are we allowed to connect to the host? ) = 70 close(3) = 0 alarm(0) = 10 munmap(0x40014000, 4096) = 0 _exit(3) = ? I have to admit that i'm still pretty much in holiday mood so there could be something ridiculously simple I am missing (here's hoping) but I am getting to the end of my useful troubleshooting ideas, so any light from any listmembers would be greatly appreciated. Thanks to all, Andrew Slater ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en From tdeblend at gcc.dhl.com Tue Dec 3 08:48:49 2002 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Tue, 03 Dec 2002 08:48:49 +0100 Subject: Netsaint to Nagios Message-ID: <3DEC61E1.7E46FC76@gcc.dhl.com> Hi, Since Nagios is stable now (yeah, yeah, I know it is for a while now), I would like to have a closer look at it. Is there any risk in installing it on the same box Netsaint is running on? Kind regards, Tom ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en From ChrisF at winterlink.net Tue Dec 3 08:57:06 2002 From: ChrisF at winterlink.net (Chris Fairbanks) Date: Mon, 2 Dec 2002 23:57:06 -0800 Subject: Permission Error Message-ID: <11C80DA1026CF545921B280740C440ED8BA5FC@exchange1.corp.winterlink.net> I keep getting the following whenever I try looking at pretty much anything. ------------- It appears as though you do not have permission to view information for any of the services you requested... If you believe this is an error, check the HTTP server authentication requirements for accessing this CGI and check the authorization options in your CGI configuration file. ------------- I have read through the FAQ and everything seems to be fine. I have a .htaccess file in both the html dir and the cgi dir of the following --------------- AuthName "Nagios Access" AuthType Basic AuthUserFile /usr/local/nagios/etc/htpasswd.users require valid-user --------------- I also added my user account in the cgi.cfg to view everything and I still get the same error. -------------- authorized_for_all_services=chrisf authorized_for_all_hosts=chrisf -------------- Any ideas? I am pretty default RedHat 8.0 install. Thanks, Chris ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en From jeff.verheyen at ampersant.be Tue Dec 3 09:30:59 2002 From: jeff.verheyen at ampersant.be (Jeff Verheyen) Date: 03 Dec 2002 09:30:59 +0100 Subject: Permission Error In-Reply-To: <11C80DA1026CF545921B280740C440ED8BA5FC@exchange1.corp.winterlink.net> References: <11C80DA1026CF545921B280740C440ED8BA5FC@exchange1.corp.winterlink.net> Message-ID: <1038904259.8214.50.camel@picard.enterprise.be> Did you add the user to the htpasswd.users file? On Tue, 2002-12-03 at 08:57, Chris Fairbanks wrote: > I keep getting the following whenever I try looking at pretty much > anything. > > ------------- > It appears as though you do not have permission to view information for > any of the services you requested... > > > If you believe this is an error, check the HTTP server authentication > requirements for accessing this CGI > and check the authorization options in your CGI configuration file. > ------------- > > I have read through the FAQ and everything seems to be fine. I have a > .htaccess file in both the html dir and the cgi dir of the following > > --------------- > AuthName "Nagios Access" > AuthType Basic > AuthUserFile /usr/local/nagios/etc/htpasswd.users > require valid-user > --------------- > > I also added my user account in the cgi.cfg to view everything and I > still get the same error. > > -------------- > authorized_for_all_services=chrisf > authorized_for_all_hosts=chrisf > -------------- > > Any ideas? I am pretty default RedHat 8.0 install. > > Thanks, > Chris > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Get the new Palm Tungsten T > handheld. Power & Color in a compact size! > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users -- Ampersant bvba - Jeff Verheyen Dr. Jacobsstraat 3 - 2570 DUFFEL - Belgium Tel: +32 15 32 36 19 - Fax: +32 15 32 37 90 Email: jeff.verheyen at ampersant.be Website: http://www.ampersant.be/ ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en From pascal.wessel at media-online.ch Tue Dec 3 10:18:20 2002 From: pascal.wessel at media-online.ch (Pascal Wessel) Date: Tue, 3 Dec 2002 10:18:20 +0100 Subject: check_snmp CPU Load strange result In-Reply-To: References: Message-ID: <000f01c29aac$ec54fb80$bd28bb0a@mediaonline.ch> You asked: Please post the version of the plugin/os/net-snmp Hummm... Ok, I say it again: (I copy-past the needed info from my first mail. Btw it's at the very end of this thread I agree) ---snip--- > My Nagios system installation is as follows: > > System Intel i686, Mandrake 9.0, Kernel 2.4.19-16 > NAGIOS: Nagios 1.0b6 > Plugins: nagios-plugins-200211131100 > Check_snmp: Revision: 1.17 > SNMP: > libsnmp0-4.2.3-4mdk > ucd-snmp-4.2.3-4mdk > ucd-snmp-utils-4.2.3-4mdk ---snip--- I had this: [libexec]# ldd check_snmp libutil.so.1 => /lib/libutil.so.1 (0x40023000) libc.so.6 => /lib/i686/libc.so.6 (0x40026000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) check_snmp treats bare numbers in warning and critical as upper bounds, so -w'60,69' is interpreted as warn on 0-60 for the first and 0-69 for the second... Very interesting... I did't catch it at first. I made some tests with different values for warning and/or critical thresholds... Very stange, I only have WARNING status returning from these ones. To clarify a bit I made tests with only one OID (The 1 min CPU load), with same result: WARNING Always returns. By reading check_snmp --help I saw that I can use absolute values (like -w '0:30') if colons are used. Ranges are inclusive and are indicated with colons. When specified as 'min:max' a STATE_OK will be returned if the result is within the indicated range or is equal to the upper or lower bound. A non-OK state will be returned if the result is outside the specified range. Then....some tests again.... Eg (with the 1 min CPU load OID): ./check_snmp -v -t 10 -H 192.168.1.1 -o .1.3.6.1.4.1.9.2.1.57.0 -C publicro -w '50:69' -c'70:99' enterprises.9.2.1.57.0 = 4 SNMP WARNING - *4* That's ok... 4% is not in the range 50:69... Then it's a "non-OK" result, thus the WARNING for the -w switch. ./check_snmp -v -t 10 -H 192.168.1.1 -o .1.3.6.1.4.1.9.2.1.57.0 -C publicro -w '1:9' -c'10:99' enterprises.9.2.1.57.0 = 7 SNMP WARNING - *7* 7% is within the range 1:9... I should have a STATE_OK. GrrrRRRrrrRRRRRR %#*$& !!! Why do I have WARNING ????? Well, any help appreciated. Thanks in advance. Warm regards, Pascal -sg On Mon, 2 Dec 2002, Pascal Wessel wrote: > Nagios gives me warning when snmp_check 'ing for Cisco 3640 CPU load / > IOS is (C3640-IK9O3S-M), Version 12.2(10a) but the CPU load is below > my Warning threshold. > > When launched from the command-line with verbose output: > > [libexec]# ./check_snmp -v -t 10 -H 192.168.1.1 -o > .1.3.6.1.4.1.9.2.1.57.0,.1.3.6.1.4.1.9.2.1.58.0 -C publicro -w > '60,69', -c '70,80' -l 'CPU usage 1min/5min' -D ' / ' > /usr/bin/snmpget -m ALL -v 1 -c publicro 192.168.1.1:161 > .1.3.6.1.4.1.9.2.1.57.0 .1.3.6.1.4.1.9.2.1.58.0 > enterprises.9.2.1.57.0 = 4 > enterprises.9.2.1.58.0 = 3 > > CPU usage 1min/5min WARNING - *4* / *3* > > As you can see.. (and if I understood the syntax) > Warning status should be triggered when the CPU load is between 60 and > 69% Critical status should be triggered when the router CPU is between > 70 to 80% > > #---- > My question is: why this check reports WARNING as my router CPU load > (4% last minute and 3% last 5 min) is below the WARNING threshold ? > #---- > > My Nagios system installation is as follows: > > System Intel i686, Mandrake 9.0, Kernel 2.4.19-16 > NAGIOS: Nagios 1.0b6 > Plugins: nagios-plugins-200211131100 > Check_snmp: Revision: 1.17 > SNMP: > libsnmp0-4.2.3-4mdk > ucd-snmp-4.2.3-4mdk > ucd-snmp-utils-4.2.3-4mdk > > Below a snip of my "cfg file > > #--- hosts.cfg for myrouter > > define host { > name generic-host > notifications_enabled 1 ; Host notifications > are enabled > event_handler_enabled 1 ; Host event handler is > enabled > flap_detection_enabled 1 ; Flap detection is > enabled > process_perf_data 1 ; Process performance > data > retain_status_information 1 ; Retain status > information across program restarts > retain_nonstatus_information 1 ; Retain non-status > information across program restarts > max_check_attempts 10 > register 0 ; DONT REGISTER THIS > DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE! > } > > define host { > use generic-host ; Name > of host template to use > host_name myrouter > alias Router Gva Coulou -6 > address 192.168.1.1 > check_command check-host-alive > notification_interval 60 > notification_period 24x7 > notification_options d,u,r > } > > #--- services.cfg > define service { > name generic-service ; > 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 > obsess_over_service 1 ; We should obsess over this > service (if necessary) > check_freshness 0 ; Default is to NOT check > service 'freshness' > notifications_enabled 1 ; Service notifications are > enabled > event_handler_enabled 1 ; Service event handler is > enabled > flap_detection_enabled 1 ; Flap detection is enabled > process_perf_data 1 ; Process performance data > retain_status_information 1 ; Retain status information > across program restarts > retain_nonstatus_information 1 ; Retain non-status information > across program restarts > normal_check_interval 5 > retry_check_interval 2 > notification_period 24x7 > notification_options u,c,r > register 0 ; DONT REGISTER THIS > DEFINITION > } > > define service{ > use generic-service > host_name myrouter > service_description CPU > is_volatile 0 > check_period 24x7 > max_check_attempts 3 > retry_check_interval 1 > contact_groups router-admins > notification_interval 120 > notification_period 24x7 > check_command > check_cisco_cpu!publicro!60!69!70!80 > } > > > > #--- checkcommands.cfg > # 'check_snmp' generic command definition > define command{ > command_name check_snmp > command_line $USER1$/check_snmp -t 10 -H $HOSTADDRESS$ -C $ARG1$ > $ARG2$ $ARG3$ $ARG4$ $ARG5$ $ARG6$ $ARG7$ $ARG8$ $ARG9$ > } > # check_cisco_cpu: checks router CPU-usage > # Syntax > !Hostname!Community!WARN-1min-%!WARN-5min-%!CRIT-1min-%!CRIT-5min-% > define command{ > command_name check_cisco_cpu > command_line $USER1$/check_snmp -t 10 -H $HOSTADDRESS$ > -o.1.3.6.1.4.1.9.2.1.57.0,.1.3.6.1.4.1.9.2.1.58.0 -C $ARG1$ -w > :$ARG2$,:$ARG3$ -c : $ARG4$,:$ARG5$ -l 'CPU usage 1min/5min' -D ' / ' > } > > > > Btw, by looking at the code in check_snmp.c I'm wondering . Is there a > problem with : #define mark(a) ((a)!=0?"*":"") in check_snmp.c ??? Or > are my parms so bad ? :-o > > Thanks for your kind help. > Warm regards, > Pascal > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > -- ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en From Stanley.Hopcroft at IPAustralia.Gov.AU Tue Dec 3 10:30:25 2002 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Tue, 3 Dec 2002 20:30:25 +1100 Subject: Netsaint to Nagios In-Reply-To: <3DEC61E1.7E46FC76@gcc.dhl.com>; from tdeblend@gcc.dhl.com on Tue, Dec 03, 2002 at 08:48:49AM +0100 References: <3DEC61E1.7E46FC76@gcc.dhl.com> Message-ID: <20021203203023.B220@IPAustralia.Gov.AU> Dear Sir, I am writing to thank you for your letter and say, On Tue, Dec 03, 2002 at 08:48:49AM +0100, Tom DE BLENDE wrote: > Hi, > > Since Nagios is stable now (yeah, yeah, I know it is for a while now.) - not all that long 24/11/2002 > I would like to have a closer look at it. Is there any risk in > installing it on the same box Netsaint is running on? > Here are some thoughts and observations :- 0 I too hummed and hawed over this until realising that all the action is happening with Nagios. 'Upcoming' sounds wonderful ( http://www.nagios.org/upcoming.php ) For example, the quoted argument patch for embedded Perl has already been committed to Nagios. It won't be for Netsaint ( http://www.nagios.org/faqs/viewfaq.php?faq_id=90 ) 1 Fine to have Netsaint and Nagios on the same box subject to the box tolerating the load of two (2) Netsaint processes (in my _limited_ experience Nagios seems to have a load average of 5-10% less than Netsaint) 2 However, . you may have non standard plugins with embedded paths in them (Tsk tsk) - for storing state information etc . you may do checks with Netsaint by ssh so you'll have to add a nagios user to those boxes you want to check by ssh and make sure that the nagios user home directory has the same .ssh as the Netsaint user . you probably want to adopt the new template configuration method (although you probably can run Nagios - if you configure it appropriately - to use your Netsaint stuff). You may find http://www.nagios.org/faqs/viewfaq.php?faq_id=89 useful (I converted semi automatically by other means. It took me far too long so this may be better. However, it's worth being aware of what the templates offer at http://nagios.sourceforge.net/docs/1_0/xodtemplate.html . Some things, even at an early stage, are obviously better eg - rescheduling a check (instead of force an immediate check) is a means of having Nagios run a check when you want it to run. This is handy for RRD updates that expect data to arrive at the DS update interval (otherwise the numbers look funny because the DS is updated with interpolated values). - the availability CGI looks better (to me) - the extinfo CGI looks better (to me). Having the summary availability info was not actually useful (more of a liability if you are reporting across some interval, because you would have to reset the status.log to reset the stats) . If it's not obvious, you can change the Alias and ScriptAlias directives in Apache to reduce the impact on Netsaint bookmarks (most of my colleagues are still browsing http://some_host/netsaint/ after adding ScriptAlias /cgi-bin/netsaint/ "/usr/local/nagios/sbin/" Alias /netsaint/ "/usr/local/nagios/share/" ). To sum up, I made the change in about a day for a small site with ~200 hosts and ~325 checks. > Kind regards, > Tom > Enjoy. Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en From nyfiken at harved.com Tue Dec 3 10:31:57 2002 From: nyfiken at harved.com (Magnus Harved) Date: Tue, 3 Dec 2002 10:31:57 +0100 (CET) Subject: Netsaint to Nagios In-Reply-To: <3DEC61E1.7E46FC76@gcc.dhl.com> References: <3DEC61E1.7E46FC76@gcc.dhl.com> Message-ID: On Tue, 3 Dec 2002, Tom DE BLENDE wrote: > Hi, > > Since Nagios is stable now (yeah, yeah, I know it is for a while now), > I would like to have a closer look at it. Is there any risk in > installing it on the same box Netsaint is running on? > > Kind regards, > Tom > Nope, just long hours migrating the config-files :) -- magnus harved # I need your clothes, your boots and your motorcycle. # - Arnold ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en From nathang at epinet.co.uk Tue Dec 3 10:34:23 2002 From: nathang at epinet.co.uk (nathang) Date: Tue, 3 Dec 2002 09:34:23 -0000 Subject: hostinfo.pl Message-ID: I been configuing Extended Host Information Definition, and in the nagios documentation this script is mentioned hostinfo.pl. Does any know if this script exists ? or where I can get it Regards Nathan Greasley ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en From jasmine.chua at securecirt.com Tue Dec 3 11:29:18 2002 From: jasmine.chua at securecirt.com (Jasmine Chua) Date: Tue, 3 Dec 2002 18:29:18 +0800 Subject: Latency problem leading to many Nagios daemons running Message-ID: <200212031829.27104.jasmine.chua@securecirt.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Could someone tell me why after playing with the Nagios configuration for bring down the latency... then whenever I run Nagios, it will automatically produce many Nagios running in my Background? 12490 ? S 0:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg 12493 ? S 0:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg 12496 ? S 0:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg 12499 ? S 0:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg 12502 ? S 0:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg 12505 ? S 0:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg 12508 ? S 0:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg Anyone has any advice max_concurrent_checks /reaper freq for monitoring a low 138 services at service check of 30secs so that i can bring down the latency of currently 265secs?! - -- Jasmine Chua Security Engineer, SecureCiRT (A SBU of Z-Vance Pte Ltd) http://www.securecirt.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE97IeFNgvTa7Hj2AURAv/nAJ9ipOCRZ8WJSWLhmx4aiErEgHDfFACbBt/r Z/ixnzleowE/ZBZt1gaHm+I= =pX6F -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en From p.miquet at hafiba.fr Tue Dec 3 12:35:51 2002 From: p.miquet at hafiba.fr (Pascal Miquet) Date: 03 Dec 2002 12:35:51 +0100 Subject: Permission Error In-Reply-To: <11C80DA1026CF545921B280740C440ED8BA5FC@exchange1.corp.winterlink.net> References: <11C80DA1026CF545921B280740C440ED8BA5FC@exchange1.corp.winterlink.net> Message-ID: <1038915355.4600.80.camel@moishe> Do you have added the chrisf user into the contacts.cgi file, and also set the contactgroup.cgi. HTH Regards Le mar 03/12/2002 ? 08:57, Chris Fairbanks a ?crit : > I keep getting the following whenever I try looking at pretty much > anything. > > ------------- > It appears as though you do not have permission to view information for > any of the services you requested... > > > If you believe this is an error, check the HTTP server authentication > requirements for accessing this CGI > and check the authorization options in your CGI configuration file. > ------------- > > I have read through the FAQ and everything seems to be fine. I have a > .htaccess file in both the html dir and the cgi dir of the following > > --------------- > AuthName "Nagios Access" > AuthType Basic > AuthUserFile /usr/local/nagios/etc/htpasswd.users > require valid-user > --------------- > > I also added my user account in the cgi.cfg to view everything and I > still get the same error. > > -------------- > authorized_for_all_services=chrisf > authorized_for_all_hosts=chrisf > -------------- > > Any ideas? I am pretty default RedHat 8.0 install. > > Thanks, > Chris > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Get the new Palm Tungsten T > handheld. Power & Color in a compact size! > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en From katja.lehmann at web.de Tue Dec 3 13:07:53 2002 From: katja.lehmann at web.de (Katja Lehmann) Date: Tue, 3 Dec 2002 13:07:53 +0100 Subject: AIM and Nagios Message-ID: <200212031207.gB3C7rX31862@mailgate5.cinetic.de> Hi! I want that the Nagios sends notifications via AIM. Well, I loaded and installed the Net::AIM but in the Nagios FAQ's the Link to the changed configurationfile is broken so I don't know how to say my Nagios sending the Messages via AIM... Somone can help? Greets, Katja Lehmann ______________________________________________________________________________ E-Mails sehen immer gleich aus? Aber nicht bei WEB.DE FreeMail! http://freemail.web.de/features?mc=021138 ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en From katja.lehmann at web.de Tue Dec 3 13:12:39 2002 From: katja.lehmann at web.de (Katja Lehmann) Date: Tue, 3 Dec 2002 13:12:39 +0100 Subject: AIM and Nagios Message-ID: <200212031212.gB3CCdX12799@mailgate5.cinetic.de> Hi! I want that the Nagios sends notifications via AIM. Well, I loaded and installed the Net::AIM but in the Nagios FAQ's the Link to the changed configurationfile is broken so I don't know how to say my Nagios sending the Messages via AIM... Somone can help? Greets, Katja Lehmann ______________________________________________________________________________ Kursiv, fett, bunt,... WEB.DE FreeMail kann alles - mit der HTML-Mail http://freemail.web.de/features/?mc=021143 ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en From Luis.Duarte at itlog.edinfor.pt Mon Dec 2 17:26:46 2002 From: Luis.Duarte at itlog.edinfor.pt (Luis Duarte) Date: Mon, 2 Dec 2002 16:26:46 +0000 Subject: Timestamps in external commands Message-ID: Hi to all... I'm trying to send some info to nagios thru the external command file. The problem is: I send a timestamp with a past date but the nagios server resets it to the actual date: '[] PROCESS_SERVICE_CHECK_RESULT;...' I really need to change the actual time to a past time... Am I doing something wrong? Can anyone help me? TIA, Luis Duarte. ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en From mpowell at ena.com Tue Dec 3 14:21:25 2002 From: mpowell at ena.com (Marc Powell) Date: Tue, 3 Dec 2002 07:21:25 -0600 Subject: Netsaint to Nagios Message-ID: <5DB017510818EC468B05BD7BD9EACF8301E2671A@mismail.ena.com> Not all that long if you use the convertcfg command supplied with the source... I had my configs for 1700 hosts and 2000 services ported and using templates within about an hour. M -- Marc Sent from a very tiny wireless device with a very tiny unlit keyboard. -----Original Message----- From: Magnus Harved To: Tom DE BLENDE CC: nagios-users Sent: Tue Dec 03 03:31:57 2002 Subject: Re: [Nagios-users] Netsaint to Nagios On Tue, 3 Dec 2002, Tom DE BLENDE wrote: > Hi, > > Since Nagios is stable now (yeah, yeah, I know it is for a while now), > I would like to have a closer look at it. Is there any risk in > installing it on the same box Netsaint is running on? > > Kind regards, > Tom > Nope, just long hours migrating the config-files :) -- magnus harved # I need your clothes, your boots and your motorcycle. # - Arnold ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From mpowell at ena.com Tue Dec 3 14:28:49 2002 From: mpowell at ena.com (Marc Powell) Date: Tue, 3 Dec 2002 07:28:49 -0600 Subject: Latency problem leading to many Nagios daemons running Message-ID: <5DB017510818EC468B05BD7BD9EACF8301E2671B@mismail.ena.com> /usr/local/nagios/bin/nagios -s /usr/local/nagios/etc/nagios.cfg. IMHO, 30 seconds is an aggressive check interval no matter how many services you are checking. What is your average plugin execution time? You might be seeing that exceed the 30 second time you've specified. If memory serves, nagios *shouldn't* shedule another check for that service until the prevos check completed. You might also want t look at the *reaper settings. -- Marc Sent from a very tiny wireless device with a very tiny unlit keyboard. -----Original Message----- From: Jasmine Chua To: nagios-users at lists.sourceforge.net Sent: Tue Dec 03 04:29:18 2002 Subject: [Nagios-users] Latency problem leading to many Nagios daemons running -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Could someone tell me why after playing with the Nagios configuration for bring down the latency... then whenever I run Nagios, it will automatically produce many Nagios running in my Background? 12490 ? S 0:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg 12493 ? S 0:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg 12496 ? S 0:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg 12499 ? S 0:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg 12502 ? S 0:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg 12505 ? S 0:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg 12508 ? S 0:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg Anyone has any advice max_concurrent_checks /reaper freq for monitoring a low 138 services at service check of 30secs so that i can bring down the latency of currently 265secs?! - -- Jasmine Chua Security Engineer, SecureCiRT (A SBU of Z-Vance Pte Ltd) http://www.securecirt.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE97IeFNgvTa7Hj2AURAv/nAJ9ipOCRZ8WJSWLhmx4aiErEgHDfFACbBt/r Z/ixnzleowE/ZBZt1gaHm+I= =pX6F -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From mat at avedya.com Tue Dec 3 15:48:43 2002 From: mat at avedya.com (Matthieu Parisot) Date: Tue, 3 Dec 2002 15:48:43 +0100 Subject: Notifications In-Reply-To: <5DB017510818EC468B05BD7BD9EACF8301E2671B@mismail.ena.com> References: <5DB017510818EC468B05BD7BD9EACF8301E2671B@mismail.ena.com> Message-ID: <000301c29adb$139dcfe0$6d03a8c0@SPACEWT8ZDMO9> Hi list, I'm using nagios-1.0b6, and I wonder if there is a way to associate service or host status to differents contact targets; For exemple, I would like to be notified by mail if the service is WARNING, UNKNOWN or CRITICAL, and by SMS only if it's critical... If I write a patch to nagios to do that, will it have a chance to be integrated? It's allready possible to do it using event handlers, but we loose contacts, contacts groups and pre-defined command to alert via mail or SMS, and we are forced to duplicate stuff. Did I miss something ? Thanks for your futur answers.... Matthieu -------------- next part -------------- An HTML attachment was scrubbed... URL: From pamirian at calculus.ca Tue Dec 3 15:39:56 2002 From: pamirian at calculus.ca (Patrick Amirian) Date: Tue, 3 Dec 2002 09:39:56 -0500 Subject: host check Message-ID: <005401c29ad9$d9fa1060$c8040201@PAIE250> Hi guys, How can I force a HOST check, not the services but a host check. Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From GPotter at MarathonOil.com Tue Dec 3 15:16:14 2002 From: GPotter at MarathonOil.com (Potter, G M (Greg)) Date: Tue, 3 Dec 2002 08:16:14 -0600 Subject: FW: help: statusmap.cgi trend.cgi don't display images Message-ID: I have the same problem under Solaris 7 with statusmap. I just ran a truss process and find the statusmap.cgi gives the following error as it is running. I don't know if anyone on the list is familiar with this problem, but perhaps it is a known bug. Any Ideas? Greg Potter partial output from: truss -aef -w1 -o /tmp/httpd.txt /usr/local/apache/bin/httpd 22890: fstat64(3, 0xFFBEEFA8) = 0 22890: ioctl(3, TCGETA, 0xFFBEEF34) Err#25 ENOTTY 22890: read(3, "89 P N G\r\n1A\n\0\0\0\r".., 8192) = 1344 22890: brk(0x00092CA8) = 0 22890: brk(0x00096CA8) = 0 22890: brk(0x00096CA8) = 0 22890: brk(0x0009ECA8) = 0 22890: brk(0x0009ECA8) = 0 22890: brk(0x000A0CA8) = 0 22890: llseek(3, 0, SEEK_CUR) = 1344 22890: close(3) = 0 22890: Incurred fault #6, FLTBOUNDS %pc = 0xFF3583E0 22890: siginfo: SIGSEGV SEGV_MAPERR addr=0x03BEEF94 22890: Received signal #11, SIGSEGV [default] 22890: siginfo: SIGSEGV SEGV_MAPERR addr=0x03BEEF94 22890: *** process killed *** > -----Original Message----- > From: Maxik [mailto:maxik at skatvis.lv] > Sent: Monday, December 02, 2002 5:24 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] help: statusmap.cgi trend.cgi don't display > images > > > Hello nagios-users, > > Libs instaled, compilation ok including GD lib (no > errors,warnings).But I still cann't see image. I see only white > square with red cross.What the problem ? > > -- > Best regards, > Maxik mailto:maxik at skatvis.lv > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Get the new Palm Tungsten T > handheld. Power & Color in a compact size! > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en From twelsh at square-box.com Tue Dec 3 17:47:04 2002 From: twelsh at square-box.com (Tom Welsh) Date: Tue, 03 Dec 2002 16:47:04 +0000 Subject: Apache authentication and Nagios Message-ID: <20021203164704.26892.qmail@pod-163.dolphin-server.co.uk> Has anybody using any other authentication with Nagios apart from basic. Im about to try it with digest and auth_db and was wondering if someone has done this already and found it dosent work. Cheers Tom Welsh squareBOX technologies twelsh at square-box.com ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en From wilson at unity.ncsu.edu Tue Dec 3 18:29:01 2002 From: wilson at unity.ncsu.edu (Brian Wilson) Date: Tue, 3 Dec 2002 12:29:01 -0500 (EST) Subject: Apache authentication and Nagios In-Reply-To: <20021203164704.26892.qmail@pod-163.dolphin-server.co.uk> References: <20021203164704.26892.qmail@pod-163.dolphin-server.co.uk> Message-ID: On Tue, 3 Dec 2002, Tom Welsh wrote: > Has anybody using any other authentication with Nagios apart from basic. Im > about to try it with digest and auth_db and was wondering if someone has > done this already and found it dosent work. > It should work with any auth module [radius,db,kerberos,etc]. I'm using it with an internal module we developed and it works fine. Brian -- Brian Wilson Network Analyst Communication Technologies, ATD W: 919.513.3472 North Carolina State University www.ncstate.net ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en From jcarro10 at sprintspectrum.com Tue Dec 3 17:23:51 2002 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Tue, 3 Dec 2002 10:23:51 -0600 Subject: Restrict users to view certain hostgroups in c gi's Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2E521B@PKDWB03C.ad.sprint.com> Odd. I'm essentially doing this (basically the approach referenced in the docs) using .htpasswd and .htaccess and the requisite definition in httpd.conf. I'm using discrete contacts, contactgroups and hostgroups, and yet when I login, I can see everything. It's only when I try to do something (eg, acknowledge, comment) to a host outside of my group that I'm told I don't have permission. jc > -----Original Message----- > From: JPP [mailto:jpp at frws.com] > Sent: Monday, December 02, 2002 6:37 PM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Restrict users to view certain > hostgroups in > cgi's > > > Hi all! > > Yes you can do this! And use only 1 Nagios! > > Create 2 separate hostgroups and assign them as > contacts/Admins/whatever > for those 2 separate hostgroups. > And you have to give them 2 separate/distinct login names in > the Apache > htpasswd files or however you lock down the server directories/files. > > In a nutshell: > > 1. Create users in the Apache control/passwd file called Admin1 and > Admin2 (however you do this in your case) > 2. Create these users in contacts.cfg for each hostgroup you wish to > separate. Call them Admin1 and Admin2 also > 2. Create a group for each of them in contactgroups.cfg and > place them > and you as members in that group. Call them Admin1-Group and > Admin2-Group But do not place either of them in the others group. > 3. In the services.cfg file - separate the 2 groups using the > contact_groups option. > For Admin1-Server make the contact Admin1-Group > For Admin2-Server make the contact Admin2-Group > > I restarted Nagios - but may not have to... > > Login as Admin1 and see what you see. Shut down your browser > and login > as Admin2 and see what you can see. Should be limited to the > servers/services in their group! > > This works to make them only see the hosts assigned to their group IF: > 1. The user name in Nagios matches the username used by Apache to > authenticate them. > 2. The groups are separated totally from each other. They > cannot be on > any other group or list but the one you want them to view. > > We do not use literal .htpasswd files, but I am sure the > concept is the > same. We use the equivalent files right in the httpd.conf to > protect all > the Nagios directories. And only one file, actually - with > many names in it. > > Hope this does it for you! > > JPP > > > Carroll, Jim P [Contractor] wrote: > > > I think you're taking the right approach for what you're > trying to do. I'm > > not aware of any features in Nagios to enable security > through obscurity. > > > > jc > > > > > >>-----Original Message----- > >>From: Dushyanth Harinath [mailto:dushy at symonds.net] > >>Sent: Saturday, November 30, 2002 6:30 AM > >>To: nagios > >>Subject: [Nagios-users] Restrict users to view certain hostgroups in > >>cgi's > >> > >> > >>Hi guys, > >> > >>I want to restrict some users (http authenticated) to see only a > >>certain hostgroup. To make this work i have 2 separate copies > >>of nagios > >>on different locations with different cgi-url and html-url. And iam > >>running 2 instances of nagios with different set of > >>configuration files. > >>The reason why iam doing this is I have 2 set of users who > >>should'nt see each > >>others hosts information. > >> > >>Is it possible to achieve this with a single instance of nagios and > >>different set of configuration files. Or is there any other way ? > >> > >>TIA > >>Regards > >>Dushyanth > >>-- > >>The Definition of an Upgrade: Take old bugs out, put new ones in. > >> > >>http://symonds.net/~dushy > >> > >> > >>------------------------------------------------------- > >>This SF.net email is sponsored by: Get the new Palm Tungsten T > >>handheld. Power & Color in a compact size! > >>http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en > >>_______________________________________________ > >>Nagios-users mailing list > >>Nagios-users at lists.sourceforge.net > >>https://lists.sourceforge.net/lists/listinfo/nagios-users > >> > >> > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Get the new Palm Tungsten T > > handheld. Power & Color in a compact size! > > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Get the new Palm Tungsten T > handheld. Power & Color in a compact size! > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en From jcarro10 at sprintspectrum.com Tue Dec 3 18:54:45 2002 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Tue, 3 Dec 2002 11:54:45 -0600 Subject: Notifications Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F246A@PKDWB03C.ad.sprint.com> I'm doing something similar here: warning/critical/recover to all the admin e-mail accounts, but only critical/recover to the virtual pager. Basically you have to create separate contacts/contactgroups. E.g., define contact{ contact_name jcarro10 alias Jim Carroll host_notification_period 24x7 service_notification_period 24x7 host_notification_options d,r service_notification_options c,w,r host_notification_commands host-notify-by-email service_notification_commands notify-by-email email jcarro10 at sprintspectrum.com } define contact{ contact_name pager-devunix alias DEVUNIX on-call pager host_notification_period 24x7 service_notification_period 24x7 host_notification_options d,r service_notification_options c,r host_notification_commands host-notify-by-epager service_notification_commands notify-by-epager pager pager-devunix } and then the "pager-devunix" on the "pager" definition line is defined in /etc/aliases, thusly: pager-devunix: :include:/home/pager/oncall/DEVUNIX which in turn resolves to the actual e-mail address for the pager. (I have a script which modifies the DEVUNIX file through a simple menu.) The virtual pager info was more than you bargained for, but hopefully you can see how I split out the e-mails from the pages. jc -----Original Message----- From: Matthieu Parisot [mailto:mat at avedya.com] Sent: Tuesday, December 03, 2002 8:49 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Notifications Hi list, I'm using nagios-1.0b6, and I wonder if there is a way to associate service or host status to differents contact targets; For exemple, I would like to be notified by mail if the service is WARNING, UNKNOWN or CRITICAL, and by SMS only if it's critical... If I write a patch to nagios to do that, will it have a chance to be integrated? It's allready possible to do it using event handlers, but we loose contacts, contacts groups and pre-defined command to alert via mail or SMS, and we are forced to duplicate stuff. Did I miss something ? Thanks for your futur answers.... Matthieu -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcarro10 at sprintspectrum.com Tue Dec 3 18:59:08 2002 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Tue, 3 Dec 2002 11:59:08 -0600 Subject: Yet another NRPE issue... Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2E521E@PKDWB03C.ad.sprint.com> In your /etc/xinetd.d/nrpe file, what do you have for IP addresses in the only_from definition? Does it match the IP address of the host you're trying to connect from? Your Nagios host wouldn't happen to be using DHCP, would it? Food for thought. jc > -----Original Message----- > From: andrew.slater at netstrategy.net > [mailto:andrew.slater at netstrategy.net] > Sent: Tuesday, December 03, 2002 12:07 AM > To: Nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Yet another NRPE issue... > > > Hi all, > > The story goes like this; > > I had my Nagios setup and working beautifully with NRPE > working fine on 20 > odd hosts. I went away for a couple of weeks and as the > system is somewhat > developmental at the moment, was happy enough to have it > shutdown for the > time I was away. The problem is that now I am back, the > system is plugged > back in I cant get any response from any server with NRPE on it. > > The details; > > - check_nrpe run on the target machine works fine > - Nagios called check_nrpe command fails with "CHECK_NRPE: Received 0 > bytes. Are we allowed to connect to the host?" > - telnet to port 5666 on target machine from Nagios machine fails > > > - telnet to localhost:5666 on target machine fails; > [root at cache01 xinetd.d]# telnet > telnet> open xxx.xxx.xxx.xxx 5666 > Trying xxx.xxx.xxx.xxx... > Connected to xxx.xxx.xxx.xxx. > Escape character is '^]'. > Connection closed by foreign host. (Which happens instantaneously) > > > - xinetd _is_ listening on port 5666 on the target machines; > [root at cache01 xinetd.d]# netstat -pan | grep > tcp 0 0 0.0.0.0:5666 0.0.0.0:* > LISTEN > 5320/xinetd > > > - strace printout of a commandline "./check_nrpe > xxx.xxx.xxx.xxx -p 5666 -c > check_users" to a machine on the same subnet > ... > ... > send(3, > "\0\0\0\1\0\0\0\1\0\0\0\0\0\0\0\vcheck_users\0\0\0\0\0"..., 1040, > 0) = 1040 > time([1038894731]) = 1038894731 > recv(3, 0xbffff2e0, 1040, 0) = -1 ECONNRESET > (Connection reset > by peer) > fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 1), ...}) = 0 > mmap2(NULL, 4096, PROT_READ|PROT_WRITE, > MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) > = 0x40014000 > write(1, "CHECK_NRPE: Error receiving data"..., 44CHECK_NRPE: Error > receiving data from host. > ) = 44 > close(3) = 0 > alarm(0) = 10 > munmap(0x40014000, 4096) = 0 > _exit(3) = ? > > > > - strace printout of a commandline "./check_nrpe > xxx.xxx.xxx.xxx -p 5666 -c > check_users" to a machine on a different subnet > ... > ... > send(3, > "\0\0\0\1\0\0\0\1\0\0\0\0\0\0\0\vcheck_users\0\0\0\0\0"..., 1040, > 0) = 1040 > time([1038894876]) = 1038894876 > recv(3, "", 1040, 0) = 0 > fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 1), ...}) = 0 > mmap2(NULL, 4096, PROT_READ|PROT_WRITE, > MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) > = 0x40014000 > write(1, "CHECK_NRPE: Received 0 bytes. A"..., 70CHECK_NRPE: > Received 0 > bytes. > Are we allowed to connect to the host? > ) = 70 > close(3) = 0 > alarm(0) = 10 > munmap(0x40014000, 4096) = 0 > _exit(3) = ? > > > I have to admit that i'm still pretty much in holiday mood so > there could > be something ridiculously simple I am missing (here's hoping) but I am > getting to the end of my useful troubleshooting ideas, so any > light from > any listmembers would be greatly appreciated. > > Thanks to all, > > Andrew Slater > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Get the new Palm Tungsten T > handheld. Power & Color in a compact size! > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en From jcarro10 at sprintspectrum.com Tue Dec 3 17:53:52 2002 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Tue, 3 Dec 2002 10:53:52 -0600 Subject: Restrict users to view certain hostgroups in c gi's Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F2469@PKDWB03C.ad.sprint.com> OH. I thought you wanted it for reasons of security. I didn't realize you wanted to partition purely by function. That being the case, I would put a separate instance of Nagios on a separate host, and have each of your clients connect to their own. That way, you effectively 'firewall' misconfigurations to a single client, and not both. If you like, you could configure a separate instance of Nagios on each of these 2 hosts to be the failover instance for the other host, ie, 2 instances each on host A and host B, and instance A2 would be the failover for B1, and B2 would be the failover for A1. This all assumes that you're running on Linux and commodity hardware. If you're running on, say, Solaris and a substantially beefy/expensive piece of hardware, then I'd stick with separate instances. (You may still want to define hosts/services in both instances which are common to both clients, eg, routers.) jc > -----Original Message----- > From: Dushyanth Harinath [mailto:dushy at symonds.net] > Sent: Monday, December 02, 2002 10:33 PM > To: nagios > Subject: Re: [Nagios-users] Restrict users to view certain > hostgroups in > c gi's > > > Hi , > > * wrote from a remote bunker : > > I think you're taking the right approach for what you're > trying to do. I'm > > not aware of any features in Nagios to enable security > through obscurity. > > Security through obscurity ?. I dont get it. Does it make > sense if each > of my client/users can see each others servers & service status which > they dont need or dont have to?. > > cheers > dushyanth > -- > "God, root, what is difference?" I've always found it easier to > hack root. > > http://symonds.net/~dushy > > > ------------------------------------------------------- > This SF.net email is sponsored by: Get the new Palm Tungsten T > handheld. Power & Color in a compact size! > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en From gjfrater at bechtel.com Tue Dec 3 21:23:47 2002 From: gjfrater at bechtel.com (Frater, Greg J) Date: Tue, 3 Dec 2002 12:23:47 -0800 Subject: Restrict users to view certain hostgroups in c gi's Message-ID: Look in your cgi.cfg file at the settings for the following: authorized_for_all_hosts authorized_for_all_host_commands authorized_for_all_services authorized_for_all_service_commands Make sure you haven't specified users here allowing them to view all hosts/services etc. By default they can only see host and services that they own. -----Original Message----- From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] Sent: Tuesday, December 03, 2002 8:24 AM To: 'JPP'; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Restrict users to view certain hostgroups in c gi's Odd. I'm essentially doing this (basically the approach referenced in the docs) using .htpasswd and .htaccess and the requisite definition in httpd.conf. I'm using discrete contacts, contactgroups and hostgroups, and yet when I login, I can see everything. It's only when I try to do something (eg, acknowledge, comment) to a host outside of my group that I'm told I don't have permission. jc > -----Original Message----- > From: JPP [mailto:jpp at frws.com] > Sent: Monday, December 02, 2002 6:37 PM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Restrict users to view certain > hostgroups in > cgi's > > > Hi all! > > Yes you can do this! And use only 1 Nagios! > > Create 2 separate hostgroups and assign them as > contacts/Admins/whatever > for those 2 separate hostgroups. > And you have to give them 2 separate/distinct login names in > the Apache > htpasswd files or however you lock down the server directories/files. > > In a nutshell: > > 1. Create users in the Apache control/passwd file called Admin1 and > Admin2 (however you do this in your case) > 2. Create these users in contacts.cfg for each hostgroup you wish to > separate. Call them Admin1 and Admin2 also > 2. Create a group for each of them in contactgroups.cfg and > place them > and you as members in that group. Call them Admin1-Group and > Admin2-Group But do not place either of them in the others group. > 3. In the services.cfg file - separate the 2 groups using the > contact_groups option. > For Admin1-Server make the contact Admin1-Group > For Admin2-Server make the contact Admin2-Group > > I restarted Nagios - but may not have to... > > Login as Admin1 and see what you see. Shut down your browser > and login > as Admin2 and see what you can see. Should be limited to the > servers/services in their group! > > This works to make them only see the hosts assigned to their group IF: > 1. The user name in Nagios matches the username used by Apache to > authenticate them. > 2. The groups are separated totally from each other. They > cannot be on > any other group or list but the one you want them to view. > > We do not use literal .htpasswd files, but I am sure the > concept is the > same. We use the equivalent files right in the httpd.conf to > protect all > the Nagios directories. And only one file, actually - with > many names in it. > > Hope this does it for you! > > JPP > > > Carroll, Jim P [Contractor] wrote: > > > I think you're taking the right approach for what you're > trying to do. I'm > > not aware of any features in Nagios to enable security > through obscurity. > > > > jc > > > > > >>-----Original Message----- > >>From: Dushyanth Harinath [mailto:dushy at symonds.net] > >>Sent: Saturday, November 30, 2002 6:30 AM > >>To: nagios > >>Subject: [Nagios-users] Restrict users to view certain hostgroups in > >>cgi's > >> > >> > >>Hi guys, > >> > >>I want to restrict some users (http authenticated) to see only a > >>certain hostgroup. To make this work i have 2 separate copies > >>of nagios > >>on different locations with different cgi-url and html-url. And iam > >>running 2 instances of nagios with different set of > >>configuration files. > >>The reason why iam doing this is I have 2 set of users who > >>should'nt see each > >>others hosts information. > >> > >>Is it possible to achieve this with a single instance of nagios and > >>different set of configuration files. Or is there any other way ? > >> > >>TIA > >>Regards > >>Dushyanth > >>-- > >>The Definition of an Upgrade: Take old bugs out, put new ones in. > >> > >>http://symonds.net/~dushy > >> > >> > >>------------------------------------------------------- > >>This SF.net email is sponsored by: Get the new Palm Tungsten T > >>handheld. Power & Color in a compact size! > >>http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en > >>_______________________________________________ > >>Nagios-users mailing list > >>Nagios-users at lists.sourceforge.net > >>https://lists.sourceforge.net/lists/listinfo/nagios-users > >> > >> > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Get the new Palm Tungsten T > > handheld. Power & Color in a compact size! > > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Get the new Palm Tungsten T > handheld. Power & Color in a compact size! > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en From jcarro10 at sprintspectrum.com Tue Dec 3 19:21:27 2002 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Tue, 3 Dec 2002 12:21:27 -0600 Subject: Distributed SNMP monitoring. Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F246B@PKDWB03C.ad.sprint.com> A few comments here. First, OpenNMS was recently discussed on this list. The general hubbub is that it is a resource hog. (I've never touched it, so take this comment for what it's worth.) Seems you'll need to spend some serious bucks on your OpenNMS server if you want to even put it up for consideration. Second, Nagios rocks. It really does. That's the 'warm fuzzy' comment which I'm sure many others on this list will embrace. Basically, any test that you can run from a command line can be incorporated into Nagios. Already there are many plugins which have been crafted to do some very popular tasks. On tiering: I'm not exactly clear on your intent, but you can run two Nagios servers, and have the results of one cascade over to the other with the assistance of NSCA. Thus, the external server will display only what it's collected, and the internal server will display what it's collected, as well as what the external server as sent over to it. On down/up vs. SNMP: Nagios provides support for SNMP via plugins (most notably check_snmp). If you want to handle traps, there are a couple of approaches (TMTOWTDI in Perl-speak); one way would be to be running snmptrapd on your Nagios server, and have a cronjob kick off every minute to scrub the logfile, reformat the trap and stuff it into nagios.cmd (FIFO). Another way would be to have the event get redirected via NSCA to the Nagios host. Yes, Nagios has down/up checks, such as, "is something listening on port 80 on host fizzgig or not". But some of the plugins relate to local host metrics, such as free disk space, number of processes (with specialized options, such as checking for zombies), free swap, etc. In these cases, you would more likely want to configure for green/yellow/red alerts (OK/Warning/Critical in Nagios). If you want to write your own script, there are many examples (plugins) to follow. To get the green/yellow/red response in Nagios, you would have your script return code 0, 1 or 2 accordingly. One point which can be confusing to Nagios newbies, is that things like check_disk won't work on a remote host, unless you install/execute it on the remote host. But how to get the results to Nagios? Ah, that's where NRPE (or NSCA, or...) come in. As someone else has pointed out, if you wish to chart trends, you'll want to take a look at something like cacti (which I hope to try in the near future). Another contributor has created APAN (which also uses RRDTool). I hope this gives you the needed food for thought. jc > -----Original Message----- > From: Terry Baranski [mailto:terry at eurocompton.net] > Sent: Monday, December 02, 2002 9:00 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Distributed SNMP monitoring. > > > Hello. > > Hoping I can get some thoughts on this from those experienced with > Nagios. > > I'm looking to deploy a network monitoring solution primarily > to monitor > host resources such as disk space, processor usage, and so forth via > SNMP, and also to receive SNMP traps and notify accordingly. > The hosts > are Open/FreeBSD, Solaris, Linux, and Windows. I'm in need of a > solution that supports tiering -- I need an external server to monitor > exernal devices and an internal server to monitor internal > devices, with > the external server pumping its data to the internal server, > making the > internal server the central/master server. > > I first looked an OpenNMS, but it doesn't have tier support > yet. Then I > ran across Nagios, which does seem to have tier support, but > also seems > to be geared more towards up/down monitoring than SNMP monitoring. > > So, I'm wondering what those who have used Nagios think of its > appropriateness (or lack thereof) for what I'm trying to accomplish. > From the documentation I've read so far, it appears to me that tiered > host resource monitoring is possible with the NRPE daemon running on > each monitored host. Is this accurate? If so, does this > daemon work on > Open/FreeBSD? These OS's represent the majority of our hosts. > > Any help/advice on this will be greatly appreciated. > > Thanks, > Terry > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Get the new Palm Tungsten T > handheld. Power & Color in a compact size! > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en From rustyb at lumplings.com Tue Dec 3 21:34:59 2002 From: rustyb at lumplings.com (Rusty Bias) Date: Tue, 3 Dec 2002 12:34:59 -0800 (PST) Subject: Nagios RPMs Message-ID: <20021203123229.J17496-100000@archeron.hibias.com> I've noticed that versions of the plugins are regularly distributed as RPMs, but there is no regular distribution for nagios or nagat, or other portions. I want to modify the RPM for the plugins and make RPMs of the other pieces for my systems. Anyone who has spec files from any RPMs they've built, or even from the regular plugin distro, I'd appreciate getting a copy of them. Thanks, Rusty ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en From ChrisF at winterlink.net Tue Dec 3 23:15:02 2002 From: ChrisF at winterlink.net (Chris Fairbanks) Date: Tue, 3 Dec 2002 14:15:02 -0800 Subject: Permission Error Message-ID: <11C80DA1026CF545921B280740C440ED8BA600@exchange1.corp.winterlink.net> The user was added to the htpasswd.users file, contacts.cfg and added to the contactgroups.cfg. See below. Contacts.cfg: ------------------------- define contact{ contact_name chrisf alias Chris Fairbanks service_notification_period 24x7 host_notification_period 24x7 service_notification_options w,u,c,r host_notification_options d,u,r service_notification_commands notify-by-email host_notification_commands host-notify-by-email email chrisf at winterlink.net } Contactgroups.cfg: -------------------------- define contactgroup{ contactgroup_name support_group alias Winterlink Support members support,chrisf } Htpasswd.users -------------------------- chrisf:removed Any other ideas or places to look? Like I said, I read through all the FAQs and Docs and everything seems to be fine. Thanks, Chris -----Original Message----- From: Pascal Miquet [mailto:p.miquet at hafiba.fr] Sent: Tuesday, December 03, 2002 3:36 AM To: Chris Fairbanks Cc: Nagios users Subject: Re: [Nagios-users] Permission Error Do you have added the chrisf user into the contacts.cgi file, and also set the contactgroup.cgi. HTH Regards ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en From dsandell at voyager.net Tue Dec 3 23:23:07 2002 From: dsandell at voyager.net (Denise Sandell) Date: Tue, 3 Dec 2002 16:23:07 -0600 Subject: Contactgroup config w/o email notifications? Message-ID: <20021203162307.B702@shell.core.com> Greetings, I have a rather complex set of requirements/specs for configuring contactgroups for given hostgroups in Nagios. What i'd like to see is this: A contactgroup configuration that does not require/allow email notifications to be sent to members of that group, but still allows members to log into the web interface and view the particular hostgroups those members need access to. That doesn't mean I don't want notifications sent out for a given hostgroup, just for a specific contactgroup. I'd prefer not to setup each user individually to have access to the web interface through cgi.cf, as that can (and probably will) become a nightmare as far as management goes. Anyone have any ideas or tried this before? -- - Denise Sandell network operations manager - - dsandell at voyager.net voyager.net, a CoreComm company - - PGP -- http://www.execpc.com/~dsandell/stuff/PGPpub - ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en From mat at avedya.com Wed Dec 4 01:07:37 2002 From: mat at avedya.com (Matthieu Parisot) Date: Wed, 4 Dec 2002 01:07:37 +0100 Subject: Notifications In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB2F246A@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB2F246A@PKDWB03C.ad.sprint.com> Message-ID: MessageOK, got it! I didn't got that I could play with both service_notification_options and notification_options; The solution is so to put : notification_options w,u,c,r in service definition and service_notification_options c,r in contact definition; Thanks! -----Message d'origine----- De : nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]De la part de Carroll, Jim P [Contractor] Envoy? : mardi 3 d?cembre 2002 18:55 ? : 'Matthieu Parisot'; nagios-users at lists.sourceforge.net Objet : RE: [Nagios-users] Notifications I'm doing something similar here: warning/critical/recover to all the admin e-mail accounts, but only critical/recover to the virtual pager. Basically you have to create separate contacts/contactgroups. E.g., define contact{ contact_name jcarro10 alias Jim Carroll host_notification_period 24x7 service_notification_period 24x7 host_notification_options d,r service_notification_options c,w,r host_notification_commands host-notify-by-email service_notification_commands notify-by-email email jcarro10 at sprintspectrum.com } define contact{ contact_name pager-devunix alias DEVUNIX on-call pager host_notification_period 24x7 service_notification_period 24x7 host_notification_options d,r service_notification_options c,r host_notification_commands host-notify-by-epager service_notification_commands notify-by-epager pager pager-devunix } and then the "pager-devunix" on the "pager" definition line is defined in /etc/aliases, thusly: pager-devunix: :include:/home/pager/oncall/DEVUNIX which in turn resolves to the actual e-mail address for the pager. (I have a script which modifies the DEVUNIX file through a simple menu.) The virtual pager info was more than you bargained for, but hopefully you can see how I split out the e-mails from the pages. jc -----Original Message----- From: Matthieu Parisot [mailto:mat at avedya.com] Sent: Tuesday, December 03, 2002 8:49 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Notifications Hi list, I'm using nagios-1.0b6, and I wonder if there is a way to associate service or host status to differents contact targets; For exemple, I would like to be notified by mail if the service is WARNING, UNKNOWN or CRITICAL, and by SMS only if it's critical... If I write a patch to nagios to do that, will it have a chance to be integrated? It's allready possible to do it using event handlers, but we loose contacts, contacts groups and pre-defined command to alert via mail or SMS, and we are forced to duplicate stuff. Did I miss something ? Thanks for your futur answers.... Matthieu -------------- next part -------------- An HTML attachment was scrubbed... URL: From pete at dublerfamily.com Wed Dec 4 01:44:16 2002 From: pete at dublerfamily.com (Pete Dubler) Date: Tue, 03 Dec 2002 17:44:16 -0700 Subject: images displayed in pop-ups, but NOT status map. RH8.0 Message-ID: <3DED4FE0.60006@dublerfamily.com> Logos/images appear on pop-up windows but not on statusmap. More precisely: bringing up the statusmap, all of the "?" marks are gone, not just the one on the host named radio. Also, when I mouse over the host named radio, the window that pops up shows the "antenna" logo. And, there is a green circle with two cross lines (like a rifle sight) over the host "radio" (bigger than the box that's also there). (There is just a box, the host name, and "Up" at all of the other hosts. Why did I loose the question marks? Why is there no logo shown for the host radio on the statusmap display (level 5, circular marked-up). Why is this so hard...? (by the way, I have patched and reinstalled php to support gd, so pngtogd now works and I used a .gd file for my logo image, but that did not help) Here is exactly what I did: I added the following to /usr/local/nagios/etc/cgi.cfg xedtemplate_config_file=/usr/local/nagios/etc/hostextinfo.cfg I then set-up the following hostextinfo.cfg file ## Extended Information Configuration File # # added 12/2/02 by PD define hostextinfo{ host_name radio icon_image antenna.png icon_image_alt AntennaImage statusmap_image antenna.gd } I left all of the other hosts alone. (this is my wireless link, of course) For what it's worth, this file is owned by and grouped to nagios: -rw-r--r-- 1 nagios nagios 211 Dec 2 17:21 hostextinfo.cfg restarted nagios: service nagios restart and for good measure, cleared the caches on my Mozilla 1.0.1 which is running locally on my nagios machine. All of my logos files are in the /usr/local/nagios/share/images/logos directory. They all have clean ownership, grouping and permissions: eg -rw-r--r-- 1 nagios nagios 1240 Dec 2 14:36 antenna.png Hint: pngtogd generates the following error: No PNG library support available. Segmentation fault However all of the png libs and their devel libs are present on the system. ANY HELP IS WELCOME! ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en From jasmine.chua at securecirt.com Wed Dec 4 02:16:22 2002 From: jasmine.chua at securecirt.com (Jasmine Chua) Date: Wed, 4 Dec 2002 09:16:22 +0800 Subject: Latency problem leading to many Nagios daemons running (part2) In-Reply-To: <5DB017510818EC468B05BD7BD9EACF8301E2671B@mismail.ena.com> References: <5DB017510818EC468B05BD7BD9EACF8301E2671B@mismail.ena.com> Message-ID: <200212040916.30563.jasmine.chua@securecirt.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 What bout a 60 seconds service check.. is that too aggressive too? Where do I find out my average plugin execute time? Is it the average check interval of 94.783 sec in the service scheduling information below? SERVICE SCHEDULING INFORMATION ------------------------------- Total services: 138 Total hosts: 18 Command check interval: -1 sec Check reaper interval: 60 sec Inter-check delay method: SMART Average check interval: 94.783 sec Inter-check delay: 0.687 sec Interleave factor method: SMART Average services per host: 7.667 Service interleave factor: 8 Initial service check scheduling info: -------------------------------------- First scheduled check: 1038964098 -> Wed Dec 4 09:08:18 2002 Last scheduled check: 1038964196 -> Wed Dec 4 09:09:56 2002 Rough guidelines for max_concurrent_checks value: ------------------------------------------------- Absolute minimum value: 88 Recommend value: 264 - -- Jasmine Chua Security Engineer, SecureCiRT (A SBU of Z-Vance Pte Ltd) http://www.securecirt.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE97VdsNgvTa7Hj2AURAidZAJ46MsfKh6UD8CEpZft3I9kuJzhPWgCgtVwG eLX+Z3cjavtC/otg8yNddJU= =hPfV -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en From jcarro10 at sprintspectrum.com Wed Dec 4 00:49:48 2002 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Tue, 3 Dec 2002 17:49:48 -0600 Subject: Restrict users to view certain hostgroups in c gi's Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F246D@PKDWB03C.ad.sprint.com> Ah, interesting. I'm using '*', as per the comments in cgi.cfg. In my case, I actually *don't* want to partition viewing. But out of idle curiosity, can you specify a contactgroup name there? Or do you have to use individual names, as per htaccess.users? It would be great to be able to add a username to as few places as possible, to keep administrative overhead down to a dull roar. Heh... now you've got me wondering whether I should be carving up the viewing, too. Very interesting. jc > -----Original Message----- > From: Frater, Greg J [mailto:gjfrater at bechtel.com] > Sent: Tuesday, December 03, 2002 2:24 PM > To: Carroll, Jim P [Contractor]; 'JPP'; > nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Restrict users to view certain > hostgroups in > c gi's > > > Look in your cgi.cfg file at the settings for the following: > > authorized_for_all_hosts > authorized_for_all_host_commands > authorized_for_all_services > authorized_for_all_service_commands > > Make sure you haven't specified users here allowing them to view all > hosts/services etc. By default they can only see host and > services that > they own. > > > -----Original Message----- > From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] > Sent: Tuesday, December 03, 2002 8:24 AM > To: 'JPP'; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Restrict users to view certain > hostgroups in > c gi's > > > Odd. I'm essentially doing this (basically the approach > referenced in the > docs) using .htpasswd and .htaccess and the requisite definition in > httpd.conf. I'm using discrete contacts, contactgroups and > hostgroups, and > yet when I login, I can see everything. It's only when I try to do > something (eg, acknowledge, comment) to a host outside of my > group that I'm > told I don't have permission. > > jc > > > -----Original Message----- > > From: JPP [mailto:jpp at frws.com] > > Sent: Monday, December 02, 2002 6:37 PM > > To: nagios-users at lists.sourceforge.net > > Subject: Re: [Nagios-users] Restrict users to view certain > > hostgroups in > > cgi's > > > > > > Hi all! > > > > Yes you can do this! And use only 1 Nagios! > > > > Create 2 separate hostgroups and assign them as > > contacts/Admins/whatever > > for those 2 separate hostgroups. > > And you have to give them 2 separate/distinct login names in > > the Apache > > htpasswd files or however you lock down the server > directories/files. > > > > In a nutshell: > > > > 1. Create users in the Apache control/passwd file called Admin1 and > > Admin2 (however you do this in your case) > > 2. Create these users in contacts.cfg for each hostgroup > you wish to > > separate. Call them Admin1 and Admin2 also > > 2. Create a group for each of them in contactgroups.cfg and > > place them > > and you as members in that group. Call them Admin1-Group and > > Admin2-Group But do not place either of them in the others group. > > 3. In the services.cfg file - separate the 2 groups using the > > contact_groups option. > > For Admin1-Server make the contact Admin1-Group > > For Admin2-Server make the contact Admin2-Group > > > > I restarted Nagios - but may not have to... > > > > Login as Admin1 and see what you see. Shut down your browser > > and login > > as Admin2 and see what you can see. Should be limited to the > > servers/services in their group! > > > > This works to make them only see the hosts assigned to > their group IF: > > 1. The user name in Nagios matches the username used by Apache to > > authenticate them. > > 2. The groups are separated totally from each other. They > > cannot be on > > any other group or list but the one you want them to view. > > > > We do not use literal .htpasswd files, but I am sure the > > concept is the > > same. We use the equivalent files right in the httpd.conf to > > protect all > > the Nagios directories. And only one file, actually - with > > many names in it. > > > > Hope this does it for you! > > > > JPP > > > > > > Carroll, Jim P [Contractor] wrote: > > > > > I think you're taking the right approach for what you're > > trying to do. I'm > > > not aware of any features in Nagios to enable security > > through obscurity. > > > > > > jc > > > > > > > > >>-----Original Message----- > > >>From: Dushyanth Harinath [mailto:dushy at symonds.net] > > >>Sent: Saturday, November 30, 2002 6:30 AM > > >>To: nagios > > >>Subject: [Nagios-users] Restrict users to view certain > hostgroups in > > >>cgi's > > >> > > >> > > >>Hi guys, > > >> > > >>I want to restrict some users (http authenticated) to see only a > > >>certain hostgroup. To make this work i have 2 separate copies > > >>of nagios > > >>on different locations with different cgi-url and > html-url. And iam > > >>running 2 instances of nagios with different set of > > >>configuration files. > > >>The reason why iam doing this is I have 2 set of users who > > >>should'nt see each > > >>others hosts information. > > >> > > >>Is it possible to achieve this with a single instance of > nagios and > > >>different set of configuration files. Or is there any other way ? > > >> > > >>TIA > > >>Regards > > >>Dushyanth > > >>-- > > >>The Definition of an Upgrade: Take old bugs out, put new ones in. > > >> > > >>http://symonds.net/~dushy > > >> > > >> > > >>------------------------------------------------------- > > >>This SF.net email is sponsored by: Get the new Palm Tungsten T > > >>handheld. Power & Color in a compact size! > > >>http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en > > >>_______________________________________________ > > >>Nagios-users mailing list > > >>Nagios-users at lists.sourceforge.net > > >>https://lists.sourceforge.net/lists/listinfo/nagios-users > > >> > > >> > > > > > > > > > ------------------------------------------------------- > > > This SF.net email is sponsored by: Get the new Palm Tungsten T > > > handheld. Power & Color in a compact size! > > > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Get the new Palm Tungsten T > > handheld. Power & Color in a compact size! > > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Microsoft Visual Studio.NET > comprehensive development tool, built to increase your > productivity. Try a free online hosted session at: > http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en From maxik at skatvis.lv Wed Dec 4 02:53:17 2002 From: maxik at skatvis.lv (Maxik) Date: Wed, 4 Dec 2002 03:53:17 +0200 Subject: Error: Could not stat() command file '/usr/local/nagios/var/rw/nagios.cmd'! Message-ID: <157134685281.20021204035317@skatvis.lv> Hello nagios-users, In Comments menu after commit i recive : Error: Could not stat() command file '/usr/local/nagios/var/rw/nagios.cmd'! What's wrong ? And how works Network Outage ? I see only '0 Blocking Outages Displayed'. -- Best regards, Maxik mailto:maxik at skatvis.lv ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en From ChrisF at winterlink.net Wed Dec 4 05:51:56 2002 From: ChrisF at winterlink.net (Chris Fairbanks) Date: Tue, 3 Dec 2002 20:51:56 -0800 Subject: Permission Error Message-ID: <11C80DA1026CF545921B280740C440ED8BA601@exchange1.corp.winterlink.net> That's what a htpasswd file looks like. Username:cryptedpassword. I just removed the crypted password. -Chris -----Original Message----- From: Tom Welsh [mailto:twelsh at square-box.com] Sent: Tuesday, December 03, 2002 5:17 PM To: Chris Fairbanks Subject: RE: [Nagios-users] Permission Error Now this may seem a bit stupid but here goes... Contacts.cfg contact_name chrisf does not match Htpasswd.users chrisf:removed Cheers Tom Welsh -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Chris Fairbanks Sent: 03 December 2002 22:15 To: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Permission Error The user was added to the htpasswd.users file, contacts.cfg and added to the contactgroups.cfg. See below. Contacts.cfg: ------------------------- define contact{ contact_name chrisf alias Chris Fairbanks service_notification_period 24x7 host_notification_period 24x7 service_notification_options w,u,c,r host_notification_options d,u,r service_notification_commands notify-by-email host_notification_commands host-notify-by-email email chrisf at winterlink.net } Contactgroups.cfg: -------------------------- define contactgroup{ contactgroup_name support_group alias Winterlink Support members support,chrisf } Htpasswd.users -------------------------- chrisf:removed Any other ideas or places to look? Like I said, I read through all the FAQs and Docs and everything seems to be fine. Thanks, Chris -----Original Message----- From: Pascal Miquet [mailto:p.miquet at hafiba.fr] Sent: Tuesday, December 03, 2002 3:36 AM To: Chris Fairbanks Cc: Nagios users Subject: Re: [Nagios-users] Permission Error Do you have added the chrisf user into the contacts.cgi file, and also set the contactgroup.cgi. HTH Regards ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en From sghosh at sghosh.org Wed Dec 4 06:26:45 2002 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Wed, 4 Dec 2002 00:26:45 -0500 (EST) Subject: Error: Could not stat() command file '/usr/local/nagios/var/rw/nagios.cmd'! In-Reply-To: <157134685281.20021204035317@skatvis.lv> References: <157134685281.20021204035317@skatvis.lv> Message-ID: Check the following: 1. the gid for nagios matches the gid for apache 2. the gid above has write access to /usr/local/nagios/var/rw 3. you have external commands enabled (check_external_commands) Blocking - blocking will show how many hosts are unreachable because a parent host is down. If you don't have parents defined, blocking will always be 0. -sg On Wed, 4 Dec 2002, Maxik wrote: > Hello nagios-users, > In Comments menu after commit i recive : > Error: Could not stat() command file '/usr/local/nagios/var/rw/nagios.cmd'! > What's wrong ? > And how works Network Outage ? > I see only '0 Blocking Outages Displayed'. > > -- ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en From sghosh at sghosh.org Wed Dec 4 06:32:48 2002 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Wed, 4 Dec 2002 00:32:48 -0500 (EST) Subject: hostinfo.pl In-Reply-To: References: Message-ID: On Tue, 3 Dec 2002, nathang wrote: > > I been configuing Extended Host Information Definition, and in the nagios > documentation this script is mentioned hostinfo.pl. > > Does any know if this script exists ? or where I can get it > > > Regards > Nathan Greasley > > Probably Ethan has one ;) But is should be a relative simple CGI - take an argument - redirect to a url if using inidividual files for storage; - or pull data from some configuration database.. -- -sg ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en From jamie.baddeley at bclnz.net Wed Dec 4 06:46:38 2002 From: jamie.baddeley at bclnz.net (Jamie) Date: Wed, 4 Dec 2002 18:46:38 +1300 Subject: Distributed SNMP monitoring. References: <74D428BDBFD5D04CB54E84499ECA29DB2F246B@PKDWB03C.ad.sprint.com> Message-ID: <01e201c29b58$855717e0$fe784fcb@paradise.net.nz> All great comments Jim (as always). Noting your last paragraph: It seems to me to be a common issue - i.e integrating time-series data/trending (snmp) info with "point" info & threshold detection that nagios provides. Superficially it's easy - just do cool things with side menu..... I originally used NRG because it auto-conf'ed everything, so was easy to use. The downside is it was not so flexible. So, we moved over to Cricket+Smokeping. Seems all good (so far). But anyway, on to my point: It's wouldn't surprise me that loadsa people want to do the same Nagios+RRD&Front-End combo (but with no fries). - APAN seems pretty good but when one has a plethora of RRD front-ends out there - why would you create another one -especially when people have an investment in the rrd stored data of the existing system? (no offense fredrik). - IMHO Cacti seems to be overkill. But I could be wrong. So, can I see a show of hands as to what people's preferences are for an RRD "partner tool" for Nagios? Maybe we could all work together on making integration between the two really slick... Architecturally my preference is to let the RRD tools do the data acquisition, and let nagios pull from the (probable) local RRD file....What are people's thoughts on that? Ethan, Subhendu etc - Do you see the extension of Nagios from a monitoring/reporting tool to that plus performance analysis as a viable future development path? jamie ----- Original Message ----- From: "Carroll, Jim P [Contractor]" To: "'Terry Baranski'" ; Sent: Wednesday, December 04, 2002 7:21 AM Subject: RE: [Nagios-users] Distributed SNMP monitoring. > A few comments here. > > First, OpenNMS was recently discussed on this list. The general hubbub is > that it is a resource hog. (I've never touched it, so take this comment for > what it's worth.) Seems you'll need to spend some serious bucks on your > OpenNMS server if you want to even put it up for consideration. > > Second, Nagios rocks. It really does. That's the 'warm fuzzy' comment > which I'm sure many others on this list will embrace. Basically, any test > that you can run from a command line can be incorporated into Nagios. > Already there are many plugins which have been crafted to do some very > popular tasks. > > On tiering: I'm not exactly clear on your intent, but you can run two > Nagios servers, and have the results of one cascade over to the other with > the assistance of NSCA. Thus, the external server will display only what > it's collected, and the internal server will display what it's collected, as > well as what the external server as sent over to it. > > On down/up vs. SNMP: Nagios provides support for SNMP via plugins (most > notably check_snmp). If you want to handle traps, there are a couple of > approaches (TMTOWTDI in Perl-speak); one way would be to be running > snmptrapd on your Nagios server, and have a cronjob kick off every minute to > scrub the logfile, reformat the trap and stuff it into nagios.cmd (FIFO). > Another way would be to have the event get redirected via NSCA to the Nagios > host. Yes, Nagios has down/up checks, such as, "is something listening on > port 80 on host fizzgig or not". But some of the plugins relate to local > host metrics, such as free disk space, number of processes (with specialized > options, such as checking for zombies), free swap, etc. In these cases, you > would more likely want to configure for green/yellow/red alerts > (OK/Warning/Critical in Nagios). If you want to write your own script, > there are many examples (plugins) to follow. To get the green/yellow/red > response in Nagios, you would have your script return code 0, 1 or 2 > accordingly. One point which can be confusing to Nagios newbies, is that > things like check_disk won't work on a remote host, unless you > install/execute it on the remote host. But how to get the results to > Nagios? Ah, that's where NRPE (or NSCA, or...) come in. > > As someone else has pointed out, if you wish to chart trends, you'll want to > take a look at something like cacti (which I hope to try in the near > future). Another contributor has created APAN (which also uses RRDTool). > > I hope this gives you the needed food for thought. > > jc > > > -----Original Message----- > > From: Terry Baranski [mailto:terry at eurocompton.net] > > Sent: Monday, December 02, 2002 9:00 PM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Distributed SNMP monitoring. > > > > > > Hello. > > > > Hoping I can get some thoughts on this from those experienced with > > Nagios. > > > > I'm looking to deploy a network monitoring solution primarily > > to monitor > > host resources such as disk space, processor usage, and so forth via > > SNMP, and also to receive SNMP traps and notify accordingly. > > The hosts > > are Open/FreeBSD, Solaris, Linux, and Windows. I'm in need of a > > solution that supports tiering -- I need an external server to monitor > > exernal devices and an internal server to monitor internal > > devices, with > > the external server pumping its data to the internal server, > > making the > > internal server the central/master server. > > > > I first looked an OpenNMS, but it doesn't have tier support > > yet. Then I > > ran across Nagios, which does seem to have tier support, but > > also seems > > to be geared more towards up/down monitoring than SNMP monitoring. > > > > So, I'm wondering what those who have used Nagios think of its > > appropriateness (or lack thereof) for what I'm trying to accomplish. > > From the documentation I've read so far, it appears to me that tiered > > host resource monitoring is possible with the NRPE daemon running on > > each monitored host. Is this accurate? If so, does this > > daemon work on > > Open/FreeBSD? These OS's represent the majority of our hosts. > > > > Any help/advice on this will be greatly appreciated. > > > > Thanks, > > Terry > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Get the new Palm Tungsten T > > handheld. Power & Color in a compact size! > > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Microsoft Visual Studio.NET > comprehensive development tool, built to increase your > productivity. Try a free online hosted session at: > http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en From nagios at nagios.org Wed Dec 4 06:54:53 2002 From: nagios at nagios.org (Ethan Galstad) Date: Tue, 03 Dec 2002 23:54:53 -0600 Subject: hostinfo.pl In-Reply-To: References: Message-ID: <3DED444D.10209.1DC3BF8@localhost> On 4 Dec 2002 at 0:32, Subhendu Ghosh wrote: > On Tue, 3 Dec 2002, nathang wrote: > > > > > I been configuing Extended Host Information Definition, and in the nagios > > documentation this script is mentioned hostinfo.pl. > > > > Does any know if this script exists ? or where I can get it > > > > > > Regards > > Nathan Greasley > > > > > > Probably Ethan has one ;) > > But is should be a relative simple CGI - take an argument - redirect to a > url if using inidividual files for storage; - or pull data from some > configuration database.. > > Actually, I don't have a sample script. I just threw it in the docs as an example of what you could do. I think a few people have mentioned they've made similar scripts in the past to pull host data from a database, etc. Mabye someone wants to share theirs? Ethan Galstad, Nagios Developer --- Email: nagios at nagios.org Website: http://www.nagios.org ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en From sghosh at sghosh.org Wed Dec 4 07:28:16 2002 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Wed, 4 Dec 2002 01:28:16 -0500 (EST) Subject: Distributed SNMP monitoring. In-Reply-To: <01e201c29b58$855717e0$fe784fcb@paradise.net.nz> References: <01e201c29b58$855717e0$fe784fcb@paradise.net.nz> Message-ID: I would like to see Nagios extend into a performance tracking arena and the separation that Ethan has planned for the event deamon will allow that. The things to decide are whether to build a new RRD interface or to use an existing on - and what is the primary focus and the secondary result. I like Cricket, but Cricket is a resource hog as well for large configurations. The sub-trees mechanism allows better system load management, but you are still launching perl from cron. I prefer Nagios' primary focus on fault detection and a secondary result of historical data gathering. If Nagios builds RRD data support: The RRD data storage layout is also an issue to be discussed. - Do we lay out the data in a flat directory (probably not for scaling) or create some hierarchy of directory based on host/parent relationship If integrating: Decide on which existing front-end, Figure out if we can just use the grapher functionality there and have the raw data fed from the nagios plugins.. (one data read from source) -sg On Wed, 4 Dec 2002, Jamie wrote: > All great comments Jim (as always). > > > > Noting your last paragraph: > > It seems to me to be a common issue - i.e integrating time-series > data/trending (snmp) info with "point" info & threshold detection that > nagios provides. Superficially it's easy - just do cool things with side > menu..... > > I originally used NRG because it auto-conf'ed everything, so was easy to > use. The downside is it was not so flexible. So, we moved over to > Cricket+Smokeping. Seems all good (so far). > > But anyway, on to my point: > > It's wouldn't surprise me that loadsa people want to do the same > Nagios+RRD&Front-End combo (but with no fries). > - APAN seems pretty good but when one has a plethora of RRD front-ends out > there - why would you create another one -especially when people have an > investment in the rrd stored data of the existing system? (no offense > fredrik). > - IMHO Cacti seems to be overkill. But I could be wrong. > > So, can I see a show of hands as to what people's preferences are for an RRD > "partner tool" for Nagios? Maybe we could all work together on making > integration between the two really slick... > > Architecturally my preference is to let the RRD tools do the data > acquisition, and let nagios pull from the (probable) local RRD file....What > are people's thoughts on that? > > Ethan, Subhendu etc - Do you see the extension of Nagios from a > monitoring/reporting tool to that plus performance analysis as a viable > future development path? > > > > jamie > > > > ----- Original Message ----- > From: "Carroll, Jim P [Contractor]" > To: "'Terry Baranski'" ; > > Sent: Wednesday, December 04, 2002 7:21 AM > Subject: RE: [Nagios-users] Distributed SNMP monitoring. > > > > A few comments here. > > > > First, OpenNMS was recently discussed on this list. The general hubbub is > > that it is a resource hog. (I've never touched it, so take this comment > for > > what it's worth.) Seems you'll need to spend some serious bucks on your > > OpenNMS server if you want to even put it up for consideration. > > > > Second, Nagios rocks. It really does. That's the 'warm fuzzy' comment > > which I'm sure many others on this list will embrace. Basically, any test > > that you can run from a command line can be incorporated into Nagios. > > Already there are many plugins which have been crafted to do some very > > popular tasks. > > > > On tiering: I'm not exactly clear on your intent, but you can run two > > Nagios servers, and have the results of one cascade over to the other with > > the assistance of NSCA. Thus, the external server will display only what > > it's collected, and the internal server will display what it's collected, > as > > well as what the external server as sent over to it. > > > > On down/up vs. SNMP: Nagios provides support for SNMP via plugins (most > > notably check_snmp). If you want to handle traps, there are a couple of > > approaches (TMTOWTDI in Perl-speak); one way would be to be running > > snmptrapd on your Nagios server, and have a cronjob kick off every minute > to > > scrub the logfile, reformat the trap and stuff it into nagios.cmd (FIFO). > > Another way would be to have the event get redirected via NSCA to the > Nagios > > host. Yes, Nagios has down/up checks, such as, "is something listening on > > port 80 on host fizzgig or not". But some of the plugins relate to local > > host metrics, such as free disk space, number of processes (with > specialized > > options, such as checking for zombies), free swap, etc. In these cases, > you > > would more likely want to configure for green/yellow/red alerts > > (OK/Warning/Critical in Nagios). If you want to write your own script, > > there are many examples (plugins) to follow. To get the green/yellow/red > > response in Nagios, you would have your script return code 0, 1 or 2 > > accordingly. One point which can be confusing to Nagios newbies, is that > > things like check_disk won't work on a remote host, unless you > > install/execute it on the remote host. But how to get the results to > > Nagios? Ah, that's where NRPE (or NSCA, or...) come in. > > > > As someone else has pointed out, if you wish to chart trends, you'll want > to > > take a look at something like cacti (which I hope to try in the near > > future). Another contributor has created APAN (which also uses RRDTool). > > > > I hope this gives you the needed food for thought. > > > > jc > > > > > -----Original Message----- > > > From: Terry Baranski [mailto:terry at eurocompton.net] > > > Sent: Monday, December 02, 2002 9:00 PM > > > To: nagios-users at lists.sourceforge.net > > > Subject: [Nagios-users] Distributed SNMP monitoring. > > > > > > > > > Hello. > > > > > > Hoping I can get some thoughts on this from those experienced with > > > Nagios. > > > > > > I'm looking to deploy a network monitoring solution primarily > > > to monitor > > > host resources such as disk space, processor usage, and so forth via > > > SNMP, and also to receive SNMP traps and notify accordingly. > > > The hosts > > > are Open/FreeBSD, Solaris, Linux, and Windows. I'm in need of a > > > solution that supports tiering -- I need an external server to monitor > > > exernal devices and an internal server to monitor internal > > > devices, with > > > the external server pumping its data to the internal server, > > > making the > > > internal server the central/master server. > > > > > > I first looked an OpenNMS, but it doesn't have tier support > > > yet. Then I > > > ran across Nagios, which does seem to have tier support, but > > > also seems > > > to be geared more towards up/down monitoring than SNMP monitoring. > > > > > > So, I'm wondering what those who have used Nagios think of its > > > appropriateness (or lack thereof) for what I'm trying to accomplish. > > > From the documentation I've read so far, it appears to me that tiered > > > host resource monitoring is possible with the NRPE daemon running on > > > each monitored host. Is this accurate? If so, does this > > > daemon work on > > > Open/FreeBSD? These OS's represent the majority of our hosts. > > > > > > Any help/advice on this will be greatly appreciated. > > > > > > Thanks, > > > Terry > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.net email is sponsored by: Get the new Palm Tungsten T > > > handheld. Power & Color in a compact size! > > > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft Visual Studio.NET > > comprehensive development tool, built to increase your > > productivity. Try a free online hosted session at: > > http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Microsoft Visual Studio.NET > comprehensive development tool, built to increase your > productivity. Try a free online hosted session at: > http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > -- ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en From jasmine.chua at securecirt.com Wed Dec 4 07:39:58 2002 From: jasmine.chua at securecirt.com (Jasmine Chua) Date: Wed, 4 Dec 2002 14:39:58 +0800 Subject: nsca - weird. Message-ID: <200212041440.04513.jasmine.chua@securecirt.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi nagios users, In the background process I could see that nagios is submiting results to our central monitoring server... but, when i tried to execute the plugin manually. I got a timeout. libexec # ./submit_check_result xxx.xxx.xxx.xxx users 0 check-users-runaway Error: Timeout after 10 seconds On our central monitoring server, theres a lot of close_wait sessions when i do a netstat ..It is still receiving passive checks, but apparently.. something is still wrong.. could anyone tell me? Has this got to do with latency? Jasmine Chua Security Engineer, SecureCiRT (A SBU of Z-Vance Pte Ltd) http://www.securecirt.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE97aNDNgvTa7Hj2AURAgcGAJ9joFliAOUQh30a/Zu7DN82iPxDAwCghs6n uoFFT+iLqRq62FrhzvDWl1s= =DPQe -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en From sghosh at sghosh.org Wed Dec 4 07:36:38 2002 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Wed, 4 Dec 2002 01:36:38 -0500 (EST) Subject: Contactgroup config w/o email notifications? In-Reply-To: <20021203162307.B702@shell.core.com> References: <20021203162307.B702@shell.core.com> Message-ID: Couldn't you assign multiple contactgroups for the hostgroup, Assign a null time-period for those not receiving any email notifications, Add them to htpasswd as usual. Or if you don't want to manage thise non-notified users, set up a contactgroup with a dummey member, and share the login. of course the dummy-user would have a null time-priod for notifications. -sg On Tue, 3 Dec 2002, Denise Sandell wrote: > > Greetings, > > I have a rather complex set of requirements/specs for configuring > contactgroups for given hostgroups in Nagios. > > What i'd like to see is this: > A contactgroup configuration that does not require/allow email notifications > to be sent to members of that group, but still allows members to > log into the web interface and view the particular hostgroups those > members need access to. > > That doesn't mean I don't want notifications sent out for a given > hostgroup, just for a specific contactgroup. > > I'd prefer not to setup each user individually to have access to > the web interface through cgi.cf, as that can (and probably will) > become a nightmare as far as management goes. > > Anyone have any ideas or tried this before? > > -- ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en From tdeblend at gcc.dhl.com Wed Dec 4 08:27:48 2002 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Wed, 04 Dec 2002 08:27:48 +0100 Subject: Netsaint to Nagios References: <3DEC61E1.7E46FC76@gcc.dhl.com> <20021203203023.B220@IPAustralia.Gov.AU> Message-ID: <3DEDAE74.22C33F2B@gcc.dhl.com> Thanks for this extensive reply. If it can be done on one day, then I might just consider doing the shift to Nagios. I'm thinking of installing Nagios next to Netsaint, but running it in passive mode until I do the actual migration. That seems like a valid path to me. Stanley Hopcroft wrote: > > Dear Sir, > > I am writing to thank you for your letter and say, > > On Tue, Dec 03, 2002 at 08:48:49AM +0100, Tom DE BLENDE wrote: > > Hi, > > > > Since Nagios is stable now (yeah, yeah, I know it is for a while now.) > > - not all that long 24/11/2002 > > > I would like to have a closer look at it. Is there any risk in > > installing it on the same box Netsaint is running on? > > > > Here are some thoughts and observations :- > > 0 I too hummed and hawed over this until realising that all the action > is happening with Nagios. > > 'Upcoming' sounds wonderful ( http://www.nagios.org/upcoming.php ) > > For example, the quoted argument patch for embedded Perl has > already been committed to Nagios. It won't be for Netsaint ( > http://www.nagios.org/faqs/viewfaq.php?faq_id=90 ) > > 1 Fine to have Netsaint and Nagios on the same box subject to the box > tolerating the load of two (2) Netsaint processes (in my _limited_ > experience Nagios seems to have a load average of 5-10% less than > Netsaint) > > 2 However, > > . you may have non standard plugins with embedded paths in them (Tsk > tsk) - for storing state information etc > > . you may do checks with Netsaint by ssh so you'll have to add a nagios > user to those boxes you want to check by ssh and make sure that the > nagios user home directory has the same .ssh as the Netsaint user > > . you probably want to adopt the new template configuration method > (although you probably can run Nagios - if you configure it > appropriately - to use your Netsaint stuff). > > You may find http://www.nagios.org/faqs/viewfaq.php?faq_id=89 useful (I > converted semi automatically by other means. It took me far too long so > this may be better. However, it's worth being aware of what the > templates offer at > > http://nagios.sourceforge.net/docs/1_0/xodtemplate.html > > . Some things, even at an early stage, are obviously better eg > > - rescheduling a check (instead of force an immediate check) is a means > of having Nagios run a check when you want it to run. > > This is handy for RRD updates that expect data to arrive at the DS > update interval (otherwise the numbers look funny because the DS is > updated with interpolated values). > > - the availability CGI looks better (to me) > > - the extinfo CGI looks better (to me). Having the summary availability > info was not actually useful (more of a liability if you are reporting > across some interval, because you would have to reset the status.log to > reset the stats) > > . If it's not obvious, you can change the Alias and ScriptAlias > directives in Apache to reduce the impact on Netsaint bookmarks (most of > my colleagues are still browsing http://some_host/netsaint/ after > adding > > ScriptAlias /cgi-bin/netsaint/ "/usr/local/nagios/sbin/" > > Alias /netsaint/ "/usr/local/nagios/share/" ). > > To sum up, I made the change in about a day for a small site with ~200 > hosts and ~325 checks. > > > Kind regards, > > Tom > > > > Enjoy. > > Yours sincerely. > -- > ------------------------------------------------------------------------ > Stanley Hopcroft > ------------------------------------------------------------------------ > > '...No man is an island, entire of itself; every man is a piece of the > continent, a part of the main. If a clod be washed away by the sea, > Europe is the less, as well as if a promontory were, as well as if a > manor of thy friend's or of thine own were. Any man's death diminishes > me, because I am involved in mankind; and therefore never send to know > for whom the bell tolls; it tolls for thee...' > > from Meditation 17, J Donne. > > ------------------------------------------------------- > This SF.net email is sponsored by: Get the new Palm Tungsten T > handheld. Power & Color in a compact size! > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en From tdeblend at gcc.dhl.com Wed Dec 4 08:25:16 2002 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Wed, 04 Dec 2002 08:25:16 +0100 Subject: Apache authentication and Nagios References: <20021203164704.26892.qmail@pod-163.dolphin-server.co.uk> Message-ID: <3DEDADDC.6A0FC88B@gcc.dhl.com> I've implemented ldap authentication. Works fine. Tom Welsh wrote: > > Has anybody using any other authentication with Nagios apart from basic. Im > about to try it with digest and auth_db and was wondering if someone has > done this already and found it dosent work. > > Cheers > > Tom Welsh > squareBOX technologies > twelsh at square-box.com > > ------------------------------------------------------- > This SF.net email is sponsored by: Microsoft Visual Studio.NET > comprehensive development tool, built to increase your > productivity. Try a free online hosted session at: > http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en From Fredrik.Wanglund at datavis.se Wed Dec 4 08:48:00 2002 From: Fredrik.Wanglund at datavis.se (=?iso-8859-1?Q?Fredrik_W=E4nglund?=) Date: Wed, 4 Dec 2002 08:48:00 +0100 Subject: Distributed SNMP monitoring. Message-ID: <9EA0F1554816EB499A4B1136B80E8DE2780413@storevis.datavis.se> OK, I have to defend APAN..;-) I know that Apan lacks a tool for RRD-file creatin (my fault). But on the other hand, Apan is fully integrated in Nagios. And, if you switch from another tool that uses RRD's, you can reuse your existing RRD-files and let Apan put data in them instead and you will be able to see your history in Nagios... /FredrikW -----Original Message----- From: Jamie [mailto:jamie.baddeley at bclnz.net] Sent: Wed 04-Dec-02 06:46 To: Carroll, Jim P [Contractor]; 'Terry Baranski'; nagios-users at lists.sourceforge.net Cc: Subject: Re: [Nagios-users] Distributed SNMP monitoring. All great comments Jim (as always). Noting your last paragraph: It seems to me to be a common issue - i.e integrating time-series data/trending (snmp) info with "point" info & threshold detection that nagios provides. Superficially it's easy - just do cool things with side menu..... I originally used NRG because it auto-conf'ed everything, so was easy to use. The downside is it was not so flexible. So, we moved over to Cricket+Smokeping. Seems all good (so far). But anyway, on to my point: It's wouldn't surprise me that loadsa people want to do the same Nagios+RRD&Front-End combo (but with no fries). - APAN seems pretty good but when one has a plethora of RRD front-ends out there - why would you create another one -especially when people have an investment in the rrd stored data of the existing system? (no offense fredrik). - IMHO Cacti seems to be overkill. But I could be wrong. So, can I see a show of hands as to what people's preferences are for an RRD "partner tool" for Nagios? Maybe we could all work together on making integration between the two really slick... Architecturally my preference is to let the RRD tools do the data acquisition, and let nagios pull from the (probable) local RRD file....What are people's thoughts on that? Ethan, Subhendu etc - Do you see the extension of Nagios from a monitoring/reporting tool to that plus performance analysis as a viable future development path? jamie ----- Original Message ----- From: "Carroll, Jim P [Contractor]" To: "'Terry Baranski'" ; Sent: Wednesday, December 04, 2002 7:21 AM Subject: RE: [Nagios-users] Distributed SNMP monitoring. > A few comments here. > > First, OpenNMS was recently discussed on this list. The general hubbub is > that it is a resource hog. (I've never touched it, so take this comment for > what it's worth.) Seems you'll need to spend some serious bucks on your > OpenNMS server if you want to even put it up for consideration. > > Second, Nagios rocks. It really does. That's the 'warm fuzzy' comment > which I'm sure many others on this list will embrace. Basically, any test > that you can run from a command line can be incorporated into Nagios. > Already there are many plugins which have been crafted to do some very > popular tasks. > > On tiering: I'm not exactly clear on your intent, but you can run two > Nagios servers, and have the results of one cascade over to the other with > the assistance of NSCA. Thus, the external server will display only what > it's collected, and the internal server will display what it's collected, as > well as what the external server as sent over to it. > > On down/up vs. SNMP: Nagios provides support for SNMP via plugins (most > notably check_snmp). If you want to handle traps, there are a couple of > approaches (TMTOWTDI in Perl-speak); one way would be to be running > snmptrapd on your Nagios server, and have a cronjob kick off every minute to > scrub the logfile, reformat the trap and stuff it into nagios.cmd (FIFO). > Another way would be to have the event get redirected via NSCA to the Nagios > host. Yes, Nagios has down/up checks, such as, "is something listening on > port 80 on host fizzgig or not". But some of the plugins relate to local > host metrics, such as free disk space, number of processes (with specialized > options, such as checking for zombies), free swap, etc. In these cases, you > would more likely want to configure for green/yellow/red alerts > (OK/Warning/Critical in Nagios). If you want to write your own script, > there are many examples (plugins) to follow. To get the green/yellow/red > response in Nagios, you would have your script return code 0, 1 or 2 > accordingly. One point which can be confusing to Nagios newbies, is that > things like check_disk won't work on a remote host, unless you > install/execute it on the remote host. But how to get the results to > Nagios? Ah, that's where NRPE (or NSCA, or...) come in. > > As someone else has pointed out, if you wish to chart trends, you'll want to > take a look at something like cacti (which I hope to try in the near > future). Another contributor has created APAN (which also uses RRDTool). > > I hope this gives you the needed food for thought. > > jc > > > -----Original Message----- > > From: Terry Baranski [mailto:terry at eurocompton.net] > > Sent: Monday, December 02, 2002 9:00 PM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Distributed SNMP monitoring. > > > > > > Hello. > > > > Hoping I can get some thoughts on this from those experienced with > > Nagios. > > > > I'm looking to deploy a network monitoring solution primarily > > to monitor > > host resources such as disk space, processor usage, and so forth via > > SNMP, and also to receive SNMP traps and notify accordingly. > > The hosts > > are Open/FreeBSD, Solaris, Linux, and Windows. I'm in need of a > > solution that supports tiering -- I need an external server to monitor > > exernal devices and an internal server to monitor internal > > devices, with > > the external server pumping its data to the internal server, > > making the > > internal server the central/master server. > > > > I first looked an OpenNMS, but it doesn't have tier support > > yet. Then I > > ran across Nagios, which does seem to have tier support, but > > also seems > > to be geared more towards up/down monitoring than SNMP monitoring. > > > > So, I'm wondering what those who have used Nagios think of its > > appropriateness (or lack thereof) for what I'm trying to accomplish. > > From the documentation I've read so far, it appears to me that tiered > > host resource monitoring is possible with the NRPE daemon running on > > each monitored host. Is this accurate? If so, does this > > daemon work on > > Open/FreeBSD? These OS's represent the majority of our hosts. > > > > Any help/advice on this will be greatly appreciated. > > > > Thanks, > > Terry > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Get the new Palm Tungsten T > > handheld. Power & Color in a compact size! > > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Microsoft Visual Studio.NET > comprehensive development tool, built to increase your > productivity. Try a free online hosted session at: > http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en From formatpro at yahoo.co.uk Wed Dec 4 09:03:00 2002 From: formatpro at yahoo.co.uk (=?iso-8859-1?q?ForMatPrO=20ForMatPrO?=) Date: Wed, 4 Dec 2002 08:03:00 +0000 (GMT) Subject: Nagios and Mysql In-Reply-To: <48B8D6ECC8C93E4E992AEB43EE8565DB040CE0@pdx-mail01.vinton.com> References: <48B8D6ECC8C93E4E992AEB43EE8565DB040CE0@pdx-mail01.vinton.com> Message-ID: <20021204080300.14740.qmail@web14108.mail.yahoo.com> Hi, For those who have seen my mails about problems compiling nagios with MySQL support in Redhat 8.0. I've now installed FreeBSD and it compiled without any problems. So if anyone should find out what the problem om Redhat8.0 might be, your always welcome to let me know :) Special thanks for those who tried to help me out! Bye, ForMatPrO ps. if you'd like to know what the problem was and what I did: http://sourceforge.net/mailarchive/forum.php?thread_id=1357360&forum_id=1873 __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en From Stanley.Hopcroft at IPAustralia.Gov.AU Wed Dec 4 09:13:03 2002 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Wed, 4 Dec 2002 19:13:03 +1100 Subject: Netsaint to Nagios In-Reply-To: <3DEDAE74.22C33F2B@gcc.dhl.com>; from tdeblend@gcc.dhl.com on Wed, Dec 04, 2002 at 08:27:48AM +0100 References: <3DEC61E1.7E46FC76@gcc.dhl.com> <20021203203023.B220@IPAustralia.Gov.AU> <3DEDAE74.22C33F2B@gcc.dhl.com> Message-ID: <20021204191259.B214@IPAustralia.Gov.AU> Dear Sir, I am writing to thank you for your letter and say, On Wed, Dec 04, 2002 at 08:27:48AM +0100, Tom DE BLENDE wrote: > Thanks for this extensive reply. If it can be done on one day, then I > might just consider doing the shift to Nagios. A day was probably excessive. With the right planning and forethought (as another correspondent mentioned, using the config conversion tools is definitely worthwhile. Don't take my word for it; that's what Mr Galstad said in the FAQ) this should be possible in much less. > I'm thinking of > installing Nagios next to Netsaint, but running it in passive mode > until I do the actual migration. That seems like a valid path to me. > That sounds like a very good low risk idea. Don't put it off though. Nagios is more than a different name and a slightly different look; there are definite and useful improvements. Among the Nagios plusses, + precise and unvarying scheduling. My checks that also update an RRD, once scheduled for a 5 minute boundary, continue to be run on that boundary. This was not so with Netsaint. + much faster response to command queue events such as en/disabling checks or notifications Netsaint seemed to take 30-90 seconds to responsd to requests, but Nagios takes less than 30. Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en From Stanley.Hopcroft at IPAustralia.Gov.AU Wed Dec 4 09:59:19 2002 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Wed, 4 Dec 2002 19:59:19 +1100 Subject: Apache authentication and Nagios In-Reply-To: <3DEDADDC.6A0FC88B@gcc.dhl.com>; from tdeblend@gcc.dhl.com on Wed, Dec 04, 2002 at 08:25:16AM +0100 References: <20021203164704.26892.qmail@pod-163.dolphin-server.co.uk> <3DEDADDC.6A0FC88B@gcc.dhl.com> Message-ID: <20021204195915.C214@IPAustralia.Gov.AU> Dear Sir, > Tom Welsh wrote: > > > > Has anybody using any other authentication with Nagios apart from basic. Im > > about to try it with digest and auth_db and was wondering if someone has > > done this already and found it dosent work. > > mod_apache + Apache::AuthenSMB + Authen::SMB (NT domain authentication) works beautifully. All modules from CPAN. I suggest you can probably use _any_ of the Apache authentication modules. Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en From twelsh at square-box.com Wed Dec 4 10:36:06 2002 From: twelsh at square-box.com (Tom Welsh) Date: Wed, 4 Dec 2002 09:36:06 -0000 Subject: Permission Error In-Reply-To: <11C80DA1026CF545921B280740C440ED8BA601@exchange1.corp.winterlink.net> References: <11C80DA1026CF545921B280740C440ED8BA601@exchange1.corp.winterlink.net> Message-ID: <000001c29b78$9240db60$0400a8c0@squarebox.com> Told you it was stupid, I thought that just after id pressed send. DOH! -----Original Message----- From: Chris Fairbanks [mailto:ChrisF at winterlink.net] Sent: 04 December 2002 04:52 To: Tom Welsh Cc: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Permission Error That's what a htpasswd file looks like. Username:cryptedpassword. I just removed the crypted password. -Chris -----Original Message----- From: Tom Welsh [mailto:twelsh at square-box.com] Sent: Tuesday, December 03, 2002 5:17 PM To: Chris Fairbanks Subject: RE: [Nagios-users] Permission Error Now this may seem a bit stupid but here goes... Contacts.cfg contact_name chrisf does not match Htpasswd.users chrisf:removed Cheers Tom Welsh -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Chris Fairbanks Sent: 03 December 2002 22:15 To: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Permission Error The user was added to the htpasswd.users file, contacts.cfg and added to the contactgroups.cfg. See below. Contacts.cfg: ------------------------- define contact{ contact_name chrisf alias Chris Fairbanks service_notification_period 24x7 host_notification_period 24x7 service_notification_options w,u,c,r host_notification_options d,u,r service_notification_commands notify-by-email host_notification_commands host-notify-by-email email chrisf at winterlink.net } Contactgroups.cfg: -------------------------- define contactgroup{ contactgroup_name support_group alias Winterlink Support members support,chrisf } Htpasswd.users -------------------------- chrisf:removed Any other ideas or places to look? Like I said, I read through all the FAQs and Docs and everything seems to be fine. Thanks, Chris -----Original Message----- From: Pascal Miquet [mailto:p.miquet at hafiba.fr] Sent: Tuesday, December 03, 2002 3:36 AM To: Chris Fairbanks Cc: Nagios users Subject: Re: [Nagios-users] Permission Error Do you have added the chrisf user into the contacts.cgi file, and also set the contactgroup.cgi. HTH Regards ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en From rick at subnet.at Wed Dec 4 10:43:29 2002 From: rick at subnet.at (peter riegersperger) Date: Wed, 04 Dec 2002 10:43:29 +0100 Subject: images displayed in pop-ups, but NOT status map. RH8.0 References: <3DED4FE0.60006@dublerfamily.com> Message-ID: <3DEDCE41.5090203@subnet.at> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Pete Dubler wrote: [...] | Why did I loose the question marks? Why is there no logo shown for the | host radio on the statusmap display (level 5, circular marked-up). | [...] | Hint: pngtogd generates the following error: | | No PNG library support available. | Segmentation fault i bet you have the same problem i had: your gd-files are invalid. my pngtogd2 seg faulted on me too, and i have no idea why. just use the png for the status map (it is working, although the docs say otherwise. maybe someone could update the docs?) rick - -- |- | peter riegersperger |- | ein windows switcher tagebuch: | http://forum.subnet.at/viewforum.php?f=22 |- | subnet | platform for media art and experimental technologies |- | http://www.subnet.at/ |- | muehlbacherhofweg 5 // 5020 salzburg // austria |- | fon/fax +43/662/842 897 |- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQE97c5AIMP39JYOy9IRAmaoAKD3mcFwDzsC1UMm/wl6/HlpQFB80gCeN1bd HWtq4Gh3wTDH2cn4fBDiEZU= =JGtY -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en From p.miquet at hafiba.fr Wed Dec 4 11:18:54 2002 From: p.miquet at hafiba.fr (Pascal Miquet) Date: 04 Dec 2002 11:18:54 +0100 Subject: Notifications In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB2F246A@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB2F246A@PKDWB03C.ad.sprint.com> Message-ID: <1038997110.4653.17.camel@moishe> I noticed that we could have pager and email notification for the same contact. So would be nice to set the host and service notification for Mail and Pager in a separate way rather than need to use two contacts. But in analysing the way this is done, it's a non sense to have Pager and Email when contact is in the office, so by extension should be nice to have the notification period in a separate way also. So, the main way to implement this is to HAVE TWO CONTACT. I think this would be the best one. And have a group for this contact. Regards. Pascal Miquet Le mar 03/12/2002 ? 18:54, Carroll, Jim P [Contractor] a ?crit : > I'm doing something similar here: warning/critical/recover to all the admin > e-mail accounts, but only critical/recover to the virtual pager. > > Basically you have to create separate contacts/contactgroups. E.g., > > define contact{ > contact_name jcarro10 > alias Jim Carroll > host_notification_period 24x7 > service_notification_period 24x7 > host_notification_options d,r > service_notification_options c,w,r > host_notification_commands host-notify-by-email > service_notification_commands notify-by-email > email > jcarro10 at sprintspectrum.com > } > > define contact{ > contact_name pager-devunix > alias DEVUNIX on-call pager > host_notification_period 24x7 > service_notification_period 24x7 > host_notification_options d,r > service_notification_options c,r > host_notification_commands host-notify-by-epager > service_notification_commands notify-by-epager > pager pager-devunix > } > > and then the "pager-devunix" on the "pager" definition line is defined in > /etc/aliases, thusly: > > pager-devunix: :include:/home/pager/oncall/DEVUNIX > > which in turn resolves to the actual e-mail address for the pager. > > (I have a script which modifies the DEVUNIX file through a simple menu.) > > The virtual pager info was more than you bargained for, but hopefully you > can see how I split out the e-mails from the pages. > > jc > > > -----Original Message----- > From: Matthieu Parisot [mailto:mat at avedya.com] > Sent: Tuesday, December 03, 2002 8:49 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Notifications > > > Hi list, > I'm using nagios-1.0b6, and I wonder if there is a way to associate service > or host status to differents contact targets; > For exemple, I would like to be notified by mail if the service is WARNING, > UNKNOWN or CRITICAL, and by SMS only if it's critical... > If I write a patch to nagios to do that, will it have a chance to be > integrated? > It's allready possible to do it using event handlers, but we loose contacts, > contacts groups and pre-defined command to alert via mail or SMS, > and we are forced to duplicate stuff. > Did I miss something ? > Thanks for your futur answers.... > > Matthieu > > ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en From Jason.Pepin at cnalife.com Wed Dec 4 15:21:03 2002 From: Jason.Pepin at cnalife.com (Pepin,Jason E.) Date: Wed, 4 Dec 2002 08:21:03 -0600 Subject: Temptrax Question Message-ID: I have attached the Temptrax 2000 to my RedHat 7.3 server. I can get the check_temptrax command to work from the command line but I get a (No output!) message from Nagios in the browser. I am using Nagios 1.0 dated 11.24.02 and the template-based configuration for my files. checkcommands.cfg file entry: # 'check_temptrax' command definition define command{ command_name check_temp command_line $USER1$/check_temptrax -w 69 -c 75 -S 1 -f 1 } services.cfg file entry: define service{ host_name server3 service_description TEMPERATURE check_command check_temp max_check_attempts 5 normal_check_interval 15 retry_check_interval 3 check_period 24x7 retain_status_information 1 notification_interval 0 notification_period 24x7 notification_options w,c,r notifications_enabled 1 contact_groups sun-admins name temptemplate } Any help would be greatly appreciated. Thanks, Jason Pepin ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en From pascal.wessel at media-online.ch Wed Dec 4 15:55:54 2002 From: pascal.wessel at media-online.ch (Pascal Wessel) Date: Wed, 4 Dec 2002 15:55:54 +0100 Subject: Repost to users-list: Check_radius version 1.3.0-beta2 vs. 200211131100 Message-ID: <000d01c29ba5$3edfaaf0$bd28bb0a@mediaonline.ch> Hum, sorry for that, it seems that my post to the plugin-devel group will be pending for a while.lol Then I repost to the user-list, if you don't mind. Pascal I am out of the office until Monday December 9th. If this is an urgent matter, please contact the help desk at 346-6550. Thanks, John > Subject: Check_radius version 1.3.0-beta2 vs. 200211131100 > > Hello dear 'ol nagios hackers :-) > > Just a quick post to say that I upgraded my plugins from version > 200211131100 to version 1.3.0-beta2, mainly because of check_snmp > strange results. > > Check_snmp is now working as expected, but straight after having make > install of the new compiled plugins, my check_radius stopped working. > > Seems that the params order changed between the relases. > > I dig a bit in the code, but (sorry for that) my C knowledge is poor. > But whar I saw is that the parms change a bit. > > Could you provide an exemple of the new plugin usage ? (the --help did > not help me a lot, -F config file.??? The one of radiusclient ???) > The ones in checkcommands.cfg and services.cfg. > > Thanks a lot, > Warm regards, > Pascal > ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en From pete at dublerfamily.com Wed Dec 4 16:21:03 2002 From: pete at dublerfamily.com (Pete Dubler) Date: Wed, 04 Dec 2002 08:21:03 -0700 Subject: images displayed in pop-ups, but NOT status map. RH8.0 References: <3DED4FE0.60006@dublerfamily.com> <3DEDCE41.5090203@subnet.at> Message-ID: <3DEE1D5F.1000602@dublerfamily.com> Regarding the segmentation fault, I figured that out. It has to do with gd 2.0.8 breaking a relationship with php. You have to patch php and then remake it. See thie following link for info on that: http://www.boutell.com/gd/phppatch.html Also note that I have also tried to use the .png graphics without any luck (in other words, with the same results.). Thanks Pete peter riegersperger wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Pete Dubler wrote: > [...] > | Why did I loose the question marks? Why is there no logo shown for the > | host radio on the statusmap display (level 5, circular marked-up). > | > [...] > | Hint: pngtogd generates the following error: > | > | No PNG library support available. > | Segmentation fault > > i bet you have the same problem i had: your gd-files are invalid. my > pngtogd2 seg faulted on me too, and i have no idea why. > just use the png for the status map (it is working, although the docs > say otherwise. maybe someone could update the docs?) > > rick > > - -- > |- > | peter riegersperger > |- > | ein windows switcher tagebuch: > | http://forum.subnet.at/viewforum.php?f=22 > |- > | subnet > | platform for media art and experimental technologies > |- > | http://www.subnet.at/ > |- > | muehlbacherhofweg 5 // 5020 salzburg // austria > |- > | fon/fax +43/662/842 897 > |- > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.0.7 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQE97c5AIMP39JYOy9IRAmaoAKD3mcFwDzsC1UMm/wl6/HlpQFB80gCeN1bd > HWtq4Gh3wTDH2cn4fBDiEZU= > =JGtY > -----END PGP SIGNATURE----- > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Microsoft Visual Studio.NET > comprehensive development tool, built to increase your productivity. > Try a free online hosted session at: > http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en From emann at questinc.org Wed Dec 4 16:37:52 2002 From: emann at questinc.org (Evan Mann) Date: Wed, 4 Dec 2002 10:37:52 -0500 Subject: JPEG-6B Message-ID: Does anyone have a compressed copy of JPEG-6B that they could e-mail me offlist? The Independent JPEG Group website has been down all morning. ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en From AHKAPLAN at PARTNERS.ORG Wed Dec 4 18:15:45 2002 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Wed, 4 Dec 2002 12:15:45 -0500 Subject: check_nrpe socket timeout Message-ID: <5593DA408212D511B0910002A513501F01D28830@phsexch20.mgh.harvard.edu> I've been periodically encountering check_nrpe socket timeout errors for some time. Further checks into the status of the systems where this is occurring does not show any apparent problems. Has anyone had similar occurrences? ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en From dan at conpoint.com Wed Dec 4 19:52:15 2002 From: dan at conpoint.com (Dan Spray) Date: Wed, 4 Dec 2002 12:52:15 -0600 Subject: Status-map icons Message-ID: Hello all, I am having a problem where certain icons show up on my status map and some don't. For instance I have some machine that I am using the redhat logo for, they work. Then I have some that are aironet 350 bridges, they are setup the same in the hostextinfo file as the redhat hosts but the question mark shows up instead. Everywhere else the icon works just not the maps. Any ideas would be great. Dan -- Dan Spray, Director of Internet Operations dan at conpoint.com Connecting Point Norfolk, NE < http://www.conpoint.com/> Voice - 402.371.4530 x208 Fax - 402.371.4515 "The trouble with doing anything right the first time is that nobody appreciates how difficult it was!" -- -------------- next part -------------- An HTML attachment was scrubbed... URL: From sghosh at sghosh.org Wed Dec 4 19:38:19 2002 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Wed, 4 Dec 2002 13:38:19 -0500 (EST) Subject: Nagios RPMs In-Reply-To: <20021203123229.J17496-100000@archeron.hibias.com> References: <20021203123229.J17496-100000@archeron.hibias.com> Message-ID: On Tue, 3 Dec 2002, Rusty Bias wrote: > > I've noticed that versions of the plugins are regularly distributed as > RPMs, but there is no regular distribution for nagios or nagat, or other > portions. I want to modify the RPM for the plugins and make RPMs of the > other pieces for my systems. Anyone who has spec files from any RPMs > they've built, or even from the regular plugin distro, I'd appreciate > getting a copy of them. > > Thanks, > Rusty > > Karl wrote a script to automatically generate the plugin RPMs from dist. the spec file is in the main nagiosplug directory. -- -sg ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en From emann at questinc.org Wed Dec 4 20:27:32 2002 From: emann at questinc.org (Evan Mann) Date: Wed, 4 Dec 2002 14:27:32 -0500 Subject: trends.cgi and statusmap.cgi still not working Message-ID: Just compiled all newest version of jpeg-6b, zlib, libpng, and gd. Compiled Nagios-1.0 and 1.3.0-beta2 plugins Installed over my existing Nagios. trends.cgi and statusmap.cgi STILL return an Internal server error (Apache 2.0.43) With the new libs and version of Nagios I received NO compiler warnings like I did previous with trends and statusmap CGI's. Any ideas now? ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en From jcarro10 at sprintspectrum.com Wed Dec 4 20:24:47 2002 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Wed, 4 Dec 2002 13:24:47 -0600 Subject: check_nrpe socket timeout Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F2470@PKDWB03C.ad.sprint.com> Yes! I made this observation/complaint on the list a while back, back when I had nagios installed on an underpowered old PC. Nobody had a comment to make. Since then (much more recently), I've had it happen again. This was when I added quite a few NRPE checks across several Linux boxen, bumping my total service checks from 800+ to 1100+. Here are things I've done since that time: - posted a question to the list: scalability of NRPE vs. NSCA - set max_concurrent_checks to 200 - split the software disk mirror (I/O was getting hammered) - increased swap (from 50% of RAM to 200% of RAM) - set max_concurrent_checks to 0 - noticed that while NRPE checks didn't fail, system would occasionally be very slow - set max_concurrent_checks to 400 I still haven't had any response to my scalability/NRPE/NSCA query on this list. I haven't ruled out NSCA as possibly a better way to go. It just means cobbling some scripts together. If I knew for certain that the NSCA approach is an order of magnitude more scalable than using NRPE, I'd jump on it in a heartbeat. BTW, the docs have suggestions for improving overall performance. The one suggestion which stuck in my mind was to get /usr/local/nagios/var onto a ramdisk. I don't think that would help in my situation, but I do have the option of putting it over on another spindle (the former mirror). Let me know if any of my observations/suggestions help you out. jc > -----Original Message----- > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > Sent: Wednesday, December 04, 2002 11:16 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] check_nrpe socket timeout > > > I've been periodically encountering check_nrpe socket timeout > errors for > some time. Further checks into the status > of the systems where this is occurring does not show any > apparent problems. > Has anyone had similar occurrences? > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Microsoft Visual Studio.NET > comprehensive development tool, built to increase your > productivity. Try a free online hosted session at: > http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en From brown.robertson at maac.net Wed Dec 4 21:04:51 2002 From: brown.robertson at maac.net (Robertson, Brown) Date: Wed, 4 Dec 2002 14:04:51 -0600 Subject: statusmap.cgi Icons Message-ID: <2CDD9C051F451F4BB0615B9547F1B4294D3B@maacmail.maac.int> I know many people have had problems with showing custom icons in the statusmap cgi configuration portion of nagios. I recently got it working, but I noticed some anomolies which might be the cause of so many people either claiming to have followed proper procedure with no result. I found that regardless of properly configuration, some icon files (png,gd2,gif,jpg) will NOT show up properly. I really just had to do it by trial and error. Some icons would show up fine, and other's would show the default "unknown.***" question mark graphic. I'm still investigating, and am not sure why this is the case, but it made me wonder if some people are repeatedly trying to use the same icon graphic with negative results, and stopping there. If so, try other graphic files and see if you are also experiencing this anomoly. Thanks, Brown Robertson. ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en From jcarro10 at sprintspectrum.com Wed Dec 4 20:33:03 2002 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Wed, 4 Dec 2002 13:33:03 -0600 Subject: Status-map icons Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2E5235@PKDWB03C.ad.sprint.com> Try (temporarily) setting the aironet icons to be the same as the redhat icons, just to see if that has any effect. jc -----Original Message----- From: Dan Spray [mailto:dan at conpoint.com] Sent: Wednesday, December 04, 2002 12:52 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Status-map icons Hello all, I am having a problem where certain icons show up on my status map and some don't. For instance I have some machine that I am using the redhat logo for, they work. Then I have some that are aironet 350 bridges, they are setup the same in the hostextinfo file as the redhat hosts but the question mark shows up instead. Everywhere else the icon works just not the maps. Any ideas would be great. Dan -- Dan Spray, Director of Internet Operations dan at conpoint.com Connecting Point Norfolk, NE < http://www.conpoint.com/> Voice - 402.371.4530 x208 Fax - 402.371.4515 "The trouble with doing anything right the first time is that nobody appreciates how difficult it was!" -- -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcarro10 at sprintspectrum.com Wed Dec 4 20:59:37 2002 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Wed, 4 Dec 2002 13:59:37 -0600 Subject: time-series graphing options (was: RE: Distributed SNMP monitoring.) Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F2472@PKDWB03C.ad.sprint.com> Jamie Baddeley wrote: > I originally used NRG because it auto-conf'ed everything, so > was easy to > use. The downside is it was not so flexible. So, we moved over to > Cricket+Smokeping. Seems all good (so far). I spent a few cycles on Cricket, and ended up running aground at some point. I suppose I could take another crack at it. > But anyway, on to my point: > > It's wouldn't surprise me that loadsa people want to do the same > Nagios+RRD&Front-End combo (but with no fries). > - APAN seems pretty good but when one has a plethora of RRD > front-ends out > there - why would you create another one -especially when > people have an > investment in the rrd stored data of the existing system? (no offense > fredrik). > - IMHO Cacti seems to be overkill. But I could be wrong. Could be. I just like that it makes creating the RRDs/RRAs considerably simpler. I've read the RRDtool docs a number of times, and only succeeded in bogging down my brain. My intent is to tap into the serviceperf.log file using Perl, scrub it every 5 mins (keeping track of the current position using seek/tell), then have the appropriate RRDs populated. Hmm, now that I think of it, if I could figure out a generic template (even broken down by procs, memory, disk, etc), I could have the script scrub serviceperf.log ever 5 mins, check for the existence of RRDs (and create them if absent, based on a partial string match), update the RRDs, write the tell to a file, then exit. (Of course, I'd check to see if the seek/tell value is greater than the size of the file, and if so, start from position 0, ie, the logfile was rolled over.) Who knows, maybe I'll go back and check out Orca again. > So, can I see a show of hands as to what people's preferences > are for an RRD > "partner tool" for Nagios? Maybe we could all work together on making > integration between the two really slick... > > Architecturally my preference is to let the RRD tools do the data > acquisition, and let nagios pull from the (probable) local > RRD file....What > are people's thoughts on that? Interesting approach. But one needs to ask the question of whether MySQL/Postgres could be used, since splicing Nagios into one of those at compile time is a clear option. Having said that, how would one easily generate RRDtool-like graphics, short of extracting from one database (eg, MySQL) to populate another (eg, RRDtool)? I'm all for keeping data duplication to a minimum. Taking this a step further, one could create a visual representation of any arbitrary data in MySQL, and not need to depend on the cast-in-stone-at-creation-time approach of RRDtool. jc ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en From GPotter at MarathonOil.com Wed Dec 4 21:29:00 2002 From: GPotter at MarathonOil.com (Potter, G M (Greg)) Date: Wed, 4 Dec 2002 14:29:00 -0600 Subject: trends.cgi and statusmap.cgi still not working Message-ID: In your Web server error log do you see an entry that says something like the following: [Tue Dec 3 07:38:37 2002] [error] [client 192.168.1.2] Premature end of script headers: /usr/local/nagios/sbin/statusmap.cgi If so we may have the same problem. Greg > -----Original Message----- > From: Evan Mann [mailto:emann at questinc.org] > Sent: Wednesday, December 04, 2002 2:20 PM > To: Potter, G M (Greg) > Subject: RE: [Nagios-users] trends.cgi and statusmap.cgi still not > working > > > The Nagios-USers group didn't have much help for me. > Originally I got some > LD errors on lib dependancie swith GD, but I no logner have > any of those > with Nagios 1.0 and the newest GD/ZLIB/LIBPNG. So I'm > totally out of ideas. > > -----Original Message----- > From: Potter, G M (Greg) [mailto:GPotter at MarathonOil.com] > Sent: Wednesday, December 04, 2002 3:18 PM > To: Evan Mann > Subject: RE: [Nagios-users] trends.cgi and statusmap.cgi still not > working > > > I have been doing some research on this problem. I believe > that the process > is giving a SEGFAULT when it tries to manipulate the graphics > images. This > is on my Solaris 7 machine. It does not SEGFAULT on my > Solaris 8 machine. I > have turned on some debugging in the gd modules, and added > some debug output > to statusmap.cgi. That along with truss are giving me some > indication where > the SEGFAULT is occurring. As I get more data I will post it > to this site. > Has anyone else been down this road and found a solution yet? > I wouldn't > mind using someone else's solution instead of banging my head > against the > wall. :-( > > Greg Potter > > > -----Original Message----- > > From: Evan Mann [mailto:emann at questinc.org] > > Sent: Wednesday, December 04, 2002 1:28 PM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] trends.cgi and statusmap.cgi still > not working > > > > > > Just compiled all newest version of jpeg-6b, zlib, libpng, and gd. > > > > Compiled Nagios-1.0 and 1.3.0-beta2 plugins > > > > Installed over my existing Nagios. > > > > trends.cgi and statusmap.cgi STILL return an Internal server > > error (Apache > > 2.0.43) > > > > With the new libs and version of Nagios I received NO > > compiler warnings like > > I did previous with trends and statusmap CGI's. > > > > Any ideas now? > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft Visual Studio.NET > > comprehensive development tool, built to increase your > > productivity. Try a free online hosted session at: > > http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en From gjfrater at bechtel.com Wed Dec 4 21:27:55 2002 From: gjfrater at bechtel.com (Frater, Greg J) Date: Wed, 4 Dec 2002 12:27:55 -0800 Subject: Distributed SNMP monitoring. Message-ID: I am working on this issue for our network as we speak (type). We set out to add alerting, monitoring, and trending functionality. We chose Nagios (great product) for alerting and monitoring. We intended to use MRTG for trending and still might, though, currently I am looking at apan (and others) because it would be great to be able to leverage the Nagios web front end and the rich set of service checks it provides for data collection to be able to provide the trending or monitoring over time. I am new to this whole game so I don't know that I can add to the discussion other than to say that this is a very relevant topic for us. And keep up the good work, we are getting a lot of ooh's and ah's (sp?) when showing people Nagios. -----Original Message----- From: Jamie [mailto:jamie.baddeley at bclnz.net] Sent: Tuesday, December 03, 2002 9:47 PM To: Carroll, Jim P [Contractor]; 'Terry Baranski'; nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Distributed SNMP monitoring. All great comments Jim (as always). Noting your last paragraph: It seems to me to be a common issue - i.e integrating time-series data/trending (snmp) info with "point" info & threshold detection that nagios provides. Superficially it's easy - just do cool things with side menu..... I originally used NRG because it auto-conf'ed everything, so was easy to use. The downside is it was not so flexible. So, we moved over to Cricket+Smokeping. Seems all good (so far). But anyway, on to my point: It's wouldn't surprise me that loadsa people want to do the same Nagios+RRD&Front-End combo (but with no fries). - APAN seems pretty good but when one has a plethora of RRD front-ends out there - why would you create another one -especially when people have an investment in the rrd stored data of the existing system? (no offense fredrik). - IMHO Cacti seems to be overkill. But I could be wrong. So, can I see a show of hands as to what people's preferences are for an RRD "partner tool" for Nagios? Maybe we could all work together on making integration between the two really slick... Architecturally my preference is to let the RRD tools do the data acquisition, and let nagios pull from the (probable) local RRD file....What are people's thoughts on that? Ethan, Subhendu etc - Do you see the extension of Nagios from a monitoring/reporting tool to that plus performance analysis as a viable future development path? jamie ----- Original Message ----- From: "Carroll, Jim P [Contractor]" To: "'Terry Baranski'" ; Sent: Wednesday, December 04, 2002 7:21 AM Subject: RE: [Nagios-users] Distributed SNMP monitoring. > A few comments here. > > First, OpenNMS was recently discussed on this list. The general hubbub is > that it is a resource hog. (I've never touched it, so take this comment for > what it's worth.) Seems you'll need to spend some serious bucks on your > OpenNMS server if you want to even put it up for consideration. > > Second, Nagios rocks. It really does. That's the 'warm fuzzy' comment > which I'm sure many others on this list will embrace. Basically, any test > that you can run from a command line can be incorporated into Nagios. > Already there are many plugins which have been crafted to do some very > popular tasks. > > On tiering: I'm not exactly clear on your intent, but you can run two > Nagios servers, and have the results of one cascade over to the other with > the assistance of NSCA. Thus, the external server will display only what > it's collected, and the internal server will display what it's collected, as > well as what the external server as sent over to it. > > On down/up vs. SNMP: Nagios provides support for SNMP via plugins (most > notably check_snmp). If you want to handle traps, there are a couple of > approaches (TMTOWTDI in Perl-speak); one way would be to be running > snmptrapd on your Nagios server, and have a cronjob kick off every minute to > scrub the logfile, reformat the trap and stuff it into nagios.cmd (FIFO). > Another way would be to have the event get redirected via NSCA to the Nagios > host. Yes, Nagios has down/up checks, such as, "is something listening on > port 80 on host fizzgig or not". But some of the plugins relate to local > host metrics, such as free disk space, number of processes (with specialized > options, such as checking for zombies), free swap, etc. In these cases, you > would more likely want to configure for green/yellow/red alerts > (OK/Warning/Critical in Nagios). If you want to write your own script, > there are many examples (plugins) to follow. To get the green/yellow/red > response in Nagios, you would have your script return code 0, 1 or 2 > accordingly. One point which can be confusing to Nagios newbies, is that > things like check_disk won't work on a remote host, unless you > install/execute it on the remote host. But how to get the results to > Nagios? Ah, that's where NRPE (or NSCA, or...) come in. > > As someone else has pointed out, if you wish to chart trends, you'll want to > take a look at something like cacti (which I hope to try in the near > future). Another contributor has created APAN (which also uses RRDTool). > > I hope this gives you the needed food for thought. > > jc > > > -----Original Message----- > > From: Terry Baranski [mailto:terry at eurocompton.net] > > Sent: Monday, December 02, 2002 9:00 PM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Distributed SNMP monitoring. > > > > > > Hello. > > > > Hoping I can get some thoughts on this from those experienced with > > Nagios. > > > > I'm looking to deploy a network monitoring solution primarily > > to monitor > > host resources such as disk space, processor usage, and so forth via > > SNMP, and also to receive SNMP traps and notify accordingly. > > The hosts > > are Open/FreeBSD, Solaris, Linux, and Windows. I'm in need of a > > solution that supports tiering -- I need an external server to monitor > > exernal devices and an internal server to monitor internal > > devices, with > > the external server pumping its data to the internal server, > > making the > > internal server the central/master server. > > > > I first looked an OpenNMS, but it doesn't have tier support > > yet. Then I > > ran across Nagios, which does seem to have tier support, but > > also seems > > to be geared more towards up/down monitoring than SNMP monitoring. > > > > So, I'm wondering what those who have used Nagios think of its > > appropriateness (or lack thereof) for what I'm trying to accomplish. > > From the documentation I've read so far, it appears to me that tiered > > host resource monitoring is possible with the NRPE daemon running on > > each monitored host. Is this accurate? If so, does this > > daemon work on > > Open/FreeBSD? These OS's represent the majority of our hosts. > > > > Any help/advice on this will be greatly appreciated. > > > > Thanks, > > Terry > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Get the new Palm Tungsten T > > handheld. Power & Color in a compact size! > > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Microsoft Visual Studio.NET > comprehensive development tool, built to increase your > productivity. Try a free online hosted session at: > http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en From pete at dublerfamily.com Wed Dec 4 21:37:16 2002 From: pete at dublerfamily.com (Pete Dubler) Date: Wed, 04 Dec 2002 13:37:16 -0700 Subject: statusmap.cgi Icons References: <2CDD9C051F451F4BB0615B9547F1B4294D3B@maacmail.maac.int> Message-ID: <3DEE677C.2080000@dublerfamily.com> Brown, Any idea why the "?" would stop appearing??? If you specify a special icon for one host or service, do you have to specify one for every host and/or service? (I think not). Thanks Robertson, Brown wrote: >I know many people have had problems with showing custom icons in the statusmap cgi configuration portion of nagios. I recently got it working, but I noticed some anomolies which might be the cause of so many people either claiming to have followed proper procedure with no result. I found that regardless of properly configuration, some icon files (png,gd2,gif,jpg) will NOT show up properly. I really just had to do it by trial and error. Some icons would show up fine, and other's would show the default "unknown.***" question mark graphic. I'm still investigating, and am not sure why this is the case, but it made me wonder if some people are repeatedly trying to use the same icon graphic with negative results, and stopping there. If so, try other graphic files and see if you are also experiencing this anomoly. Thanks, Brown Robertson. > > >------------------------------------------------------- >This SF.net email is sponsored by: Microsoft Visual Studio.NET >comprehensive development tool, built to increase your >productivity. Try a free online hosted session at: >http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users > > > ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en From GPotter at MarathonOil.com Wed Dec 4 21:40:07 2002 From: GPotter at MarathonOil.com (Potter, G M (Greg)) Date: Wed, 4 Dec 2002 14:40:07 -0600 Subject: trends.cgi and statusmap.cgi still not working Message-ID: Are you using apache? If so you probably need to add the following to your httpd.conf file: SetENV LD_LIBRARY_PATH /usr/local/lib or point it to where ever your shared libraries are, and re-start your web server. Greg > -----Original Message----- > From: Evan Mann [mailto:emann at questinc.org] > Sent: Wednesday, December 04, 2002 2:33 PM > To: Potter, G M (Greg) > Subject: RE: [Nagios-users] trends.cgi and statusmap.cgi still not > working > > > [Wed Dec 04 15:31:37 2002] [error] [client 10.10.1.99] > Premature end of > script headers: trends.cgi, referer: > http://10.10.1.20/nagios/side.html > [Wed Dec 04 15:31:37 2002] [error] [client 10.10.1.99] > /usr/local/nagios/sbin/trends.cgi: error while loading shared > libraries: > libpng.so.3: cannot open shared object file: No such file or > directory, > referer: http://10.10.1.20/nagios/side.html > [Wed Dec 04 15:31:38 2002] [error] [client 10.10.1.99] > Premature end of > script headers: statusmap.cgi, referer: > http://10.10.1.20/nagios/side.html > [Wed Dec 04 15:31:38 2002] [error] [client 10.10.1.99] > /usr/local/nagios/sbin/statusmap.cgi: error while loading > shared libraries: > libpng.so.3: cannot open shared object file: No such file or > directory, > referer: http://10.10.1.20/nagios/side.html > > Well I do have one of the problems you do, but apparently > there is still a > libpng error. Not sure why though. My libpng error may be > the causing my > script headers problem too. > > -----Original Message----- > From: Potter, G M (Greg) [mailto:GPotter at MarathonOil.com] > Sent: Wednesday, December 04, 2002 3:29 PM > To: Evan Mann > Cc: Nagios-users (E-mail) > Subject: RE: [Nagios-users] trends.cgi and statusmap.cgi still not > working > > > In your Web server error log do you see an entry that says > something like > the following: > > [Tue Dec 3 07:38:37 2002] [error] [client 192.168.1.2] > Premature end of > script headers: /usr/local/nagios/sbin/statusmap.cgi > > If so we may have the same problem. > > Greg > > > > -----Original Message----- > > From: Evan Mann [mailto:emann at questinc.org] > > Sent: Wednesday, December 04, 2002 2:20 PM > > To: Potter, G M (Greg) > > Subject: RE: [Nagios-users] trends.cgi and statusmap.cgi still not > > working > > > > > > The Nagios-USers group didn't have much help for me. > > Originally I got some > > LD errors on lib dependancie swith GD, but I no logner have > > any of those > > with Nagios 1.0 and the newest GD/ZLIB/LIBPNG. So I'm > > totally out of ideas. > > > > -----Original Message----- > > From: Potter, G M (Greg) [mailto:GPotter at MarathonOil.com] > > Sent: Wednesday, December 04, 2002 3:18 PM > > To: Evan Mann > > Subject: RE: [Nagios-users] trends.cgi and statusmap.cgi still not > > working > > > > > > I have been doing some research on this problem. I believe > > that the process > > is giving a SEGFAULT when it tries to manipulate the graphics > > images. This > > is on my Solaris 7 machine. It does not SEGFAULT on my > > Solaris 8 machine. I > > have turned on some debugging in the gd modules, and added > > some debug output > > to statusmap.cgi. That along with truss are giving me some > > indication where > > the SEGFAULT is occurring. As I get more data I will post it > > to this site. > > Has anyone else been down this road and found a solution yet? > > I wouldn't > > mind using someone else's solution instead of banging my head > > against the > > wall. :-( > > > > Greg Potter > > > > > -----Original Message----- > > > From: Evan Mann [mailto:emann at questinc.org] > > > Sent: Wednesday, December 04, 2002 1:28 PM > > > To: nagios-users at lists.sourceforge.net > > > Subject: [Nagios-users] trends.cgi and statusmap.cgi still > > not working > > > > > > > > > Just compiled all newest version of jpeg-6b, zlib, libpng, and gd. > > > > > > Compiled Nagios-1.0 and 1.3.0-beta2 plugins > > > > > > Installed over my existing Nagios. > > > > > > trends.cgi and statusmap.cgi STILL return an Internal server > > > error (Apache > > > 2.0.43) > > > > > > With the new libs and version of Nagios I received NO > > > compiler warnings like > > > I did previous with trends and statusmap CGI's. > > > > > > Any ideas now? > > > > > > > > > ------------------------------------------------------- > > > This SF.net email is sponsored by: Microsoft Visual Studio.NET > > > comprehensive development tool, built to increase your > > > productivity. Try a free online hosted session at: > > > http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en From emann at questinc.org Wed Dec 4 21:50:59 2002 From: emann at questinc.org (Evan Mann) Date: Wed, 4 Dec 2002 15:50:59 -0500 Subject: trends.cgi and statusmap.cgi still not working Message-ID: Greg, You are the man. That fixed it! Evereything works now. -----Original Message----- From: Potter, G M (Greg) [mailto:GPotter at MarathonOil.com] Sent: Wednesday, December 04, 2002 3:40 PM To: Evan Mann Cc: Nagios-users (E-mail) Subject: RE: [Nagios-users] trends.cgi and statusmap.cgi still not working Are you using apache? If so you probably need to add the following to your httpd.conf file: SetENV LD_LIBRARY_PATH /usr/local/lib or point it to where ever your shared libraries are, and re-start your web server. Greg > -----Original Message----- > From: Evan Mann [mailto:emann at questinc.org] > Sent: Wednesday, December 04, 2002 2:33 PM > To: Potter, G M (Greg) > Subject: RE: [Nagios-users] trends.cgi and statusmap.cgi still not > working > > > [Wed Dec 04 15:31:37 2002] [error] [client 10.10.1.99] > Premature end of > script headers: trends.cgi, referer: > http://10.10.1.20/nagios/side.html > [Wed Dec 04 15:31:37 2002] [error] [client 10.10.1.99] > /usr/local/nagios/sbin/trends.cgi: error while loading shared > libraries: > libpng.so.3: cannot open shared object file: No such file or > directory, > referer: http://10.10.1.20/nagios/side.html > [Wed Dec 04 15:31:38 2002] [error] [client 10.10.1.99] > Premature end of > script headers: statusmap.cgi, referer: > http://10.10.1.20/nagios/side.html > [Wed Dec 04 15:31:38 2002] [error] [client 10.10.1.99] > /usr/local/nagios/sbin/statusmap.cgi: error while loading > shared libraries: > libpng.so.3: cannot open shared object file: No such file or > directory, > referer: http://10.10.1.20/nagios/side.html > > Well I do have one of the problems you do, but apparently > there is still a > libpng error. Not sure why though. My libpng error may be > the causing my > script headers problem too. > > -----Original Message----- > From: Potter, G M (Greg) [mailto:GPotter at MarathonOil.com] > Sent: Wednesday, December 04, 2002 3:29 PM > To: Evan Mann > Cc: Nagios-users (E-mail) > Subject: RE: [Nagios-users] trends.cgi and statusmap.cgi still not > working > > > In your Web server error log do you see an entry that says > something like > the following: > > [Tue Dec 3 07:38:37 2002] [error] [client 192.168.1.2] > Premature end of > script headers: /usr/local/nagios/sbin/statusmap.cgi > > If so we may have the same problem. > > Greg > > > > -----Original Message----- > > From: Evan Mann [mailto:emann at questinc.org] > > Sent: Wednesday, December 04, 2002 2:20 PM > > To: Potter, G M (Greg) > > Subject: RE: [Nagios-users] trends.cgi and statusmap.cgi still not > > working > > > > > > The Nagios-USers group didn't have much help for me. > > Originally I got some > > LD errors on lib dependancie swith GD, but I no logner have > > any of those > > with Nagios 1.0 and the newest GD/ZLIB/LIBPNG. So I'm > > totally out of ideas. > > > > -----Original Message----- > > From: Potter, G M (Greg) [mailto:GPotter at MarathonOil.com] > > Sent: Wednesday, December 04, 2002 3:18 PM > > To: Evan Mann > > Subject: RE: [Nagios-users] trends.cgi and statusmap.cgi still not > > working > > > > > > I have been doing some research on this problem. I believe > > that the process > > is giving a SEGFAULT when it tries to manipulate the graphics > > images. This > > is on my Solaris 7 machine. It does not SEGFAULT on my > > Solaris 8 machine. I > > have turned on some debugging in the gd modules, and added > > some debug output > > to statusmap.cgi. That along with truss are giving me some > > indication where > > the SEGFAULT is occurring. As I get more data I will post it > > to this site. > > Has anyone else been down this road and found a solution yet? > > I wouldn't > > mind using someone else's solution instead of banging my head > > against the > > wall. :-( > > > > Greg Potter > > > > > -----Original Message----- > > > From: Evan Mann [mailto:emann at questinc.org] > > > Sent: Wednesday, December 04, 2002 1:28 PM > > > To: nagios-users at lists.sourceforge.net > > > Subject: [Nagios-users] trends.cgi and statusmap.cgi still > > not working > > > > > > > > > Just compiled all newest version of jpeg-6b, zlib, libpng, and gd. > > > > > > Compiled Nagios-1.0 and 1.3.0-beta2 plugins > > > > > > Installed over my existing Nagios. > > > > > > trends.cgi and statusmap.cgi STILL return an Internal server > > > error (Apache > > > 2.0.43) > > > > > > With the new libs and version of Nagios I received NO > > > compiler warnings like > > > I did previous with trends and statusmap CGI's. > > > > > > Any ideas now? > > > > > > > > > ------------------------------------------------------- > > > This SF.net email is sponsored by: Microsoft Visual Studio.NET > > > comprehensive development tool, built to increase your > > > productivity. Try a free online hosted session at: > > > http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en From jcarro10 at sprintspectrum.com Wed Dec 4 21:23:41 2002 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Wed, 4 Dec 2002 14:23:41 -0600 Subject: nsca - weird. Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2E523B@PKDWB03C.ad.sprint.com> If you're concerned about the close_waits and your server is Linux based, do this: echo 120 > /proc/sys/net/ipv4/tcp_keepalive_time and add that to your rc.local as well. (By default, it's typically set to 7200, which is 2 hours, which might be considered excessive.) I don't know if this will guarantee immediate relief from your problem, but let us know if it does. jc > -----Original Message----- > From: Jasmine Chua [mailto:jasmine.chua at securecirt.com] > Sent: Wednesday, December 04, 2002 12:40 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] nsca - weird. > > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi nagios users, > > In the background process I could see that nagios is > submiting results to our > central monitoring server... but, when i tried to execute the plugin > manually. I got a timeout. > libexec # ./submit_check_result xxx.xxx.xxx.xxx users 0 > check-users-runaway > Error: Timeout after 10 seconds > On our central monitoring server, theres a lot of close_wait > sessions when i > do a netstat ..It is still receiving passive checks, but apparently.. > something is still wrong.. could anyone tell me? Has this got > to do with > latency? > > > Jasmine Chua > Security Engineer, SecureCiRT (A SBU of Z-Vance Pte Ltd) > http://www.securecirt.com > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.0.6 (GNU/Linux) > Comment: For info see http://www.gnupg.org > > iD8DBQE97aNDNgvTa7Hj2AURAgcGAJ9joFliAOUQh30a/Zu7DN82iPxDAwCghs6n > uoFFT+iLqRq62FrhzvDWl1s= > =DPQe > -----END PGP SIGNATURE----- > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Microsoft Visual Studio.NET > comprehensive development tool, built to increase your > productivity. Try a free online hosted session at: > http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en From brown.robertson at maac.net Wed Dec 4 22:02:39 2002 From: brown.robertson at maac.net (Robertson, Brown) Date: Wed, 4 Dec 2002 15:02:39 -0600 Subject: statusmap.cgi Icons Message-ID: <2CDD9C051F451F4BB0615B9547F1B4294D3D@maacmail.maac.int> Pete, The only things I did were to add xedtemplate_config_file=/usr/local/nagios/etc/test.cfg to cgi.cfg (only concerned with adding icons to hosts at this point) and I created test.cfg to which I added lines such as the following: define hostextinfo{ host_name Batman notes_url http://nagios.maac.net/batman.htm icon_image FaxServer.png icon_image_alt Batman vrml_image FaxServer.png statusmap_image FaxServer.gd2 } (Yes, all our servers are superheroes;-)) Now, in reference to your question about multiple references to an icon for multiple hosts. That's exactly what I did. I created entries such as the above for "every" single host that I wanted a special graphic attributed to. My graphics were located in /usr/local/nagios/share/images/logos Now, the problem I experienced was that some graphic files would show up, while others did not. No rhyme or reason, I just had to experiment with graphic files until I found a collection that would actually show up. As far as your question marks going away. I would make sure unknown.gd2,png,etc. is not corrupted, and if not, delete all contents of your hostextinfo.cfg file, and remove the xedtemplate reference in your cgi.cfg file. See if it comes back at that point, and possibly start over. I tried not to make too many changes at once, and only added a few hosts at a time. Good luck. Brown. -----Original Message----- From: Pete Dubler [mailto:pete at dublerfamily.com] Sent: Wed 12/4/2002 2:37 PM To: Robertson, Brown Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] statusmap.cgi Icons Brown, Any idea why the "?" would stop appearing??? If you specify a special icon for one host or service, do you have to specify one for every host and/or service? (I think not). Thanks Robertson, Brown wrote: >I know many people have had problems with showing custom icons in the statusmap cgi configuration portion of nagios. I recently got it working, but I noticed some anomolies which might be the cause of so many people either claiming to have followed proper procedure with no result. I found that regardless of properly configuration, some icon files (png,gd2,gif,jpg) will NOT show up properly. I really just had to do it by trial and error. Some icons would show up fine, and other's would show the default "unknown.***" question mark graphic. I'm still investigating, and am not sure why this is the case, but it made me wonder if some people are repeatedly trying to use the same icon graphic with negative results, and stopping there. If so, try other graphic files and see if you are also experiencing this anomoly. Thanks, Brown Robertson. > > >------------------------------------------------------- >This SF.net email is sponsored by: Microsoft Visual Studio.NET >comprehensive development tool, built to increase your >productivity. Try a free online hosted session at: >http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users > > > ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en From whiatt at upstanding.com Wed Dec 4 23:10:03 2002 From: whiatt at upstanding.com (Hiatt, William) Date: Wed, 4 Dec 2002 14:10:03 -0800 Subject: Monitoring Cisco routers links for up/down status? Message-ID: <71520D1F83A0C6408D99155D4CCAE0AA02B74B@exch-be-01.upstanding.com> I have a couple of Cisco 3620 routers I would like to monitor. Anyone doing this currently with Nagios? Thanks william ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en From felliott at jobservice.us Wed Dec 4 23:16:35 2002 From: felliott at jobservice.us (Fred Elliott) Date: Wed, 4 Dec 2002 15:16:35 -0700 Subject: CGI Access Problem Message-ID: <8D789BACA502764580EF6A4C137E4D1B09A2EB@SRVEXCHCLS1.labor.state.id.us> I have been running Netsaint for quit a while. I decided to build a new server and install Nagios 1.0 using Red Hat 8.0. Unfortunately I cannot get any of the pages from the config files. When I click on the Nagios web site side bar, it gives me a OBJECT NOT FOUND, Error 404. I have compared my configuration between the Netsaint and the Nagios and can not figure what I am doing incorrectly. Any suggestions? Fred -------------- next part -------------- An HTML attachment was scrubbed... URL: From jlyons30 at yahoo.com Wed Dec 4 23:52:05 2002 From: jlyons30 at yahoo.com (Jon Lyons) Date: Wed, 4 Dec 2002 14:52:05 -0800 (PST) Subject: Monitoring Cisco routers links for up/down status? In-Reply-To: <71520D1F83A0C6408D99155D4CCAE0AA02B74B@exch-be-01.upstanding.com> References: <71520D1F83A0C6408D99155D4CCAE0AA02B74B@exch-be-01.upstanding.com> Message-ID: <20021204225205.53786.qmail@web21501.mail.yahoo.com> yes, check_ifstatus plugin.... "Hiatt, William" wrote:I have a couple of Cisco 3620 routers I would like to monitor. Anyone doing this currently with Nagios? Thanks william ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From shawn at pocketinet.com Thu Dec 5 00:07:19 2002 From: shawn at pocketinet.com (Shawn Rose) Date: Wed, 4 Dec 2002 15:07:19 -0800 Subject: Monitoring Cisco routers links for up/down status? In-Reply-To: <20021204225205.53786.qmail@web21501.mail.yahoo.com> References: <20021204225205.53786.qmail@web21501.mail.yahoo.com> Message-ID: <001f01c29be9$e541dfa0$b30210ac@pocketinet.com> Where might I find this plugin. I don't see it listed at the CVS site or anywhere else. Thank you, Shawn -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Jon Lyons Sent: Wednesday, December 04, 2002 2:52 PM To: Hiatt, William; nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Monitoring Cisco routers links for up/down status? yes, check_ifstatus plugin.... "Hiatt, William" wrote: I have a couple of Cisco 3620 routers I would like to monitor. Anyone doing this currently with Nagios? Thanks william ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users _____ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From jlyons30 at yahoo.com Thu Dec 5 00:21:38 2002 From: jlyons30 at yahoo.com (Jon Lyons) Date: Wed, 4 Dec 2002 15:21:38 -0800 (PST) Subject: Monitoring Cisco routers links for up/down status? In-Reply-To: <001f01c29be9$e541dfa0$b30210ac@pocketinet.com> References: <001f01c29be9$e541dfa0$b30210ac@pocketinet.com> Message-ID: <20021204232138.58552.qmail@web21501.mail.yahoo.com> It comes with the default plugins, at least it did, try looking in your /usr/local/libexec/nagios or /usr/local/nagios/libexec Shawn Rose wrote: v\:* {behavior:url(#default#VML);}o\:* {behavior:url(#default#VML);}w\:* {behavior:url(#default#VML);}.shape {behavior:url(#default#VML);} Where might I find this plugin. I don?t see it listed at the CVS site or anywhere else. Thank you, Shawn -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Jon Lyons Sent: Wednesday, December 04, 2002 2:52 PM To: Hiatt, William; nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Monitoring Cisco routers links for up/down status? yes, check_ifstatus plugin.... "Hiatt, William" wrote: --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From shawn at pocketinet.com Thu Dec 5 00:25:31 2002 From: shawn at pocketinet.com (Shawn Rose) Date: Wed, 4 Dec 2002 15:25:31 -0800 Subject: Monitoring Cisco routers links for up/down status? In-Reply-To: <20021204232138.58552.qmail@web21501.mail.yahoo.com> References: <20021204232138.58552.qmail@web21501.mail.yahoo.com> Message-ID: <003f01c29bec$7042d350$b30210ac@pocketinet.com> Ahh.. poo.. there it is.. overlooked it the first time. Thanks! Shawn -----Original Message----- From: Jon Lyons [mailto:jlyons30 at yahoo.com] Sent: Wednesday, December 04, 2002 3:22 PM To: Shawn Rose; 'Hiatt, William'; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Monitoring Cisco routers links for up/down status? It comes with the default plugins, at least it did, try looking in your /usr/local/libexec/nagios or /usr/local/nagios/libexec Shawn Rose wrote: Where might I find this plugin. I dont see it listed at the CVS site or anywhere else. Thank you, Shawn -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Jon Lyons Sent: Wednesday, December 04, 2002 2:52 PM To: Hiatt, William; nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Monitoring Cisco routers links for up/down status? yes, check_ifstatus plugin.... "Hiatt, William" wrote: _____ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From Stanley.Hopcroft at IPAustralia.Gov.AU Thu Dec 5 00:36:57 2002 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Thu, 5 Dec 2002 10:36:57 +1100 Subject: Monitoring Cisco routers links for up/down status? In-Reply-To: <001f01c29be9$e541dfa0$b30210ac@pocketinet.com>; from shawn@pocketinet.com on Wed, Dec 04, 2002 at 03:07:19PM -0800 References: <20021204225205.53786.qmail@web21501.mail.yahoo.com> <001f01c29be9$e541dfa0$b30210ac@pocketinet.com> Message-ID: <20021205103656.C36152@IPAustralia.Gov.AU> Dear Sir, On Wed, Dec 04, 2002 at 03:07:19PM -0800, Shawn Rose wrote: > Where might I find this plugin. I don't see it listed at the CVS site > or anywhere else. > > Thank you, > > Shawn > > Plugins that are not part of the core are found in the /contrib directory of both the plugin distro and the CVS. These are contributed plugins that may or may not work for you, and may require porting effort on your part. check_if* has been part of the plugin distro for some years. Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en From shawn at pocketinet.com Thu Dec 5 00:30:23 2002 From: shawn at pocketinet.com (Shawn Rose) Date: Wed, 4 Dec 2002 15:30:23 -0800 Subject: Monitoring Cisco routers links for up/down status? In-Reply-To: <20021204232138.58552.qmail@web21501.mail.yahoo.com> References: <20021204232138.58552.qmail@web21501.mail.yahoo.com> Message-ID: <004401c29bed$1e343e90$b30210ac@pocketinet.com> Well that's odd.. It's NOT in the nagios plugin directory but I do see it in the libexec directory. So I can't see a help file for the syntax. Would you be able to provide that? Thank you, Shawn -----Original Message----- From: Jon Lyons [mailto:jlyons30 at yahoo.com] Sent: Wednesday, December 04, 2002 3:22 PM To: Shawn Rose; 'Hiatt, William'; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Monitoring Cisco routers links for up/down status? It comes with the default plugins, at least it did, try looking in your /usr/local/libexec/nagios or /usr/local/nagios/libexec Shawn Rose wrote: Where might I find this plugin. I dont see it listed at the CVS site or anywhere else. Thank you, Shawn -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Jon Lyons Sent: Wednesday, December 04, 2002 2:52 PM To: Hiatt, William; nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Monitoring Cisco routers links for up/down status? yes, check_ifstatus plugin.... "Hiatt, William" wrote: _____ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From shawn at pocketinet.com Thu Dec 5 01:13:37 2002 From: shawn at pocketinet.com (Shawn Rose) Date: Wed, 4 Dec 2002 16:13:37 -0800 Subject: Monitoring Cisco routers links for up/down status? In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB2E5245@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB2E5245@PKDWB03C.ad.sprint.com> Message-ID: <004f01c29bf3$283c8bd0$b30210ac@pocketinet.com> Odd this is when I try that I get this error message. Now this is trying it from the libexec directory. [nagios at freekflyer libexec]$ ./check_ifstatus -help Can't locate Net/SNMP.pm in @INC (@INC contains: /usr/local/nagios/libexec /usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl .) at ./check_ifstatus line 35. BEGIN failed--compilation aborted at ./check_ifstatus line 35. Any ideas? Thanks, Shawn -----Original Message----- From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] Sent: Wednesday, December 04, 2002 4:09 PM To: 'Shawn Rose'; 'Jon Lyons'; 'Hiatt, William'; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Monitoring Cisco routers links for up/down status? check_ifstatus --help -----Original Message----- From: Shawn Rose [mailto:shawn at pocketinet.com] Sent: Wednesday, December 04, 2002 5:30 PM To: 'Jon Lyons'; 'Hiatt, William'; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Monitoring Cisco routers links for up/down status? Well that's odd.. It's NOT in the nagios plugin directory but I do see it in the libexec directory. So I can't see a help file for the syntax. Would you be able to provide that? Thank you, Shawn -----Original Message----- From: Jon Lyons [mailto:jlyons30 at yahoo.com] Sent: Wednesday, December 04, 2002 3:22 PM To: Shawn Rose; 'Hiatt, William'; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Monitoring Cisco routers links for up/down status? It comes with the default plugins, at least it did, try looking in your /usr/local/libexec/nagios or /usr/local/nagios/libexec Shawn Rose wrote: Where might I find this plugin. I dont see it listed at the CVS site or anywhere else. Thank you, Shawn -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Jon Lyons Sent: Wednesday, December 04, 2002 2:52 PM To: Hiatt, William; nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Monitoring Cisco routers links for up/down status? yes, check_ifstatus plugin.... "Hiatt, William" wrote: _____ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcarro10 at sprintspectrum.com Thu Dec 5 01:09:24 2002 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Wed, 4 Dec 2002 18:09:24 -0600 Subject: Monitoring Cisco routers links for up/down sta tus? Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2E5245@PKDWB03C.ad.sprint.com> check_ifstatus --help -----Original Message----- From: Shawn Rose [mailto:shawn at pocketinet.com] Sent: Wednesday, December 04, 2002 5:30 PM To: 'Jon Lyons'; 'Hiatt, William'; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Monitoring Cisco routers links for up/down status? Well that's odd.. It's NOT in the nagios plugin directory but I do see it in the libexec directory. So I can't see a help file for the syntax. Would you be able to provide that? Thank you, Shawn -----Original Message----- From: Jon Lyons [mailto:jlyons30 at yahoo.com] Sent: Wednesday, December 04, 2002 3:22 PM To: Shawn Rose; 'Hiatt, William'; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Monitoring Cisco routers links for up/down status? It comes with the default plugins, at least it did, try looking in your /usr/local/libexec/nagios or /usr/local/nagios/libexec Shawn Rose wrote: Where might I find this plugin. I dont see it listed at the CVS site or anywhere else. Thank you, Shawn -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Jon Lyons Sent: Wednesday, December 04, 2002 2:52 PM To: Hiatt, William; nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Monitoring Cisco routers links for up/down status? yes, check_ifstatus plugin.... "Hiatt, William" wrote: _____ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve at sliderule.demon.co.uk Thu Dec 5 01:42:02 2002 From: steve at sliderule.demon.co.uk (Steve Burton) Date: Thu, 05 Dec 2002 00:42:02 +0000 Subject: 3d Status Maps Message-ID: <3DEEA0DA.6B564ED0@sliderule.demon.co.uk> Hi, I've been using nagios for about a month now and well, it just works! Nice operation and nice interface. We've been nothing but impressed. But we want MORE. I downloaded and installed the Cortona plugin to investigate 3d maps as the 2d one is now becoming too cluttered but I've discovered that once I set it to user supplied co-ordinates, I'm not that clever at working out the 3d co-ordinates. I sat there with a calculator and my friend Pythagorus but I can't seem to crack it. Before I move into overdrive and try to program this, has anyone else done it? I'd really appreciate some tips or better, a solution. Steve -- Steve Burton Webmaster & Sub-optimal Coder ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en From email-lists at surestorm.com Thu Dec 5 02:15:22 2002 From: email-lists at surestorm.com (Jonathan) Date: Thu, 5 Dec 2002 02:15:22 +0100 Subject: Monitoring Cisco routers links for up/down status? References: <004f01c29bf3$283c8bd0$b30210ac@pocketinet.com> Message-ID: <004301c29bfb$c91cce40$050a0a0a@WATERFALLS> hi all, hi group, what you need is to download the perl module SNMP.pm from the modules group Net in CPAN, so, go to search.cpan.org and insert the line (without quotes) "Net/SNMP.pm" after find a lot of snmp perl modules style-like, find exactly Net/SNMP.pm and download de TGZ compressed BINARY files download it in you nagios box, in a temp directory using the syntax "tar -zxvf .tgz", enter the expanded directory and type this... perl Makefile.PL make all make install if everything goes right you will be able to execute ./check_ifstatus --help if you need some other perl module just catch the name in the error lines, go to search.cpan.org and repeat the process. good luck by! ----- Original Message ----- From: Shawn Rose To: 'Carroll, Jim P [Contractor]' ; 'Jon Lyons' ; 'Hiatt, William' ; nagios-users at lists.sourceforge.net Sent: Thursday, December 05, 2002 1:13 AM Subject: RE: [Nagios-users] Monitoring Cisco routers links for up/down status? Odd this is when I try that I get this error message. Now this is trying it from the libexec directory. [nagios at freekflyer libexec]$ ./check_ifstatus -help Can't locate Net/SNMP.pm in @INC (@INC contains: /usr/local/nagios/libexec /usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl .) at ./check_ifstatus line 35. BEGIN failed--compilation aborted at ./check_ifstatus line 35. Any ideas? Thanks, Shawn -----Original Message----- From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] Sent: Wednesday, December 04, 2002 4:09 PM To: 'Shawn Rose'; 'Jon Lyons'; 'Hiatt, William'; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Monitoring Cisco routers links for up/down status? check_ifstatus --help -----Original Message----- From: Shawn Rose [mailto:shawn at pocketinet.com] Sent: Wednesday, December 04, 2002 5:30 PM To: 'Jon Lyons'; 'Hiatt, William'; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Monitoring Cisco routers links for up/down status? Well that's odd.. It's NOT in the nagios plugin directory but I do see it in the libexec directory. So I can't see a help file for the syntax. Would you be able to provide that? Thank you, Shawn -----Original Message----- From: Jon Lyons [mailto:jlyons30 at yahoo.com] Sent: Wednesday, December 04, 2002 3:22 PM To: Shawn Rose; 'Hiatt, William'; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Monitoring Cisco routers links for up/down status? It comes with the default plugins, at least it did, try looking in your /usr/local/libexec/nagios or /usr/local/nagios/libexec Shawn Rose wrote: Where might I find this plugin. I dont see it listed at the CVS site or anywhere else. Thank you, Shawn -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Jon Lyons Sent: Wednesday, December 04, 2002 2:52 PM To: Hiatt, William; nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Monitoring Cisco routers links for up/down status? yes, check_ifstatus plugin.... "Hiatt, William" wrote: ---------------------------------------------------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcarro10 at sprintspectrum.com Thu Dec 5 02:24:20 2002 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Wed, 4 Dec 2002 19:24:20 -0600 Subject: Monitoring Cisco routers links for up/down sta tus? Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2E5247@PKDWB03C.ad.sprint.com> To quote Subendu Ghosh from Aug.21/2002: download Net::SNMP modules from CPAN http://www.perl.com/CPAN/modules/by-authors/id/D/DT/DTOWN/ gunzip, untar follow the INSTALL instructions. Or as root on your system, run the following.. perl -MCPAN -e "install Net::SNMP" Note: current version of Net::SNMP (v4.0.x) requires Perl 5.6. If you are using a older Perl, you can use Net::SNMP v3.65. -sg jc -----Original Message----- From: Shawn Rose [mailto:shawn at pocketinet.com] Sent: Wednesday, December 04, 2002 6:14 PM To: Carroll, Jim P [Contractor]; 'Jon Lyons'; 'Hiatt, William'; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Monitoring Cisco routers links for up/down status? Odd this is when I try that I get this error message. Now this is trying it from the libexec directory... [nagios at freekflyer libexec]$ ./check_ifstatus -help Can't locate Net/SNMP.pm in @INC (@INC contains: /usr/local/nagios/libexec /usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl .) at ./check_ifstatus line 35. BEGIN failed--compilation aborted at ./check_ifstatus line 35. Any ideas? Thanks, Shawn -----Original Message----- From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] Sent: Wednesday, December 04, 2002 4:09 PM To: 'Shawn Rose'; 'Jon Lyons'; 'Hiatt, William'; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Monitoring Cisco routers links for up/down status? check_ifstatus --help -----Original Message----- From: Shawn Rose [mailto:shawn at pocketinet.com] Sent: Wednesday, December 04, 2002 5:30 PM To: 'Jon Lyons'; 'Hiatt, William'; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Monitoring Cisco routers links for up/down status? Well that's odd.. It's NOT in the nagios plugin directory but I do see it in the libexec directory. So I can't see a help file for the syntax. Would you be able to provide that? Thank you, Shawn -----Original Message----- From: Jon Lyons [mailto:jlyons30 at yahoo.com] Sent: Wednesday, December 04, 2002 3:22 PM To: Shawn Rose; 'Hiatt, William'; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Monitoring Cisco routers links for up/down status? It comes with the default plugins, at least it did, try looking in your /usr/local/libexec/nagios or /usr/local/nagios/libexec Shawn Rose wrote: Where might I find this plugin. I dont see it listed at the CVS site or anywhere else. Thank you, Shawn -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Jon Lyons Sent: Wednesday, December 04, 2002 2:52 PM To: Hiatt, William; nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Monitoring Cisco routers links for up/down status? yes, check_ifstatus plugin.... "Hiatt, William" wrote: _____ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From benjy at feen.com Thu Dec 5 02:46:07 2002 From: benjy at feen.com (Benjamin Feen) Date: Wed, 4 Dec 2002 17:46:07 -0800 Subject: Converting mon plugins to Nagios plugins? Message-ID: <20021205014607.GB23545@pianosa.catch22.org> Hiya! I'm going to be setting up Nagios to replace an existing distributed monitoring system based on mon. We have a number of custom mon plugins scripts, and, being unfamiliar with both mon and Nagios, I'm interested in any advice anyone might have... is it fairly straightforward to make mon plugins play nicely with Nagios? Thanks! Benjamin -- Benjamin Feen benjamin(AT)feen.com http://www.monkeybagel.com ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en From ChrisF at winterlink.net Thu Dec 5 03:04:46 2002 From: ChrisF at winterlink.net (Chris Fairbanks) Date: Wed, 4 Dec 2002 18:04:46 -0800 Subject: Permission Error Message-ID: <11C80DA1026CF545921B280740C440ED8BA604@exchange1.corp.winterlink.net> :) Well does anyone else have any other ideas?? Thanks, Chris -----Original Message----- From: Tom Welsh [mailto:twelsh at square-box.com] Sent: Wednesday, December 04, 2002 1:36 AM To: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Permission Error Told you it was stupid, I thought that just after id pressed send. DOH! -----Original Message----- From: Chris Fairbanks [mailto:ChrisF at winterlink.net] Sent: 04 December 2002 04:52 To: Tom Welsh Cc: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Permission Error That's what a htpasswd file looks like. Username:cryptedpassword. I just removed the crypted password. -Chris -----Original Message----- From: Tom Welsh [mailto:twelsh at square-box.com] Sent: Tuesday, December 03, 2002 5:17 PM To: Chris Fairbanks Subject: RE: [Nagios-users] Permission Error Now this may seem a bit stupid but here goes... Contacts.cfg contact_name chrisf does not match Htpasswd.users chrisf:removed Cheers Tom Welsh -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Chris Fairbanks Sent: 03 December 2002 22:15 To: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Permission Error The user was added to the htpasswd.users file, contacts.cfg and added to the contactgroups.cfg. See below. Contacts.cfg: ------------------------- define contact{ contact_name chrisf alias Chris Fairbanks service_notification_period 24x7 host_notification_period 24x7 service_notification_options w,u,c,r host_notification_options d,u,r service_notification_commands notify-by-email host_notification_commands host-notify-by-email email chrisf at winterlink.net } Contactgroups.cfg: -------------------------- define contactgroup{ contactgroup_name support_group alias Winterlink Support members support,chrisf } Htpasswd.users -------------------------- chrisf:removed Any other ideas or places to look? Like I said, I read through all the FAQs and Docs and everything seems to be fine. Thanks, Chris -----Original Message----- From: Pascal Miquet [mailto:p.miquet at hafiba.fr] Sent: Tuesday, December 03, 2002 3:36 AM To: Chris Fairbanks Cc: Nagios users Subject: Re: [Nagios-users] Permission Error Do you have added the chrisf user into the contacts.cgi file, and also set the contactgroup.cgi. HTH Regards ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en From nagios at nagios.org Thu Dec 5 03:12:18 2002 From: nagios at nagios.org (Ethan Galstad) Date: Wed, 04 Dec 2002 20:12:18 -0600 Subject: Converting mon plugins to Nagios plugins? In-Reply-To: <20021205014607.GB23545@pianosa.catch22.org> References: <20021205014607.GB23545@pianosa.catch22.org> Message-ID: <3DEE61A2.8579.29AF230@localhost> Mon plugins might work almost out of the box with Nagios. However, I believe most mon plugins require their own config files, so you might have to do a bit of tweaking to get things to work properly. As basic overview of plugin development guidelines (i.e. how to write Nagios plugins) can be found at: http://nagiosplug.sourceforge.net/developer-guidelines.html On 4 Dec 2002 at 17:46, Benjamin Feen wrote: > Hiya! > > I'm going to be setting up Nagios to replace an existing distributed > monitoring system based on mon. We have a number of custom mon plugins scripts, > and, being unfamiliar with both mon and Nagios, I'm interested in any advice > anyone might have... is it fairly straightforward to make mon plugins play > nicely with Nagios? > > Thanks! > Benjamin > > -- > Benjamin Feen > benjamin(AT)feen.com > http://www.monkeybagel.com > > > ------------------------------------------------------- > This SF.net email is sponsored by: Microsoft Visual Studio.NET > comprehensive development tool, built to increase your > productivity. Try a free online hosted session at: > http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > Ethan Galstad, Nagios Developer --- Email: nagios at nagios.org Website: http://www.nagios.org ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en From Stanley.Hopcroft at IPAustralia.Gov.AU Thu Dec 5 03:13:50 2002 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Thu, 5 Dec 2002 13:13:50 +1100 Subject: Converting mon plugins to Nagios plugins? In-Reply-To: <20021205014607.GB23545@pianosa.catch22.org>; from benjy@feen.com on Wed, Dec 04, 2002 at 05:46:07PM -0800 References: <20021205014607.GB23545@pianosa.catch22.org> Message-ID: <20021205131347.L36152@IPAustralia.Gov.AU> The only requirements of a Nagios plugin are . that it sets a return code as documented (see developing your own plugins in the wonderful docco) In other words, the plugin should only exit with a Nagios defined return code. . it outputs something (probably a space is sufficient but I can't recall). This ouptut is _part_ of what gets sent to you in a notification. So it's an opportunity to be informative. On Wed, Dec 04, 2002 at 05:46:07PM -0800, Benjamin Feen wrote: > Hiya! > > I'm going to be setting up Nagios to replace an existing distributed > monitoring system based on mon. We have a number of custom mon plugins scripts, > and, being unfamiliar with both mon and Nagios, I'm interested in any advice > anyone might have... is it fairly straightforward to make mon plugins play > nicely with Nagios? > > Thanks! > Benjamin > It cannot be hard because the Nagios requirements are so minimal. Have a look at the plugin-scripts for some encouragement. Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en From nagios at nagios.org Thu Dec 5 03:25:45 2002 From: nagios at nagios.org (Ethan Galstad) Date: Wed, 04 Dec 2002 20:25:45 -0600 Subject: check_nrpe socket time Message-ID: <3DEE64C9.21611.2A74266@localhost> Whoops - sent the original reply to the devel list on accident. ------- Forwarded message follows ------- How is nrpe being run on the remote host? Via inetd, xinetd, or as a standalone daemon. If under xinetd, it could be that you've hit some kind of limit based on your xinetd config (per_source and max_load directives come to mind) - check the man pages for xinetd.conf(5) for more info. The Nagios host may be causing excessive load (CPU/MEM/SWAP) because several child processes are waiting for the check_nrpe plugin to finish before they can exit. Sounds like the nrpe daemon might be backlogged on connections, which might point to some tweaking needed on the remote host side. On 4 Dec 2002 at 13:24, Carroll, Jim P [Contractor] wrote: > Yes! I made this observation/complaint on the list a while back, back when > I had nagios installed on an underpowered old PC. Nobody had a comment to > make. > > Since then (much more recently), I've had it happen again. This was when I > added quite a few NRPE checks across several Linux boxen, bumping my total > service checks from 800+ to 1100+. > > Here are things I've done since that time: > > - posted a question to the list: scalability of NRPE vs. NSCA > - set max_concurrent_checks to 200 > - split the software disk mirror (I/O was getting hammered) > - increased swap (from 50% of RAM to 200% of RAM) > - set max_concurrent_checks to 0 > - noticed that while NRPE checks didn't fail, system would occasionally be > very slow > - set max_concurrent_checks to 400 > > I still haven't had any response to my scalability/NRPE/NSCA query on this > list. I haven't ruled out NSCA as possibly a better way to go. It just > means cobbling some scripts together. If I knew for certain that the NSCA > approach is an order of magnitude more scalable than using NRPE, I'd jump on > it in a heartbeat. > > BTW, the docs have suggestions for improving overall performance. The one > suggestion which stuck in my mind was to get /usr/local/nagios/var onto a > ramdisk. I don't think that would help in my situation, but I do have the > option of putting it over on another spindle (the former mirror). > > Let me know if any of my observations/suggestions help you out. > > jc > > > -----Original Message----- > > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > > Sent: Wednesday, December 04, 2002 11:16 AM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] check_nrpe socket timeout > > > > > > I've been periodically encountering check_nrpe socket timeout > > errors for > > some time. Further checks into the status > > of the systems where this is occurring does not show any > > apparent problems. > > Has anyone had similar occurrences? > > ------- End of forwarded message ------- Ethan Galstad, Nagios Developer --- Email: nagios at nagios.org Website: http://www.nagios.org ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en From nagray at austin.rr.com Thu Dec 5 03:21:48 2002 From: nagray at austin.rr.com (Nick Gray) Date: Wed, 4 Dec 2002 20:21:48 -0600 Subject: New user to nagios with a service problem Message-ID: <20021204202148.C16359@celestial.graysdepot.org> All, I configured most of Nagios straight "out of the box" and it all made sense and I am running tests. One thing that I can figure out is on the server that it is running on I get OKAYs on private services (i.e. disk space, processes) but cannot get a return from services such as HTTP or PING. I am sure I have missed something. If I run these commands by hand they work. Here is a little output from the status log 1039054763] SERVICE;celestial;FTP;CRITICAL;1/3;HARD;1039054619;1039054919;ACTIVE;1;1;1;1039050448;0;CRITICAL;0;0;0;0;0;0;1;0;11;1;0;0.00;0;1;1;1;Socket timeout after 10 seconds [1039054763] SERVICE;celestial;HTTP;CRITICAL;1/3;HARD;1039054738;1039054858;ACTIVE;1;1;1;1039050718;0;CRITICAL;0;0;0;0;0;0;1;0;10;1;0;0.00;0;1;1;1;Socket timeout after 10 seconds [1039054763] SERVICE;celestial;PING;CRITICAL;1/3;HARD;1039054550;1039054850;ACTIVE;1;1;1;1039050409;0;CRITICAL;0;0;0;0;0;0;1;0;10;1;0;0.00;0;1;1;1;CRITICAL - Plugin timed out after 10 seconds [1039054763] SERVICE;celestial;POP3;CRITICAL;1/3;HARD;1039054619;1039054919;ACTIVE;1;1;1;1039050448;0;CRITICAL;0;0;0;0;0;0;1;0;11;1;0;0.00;0;1;1;1;Socket timeout after 10 seconds [1039054763] SERVICE;celestial;SMTP;CRITICAL;1/3;HARD;1039054618;1039054798;ACTIVE;1;1;1;1039050718;0;CRITICAL;0;0;0;0;0;0;1;60;10;1;0;0.00;0;1;1;1;Socket timeout after 10 seconds [1039054763] SERVICE;celestial;Total Processes;OK;1/3;HARD;1039054549;1039054849;ACTIVE;1;1;1;1039050303;0;OK;0;0;0;0;0;0;1;0;0;1;0;0.00;0;1;1;1;OK - 84 processes running with STATE = RSZDT [1039054763] SERVICE;gecko;PING;OK;1/3;HARD;1039054679;1039054979;ACTIVE;1;1;1;1039051388;0;OK;969;0;0;0;0;0;1;0;4;1;0;0.00;0;1;1;1;PING OK - Packet loss = 0%, RTA = 77.37 ms Thanks in advance Nix ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en From sghosh at sghosh.org Thu Dec 5 06:18:07 2002 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Thu, 5 Dec 2002 00:18:07 -0500 (EST) Subject: CGI Access Problem In-Reply-To: <8D789BACA502764580EF6A4C137E4D1B09A2EB@SRVEXCHCLS1.labor.state.id.us> References: <8D789BACA502764580EF6A4C137E4D1B09A2EB@SRVEXCHCLS1.labor.state.id.us> Message-ID: default cgi path has changed. /nagios/cgi-bin/ ?? On Wed, 4 Dec 2002, Fred Elliott wrote: > I have been running Netsaint for quit a while. I decided to build a new > server and install Nagios 1.0 using Red Hat 8.0. Unfortunately I cannot > get any of the pages from the config files. When I click on the Nagios > web site side bar, it gives me a OBJECT NOT FOUND, Error 404. > > > > I have compared my configuration between the Netsaint and the Nagios and > can not figure what I am doing incorrectly. Any suggestions? > > > > Fred > > -- ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en From stoppe at adesso.de Thu Dec 5 07:58:26 2002 From: stoppe at adesso.de (Christoph Stoppe) Date: Thu, 5 Dec 2002 07:58:26 +0100 Subject: Temptrax Question In-Reply-To: References: Message-ID: Hi, nagios-users-admin at lists.sourceforge.net wrote on 04.12.2002 15:21:03: > I have attached the Temptrax 2000 to my RedHat 7.3 server. I can get the > check_temptrax command to work from the command line but I get a (No > output!) message from Nagios in the browser. I am using Nagios 1.0 dated > 11.24.02 and the template-based configuration for my files. As i wrote a few days ago to the mailinglist: The same problem here, the check_temptrax command stopped working when we switched from nagios 1.0b5 to nagios 1.0b6 (and a few days ago to version 1.0). It works perfectly from the command line and i'm absolutly clueless, why it shouldn't give output to nagios... At our site it's running on a SuSE 7.1 based system. Kind regards, Christoph Stoppe -- /-------------------------------------------------------------\ | a d e s s o AG | Fon : +49 231 930 - 9342 | | Stockholmer Allee 24 | Fax : +49 231 930 - 9331 | | 44269 Dortmund | eMail: stoppe at adesso.de | \-------------------------------------------------------------/ ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en From naoki at valuecommerce.ne.jp Thu Dec 5 08:19:58 2002 From: naoki at valuecommerce.ne.jp (Naoki) Date: Thu, 05 Dec 2002 16:19:58 +0900 Subject: Script to parse status.log References: <000a01c297d3$049bacc0$0400a8c0@squarebox.com> Message-ID: <3DEEFE1E.2040601@valuecommerce.ne.jp> Who wants to help clean this up? #!/bin/bash echo echo " -= NAGIOS STATUS =-" date echo grep HOST /usr/local/nagios/var/status.log | awk -F\; '{if ($3=="DOWN") {print $2," - \033[0;31m",$3,"\033[0;0m"} else if ($3=="UP") { print "\033[0;0m",$2," - ",$3} }' grep SERVICE /usr/local/nagios/var/status.log | awk -F\; '{if ($4=="CRITICAL") {print $2,"\t \t",$3,"\t \t\033[0;31m",$4,"\033[0;0m"} else if ($4="OK") { print "\033[0m",$2,"\t \t",$3,"\t \t",$4} }' Prints out this : -= NAGIOS STATUS =- Thu Dec 5 15:18:50 JST 2002 bugger - UP booger - UP mundane - DOWN asym - DOWN snort check_ssh OK kampai check_ssh OK zinc check_ssh CRITICAL With nice ansi colours. ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en From jasmine.chua at securecirt.com Thu Dec 5 08:32:48 2002 From: jasmine.chua at securecirt.com (Jasmine Chua) Date: Thu, 5 Dec 2002 15:32:48 +0800 Subject: nsca - weird. (part 2) In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB2E523B@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB2E523B@PKDWB03C.ad.sprint.com> Message-ID: <200212051532.54690.jasmine.chua@securecirt.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I have tested what you have recommended me. To change the default to 120 instead of 2 hours... for tcp_keepalive_time but things still do not work.I am still getting lots of nsca close_waits. My check execution time is currently : 0 / 80 / 2.955 sec My check Latency: 415 / 936 / 655.136 sec I have been trying to tweak the max_concurrent_checks and service_reaper_frequency already, but its all futile. Seems like my central monitoring server is running very slowly and not processing service checks fast enough. For my central monitoring server: SERVICE SCHEDULING INFORMATION ------------------------------- Total services: 143 Total hosts: 21 Command check interval: -1 sec Check reaper interval: 30 sec Inter-check delay method: SMART Average check interval: 93.566 sec Inter-check delay: 0.654 sec Interleave factor method: SMART Average services per host: 6.810 Service interleave factor: 7 Initial service check scheduling info: -------------------------------------- First scheduled check: 1039073446 -> Thu Dec 5 15:30:46 2002 Last scheduled check: 1039073541 -> Thu Dec 5 15:32:21 2002 Rough guidelines for max_concurrent_checks value: ------------------------------------------------- Absolute minimum value: 46 Recommend value: 138 Anyone help? On Thursday 05 December 2002 04:23, Carroll, Jim P [Contractor] wrote: > If you're concerned about the close_waits and your server is Linux based, > do this: > > echo 120 > /proc/sys/net/ipv4/tcp_keepalive_time > > and add that to your rc.local as well. > > (By default, it's typically set to 7200, which is 2 hours, which might be > considered excessive.) > > I don't know if this will guarantee immediate relief from your problem, but > let us know if it does. > > jc > > > -----Original Message----- > > From: Jasmine Chua [mailto:jasmine.chua at securecirt.com] > > Sent: Wednesday, December 04, 2002 12:40 AM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] nsca - weird. > > > > > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > > Hi nagios users, > > > > In the background process I could see that nagios is > > submiting results to our > > central monitoring server... but, when i tried to execute the plugin > > manually. I got a timeout. > > libexec # ./submit_check_result xxx.xxx.xxx.xxx users 0 > > check-users-runaway > > Error: Timeout after 10 seconds > > On our central monitoring server, theres a lot of close_wait > > sessions when i > > do a netstat ..It is still receiving passive checks, but apparently.. > > something is still wrong.. could anyone tell me? Has this got > > to do with > > latency? > > > > > > Jasmine Chua > > Security Engineer, SecureCiRT (A SBU of Z-Vance Pte Ltd) > > http://www.securecirt.com > > -----BEGIN PGP SIGNATURE----- > > Version: GnuPG v1.0.6 (GNU/Linux) > > Comment: For info see http://www.gnupg.org > > > > iD8DBQE97aNDNgvTa7Hj2AURAgcGAJ9joFliAOUQh30a/Zu7DN82iPxDAwCghs6n > > uoFFT+iLqRq62FrhzvDWl1s= > > =DPQe > > -----END PGP SIGNATURE----- > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft Visual Studio.NET > > comprehensive development tool, built to increase your > > productivity. Try a free online hosted session at: > > http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ------------------------------------------------------- > This SF.net email is sponsored by: Microsoft Visual Studio.NET > comprehensive development tool, built to increase your > productivity. Try a free online hosted session at: > http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users - -- Jasmine Chua Security Engineer, SecureCiRT (A SBU of Z-Vance Pte Ltd) http://www.securecirt.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE97wElNgvTa7Hj2AURAnlCAJ9sr5WZmfvOtb/2elFUeLazpBMnrQCdH3vg oJdoiGsR1gF5vJ4b8y4F8IY= =A2oZ -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en From p.miquet at hafiba.fr Thu Dec 5 09:50:52 2002 From: p.miquet at hafiba.fr (Pascal Miquet) Date: 05 Dec 2002 09:50:52 +0100 Subject: gdlib statusmap.cgi not compiling on RH8.0 despite advice here... In-Reply-To: <3DE80D62.7090102@dublerfamily.com> References: <3DE80D62.7090102@dublerfamily.com> Message-ID: <1039078252.4978.1.camel@moishe> Hi, I've take time this morning to compile Nagios under RH 8.0 After installing the compiler tools, run scripts to compile and install nagios, and all seems good. Wonder what is your problem ? May be I've got the same, and didn't see it. Regards Pascal Miquet Le sam 30/11/2002 ? 01:59, Pete Dubler a ?crit : > Nagios is running great here, but I too cannot get the statusmap.cgi to > compile under RH 8.0. > I have studied the archives and seen that others have had the same > problem but after trying everything suggested in the archives, I still > do not get statusmap.cgi and the other cgi's that apparently depend on > gd to compile. > > Here is what I have done: > > 1) gd, png, and jpeg are all already installed on the system. > > 2) used default config and makes and did not get a statusmap.cgi > > 3) did a"make clean" (this by the way, deletes config.cache) and then > did a new ./configure using these options: --with-gd-lib=/usr/lib > --with-gd-inc=/usr/lib/include > and then all the makes... > still no joy. > > 4) cleaned up and tried again... even less joy... > > Can I just separately compile the "missing" cgi's (and if so, how exactly) > > Anyone gotten this to work under RH8 yet? > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Get the new Palm Tungsten T > handheld. Power & Color in a compact size! > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From p.miquet at hafiba.fr Thu Dec 5 10:28:51 2002 From: p.miquet at hafiba.fr (Pascal Miquet) Date: 05 Dec 2002 10:28:51 +0100 Subject: Permission Error In-Reply-To: <11C80DA1026CF545921B280740C440ED8BA5FC@exchange1.corp.winterlink.net> References: <11C80DA1026CF545921B280740C440ED8BA5FC@exchange1.corp.winterlink.net> Message-ID: <1039080535.4978.6.camel@moishe> When your browser try to display the nagios site, you are requested to give user/password. Does this works ? If yes, make sure you've got your login as a contact (chrisf as you mentioned). For tests could you just use the '*' as authorized person. You should see all the states. Also note that you've got a lot of authorized_for_.... to set May be you've missed one. HTH Regards Pascal Miquet Le mar 03/12/2002 ? 08:57, Chris Fairbanks a ?crit : > I keep getting the following whenever I try looking at pretty much > anything. > > ------------- > It appears as though you do not have permission to view information for > any of the services you requested... > > > If you believe this is an error, check the HTTP server authentication > requirements for accessing this CGI > and check the authorization options in your CGI configuration file. > ------------- > > I have read through the FAQ and everything seems to be fine. I have a > .htaccess file in both the html dir and the cgi dir of the following > > --------------- > AuthName "Nagios Access" > AuthType Basic > AuthUserFile /usr/local/nagios/etc/htpasswd.users > require valid-user > --------------- > > I also added my user account in the cgi.cfg to view everything and I > still get the same error. > > -------------- > authorized_for_all_services=chrisf > authorized_for_all_hosts=chrisf > -------------- > > Any ideas? I am pretty default RedHat 8.0 install. > > Thanks, > Chris > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Get the new Palm Tungsten T > handheld. Power & Color in a compact size! > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From td at ewt.de Thu Dec 5 10:59:24 2002 From: td at ewt.de (Thomas Dorsch) Date: Thu, 05 Dec 2002 10:59:24 +0100 Subject: Status UNKNOWN and no data in graphs Message-ID: <3DEF237C.40005@ewt.de> Hi, i'm using nagios for a couple of days and it works great for me. This time i'm implementing the apan snmp plugin to get interface statistics from our cisco 's. After configuring it worked out of the box for one day. All graphs were produced fine but suddenly the state in nagios turned UNKNOWN and there were no more traffic graphs displayed. Below is the outputline of nagios service details and config samples also. net_flow (my command definition) UNKNOWN 12-05-2002 10:59:36 1d 19h 3m 54s 3/3 SNMP WARNING - Counter32: 3787811407 (this is still increasing but no data is displayed within the graphs) This is the line in apan.cfg: mycisco;net_flow;/usr/local/nagios/rrd/mycisco_net_flow.rrd;public:.1.3.6.1.2.1.2.2.1.10.3|public:.1.3.6.1.2.1.2.2.1.16.3;IN:LINE1 OUT:LINE2;Network throughput;Bytes/sek; which is the eth0 interface on a cisco MC3810. This is the commandline to create the rrd file: rrdtool create /usr/local/nagios/rrd/mycisco_net_flow.rrd -s 60 DS:IN:COUNTER:300:0:U DS:OUT:COUNTER:300:0:U RRA:AVERAGE:0.5:1:50400 RRA:AVERAGE:0.5:60:43800 Any idea what could be the problem. I tried a couple of things especially with heartbeat and also changed COUNTER to DERIVE, but the problem is still the same. Regards Tom ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From Stijn.Mahieu at liswms.be Thu Dec 5 11:17:01 2002 From: Stijn.Mahieu at liswms.be (Stijn.Mahieu at liswms.be) Date: Thu, 5 Dec 2002 11:17:01 +0100 Subject: check_disk_smb problem Message-ID: An HTML attachment was scrubbed... URL: From mriedel at neuearbeit.de Thu Dec 5 11:21:29 2002 From: mriedel at neuearbeit.de (Marko Riedel) Date: Thu, 5 Dec 2002 11:21:29 +0100 (CET) Subject: downtime Message-ID: <15855.10409.689893.178146@linuxsexi.nasttg> Hi there, I am sending my downtime script in case some of you want to use it. It schedules downtime for the next day. Best regards, -- +------------------------------------------------------------+ | Marko Riedel, EDV Neue Arbeit gGmbH, mriedel at neuearbeit.de | | http://www.geocities.com/markoriedelde/index.html | +------------------------------------------------------------+ #! /usr/bin/perl -w # use POSIX qw(strtol); my $command_file = '/usr/local/nagios/var/rw/nagios.cmd'; my $hour = (60*60); my $next_day = (24*60*60); my $downtimes = [ { host => 'somehost', service => 'SERVICE', times => [ ["00:00", 9], ["18:00", 6] ] } ]; foreach my $entry (@$downtimes) { my ($secstart, $secend, $cmd, $current); $current = `/bin/date +"%s"`; chomp $current; foreach my $tperiod (@{ $entry->{times} }){ $secstart = strtol(`/bin/date -d "$tperiod->[0]" +"%s"`); $secend = $secstart+$tperiod->[1]*$hour; $secstart += $next_day; $secend += $next_day; $cmd = "[$current] SCHEDULE_SVC_DOWNTIME;"; $cmd .= "$entry->{host};$entry->{service};"; $cmd .= "$secstart;$secend;"; $cmd .= "1;0;$0;automatically scheduled;\n"; print STDERR $cmd; system "echo \"$cmd\" >> $command_file"; } } ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From anders at jblinux.net Thu Dec 5 12:37:16 2002 From: anders at jblinux.net (Anders Nerheim) Date: 05 Dec 2002 12:37:16 +0100 Subject: Temptrax Question In-Reply-To: References: Message-ID: <1039088236.1725.1.camel@aten> checked permissions on the ttySx devs? > As i wrote a few days ago to the mailinglist: The same problem here, the > check_temptrax command stopped working when we switched from nagios 1.0b5 > to nagios 1.0b6 (and a few days ago to version 1.0). It works perfectly > from the command line and i'm absolutly clueless, why it shouldn't give > output to nagios... At our site it's running on a SuSE 7.1 based system. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From stoppe at adesso.de Thu Dec 5 13:56:27 2002 From: stoppe at adesso.de (Christoph Stoppe) Date: Thu, 5 Dec 2002 13:56:27 +0100 Subject: Temptrax Question In-Reply-To: <1039088236.1725.1.camel@aten> References: <1039088236.1725.1.camel@aten> Message-ID: Hi Anders, Anders Nerheim wrote on 05.12.2002 12:37:16: > checked permissions on the ttySx devs? > Yes, i doubled checked everything. I even ran the command line as user nagios and it works perfectly... > > As i wrote a few days ago to the mailinglist: The same problem here, the > > check_temptrax command stopped working when we switched from nagios 1.0b5 > > to nagios 1.0b6 (and a few days ago to version 1.0). It works perfectly > > from the command line and i'm absolutly clueless, why it shouldn't give > > output to nagios... At our site it's running on a SuSE 7.1 based system. Kind regards, Christoph Stoppe -- /-------------------------------------------------------------\ | a d e s s o AG | Fon : +49 231 930 - 9342 | | Stockholmer Allee 24 | Fax : +49 231 930 - 9331 | | 44269 Dortmund | eMail: stoppe at adesso.de | \-------------------------------------------------------------/ ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From rplewe at ess.nec.de Thu Dec 5 14:14:12 2002 From: rplewe at ess.nec.de (Rasmus Plewe) Date: Thu, 5 Dec 2002 14:14:12 +0100 Subject: Phantom service checks Message-ID: <20021205141412.D1488@ess.nec.de> Hello, the only thing I found about this issue was in the mailing list archive from last week monday, but no response. Once upon a time I had a service check, which was associated with a couple of hosts and hostgroups. Now I don't have this service any more, even the command definition in checkcommands.cfg is deleted. When doing a recursive grep over the Nagios directory, the only files where this service name appears are the log files. But every now and again I get notifications telling me that this service is critical or up (it being so unreliable was one of the reasons to eliminate it in the first place). How can I get rid of this? Another thing: During a greater downtime yesterday night, I had the opportunity to test the "scheduled downtime" functionality. What I think what happened is the following: - downtime started. Lots of mails were generated, about every host and service that was configured. - I scheduled downtime for the time being. Still notifications were sent out (yes, I restarted Nagios). - I removed certain email adresses (like "half of the company" - oops) from getting notifications by setting the *_notification_periods in contacts.cfg to "none". Restarted Nagios. Still notifications were sent. - I changed the email addresses in contacts so that they didn't point any more to these email aliases. Restarted Nagios. Still notifications were sent. All in all I got the impression that Nagios does not care too much about changed configurations when getting restarted. But then I can't swear that I didn't screw it up somehow, since I was pretty much tied up in the downtime and hadn't a lot of time playing with Nagios at the same time. Is there anyone who could make sense of this, and preferably have a solution how I get rid of that phantom check? Oh, and another thought: I guess there's no possibility to tell Nagios to "condense" notifications? I mean, in a situation like yesterday it would be handy to have one notificaton for all incidents insteead of ~150 mails. Something like "upon a failure wait x minutes before sending a notification, if there's another failure include it into the notification and wait another x minutes. But don't wait longer than y(>x) minutes counted from the first failure on" would be really cool... Regards, Rasmus ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From mpowell at ena.com Thu Dec 5 14:39:30 2002 From: mpowell at ena.com (Marc Powell) Date: Thu, 5 Dec 2002 07:39:30 -0600 Subject: Phantom service checks Message-ID: <5DB017510818EC468B05BD7BD9EACF8301E2672C@mismail.ena.com> Sounds to me like you have multiple nagios processes running on that machine. Use the init script to stop nagios then ps to verify that you do not have a copy of nagios still running. If you do not, try removing the status.sav file after stoppong nagios then restart. As far as aggregating notifications, I believe there is something in the contrib directory or documentation to help you with that. -- Marc Sent from a very tiny wireless device with a very tiny unlit keyboard. -----Original Message----- From: Rasmus Plewe To: Nagios users list Sent: Thu Dec 05 07:14:12 2002 Subject: [Nagios-users] Phantom service checks Hello, the only thing I found about this issue was in the mailing list archive from last week monday, but no response. Once upon a time I had a service check, which was associated with a couple of hosts and hostgroups. Now I don't have this service any more, even the command definition in checkcommands.cfg is deleted. When doing a recursive grep over the Nagios directory, the only files where this service name appears are the log files. But every now and again I get notifications telling me that this service is critical or up (it being so unreliable was one of the reasons to eliminate it in the first place). How can I get rid of this? Another thing: During a greater downtime yesterday night, I had the opportunity to test the "scheduled downtime" functionality. What I think what happened is the following: - downtime started. Lots of mails were generated, about every host and service that was configured. - I scheduled downtime for the time being. Still notifications were sent out (yes, I restarted Nagios). - I removed certain email adresses (like "half of the company" - oops) from getting notifications by setting the *_notification_periods in contacts.cfg to "none". Restarted Nagios. Still notifications were sent. - I changed the email addresses in contacts so that they didn't point any more to these email aliases. Restarted Nagios. Still notifications were sent. All in all I got the impression that Nagios does not care too much about changed configurations when getting restarted. But then I can't swear that I didn't screw it up somehow, since I was pretty much tied up in the downtime and hadn't a lot of time playing with Nagios at the same time. Is there anyone who could make sense of this, and preferably have a solution how I get rid of that phantom check? Oh, and another thought: I guess there's no possibility to tell Nagios to "condense" notifications? I mean, in a situation like yesterday it would be handy to have one notificaton for all incidents insteead of ~150 mails. Something like "upon a failure wait x minutes before sending a notification, if there's another failure include it into the notification and wait another x minutes. But don't wait longer than y(>x) minutes counted from the first failure on" would be really cool... Regards, Rasmus ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From vance.duke at imaginuity.com Thu Dec 5 14:41:41 2002 From: vance.duke at imaginuity.com (Vance Duke) Date: Thu, 5 Dec 2002 07:41:41 -0600 Subject: Email Server Message-ID: Is there a way to stipulate an SMTP server for the notifications other than the Local Host that Nagios is running on? I would like to be able to specify it either by IP address or domain name. Thanks in advance. ______________________________________________________________________ Vance Duke Technology Manager Imaginuity Interactive, Inc. http://Imaginuity.com ______________________________________________________________________ ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From mpowell at ena.com Thu Dec 5 15:08:14 2002 From: mpowell at ena.com (Marc Powell) Date: Thu, 5 Dec 2002 08:08:14 -0600 Subject: Email Server Message-ID: <5DB017510818EC468B05BD7BD9EACF8301E2672D@mismail.ena.com> That would be a function of /bin/mail or whatever program you are using in you commands.cfg for *-notify-by-email. Looking at mail's manpage, it does not appear that you can specify an smtp host. -- Marc Sent from a very tiny wireless device with a very tiny unlit keyboard. -----Original Message----- From: Vance Duke To: nagios-users at lists.sourceforge.net Sent: Thu Dec 05 07:41:41 2002 Subject: [Nagios-users] Email Server Is there a way to stipulate an SMTP server for the notifications other than the Local Host that Nagios is running on? I would like to be able to specify it either by IP address or domain name. Thanks in advance. ______________________________________________________________________ Vance Duke Technology Manager Imaginuity Interactive, Inc. http://Imaginuity.com ______________________________________________________________________ ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From rplewe at ess.nec.de Thu Dec 5 15:37:18 2002 From: rplewe at ess.nec.de (Rasmus Plewe) Date: Thu, 5 Dec 2002 15:37:18 +0100 Subject: Phantom service checks In-Reply-To: <5DB017510818EC468B05BD7BD9EACF8301E2672C@mismail.ena.com>; from mpowell@ena.com on Thu, Dec 05, 2002 at 07:39:30AM -0600 References: <5DB017510818EC468B05BD7BD9EACF8301E2672C@mismail.ena.com> Message-ID: <20021205153718.H1488@ess.nec.de> On Thu, Dec 05, 2002 at 07:39:30AM -0600, Marc Powell wrote: > [phantom checks] > Sounds to me like you have multiple nagios processes running on that > machine. Use the init script to stop nagios then ps to verify that you > do not have a copy of nagios still running. Bingo. > As far as aggregating notifications, I believe there is something in > the contrib directory or documentation to help you with that. Didn't find anything in the contrib directory at first glance, but will take a closer look at it and at the docs, thanks for the pointer. As I don't have much of a problem with those mail masses it's not my absolute top priority, and if my manager does not like all this mail he's welcome to free me of other tasks... But it will become a problem once I start experimenting with pager notification in the near future. Regards, Rasmus ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jcarro10 at sprintspectrum.com Thu Dec 5 18:08:28 2002 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Thu, 5 Dec 2002 11:08:28 -0600 Subject: Email Server Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F2476@PKDWB03C.ad.sprint.com> If I understand your question correctly, you have no problem with mail alerts being delivered to the local Nagios host, but you'd like to have them forwarded to another host. Normally one would send to user at somehost.example.com or user at example.com. If that doesn't work for you, it means your MTA is mis/unconfigured. Options: 1. Configure your MTA (typically Sendmail). Many sysadmins don't care much for Sendmail, so unless you're already versed in tweaking it, you could be in for a long haul. (Quick wins: Do a "grep -i smarterhost /etc/sendmail.cf" to see where you can set the smarterhost, and set the Dj macro to how you want your sending domain to look like. Other Sendmail admins out there might cringe at this suggestion, however. ;) 2. Replace the MTA with one that you know, and configure that properly. 3. Replace the MTA with a stripped-down one that merely forwards to a smarterhost. One such option is nullmailer. HTH. jc > -----Original Message----- > From: Vance Duke [mailto:vance.duke at imaginuity.com] > Sent: Thursday, December 05, 2002 7:42 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Email Server > > > > Is there a way to stipulate an SMTP server for the > notifications other than > the Local Host that Nagios is running on? I would like to be able to > specify it either by IP address or domain name. > > Thanks in advance. > > ______________________________________________________________________ > Vance Duke > Technology Manager > > Imaginuity Interactive, Inc. > http://Imaginuity.com > ______________________________________________________________________ > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From p.miquet at hafiba.fr Thu Dec 5 18:53:08 2002 From: p.miquet at hafiba.fr (Pascal Miquet) Date: 05 Dec 2002 18:53:08 +0100 Subject: Email Server In-Reply-To: References: Message-ID: <1039110792.4657.5.camel@moishe> Here is what I've done: At home, my day work is done using a Cisco 830 to get connected to the main intranet. I've set nagios to send me an Email at p.miquet at hafiba.fr, and configure in /etc/hosts that hafiba.fr is the IP address of our Netscape Mail system. So when nagios send me an Email, the sendmail system deliver my email to this smtp server, and that's it. With Ximian Evolution, I can then get all my emails. And that's so easy.. I think. HTH Regards. Pascal Miquet. Le jeu 05/12/2002 ? 14:41, Vance Duke a ?crit : > > Is there a way to stipulate an SMTP server for the notifications other than > the Local Host that Nagios is running on? I would like to be able to > specify it either by IP address or domain name. > > Thanks in advance. > > ______________________________________________________________________ > Vance Duke > Technology Manager > > Imaginuity Interactive, Inc. > http://Imaginuity.com > ______________________________________________________________________ > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From kstone at inetlabs.net Thu Dec 5 18:56:20 2002 From: kstone at inetlabs.net (Kevin Stone) Date: Thu, 5 Dec 2002 12:56:20 -0500 Subject: gdlib statusmap.cgi not compiling on RH8.0 despite advice here... In-Reply-To: <1039078252.4978.1.camel@moishe> References: <1039078252.4978.1.camel@moishe> Message-ID: <000201c29c87$9e86fd40$0201a8c0@sph.ad.jhsph.edu> I haven't installed Nagios on RH8 yet but an having issues with MRTG finding GD when installing. GD is there and works for other apps but for some reason the linker can't find it when compiling MRTG. Others have it working correctly on RH8 without problems. My guess is some kind of path problem with GD but so far I haven't been able to resolve it. -Kevin > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf > Of Pascal Miquet > Sent: Thursday, December 05, 2002 3:51 AM > To: Pete Dubler > Cc: Nagios users > Subject: Re: [Nagios-users] gdlib statusmap.cgi not compiling > on RH8.0 despite advice here... > > > Hi, > > I've take time this morning to compile Nagios under RH 8.0 > After installing the compiler tools, run scripts to compile > and install nagios, and all seems good. Wonder what is your > problem ? May be I've got the same, and didn't see it. > > Regards > Pascal Miquet > > Le sam 30/11/2002 ? 01:59, Pete Dubler a ?crit : > > Nagios is running great here, but I too cannot get the > statusmap.cgi > > to > > compile under RH 8.0. > > I have studied the archives and seen that others have had the same > > problem but after trying everything suggested in the > archives, I still > > do not get statusmap.cgi and the other cgi's that > apparently depend on > > gd to compile. > > > > Here is what I have done: > > > > 1) gd, png, and jpeg are all already installed on the system. > > > > 2) used default config and makes and did not get a statusmap.cgi > > > > 3) did a"make clean" (this by the way, deletes > config.cache) and then > > did a new ./configure using these options: --with-gd-lib=/usr/lib > > --with-gd-inc=/usr/lib/include > > and then all the makes... > > still no joy. > > > > 4) cleaned up and tried again... even less joy... > > > > Can I just separately compile the "missing" cgi's (and if so, how > > exactly) > > > > Anyone gotten this to work under RH8 yet? ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From Gopinath_Pulyankote at affymetrix.com Thu Dec 5 20:28:23 2002 From: Gopinath_Pulyankote at affymetrix.com (Pulyankote, Gopinath) Date: Thu, 5 Dec 2002 11:28:23 -0800 Subject: Can we disable flapping just for one service check? Message-ID: <48F1F432BF75D6118FAC0002B325BE3636E93D@ntex04.affymetrix.com> Hello there, I have flap_detection_enabled set to 1 in hosts.cfg and services.cfg. But I need to disable this for just one service check that I am doing. Can this be done? I tried adding the line flap_detection_enabled 0 to the service definition and restarted. But it doesn't seem to take affect. Any suggestions? Thanks in advance -Gopinath -------------- next part -------------- An HTML attachment was scrubbed... URL: From wilson at unity.ncsu.edu Thu Dec 5 20:33:09 2002 From: wilson at unity.ncsu.edu (Brian Wilson) Date: Thu, 5 Dec 2002 14:33:09 -0500 (EST) Subject: return codes and output from check scripts Message-ID: I've written a few check scripts to do various things.. and I was under the impression that they were working correctly.. but they arent. Here's what happens: Here's the command defined: define command{ command_name check_powersupply command_line $USER1$/check_powersupply $HOSTADDRESS$ } Here's the output of the command from the logs: [1039116104] SERVICE;itspare-6509-1;powersupply;CRITICAL;3/3;HARD;1039116079;1039116139;ACTIVE;1;1;1;1039110049;0;CRITICAL;5347;0;0;2983;1039110049;1;1;0;0;0;0;0.00;0;1;0;1;(No output!) Here's when i run the command as user nagios from the command line: $ ./check_powersupply itspare-6509-1 SNMP OK - Chassis Power Supplies OK $ echo $? 0 So why is nagios saying "no output"? Any ideas? Thanks in adavance, Brian -- Brian Wilson Network Analyst Communication Technologies, ATD W: 919.513.3472 North Carolina State University www.ncstate.net ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From wilson at unity.ncsu.edu Thu Dec 5 20:51:35 2002 From: wilson at unity.ncsu.edu (Brian Wilson) Date: Thu, 5 Dec 2002 14:51:35 -0500 (EST) Subject: return codes and output from check scripts In-Reply-To: References: Message-ID: On Thu, 5 Dec 2002, Brian Wilson wrote: > > I've written a few check scripts to do various things.. and I was under > the impression that they were working correctly.. but they arent. Here's > what happens: > > Here's the command defined: > > define command{ > command_name check_powersupply > command_line $USER1$/check_powersupply $HOSTADDRESS$ > } > > Here's the output of the command from the logs: > > [1039116104] > SERVICE;itspare-6509-1;powersupply;CRITICAL;3/3;HARD;1039116079;1039116139;ACTIVE;1;1;1;1039110049;0;CRITICAL;5347;0;0;2983;1039110049;1;1;0;0;0;0;0.00;0;1;0;1;(No output!) > > Here's when i run the command as user nagios from the command line: > $ ./check_powersupply itspare-6509-1 > SNMP OK - Chassis Power Supplies OK > $ echo $? > 0 > > So why is nagios saying "no output"? Any ideas? Oh yeah, and my script does this: use utils qw(%ERRORS); if ($ps1status == 2 && $ps2status == 2 ) { print "SNMP OK - Chassis Power Supplies OK\n"; exit $ERRORS{'OK'}; } else { print "SNMP CRITICAL - Chassis Power Supply Failure\n"; exit $ERRORS{'CRITICAL'}; } Brian -- Brian Wilson Network Analyst Communication Technologies, ATD W: 919.513.3472 North Carolina State University www.ncstate.net ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From norbert.schollum at ebuz.de Thu Dec 5 20:49:50 2002 From: norbert.schollum at ebuz.de (Norbert Schollum) Date: Thu, 05 Dec 2002 20:49:50 +0100 Subject: Host unreachable problem Message-ID: <5.2.0.9.0.20021205204438.037471d0@pop.t-online.de> An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 7c47bf.jpg Type: image/jpeg Size: 633 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 7c4819.jpg Type: image/jpeg Size: 633 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 7c4873.jpg Type: image/jpeg Size: 633 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 7c48ce.jpg Type: image/jpeg Size: 633 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 7c4928.jpg Type: image/jpeg Size: 633 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 7c4982.jpg Type: image/jpeg Size: 633 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 7c49dc.jpg Type: image/jpeg Size: 633 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 7c4a36.jpg Type: image/jpeg Size: 633 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 7c4a90.jpg Type: image/jpeg Size: 633 bytes Desc: not available URL: From jack at monkeynoodle.org Thu Dec 5 21:02:40 2002 From: jack at monkeynoodle.org (Jack Coates) Date: 05 Dec 2002 12:02:40 -0800 Subject: check_command options don't work when defined in hosts.cfg? Message-ID: <1039118566.3427.17.camel@chupacabra.monkeynoodle.org> How come this works in services.cfg but doesn't in hosts.cfg? checkcommands.cfg: # 'check_multisvc.pl' command definition define command{ command_name check_multisvc.pl command_line $USER1$/contrib/check_multisvc.pl -H $HOSTADDRESS$ -F $ARG1$ -w $ARG2$ -c $ARG3$ } services.cfg: define service{ hostgroup_name web-servers service_description apache check_command check_multisvc.pl!/etc/nagios/check_multisvc-web.cfg!3!4 max_check_attempts 3 normal_check_interval 10 hosts.cfg: define host{ host_name pacp9 alias i01sv4166 address 147.208.166.81 parents worldcom-router check_command check_multisvc.pl!/etc/nagios/check_multisvc-acp.cfg!3!4 nagios -v output: Error: Host check command 'check_multisvc.pl!/etc/nagios/check_multisvc-acp.cfg!3!4' specified for host 'pacp9' is not defined anywhere! check_multisvc.pl is my own script which I plan to post after I get it into production; however, this happens with check_tcp as well. Nagios 1.0b6 on Mandrake 9.0. thanks, -- Jack Coates Monkeynoodle: A Scientific Venture... ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From sghosh at sghosh.org Thu Dec 5 21:20:24 2002 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Thu, 5 Dec 2002 15:20:24 -0500 (EST) Subject: return codes and output from check scripts In-Reply-To: References: Message-ID: is it executeable by the nagios process? (couldn't tell from your shell prompt) is the there a "use lib ..." before "use utils qw(%ERRORS)" -sg On Thu, 5 Dec 2002, Brian Wilson wrote: > On Thu, 5 Dec 2002, Brian Wilson wrote: > > > > > I've written a few check scripts to do various things.. and I was under > > the impression that they were working correctly.. but they arent. Here's > > what happens: > > > > Here's the command defined: > > > > define command{ > > command_name check_powersupply > > command_line $USER1$/check_powersupply $HOSTADDRESS$ > > } > > > > Here's the output of the command from the logs: > > > > [1039116104] > > SERVICE;itspare-6509-1;powersupply;CRITICAL;3/3;HARD;1039116079;1039116139;ACTIVE;1;1;1;1039110049;0;CRITICAL;5347;0;0;2983;1039110049;1;1;0;0;0;0;0.00;0;1;0;1;(No output!) > > > > Here's when i run the command as user nagios from the command line: > > $ ./check_powersupply itspare-6509-1 > > SNMP OK - Chassis Power Supplies OK > > $ echo $? > > 0 > > > > So why is nagios saying "no output"? Any ideas? > > > Oh yeah, and my script does this: > > use utils qw(%ERRORS); > if ($ps1status == 2 && $ps2status == 2 ) { > print "SNMP OK - Chassis Power Supplies OK\n"; > exit $ERRORS{'OK'}; > } else { > print "SNMP CRITICAL - Chassis Power Supply Failure\n"; > exit $ERRORS{'CRITICAL'}; > } > > > Brian > > -- > Brian Wilson Network Analyst > Communication Technologies, ATD W: 919.513.3472 > North Carolina State University www.ncstate.net > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > -- ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From sghosh at sghosh.org Thu Dec 5 21:22:18 2002 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Thu, 5 Dec 2002 15:22:18 -0500 (EST) Subject: Host unreachable problem In-Reply-To: <5.2.0.9.0.20021205204438.037471d0@pop.t-online.de> References: <5.2.0.9.0.20021205204438.037471d0@pop.t-online.de> Message-ID: To be unreachable, the host must have a parent defined that is down. You probably want to run off the down messages as well. -sg On Thu, 5 Dec 2002, Norbert Schollum wrote: > > Hi, > > i am running Nagios 1.0 on a Linux machine connected via DSL. > > Sometimes it appears, that my machine is in offline state. > > I dont want Nagios to send out Notifiactions if my machine is offline. > So i have configured every HOST to not notify when in UNREACHABLE state. > > when my machine is offline, this should be a unreachable state, but i > still > get notified, that the host ist DOWN. > > the host check is also not very sensitive, it counts up to 10 tries > within > a minute: > > 05-12-2002 20:04:58] HOST ALERT: ded05;DOWN;HARD;10;PING CRITICAL - > Network unreachable (80.190.135.151) > 7c47bf.jpg [05-12-2002 20:04:58] HOST ALERT: ded05;DOWN;SOFT;9;PING > CRITICAL - Network unreachable (80.190.135.151) > 7c4819.jpg [05-12-2002 20:04:58] HOST ALERT: ded05;DOWN;SOFT;8;PING > CRITICAL - Network unreachable (80.190.135.151) > 7c4873.jpg [05-12-2002 20:04:58] HOST ALERT: ded05;DOWN;SOFT;7;PING > CRITICAL - Network unreachable (80.190.135.151) > 7c48ce.jpg [05-12-2002 20:04:58] HOST ALERT: ded05;DOWN;SOFT;6;PING > CRITICAL - Network unreachable (80.190.135.151) > 7c4928.jpg [05-12-2002 20:04:58] HOST ALERT: ded05;DOWN;SOFT;5;PING > CRITICAL - Network unreachable (80.190.135.151) > 7c4982.jpg [05-12-2002 20:04:58] HOST ALERT: ded05;DOWN;SOFT;4;PING > CRITICAL - Network unreachable (80.190.135.151) > 7c49dc.jpg [05-12-2002 20:04:58] HOST ALERT: ded05;DOWN;SOFT;3;PING > CRITICAL - Network unreachable (80.190.135.151) > 7c4a36.jpg [05-12-2002 20:04:58] HOST ALERT: ded05;DOWN;SOFT;2;PING > CRITICAL - Network unreachable (80.190.135.151) > 7c4a90.jpg [05-12-2002 20:04:58] HOST ALERT: ded05;DOWN;SOFT;1;PING > CRITICAL - Network unreachable (80.190.135.151) > > > how can i configure Nagios, to not cry if my computer is not connected to > the internet ? > > thanks for your advise > > greetings > norbert > > > > > -- > > Norbert Schollum > ------------------------------- > eBuz Internetdienste > Kaufmann, Loeger & Schollum GbR > Lohbergst. 31, D-84576 Teising > Tel. & Fax ( 07000 ) 555 8888 > mailto:norbert.schollum at ebuz.de > http://www.ebuz.de > > Customercenter: > Hauptstrasse 57, D-82327 Tutzing > Tel (0 81 58) 90 423 - 0 > Fax (0 81 58) 90 423 - 99 > > +++ Werfen Sie einen Blick auf unsere attraktiven Angebote unter > www.ebuz.de. > Egal ob Sie ein Zuhause f?r Ihre Webpr?senz suchen oder ob Sie Ihren > eigenen > Server betreiben wollen - bei uns finden Sie bestimmt ein passendes > Angebot. > Sprechen Sie uns direkt an: info at ebuz.de oder ( 07000 ) 555 8888 +++ > > -- ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From sghosh at sghosh.org Thu Dec 5 21:26:16 2002 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Thu, 5 Dec 2002 15:26:16 -0500 (EST) Subject: check_command options don't work when defined in hosts.cfg? In-Reply-To: <1039118566.3427.17.camel@chupacabra.monkeynoodle.org> References: <1039118566.3427.17.camel@chupacabra.monkeynoodle.org> Message-ID: Nagios 1.0 and pre do not accept arguments to host check commands, only service commands. Use the post 1.0 CVS if you need that functionality. I think Ethan added it earlier this week. -sg On 5 Dec 2002, Jack Coates wrote: > How come this works in services.cfg but doesn't in hosts.cfg? > > checkcommands.cfg: > # 'check_multisvc.pl' command definition > define command{ > command_name check_multisvc.pl > command_line $USER1$/contrib/check_multisvc.pl -H > $HOSTADDRESS$ -F $ARG1$ -w $ARG2$ -c $ARG3$ > } > > services.cfg: > define service{ > hostgroup_name web-servers > service_description apache > check_command > check_multisvc.pl!/etc/nagios/check_multisvc-web.cfg!3!4 > max_check_attempts 3 > normal_check_interval 10 > > hosts.cfg: > define host{ > host_name pacp9 > alias i01sv4166 > address 147.208.166.81 > parents worldcom-router > check_command > check_multisvc.pl!/etc/nagios/check_multisvc-acp.cfg!3!4 > > nagios -v output: > Error: Host check command > 'check_multisvc.pl!/etc/nagios/check_multisvc-acp.cfg!3!4' specified for > host 'pacp9' is not defined anywhere! > > check_multisvc.pl is my own script which I plan to post after I get it > into production; however, this happens with check_tcp as well. Nagios > 1.0b6 on Mandrake 9.0. > > thanks, > -- ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From Stanley.Hopcroft at IPAustralia.Gov.AU Thu Dec 5 22:11:48 2002 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Fri, 6 Dec 2002 08:11:48 +1100 Subject: return codes and output from check scripts In-Reply-To: ; from wilson@unity.ncsu.edu on Thu, Dec 05, 2002 at 02:51:35PM -0500 References: Message-ID: <20021206081144.A217@IPAustralia.Gov.AU> Dear Sir, On Thu, Dec 05, 2002 at 02:51:35PM -0500, Brian Wilson wrote: > > use utils qw(%ERRORS); > if ($ps1status == 2 && $ps2status == 2 ) { > print "SNMP OK - Chassis Power Supplies OK\n"; > exit $ERRORS{'OK'}; > } else { > print "SNMP CRITICAL - Chassis Power Supply Failure\n"; > exit $ERRORS{'CRITICAL'}; > } > > > Brian > Is that all the script ? Perhaps this is a stupid question but were are the values of $ps1status and $ps2status being set ? FWIW, 'No output' is almost always some fault in the script or the script environment (the Nagios user is unlikely to have the same permissions as your shell. If in doubt, compile another copy of Nagios with the service check debug configure option (see Debugging in the Docs) and run it from the foreground (with your production config or a stripped down one) or try the mini_epn in the contrib directory. Last resort is standard script/CGI debugging techniques: have the script ouput state ad nauseum. Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From GPotter at MarathonOil.com Thu Dec 5 22:21:17 2002 From: GPotter at MarathonOil.com (Potter, G M (Greg)) Date: Thu, 5 Dec 2002 15:21:17 -0600 Subject: help: statusmap.cgi trend.cgi don't display images Message-ID: Well I have made several de-bugging changes to statusmap.cgi, getcgi.c, gd_gd.c and gd_gd2.c to try and determine where teh SEGFAULT is coming from, mostly to to avail. I also upgraded to gd-2.0.8 and now my status maps work on Solaris 7. Go figure. Greg > -----Original Message----- > From: Potter, G M (Greg) > Sent: Tuesday, December 03, 2002 8:16 AM > To: Nagios-users (E-mail) > Subject: FW: [Nagios-users] help: statusmap.cgi trend.cgi > don't display > images > > > I have the same problem under Solaris 7 with statusmap. I > just ran a truss process and find the statusmap.cgi gives the > following error as it is running. I don't know if anyone on > the list is familiar with this problem, but perhaps it is a > known bug. Any Ideas? > > Greg Potter > > partial output from: truss -aef -w1 -o /tmp/httpd.txt > /usr/local/apache/bin/httpd > > 22890: fstat64(3, 0xFFBEEFA8) = 0 > 22890: ioctl(3, TCGETA, 0xFFBEEF34) Err#25 ENOTTY > 22890: read(3, "89 P N G\r\n1A\n\0\0\0\r".., 8192) = 1344 > 22890: brk(0x00092CA8) = 0 > 22890: brk(0x00096CA8) = 0 > 22890: brk(0x00096CA8) = 0 > 22890: brk(0x0009ECA8) = 0 > 22890: brk(0x0009ECA8) = 0 > 22890: brk(0x000A0CA8) = 0 > 22890: llseek(3, 0, SEEK_CUR) = 1344 > 22890: close(3) = 0 > 22890: Incurred fault #6, FLTBOUNDS %pc = 0xFF3583E0 > 22890: siginfo: SIGSEGV SEGV_MAPERR addr=0x03BEEF94 > 22890: Received signal #11, SIGSEGV [default] > 22890: siginfo: SIGSEGV SEGV_MAPERR addr=0x03BEEF94 > 22890: *** process killed *** > > > -----Original Message----- > > From: Maxik [mailto:maxik at skatvis.lv] > > Sent: Monday, December 02, 2002 5:24 PM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] help: statusmap.cgi trend.cgi don't display > > images > > > > > > Hello nagios-users, > > > > Libs instaled, compilation ok including GD lib (no > > errors,warnings).But I still cann't see image. I see only white > > square with red cross.What the problem ? > > > > -- > > Best regards, > > Maxik mailto:maxik at skatvis.lv > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Get the new Palm Tungsten T > > handheld. Power & Color in a compact size! > > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Get the new Palm Tungsten T > handheld. Power & Color in a compact size! > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From dmoon at wrhambrecht.com Thu Dec 5 22:34:24 2002 From: dmoon at wrhambrecht.com (David Moon) Date: Thu, 5 Dec 2002 13:34:24 -0800 Subject: Return code of 137 is out of bounds Message-ID: <712773A3271DD411A98C00D0B746B96B03137165@sfexchange.corp.wrhambrecht.com> Hello, I was hoping somebody might be able to point me in the right direction here... Problem: In my status information for http, https and cert services, I get the following: "(Return code of 137 is out of bounds) " Everything else seems to work fine, with the exception of http related commands. SMTP, SSH and other services/commands work fine. This is an upgrade from Netsaint, and all was working fine under netsaint. When I test the various http commands manually, they seem to work fine. I thought there might have been minor issues with the syntax in the old vs. new versions, but the commands seem ok (after converting to new template style). The problem seems to lie in the manner that Nagios calls the commands from within the app. Using "check_http" for "host1" as an example, here are the various elements in Nagios: from commands.cfg: # 'check_http' command definition define command{ command_name check_http command_line /apps/nagios/libexec/check_http -I $HOSTADDRESS$ -H $ARG1$ -u $ARG2$ } from services.cfg: # Service definition define service{ use generic-service ; Name of service template to use host_name host1 service_description HTTP is_volatile 0 check_period all max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups noc notification_interval 60 notification_period market notification_options w,u,c,r check_command check_http!www.abc.com!/in/index.html } The command "check_http!www.abc.com!/in/index.html" works fine on Netsaint. The only difference is that the syntax of the various objects and commands has been converted to the new Nagios template style. I also added this line to startup script /etc/rc3.d/S98nagios: LD_LIBRARY_PATH=/apps/lib:${LD_LIBRARY_PATH} TZ=US/Pacific export LD_LIBRARY_PATH TZ Any clue what I am missing?? I'm "RTFM-ing" as much as possible, and still not clear on why the error.... :-) - David IMPORTANT NOTICES: **************************************************************************** This message is intended only for the addressee. Please notify the sender by email if you are not the intended recipient. If you are not the intended recipient, you may not copy, disclose, or distribute this message or its content to any other person and any such actions may be unlawful. Electronic mail sent through the Internet is not secure. WR Hambrecht + Co (WRH+Co) does not accept time sensitive, action-oriented messages or transaction orders, including orders to purchase or sell securities, via email. WRH+Co reserves the right to monitor and review the content of all messages sent to or from this email address. Messages sent to or from this email address may be stored on the WRH+Co email system. **************************************************************************** ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jcarro10 at sprintspectrum.com Thu Dec 5 22:51:08 2002 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Thu, 5 Dec 2002 15:51:08 -0600 Subject: check_nrpe socket time Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F247C@PKDWB03C.ad.sprint.com> If the NRPE problems were consistent on any given host, no matter what other NRPE checks (to other hosts) I was adding in, then I would certainly be suspect of said host. But that's not the case; the timeouts were seemingly random across all hosts. And the Nagios host itself was starting to bog down horribly. I could ping it from elsewhere, but couldn't login to it via ssh. (I admit that I didn't try to login to the console.) Previously open ssh sessions closed as well (timeouts). It seemed capable of kicking out occasional e-mails (notifications), but that's it. Even Apache had stopped responding. Some history: - initial install of Nagios on old PC of questionable power - created initial checks - began implementation of NRPE as standalone daemon on several Solaris hosts - added NRPE checks - started to notice NRPE timeouts - switched from standalone to inetd - NRPE timeouts seemed to persist - stopped rollout of NRPE - upgraded Nagios server - added hosts, added service checks, added NRPE checks - at 800+ total service checks (including NRPE), everything is well - added NRPE to several Linux hosts (via xinetd) one afternoon - total service checks are now 1100+ - started to experience NRPE timeouts ... and the rest I've already mentioned. jc > -----Original Message----- > From: Ethan Galstad [mailto:nagios at nagios.org] > Sent: Wednesday, December 04, 2002 8:26 PM > To: nagios-users > Subject: RE: [Nagios-users] check_nrpe socket time > > > Whoops - sent the original reply to the devel list on accident. > > ------- Forwarded message follows ------- > > How is nrpe being run on the remote host? Via inetd, xinetd, or as a > standalone daemon. If under xinetd, it could be that you've hit some > kind of limit based on your xinetd config (per_source and max_load > directives come to mind) - check the man pages for xinetd.conf(5) for > more info. > > The Nagios host may be causing excessive load (CPU/MEM/SWAP) because > several child processes are waiting for the check_nrpe plugin to > finish before they can exit. Sounds like the nrpe daemon might be > backlogged on connections, which might point to some tweaking needed > on the remote host side. > > > On 4 Dec 2002 at 13:24, Carroll, Jim P [Contractor] wrote: > > > Yes! I made this observation/complaint on the list a while > back, back when > > I had nagios installed on an underpowered old PC. Nobody > had a comment to > > make. > > > > Since then (much more recently), I've had it happen again. > This was when I > > added quite a few NRPE checks across several Linux boxen, > bumping my total > > service checks from 800+ to 1100+. > > > > Here are things I've done since that time: > > > > - posted a question to the list: scalability of NRPE vs. NSCA > > - set max_concurrent_checks to 200 > > - split the software disk mirror (I/O was getting hammered) > > - increased swap (from 50% of RAM to 200% of RAM) > > - set max_concurrent_checks to 0 > > - noticed that while NRPE checks didn't fail, system would > occasionally be > > very slow > > - set max_concurrent_checks to 400 > > > > I still haven't had any response to my > scalability/NRPE/NSCA query on this > > list. I haven't ruled out NSCA as possibly a better way to > go. It just > > means cobbling some scripts together. If I knew for > certain that the NSCA > > approach is an order of magnitude more scalable than using > NRPE, I'd jump on > > it in a heartbeat. > > > > BTW, the docs have suggestions for improving overall > performance. The one > > suggestion which stuck in my mind was to get > /usr/local/nagios/var onto a > > ramdisk. I don't think that would help in my situation, > but I do have the > > option of putting it over on another spindle (the former mirror). > > > > Let me know if any of my observations/suggestions help you out. > > > > jc > > > > > -----Original Message----- > > > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > > > Sent: Wednesday, December 04, 2002 11:16 AM > > > To: nagios-users at lists.sourceforge.net > > > Subject: [Nagios-users] check_nrpe socket timeout > > > > > > > > > I've been periodically encountering check_nrpe socket timeout > > > errors for > > > some time. Further checks into the status > > > of the systems where this is occurring does not show any > > > apparent problems. > > > Has anyone had similar occurrences? > > > > > ------- End of forwarded message ------- > > Ethan Galstad, > Nagios Developer > --- > Email: nagios at nagios.org > Website: http://www.nagios.org > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Microsoft Visual Studio.NET > comprehensive development tool, built to increase your > productivity. Try a free online hosted session at: > http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From Stanley.Hopcroft at IPAustralia.Gov.AU Fri Dec 6 09:54:19 2002 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Fri, 6 Dec 2002 19:54:19 +1100 Subject: check_multisvc.pl In-Reply-To: <1039132559.3621.47.camel@chupacabra.monkeynoodle.org>; from jack@monkeynoodle.org on Thu, Dec 05, 2002 at 03:55:56PM -0800 References: <1039132559.3621.47.camel@chupacabra.monkeynoodle.org> Message-ID: <20021206195415.A214@IPAustralia.Gov.AU> Dear Sir, Nagios 1.0 accepts quoted arguments to Perl plugins when it is built with embedded Perl support. (There was never any issue about quoted arguments without embedded Perl, provided you get the quotes in a form the shell can understand). This is one of the items dealt with in the transition from 1.0b6 to 1.0 tsitc> head -20 build/nagios-1.0/Changelog ################### Nagios Change Log ################### 1.0 - 11/24/2002 ---------------- * Minor bug fixes in CGIs * Minor bug fixes in sample config files * Minor doc updates * Minor bug fixes to init script * Spec file updates * Bug fix for flex host downtime * Embedded perl bug fixe for arguments with spaces * Host escalation logic fix * Bug fix for PostgreSQL timestamps 1.0b6 - 09/15/2002 ------------------ tsitc> Here is the evidence, Quoted argument for embedded Perl patch test - dev/debug OK 12-06-2002 19:43:48 4d 1h 19m 20s 1/3 $ARGV[1]: In the beginning was the $ARGV[2]: word $ARGV[3]: and $ARGV[4]: the 'word' was with GOD tsitc# /usr/local/nagios/bin/nagios -m Nagios 1.0 Copyright (c) 1999-2002 Ethan Galstad (nagios at nagios.org) Last Modified: 11-24-2002 License: GPL External Data I/O ----------------- Object Data: TEMPLATE Status Data: DEFAULT Retention Data: DEFAULT Comment Data: DEFAULT Downtime Data: DEFAULT Performance Data: DEFAULT Options ------- * Embedded Perl compiler (With caching) tsitc# tsitc# grep -i -4 'quoted ' /usr/local/nagios/etc/services.cfg define service{ use generic-service host_name test service_description Quoted argument for embedded Perl patch test - dev/debug contact_groups test-admins check_command check_quoted_args!'In the beginning was the'!word!and!"the 'word' was with GOD" } tsitc# -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From brown.robertson at maac.net Thu Dec 5 23:13:48 2002 From: brown.robertson at maac.net (Robertson, Brown) Date: Thu, 5 Dec 2002 16:13:48 -0600 Subject: Permissions Error Message-ID: <2CDD9C051F451F4BB0615B9547F1B4294D40@maacmail.maac.int> Chris, did you ever find out the cause of your permission error? I am running Red Hat 8.0 and finding the same problem. I have also followed the faq exactly. .htaccess files look good, httpd.conf edited properly. Htpasswd.users file is correct. I'm wondering if it might be some problem with apache under RH 8.0? Anyone else have any ideas? Here's what I have in my httpd.conf: ScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/ AllowOverride AuthConfig Options ExecCGI Order allow,deny Allow from all Alias /nagios/ /usr/local/nagios/share/ Options None AllowOverride AuthConfig Order allow,deny Allow from all And in my .htaccess, located in /usr/local/nagios/sbin and /usr/local/nagios/share AuthName "Nagios Access" AuthType Basic AuthUserFile /usr/local/nagios/etc/htpasswd.users require valid-user Then I : htpasswd -c /usr/local/nagios/etc/htpasswd.users nagios Still no luck. It will continually request authentication but will never accept it. Any ideas? -------------- next part -------------- An HTML attachment was scrubbed... URL: From benny at bennyvision.com Thu Dec 5 23:19:10 2002 From: benny at bennyvision.com (C. Bensend) Date: Thu, 5 Dec 2002 16:19:10 -0600 Subject: Return code of 137 is out of bounds In-Reply-To: <712773A3271DD411A98C00D0B746B96B03137165@sfexchange.corp.wrhambrecht.com>; from dmoon@wrhambrecht.com on Thu, Dec 05, 2002 at 01:34:24PM -0800 References: <712773A3271DD411A98C00D0B746B96B03137165@sfexchange.corp.wrhambrecht.com> Message-ID: <20021205161910.A15658@bennyvision.com> On Thu, Dec 05, 2002 at 01:34:24PM -0800, David Moon wrote: > > Problem: In my status information for http, https and cert services, I get > the following: "(Return code of 137 is out of bounds) " > Everything else seems to work fine, with the exception of http related > commands. SMTP, SSH and other services/commands work fine. This is an > upgrade from Netsaint, and all was working fine under netsaint. Hello David, What version of the plugins are you using? I had a similar problem a while back, with check_by_ssh returning code 137. The only real solution I was able to come up with was trying the newest version of check_by_ssh from the CVS repository. Once I did that, things returned to normal. You might want to try that on a single plugin that you're having issues with, just to see if that'll help. Benny ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "Oh." --- The Green Goblin, in "Spider-Man" ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From brown.robertson at maac.net Thu Dec 5 23:32:49 2002 From: brown.robertson at maac.net (Robertson, Brown) Date: Thu, 5 Dec 2002 16:32:49 -0600 Subject: Permissions Error Message-ID: <2CDD9C051F451F4BB0615B9547F1B4295BB60A@maacmail.maac.int> Chris, did you ever find out the cause of your permission error? I am running Red Hat 8.0 and finding the same problem. I have also followed the faq exactly. .htaccess files look good, httpd.conf edited properly. Htpasswd.users file is correct. I'm wondering if it might be some problem with apache under RH 8.0? Anyone else have any ideas? Here's what I have in my httpd.conf: ScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/ AllowOverride AuthConfig Options ExecCGI Order allow,deny Allow from all Alias /nagios/ /usr/local/nagios/share/ Options None AllowOverride AuthConfig Order allow,deny Allow from all And in my .htaccess, located in /usr/local/nagios/sbin and /usr/local/nagios/share AuthName "Nagios Access" AuthType Basic AuthUserFile /usr/local/nagios/etc/htpasswd.users require valid-user Then I : htpasswd -c /usr/local/nagios/etc/htpasswd.users nagios Still no luck. It will continually request authentication but will never accept it. Any ideas? -------------- next part -------------- An HTML attachment was scrubbed... URL: From jens at hjalmarsson.se Thu Dec 5 23:36:14 2002 From: jens at hjalmarsson.se (Jens Hjalmarsson) Date: Thu, 5 Dec 2002 23:36:14 +0100 Subject: 100% undetermined Message-ID: <001101c29cae$b82796c0$6452e2d5@pcjens> Hello list, I seem to have a problem with the state history. It says 100% undetermined for all my hosts and services. Where am I supposed to look to fix this little problem? :) Jens ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From felliott at jobservice.us Thu Dec 5 23:38:04 2002 From: felliott at jobservice.us (Fred Elliott) Date: Thu, 5 Dec 2002 15:38:04 -0700 Subject: Permissions Error Message-ID: <8D789BACA502764580EF6A4C137E4D1B09A2F3@SRVEXCHCLS1.labor.state.id.us> Gentlemen, I am experiencing the exact problem with Red Hat 8.0. Same configuration, I have been beating my head trying to figure it out. Fred -----Original Message----- From: Robertson, Brown [mailto:brown.robertson at maac.net] Sent: Thursday, December 05, 2002 3:14 PM To: ChrisF at winterlink.net Cc: Nagios-users at lists.sourceforge.net Subject: [Nagios-users] RE: Permissions Error Chris, did you ever find out the cause of your permission error? I am running Red Hat 8.0 and finding the same problem. I have also followed the faq exactly. .htaccess files look good, httpd.conf edited properly. Htpasswd.users file is correct. I'm wondering if it might be some problem with apache under RH 8.0? Anyone else have any ideas? Here's what I have in my httpd.conf: ScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/ AllowOverride AuthConfig Options ExecCGI Order allow,deny Allow from all Alias /nagios/ /usr/local/nagios/share/ Options None AllowOverride AuthConfig Order allow,deny Allow from all And in my .htaccess, located in /usr/local/nagios/sbin and /usr/local/nagios/share AuthName "Nagios Access" AuthType Basic AuthUserFile /usr/local/nagios/etc/htpasswd.users require valid-user Then I : htpasswd -c /usr/local/nagios/etc/htpasswd.users nagios Still no luck. It will continually request authentication but will never accept it. Any ideas? -------------- next part -------------- An HTML attachment was scrubbed... URL: From GPotter at MarathonOil.com Thu Dec 5 23:39:27 2002 From: GPotter at MarathonOil.com (Potter, G M (Greg)) Date: Thu, 5 Dec 2002 16:39:27 -0600 Subject: FW: RE: Permissions Error Message-ID: What do you have in the cgi.cfg file for the following variables?: authorized_for_system_information=nagiosadmin authorized_for_configuration_information=nagiosadmin authorized_for_system_commands=nagiosadmin authorized_for_all_services=nagiosadmin authorized_for_all_hosts=nagiosadmin authorized_for_all_service_commands=nagiosadmin authorized_for_all_host_commands=nagiosadmin Greg -----Original Message----- From: Robertson, Brown [mailto:brown.robertson at maac.net] Sent: Thursday, December 05, 2002 4:14 PM To: ChrisF at winterlink.net Cc: Nagios-users at lists.sourceforge.net Subject: [Nagios-users] RE: Permissions Error Chris, did you ever find out the cause of your permission error? I am running Red Hat 8.0 and finding the same problem. I have also followed the faq exactly. .htaccess files look good, httpd.conf edited properly. Htpasswd.users file is correct. I'm wondering if it might be some problem with apache under RH 8.0? Anyone else have any ideas? Here's what I have in my httpd.conf: ScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/ AllowOverride AuthConfig Options ExecCGI Order allow,deny Allow from all Alias /nagios/ /usr/local/nagios/share/ Options None AllowOverride AuthConfig Order allow,deny Allow from all And in my .htaccess, located in /usr/local/nagios/sbin and /usr/local/nagios/share AuthName "Nagios Access" AuthType Basic AuthUserFile /usr/local/nagios/etc/htpasswd.users require valid-user Then I : htpasswd -c /usr/local/nagios/etc/htpasswd.users nagios Still no luck. It will continually request authentication but will never accept it. Any ideas? ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jcarro10 at sprintspectrum.com Fri Dec 6 00:44:42 2002 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Thu, 5 Dec 2002 17:44:42 -0600 Subject: max_check_attempts vs. logfiles vs. notification Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F247D@PKDWB03C.ad.sprint.com> I've had a bit of a puzzler in logic. I think. It hasn't been a major issue, but I suppose you could call it a 'fine tuning' aspect of Nagios logic. My host template for check-host-alive has max_check_attempts set to 10. My service template for everything has max_check_attempts set to 3. For the logfile scrubber checks (check_log via NRPE), I've set max_check_attempts to 1. Here's my reasoning. Feel free to point out any flaws (but be gentle ;). If max_check_attempts is set to any value greater than 1 (eg, 3): If logfile scrubber finds matching string in /var/adm/messages: (eg, 'error') then return a 'critical'. Nagios increments count of soft errors of this service check. Else: Reset soft error count. If soft count equals max_check_attempts: set hard failure to true. Else wait till next attempt. But the nature of check_log will only report on matches since the last check (ie, it doesn't re-examine parts of the logfile it's already examined). So with the next iteration, it will fail to find that string, the soft count gets reset to 0, and no notifications are sent out. That behaviour isn't desireable; it effectively renders check_log useless. So, on setting max_check_attempts to 1 for checking logfiles, a soft failure becomes a hard failure with the first iteration, notifications are sent out, everyone's happy. (Sidebar: I should mention that notification_options *only for check_log checks* is set just to 'c', therefore I would receive a page if 'error' is seen in the logfile, but I won't get a page once the check recovers, eg, the next time check_log scrapes the logfile and doesn't see any new occurrences of 'error'.) That approach in and of itself could be changed, if someone can provide a convincing argument. But that's not the main issue here. In the situation where the NRPE daemon is down (unlikely, unless something's misconfigured), all the various NRPE checks would normally return a critical (due to a timeout). I've created servicedependency rules for all the NRPE checks, except for a dummy NRPE "is NRPE up" check; all the servicedependency rules depend on the success of the dummy check working. So far, so good. However, with the aforementioned check_log checks, they go critical after one successful match. But they don't seem to care about the servicedependancy rule. I thought that this might be because of the fact that they hit the max_check_attempts limit on the first go. As a result, the check_log checks go critical if NRPE is down, but at times they seem to be the first alert that a host is down (or the only alert, if the host reboots quickly enough). It doesn't matter that I've defined the dependancy on the dummy service; I won't see an alert on that if the host itself is down, which is the proper response. I'm thinking that it all depends on which part of the service/host check cycle the events pan out. Now that I've written this all out, I realize there are two problems. I'm uncertain how (in)separable they are from each other. If I were to have a simple wish list of design regarding logfile checks, it would be this: - check for matching strings - if string matches, send notification immediately, set critical alert in web interface - condition remains critical until acknowledged, even if string never shows up again in logfile - critical alert would need to be acknowledged At this point, I haven't decided between the following paths: - once acknowledged, alert is cleared from Nagios or, - once acknowledged, alert remains as acknowledged until subsequent action is taken If I were to go with the latter, I can envision a variation of check_log which writes to a tempfile, and then a subsequent check_nrpe definition would remove said tempfile. Either that, or someone would need to login to the client host and remove the file manually. If we stick with the check_nrpe approach to removing the tempfile, I imagine I'd have to create a cgi (referenced in the extended host info) which, once clicked, would invoke the appropriate check_nrpe removal command. Not elegant, but workable. Sorry for the ramble; things seem moderately clearer now. If you've read this far, I still wouldn't mind hearing about clever solutions to what I'm trying to do. jc ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jack at monkeynoodle.org Fri Dec 6 00:43:40 2002 From: jack at monkeynoodle.org (Jack Coates) Date: 05 Dec 2002 15:43:40 -0800 Subject: check_command options don't work when defined in hosts.cfg? In-Reply-To: References: Message-ID: <1039131825.3621.34.camel@chupacabra.monkeynoodle.org> Thanks for the (albeit disappointing) response; I briefly considering writing 25 bash scripts to call my custom script, but on second thought I'll just be looking forward to the next version. Jack On Thu, 2002-12-05 at 12:26, Subhendu Ghosh wrote: > > Nagios 1.0 and pre do not accept arguments to host check commands, only > service commands. > > Use the post 1.0 CVS if you need that functionality. I think Ethan added > it earlier this week. > > -sg > > On 5 Dec 2002, Jack Coates wrote: > > > How come this works in services.cfg but doesn't in hosts.cfg? > > > > checkcommands.cfg: > > # 'check_multisvc.pl' command definition > > define command{ > > command_name check_multisvc.pl > > command_line $USER1$/contrib/check_multisvc.pl -H > > $HOSTADDRESS$ -F $ARG1$ -w $ARG2$ -c $ARG3$ > > } > > > > services.cfg: > > define service{ > > hostgroup_name web-servers > > service_description apache > > check_command > > check_multisvc.pl!/etc/nagios/check_multisvc-web.cfg!3!4 > > max_check_attempts 3 > > normal_check_interval 10 > > > > hosts.cfg: > > define host{ > > host_name pacp9 > > alias i01sv4166 > > address 147.208.166.81 > > parents worldcom-router > > check_command > > check_multisvc.pl!/etc/nagios/check_multisvc-acp.cfg!3!4 > > > > nagios -v output: > > Error: Host check command > > 'check_multisvc.pl!/etc/nagios/check_multisvc-acp.cfg!3!4' specified for > > host 'pacp9' is not defined anywhere! > > > > check_multisvc.pl is my own script which I plan to post after I get it > > into production; however, this happens with check_tcp as well. Nagios > > 1.0b6 on Mandrake 9.0. > > > > thanks, > > > > -- > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users -- Jack Coates Monkeynoodle: A Scientific Venture... ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jack at monkeynoodle.org Fri Dec 6 00:55:56 2002 From: jack at monkeynoodle.org (Jack Coates) Date: 05 Dec 2002 15:55:56 -0800 Subject: check_multisvc.pl Message-ID: <1039132559.3621.47.camel@chupacabra.monkeynoodle.org> As suggested here (http://sourceforge.net/mailarchive/forum.php?thread_id=1347791&forum_id=1873), I've written a wrapper to check several checks at once and return an aggregate score. It uses a config file to avoid passing quoted arguments in services.cfg, which won't work according to the plugin-developer documentation. I've tried to follow the developer documentation as closely as possible, but please let me know if you see an issue. thanks, -- Jack Coates Monkeynoodle: A Scientific Venture... -------------- next part -------------- A non-text attachment was scrubbed... Name: check_multisvc.pl Type: text/x-perl Size: 5611 bytes Desc: not available URL: -------------- next part -------------- # check_multisvc.cfg example. # Jack Coates, jack at monkeynoodle.org # format is unique identifier, whitespace, command to execute # NO QUOTING REQUIRED. # # Keep execution time in mind -- if the check_multisvc plugin takes more than # 10 seconds to complete, Nagios will fire an alert unless you modify the # timeout parameter. # # One group of checks per config file only. You can create multiple config # files and call them on the command line using the -F flag. 1 /bin/ping -c 1 %HOST% 2 /bin/ping -c 2 %HOST% 3 /bin/ping -c 3 %HOST% 4 /bin/ping -c 4 %HOST% From wrnash at wrnash.net Fri Dec 6 00:59:25 2002 From: wrnash at wrnash.net (wrnash) Date: Thu, 5 Dec 2002 18:59:25 -0500 Subject: Permissions Error In-Reply-To: References: Message-ID: <000901c29cba$5a6ba790$1e00a8c0@laptop> Have you did: htpasswd /usr/local/nagios/etc/htpasswd.users username And also is use_authentication=1 Do you get any error when you type /usr/local/nagios/bin/nagios -v
example would be /usr/local/nagios/etc/nagios.cfg Thanks Bill Nash -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Potter, G M (Greg) Sent: Thursday, December 05, 2002 5:39 PM To: Nagios-users (E-mail) Subject: FW: [Nagios-users] RE: Permissions Error What do you have in the cgi.cfg file for the following variables?: authorized_for_system_information=nagiosadmin authorized_for_configuration_information=nagiosadmin authorized_for_system_commands=nagiosadmin authorized_for_all_services=nagiosadmin authorized_for_all_hosts=nagiosadmin authorized_for_all_service_commands=nagiosadmin authorized_for_all_host_commands=nagiosadmin Greg -----Original Message----- From: Robertson, Brown [mailto:brown.robertson at maac.net] Sent: Thursday, December 05, 2002 4:14 PM To: ChrisF at winterlink.net Cc: Nagios-users at lists.sourceforge.net Subject: [Nagios-users] RE: Permissions Error Chris, did you ever find out the cause of your permission error? I am running Red Hat 8.0 and finding the same problem. I have also followed the faq exactly. .htaccess files look good, httpd.conf edited properly. Htpasswd.users file is correct. I'm wondering if it might be some problem with apache under RH 8.0? Anyone else have any ideas? Here's what I have in my httpd.conf: ScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/ AllowOverride AuthConfig Options ExecCGI Order allow,deny Allow from all Alias /nagios/ /usr/local/nagios/share/ Options None AllowOverride AuthConfig Order allow,deny Allow from all And in my .htaccess, located in /usr/local/nagios/sbin and /usr/local/nagios/share AuthName "Nagios Access" AuthType Basic AuthUserFile /usr/local/nagios/etc/htpasswd.users require valid-user Then I : htpasswd -c /usr/local/nagios/etc/htpasswd.users nagios Still no luck. It will continually request authentication but will never accept it. Any ideas? ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From william at wrnash.net Fri Dec 6 02:42:01 2002 From: william at wrnash.net (William R. Nash) Date: Thu, 5 Dec 2002 20:42:01 -0500 Subject: qpage and nagios Message-ID: <200212052042.01592.william@wrnash.net> Hello, I'm having a little problem now with qpage and nagios. Problem i can send a page from the command line to my pager using qpage. When nagios tried to send a page i get Connection refused by host. I have added my config files from my test machine. Thanks Bill Nash medic5591 at msn.com for chat -------------- next part -------------- # # The qpage configuration file is made up of keyword=value pairs: # # administrator= # # forcehostname=<"yes", "no", or @mailhost> # # queuedir= # # lockdir= # # identtimeout= # # snpptimeout= # # include= # # pidfile= # # synchronous=<"yes" or "no" to start queue runs immediately> # # modem= # text= # device= # initcmd= # dialcmd= # # service= # text= # device= # phone= # password= # baudrate= # parity=<"even", "odd", or "none"> # maxmsgsize= # maxpages= # maxtries= # allowpid=<"yes" or "no" to require pager entry in qpage.cf> # msgprefix=<"yes" or "no" to include sender's name in message> # # pager= # text= # pagerid= # service= # # group= # text= # member=[/schedule] # # Keyword values may not contain whitespace. Major keywords (administrator, # modem, pager, etc.) must start at the left column. Minor keywords (text, # device, etc.) must not start at the left column (i.e. they must be # preceeded by whitespace). Minor keywords may start on the same line # as their corresponding major keyword as long as there is at least one # space between the major keyword value and the minor keyword name. # # "true" or "false" may be specified instead of "yes" or "no" # # All text following a pound sign (#) is ignored. # administrator=william at wrnash.net queuedir=/var/spool/qpage identtimeout=5 snpptimeout=60 modem=ttya device=/dev/modem modem=ttyb device=/dev/ttyS0 service=default device=ttya,ttyb baudrate=1200 parity=even allowpid=yes maxtries=6 phone=404-873-6337 service=supercom phone=482-9768 service=range phone=4048736337 maxmsgsize=120 maxpages=6 # # start of pager list # pager=william text=William pagerid=7702233344 service=range #pager=tony # pagerid=711 # service=supercom #group=sysadmin # text=System_Administrator # member=tomiii/Any0000-0800 # member=tomiii/Any1700-2359 # member=tony/Any0800-1700 -------------- next part -------------- ################################################################################ # Sample object config file for Nagios 1.0 # # Read the documentation for more information on this configuration file. I've # provided some comments here, but things may not be so clear without further # explanation, so make sure to read the HTML documentation! # # Last Modified: 03-07-2002 # ################################################################################ ################################################################################ # CONTACT DEFINITIONS # # SYNTAX: # ################################################################################ # 'nagios' contact definition define contact{ contact_name nagios alias Nagios Admin service_notification_period 24x7 host_notification_period 24x7 service_notification_options w,u,c,r host_notification_options d,u,r service_notification_commands notify-by-qpager host_notification_commands host-notify-by-qpager pager william } -------------- next part -------------- ################################################################################ # Sample object config file for Nagios 1.0 # # Read the documentation for more information on this configuration file. I've # provided some comments here, but things may not be so clear without further # explanation, so make sure to read the HTML documentation! # # Last Modified: 05-27-2002 # ################################################################################ ################################################################################ # COMMAND DEFINITIONS # # SYNTAX: # # define command{ # template # name # command_name # command_line # } # # WHERE: # # = object name of another command definition that should be # used as a template for this definition (optional) # = object name of command definition, referenced by other # command definitions that use it as a template (optional) # = name of the command, as recognized/used by Nagios # = command line # ################################################################################ ################################################################################ # # SAMPLE NOTIFICATION COMMANDS # # These are some example notification commands. They may or may not work on # your system without modification. # ################################################################################ # 'notify-by-email' command definition define command{ command_name notify-by-email command_line /usr/bin/printf "%b" "***** Nagios 1.0 *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $DATETIME$\n\nAdditional Info:\n\n$OUTPUT$" | /bin/mail -s "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ } # 'notify-by-epager' command definition define command{ command_name notify-by-epager command_line /usr/bin/printf "%b" "Service: $SERVICEDESC$\nHost: $HOSTNAME$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\nInfo: $OUTPUT$\nDate: $DATETIME$" | /bin/mail -s "$NOTIFICATIONTYPE$: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$" $CONTACTPAGER$ } # 'host-notify-by-email' command definition define command{ command_name host-notify-by-email command_line /usr/bin/printf "%b" "***** Nagios 1.0 *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $OUTPUT$\n\nDate/Time: $DATETIME$\n" | /bin/mail -s "Host $HOSTSTATE$ alert for $HOSTNAME$!" $CONTACTEMAIL$ } # 'host-notify-by-epager' command definition define command{ command_name host-notify-by-epager command_line /usr/bin/printf "%b" "Host '$HOSTALIAS$' is $HOSTSTATE$\nInfo: $OUTPUT$\nTime: $DATETIME$" | /bin/mail -s "$NOTIFICATIONTYPE$ alert - Host $HOSTNAME$ is $HOSTSTATE$" $CONTACTPAGER$ } # notify-by-qpage command definition define command{ command_name notify-by-qpager command_line /usr/bin/printf "Service: %s\nHost: %s\nAddress: %s\nState: %s\nInfo: %s\nDate: %s" '$SERVICEDESC$' '$HOSTNAME$' '$HOSTADDRESS$' '$SERVICESTATES$' '$OUTPUT$' '$DATETIME$' | /usr/local/bin/qpage -l 0 -p $CONTACTPAGER$ } # host-notify-by-qpage command definition define command{ command_name host-notify-by-qpager command_line /usr/bin/printf "Host '%s' is %s\nInfo: %s\nTime: %s" '$HOSTALIAS$' '$HOSTSTATE$' '$OUTPUT$' '$DATETIME$'b| /usr/local/bin/qpage -l 0 -p $CONTACTPAGER$ } ################################################################################ # # SAMPLE PERFORMANCE DATA COMMANDS # # These are sample performance data commands that can be used to send performance # data output to two text files (one for hosts, another for services). If you # plan on simply writing performance data out to a file, consider compiling # Nagios with native file support for performance data. This is done by # supplying the --with-file-perfdata option to the configure script. # ################################################################################ # 'process-host-perfdata' command definition define command{ command_name process-host-perfdata command_line /usr/bin/printf "%b" "$LASTCHECK$\t$HOSTNAME$\t$HOSTSTATE$\t$HOSTATTEMPT$\t$STATETYPE$\t$EXECUTIONTIME$\t$OUTPUT$\t$PERFDATA$" >> /usr/local/nagios/var/host-perfdata.out } # 'process-service-perfdata' command definition define command{ command_name process-service-perfdata command_line /usr/bin/printf "%b" "$LASTCHECK$\t$HOSTNAME$\t$SERVICEDESC$\t$SERVICESTATE$\t$SERVICEATTEMPT$\t$STATETYPE$\t$EXECUTIONTIME$\t$LATENCY$\t$OUTPUT$\t$PERFDATA$" >> /usr/local/nagios/var/service-perfdata.out } From jasmine.chua at securecirt.com Fri Dec 6 03:44:53 2002 From: jasmine.chua at securecirt.com (Jasmine Chua) Date: Fri, 6 Dec 2002 10:44:53 +0800 Subject: parent_hosts Message-ID: <200212061045.09512.jasmine.chua@securecirt.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Nagios users, I have a problem in implementing parent_hosts in the host definition, when I do a -v on Nagios, it reports that it could not add that object property. I have upgraded to Nagios 1.0 .. I could not figure out why.. HELP please..! define host{ name monitoring-host ; The name of this host template - referenced in other host definitions, used for temp late recursion/resolution notifications_enabled 1 ; Host notifications are enabled event_handler_enabled 1 ; Host event handler is enabled flap_detection_enabled 1 ; Flap detection is enabled process_perf_data 1 ; Process performance data retain_status_information 1 ; Retain status information across program restarts retain_nonstatus_information 1 ; Retain non-status information across program restarts register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE! } # 'HostABC' host definition define host{ use monitoring-host host_name HostABC alias abc server address xxx.xxx.xxx.xxx check_command check-host-alive max_check_attempts 10 notification_interval 1 notification_period 24x7 notification_options d,u,r } # generic-host definition template define host{ name generic-host ; The name of this host template - referenced in other host definitions, used for temp late recursion/resolution notifications_enabled 0 ; Host notifications are enabled event_handler_enabled 1 ; Host event handler is enabled flap_detection_enabled 1 ; Flap detection is enabled process_perf_data 1 ; Process performance data retain_status_information 1 ; Retain status information across program restarts retain_nonstatus_information 1 ; Retain non-status information across program restarts parent_hosts HostABC register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE! } - -- Jasmine Chua Security Engineer, SecureCiRT (A SBU of Z-Vance Pte Ltd) http://www.securecirt.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE98A8tNgvTa7Hj2AURAudoAJ904aaGnYlN3KEvw0mf5qusjEcDRwCfVdtI 2mcUIxun2pEdgZNAgIDsDx8= =uXzT -----END PGP SIGNATURE----- ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From andrew_kemp at pacific.net.au Fri Dec 6 05:24:08 2002 From: andrew_kemp at pacific.net.au (Andrew Kemp) Date: Fri, 6 Dec 2002 15:24:08 +1100 Subject: Migrating from single monitoring server to distributed monitoring server Message-ID: <008601c29cdf$51c3c620$758317d2@ozpacnet.office.pacific.net.au> Gidday, We have a situation where a department has been running Netsaint in a stand alone environment to monitor their hosts and services. My department runs a distributed environment to monitor the enterprise wide hosts and services. We are in the position where we wish to integrate the other departments monitoring into the distributed environment. If I was to just add the hosts to the distributed environment as new entries, this would be very easy. However, there is a requirement to keep the Netsaint host (soon to be Nagios) and make it another distributed node in the monitoring environment. Also, I need to keep the historical data for the hosts/services that this host monitors (a couple of months). Can I simply do: cat nagios.log nagios2.log | sort > new-nagios.log (where nagios2.log is the log from the other host) to keep the information ? I will then iterate through all relevant log files to migrate the historical information across. Thanks. Andrew ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From ChrisF at winterlink.net Fri Dec 6 07:46:48 2002 From: ChrisF at winterlink.net (Chris Fairbanks) Date: Thu, 5 Dec 2002 22:46:48 -0800 Subject: Permissions Error Message-ID: <11C80DA1026CF545921B280740C440ED8BA609@exchange1.corp.winterlink.net> My httpasswd.users file and everything is setup totally correctly and use_authentication=1 is set. I have also tried setting all the authorized_for's = * but to no avail. From the sounds of it, it looks like this might be an issue with RH8.0 or Apache 2.0.40 that ships default with RH8.0. Is there anyone on this list that has Nagios working on RH8.0? Thanks, Chris -----Original Message----- From: wrnash [mailto:wrnash at wrnash.net] Sent: Thursday, December 05, 2002 3:59 PM To: 'Potter, G M (Greg)'; 'Nagios-users (E-mail)' Subject: RE: [Nagios-users] RE: Permissions Error Have you did: htpasswd /usr/local/nagios/etc/htpasswd.users username And also is use_authentication=1 Do you get any error when you type /usr/local/nagios/bin/nagios -v
example would be /usr/local/nagios/etc/nagios.cfg Thanks Bill Nash -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Potter, G M (Greg) Sent: Thursday, December 05, 2002 5:39 PM To: Nagios-users (E-mail) Subject: FW: [Nagios-users] RE: Permissions Error What do you have in the cgi.cfg file for the following variables?: authorized_for_system_information=nagiosadmin authorized_for_configuration_information=nagiosadmin authorized_for_system_commands=nagiosadmin authorized_for_all_services=nagiosadmin authorized_for_all_hosts=nagiosadmin authorized_for_all_service_commands=nagiosadmin authorized_for_all_host_commands=nagiosadmin Greg -----Original Message----- From: Robertson, Brown [mailto:brown.robertson at maac.net] Sent: Thursday, December 05, 2002 4:14 PM To: ChrisF at winterlink.net Cc: Nagios-users at lists.sourceforge.net Subject: [Nagios-users] RE: Permissions Error Chris, did you ever find out the cause of your permission error? I am running Red Hat 8.0 and finding the same problem. I have also followed the faq exactly. .htaccess files look good, httpd.conf edited properly. Htpasswd.users file is correct. I'm wondering if it might be some problem with apache under RH 8.0? Anyone else have any ideas? Here's what I have in my httpd.conf: ScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/ AllowOverride AuthConfig Options ExecCGI Order allow,deny Allow from all Alias /nagios/ /usr/local/nagios/share/ Options None AllowOverride AuthConfig Order allow,deny Allow from all And in my .htaccess, located in /usr/local/nagios/sbin and /usr/local/nagios/share AuthName "Nagios Access" AuthType Basic AuthUserFile /usr/local/nagios/etc/htpasswd.users require valid-user Then I : htpasswd -c /usr/local/nagios/etc/htpasswd.users nagios Still no luck. It will continually request authentication but will never accept it. Any ideas? ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From Fredrik.Wanglund at datavis.se Fri Dec 6 07:57:52 2002 From: Fredrik.Wanglund at datavis.se (=?iso-8859-1?Q?Fredrik_W=E4nglund?=) Date: Fri, 6 Dec 2002 07:57:52 +0100 Subject: Status UNKNOWN and no data in graphs Message-ID: <9EA0F1554816EB499A4B1136B80E8DE2780420@storevis.datavis.se> What do you get in/tmp/apan.debug? How often is the check run? /FredrikW -----Original Message----- From: Thomas Dorsch [mailto:td at ewt.de] Sent: Thu 05-Dec-02 10:59 To: nagios-users at lists.sourceforge.net Cc: Subject: [Nagios-users] Status UNKNOWN and no data in graphs Hi, i'm using nagios for a couple of days and it works great for me. This time i'm implementing the apan snmp plugin to get interface statistics from our cisco 's. After configuring it worked out of the box for one day. All graphs were produced fine but suddenly the state in nagios turned UNKNOWN and there were no more traffic graphs displayed. Below is the outputline of nagios service details and config samples also. net_flow (my command definition) UNKNOWN 12-05-2002 10:59:36 1d 19h 3m 54s 3/3 SNMP WARNING - Counter32: 3787811407 (this is still increasing but no data is displayed within the graphs) This is the line in apan.cfg: mycisco;net_flow;/usr/local/nagios/rrd/mycisco_net_flow.rrd;public:.1.3.6.1.2.1.2.2.1.10.3|public:.1.3.6.1.2.1.2.2.1.16.3;IN:LINE1 OUT:LINE2;Network throughput;Bytes/sek; which is the eth0 interface on a cisco MC3810. This is the commandline to create the rrd file: rrdtool create /usr/local/nagios/rrd/mycisco_net_flow.rrd -s 60 DS:IN:COUNTER:300:0:U DS:OUT:COUNTER:300:0:U RRA:AVERAGE:0.5:1:50400 RRA:AVERAGE:0.5:60:43800 Any idea what could be the problem. I tried a couple of things especially with heartbeat and also changed COUNTER to DERIVE, but the problem is still the same. Regards Tom ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From ChrisF at winterlink.net Fri Dec 6 08:22:20 2002 From: ChrisF at winterlink.net (Chris Fairbanks) Date: Thu, 5 Dec 2002 23:22:20 -0800 Subject: Permissions Error Message-ID: <11C80DA1026CF545921B280740C440ED8BA60A@exchange1.corp.winterlink.net> Another interesting tibit, I tired disabling use_authentication and setting up a default user, but I still get the same issues. Thanks Chris -----Original Message----- From: Chris Fairbanks Sent: Thursday, December 05, 2002 10:47 PM To: wrnash; Potter, G M (Greg); Nagios-users (E-mail) Cc: Robertson, Brown Subject: RE: [Nagios-users] RE: Permissions Error My httpasswd.users file and everything is setup totally correctly and use_authentication=1 is set. I have also tried setting all the authorized_for's = * but to no avail. From the sounds of it, it looks like this might be an issue with RH8.0 or Apache 2.0.40 that ships default with RH8.0. Is there anyone on this list that has Nagios working on RH8.0? Thanks, Chris -----Original Message----- From: wrnash [mailto:wrnash at wrnash.net] Sent: Thursday, December 05, 2002 3:59 PM To: 'Potter, G M (Greg)'; 'Nagios-users (E-mail)' Subject: RE: [Nagios-users] RE: Permissions Error Have you did: htpasswd /usr/local/nagios/etc/htpasswd.users username And also is use_authentication=1 Do you get any error when you type /usr/local/nagios/bin/nagios -v
example would be /usr/local/nagios/etc/nagios.cfg Thanks Bill Nash -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Potter, G M (Greg) Sent: Thursday, December 05, 2002 5:39 PM To: Nagios-users (E-mail) Subject: FW: [Nagios-users] RE: Permissions Error What do you have in the cgi.cfg file for the following variables?: authorized_for_system_information=nagiosadmin authorized_for_configuration_information=nagiosadmin authorized_for_system_commands=nagiosadmin authorized_for_all_services=nagiosadmin authorized_for_all_hosts=nagiosadmin authorized_for_all_service_commands=nagiosadmin authorized_for_all_host_commands=nagiosadmin Greg -----Original Message----- From: Robertson, Brown [mailto:brown.robertson at maac.net] Sent: Thursday, December 05, 2002 4:14 PM To: ChrisF at winterlink.net Cc: Nagios-users at lists.sourceforge.net Subject: [Nagios-users] RE: Permissions Error Chris, did you ever find out the cause of your permission error? I am running Red Hat 8.0 and finding the same problem. I have also followed the faq exactly. .htaccess files look good, httpd.conf edited properly. Htpasswd.users file is correct. I'm wondering if it might be some problem with apache under RH 8.0? Anyone else have any ideas? Here's what I have in my httpd.conf: ScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/ AllowOverride AuthConfig Options ExecCGI Order allow,deny Allow from all Alias /nagios/ /usr/local/nagios/share/ Options None AllowOverride AuthConfig Order allow,deny Allow from all And in my .htaccess, located in /usr/local/nagios/sbin and /usr/local/nagios/share AuthName "Nagios Access" AuthType Basic AuthUserFile /usr/local/nagios/etc/htpasswd.users require valid-user Then I : htpasswd -c /usr/local/nagios/etc/htpasswd.users nagios Still no luck. It will continually request authentication but will never accept it. Any ideas? ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From td at ewt.de Fri Dec 6 10:49:36 2002 From: td at ewt.de (Thomas Dorsch) Date: Fri, 06 Dec 2002 10:49:36 +0100 Subject: Status UNKNOWN and no data in graphs References: <9EA0F1554816EB499A4B1136B80E8DE2780420@storevis.datavis.se> Message-ID: <3DF072B0.60303@ewt.de> Hi Fredrik, i 'm sorry, i forgot to tell about the apan.debug log. The log says the data could not be inserted. Below is the output: Fri Dec 6 10:55:14 CET 2002 Args: snmpget myhost net_flow 1039168514 10 20 Could not insert ' ' , '1039168514' into /usr/local/nagios/rrd/myhost_net_flow.rrd To me it looks like that that the first value is empty ( ' ' ) This is my service definition: # Service definitions define service { use generic-service ; Name of service template to use host_name myhost service_description net_flow is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 1 retry_check_interval 1 contact_groups linux-admins notification_interval 240 notification_period 24x7 check_command apan!snmpget!10!20 } I hope this one helps.... Regards Tom Fredrik W?nglund wrote: >What do you get in/tmp/apan.debug? >How often is the check run? > >/FredrikW > >-----Original Message----- >From: Thomas Dorsch [mailto:td at ewt.de] >Sent: Thu 05-Dec-02 10:59 >To: nagios-users at lists.sourceforge.net >Cc: >Subject: [Nagios-users] Status UNKNOWN and no data in graphs > >Hi, > >i'm using nagios for a couple of days and it works great for me. This >time i'm implementing the apan snmp plugin to get interface statistics >from our cisco 's. After configuring it worked out of the box for one >day. All graphs were produced fine but suddenly the state in nagios >turned UNKNOWN and there were no more traffic graphs displayed. Below is >the outputline of nagios service details and config samples also. > >net_flow (my command definition) > >UNKNOWN >12-05-2002 10:59:36 >1d 19h 3m 54s >3/3 >SNMP WARNING - Counter32: 3787811407 (this is still increasing but no >data is displayed within the graphs) > >This is the line in apan.cfg: > >mycisco;net_flow;/usr/local/nagios/rrd/mycisco_net_flow.rrd;public:.1.3.6.1.2.1.2.2.1.10.3|public:.1.3.6.1.2.1.2.2.1.16.3;IN:LINE1 >OUT:LINE2;Network throughput;Bytes/sek; which is the eth0 interface on a >cisco MC3810. > >This is the commandline to create the rrd file: > >rrdtool create /usr/local/nagios/rrd/mycisco_net_flow.rrd -s 60 >DS:IN:COUNTER:300:0:U DS:OUT:COUNTER:300:0:U RRA:AVERAGE:0.5:1:50400 >RRA:AVERAGE:0.5:60:43800 > >Any idea what could be the problem. I tried a couple of things >especially with heartbeat and also changed COUNTER to DERIVE, but the >problem is still the same. > >Regards Tom > > > >------------------------------------------------------- >This sf.net email is sponsored by:ThinkGeek >Welcome to geek heaven. >http://thinkgeek.com/sf >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From sandro at opservices.com.br Fri Dec 6 15:37:29 2002 From: sandro at opservices.com.br (Sandro Merg Vaz) Date: Fri, 6 Dec 2002 11:37:29 -0300 Subject: =?iso-8859-1?Q?Histogram_graphic_don=B4t_show_lines_when_event_numbers_ar?= =?iso-8859-1?Q?e_high?= Message-ID: Hello all! Today i was generating some alert histogram reports, and some weird thing has happened... When the number of recovered, down and unreachable events are higher than 200 (in a day or month), for example, the lines in the histogram alerts don?t show up. If these values are lower than these limit, everything seems fine... I believe that?s is a Y-scale problem, because when the lines doesn?t appear, the Y-scale numbers doesn?t appear too... I also looked int the code of histogram.c to see if there is a max number of events that this program is able to process, but i?ve found nothing. Is it a known bug? I?ve also looked at the mailing list, but didn?t find nothing closer to my problem... Any help or idea?, TIA, Sandro Merg Vaz InterOp Inform?tica Divis?o OpServices Fone: (+55) 51 3216-7000 Fax : (+55) 51 3216-7001 e-mail: HYPERLINK "mailto:sandro at opservices.com.br"sandro at opservices.com.br HYPERLINK "http://www.interop.com.br/"http://www.interop.com.br ********************************** "It requires wisdom to understand wisdom: the music is nothing if the audience is deaf. " Walter Lippmann ********************************** --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.426 / Virus Database: 239 - Release Date: 2/12/2002 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Chris.Losch at newham.gov.uk Fri Dec 6 13:41:26 2002 From: Chris.Losch at newham.gov.uk (Chris Losch) Date: Fri, 6 Dec 2002 12:41:26 -0000 Subject: Permissions Error Message-ID: FYI, I have just built up a clean install of Redhat 8, and Nagios1.0 I have got Authentication setup and working ok (I can view cgi's), however I am unable to send commands from the Web Pages to Nagios (Scheduling Checks etc.) I am recieving the error Error: Could not stat() command file '/usr/local/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. :( If possible I would suggest you backup the config CGI's (hosts services etc) and start over, it seems to be easier than troubleshooting. Chris... yup another Chris. Just for reference I've included the bits below so you can cross reference your config files. cgi.cfg ------- authorized_for_system_information=xxxx,nagiosadmin, authorized_for_system_commands=xxxx,nagiosadmin, authorized_for_configuration_information=xxxx,nagiosadmin, authorized_for_all_hosts=xxxx,nagiosadmin, authorized_for_all_host_commands=xxxx,nagiosadmin, authorized_for_all_services=xxxx,nagiosadmin, authorized_for_all_service_commands=xxxx,nagiosadmin, .htaccess (in /usr/local/nagios/share/ and /usr/local/nagios/sbin/) --------- AuthName "Nagios Access" AuthType Basic AuthUserFile /usr/local/nagios/etc/htpasswd.users /usr/local/nagios/etc/htpasswd.users ------------------------------------ nagiosadmin: /etc/httpd/conf/httpd.conf (added the following, otherwise, no changes from default) -------------------------- ScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/ AllowOverride AuthConfig Options ExecCGI Order allow,deny Allow from all Alias /nagios/ /usr/local/nagios/share/ Options None AllowOverride AuthConfig Order allow,deny Allow from all /etc/local/nagios/etc/contacts.cfg ---------------------------------- define contact { contact_name nagiosadmin alias Nagios Admin service_notification_period 24x7 host_notification_period 24x7 service_notification_options w,u,c,r host_notification_options d,u,r service_notification_commands notify-by-email,notify-by-epager host_notification_commands host-notify-by-email,host-notify-by-epager email nagios-admin at localhost.localdomain pager pagenagios-admin at localhost.localdomain } /etc/local/nagios/etc/nagios.cfg --------------------------------- # # nagios.cfg - Config file for Nagios (www.nagios.org) # # Written by Nagat. Manually editing this file is a bad idea since Nagat will # overwrite it. Delete the nagatobj.dat file in the nagios/etc directory to # reread the Nagios configuration. # log_file=/usr/local/nagios/var/nagios.log cfg_file=/usr/local/nagios/etc/checkcommands.cfg cfg_file=/usr/local/nagios/etc/misccommands.cfg cfg_file=/usr/local/nagios/etc/contactgroups.cfg cfg_file=/usr/local/nagios/etc/contacts.cfg cfg_file=/usr/local/nagios/etc/dependencies.cfg cfg_file=/usr/local/nagios/etc/escalations.cfg cfg_file=/usr/local/nagios/etc/hostgroups.cfg cfg_file=/usr/local/nagios/etc/hosts.cfg cfg_file=/usr/local/nagios/etc/services.cfg cfg_file=/usr/local/nagios/etc/timeperiods.cfg resource_file=/usr/local/nagios/etc/resource.cfg status_file=/usr/local/nagios/var/status.log nagios_user=nagios nagios_group=nagios check_external_commands=1 command_check_interval=-1 command_file=/usr/local/nagios/var/rw/nagios.cmd comment_file=/usr/local/nagios/var/comment.log downtime_file=/usr/local/nagios/var/downtime.log lock_file=/usr/local/nagios/var/nagios.lock temp_file=/usr/local/nagios/var/nagios.tmp log_rotation_method=d log_archive_path=/usr/local/nagios/var/archives use_syslog=1 log_notifications=1 log_service_retries=1 log_host_retries=1 log_event_handlers=1 log_initial_states=0 log_external_commands=1 log_passive_service_checks=1 inter_check_delay_method=s service_interleave_factor=s max_concurrent_checks=0 service_reaper_frequency=10 sleep_time=1 service_check_timeout=60 host_check_timeout=30 event_handler_timeout=30 notification_timeout=30 ocsp_timeout=5 perfdata_timeout=5 retain_state_information=1 state_retention_file=/usr/local/nagios/var/status.sav retention_update_interval=60 use_retained_program_state=0 interval_length=60 use_agressive_host_checking=0 execute_service_checks=1 accept_passive_service_checks=1 enable_notifications=1 enable_event_handlers=1 process_performance_data=0 obsess_over_services=0 check_for_orphaned_services=0 check_service_freshness=1 freshness_check_interval=60 aggregate_status_updates=1 status_update_interval=15 enable_flap_detection=0 low_service_flap_threshold=5.0 high_service_flap_threshold=20.0 low_host_flap_threshold=5.0 high_host_flap_threshold=20.0 date_format=euro illegal_object_name_chars=`~!$%^&*|'"<>?,()= illegal_macro_output_chars=`~$&|'"<> admin_email=nagios admin_pager=pagenagios -----Original Message----- From: Chris Fairbanks [mailto:ChrisF at winterlink.net] Sent: 06 December 2002 07:22 To: Chris Fairbanks; wrnash; Potter, G M (Greg); Nagios-users (E-mail) Cc: Robertson, Brown Subject: RE: [Nagios-users] RE: Permissions Error Another interesting tibit, I tired disabling use_authentication and setting up a default user, but I still get the same issues. Thanks Chris -----Original Message----- From: Chris Fairbanks Sent: Thursday, December 05, 2002 10:47 PM To: wrnash; Potter, G M (Greg); Nagios-users (E-mail) Cc: Robertson, Brown Subject: RE: [Nagios-users] RE: Permissions Error My httpasswd.users file and everything is setup totally correctly and use_authentication=1 is set. I have also tried setting all the authorized_for's = * but to no avail. From the sounds of it, it looks like this might be an issue with RH8.0 or Apache 2.0.40 that ships default with RH8.0. Is there anyone on this list that has Nagios working on RH8.0? Thanks, Chris ********************************************************************** Important: This e-mail is intended for the above named person only and should be treated as confidential. If this has come to you in error you should take no action based on it, nor should you copy or show it to anyone; please telephone us immediately. ********************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: From vance.duke at imaginuity.com Fri Dec 6 14:55:09 2002 From: vance.duke at imaginuity.com (Vance Duke) Date: Fri, 6 Dec 2002 07:55:09 -0600 Subject: Sendmail Email Unable to send... do not know where to change this In-Reply-To: <3DF072B0.60303@ewt.de> References: <3DF072B0.60303@ewt.de> Message-ID: Here is the bounce back that I am getting. I assume it is because the Domain for the email address is Monitor (which is the machine name). In the NAGIOS.CFG I have set the Administrator Email address to "vance.duke at imaginuity.com". This error I am getting when trying to send mail from within Sendmail, and this is the bounce back. > The original message was received at Thu, 5 Dec 2002 15:56:13 -0600 from root at localhost > > ----- The following addresses had permanent fatal errors ----- > vance.duke at imaginuity.com (reason: 501 ... Sender domain must exist) > > ----- Transcript of session follows ----- > ... while talking to raq3.imaginuity.com.: > >>> MAIL From: SIZE=354 > <<< 501 ... Sender domain must exist > 501 5.6.0 Data format error This is the log information from the Sendmail log. > Dec 5 15:56:13 Monitor sendmail[4267]: gB5LuDI04267: from=nagios at Monitor, size=354, class=0, nrcpts=1, msgid=<200212052156.gB5LuDI04267 at Monitor>, relay=root at localhost > Dec 5 15:56:13 Monitor sendmail[4270]: gB5LuDI04267: to=vance.duke at imaginuity.com, ctladdr=nagios at Monitor (500/500), delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=30354, relay=raq3.imaginuity.com. [216.234.235.10], dsn=5.6.0, stat=Data format error > Dec 5 15:56:13 Monitor sendmail[4270]: gB5LuDI04267: gB5LuDH04270: DSN: Data format error I do not know if this a Nagios issue or a Sendmail issue, and any help would be appreciated. Thanks, Vance Duke ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From rplewe at ess.nec.de Fri Dec 6 15:08:43 2002 From: rplewe at ess.nec.de (Rasmus Plewe) Date: Fri, 6 Dec 2002 15:08:43 +0100 Subject: Modifying scheduled downtime Message-ID: <20021206150843.B1344@ess.nec.de> Hello, it's nice to be able to schedule downtime for complete hostgroups/services. But I was unable to modify this information afterwards. I scheduled downtime for a number of hostgroups, hosts and services. Then it is decided to change the day of the downtime (or extend it a couple of hours, which is quite common at the end of the downtime...). The only way I found to do it was to delete the var/downtime.log file and define new downtimes. If I have a complex set of downtimes (which is not the case currently) this is bound to get messy. Is there any place I missed in either documentation or web interface where I can simply perform a "edit the following set of downtimes"? Given the format in downtime.log I doubt it, because I didn't have the impression that downtimes were handled on a "per downtime" basis, but rather on an individual host/service level. Regards, Rasmus ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From opensrcguru at inzauro.com Fri Dec 6 15:08:55 2002 From: opensrcguru at inzauro.com (opensrcguru) Date: 06 Dec 2002 08:08:55 -0600 Subject: Permissions Error In-Reply-To: <11C80DA1026CF545921B280740C440ED8BA609@exchange1.corp.winterlink.net> References: <11C80DA1026CF545921B280740C440ED8BA609@exchange1.corp.winterlink.net> Message-ID: <1039183765.18054.34.camel@inzauro1.axiomintegration.com> My install works great. RH8.0 Apache 1.3.27 mod_ssl,mod_perl,php4. You might try deleting the trailing slash on the "Alias /nagios/ /usr/local/nagios/share/" to "Alias /nagios /usr/local/nagios/share" and the \n restart Apache. Terry Inzauro On Fri, 2002-12-06 at 00:46, Chris Fairbanks wrote: My httpasswd.users file and everything is setup totally correctly and use_authentication=1 is set. I have also tried setting all the authorized_for's = * but to no avail. From the sounds of it, it looks like this might be an issue with RH8.0 or Apache 2.0.40 that ships default with RH8.0. Is there anyone on this list that has Nagios working on RH8.0? Thanks, Chris -----Original Message----- From: wrnash [mailto:wrnash at wrnash.net] Sent: Thursday, December 05, 2002 3:59 PM To: 'Potter, G M (Greg)'; 'Nagios-users (E-mail)' Subject: RE: [Nagios-users] RE: Permissions Error Have you did: htpasswd /usr/local/nagios/etc/htpasswd.users username And also is use_authentication=1 Do you get any error when you type /usr/local/nagios/bin/nagios -v
example would be /usr/local/nagios/etc/nagios.cfg Thanks Bill Nash -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Potter, G M (Greg) Sent: Thursday, December 05, 2002 5:39 PM To: Nagios-users (E-mail) Subject: FW: [Nagios-users] RE: Permissions Error What do you have in the cgi.cfg file for the following variables?: authorized_for_system_information=nagiosadmin authorized_for_configuration_information=nagiosadmin authorized_for_system_commands=nagiosadmin authorized_for_all_services=nagiosadmin authorized_for_all_hosts=nagiosadmin authorized_for_all_service_commands=nagiosadmin authorized_for_all_host_commands=nagiosadmin Greg -----Original Message----- From: Robertson, Brown [mailto:brown.robertson at maac.net] Sent: Thursday, December 05, 2002 4:14 PM To: ChrisF at winterlink.net Cc: Nagios-users at lists.sourceforge.net Subject: [Nagios-users] RE: Permissions Error Chris, did you ever find out the cause of your permission error? I am running Red Hat 8.0 and finding the same problem. I have also followed the faq exactly. .htaccess files look good, httpd.conf edited properly. Htpasswd.users file is correct. I'm wondering if it might be some problem with apache under RH 8.0? Anyone else have any ideas? Here's what I have in my httpd.conf: ScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/ AllowOverride AuthConfig Options ExecCGI Order allow,deny Allow from all Alias /nagios/ /usr/local/nagios/share/ Options None AllowOverride AuthConfig Order allow,deny Allow from all And in my .htaccess, located in /usr/local/nagios/sbin and /usr/local/nagios/share AuthName "Nagios Access" AuthType Basic AuthUserFile /usr/local/nagios/etc/htpasswd.users require valid-user Then I : htpasswd -c /usr/local/nagios/etc/htpasswd.users nagios Still no luck. It will continually request authentication but will never accept it. Any ideas? ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From p.miquet at hafiba.fr Fri Dec 6 15:49:53 2002 From: p.miquet at hafiba.fr (Pascal Miquet) Date: 06 Dec 2002 15:49:53 +0100 Subject: Using some different check scheduling. Message-ID: <1039186196.5444.10.camel@moishe> Hello, according to some different load during the week, I'd like to check spooled files for printer and issue messages according to different levels. Is there a way to have different schedule for services ? Or should I have two timeperiod according to notification, and two services which are the same, but with a given timeperiod, and treshold ? Any good Idea is welcome. Regards. Pascal Miquet ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From p.miquet at hafiba.fr Fri Dec 6 15:57:56 2002 From: p.miquet at hafiba.fr (Pascal Miquet) Date: 06 Dec 2002 15:57:56 +0100 Subject: Sendmail Email Unable to send... do not know where to change this In-Reply-To: References: Message-ID: <1039186633.5470.15.camel@moishe> Did you try to send manually an Email to vance ? If sendmail if setted correctly, vance should receive your email. To solve my problem, I've added the smtp to the /etc/hosts file. In my case the smtp isn't the provider one but our Mail server. You may also have a look to the webmin interface, to manager your server, and services attached to it, like sendmail. HTH Regards. Pascal Miquet Le ven 06/12/2002 ? 14:55, Vance Duke a ?crit : > > Here is the bounce back that I am getting. I assume it is because the > Domain for the email address is Monitor (which is the machine name). In the > NAGIOS.CFG I have set the Administrator Email address to > "vance.duke at imaginuity.com". > > This error I am getting when trying to send mail from within Sendmail, and > this is the bounce back. > > > The original message was received at Thu, 5 Dec 2002 15:56:13 -0600 from > root at localhost > > > > ----- The following addresses had permanent fatal errors ----- > > vance.duke at imaginuity.com (reason: 501 ... Sender domain > must exist) > > > > ----- Transcript of session follows ----- > > ... while talking to raq3.imaginuity.com.: > > >>> MAIL From: SIZE=354 > > <<< 501 ... Sender domain must exist > > 501 5.6.0 Data format error > > > This is the log information from the Sendmail log. > > > Dec 5 15:56:13 Monitor sendmail[4267]: gB5LuDI04267: from=nagios at Monitor, > size=354, class=0, nrcpts=1, msgid=<200212052156.gB5LuDI04267 at Monitor>, > relay=root at localhost > > Dec 5 15:56:13 Monitor sendmail[4270]: gB5LuDI04267: > to=vance.duke at imaginuity.com, ctladdr=nagios at Monitor (500/500), > delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=30354, > relay=raq3.imaginuity.com. [216.234.235.10], dsn=5.6.0, stat=Data format > error > > Dec 5 15:56:13 Monitor sendmail[4270]: gB5LuDI04267: gB5LuDH04270: DSN: > Data format error > > I do not know if this a Nagios issue or a Sendmail issue, and any help would > be appreciated. > > Thanks, > Vance Duke > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From wilson at unity.ncsu.edu Fri Dec 6 16:04:56 2002 From: wilson at unity.ncsu.edu (Brian Wilson) Date: Fri, 6 Dec 2002 10:04:56 -0500 (EST) Subject: return codes and output from check scripts In-Reply-To: <20021206081144.A217@IPAustralia.Gov.AU> References: <20021206081144.A217@IPAustralia.Gov.AU> Message-ID: Of course that's not the whole script, the script runs from the command line as nagios user just fine. On Fri, 6 Dec 2002, Stanley Hopcroft wrote: > Dear Sir, > > On Thu, Dec 05, 2002 at 02:51:35PM -0500, Brian Wilson wrote: > > > > use utils qw(%ERRORS); > > if ($ps1status == 2 && $ps2status == 2 ) { > > print "SNMP OK - Chassis Power Supplies OK\n"; > > exit $ERRORS{'OK'}; > > } else { > > print "SNMP CRITICAL - Chassis Power Supply Failure\n"; > > exit $ERRORS{'CRITICAL'}; > > } > > > > > > Brian > > > > Is that all the script ? > > Perhaps this is a stupid question but were are the values of $ps1status > and $ps2status being set ? > > FWIW, 'No output' is almost always some fault in the script or the > script environment (the Nagios user is unlikely to have the same > permissions as your shell. > > If in doubt, compile another copy of Nagios with the service check debug > configure option (see Debugging in the Docs) and run it from the > foreground (with your production config or a stripped down one) or try > the mini_epn in the contrib directory. > > Last resort is standard script/CGI debugging techniques: have the script > ouput state ad nauseum. > > Yours sincerely. > > -- Brian Wilson Network Analyst Communication Technologies, ATD W: 919.513.3472 North Carolina State University www.ncstate.net ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From wilson at unity.ncsu.edu Fri Dec 6 16:03:37 2002 From: wilson at unity.ncsu.edu (Brian Wilson) Date: Fri, 6 Dec 2002 10:03:37 -0500 (EST) Subject: return codes and output from check scripts In-Reply-To: References: Message-ID: On Thu, 5 Dec 2002, Subhendu Ghosh wrote: > is it executeable by the nagios process? (couldn't tell from your shell > prompt) Yes, I was executing it as user nagios from the prompt. > > is the there a "use lib ..." before "use utils qw(%ERRORS)" > Nope, but this shouldn't matter. Even if I change the line to "exit 0;" instead of using the utils.pm, I still get "no output". > -sg > > On Thu, 5 Dec 2002, Brian Wilson wrote: > > > On Thu, 5 Dec 2002, Brian Wilson wrote: > > > > > > > > I've written a few check scripts to do various things.. and I was under > > > the impression that they were working correctly.. but they arent. Here's > > > what happens: > > > > > > Here's the command defined: > > > > > > define command{ > > > command_name check_powersupply > > > command_line $USER1$/check_powersupply $HOSTADDRESS$ > > > } > > > > > > Here's the output of the command from the logs: > > > > > > [1039116104] > > > SERVICE;itspare-6509-1;powersupply;CRITICAL;3/3;HARD;1039116079;1039116139;ACTIVE;1;1;1;1039110049;0;CRITICAL;5347;0;0;2983;1039110049;1;1;0;0;0;0;0.00;0;1;0;1;(No output!) > > > > > > Here's when i run the command as user nagios from the command line: > > > $ ./check_powersupply itspare-6509-1 > > > SNMP OK - Chassis Power Supplies OK > > > $ echo $? > > > 0 > > > > > > So why is nagios saying "no output"? Any ideas? > > > > > > Oh yeah, and my script does this: > > > > use utils qw(%ERRORS); > > if ($ps1status == 2 && $ps2status == 2 ) { > > print "SNMP OK - Chassis Power Supplies OK\n"; > > exit $ERRORS{'OK'}; > > } else { > > print "SNMP CRITICAL - Chassis Power Supply Failure\n"; > > exit $ERRORS{'CRITICAL'}; > > } > > > > > > Brian > > > > -- > > Brian Wilson Network Analyst > > Communication Technologies, ATD W: 919.513.3472 > > North Carolina State University www.ncstate.net > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > -- Brian Wilson Network Analyst Communication Technologies, ATD W: 919.513.3472 North Carolina State University www.ncstate.net ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From tinzauro at axiomintegration.com Fri Dec 6 16:12:07 2002 From: tinzauro at axiomintegration.com (Terry Inzauro) Date: 06 Dec 2002 09:12:07 -0600 Subject: Permissions Error In-Reply-To: References: Message-ID: <1039187532.18052.45.camel@inzauro1.axiomintegration.com> I cam across the same error once. If there was a nagios process running, kill it. If there is a $INSTALLPATH/var/rw/nagios.cmd file, delete it. Next, start nagios with the /etc/rc.d/init/nagios script. Then try the request again. If does the same thing. try chmodddddding the $INSTALLPATH/var/rw/nagios.cmd file for something like 777, then work it backwards from there. Terry Inzauro On Fri, 2002-12-06 at 06:41, Chris Losch wrote: FYI, I have just built up a clean install of Redhat 8, and Nagios1.0 I have got Authentication setup and working ok (I can view cgi's), however I am unable to send commands from the Web Pages to Nagios (Scheduling Checks etc.) I am recieving the error Error: Could not stat() command file '/usr/local/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. :( If possible I would suggest you backup the config CGI's (hosts services etc) and start over, it seems to be easier than troubleshooting. Chris... yup another Chris. Just for reference I've included the bits below so you can cross reference your config files. cgi.cfg ------- authorized_for_system_information=xxxx,nagiosadmin, authorized_for_system_commands=xxxx,nagiosadmin, authorized_for_configuration_information=xxxx,nagiosadmin, authorized_for_all_hosts=xxxx,nagiosadmin, authorized_for_all_host_commands=xxxx,nagiosadmin, authorized_for_all_services=xxxx,nagiosadmin, authorized_for_all_service_commands=xxxx,nagiosadmin, .htaccess (in /usr/local/nagios/share/ and /usr/local/nagios/sbin/) --------- AuthName "Nagios Access" AuthType Basic AuthUserFile /usr/local/nagios/etc/htpasswd.users /usr/local/nagios/etc/htpasswd.users ------------------------------------ nagiosadmin: /etc/httpd/conf/httpd.conf (added the following, otherwise, no changes from default) -------------------------- ScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/ AllowOverride AuthConfig Options ExecCGI Order allow,deny Allow from all Alias /nagios/ /usr/local/nagios/share/ Options None AllowOverride AuthConfig Order allow,deny Allow from all /etc/local/nagios/etc/contacts.cfg ---------------------------------- define contact { contact_name nagiosadmin alias Nagios Admin service_notification_period 24x7 host_notification_period 24x7 service_notification_options w,u,c,r host_notification_options d,u,r service_notification_commands notify-by-email,notify-by-epager host_notification_commands host-notify-by-email,host-notify-by-epager email nagios-admin at localhost.localdomain pager pagenagios-admin at localhost.localdomain } /etc/local/nagios/etc/nagios.cfg --------------------------------- # # nagios.cfg - Config file for Nagios (www.nagios.org) # # Written by Nagat. Manually editing this file is a bad idea since Nagat will # overwrite it. Delete the nagatobj.dat file in the nagios/etc directory to # reread the Nagios configuration. # log_file=/usr/local/nagios/var/nagios.log cfg_file=/usr/local/nagios/etc/checkcommands.cfg cfg_file=/usr/local/nagios/etc/misccommands.cfg cfg_file=/usr/local/nagios/etc/contactgroups.cfg cfg_file=/usr/local/nagios/etc/contacts.cfg cfg_file=/usr/local/nagios/etc/dependencies.cfg cfg_file=/usr/local/nagios/etc/escalations.cfg cfg_file=/usr/local/nagios/etc/hostgroups.cfg cfg_file=/usr/local/nagios/etc/hosts.cfg cfg_file=/usr/local/nagios/etc/services.cfg cfg_file=/usr/local/nagios/etc/timeperiods.cfg resource_file=/usr/local/nagios/etc/resource.cfg status_file=/usr/local/nagios/var/status.log nagios_user=nagios nagios_group=nagios check_external_commands=1 command_check_interval=-1 command_file=/usr/local/nagios/var/rw/nagios.cmd comment_file=/usr/local/nagios/var/comment.log downtime_file=/usr/local/nagios/var/downtime.log lock_file=/usr/local/nagios/var/nagios.lock temp_file=/usr/local/nagios/var/nagios.tmp log_rotation_method=d log_archive_path=/usr/local/nagios/var/archives use_syslog=1 log_notifications=1 log_service_retries=1 log_host_retries=1 log_event_handlers=1 log_initial_states=0 log_external_commands=1 log_passive_service_checks=1 inter_check_delay_method=s service_interleave_factor=s max_concurrent_checks=0 service_reaper_frequency=10 sleep_time=1 service_check_timeout=60 host_check_timeout=30 event_handler_timeout=30 notification_timeout=30 ocsp_timeout=5 perfdata_timeout=5 retain_state_information=1 state_retention_file=/usr/local/nagios/var/status.sav retention_update_interval=60 use_retained_program_state=0 interval_length=60 use_agressive_host_checking=0 execute_service_checks=1 accept_passive_service_checks=1 enable_notifications=1 enable_event_handlers=1 process_performance_data=0 obsess_over_services=0 check_for_orphaned_services=0 check_service_freshness=1 freshness_check_interval=60 aggregate_status_updates=1 status_update_interval=15 enable_flap_detection=0 low_service_flap_threshold=5.0 high_service_flap_threshold=20.0 low_host_flap_threshold=5.0 high_host_flap_threshold=20.0 date_format=euro illegal_object_name_chars=`~!$%^&*|'"<>?,()= illegal_macro_output_chars=`~$&|'"<> admin_email=nagios admin_pager=pagenagios -----Original Message----- From: Chris Fairbanks [mailto:ChrisF at winterlink.net] Sent: 06 December 2002 07:22 To: Chris Fairbanks; wrnash; Potter, G M (Greg); Nagios-users (E-mail) Cc: Robertson, Brown Subject: RE: [Nagios-users] RE: Permissions Error Another interesting tibit, I tired disabling use_authentication and setting up a default user, but I still get the same issues. Thanks Chris -----Original Message----- From: Chris Fairbanks Sent: Thursday, December 05, 2002 10:47 PM To: wrnash; Potter, G M (Greg); Nagios-users (E-mail) Cc: Robertson, Brown Subject: RE: [Nagios-users] RE: Permissions Error My httpasswd.users file and everything is setup totally correctly and use_authentication=1 is set. I have also tried setting all the authorized_for's = * but to no avail. From the sounds of it, it looks like this might be an issue with RH8.0 or Apache 2.0.40 that ships default with RH8.0. Is there anyone on this list that has Nagios working on RH8.0? Thanks, Chris ********************************************************************** Important: This e-mail is intended for the above named person only and should be treated as confidential. If this has come to you in error you should take no action based on it, nor should you copy or show it to anyone; please telephone us immediately. ********************************************************************** Terry Inzauro Systems Engineer Email: tinzauro at axiomintegration.com Phone: 402.345.5500 Fax: 402.345.5501 US Mail: Axiom Integration, Inc. One Owen Pkwy 2200 Abbott Drive Carter Lake, IA 51510 -------------- next part -------------- An HTML attachment was scrubbed... URL: From sghosh at sghosh.org Fri Dec 6 16:59:34 2002 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Fri, 6 Dec 2002 10:59:34 -0500 (EST) Subject: Using some different check scheduling. In-Reply-To: <1039186196.5444.10.camel@moishe> References: <1039186196.5444.10.camel@moishe> Message-ID: On 6 Dec 2002, Pascal Miquet wrote: > Hello, according to some different load during the week, I'd like to > check spooled files for printer and issue messages according to > different levels. > > Is there a way to have different schedule for services ? > Or should I have two timeperiod according to notification, and two > services which are the same, but with a given timeperiod, and treshold ? > > Any good Idea is welcome. > Regards. > Pascal Miquet > > If you want to check the same service with different thersholds at different time, then the best wy yo do it is not define to service checks each with a different timperiod. -- -sg ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From mpowell at ena.com Fri Dec 6 17:07:18 2002 From: mpowell at ena.com (Marc Powell) Date: Fri, 6 Dec 2002 10:07:18 -0600 Subject: Sendmail Email Unable to send... do not know where to change this Message-ID: <5DB017510818EC468B05BD7BD9EACF8301E26735@mismail.ena.com> You need to define your hostname in sendmail.cf on the monitoring machine. I believe it is the Dj macro but please rtfm to be sure. -- Marc Sent from a very tiny wireless device with a very tiny unlit keyboard. -----Original Message----- From: Vance Duke To: Nagios-users at lists.sourceforge.net Sent: Fri Dec 06 07:55:09 2002 Subject: [Nagios-users] Sendmail Email Unable to send... do not know where to change this Here is the bounce back that I am getting. I assume it is because the Domain for the email address is Monitor (which is the machine name). In the NAGIOS.CFG I have set the Administrator Email address to "vance.duke at imaginuity.com". This error I am getting when trying to send mail from within Sendmail, and this is the bounce back. > The original message was received at Thu, 5 Dec 2002 15:56:13 -0600 from root at localhost > > ----- The following addresses had permanent fatal errors ----- > vance.duke at imaginuity.com (reason: 501 ... Sender domain must exist) > > ----- Transcript of session follows ----- > ... while talking to raq3.imaginuity.com.: > >>> MAIL From: SIZE=354 > <<< 501 ... Sender domain must exist > 501 5.6.0 Data format error This is the log information from the Sendmail log. > Dec 5 15:56:13 Monitor sendmail[4267]: gB5LuDI04267: from=nagios at Monitor, size=354, class=0, nrcpts=1, msgid=<200212052156.gB5LuDI04267 at Monitor>, relay=root at localhost > Dec 5 15:56:13 Monitor sendmail[4270]: gB5LuDI04267: to=vance.duke at imaginuity.com, ctladdr=nagios at Monitor (500/500), delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=30354, relay=raq3.imaginuity.com. [216.234.235.10], dsn=5.6.0, stat=Data format error > Dec 5 15:56:13 Monitor sendmail[4270]: gB5LuDI04267: gB5LuDH04270: DSN: Data format error I do not know if this a Nagios issue or a Sendmail issue, and any help would be appreciated. Thanks, Vance Duke ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From td at ewt.de Fri Dec 6 17:07:54 2002 From: td at ewt.de (Thomas Dorsch) Date: Fri, 06 Dec 2002 17:07:54 +0100 Subject: [Fwd: Re: Status UNKNOWN and no data in graphs "problem found"] Message-ID: <3DF0CB5A.6040008@ewt.de> Subject: Re: [Nagios-users] Status UNKNOWN and no data in graphs "problem found" Date: Fri, 06 Dec 2002 13:31:48 +0100 From: Thomas Dorsch To: Fredrik W?nglund CC: apan-users at lists.sourceforge.net References: <9EA0F1554816EB499A4B1136B80E8DE2780426 at storevis.datavis.se> Hi everybody, i just found out what the problem was. I had a buggy mib in /usr/share/snmp/mibs/ which causes the check_snmp plugin to fail. I removed it temporariliy and everthing is in a good state. Special thanks to Fredrik Waenglund and Markus Linke who helped me to focus the problem so i could solve it. Kind Regards Tom -------------- next part -------------- An HTML attachment was scrubbed... URL: From brown.robertson at maac.net Fri Dec 6 17:29:40 2002 From: brown.robertson at maac.net (Robertson, Brown) Date: Fri, 6 Dec 2002 10:29:40 -0600 Subject: Permissions Error Message-ID: <2CDD9C051F451F4BB0615B9547F1B4295BB60B@maacmail.maac.int> Very interesting. I've chmod'd my entire nagios folders and double checked the .htaccess files to the same conclusion. The only correlation I can observe between us would have to be a RH8.0 + apache combination. Crazy. -----Original Message----- From: Chris Fairbanks [mailto:ChrisF at winterlink.net] Sent: Friday, December 06, 2002 1:22 AM To: Chris Fairbanks; wrnash; Potter, G M (Greg); Nagios-users (E-mail) Cc: Robertson, Brown Subject: RE: [Nagios-users] RE: Permissions Error Another interesting tibit, I tired disabling use_authentication and setting up a default user, but I still get the same issues. Thanks Chris -----Original Message----- From: Chris Fairbanks Sent: Thursday, December 05, 2002 10:47 PM To: wrnash; Potter, G M (Greg); Nagios-users (E-mail) Cc: Robertson, Brown Subject: RE: [Nagios-users] RE: Permissions Error My httpasswd.users file and everything is setup totally correctly and use_authentication=1 is set. I have also tried setting all the authorized_for's = * but to no avail. From the sounds of it, it looks like this might be an issue with RH8.0 or Apache 2.0.40 that ships default with RH8.0. Is there anyone on this list that has Nagios working on RH8.0? Thanks, Chris -----Original Message----- From: wrnash [mailto:wrnash at wrnash.net] Sent: Thursday, December 05, 2002 3:59 PM To: 'Potter, G M (Greg)'; 'Nagios-users (E-mail)' Subject: RE: [Nagios-users] RE: Permissions Error Have you did: htpasswd /usr/local/nagios/etc/htpasswd.users username And also is use_authentication=1 Do you get any error when you type /usr/local/nagios/bin/nagios -v
example would be /usr/local/nagios/etc/nagios.cfg Thanks Bill Nash -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Potter, G M (Greg) Sent: Thursday, December 05, 2002 5:39 PM To: Nagios-users (E-mail) Subject: FW: [Nagios-users] RE: Permissions Error What do you have in the cgi.cfg file for the following variables?: authorized_for_system_information=nagiosadmin authorized_for_configuration_information=nagiosadmin authorized_for_system_commands=nagiosadmin authorized_for_all_services=nagiosadmin authorized_for_all_hosts=nagiosadmin authorized_for_all_service_commands=nagiosadmin authorized_for_all_host_commands=nagiosadmin Greg -----Original Message----- From: Robertson, Brown [mailto:brown.robertson at maac.net] Sent: Thursday, December 05, 2002 4:14 PM To: ChrisF at winterlink.net Cc: Nagios-users at lists.sourceforge.net Subject: [Nagios-users] RE: Permissions Error Chris, did you ever find out the cause of your permission error? I am running Red Hat 8.0 and finding the same problem. I have also followed the faq exactly. .htaccess files look good, httpd.conf edited properly. Htpasswd.users file is correct. I'm wondering if it might be some problem with apache under RH 8.0? Anyone else have any ideas? Here's what I have in my httpd.conf: ScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/ AllowOverride AuthConfig Options ExecCGI Order allow,deny Allow from all Alias /nagios/ /usr/local/nagios/share/ Options None AllowOverride AuthConfig Order allow,deny Allow from all And in my .htaccess, located in /usr/local/nagios/sbin and /usr/local/nagios/share AuthName "Nagios Access" AuthType Basic AuthUserFile /usr/local/nagios/etc/htpasswd.users require valid-user Then I : htpasswd -c /usr/local/nagios/etc/htpasswd.users nagios Still no luck. It will continually request authentication but will never accept it. Any ideas? ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jambo at icbank.metacom.ru Fri Dec 6 17:33:16 2002 From: jambo at icbank.metacom.ru (=?Windows-1251?B?zOjw7u3u4iDI4+7w/CDO6+Xj7uLo9w==?=) Date: Fri, 6 Dec 2002 19:33:16 +0300 Subject: Statusmap.cgi: premature end of script headers Message-ID: <1841709688.20021206193316@icbank.metacom.ru> Hello nagios-users! Would you be so kind to help me? I installed Nagios-1.0 on Suse 8.0. I installed gd-libraries, compilled Nagios and plugins (no errors,warnings, everything OK). But I have a problem with the statusmap.cgi.There are no images in it. There is a message in the Apache Error log:premature end of script headers:/usr/local/nagios/sbin/statusmap.cgi Any ideas? Best regards, jambo. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From emann at questinc.org Fri Dec 6 17:41:54 2002 From: emann at questinc.org (Evan Mann) Date: Fri, 6 Dec 2002 11:41:54 -0500 Subject: Statusmap.cgi: premature end of script headers Message-ID: This fixed it for me: add SetENV LD_LIBRARY_PATH /usr/local/lib to your httpd.conf point it to the directory wherever your gd libs and libpngs libs are. -----Original Message----- From: jambo at icbank.metacom.ru [mailto:jambo at icbank.metacom.ru] Sent: Friday, December 06, 2002 11:33 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Statusmap.cgi: premature end of script headers Hello nagios-users! Would you be so kind to help me? I installed Nagios-1.0 on Suse 8.0. I installed gd-libraries, compilled Nagios and plugins (no errors,warnings, everything OK). But I have a problem with the statusmap.cgi.There are no images in it. There is a message in the Apache Error log:premature end of script headers:/usr/local/nagios/sbin/statusmap.cgi Any ideas? Best regards, jambo. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From brown.robertson at maac.net Fri Dec 6 18:11:04 2002 From: brown.robertson at maac.net (Robertson, Brown) Date: Fri, 6 Dec 2002 11:11:04 -0600 Subject: Permissions Error Message-ID: <2CDD9C051F451F4BB0615B9547F1B4294D41@maacmail.maac.int> Eureka guys. It's definitely a permission issue. Chmod your htpasswd.users file (/usr/local/nagios/ets/htpasswd.users if that's where you put it) to 777. That should do the trick. There weren't sufficient permissions to access that file for the authentication information. I'm almost positive this was the cause, but in case it's not, I chmod'd all my nagios directories to 777, .htaccess files to 777, and htpasswd.users file to 777. Hope that helps. Brown. Special Thanks to Scott Ripley for his suggestion in trying this. -----Original Message----- From: Chris Fairbanks [mailto:ChrisF at winterlink.net] Sent: Friday, December 06, 2002 12:47 AM To: wrnash; Potter, G M (Greg); Nagios-users (E-mail) Cc: Robertson, Brown Subject: RE: [Nagios-users] RE: Permissions Error My httpasswd.users file and everything is setup totally correctly and use_authentication=1 is set. I have also tried setting all the authorized_for's = * but to no avail. From the sounds of it, it looks like this might be an issue with RH8.0 or Apache 2.0.40 that ships default with RH8.0. Is there anyone on this list that has Nagios working on RH8.0? Thanks, Chris -----Original Message----- From: wrnash [mailto:wrnash at wrnash.net] Sent: Thursday, December 05, 2002 3:59 PM To: 'Potter, G M (Greg)'; 'Nagios-users (E-mail)' Subject: RE: [Nagios-users] RE: Permissions Error Have you did: htpasswd /usr/local/nagios/etc/htpasswd.users username And also is use_authentication=1 Do you get any error when you type /usr/local/nagios/bin/nagios -v
example would be /usr/local/nagios/etc/nagios.cfg Thanks Bill Nash -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Potter, G M (Greg) Sent: Thursday, December 05, 2002 5:39 PM To: Nagios-users (E-mail) Subject: FW: [Nagios-users] RE: Permissions Error What do you have in the cgi.cfg file for the following variables?: authorized_for_system_information=nagiosadmin authorized_for_configuration_information=nagiosadmin authorized_for_system_commands=nagiosadmin authorized_for_all_services=nagiosadmin authorized_for_all_hosts=nagiosadmin authorized_for_all_service_commands=nagiosadmin authorized_for_all_host_commands=nagiosadmin Greg -----Original Message----- From: Robertson, Brown [mailto:brown.robertson at maac.net] Sent: Thursday, December 05, 2002 4:14 PM To: ChrisF at winterlink.net Cc: Nagios-users at lists.sourceforge.net Subject: [Nagios-users] RE: Permissions Error Chris, did you ever find out the cause of your permission error? I am running Red Hat 8.0 and finding the same problem. I have also followed the faq exactly. .htaccess files look good, httpd.conf edited properly. Htpasswd.users file is correct. I'm wondering if it might be some problem with apache under RH 8.0? Anyone else have any ideas? Here's what I have in my httpd.conf: ScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/ AllowOverride AuthConfig Options ExecCGI Order allow,deny Allow from all Alias /nagios/ /usr/local/nagios/share/ Options None AllowOverride AuthConfig Order allow,deny Allow from all And in my .htaccess, located in /usr/local/nagios/sbin and /usr/local/nagios/share AuthName "Nagios Access" AuthType Basic AuthUserFile /usr/local/nagios/etc/htpasswd.users require valid-user Then I : htpasswd -c /usr/local/nagios/etc/htpasswd.users nagios Still no luck. It will continually request authentication but will never accept it. Any ideas? ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From p.miquet at hafiba.fr Fri Dec 6 18:19:17 2002 From: p.miquet at hafiba.fr (Pascal Miquet) Date: 06 Dec 2002 18:19:17 +0100 Subject: Using some different check scheduling. In-Reply-To: References: Message-ID: <1039195167.5444.18.camel@moishe> Hello, By TimePeriod, you mean the notification period. If what I said is true, this implies that same services are checked twice time. Right ? PM. Le ven 06/12/2002 ? 16:59, Subhendu Ghosh a ?crit : > On 6 Dec 2002, Pascal Miquet wrote: > > > Hello, according to some different load during the week, I'd like to > > check spooled files for printer and issue messages according to > > different levels. > > > > Is there a way to have different schedule for services ? > > Or should I have two timeperiod according to notification, and two > > services which are the same, but with a given timeperiod, and treshold ? > > > > Any good Idea is welcome. > > Regards. > > Pascal Miquet > > > > > > If you want to check the same service with different thersholds at > different time, then the best wy yo do it is not define to service checks > each with a different timperiod. > > -- > -sg > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jcarro10 at sprintspectrum.com Fri Dec 6 18:24:55 2002 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 6 Dec 2002 11:24:55 -0600 Subject: volatile services (was: RE: max_check_attempts vs. logfiles vs. notification) Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F247F@PKDWB03C.ad.sprint.com> I think I may have an answer to my requirement. I was looking at the docs regarding Volatile Services (http://your_nagios_server/nagios/docs/volatileservices.html) and realized this *may* do what I need it to do. But I have a concern that I was hoping someone could address. In the docs, it states: "These events normally only occur for services when they are in a non-OK state and a hard state change has just occurred. In other words, they only happen the first time that a service goes into a non-OK state. If future checks of the service result in the same non-OK state, no hard state change occurs and none of the events mentioned take place again." This seems to indicate that if check_log finds 'error' the first time, notifications will be sent out and the status is reset to OK. So far, so good. But what happens if each/every time check_log goes there and finds 'error' in the logfile (eg, a rapidly degrading disk)? Will Nagios say, "Yeah, you told me about that already. I'm not going to send out notifications, because I did that already"? I'm going to try to test this out (determining design through observation), but if someone could shed some light on this (the actual design through empirical evidence), it would be appreciated. jc ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From Chris.Losch at newham.gov.uk Fri Dec 6 18:31:33 2002 From: Chris.Losch at newham.gov.uk (Chris Losch) Date: Fri, 6 Dec 2002 17:31:33 -0000 Subject: Permissions Error Message-ID: I'm afraid its a case of been there, done that... but just in case I did something wrong, I tried again... Stopped Nagios and $INSTALLPATH/var/rw/nagios.cmd disappeared (as it should - see I even tried reading the manual :-D ) Used the /etc/rc.d/init/nagios script to start it, $INSTALLPATH/var/rw/nagios.cmd re-appears with the default permissions prw-rw---- 1 nagios nagiocmd 0 Dec 6 17:20 nagios.cmd CHMOD'd 777 it, still receiving the same error when attempting the command. Have even tried restarting the httpd :( which runs under the 'apache' user, which is part of the nagiocmd group. Incidently the parent (rw) directory has the permissions, drwxrwS--- 2 nagios nagiocmd 4096 Dec 6 17:20 rw Maybe someone will spot where im going wrong. Anyway, have a good weekend all. Chris -----Original Message----- From: Terry Inzauro [mailto:tinzauro at axiomintegration.com] Sent: 06 December 2002 15:12 To: Chris Losch Cc: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] RE: Permissions Error I cam across the same error once. If there was a nagios process running, kill it. If there is a $INSTALLPATH/var/rw/nagios.cmd file, delete it. Next, start nagios with the /etc/rc.d/init/nagios script. Then try the request again. If does the same thing. try chmodddddding the $INSTALLPATH/var/rw/nagios.cmd file for something like 777, then work it backwards from there. Terry Inzauro On Fri, 2002-12-06 at 06:41, Chris Losch wrote: FYI, I have just built up a clean install of Redhat 8, and Nagios1.0 I have got Authentication setup and working ok (I can view cgi's), however I am unable to send commands from the Web Pages to Nagios (Scheduling Checks etc.) I am recieving the error Error: Could not stat() command file '/usr/local/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. :( If possible I would suggest you backup the config CGI's (hosts services etc) and start over, it seems to be easier than troubleshooting. Chris... yup another Chris. Just for reference I've included the bits below so you can cross reference your config files. cgi.cfg ------- authorized_for_system_information=xxxx,nagiosadmin, authorized_for_system_commands=xxxx,nagiosadmin, authorized_for_configuration_information=xxxx,nagiosadmin, authorized_for_all_hosts=xxxx,nagiosadmin, authorized_for_all_host_commands=xxxx,nagiosadmin, authorized_for_all_services=xxxx,nagiosadmin, authorized_for_all_service_commands=xxxx,nagiosadmin, .htaccess (in /usr/local/nagios/share/ and /usr/local/nagios/sbin/) --------- AuthName "Nagios Access" AuthType Basic AuthUserFile /usr/local/nagios/etc/htpasswd.users /usr/local/nagios/etc/htpasswd.users ------------------------------------ nagiosadmin: /etc/httpd/conf/httpd.conf (added the following, otherwise, no changes from default) -------------------------- ScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/ AllowOverride AuthConfig Options ExecCGI Order allow,deny Allow from all Alias /nagios/ /usr/local/nagios/share/ Options None AllowOverride AuthConfig Order allow,deny Allow from all /etc/local/nagios/etc/contacts.cfg ---------------------------------- define contact { contact_name nagiosadmin alias Nagios Admin service_notification_period 24x7 host_notification_period 24x7 service_notification_options w,u,c,r host_notification_options d,u,r service_notification_commands notify-by-email,notify-by-epager host_notification_commands host-notify-by-email,host-notify-by-epager email nagios-admin at localhost.localdomain pager pagenagios-admin at localhost.localdomain } /etc/local/nagios/etc/nagios.cfg --------------------------------- # # nagios.cfg - Config file for Nagios (www.nagios.org) # # Written by Nagat. Manually editing this file is a bad idea since Nagat will # overwrite it. Delete the nagatobj.dat file in the nagios/etc directory to # reread the Nagios configuration. # log_file=/usr/local/nagios/var/nagios.log cfg_file=/usr/local/nagios/etc/checkcommands.cfg cfg_file=/usr/local/nagios/etc/misccommands.cfg cfg_file=/usr/local/nagios/etc/contactgroups.cfg cfg_file=/usr/local/nagios/etc/contacts.cfg cfg_file=/usr/local/nagios/etc/dependencies.cfg cfg_file=/usr/local/nagios/etc/escalations.cfg cfg_file=/usr/local/nagios/etc/hostgroups.cfg cfg_file=/usr/local/nagios/etc/hosts.cfg cfg_file=/usr/local/nagios/etc/services.cfg cfg_file=/usr/local/nagios/etc/timeperiods.cfg resource_file=/usr/local/nagios/etc/resource.cfg status_file=/usr/local/nagios/var/status.log nagios_user=nagios nagios_group=nagios check_external_commands=1 command_check_interval=-1 command_file=/usr/local/nagios/var/rw/nagios.cmd comment_file=/usr/local/nagios/var/comment.log downtime_file=/usr/local/nagios/var/downtime.log lock_file=/usr/local/nagios/var/nagios.lock temp_file=/usr/local/nagios/var/nagios.tmp log_rotation_method=d log_archive_path=/usr/local/nagios/var/archives use_syslog=1 log_notifications=1 log_service_retries=1 log_host_retries=1 log_event_handlers=1 log_initial_states=0 log_external_commands=1 log_passive_service_checks=1 inter_check_delay_method=s service_interleave_factor=s max_concurrent_checks=0 service_reaper_frequency=10 sleep_time=1 service_check_timeout=60 host_check_timeout=30 event_handler_timeout=30 notification_timeout=30 ocsp_timeout=5 perfdata_timeout=5 retain_state_information=1 state_retention_file=/usr/local/nagios/var/status.sav retention_update_interval=60 use_retained_program_state=0 interval_length=60 use_agressive_host_checking=0 execute_service_checks=1 accept_passive_service_checks=1 enable_notifications=1 enable_event_handlers=1 process_performance_data=0 obsess_over_services=0 check_for_orphaned_services=0 check_service_freshness=1 freshness_check_interval=60 aggregate_status_updates=1 status_update_interval=15 enable_flap_detection=0 low_service_flap_threshold=5.0 high_service_flap_threshold=20.0 low_host_flap_threshold=5.0 high_host_flap_threshold=20.0 date_format=euro illegal_object_name_chars=`~!$%^&*|'"<>?,()= illegal_macro_output_chars=`~$&|'"<> admin_email=nagios admin_pager=pagenagios -----Original Message----- From: Chris Fairbanks [ mailto:ChrisF at winterlink.net] Sent: 06 December 2002 07:22 To: Chris Fairbanks; wrnash; Potter, G M (Greg); Nagios-users (E-mail) Cc: Robertson, Brown Subject: RE: [Nagios-users] RE: Permissions Error Another interesting tibit, I tired disabling use_authentication and setting up a default user, but I still get the same issues. Thanks Chris -----Original Message----- From: Chris Fairbanks Sent: Thursday, December 05, 2002 10:47 PM To: wrnash; Potter, G M (Greg); Nagios-users (E-mail) Cc: Robertson, Brown Subject: RE: [Nagios-users] RE: Permissions Error My httpasswd.users file and everything is setup totally correctly and use_authentication=1 is set. I have also tried setting all the authorized_for's = * but to no avail. From the sounds of it, it looks like this might be an issue with RH8.0 or Apache 2.0.40 that ships default with RH8.0. Is there anyone on this list that has Nagios working on RH8.0? Thanks, Chris ********************************************************************** Important: This e-mail is intended for the above named person only and should be treated as confidential. If this has come to you in error you should take no action based on it, nor should you copy or show it to anyone; please telephone us immediately. ********************************************************************** Terry Inzauro Systems Engineer Email: tinzauro at axiomintegration.com Phone: 402.345.5500 Fax: 402.345.5501 US Mail: Axiom Integration, Inc. One Owen Pkwy 2200 Abbott Drive Carter Lake, IA 51510 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcarro10 at sprintspectrum.com Fri Dec 6 18:49:30 2002 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 6 Dec 2002 11:49:30 -0600 Subject: Sendmail Email Unable to send... do not know w here to change this Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F2481@PKDWB03C.ad.sprint.com> Minor quibble #1: 'Monitor' isn't a domain name (or FQDN (Fully Qualified Domain Name)). Minor quibble #2: 'Monitor' should be 'monitor'. It's always recommended that you use lowercase names, but that your system accept lower/uppercase. (I've seen problems in the past when the hostname began with an uppercase character.) Evidently your mailhost (raq3.imaginuity.com) isn't able to confirm that the forward and reverse lookups for Monitor match. (It's a setting meant to minimize spammers falsifying their sender address and/or using your mailhost as a relay for their nefarious tasks.) Do this: - in the DNS that raq3.imaginuity.com knows about, add the A record for 'monitor.imaginuity.com' - change your Nagios hostname to 'monitor' - look for the macro in /etc/sendmail.cf called "Dj" (it will be at the beginning of the line, and there should only be one occurrence of it) - change everything after "Dj" to 'monitor.imaginuity.com' so that you end up with "Djmonitor.imaginuity.com" - restart sendmail on your Nagios host - send a test e-mail from your Nagios host to 'vance.duke at imaginuity.com' If this still fails, you might have an unusual setup. You might want to consider installing nullmailer on your Nagios host. Let us know how it goes. jc > -----Original Message----- > From: Vance Duke [mailto:vance.duke at imaginuity.com] > Sent: Friday, December 06, 2002 7:55 AM > To: Nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Sendmail Email Unable to send... do not know > where to change this > > > > Here is the bounce back that I am getting. I assume it is because the > Domain for the email address is Monitor (which is the machine > name). In the > NAGIOS.CFG I have set the Administrator Email address to > "vance.duke at imaginuity.com". > > This error I am getting when trying to send mail from within > Sendmail, and > this is the bounce back. > > > The original message was received at Thu, 5 Dec 2002 > 15:56:13 -0600 from > root at localhost > > > > ----- The following addresses had permanent fatal errors ----- > > vance.duke at imaginuity.com (reason: 501 ... > Sender domain > must exist) > > > > ----- Transcript of session follows ----- > > ... while talking to raq3.imaginuity.com.: > > >>> MAIL From: SIZE=354 > > <<< 501 ... Sender domain must exist > > 501 5.6.0 Data format error > > > This is the log information from the Sendmail log. > > > Dec 5 15:56:13 Monitor sendmail[4267]: gB5LuDI04267: > from=nagios at Monitor, > size=354, class=0, nrcpts=1, > msgid=<200212052156.gB5LuDI04267 at Monitor>, > relay=root at localhost > > Dec 5 15:56:13 Monitor sendmail[4270]: gB5LuDI04267: > to=vance.duke at imaginuity.com, ctladdr=nagios at Monitor (500/500), > delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=30354, > relay=raq3.imaginuity.com. [216.234.235.10], dsn=5.6.0, > stat=Data format > error > > Dec 5 15:56:13 Monitor sendmail[4270]: gB5LuDI04267: > gB5LuDH04270: DSN: > Data format error > > I do not know if this a Nagios issue or a Sendmail issue, and > any help would > be appreciated. > > Thanks, > Vance Duke > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From sghosh at sghosh.org Fri Dec 6 18:42:20 2002 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Fri, 6 Dec 2002 12:42:20 -0500 (EST) Subject: Using some different check scheduling. In-Reply-To: <1039195167.5444.18.camel@moishe> References: <1039195167.5444.18.camel@moishe> Message-ID: I meant the time-period field in the service definition. If the two time periods are not overlapping, then the service will only be checked once. If you want the same check, same time, different threshold, then yes - you need duplicate checks. Alternately, your notification script could parse the $OUTPUT and determine which message to send based on the contents of $OUTPUT -sg On 6 Dec 2002, Pascal Miquet wrote: > Hello, > > By TimePeriod, you mean the notification period. > If what I said is true, this implies that same services are checked > twice time. Right ? > > PM. > > Le ven 06/12/2002 ?? 16:59, Subhendu Ghosh a ??crit : > > On 6 Dec 2002, Pascal Miquet wrote: > > > > > Hello, according to some different load during the week, I'd like to > > > check spooled files for printer and issue messages according to > > > different levels. > > > > > > Is there a way to have different schedule for services ? > > > Or should I have two timeperiod according to notification, and two > > > services which are the same, but with a given timeperiod, and treshold ? > > > > > > Any good Idea is welcome. > > > Regards. > > > Pascal Miquet > > > > > > > > > > If you want to check the same service with different thersholds at > > different time, then the best wy yo do it is not define to service checks > > each with a different timperiod. > > > > -- > > -sg > > > > -- ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From sghosh at sghosh.org Fri Dec 6 18:43:46 2002 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Fri, 6 Dec 2002 12:43:46 -0500 (EST) Subject: Permissions Error In-Reply-To: <2CDD9C051F451F4BB0615B9547F1B4294D41@maacmail.maac.int> References: <2CDD9C051F451F4BB0615B9547F1B4294D41@maacmail.maac.int> Message-ID: You may want to provide world read access - but you almost never want to provide world write access... -sg On Fri, 6 Dec 2002, Robertson, Brown wrote: > Eureka guys. It's definitely a permission issue. Chmod your > htpasswd.users file (/usr/local/nagios/ets/htpasswd.users if that's > where you put it) to 777. That should do the trick. There weren't > sufficient permissions to access that file for the authentication > information. I'm almost positive this was the cause, but in case it's > not, I chmod'd all my nagios directories to 777, .htaccess files to 777, > and htpasswd.users file to 777. Hope that helps. Brown. > > Special Thanks to Scott Ripley for his suggestion in trying this. > > > > > > > -----Original Message----- > From: Chris Fairbanks [mailto:ChrisF at winterlink.net] > Sent: Friday, December 06, 2002 12:47 AM > To: wrnash; Potter, G M (Greg); Nagios-users (E-mail) > Cc: Robertson, Brown > Subject: RE: [Nagios-users] RE: Permissions Error > > My httpasswd.users file and everything is setup totally correctly and > use_authentication=1 is set. I have also tried setting all the > authorized_for's = * but to no avail. From the sounds of it, it looks > like this might be an issue with RH8.0 or Apache 2.0.40 that ships > default with RH8.0. Is there anyone on this list that has Nagios > working on RH8.0? > > Thanks, > Chris > > > > -----Original Message----- > From: wrnash [mailto:wrnash at wrnash.net] > Sent: Thursday, December 05, 2002 3:59 PM > To: 'Potter, G M (Greg)'; 'Nagios-users (E-mail)' > Subject: RE: [Nagios-users] RE: Permissions Error > > > Have you did: > htpasswd /usr/local/nagios/etc/htpasswd.users username > > And also is use_authentication=1 > Do you get any error when you type /usr/local/nagios/bin/nagios -v
configuration file> example would be /usr/local/nagios/etc/nagios.cfg > > > Thanks Bill Nash > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Potter, G > M (Greg) > Sent: Thursday, December 05, 2002 5:39 PM > To: Nagios-users (E-mail) > Subject: FW: [Nagios-users] RE: Permissions Error > > What do you have in the cgi.cfg file for the following variables?: > > authorized_for_system_information=nagiosadmin > authorized_for_configuration_information=nagiosadmin > authorized_for_system_commands=nagiosadmin > authorized_for_all_services=nagiosadmin > authorized_for_all_hosts=nagiosadmin > authorized_for_all_service_commands=nagiosadmin > authorized_for_all_host_commands=nagiosadmin > > Greg > > -----Original Message----- > From: Robertson, Brown [mailto:brown.robertson at maac.net] > Sent: Thursday, December 05, 2002 4:14 PM > To: ChrisF at winterlink.net > Cc: Nagios-users at lists.sourceforge.net > Subject: [Nagios-users] RE: Permissions Error > > > Chris, did you ever find out the cause of your permission error? I am > running Red Hat 8.0 and finding the same problem. I have also followed > the faq exactly. .htaccess files look good, httpd.conf edited properly. > Htpasswd.users file is correct. I'm wondering if it might be some > problem with apache under RH 8.0? > > Anyone else have any ideas? > > Here's what I have in my httpd.conf: > > ScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/ > > AllowOverride AuthConfig > Options ExecCGI > Order allow,deny > Allow from all > > > Alias /nagios/ /usr/local/nagios/share/ > > Options None > AllowOverride AuthConfig > Order allow,deny > Allow from all > > > And in my .htaccess, located in /usr/local/nagios/sbin and > /usr/local/nagios/share > > AuthName "Nagios Access" > AuthType Basic > AuthUserFile /usr/local/nagios/etc/htpasswd.users > require valid-user > > > Then I : > > htpasswd -c /usr/local/nagios/etc/htpasswd.users nagios > > > > Still no luck. It will continually request authentication but will never > accept it. > > Any ideas? > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > -- ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jcarro10 at sprintspectrum.com Fri Dec 6 18:52:56 2002 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 6 Dec 2002 11:52:56 -0600 Subject: Modifying scheduled downtime Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2E526D@PKDWB03C.ad.sprint.com> Two approaches that I can think of: - Click on Downtime; under Actions, click the trashcan icon (to delete the downtime). Re-add from scratch. - Learn the subtleties of nagios.cmd and write the necessary script to pump the commands into Nagios (delete/add) Perhaps the feature you're looking for will be there in version 3.0. ;) jc > -----Original Message----- > From: Rasmus Plewe [mailto:rplewe at ess.nec.de] > Sent: Friday, December 06, 2002 8:09 AM > To: Nagios users list > Subject: [Nagios-users] Modifying scheduled downtime > > > Hello, > > it's nice to be able to schedule downtime for complete > hostgroups/services. But I was unable to modify this information > afterwards. > > I scheduled downtime for a number of hostgroups, hosts and services. > Then it is decided to change the day of the downtime (or extend it a > couple of hours, which is quite common at the end of the > downtime...). The only way I found to do it was to delete the > var/downtime.log file and define new downtimes. If I have a complex > set of downtimes (which is not the case currently) this is bound to > get messy. Is there any place I missed in either documentation or web > interface where I can simply perform a "edit the following set of > downtimes"? Given the format in downtime.log I doubt it, because I > didn't have the impression that downtimes were handled on a "per > downtime" basis, but rather on an individual host/service level. > > > Regards, > Rasmus > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From whiatt at upstanding.com Fri Dec 6 19:03:20 2002 From: whiatt at upstanding.com (Hiatt, William) Date: Fri, 6 Dec 2002 10:03:20 -0800 Subject: check_ifstatus.pl - returns unkn Message-ID: <71520D1F83A0C6408D99155D4CCAE0AA02B74D@exch-be-01.upstanding.com> When running check_ifstatus.pl, the service gets set to CRITICAL, and I see the following in nagios: "(Return code of 126 is out of bounds - plugin may be missing)" Nagios can execute the plugin. my /etc/checkcommands.cfg # 'check_ifstatus' command definition define command{ command_name check_ifstatus command_line /usr/local/nagios/libexec/check_ifstatus.pl -c COMMUNITY $HOSTADDRESS$ } I can run the plugin directly from the shell, and when i do I get the following: "OK: host 'ip address', interfaces up: 5, down: 0, dormant: 0 Any ideas? Thanks william ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From sripley at chiaro.com Fri Dec 6 18:42:29 2002 From: sripley at chiaro.com (Scott Ripley) Date: Fri, 6 Dec 2002 11:42:29 -0600 Subject: Permissions Error Message-ID: <668C5EBD23862F459CF63DAFFCA6268C023A75@rchst006.chiaro.com> chmod 777 will work, but may not be the best solution. There should be a directive in your httpd.conf that specifies the group. It looks like: Group (for me, the is nobody) I would reccomend that you: chown root: htpasswd.user chmod 640 htpasswd.user This will prevent the file from being readable by any user, but allow root to write to and apache to read from it. Since many people will be using the RH8.0 distro, this may be a good item for inclusion in the FAQ. Perhaps with the addition of the specific default group name RH uses for apache... Scott. -----Original Message----- From: Robertson, Brown [mailto:brown.robertson at maac.net] Sent: Friday, December 06, 2002 11:11 AM To: Chris Fairbanks; wrnash; Potter, G M (Greg); Nagios-users (E-mail) Cc: Scott Ripley Subject: RE: [Nagios-users] RE: Permissions Error Eureka guys. It's definitely a permission issue. Chmod your htpasswd.users file (/usr/local/nagios/ets/htpasswd.users if that's where you put it) to 777. That should do the trick. There weren't sufficient permissions to access that file for the authentication information. I'm almost positive this was the cause, but in case it's not, I chmod'd all my nagios directories to 777, .htaccess files to 777, and htpasswd.users file to 777. Hope that helps. Brown. Special Thanks to Scott Ripley for his suggestion in trying this. -----Original Message----- From: Chris Fairbanks [mailto:ChrisF at winterlink.net] Sent: Friday, December 06, 2002 12:47 AM To: wrnash; Potter, G M (Greg); Nagios-users (E-mail) Cc: Robertson, Brown Subject: RE: [Nagios-users] RE: Permissions Error My httpasswd.users file and everything is setup totally correctly and use_authentication=1 is set. I have also tried setting all the authorized_for's = * but to no avail. From the sounds of it, it looks like this might be an issue with RH8.0 or Apache 2.0.40 that ships default with RH8.0. Is there anyone on this list that has Nagios working on RH8.0? Thanks, Chris -----Original Message----- From: wrnash [mailto:wrnash at wrnash.net] Sent: Thursday, December 05, 2002 3:59 PM To: 'Potter, G M (Greg)'; 'Nagios-users (E-mail)' Subject: RE: [Nagios-users] RE: Permissions Error Have you did: htpasswd /usr/local/nagios/etc/htpasswd.users username And also is use_authentication=1 Do you get any error when you type /usr/local/nagios/bin/nagios -v
example would be /usr/local/nagios/etc/nagios.cfg Thanks Bill Nash -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Potter, G M (Greg) Sent: Thursday, December 05, 2002 5:39 PM To: Nagios-users (E-mail) Subject: FW: [Nagios-users] RE: Permissions Error What do you have in the cgi.cfg file for the following variables?: authorized_for_system_information=nagiosadmin authorized_for_configuration_information=nagiosadmin authorized_for_system_commands=nagiosadmin authorized_for_all_services=nagiosadmin authorized_for_all_hosts=nagiosadmin authorized_for_all_service_commands=nagiosadmin authorized_for_all_host_commands=nagiosadmin Greg -----Original Message----- From: Robertson, Brown [mailto:brown.robertson at maac.net] Sent: Thursday, December 05, 2002 4:14 PM To: ChrisF at winterlink.net Cc: Nagios-users at lists.sourceforge.net Subject: [Nagios-users] RE: Permissions Error Chris, did you ever find out the cause of your permission error? I am running Red Hat 8.0 and finding the same problem. I have also followed the faq exactly. .htaccess files look good, httpd.conf edited properly. Htpasswd.users file is correct. I'm wondering if it might be some problem with apache under RH 8.0? Anyone else have any ideas? Here's what I have in my httpd.conf: ScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/ AllowOverride AuthConfig Options ExecCGI Order allow,deny Allow from all Alias /nagios/ /usr/local/nagios/share/ Options None AllowOverride AuthConfig Order allow,deny Allow from all And in my .htaccess, located in /usr/local/nagios/sbin and /usr/local/nagios/share AuthName "Nagios Access" AuthType Basic AuthUserFile /usr/local/nagios/etc/htpasswd.users require valid-user Then I : htpasswd -c /usr/local/nagios/etc/htpasswd.users nagios Still no luck. It will continually request authentication but will never accept it. Any ideas? ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users -------------- next part -------------- ----------------------------------------- (on rchss001) This e-mail and any files transmitted with it are the property of Chiaro Networks, Ltd., and may contain confidential and privileged material for the sole use of the intended recipient(s) to whom this e-mail is addressed. If you are not one of the named recipient(s), or otherwise have reason to believe that you have received this message in error, please notify the sender and delete all copies from your system. Any other use, retention, dissemination, forwarding, printing or copying of this e-mail is strictly prohibited. --------------------------------------------------------- From sandromergvaz at uol.com.br Fri Dec 6 20:03:16 2002 From: sandromergvaz at uol.com.br (Sandro Vaz) Date: Fri, 6 Dec 2002 16:03:16 -0300 Subject: RES: RE: Permissions Error In-Reply-To: <1039187532.18052.45.camel@inzauro1.axiomintegration.com> References: <1039187532.18052.45.camel@inzauro1.axiomintegration.com> Message-ID: More secure to follow the link below: HYPERLINK "http://nagios.sourceforge.net/docs/1_0/commandfile.html"http://nagios.s ourceforge.net/docs/1_0/commandfile.html It works really fine. HTH, SMV -----Mensagem original----- De: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] Em nome de Terry Inzauro Enviada em: sexta-feira, 6 de dezembro de 2002 12:12 Para: Chris Losch Cc: nagios-users at lists.sourceforge.net Assunto: RE: [Nagios-users] RE: Permissions Error I cam across the same error once. If there was a nagios process running, kill it. If there is a $INSTALLPATH/var/rw/nagios.cmd file, delete it. Next, start nagios with the /etc/rc.d/init/nagios script. Then try the request again. If does the same thing. try chmodddddding the $INSTALLPATH/var/rw/nagios.cmd file for something like 777, then work it backwards from there. Terry Inzauro On Fri, 2002-12-06 at 06:41, Chris Losch wrote: FYI, I have just built up a clean install of Redhat 8, and Nagios1.0 I have got Authentication setup and working ok (I can view cgi's), however I am unable to send commands from the Web Pages to Nagios (Scheduling Checks etc.) I am recieving the error Error: Could not stat() command file '/usr/local/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. :( If possible I would suggest you backup the config CGI's (hosts services etc) and start over, it seems to be easier than troubleshooting. Chris... yup another Chris. Just for reference I've included the bits below so you can cross reference your config files. cgi.cfg ------- authorized_for_system_information=xxxx,nagiosadmin, authorized_for_system_commands=xxxx,nagiosadmin, authorized_for_configuration_information=xxxx,nagiosadmin, authorized_for_all_hosts=xxxx,nagiosadmin, authorized_for_all_host_commands=xxxx,nagiosadmin, authorized_for_all_services=xxxx,nagiosadmin, authorized_for_all_service_commands=xxxx,nagiosadmin, .htaccess (in /usr/local/nagios/share/ and /usr/local/nagios/sbin/) --------- AuthName "Nagios Access" AuthType Basic AuthUserFile /usr/local/nagios/etc/htpasswd.users /usr/local/nagios/etc/htpasswd.users ------------------------------------ nagiosadmin: /etc/httpd/conf/httpd.conf (added the following, otherwise, no changes from default) -------------------------- ScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/ AllowOverride AuthConfig Options ExecCGI Order allow,deny Allow from all Alias /nagios/ /usr/local/nagios/share/ Options None AllowOverride AuthConfig Order allow,deny Allow from all /etc/local/nagios/etc/contacts.cfg ---------------------------------- define contact { contact_name nagiosadmin alias Nagios Admin service_notification_period 24x7 host_notification_period 24x7 service_notification_options w,u,c,r host_notification_options d,u,r service_notification_commands notify-by-email,notify-by-epager host_notification_commands host-notify-by-email,host-notify-by-epager email nagios-admin at localhost.localdomain pager pagenagios-admin at localhost.localdomain } /etc/local/nagios/etc/nagios.cfg --------------------------------- # # nagios.cfg - Config file for Nagios (www.nagios.org) # # Written by Nagat. Manually editing this file is a bad idea since Nagat will # overwrite it. Delete the nagatobj.dat file in the nagios/etc directory to # reread the Nagios configuration. # log_file=/usr/local/nagios/var/nagios.log cfg_file=/usr/local/nagios/etc/checkcommands.cfg cfg_file=/usr/local/nagios/etc/misccommands.cfg cfg_file=/usr/local/nagios/etc/contactgroups.cfg cfg_file=/usr/local/nagios/etc/contacts.cfg cfg_file=/usr/local/nagios/etc/dependencies.cfg cfg_file=/usr/local/nagios/etc/escalations.cfg cfg_file=/usr/local/nagios/etc/hostgroups.cfg cfg_file=/usr/local/nagios/etc/hosts.cfg cfg_file=/usr/local/nagios/etc/services.cfg cfg_file=/usr/local/nagios/etc/timeperiods.cfg resource_file=/usr/local/nagios/etc/resource.cfg status_file=/usr/local/nagios/var/status.log nagios_user=nagios nagios_group=nagios check_external_commands=1 command_check_interval=-1 command_file=/usr/local/nagios/var/rw/nagios.cmd comment_file=/usr/local/nagios/var/comment.log downtime_file=/usr/local/nagios/var/downtime.log lock_file=/usr/local/nagios/var/nagios.lock temp_file=/usr/local/nagios/var/nagios.tmp log_rotation_method=d log_archive_path=/usr/local/nagios/var/archives use_syslog=1 log_notifications=1 log_service_retries=1 log_host_retries=1 log_event_handlers=1 log_initial_states=0 log_external_commands=1 log_passive_service_checks=1 inter_check_delay_method=s service_interleave_factor=s max_concurrent_checks=0 service_reaper_frequency=10 sleep_time=1 service_check_timeout=60 host_check_timeout=30 event_handler_timeout=30 notification_timeout=30 ocsp_timeout=5 perfdata_timeout=5 retain_state_information=1 state_retention_file=/usr/local/nagios/var/status.sav retention_update_interval=60 use_retained_program_state=0 interval_length=60 use_agressive_host_checking=0 execute_service_checks=1 accept_passive_service_checks=1 enable_notifications=1 enable_event_handlers=1 process_performance_data=0 obsess_over_services=0 check_for_orphaned_services=0 check_service_freshness=1 freshness_check_interval=60 aggregate_status_updates=1 status_update_interval=15 enable_flap_detection=0 low_service_flap_threshold=5.0 high_service_flap_threshold=20.0 low_host_flap_threshold=5.0 high_host_flap_threshold=20.0 date_format=euro illegal_object_name_chars=`~!$%^&*|'"<>?,()= illegal_macro_output_chars=`~$&|'"<> admin_email=nagios admin_pager=pagenagios -----Original Message----- From: Chris Fairbanks [HYPERLINK "mailto:ChrisF at winterlink.net"mailto:ChrisF at winterlink.net] Sent: 06 December 2002 07:22 To: Chris Fairbanks; wrnash; Potter, G M (Greg); Nagios-users (E-mail) Cc: Robertson, Brown Subject: RE: [Nagios-users] RE: Permissions Error Another interesting tibit, I tired disabling use_authentication and setting up a default user, but I still get the same issues. Thanks Chris -----Original Message----- From: Chris Fairbanks Sent: Thursday, December 05, 2002 10:47 PM To: wrnash; Potter, G M (Greg); Nagios-users (E-mail) Cc: Robertson, Brown Subject: RE: [Nagios-users] RE: Permissions Error My httpasswd.users file and everything is setup totally correctly and use_authentication=1 is set. I have also tried setting all the authorized_for's = * but to no avail. From the sounds of it, it looks like this might be an issue with RH8.0 or Apache 2.0.40 that ships default with RH8.0. Is there anyone on this list that has Nagios working on RH8.0? Thanks, Chris ********************************************************************** Important: This e-mail is intended for the above named person only and should be treated as confidential. If this has come to you in error you should take no action based on it, nor should you copy or show it to anyone; please telephone us immediately. ********************************************************************** Terry Inzauro Systems Engineer Email: HYPERLINK "mailto:tinzauro at axiomintegration.com"tinzauro at axiomintegration.com Phone: 402.345.5500 Fax: 402.345.5501 US Mail: HYPERLINK "http://www.axiomintegration.com/"Axiom Integration, Inc. HYPERLINK "http://www.axiomintegration.com"One Owen Pkwy HYPERLINK "http://www.axiomintegration.com"2200 Abbott Drive HYPERLINK "http://www.axiomintegration.com/"Carter Lake, IA HYPERLINK "http://www.usps.gov/ncsc/lookups/lookups.htm"51510 --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.426 / Virus Database: 239 - Release Date: 2/12/2002 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.426 / Virus Database: 239 - Release Date: 2/12/2002 -------------- next part -------------- An HTML attachment was scrubbed... URL: From ChrisF at winterlink.net Fri Dec 6 19:48:49 2002 From: ChrisF at winterlink.net (Chris Fairbanks) Date: Fri, 6 Dec 2002 10:48:49 -0800 Subject: Permissions Error Message-ID: <11C80DA1026CF545921B280740C440ED8BA60D@exchange1.corp.winterlink.net> Yes, it is definatly a permissions problem, but it is not on htpasswd.users. It is on something else, just not sure what. I'll try tracking it down in the next few days and let you guys know, or if someone else finds it, please post to the list. Thanks, Chris -----Original Message----- From: Robertson, Brown [mailto:brown.robertson at maac.net] Sent: Friday, December 06, 2002 9:11 AM To: Chris Fairbanks; wrnash; Potter, G M (Greg); Nagios-users (E-mail) Cc: Scott Ripley Subject: RE: [Nagios-users] RE: Permissions Error Eureka guys. It's definitely a permission issue. Chmod your htpasswd.users file (/usr/local/nagios/ets/htpasswd.users if that's where you put it) to 777. That should do the trick. There weren't sufficient permissions to access that file for the authentication information. I'm almost positive this was the cause, but in case it's not, I chmod'd all my nagios directories to 777, .htaccess files to 777, and htpasswd.users file to 777. Hope that helps. Brown. Special Thanks to Scott Ripley for his suggestion in trying this. -----Original Message----- From: Chris Fairbanks [mailto:ChrisF at winterlink.net] Sent: Friday, December 06, 2002 12:47 AM To: wrnash; Potter, G M (Greg); Nagios-users (E-mail) Cc: Robertson, Brown Subject: RE: [Nagios-users] RE: Permissions Error My httpasswd.users file and everything is setup totally correctly and use_authentication=1 is set. I have also tried setting all the authorized_for's = * but to no avail. From the sounds of it, it looks like this might be an issue with RH8.0 or Apache 2.0.40 that ships default with RH8.0. Is there anyone on this list that has Nagios working on RH8.0? Thanks, Chris -----Original Message----- From: wrnash [mailto:wrnash at wrnash.net] Sent: Thursday, December 05, 2002 3:59 PM To: 'Potter, G M (Greg)'; 'Nagios-users (E-mail)' Subject: RE: [Nagios-users] RE: Permissions Error Have you did: htpasswd /usr/local/nagios/etc/htpasswd.users username And also is use_authentication=1 Do you get any error when you type /usr/local/nagios/bin/nagios -v
example would be /usr/local/nagios/etc/nagios.cfg Thanks Bill Nash -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Potter, G M (Greg) Sent: Thursday, December 05, 2002 5:39 PM To: Nagios-users (E-mail) Subject: FW: [Nagios-users] RE: Permissions Error What do you have in the cgi.cfg file for the following variables?: authorized_for_system_information=nagiosadmin authorized_for_configuration_information=nagiosadmin authorized_for_system_commands=nagiosadmin authorized_for_all_services=nagiosadmin authorized_for_all_hosts=nagiosadmin authorized_for_all_service_commands=nagiosadmin authorized_for_all_host_commands=nagiosadmin Greg -----Original Message----- From: Robertson, Brown [mailto:brown.robertson at maac.net] Sent: Thursday, December 05, 2002 4:14 PM To: ChrisF at winterlink.net Cc: Nagios-users at lists.sourceforge.net Subject: [Nagios-users] RE: Permissions Error Chris, did you ever find out the cause of your permission error? I am running Red Hat 8.0 and finding the same problem. I have also followed the faq exactly. .htaccess files look good, httpd.conf edited properly. Htpasswd.users file is correct. I'm wondering if it might be some problem with apache under RH 8.0? Anyone else have any ideas? Here's what I have in my httpd.conf: ScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/ AllowOverride AuthConfig Options ExecCGI Order allow,deny Allow from all Alias /nagios/ /usr/local/nagios/share/ Options None AllowOverride AuthConfig Order allow,deny Allow from all And in my .htaccess, located in /usr/local/nagios/sbin and /usr/local/nagios/share AuthName "Nagios Access" AuthType Basic AuthUserFile /usr/local/nagios/etc/htpasswd.users require valid-user Then I : htpasswd -c /usr/local/nagios/etc/htpasswd.users nagios Still no luck. It will continually request authentication but will never accept it. Any ideas? ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From brown.robertson at maac.net Fri Dec 6 19:51:41 2002 From: brown.robertson at maac.net (Robertson, Brown) Date: Fri, 6 Dec 2002 12:51:41 -0600 Subject: Permissions Error Message-ID: <2CDD9C051F451F4BB0615B9547F1B4295BB60D@maacmail.maac.int> Chris did you try chmod'ing 777 to all the nagios subdirectories, along with both .htaccess files, and the htpasswrd.users file? That's basically all I did, but just assumed it was the hapasswrd.users file. -----Original Message----- From: Chris Fairbanks [mailto:ChrisF at winterlink.net] Sent: Friday, December 06, 2002 12:49 PM To: Robertson, Brown; wrnash; Potter, G M (Greg); Nagios-users (E-mail) Cc: Scott Ripley Subject: RE: [Nagios-users] RE: Permissions Error Yes, it is definatly a permissions problem, but it is not on htpasswd.users. It is on something else, just not sure what. I'll try tracking it down in the next few days and let you guys know, or if someone else finds it, please post to the list. Thanks, Chris -----Original Message----- From: Robertson, Brown [mailto:brown.robertson at maac.net] Sent: Friday, December 06, 2002 9:11 AM To: Chris Fairbanks; wrnash; Potter, G M (Greg); Nagios-users (E-mail) Cc: Scott Ripley Subject: RE: [Nagios-users] RE: Permissions Error Eureka guys. It's definitely a permission issue. Chmod your htpasswd.users file (/usr/local/nagios/ets/htpasswd.users if that's where you put it) to 777. That should do the trick. There weren't sufficient permissions to access that file for the authentication information. I'm almost positive this was the cause, but in case it's not, I chmod'd all my nagios directories to 777, .htaccess files to 777, and htpasswd.users file to 777. Hope that helps. Brown. Special Thanks to Scott Ripley for his suggestion in trying this. -----Original Message----- From: Chris Fairbanks [mailto:ChrisF at winterlink.net] Sent: Friday, December 06, 2002 12:47 AM To: wrnash; Potter, G M (Greg); Nagios-users (E-mail) Cc: Robertson, Brown Subject: RE: [Nagios-users] RE: Permissions Error My httpasswd.users file and everything is setup totally correctly and use_authentication=1 is set. I have also tried setting all the authorized_for's = * but to no avail. From the sounds of it, it looks like this might be an issue with RH8.0 or Apache 2.0.40 that ships default with RH8.0. Is there anyone on this list that has Nagios working on RH8.0? Thanks, Chris -----Original Message----- From: wrnash [mailto:wrnash at wrnash.net] Sent: Thursday, December 05, 2002 3:59 PM To: 'Potter, G M (Greg)'; 'Nagios-users (E-mail)' Subject: RE: [Nagios-users] RE: Permissions Error Have you did: htpasswd /usr/local/nagios/etc/htpasswd.users username And also is use_authentication=1 Do you get any error when you type /usr/local/nagios/bin/nagios -v
example would be /usr/local/nagios/etc/nagios.cfg Thanks Bill Nash -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Potter, G M (Greg) Sent: Thursday, December 05, 2002 5:39 PM To: Nagios-users (E-mail) Subject: FW: [Nagios-users] RE: Permissions Error What do you have in the cgi.cfg file for the following variables?: authorized_for_system_information=nagiosadmin authorized_for_configuration_information=nagiosadmin authorized_for_system_commands=nagiosadmin authorized_for_all_services=nagiosadmin authorized_for_all_hosts=nagiosadmin authorized_for_all_service_commands=nagiosadmin authorized_for_all_host_commands=nagiosadmin Greg -----Original Message----- From: Robertson, Brown [mailto:brown.robertson at maac.net] Sent: Thursday, December 05, 2002 4:14 PM To: ChrisF at winterlink.net Cc: Nagios-users at lists.sourceforge.net Subject: [Nagios-users] RE: Permissions Error Chris, did you ever find out the cause of your permission error? I am running Red Hat 8.0 and finding the same problem. I have also followed the faq exactly. .htaccess files look good, httpd.conf edited properly. Htpasswd.users file is correct. I'm wondering if it might be some problem with apache under RH 8.0? Anyone else have any ideas? Here's what I have in my httpd.conf: ScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/ AllowOverride AuthConfig Options ExecCGI Order allow,deny Allow from all Alias /nagios/ /usr/local/nagios/share/ Options None AllowOverride AuthConfig Order allow,deny Allow from all And in my .htaccess, located in /usr/local/nagios/sbin and /usr/local/nagios/share AuthName "Nagios Access" AuthType Basic AuthUserFile /usr/local/nagios/etc/htpasswd.users require valid-user Then I : htpasswd -c /usr/local/nagios/etc/htpasswd.users nagios Still no luck. It will continually request authentication but will never accept it. Any ideas? ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From ChrisF at winterlink.net Fri Dec 6 20:18:21 2002 From: ChrisF at winterlink.net (Chris Fairbanks) Date: Fri, 6 Dec 2002 11:18:21 -0800 Subject: Permissions Error Message-ID: <11C80DA1026CF545921B280740C440EDCC87A6@exchange1.corp.winterlink.net> Pretty much I did that. I just changed apache to run as nagios.nagios since that is the only thing that runs on this server and it is behind a firewall. I then changed permissions over to 770. I'll see if I can track down exactly. Thanks, Chris -----Original Message----- From: Robertson, Brown [mailto:brown.robertson at maac.net] Sent: Friday, December 06, 2002 10:52 AM To: Chris Fairbanks; wrnash; Potter, G M (Greg); Nagios-users (E-mail) Cc: Scott Ripley Subject: RE: [Nagios-users] RE: Permissions Error Chris did you try chmod'ing 777 to all the nagios subdirectories, along with both .htaccess files, and the htpasswrd.users file? That's basically all I did, but just assumed it was the hapasswrd.users file. -----Original Message----- From: Chris Fairbanks [mailto:ChrisF at winterlink.net] Sent: Friday, December 06, 2002 12:49 PM To: Robertson, Brown; wrnash; Potter, G M (Greg); Nagios-users (E-mail) Cc: Scott Ripley Subject: RE: [Nagios-users] RE: Permissions Error Yes, it is definatly a permissions problem, but it is not on htpasswd.users. It is on something else, just not sure what. I'll try tracking it down in the next few days and let you guys know, or if someone else finds it, please post to the list. Thanks, Chris -----Original Message----- From: Robertson, Brown [mailto:brown.robertson at maac.net] Sent: Friday, December 06, 2002 9:11 AM To: Chris Fairbanks; wrnash; Potter, G M (Greg); Nagios-users (E-mail) Cc: Scott Ripley Subject: RE: [Nagios-users] RE: Permissions Error Eureka guys. It's definitely a permission issue. Chmod your htpasswd.users file (/usr/local/nagios/ets/htpasswd.users if that's where you put it) to 777. That should do the trick. There weren't sufficient permissions to access that file for the authentication information. I'm almost positive this was the cause, but in case it's not, I chmod'd all my nagios directories to 777, .htaccess files to 777, and htpasswd.users file to 777. Hope that helps. Brown. Special Thanks to Scott Ripley for his suggestion in trying this. -----Original Message----- From: Chris Fairbanks [mailto:ChrisF at winterlink.net] Sent: Friday, December 06, 2002 12:47 AM To: wrnash; Potter, G M (Greg); Nagios-users (E-mail) Cc: Robertson, Brown Subject: RE: [Nagios-users] RE: Permissions Error My httpasswd.users file and everything is setup totally correctly and use_authentication=1 is set. I have also tried setting all the authorized_for's = * but to no avail. From the sounds of it, it looks like this might be an issue with RH8.0 or Apache 2.0.40 that ships default with RH8.0. Is there anyone on this list that has Nagios working on RH8.0? Thanks, Chris -----Original Message----- From: wrnash [mailto:wrnash at wrnash.net] Sent: Thursday, December 05, 2002 3:59 PM To: 'Potter, G M (Greg)'; 'Nagios-users (E-mail)' Subject: RE: [Nagios-users] RE: Permissions Error Have you did: htpasswd /usr/local/nagios/etc/htpasswd.users username And also is use_authentication=1 Do you get any error when you type /usr/local/nagios/bin/nagios -v
example would be /usr/local/nagios/etc/nagios.cfg Thanks Bill Nash -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Potter, G M (Greg) Sent: Thursday, December 05, 2002 5:39 PM To: Nagios-users (E-mail) Subject: FW: [Nagios-users] RE: Permissions Error What do you have in the cgi.cfg file for the following variables?: authorized_for_system_information=nagiosadmin authorized_for_configuration_information=nagiosadmin authorized_for_system_commands=nagiosadmin authorized_for_all_services=nagiosadmin authorized_for_all_hosts=nagiosadmin authorized_for_all_service_commands=nagiosadmin authorized_for_all_host_commands=nagiosadmin Greg -----Original Message----- From: Robertson, Brown [mailto:brown.robertson at maac.net] Sent: Thursday, December 05, 2002 4:14 PM To: ChrisF at winterlink.net Cc: Nagios-users at lists.sourceforge.net Subject: [Nagios-users] RE: Permissions Error Chris, did you ever find out the cause of your permission error? I am running Red Hat 8.0 and finding the same problem. I have also followed the faq exactly. .htaccess files look good, httpd.conf edited properly. Htpasswd.users file is correct. I'm wondering if it might be some problem with apache under RH 8.0? Anyone else have any ideas? Here's what I have in my httpd.conf: ScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/ AllowOverride AuthConfig Options ExecCGI Order allow,deny Allow from all Alias /nagios/ /usr/local/nagios/share/ Options None AllowOverride AuthConfig Order allow,deny Allow from all And in my .htaccess, located in /usr/local/nagios/sbin and /usr/local/nagios/share AuthName "Nagios Access" AuthType Basic AuthUserFile /usr/local/nagios/etc/htpasswd.users require valid-user Then I : htpasswd -c /usr/local/nagios/etc/htpasswd.users nagios Still no luck. It will continually request authentication but will never accept it. Any ideas? ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From kray1 at travelersla.com Fri Dec 6 20:20:21 2002 From: kray1 at travelersla.com (Kenneth Ray) Date: Fri, 06 Dec 2002 14:20:21 -0500 Subject: dont do this!! References: Message-ID: <3DF0F875.A6307B4@travelersla.com> Though the below will get you up and running it will also leave you open to many vulnerabilities. here is what you should try first run the nagios -v against your main configuration file, see if you return any errors. second run nagios (configuration file) no options to see if you receive any command line errors when attempting to access the GUI. third, check your access logs when you attempt to access the GUI. Apache, as well as Netscape produce errors to inform you what the scoop is. fourth, make sure you have a default user with the same name as the install you installed with, fourth. make sure your "allows" in your CGI have the user listed. (if you have the * allowing anyone access it should be the last entry, I have see it cause problems on my system when its somewhere other than the End of the line, this is not documented but do it anyway k?) with all of this done, try opening up the GUI in a window and you should see the user in the upper left corner of the CGI, if you do not. login to the system running nagios and change to the subdirectory where your CGI's are held (make sure you are using the username you are running nagios as.) type one of them in and set the appropriate variables to make it display correctly, ( you will understand what i mean once you type one of them in.) once you get a http formated text output, search the text for the key phrase "logged in" next to that information should be the actual user that you are running it as. (by the way, Special thanks to Ethan, for keeping this function) chmod 777 is not an answer, that means that anyone can WRITE to or change your files. Even non-authenticated users. IE: I could FTP from my web browser a corrupt file directly to your subdirectory(little finagling but it can be done) without even supplying a valid user-name. 777 no!!! no good the key places to look here are the access logs, and the programs you run with the nagios user, most of the time these are the issues that cause the biggest problems. I hope this helps. > > > Message: 7 > Subject: RE: [Nagios-users] RE: Permissions Error > Date: Fri, 6 Dec 2002 11:11:04 -0600 > From: "Robertson, Brown" > To: "Chris Fairbanks" , > "wrnash" , > "Potter, G M (Greg)" , > "Nagios-users (E-mail)" > Cc: "Scott Ripley" > > Eureka guys. It's definitely a permission issue. Chmod your > htpasswd.users file (/usr/local/nagios/ets/htpasswd.users if that's > where you put it) to 777. That should do the trick. There weren't > sufficient permissions to access that file for the authentication > information. I'm almost positive this was the cause, but in case it's > not, I chmod'd all my nagios directories to 777, .htaccess files to 777, > and htpasswd.users file to 777. Hope that helps. Brown. > > Special Thanks to Scott Ripley for his suggestion in trying this.=20 > > -- This message and any attachments are confidential to the ordinary user of the e-mail address to which it was addressed and may also be privileged. If you receive this message in error please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not, directly or indirectly, use, disclose, distribute, print or copy any part of this message if you are not the intended recipient. Internet communications cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, arrive late or contain viruses or unauthorized amendments. The sender, therefore, does not accept liability for any errors or omissions in the content of this message or any damage or other consequences arising as a result of Internet transmission. Opinions, conclusions and other information in this message that do not relate to the official business of CITIGROUP shall be understood as neither given nor endorsed by it. -------------- next part -------------- A non-text attachment was scrubbed... Name: kray1.vcf Type: text/x-vcard Size: 179 bytes Desc: Card for Kenneth Ray URL: From listuser at neo.pittstate.edu Fri Dec 6 20:24:17 2002 From: listuser at neo.pittstate.edu (listuser at neo.pittstate.edu) Date: Fri, 6 Dec 2002 13:24:17 -0600 (CST) Subject: Per user preferences Message-ID: Is there a way to specify different preferences on a user by user basis? While I don't mind audio alerts, I'm sure some of my colleagues might not find them so helpful. :) To go along with this, I think some people prefer the maps to default to a different view as well. Perhaps this is something that could be added to the user's contact definition? Along these same lines, would it be posible to use cookies to control how often a sound is played? I generally keep my browser on the tactical overview and don't really want to know that the print server in a far off building is still down. :) Perhaps a checkbox (to turn audio alerts off for that session) and/or a drop down menu and submit button to specify audio alert intervals would help. My PacketShaper's online pages that update at regular intervals let me specify the intervals just such a setup. I can tell it to update every 1, 5, 15, and 60 minutes. 120 and 240 would be useful for audio alerts though I imagine. To go along with the user-defined audio intervals, I think many would find it useful to control how often their pages reload. A similar deal could be used for it as well. The status.cgi could reference that value (within limits) for it's META refresh value. Does anyone else think per-user settings would be useful? I turned on audio alerts today and the idea quickly popped into my head. ;-) Justin ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From russell at quadrix.com Fri Dec 6 20:54:45 2002 From: russell at quadrix.com (Russell Scibetti) Date: Fri, 06 Dec 2002 14:54:45 -0500 Subject: Phantom service checks References: <5DB017510818EC468B05BD7BD9EACF8301E2672C@mismail.ena.com> <20021205153718.H1488@ess.nec.de> Message-ID: <3DF10085.50601@quadrix.com> As for the notifications still going out after all the cfg changes, try setting use_retained_program_state in nagios.cfg to 0. Russell Rasmus Plewe wrote: >On Thu, Dec 05, 2002 at 07:39:30AM -0600, Marc Powell wrote: > >[phantom checks] > >> Sounds to me like you have multiple nagios processes running on that >> machine. Use the init script to stop nagios then ps to verify that you >> do not have a copy of nagios still running. >> > >Bingo. > >> As far as aggregating notifications, I believe there is something in >> the contrib directory or documentation to help you with that. >> > >Didn't find anything in the contrib directory at first glance, but >will take a closer look at it and at the docs, thanks for the >pointer. As I don't have much of a problem with those mail masses it's >not my absolute top priority, and if my manager does not like all this >mail he's welcome to free me of other tasks... >But it will become a problem once I start experimenting with pager >notification in the near future. > > >Regards, > Rasmus > > >------------------------------------------------------- >This sf.net email is sponsored by:ThinkGeek >Welcome to geek heaven. >http://thinkgeek.com/sf >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users > > -- Russell Scibetti Quadrix Solutions, Inc. http://www.quadrix.com (732) 235-2335, ext. 7038 -------------- next part -------------- An HTML attachment was scrubbed... URL: From sghosh at sghosh.org Fri Dec 6 20:51:13 2002 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Fri, 6 Dec 2002 14:51:13 -0500 (EST) Subject: Permissions Error In-Reply-To: <11C80DA1026CF545921B280740C440EDCC87A6@exchange1.corp.winterlink.net> References: <11C80DA1026CF545921B280740C440EDCC87A6@exchange1.corp.winterlink.net> Message-ID: So long as nagios and apache were configured to have a common groupid (or userid) and were "restarted" after the change you shouldn't have a permission problem. -sg On Fri, 6 Dec 2002, Chris Fairbanks wrote: > Pretty much I did that. I just changed apache to run as nagios.nagios > since that is the only thing that runs on this server and it is behind a > firewall. I then changed permissions over to 770. I'll see if I can > track down exactly. > > Thanks, > Chris > > > -----Original Message----- > From: Robertson, Brown [mailto:brown.robertson at maac.net] > Sent: Friday, December 06, 2002 10:52 AM > To: Chris Fairbanks; wrnash; Potter, G M (Greg); Nagios-users (E-mail) > Cc: Scott Ripley > Subject: RE: [Nagios-users] RE: Permissions Error > > > Chris did you try chmod'ing 777 to all the nagios subdirectories, along > with both .htaccess files, and the htpasswrd.users file? That's > basically all I did, but just assumed it was the hapasswrd.users file. > > -----Original Message----- > From: Chris Fairbanks [mailto:ChrisF at winterlink.net] > Sent: Friday, December 06, 2002 12:49 PM > To: Robertson, Brown; wrnash; Potter, G M (Greg); Nagios-users (E-mail) > Cc: Scott Ripley > Subject: RE: [Nagios-users] RE: Permissions Error > > Yes, it is definatly a permissions problem, but it is not on > htpasswd.users. It is on something else, just not sure what. I'll try > tracking it down in the next few days and let you guys know, or if > someone else finds it, please post to the list. > > Thanks, > Chris > > > > -----Original Message----- > From: Robertson, Brown [mailto:brown.robertson at maac.net] > Sent: Friday, December 06, 2002 9:11 AM > To: Chris Fairbanks; wrnash; Potter, G M (Greg); Nagios-users (E-mail) > Cc: Scott Ripley > Subject: RE: [Nagios-users] RE: Permissions Error > > > Eureka guys. It's definitely a permission issue. Chmod your > htpasswd.users file (/usr/local/nagios/ets/htpasswd.users if that's > where you put it) to 777. That should do the trick. There weren't > sufficient permissions to access that file for the authentication > information. I'm almost positive this was the cause, but in case it's > not, I chmod'd all my nagios directories to 777, .htaccess files to 777, > and htpasswd.users file to 777. Hope that helps. Brown. > > Special Thanks to Scott Ripley for his suggestion in trying this. > > > > > > > -----Original Message----- > From: Chris Fairbanks [mailto:ChrisF at winterlink.net] > Sent: Friday, December 06, 2002 12:47 AM > To: wrnash; Potter, G M (Greg); Nagios-users (E-mail) > Cc: Robertson, Brown > Subject: RE: [Nagios-users] RE: Permissions Error > > My httpasswd.users file and everything is setup totally correctly and > use_authentication=1 is set. I have also tried setting all the > authorized_for's = * but to no avail. From the sounds of it, it looks > like this might be an issue with RH8.0 or Apache 2.0.40 that ships > default with RH8.0. Is there anyone on this list that has Nagios > working on RH8.0? > > Thanks, > Chris > > > > -----Original Message----- > From: wrnash [mailto:wrnash at wrnash.net] > Sent: Thursday, December 05, 2002 3:59 PM > To: 'Potter, G M (Greg)'; 'Nagios-users (E-mail)' > Subject: RE: [Nagios-users] RE: Permissions Error > > > Have you did: > htpasswd /usr/local/nagios/etc/htpasswd.users username > > And also is use_authentication=1 > Do you get any error when you type /usr/local/nagios/bin/nagios -v
configuration file> example would be /usr/local/nagios/etc/nagios.cfg > > > Thanks Bill Nash > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Potter, G > M (Greg) > Sent: Thursday, December 05, 2002 5:39 PM > To: Nagios-users (E-mail) > Subject: FW: [Nagios-users] RE: Permissions Error > > What do you have in the cgi.cfg file for the following variables?: > > authorized_for_system_information=nagiosadmin > authorized_for_configuration_information=nagiosadmin > authorized_for_system_commands=nagiosadmin > authorized_for_all_services=nagiosadmin > authorized_for_all_hosts=nagiosadmin > authorized_for_all_service_commands=nagiosadmin > authorized_for_all_host_commands=nagiosadmin > > Greg > > -----Original Message----- > From: Robertson, Brown [mailto:brown.robertson at maac.net] > Sent: Thursday, December 05, 2002 4:14 PM > To: ChrisF at winterlink.net > Cc: Nagios-users at lists.sourceforge.net > Subject: [Nagios-users] RE: Permissions Error > > > Chris, did you ever find out the cause of your permission error? I am > running Red Hat 8.0 and finding the same problem. I have also followed > the faq exactly. .htaccess files look good, httpd.conf edited properly. > Htpasswd.users file is correct. I'm wondering if it might be some > problem with apache under RH 8.0? > > Anyone else have any ideas? > > Here's what I have in my httpd.conf: > > ScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/ > > AllowOverride AuthConfig > Options ExecCGI > Order allow,deny > Allow from all > > > Alias /nagios/ /usr/local/nagios/share/ > > Options None > AllowOverride AuthConfig > Order allow,deny > Allow from all > > > And in my .htaccess, located in /usr/local/nagios/sbin and > /usr/local/nagios/share > > AuthName "Nagios Access" > AuthType Basic > AuthUserFile /usr/local/nagios/etc/htpasswd.users > require valid-user > > > Then I : > > htpasswd -c /usr/local/nagios/etc/htpasswd.users nagios > > > > Still no luck. It will continually request authentication but will never > accept it. > > Any ideas? > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > -- ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From sghosh at sghosh.org Fri Dec 6 21:41:36 2002 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Fri, 6 Dec 2002 15:41:36 -0500 (EST) Subject: Per user preferences In-Reply-To: References: Message-ID: Currently there is no mechanism to set per-user preferences. Feel like contributing to open-source :) -sg On Fri, 6 Dec 2002 listuser at neo.pittstate.edu wrote: > Is there a way to specify different preferences on a user by user basis? > While I don't mind audio alerts, I'm sure some of my colleagues might not > find them so helpful. :) To go along with this, I think some people > prefer the maps to default to a different view as well. Perhaps this is > something that could be added to the user's contact definition? > > Along these same lines, would it be posible to use cookies to control how > often a sound is played? I generally keep my browser on the tactical > overview and don't really want to know that the print server in a far off > building is still down. :) Perhaps a checkbox (to turn audio alerts off > for that session) and/or a drop down menu and submit button to specify > audio alert intervals would help. My PacketShaper's online pages that > update at regular intervals let me specify the intervals just such a > setup. I can tell it to update every 1, 5, 15, and 60 minutes. 120 and > 240 would be useful for audio alerts though I imagine. > > To go along with the user-defined audio intervals, I think many would find > it useful to control how often their pages reload. A similar deal could > be used for it as well. The status.cgi could reference that value (within > limits) for it's META refresh value. > > Does anyone else think per-user settings would be useful? I turned on > audio alerts today and the idea quickly popped into my head. ;-) > > Justin > -- ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jtinley at unirez.com Fri Dec 6 21:56:12 2002 From: jtinley at unirez.com (Jeremy Tinley) Date: Fri, 6 Dec 2002 14:56:12 -0600 Subject: Per user preferences In-Reply-To: References: Message-ID: <001101c29d69$e8ef02a0$b201a8c0@unirez.com> I'd say that this would be particularly nice in large-end-user environments. If there were a user preferences page CGI, with options for which page you want to view first (although not currently possible without editing the HTML), sound options (both off and on, and which sound files to play) and default views for the Status Map. You might also include the page refresh time. IIRC, most (if not all) of this is stored in cgi.cfg by default. -J -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Subhendu Ghosh Sent: Friday, December 06, 2002 2:42 PM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Per user preferences Currently there is no mechanism to set per-user preferences. Feel like contributing to open-source :) -sg On Fri, 6 Dec 2002 listuser at neo.pittstate.edu wrote: > Is there a way to specify different preferences on a user by user basis? > While I don't mind audio alerts, I'm sure some of my colleagues might not > find them so helpful. :) To go along with this, I think some people > prefer the maps to default to a different view as well. Perhaps this is > something that could be added to the user's contact definition? > > Along these same lines, would it be posible to use cookies to control how > often a sound is played? I generally keep my browser on the tactical > overview and don't really want to know that the print server in a far off > building is still down. :) Perhaps a checkbox (to turn audio alerts off > for that session) and/or a drop down menu and submit button to specify > audio alert intervals would help. My PacketShaper's online pages that > update at regular intervals let me specify the intervals just such a > setup. I can tell it to update every 1, 5, 15, and 60 minutes. 120 and > 240 would be useful for audio alerts though I imagine. > > To go along with the user-defined audio intervals, I think many would find > it useful to control how often their pages reload. A similar deal could > be used for it as well. The status.cgi could reference that value (within > limits) for it's META refresh value. > > Does anyone else think per-user settings would be useful? I turned on > audio alerts today and the idea quickly popped into my head. ;-) > > Justin > -- ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From JKnash at bnyclearing.com Fri Dec 6 21:57:07 2002 From: JKnash at bnyclearing.com (JKnash at bnyclearing.com) Date: Fri, 6 Dec 2002 12:57:07 -0800 Subject: nagios map layout Message-ID: I have figured out how to do layout on the nagios status map, but what I can't figure out is how do draw lines and dependencies, like on the screenshot page. Did nagios actually render it, or did someone draw it in visio? If it was done in nagios, can someone point me in the right direction? http://nagios.sourceforge.net/images/screens/big/statusmap.jpg thanks in advance, Justin Knash BNY Clearing Services The information in this e-mail, and any attachment therein, is confidential and for use by the addressee only. If you are not the intended recipient, please return the e-mail to the sender and delete it from your computer. Although BNY Clearing Services LLC attempts to sweep e-mail and attachments for viruses, it does not guarantee that either are virus-free and accepts no liability for any damage sustained as a result of viruses. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From GANESTOS at fisinc.com Fri Dec 6 21:32:50 2002 From: GANESTOS at fisinc.com (Garrett Anestos) Date: Fri, 6 Dec 2002 12:32:50 -0800 Subject: Problem compiling plugin Message-ID: Hello! Subhendu has been a huge help, but I think I have drove him crazy. :) I'm trying to compile the check_nt plugin on a FreeBSD 4.6.2 machine. I have run the following command successfully: gcc -g -O2 -I/path/to/nagiosplug/plugins -L/path/to/nagiosplug/plugins -c check_nt.c This creates the check_nt.o file. I then run: gcc -g -O2 -I/path/to/nagiosplug/plugins -L/path/to/nagiosplug/plugins check_nt.o -o check_nt utils.o This fails.... check_nt.o: In function `main': /tmp/nagios-plugins-200211131100/plugins/check_nt.c(.text+0x17c): undefined reference to `socket_timeout_alarm_handler' /tmp/nagios-plugins-200211131100/plugins/check_nt.c(.text+0x1e7): undefined reference to `process_tcp_request' /tmp/nagios-plugins-200211131100/plugins/check_nt.c(.text+0x2f4): undefined reference to `process_tcp_request' /tmp/nagios-plugins-200211131100/plugins/check_nt.c(.text+0x497): undefined reference to `process_tcp_request' /tmp/nagios-plugins-200211131100/plugins/check_nt.c(.text+0x627): undefined reference to `process_tcp_request' /tmp/nagios-plugins-200211131100/plugins/check_nt.c(.text+0x8aa): undefined reference to `process_tcp_request' check_nt.o(.text+0x989):/tmp/nagios-plugins-200211131100/plugins/check_nt.c: more undefined references to `process_tcp_request' follow check_nt.o: In function `process_arguments': /tmp/nagios-plugins-200211131100/plugins/check_nt.c(.text+0x11a0): undefined reference to `getopt_long' I have also tried: gcc -g -O2 -I/path/to/nagiosplug/plugins -L/path/to/nagiosplug/plugins -o check_nt utils.o -lutils This fails as well. Any help wuould be appreciated! Thanks! Garrett -------------- next part -------------- An HTML attachment was scrubbed... URL: From vseerror at Lehigh.EDU Fri Dec 6 22:12:19 2002 From: vseerror at Lehigh.EDU (Wayne Mery) Date: Fri, 06 Dec 2002 16:12:19 -0500 Subject: AIX and gd install problem. FAQ? Message-ID: <3DF112B3.3030406@lehigh.edu> A bud is installing gd on an AIX 4.3.3 system to support nagios. There are, according to him, some non-standard things being done by configure and make. As a result, make fails with both cc and gcc. Has anyone installed gd on AIX? Any guidance? Where can one go for help regarding gd? is there an FAQ? Thanks Wayne ________________________________________________________________________ Wayne S. Mery | Systems Programmer | Lehigh University | Bethlehem, PA 610-758-3983 ** http://www.lehigh.edu/~wsm0 ** Save a Life - Sign an Organ Donor card ** http://www.transweb.org for more information ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From anders at jblinux.net Fri Dec 6 22:31:08 2002 From: anders at jblinux.net (Anders Nerheim) Date: 06 Dec 2002 22:31:08 +0100 Subject: nagios map layout In-Reply-To: References: Message-ID: <1039210268.1973.4.camel@aten> more than one way to do it :) either you can just specify what hosts are parents, like switches, routers etc.. and it will draw the map for you in a big circular thingy :) or you could specify the cords, 103x142 is an example, if you feel like cheating and doing this stuff easy you can use the nagios/netsaint hostextinfo util that gives you the cords. the tool is named saintmap and url is http://www.netsaint.org/download/contrib/addons/saintmap-2.1.tar.gz hope this helps. its all written in the hostextinfo manual. ps... if you have the time you can even make 3d maps! *wooow* :> On Fri, 2002-12-06 at 21:57, JKnash at bnyclearing.com wrote: > I have figured out how to do layout on the nagios status map, but what I > can't figure out is how do draw lines and dependencies, like on the > screenshot page. Did nagios actually render it, or did someone draw it in > visio? If it was done in nagios, can someone point me in the right > direction? > > http://nagios.sourceforge.net/images/screens/big/statusmap.jpg > > > thanks in advance, > > Justin Knash > BNY Clearing Services > > > > The information in this e-mail, and any attachment therein, > is confidential and for use by the addressee only. > If you are not the intended recipient, please return the > e-mail to the sender and delete it from your computer. > Although BNY Clearing Services LLC attempts to > sweep e-mail and attachments for viruses, it does not > guarantee that either are virus-free and accepts > no liability for any damage sustained as a result of viruses. > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From listuser at neo.pittstate.edu Fri Dec 6 22:35:54 2002 From: listuser at neo.pittstate.edu (listuser at neo.pittstate.edu) Date: Fri, 6 Dec 2002 15:35:54 -0600 (CST) Subject: Per user preferences In-Reply-To: References: Message-ID: On Fri, 6 Dec 2002, Subhendu Ghosh wrote: > Currently there is no mechanism to set per-user preferences. > > Feel like contributing to open-source :) > > -sg :) Done it before but I'm also not a programmer. My addition to MRTG was trivial hacking. If I could program worth a hoot, though, I would. J ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jcarro10 at sprintspectrum.com Fri Dec 6 22:47:35 2002 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 6 Dec 2002 15:47:35 -0600 Subject: Per user preferences Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F2482@PKDWB03C.ad.sprint.com> This should probably be moved to nagios-devel, but what the heck. ;) If MySQL/Postgres becomes a prerequisite (and not an option), it could pave the way for per-user preferences, changing config info on-the-fly, and who knows what else, in addition to what's currently supported. There could be a nice web interface for populating config data, and the CGI would do a variation of the current pre-flight check before committing the record(s) to the database. Nagios would check every N (1? 5?) minutes for new records, and act accordingly. For the "Real Men Don't Click" crowd, creating a SQL script for bulk (config) data loads could be an option. If Nagios doesn't like a record, it would flag it as "unimplemented" and would show up in the GUI accordingly (eg, greyed-out record in Host Detail, or would show up in an exception report). Hey, a guy can dream, can't he? ;) jc > -----Original Message----- > From: Subhendu Ghosh [mailto:sghosh at sghosh.org] > Sent: Friday, December 06, 2002 2:42 PM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Per user preferences > > > Currently there is no mechanism to set per-user preferences. > > Feel like contributing to open-source :) > > -sg > > On Fri, 6 Dec 2002 listuser at neo.pittstate.edu wrote: > > > Is there a way to specify different preferences on a user > by user basis? > > While I don't mind audio alerts, I'm sure some of my > colleagues might not > > find them so helpful. :) To go along with this, I think some people > > prefer the maps to default to a different view as well. > Perhaps this is > > something that could be added to the user's contact definition? > > > > Along these same lines, would it be posible to use cookies > to control how > > often a sound is played? I generally keep my browser on > the tactical > > overview and don't really want to know that the print > server in a far off > > building is still down. :) Perhaps a checkbox (to turn > audio alerts off > > for that session) and/or a drop down menu and submit button > to specify > > audio alert intervals would help. My PacketShaper's online > pages that > > update at regular intervals let me specify the intervals just such a > > setup. I can tell it to update every 1, 5, 15, and 60 > minutes. 120 and > > 240 would be useful for audio alerts though I imagine. > > > > To go along with the user-defined audio intervals, I think > many would find > > it useful to control how often their pages reload. A > similar deal could > > be used for it as well. The status.cgi could reference > that value (within > > limits) for it's META refresh value. > > > > Does anyone else think per-user settings would be useful? > I turned on > > audio alerts today and the idea quickly popped into my head. ;-) > > > > Justin > > > > -- > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jcarro10 at sprintspectrum.com Fri Dec 6 22:56:57 2002 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 6 Dec 2002 15:56:57 -0600 Subject: nagios map layout Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F2483@PKDWB03C.ad.sprint.com> I can't speak to that specific screenshot, but I've got similar results. I managed to do it with the 'parents' directive in the hosts.cfg file. If you've got a complex network, with various subnets/routers (or pingable switches/hubs, for example), you can implement 'parents' and enjoy letting Nagios dynamically create a hierarchical image. If you've got a flat network, I think you're out of luck. Check out the following link: http://your_nagios_server/nagios/docs/xodtemplate.html#host In particular, read up on the 'parents' directive: "This directive is used to define a comma-delimited list of short names of the "parent" hosts for this particular host. Parent hosts are typically routers, switches, firewalls, etc. that lie between the monitoring host and a remote hosts. A router, switch, etc. which is closest to the remote host is considered to be that host's "parent". Read the "Determining Status and Reachability of Network Hosts" document located here for more information. If this host is on the same network segment as the host doing the monitoring (without any intermediate routers, etc.) the host is considered to be on the local network and will not have a parent host. Leave this value blank if the host does not have a parent host (i.e. it is on the same segment as the Nagios host). The order in which you specify parent hosts has no effect on how things are monitored." HTH. jc > -----Original Message----- > From: JKnash at bnyclearing.com [mailto:JKnash at bnyclearing.com] > Sent: Friday, December 06, 2002 2:57 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] nagios map layout > > > I have figured out how to do layout on the nagios status map, > but what I > can't figure out is how do draw lines and dependencies, like on the > screenshot page. Did nagios actually render it, or did > someone draw it in > visio? If it was done in nagios, can someone point me in the right > direction? > > http://nagios.sourceforge.net/images/screens/big/statusmap.jpg > > > thanks in advance, > > Justin Knash > BNY Clearing Services > > > > The information in this e-mail, and any attachment therein, > is confidential and for use by the addressee only. > If you are not the intended recipient, please return the > e-mail to the sender and delete it from your computer. > Although BNY Clearing Services LLC attempts to > sweep e-mail and attachments for viruses, it does not > guarantee that either are virus-free and accepts > no liability for any damage sustained as a result of viruses. > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From chris at eventhorizon.ca Fri Dec 6 23:03:56 2002 From: chris at eventhorizon.ca (chris at eventhorizon.ca) Date: Fri, 6 Dec 2002 16:03:56 -0600 Subject: AIX and gd install problem. FAQ? In-Reply-To: <3DF112B3.3030406@lehigh.edu> References: <3DF112B3.3030406@lehigh.edu> Message-ID: <20021206220356.GA26097@eventhorizon.ca> Hey Wayne, Is this during the make for Nagios or GD? If it's for GD you need to follow the instructions for installing GD to the letter (i.e.: Installing libjpeg, zlib, changing, directory names etc.). I compiled it using gcc and it all went well when I followed the insturctions. You can also use RPM to install the AIX Toolbox for linux version of the required packages: http://www-1.ibm.com/servers/aix/products/aixos/linux/altlic.html If it's a problem with the Nagios compile you might have specify the location of the GD libraries when you run the configure script. See configure --help for more info. Hope that helps. -- Chris Rothecker On Fri, Dec 06, 2002 at 04:12:19PM -0500, Wayne Mery wrote: > A bud is installing gd on an AIX 4.3.3 system to support nagios. > > There are, according to him, some non-standard things being done by > configure and make. As a result, make fails with both cc and gcc. > > Has anyone installed gd on AIX? Any guidance? > > Where can one go for help regarding gd? is there an FAQ? > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From tinzauro at axiomintegration.com Fri Dec 6 23:06:25 2002 From: tinzauro at axiomintegration.com (Terry Inzauro) Date: 06 Dec 2002 16:06:25 -0600 Subject: Multiple nagios daemons Message-ID: <1039212390.1598.54.camel@inzauro1.axiomintegration.com> I am having issues running twp nagios processes at the same time. I have a completely different build, installed in a different $installpath and it still wants to user the other nagios cmd file. Of course it complains and fails to start. Any Ideas? Terry Inzauro -------------- next part -------------- An HTML attachment was scrubbed... URL: From JKnash at bnyclearing.com Fri Dec 6 22:54:17 2002 From: JKnash at bnyclearing.com (JKnash at bnyclearing.com) Date: Fri, 6 Dec 2002 13:54:17 -0800 Subject: nagios map layout Message-ID: When you say parents, do you mean dependencies, or do I specify them in the hostextinfo file? If so, what's the syntax? thanks, Justin Knash BNY Clearing Services (Embedded image moved To: JKnash at bnyclearing.com to file: pic18756.gif) cc: nagios-users at lists.sourceforge.net Anders Nerheim Subject: Re: [Nagios-users] nagios map layout 12/06/2002 01:31 PM more than one way to do it :) either you can just specify what hosts are parents, like switches, routers etc.. and it will draw the map for you in a big circular thingy :) or you could specify the cords, 103x142 is an example, if you feel like cheating and doing this stuff easy you can use the nagios/netsaint hostextinfo util that gives you the cords. the tool is named saintmap and url is http://www.netsaint.org/download/contrib/addons/saintmap-2.1.tar.gz hope this helps. its all written in the hostextinfo manual. ps... if you have the time you can even make 3d maps! *wooow* :> On Fri, 2002-12-06 at 21:57, JKnash at bnyclearing.com wrote: > I have figured out how to do layout on the nagios status map, but what I > can't figure out is how do draw lines and dependencies, like on the > screenshot page. Did nagios actually render it, or did someone draw it in > visio? If it was done in nagios, can someone point me in the right > direction? > > http://nagios.sourceforge.net/images/screens/big/statusmap.jpg > > > thanks in advance, > > Justin Knash > BNY Clearing Services > > > > The information in this e-mail, and any attachment therein, > is confidential and for use by the addressee only. > If you are not the intended recipient, please return the > e-mail to the sender and delete it from your computer. > Although BNY Clearing Services LLC attempts to > sweep e-mail and attachments for viruses, it does not > guarantee that either are virus-free and accepts > no liability for any damage sustained as a result of viruses. > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > The information in this e-mail, and any attachment therein, is confidential and for use by the addressee only. If you are not the intended recipient, please return the e-mail to the sender and delete it from your computer. Although BNY Clearing Services LLC attempts to sweep e-mail and attachments for viruses, it does not guarantee that either are virus-free and accepts no liability for any damage sustained as a result of viruses. -------------- next part -------------- A non-text attachment was scrubbed... Name: pic18756.gif Type: image/gif Size: 0 bytes Desc: not available URL: From jcarro10 at sprintspectrum.com Fri Dec 6 23:27:58 2002 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 6 Dec 2002 16:27:58 -0600 Subject: cfg_dir directive in nagios.cfg - recursion? Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2E5274@PKDWB03C.ad.sprint.com> I was wondering whether the cfg_dir directive supported directory recursion. For example, if I have the following in nagios.cfg: cfg_dir=/usr/local/nagios/etc/configs I'm wondering whether directories created under /usr/local/nagios/etc/configs (and directories under that, etc etc and so on) will be treated as implicit cfg_dir definitions. If not, could this be included in a future release without too much grief? (Ethan?) jc ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jack at monkeynoodle.org Sat Dec 7 00:17:17 2002 From: jack at monkeynoodle.org (Jack Coates) Date: 06 Dec 2002 15:17:17 -0800 Subject: rpm specfile ? Message-ID: <1039216641.3429.63.camel@chupacabra.monkeynoodle.org> Hopefully I'm just being dense, but I'm having a problem building an RPM package from the specfile included in the nagios-1.0 tarball. I've unzipped the tarball in my ~/src directory, cd'd to ~/src/nagios-1.0, and tried to make the package like so: [jcoates at skinner nagios-1.0]$ rpm -bb nagios.spec nagios.spec: No such file or directory this works with other packages, so I'm kind of puzzled. -- Jack Coates Monkeynoodle: A Scientific Venture... ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From nagios at nagios.org Sat Dec 7 00:28:21 2002 From: nagios at nagios.org (Ethan Galstad) Date: Fri, 06 Dec 2002 17:28:21 -0600 Subject: cfg_dir directive in nagios.cfg - recursion? In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB2E5274@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB2E5274@PKDWB03C.ad.sprint.com> Message-ID: <3DF0DE35.5454.BA260@localhost> This feature was added to the 2.0 code in CVS a few days back. On 6 Dec 2002 at 16:27, Carroll, Jim P [Contractor] wrote: > I was wondering whether the cfg_dir directive supported directory recursion. > For example, if I have the following in nagios.cfg: > > cfg_dir=/usr/local/nagios/etc/configs > > I'm wondering whether directories created under > /usr/local/nagios/etc/configs (and directories under that, etc etc and so > on) will be treated as implicit cfg_dir definitions. > > If not, could this be included in a future release without too much grief? > (Ethan?) > > jc > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > Ethan Galstad, Nagios Developer --- Email: nagios at nagios.org Website: http://www.nagios.org ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jack at monkeynoodle.org Sat Dec 7 00:41:10 2002 From: jack at monkeynoodle.org (Jack Coates) Date: 06 Dec 2002 15:41:10 -0800 Subject: rpm specfile ? In-Reply-To: <1039216641.3429.63.camel@chupacabra.monkeynoodle.org> References: <1039216641.3429.63.camel@chupacabra.monkeynoodle.org> Message-ID: <1039218072.3774.69.camel@chupacabra.monkeynoodle.org> The problem is Red Hat -- they've decided to split the ability to BUILD rpms into a separate package. [jcoates at skinner jcoates]$ sudo rpm -Uvh rpm-build-4.0.4-7x.18.i386.rpm [jcoates at skinner nagios-1.0]$ sudo mv ../nagios-1.0.tar.gz /usr/src/redhat/SOURCES/ [jcoates at skinner nagios-1.0]$ sudo rpm -bb nagios.spec On Fri, 2002-12-06 at 15:17, Jack Coates wrote: > Hopefully I'm just being dense, but I'm having a problem building an RPM > package from the specfile included in the nagios-1.0 tarball. I've > unzipped the tarball in my ~/src directory, cd'd to ~/src/nagios-1.0, > and tried to make the package like so: > > [jcoates at skinner nagios-1.0]$ rpm -bb nagios.spec > nagios.spec: No such file or directory > > this works with other packages, so I'm kind of puzzled. > -- > Jack Coates > Monkeynoodle: A Scientific Venture... > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users -- Jack Coates Monkeynoodle: A Scientific Venture... ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jamie.baddeley at bclnz.net Sat Dec 7 05:03:12 2002 From: jamie.baddeley at bclnz.net (Jamie) Date: Sat, 7 Dec 2002 17:03:12 +1300 Subject: nagios map layout References: <1039210268.1973.4.camel@aten> Message-ID: <00ad01c29da5$92dfcb60$fe784fcb@paradise.net.nz> I tried this. It didn't appear to be too successful with Nagios - maybe a netsaint only tool? jamie ----- Original Message ----- From: "Anders Nerheim" To: Cc: Sent: Saturday, December 07, 2002 10:31 AM Subject: Re: [Nagios-users] nagios map layout > more than one way to do it :) > > either you can just specify what hosts are parents, like switches, > routers etc.. and it will draw the map for you in a big circular thingy > :) > > or you could specify the cords, 103x142 is an example, if you feel like > cheating and doing this stuff easy you can use the nagios/netsaint > hostextinfo util that gives you the cords. the tool is named saintmap > and url is > http://www.netsaint.org/download/contrib/addons/saintmap-2.1.tar.gz > > hope this helps. > > its all written in the hostextinfo manual. > > > ps... if you have the time you can even make 3d maps! *wooow* :> > > > > On Fri, 2002-12-06 at 21:57, JKnash at bnyclearing.com wrote: > > I have figured out how to do layout on the nagios status map, but what I > > can't figure out is how do draw lines and dependencies, like on the > > screenshot page. Did nagios actually render it, or did someone draw it in > > visio? If it was done in nagios, can someone point me in the right > > direction? > > > > http://nagios.sourceforge.net/images/screens/big/statusmap.jpg > > > > > > thanks in advance, > > > > Justin Knash > > BNY Clearing Services > > > > > > > > The information in this e-mail, and any attachment therein, > > is confidential and for use by the addressee only. > > If you are not the intended recipient, please return the > > e-mail to the sender and delete it from your computer. > > Although BNY Clearing Services LLC attempts to > > sweep e-mail and attachments for viruses, it does not > > guarantee that either are virus-free and accepts > > no liability for any damage sustained as a result of viruses. > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From pete at dublerfamily.com Sat Dec 7 05:44:53 2002 From: pete at dublerfamily.com (Pete Dubler) Date: Fri, 06 Dec 2002 21:44:53 -0700 Subject: RH8 not showing logos in statusmap Message-ID: <3DF17CC5.6040508@dublerfamily.com> Still no logos images (no question marks, no other logos) on my statusmap... I have done a complete clean reinstall of RH 8.0 using all of the RPMS for gd, gd-devel, zlib-devel, pnp, pnp.devel, etc. The nagios install goes great with the default ./configure. I have put several image packs in my images and images/logos directories. I have tried a variety of images, both gd2 and php, but none display in the statusmap. Now the gd that I am using is the one on the redhat distribution, gd-1.8.4-9 and gd-devel-1.8.4-9 Anyone else seeing or not seeing logos in a similar install (assuming you got everything installed and compiled okay)???? Thanks ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jamie.baddeley at bclnz.net Sat Dec 7 06:03:32 2002 From: jamie.baddeley at bclnz.net (Jamie) Date: Sat, 7 Dec 2002 18:03:32 +1300 Subject: RH8 not showing logos in statusmap References: <3DF17CC5.6040508@dublerfamily.com> Message-ID: <00c401c29dad$fe2780e0$fe784fcb@paradise.net.nz> umm, you have specified the location of the hostextinfo.cfg in the cgi.cfg? jamie ----- Original Message ----- From: "Pete Dubler" To: "nagios-users" Sent: Saturday, December 07, 2002 5:44 PM Subject: [Nagios-users] RH8 not showing logos in statusmap > Still no logos images (no question marks, no other logos) on my statusmap... > > I have done a complete clean reinstall of RH 8.0 using all of the RPMS > for gd, gd-devel, zlib-devel, pnp, pnp.devel, etc. The nagios install > goes great with the default ./configure. I have put several image packs > in my images and images/logos directories. I have tried a variety of > images, both gd2 and php, but none display in the statusmap. > > Now the gd that I am using is the one on the redhat distribution, > gd-1.8.4-9 and gd-devel-1.8.4-9 > > Anyone else seeing or not seeing logos in a similar install (assuming > you got everything installed and compiled okay)???? > > Thanks > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From karl at debisschop.net Sat Dec 7 13:12:36 2002 From: karl at debisschop.net (Karl DeBisschop) Date: 07 Dec 2002 07:12:36 -0500 Subject: Permissions Error In-Reply-To: <2CDD9C051F451F4BB0615B9547F1B4294D41@maacmail.maac.int> References: <2CDD9C051F451F4BB0615B9547F1B4294D41@maacmail.maac.int> Message-ID: <1039263155.6774.13.camel@toaster> On Fri, 2002-12-06 at 12:11, Robertson, Brown wrote: > Eureka guys. It's definitely a permission issue. Chmod your > htpasswd.users file (/usr/local/nagios/ets/htpasswd.users if that's > where you put it) to 777. That should do the trick. There weren't > sufficient permissions to access that file for the authentication > information. I'm almost positive this was the cause, but in case it's > not, I chmod'd all my nagios directories to 777, .htaccess files to 777, > and htpasswd.users file to 777. Hope that helps. Brown. > > Special Thanks to Scott Ripley for his suggestion in trying this. 777? methinks you must like cleaning up hacked servers at 3 in the morning. I'd suggest or 644 or 664. You do not want the file writable by the world. If it needs to be, then you have a configuration problem that should be fixed. In particular, I set nagios command group to www in the config file, so www can write to the pipe. Thus nagios (the owner) and www (the web server user) are the only two people who can write the pipe, as there's nobody else in either of those groups. Hope tha helps, but try to stay away from 777 if you possibly can. -- Karl DeBisschop ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From Brian.Ipsen at andebakken.dk Sat Dec 7 13:29:05 2002 From: Brian.Ipsen at andebakken.dk (Brian Ipsen) Date: Sat, 7 Dec 2002 13:29:05 +0100 Subject: Build RPM with MySQL support ? Message-ID: Hi! I'm trying to build an RPM with MySQL support (have already patched the configure-line in the spec-file) - but at the end of the rpmbuild output I get: Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/nagios-buildroot error: Installed (but unpackaged) file(s) found: /usr/lib/nagios/convertcfg /usr/sbin/mini_epn RPM build errors: Installed (but unpackaged) file(s) found: /usr/lib/nagios/convertcfg /usr/sbin/mini_epn Error in the .spec file - or how do I fix this ?? Regards, /Brian ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From pete at dublerfamily.com Sat Dec 7 17:01:15 2002 From: pete at dublerfamily.com (Pete Dubler) Date: Sat, 07 Dec 2002 09:01:15 -0700 Subject: RH8 not showing logos in statusmap References: <3DF17CC5.6040508@dublerfamily.com> <00c401c29dad$fe2780e0$fe784fcb@paradise.net.nz> Message-ID: <3DF21B4B.2010605@dublerfamily.com> Yes, hostextinfo.cfg file specified in cgi.cfg.. In fact, the image files I specify there appear in all the other cgi's next to the host names, and in the pop-ups in the statusmap, just no logos AT ALL in the statusmap.cgi display itself, using any of the display options. Not even the "question" marks. Yes, the image files are good because I can display them in other parts of nagios and they are located BOTH in the /usr/local/nagios/share/images directory and the ../images/logos directory. What have I missed??? Note, there were absolutely no errors or warnings when running the configure or make scripts. Thanks, Pete Jamie wrote: >umm, you have specified the location of the hostextinfo.cfg in the cgi.cfg? > >jamie >----- Original Message ----- >From: "Pete Dubler" >To: "nagios-users" >Sent: Saturday, December 07, 2002 5:44 PM >Subject: [Nagios-users] RH8 not showing logos in statusmap > > > > >>Still no logos images (no question marks, no other logos) on my >> >> >statusmap... > > >>I have done a complete clean reinstall of RH 8.0 using all of the RPMS >>for gd, gd-devel, zlib-devel, pnp, pnp.devel, etc. The nagios install >>goes great with the default ./configure. I have put several image packs >>in my images and images/logos directories. I have tried a variety of >>images, both gd2 and php, but none display in the statusmap. >> >>Now the gd that I am using is the one on the redhat distribution, >>gd-1.8.4-9 and gd-devel-1.8.4-9 >> >>Anyone else seeing or not seeing logos in a similar install (assuming >>you got everything installed and compiled okay)???? >> >>Thanks >> >> >> >>------------------------------------------------------- >>This sf.net email is sponsored by:ThinkGeek >>Welcome to geek heaven. >>http://thinkgeek.com/sf >>_______________________________________________ >>Nagios-users mailing list >>Nagios-users at lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/nagios-users >> >> >> > > > >------------------------------------------------------- >This sf.net email is sponsored by:ThinkGeek >Welcome to geek heaven. >http://thinkgeek.com/sf >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From anders at jblinux.net Sat Dec 7 22:17:30 2002 From: anders at jblinux.net (Anders Nerheim) Date: 07 Dec 2002 22:17:30 +0100 Subject: check_pop segfault Message-ID: <1039295876.1822.4.camel@aten> [root at nagios libexec]# ./check_pop -H pop.host.no -c 2 -w 1 POP OK - 0.026 second response time on port 110|time= 0.026 Segmentation fault thats useing the check_pop from nagios-plugins-1.3.0-beta2. also seg faults if I use the check_pop from the currenct plugins package. No problem with any other plugains afaik, and box should be stable, this box has been in production for over a year doing other stuff so it should be stable hardware/mem wise. could send strace-output if anyone wants that. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From terry at eurocompton.net Sat Dec 7 23:01:06 2002 From: terry at eurocompton.net (Terry Baranski) Date: Sat, 7 Dec 2002 17:01:06 -0500 Subject: Distributed SNMP monitoring. In-Reply-To: References: Message-ID: <001f01c29e3c$24aed860$0a00640a@netsec.net> Thanks for all the responses here folks. Food for thought, indeed... -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Frater, Greg J Sent: Wednesday, December 04, 2002 3:28 PM To: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Distributed SNMP monitoring. I am working on this issue for our network as we speak (type). We set out to add alerting, monitoring, and trending functionality. We chose Nagios (great product) for alerting and monitoring. We intended to use MRTG for trending and still might, though, currently I am looking at apan (and others) because it would be great to be able to leverage the Nagios web front end and the rich set of service checks it provides for data collection to be able to provide the trending or monitoring over time. I am new to this whole game so I don't know that I can add to the discussion other than to say that this is a very relevant topic for us. And keep up the good work, we are getting a lot of ooh's and ah's (sp?) when showing people Nagios. -----Original Message----- From: Jamie [mailto:jamie.baddeley at bclnz.net] Sent: Tuesday, December 03, 2002 9:47 PM To: Carroll, Jim P [Contractor]; 'Terry Baranski'; nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Distributed SNMP monitoring. All great comments Jim (as always). Noting your last paragraph: It seems to me to be a common issue - i.e integrating time-series data/trending (snmp) info with "point" info & threshold detection that nagios provides. Superficially it's easy - just do cool things with side menu..... I originally used NRG because it auto-conf'ed everything, so was easy to use. The downside is it was not so flexible. So, we moved over to Cricket+Smokeping. Seems all good (so far). But anyway, on to my point: It's wouldn't surprise me that loadsa people want to do the same Nagios+RRD&Front-End combo (but with no fries). - APAN seems pretty good but when one has a plethora of RRD front-ends out there - why would you create another one -especially when people have an investment in the rrd stored data of the existing system? (no offense fredrik). - IMHO Cacti seems to be overkill. But I could be wrong. So, can I see a show of hands as to what people's preferences are for an RRD "partner tool" for Nagios? Maybe we could all work together on making integration between the two really slick... Architecturally my preference is to let the RRD tools do the data acquisition, and let nagios pull from the (probable) local RRD file....What are people's thoughts on that? Ethan, Subhendu etc - Do you see the extension of Nagios from a monitoring/reporting tool to that plus performance analysis as a viable future development path? jamie ----- Original Message ----- From: "Carroll, Jim P [Contractor]" To: "'Terry Baranski'" ; Sent: Wednesday, December 04, 2002 7:21 AM Subject: RE: [Nagios-users] Distributed SNMP monitoring. > A few comments here. > > First, OpenNMS was recently discussed on this list. The general > hubbub is that it is a resource hog. (I've never touched it, so take > this comment for > what it's worth.) Seems you'll need to spend some serious bucks on > your OpenNMS server if you want to even put it up for consideration. > > Second, Nagios rocks. It really does. That's the 'warm fuzzy' > comment which I'm sure many others on this list will embrace. > Basically, any test that you can run from a command line can be > incorporated into Nagios. Already there are many plugins which have > been crafted to do some very popular tasks. > > On tiering: I'm not exactly clear on your intent, but you can run two > Nagios servers, and have the results of one cascade over to the other > with the assistance of NSCA. Thus, the external server will display > only what it's collected, and the internal server will display what > it's collected, as > well as what the external server as sent over to it. > > On down/up vs. SNMP: Nagios provides support for SNMP via plugins > (most notably check_snmp). If you want to handle traps, there are a > couple of approaches (TMTOWTDI in Perl-speak); one way would be to be > running snmptrapd on your Nagios server, and have a cronjob kick off > every minute to > scrub the logfile, reformat the trap and stuff it into nagios.cmd > (FIFO). Another way would be to have the event get redirected via NSCA > to the Nagios > host. Yes, Nagios has down/up checks, such as, "is something > listening on port 80 on host fizzgig or not". But some of the plugins > relate to local host metrics, such as free disk space, number of > processes (with specialized > options, such as checking for zombies), free swap, etc. In these > cases, you > would more likely want to configure for green/yellow/red alerts > (OK/Warning/Critical in Nagios). If you want to write your own > script, there are many examples (plugins) to follow. To get the > green/yellow/red response in Nagios, you would have your script return > code 0, 1 or 2 accordingly. One point which can be confusing to > Nagios newbies, is that things like check_disk won't work on a remote > host, unless you install/execute it on the remote host. But how to > get the results to Nagios? Ah, that's where NRPE (or NSCA, or...) > come in. > > As someone else has pointed out, if you wish to chart trends, you'll > want to > take a look at something like cacti (which I hope to try in the near > future). Another contributor has created APAN (which also uses > RRDTool). > > I hope this gives you the needed food for thought. > > jc > > > -----Original Message----- > > From: Terry Baranski [mailto:terry at eurocompton.net] > > Sent: Monday, December 02, 2002 9:00 PM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Distributed SNMP monitoring. > > > > > > Hello. > > > > Hoping I can get some thoughts on this from those experienced with > > Nagios. > > > > I'm looking to deploy a network monitoring solution primarily to > > monitor host resources such as disk space, processor usage, and so > > forth via SNMP, and also to receive SNMP traps and notify > > accordingly. The hosts > > are Open/FreeBSD, Solaris, Linux, and Windows. I'm in need of a > > solution that supports tiering -- I need an external server to monitor > > exernal devices and an internal server to monitor internal > > devices, with > > the external server pumping its data to the internal server, > > making the > > internal server the central/master server. > > > > I first looked an OpenNMS, but it doesn't have tier support yet. > > Then I ran across Nagios, which does seem to have tier support, but > > also seems > > to be geared more towards up/down monitoring than SNMP monitoring. > > > > So, I'm wondering what those who have used Nagios think of its > > appropriateness (or lack thereof) for what I'm trying to accomplish. > > From the documentation I've read so far, it appears to me that > > tiered host resource monitoring is possible with the NRPE daemon > > running on each monitored host. Is this accurate? If so, does this > > daemon work on Open/FreeBSD? These OS's represent the majority of > > our hosts. > > > > Any help/advice on this will be greatly appreciated. > > > > Thanks, > > Terry > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Get the new Palm Tungsten T > > handheld. Power & Color in a compact size! > > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en > > _______________________________________________ > > Nagios-users mailing list Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Microsoft Visual Studio.NET > comprehensive development tool, built to increase your > productivity. Try a free online hosted session at: > http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at: http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From cquinn at excitenetwork.com Sun Dec 8 04:05:51 2002 From: cquinn at excitenetwork.com (Chris Quinn) Date: Sat, 7 Dec 2002 22:05:51 -0500 Subject: urlize and sendmail Message-ID: I am using urlize with all of my plugins, it works great, the only problem is that since I started to use urlize the emails that Nagios sends out have a blank body...:-/ Any help on how I can change this would be really appreciated.. Thank You, -Chris Quinn The ExciteNetwork www.myway.com www.excite.com www.iwon.com ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From TGFurnish at herff-jones.com Sun Dec 8 10:46:06 2002 From: TGFurnish at herff-jones.com (Furnish, Trever G) Date: Sun, 8 Dec 2002 04:46:06 -0500 Subject: Distributed SNMP monitoring. Message-ID: <5D8D9455134FD211AE4900A0C9DED11E0773FBD5@indy1ntm.herff-jones.com> Well, actually, if by "fully integrated" you mean "as integrated as anyone could ever want", then no, it's not fully integrated. :-) No offense - it looks like a very nice contribution - but I for one would greatly prefer not to have to spawn off rrdtool to open and close its files again every time nagios wants to save data. It'd be nice if whatever performance archiving mechanism gets focused on is one where the long-running nagios process communicates directly with a long-running, all files held open rrdtool process or a database. It looks like (ok, have I given away the fact yet that I haven't actually set up apan yet? ;-) ) APAN works by getting called every time you call a command you want to record performance info for, then returning the result to Nagios and kicking off an rrdtool process to archive it. Although the apan and rrdtool executables will probably be in OS read cache, that's still a lot of additional overhead. Comments intended constructively, corrections appreciated... -t. > -----Original Message----- > From: Fredrik W?nglund [mailto:Fredrik.Wanglund at datavis.se] > Sent: Wednesday, December 04, 2002 2:48 AM > To: Jamie; Carroll, Jim P [Contractor]; Terry Baranski; > nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Distributed SNMP monitoring. > > > OK, I have to defend APAN..;-) > I know that Apan lacks a tool for RRD-file creatin (my > fault). But on the other hand, Apan is fully integrated in > Nagios. And, if you switch from another tool that uses RRD's, > you can reuse your existing RRD-files and let Apan put data > in them instead and you will be able to see your history in Nagios... > > > > /FredrikW > -----Original Message----- > From: Jamie [mailto:jamie.baddeley at bclnz.net] > Sent: Wed 04-Dec-02 06:46 > To: Carroll, Jim P [Contractor]; 'Terry Baranski'; > nagios-users at lists.sourceforge.net > Cc: > Subject: Re: [Nagios-users] Distributed SNMP monitoring. > > All great comments Jim (as always). > > > > Noting your last paragraph: > > It seems to me to be a common issue - i.e integrating time-series > data/trending (snmp) info with "point" info & threshold detection that > nagios provides. Superficially it's easy - just do cool > things with side > menu..... > > I originally used NRG because it auto-conf'ed everything, so > was easy to > use. The downside is it was not so flexible. So, we moved over to > Cricket+Smokeping. Seems all good (so far). > > But anyway, on to my point: > > It's wouldn't surprise me that loadsa people want to do the same > Nagios+RRD&Front-End combo (but with no fries). > - APAN seems pretty good but when one has a plethora of RRD > front-ends out > there - why would you create another one -especially when > people have an > investment in the rrd stored data of the existing system? (no offense > fredrik). > - IMHO Cacti seems to be overkill. But I could be wrong. > > So, can I see a show of hands as to what people's preferences > are for an RRD > "partner tool" for Nagios? Maybe we could all work together on making > integration between the two really slick... > > Architecturally my preference is to let the RRD tools do the data > acquisition, and let nagios pull from the (probable) local > RRD file....What > are people's thoughts on that? > > Ethan, Subhendu etc - Do you see the extension of Nagios from a > monitoring/reporting tool to that plus performance analysis > as a viable > future development path? > > > > jamie > > > > ----- Original Message ----- > From: "Carroll, Jim P [Contractor]" > To: "'Terry Baranski'" ; > > Sent: Wednesday, December 04, 2002 7:21 AM > Subject: RE: [Nagios-users] Distributed SNMP monitoring. > > > > A few comments here. > > > > First, OpenNMS was recently discussed on this list. The > general hubbub is > > that it is a resource hog. (I've never touched it, so take > this comment > for > > what it's worth.) Seems you'll need to spend some serious > bucks on your > > OpenNMS server if you want to even put it up for consideration. > > > > Second, Nagios rocks. It really does. That's the 'warm > fuzzy' comment > > which I'm sure many others on this list will embrace. > Basically, any test > > that you can run from a command line can be incorporated > into Nagios. > > Already there are many plugins which have been crafted to > do some very > > popular tasks. > > > > On tiering: I'm not exactly clear on your intent, but you > can run two > > Nagios servers, and have the results of one cascade over to > the other with > > the assistance of NSCA. Thus, the external server will > display only what > > it's collected, and the internal server will display what > it's collected, > as > > well as what the external server as sent over to it. > > > > On down/up vs. SNMP: Nagios provides support for SNMP via > plugins (most > > notably check_snmp). If you want to handle traps, there > are a couple of > > approaches (TMTOWTDI in Perl-speak); one way would be to be running > > snmptrapd on your Nagios server, and have a cronjob kick > off every minute > to > > scrub the logfile, reformat the trap and stuff it into > nagios.cmd (FIFO). > > Another way would be to have the event get redirected via > NSCA to the > Nagios > > host. Yes, Nagios has down/up checks, such as, "is > something listening on > > port 80 on host fizzgig or not". But some of the plugins > relate to local > > host metrics, such as free disk space, number of processes (with > specialized > > options, such as checking for zombies), free swap, etc. In > these cases, > you > > would more likely want to configure for green/yellow/red alerts > > (OK/Warning/Critical in Nagios). If you want to write your > own script, > > there are many examples (plugins) to follow. To get the > green/yellow/red > > response in Nagios, you would have your script return code 0, 1 or 2 > > accordingly. One point which can be confusing to Nagios > newbies, is that > > things like check_disk won't work on a remote host, unless you > > install/execute it on the remote host. But how to get the > results to > > Nagios? Ah, that's where NRPE (or NSCA, or...) come in. > > > > As someone else has pointed out, if you wish to chart > trends, you'll want > to > > take a look at something like cacti (which I hope to try in the near > > future). Another contributor has created APAN (which also > uses RRDTool). > > > > I hope this gives you the needed food for thought. > > > > jc > > > > > -----Original Message----- > > > From: Terry Baranski [mailto:terry at eurocompton.net] > > > Sent: Monday, December 02, 2002 9:00 PM > > > To: nagios-users at lists.sourceforge.net > > > Subject: [Nagios-users] Distributed SNMP monitoring. > > > > > > > > > Hello. > > > > > > Hoping I can get some thoughts on this from those experienced with > > > Nagios. > > > > > > I'm looking to deploy a network monitoring solution primarily > > > to monitor > > > host resources such as disk space, processor usage, and > so forth via > > > SNMP, and also to receive SNMP traps and notify accordingly. > > > The hosts > > > are Open/FreeBSD, Solaris, Linux, and Windows. I'm in need of a > > > solution that supports tiering -- I need an external > server to monitor > > > exernal devices and an internal server to monitor internal > > > devices, with > > > the external server pumping its data to the internal server, > > > making the > > > internal server the central/master server. > > > > > > I first looked an OpenNMS, but it doesn't have tier support > > > yet. Then I > > > ran across Nagios, which does seem to have tier support, but > > > also seems > > > to be geared more towards up/down monitoring than SNMP monitoring. > > > > > > So, I'm wondering what those who have used Nagios think of its > > > appropriateness (or lack thereof) for what I'm trying to > accomplish. > > > From the documentation I've read so far, it appears to me > that tiered > > > host resource monitoring is possible with the NRPE daemon > running on > > > each monitored host. Is this accurate? If so, does this > > > daemon work on > > > Open/FreeBSD? These OS's represent the majority of our hosts. > > > > > > Any help/advice on this will be greatly appreciated. > > > > > > Thanks, > > > Terry > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.net email is sponsored by: Get the new Palm Tungsten T > > > handheld. Power & Color in a compact size! > > > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft Visual Studio.NET > > comprehensive development tool, built to increase your > > productivity. Try a free online hosted session at: > > http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Microsoft Visual Studio.NET > comprehensive development tool, built to increase your > productivity. Try a free online hosted session at: > http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Microsoft Visual Studio.NET > comprehensive development tool, built to increase your > productivity. Try a free online hosted session at: > http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jasmine.chua at securecirt.com Sun Dec 8 15:50:52 2002 From: jasmine.chua at securecirt.com (Jasmine Chua) Date: Sun, 8 Dec 2002 22:50:52 +0800 Subject: nsca Message-ID: <200212082250.59102.jasmine.chua@securecirt.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi guys, For some reason.. I keep getting lots of close_wait sessions on nsca for my central monitoring server. And, on the other end of my distributed monitoring server, i can see the submit check result working when i do a 'ps ax' however, when i tried to test the plugin manually.. i got a timeout of 10 seconds.. I keep having lots of fin_wait2 sessions. I have checked the IP addresses and added the appropriate ones in my nsca.cfg. I have also enabled debug for nsca, they said the host address checks out ok.. handling the connection.. and then end of connection / could not read request from client. What is wrong? This is really urgent! hope to hear from someone soon! - -- Jasmine Chua Security Engineer, SecureCiRT (A SBU of Z-Vance Pte Ltd) http://www.securecirt.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE981xRNgvTa7Hj2AURArXpAKCZF73t3DTDCDwR3cib26/Z1oPhWwCePEjr kDDUqqOILvenHQHDUYizSLM= =6btk -----END PGP SIGNATURE----- ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jasmine.chua at securecirt.com Sun Dec 8 18:56:41 2002 From: jasmine.chua at securecirt.com (Jasmine Chua) Date: Mon, 9 Dec 2002 01:56:41 +0800 Subject: bring down the latency Message-ID: <200212090156.46799.jasmine.chua@securecirt.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi all, I posted a problem earlier regarding 'nsca' on close_wait sessions.. i suspected that its due to the high latency that I m encountering. because sometimes nsca is working and sometimes its not. any ideas on bring down the latency on Nagios? I am only monitoring 100 over services.. and I am having big latency problems. Which I have tweaked with the config so many times with service reaper and max-concurrent-checks.. anyone whose monitoring like a 1000 over services.. has any idea on how to manage latency? What figure i can give to my service reaper and max-concurrent-checks? understand to do nagios with the -s option for scheduling information.. but no matter what i do.. the latency is still very high. My normal service interval is set to 60 secs. - -- Jasmine Chua Security Engineer, SecureCiRT (A SBU of Z-Vance Pte Ltd) http://www.securecirt.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE984fdNgvTa7Hj2AURAoWCAJ4xwap5n0bQ3GQqd2ewTAT7z0YHwQCbBZdk /6zcT5uNSHkAv7tQl/mCA44= =U5Jw -----END PGP SIGNATURE----- ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From william at wrnash.net Sun Dec 8 20:12:03 2002 From: william at wrnash.net (William R. Nash) Date: Sun, 8 Dec 2002 14:12:03 -0500 Subject: qpage and nagios In-Reply-To: <200212052042.01592.william@wrnash.net> References: <200212052042.01592.william@wrnash.net> Message-ID: <200212081412.03578.william@wrnash.net> OK i was able to fix the problem with qpage and nagios. This is how i did it. chmod -R 777 /usr/local/nagios/ Not sure why this fix the problem but now I'm able to receive pages from nagios. I was able to send a page form the command line as any user i even create a new user just to test qpage and it work. will thanks for all the email helping me out with this. Bill Nash On Thursday 05 December 2002 08:42 pm, William R. Nash wrote: > Hello, > > I'm having a little problem now with qpage and nagios. Problem i can send > a page from the command line to my pager using qpage. When nagios tried to > send a page i get Connection refused by host. I have added my config files > from my test machine. > > Thanks Bill Nash > medic5591 at msn.com for chat ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From steve at sliderule.demon.co.uk Sun Dec 8 22:51:21 2002 From: steve at sliderule.demon.co.uk (Steve Burton) Date: Sun, 08 Dec 2002 21:51:21 +0000 Subject: 3d Status Maps References: <3DEEA0DA.6B564ED0@sliderule.demon.co.uk> Message-ID: <3DF3BED9.AF310B56@sliderule.demon.co.uk> Hi. I though as much. All I need now is a protractor marked in steradians :-) Steve Burton wrote: > > Hi, > > I've been using nagios for about a month now and well, it just works! > Nice operation and nice interface. We've been nothing but impressed. But > we want MORE. I downloaded and installed the Cortona plugin to > investigate 3d maps as the 2d one is now becoming too cluttered but I've > discovered that once I set it to user supplied co-ordinates, I'm not > that clever at working out the 3d co-ordinates. I sat there with a > calculator and my friend Pythagorus but I can't seem to crack it. Before > I move into overdrive and try to program this, has anyone else done it? > I'd really appreciate some tips or better, a solution. > > Steve > > -- > Steve Burton > > Webmaster & Sub-optimal Coder > > ------------------------------------------------------- > This SF.net email is sponsored by: Microsoft Visual Studio.NET > comprehensive development tool, built to increase your > productivity. Try a free online hosted session at: > http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users -- Steve Burton Webmaster & Sub-optimal Coder ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From robin at primus.ca Mon Dec 9 00:10:42 2002 From: robin at primus.ca (Robin Mordasiewicz) Date: Sun, 8 Dec 2002 18:10:42 -0500 (EST) Subject: nagio.spec %{cmdusr} In-Reply-To: <3DF3BED9.AF310B56@sliderule.demon.co.uk> References: <3DF3BED9.AF310B56@sliderule.demon.co.uk> Message-ID: I am finding trouble build ing the rpm for version one. On line 140 in nagio.spec %{cmdusr} is referenced but has not been set. This seems to be a bug in the spec file. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From chocklehot at clan-union.com Mon Dec 9 01:45:15 2002 From: chocklehot at clan-union.com (Charles) Date: Sun, 08 Dec 2002 19:45:15 -0500 Subject: Hi all Message-ID: I have a little question... Well.. If ftp crash.. It will bip my cellphone But If the server crash???? Is it gonna bip? Is there any way??? Chock ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From Stanley.Hopcroft at IPAustralia.Gov.AU Mon Dec 9 02:08:43 2002 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Mon, 9 Dec 2002 12:08:43 +1100 Subject: Distributed SNMP monitoring. In-Reply-To: <5D8D9455134FD211AE4900A0C9DED11E0773FBD5@indy1ntm.herff-jones.com>; from TGFurnish@herff-jones.com on Sun, Dec 08, 2002 at 04:46:06AM -0500 References: <5D8D9455134FD211AE4900A0C9DED11E0773FBD5@indy1ntm.herff-jones.com> Message-ID: <20021209120840.C90974@IPAustralia.Gov.AU> Dear Sir, FWIW, there seems to be no serious competitor to RRD for saving time series data. On Sun, Dec 08, 2002 at 04:46:06AM -0500, Furnish, Trever G wrote: > Well, actually, if by "fully integrated" you mean "as integrated as anyone > could ever want", then no, it's not fully integrated. :-) No offense - it > looks like a very nice contribution - but I for one would greatly prefer not > to have to spawn off rrdtool to open and close its files again every time > nagios wants to save data. It'd be nice if whatever performance archiving > mechanism gets focused on is one where the long-running nagios process > communicates directly with a long-running, all files held open rrdtool > process or a database. > > It looks like (ok, have I given away the fact yet that I haven't actually > set up apan yet? ;-) ) APAN works by getting called every time you call a > command you want to record performance info for, then returning the result > to Nagios and kicking off an rrdtool process to archive it. Although the > apan and rrdtool executables will probably be in OS read cache, that's still > a lot of additional overhead. > > Comments intended constructively, corrections appreciated... > I am not sure if I follow you, but it is not necessary to 'spawn off rrdtool' since rrdtool has a public API and shared libraries (in at least C and Perl) that implement the API. The RRD fetch, update, create functions can be called directly from Nagios in the same way that it can call any other function that is properly linked (such as the Perl functions if Nagios is built with embedded Perl support) with it. I don't see this as 'a lot of additional overhead', especially with Dynamic loading. Projects that use this approach include the new RRD plugin for Ntop (Again FWIW, Ntop has replaced DB interfaces to mySQL and friends by RRD). RRD tool buys an extraordinary amount of power in . its data manipulation functions . it offers (development at this stage) Holt-Winters time series prediction (from Jake Brutlag of Microsoft). This is an RRA that predicts the next values of data like interface octets that vary periodically, based on historical values of data and variance. It is good way to automatically detect if traffic levels have altered significantly, far more sophisticated than simply setting thresholds. > -t. > Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From chocklehot at clan-union.com Mon Dec 9 02:59:17 2002 From: chocklehot at clan-union.com (Charles) Date: Sun, 08 Dec 2002 20:59:17 -0500 Subject: Hi all In-Reply-To: <20021209121513.D90974@IPAustralia.Gov.AU> References: <20021209121513.D90974@IPAustralia.Gov.AU> Message-ID: What I mean is that.. Is there a nagios master server that ping My server like each 10 mins to check if it is up.. And if no.. It bip my cellphone Le 12/8/02 8:15 PM, ??[NOM]?? <[ADRESSE]> a ?crit?: > Dear Sir, > > Nagios will 'bip your cellphone' if the FTP server process crashes and > if the FTP host crashes, and if the host is remote, 'bip your cellphone' > if any intervening router crashes - in this case, you will __not__ get > alerted that the FTP server/host has failed because it will not be > reachable to be checked. > > (Provided of course that you have configured Nag correctly, installed > the plugins etc). > > Yours sincerely. > > -- > ------------------------------------------------------------------------ > Stanley Hopcroft > ------------------------------------------------------------------------ > > '...No man is an island, entire of itself; every man is a piece of the > continent, a part of the main. If a clod be washed away by the sea, > Europe is the less, as well as if a promontory were, as well as if a > manor of thy friend's or of thine own were. Any man's death diminishes > me, because I am involved in mankind; and therefore never send to know > for whom the bell tolls; it tolls for thee...' > > from Meditation 17, J Donne. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jack at monkeynoodle.org Mon Dec 9 04:42:25 2002 From: jack at monkeynoodle.org (Jack Coates) Date: 08 Dec 2002 19:42:25 -0800 Subject: nagio.spec %{cmdusr} In-Reply-To: References: Message-ID: <1039405345.3477.1.camel@chupacabra.monkeynoodle.org> On Sun, 2002-12-08 at 15:10, Robin Mordasiewicz wrote: > I am finding trouble build ing the rpm for version one. > On line 140 in nagio.spec %{cmdusr} is referenced but has not been set. > This seems to be a bug in the spec file. > Yup -- however, I just ignored it and went ahead. It causes an error message but no real problems that I've seen yet if you install nagios and nagios-www at the same time. If you install nagios and nagios-www separately there are no messages or problems that I've identified yet. -- Jack Coates Monkeynoodle: A Scientific Venture... ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From p.miquet at hafiba.fr Mon Dec 9 10:43:36 2002 From: p.miquet at hafiba.fr (Pascal Miquet) Date: 09 Dec 2002 10:43:36 +0100 Subject: Permissions Error In-Reply-To: <11C80DA1026CF545921B280740C440ED8BA60D@exchange1.corp.winterlink.net> References: <11C80DA1026CF545921B280740C440ED8BA60D@exchange1.corp.winterlink.net> Message-ID: <1039426524.4984.8.camel@moishe> Did you checks the permissions of the htpasswd.users file. On a RH8.0, this file wasn't readable by other and group, so there was no permissions to access to the nagios HTTP application. Changing permissions solved this matter. HTH Regards Le ven 06/12/2002 ? 19:48, Chris Fairbanks a ?crit : > Yes, it is definatly a permissions problem, but it is not on > htpasswd.users. It is on something else, just not sure what. I'll try > tracking it down in the next few days and let you guys know, or if > someone else finds it, please post to the list. > > Thanks, > Chris > > > > -----Original Message----- > From: Robertson, Brown [mailto:brown.robertson at maac.net] > Sent: Friday, December 06, 2002 9:11 AM > To: Chris Fairbanks; wrnash; Potter, G M (Greg); Nagios-users (E-mail) > Cc: Scott Ripley > Subject: RE: [Nagios-users] RE: Permissions Error > > > Eureka guys. It's definitely a permission issue. Chmod your > htpasswd.users file (/usr/local/nagios/ets/htpasswd.users if that's > where you put it) to 777. That should do the trick. There weren't > sufficient permissions to access that file for the authentication > information. I'm almost positive this was the cause, but in case it's > not, I chmod'd all my nagios directories to 777, .htaccess files to 777, > and htpasswd.users file to 777. Hope that helps. Brown. > > Special Thanks to Scott Ripley for his suggestion in trying this. > > > > > > > -----Original Message----- > From: Chris Fairbanks [mailto:ChrisF at winterlink.net] > Sent: Friday, December 06, 2002 12:47 AM > To: wrnash; Potter, G M (Greg); Nagios-users (E-mail) > Cc: Robertson, Brown > Subject: RE: [Nagios-users] RE: Permissions Error > > My httpasswd.users file and everything is setup totally correctly and > use_authentication=1 is set. I have also tried setting all the > authorized_for's = * but to no avail. From the sounds of it, it looks > like this might be an issue with RH8.0 or Apache 2.0.40 that ships > default with RH8.0. Is there anyone on this list that has Nagios > working on RH8.0? > > Thanks, > Chris > > > > -----Original Message----- > From: wrnash [mailto:wrnash at wrnash.net] > Sent: Thursday, December 05, 2002 3:59 PM > To: 'Potter, G M (Greg)'; 'Nagios-users (E-mail)' > Subject: RE: [Nagios-users] RE: Permissions Error > > > Have you did: > htpasswd /usr/local/nagios/etc/htpasswd.users username > > And also is use_authentication=1 > Do you get any error when you type /usr/local/nagios/bin/nagios -v
configuration file> example would be /usr/local/nagios/etc/nagios.cfg > > > Thanks Bill Nash > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Potter, G > M (Greg) > Sent: Thursday, December 05, 2002 5:39 PM > To: Nagios-users (E-mail) > Subject: FW: [Nagios-users] RE: Permissions Error > > What do you have in the cgi.cfg file for the following variables?: > > authorized_for_system_information=nagiosadmin > authorized_for_configuration_information=nagiosadmin > authorized_for_system_commands=nagiosadmin > authorized_for_all_services=nagiosadmin > authorized_for_all_hosts=nagiosadmin > authorized_for_all_service_commands=nagiosadmin > authorized_for_all_host_commands=nagiosadmin > > Greg > > -----Original Message----- > From: Robertson, Brown [mailto:brown.robertson at maac.net] > Sent: Thursday, December 05, 2002 4:14 PM > To: ChrisF at winterlink.net > Cc: Nagios-users at lists.sourceforge.net > Subject: [Nagios-users] RE: Permissions Error > > > Chris, did you ever find out the cause of your permission error? I am > running Red Hat 8.0 and finding the same problem. I have also followed > the faq exactly. .htaccess files look good, httpd.conf edited properly. > Htpasswd.users file is correct. I'm wondering if it might be some > problem with apache under RH 8.0? > > Anyone else have any ideas? > > Here's what I have in my httpd.conf: > > ScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/ > > AllowOverride AuthConfig > Options ExecCGI > Order allow,deny > Allow from all > > > Alias /nagios/ /usr/local/nagios/share/ > > Options None > AllowOverride AuthConfig > Order allow,deny > Allow from all > > > And in my .htaccess, located in /usr/local/nagios/sbin and > /usr/local/nagios/share > > AuthName "Nagios Access" > AuthType Basic > AuthUserFile /usr/local/nagios/etc/htpasswd.users > require valid-user > > > Then I : > > htpasswd -c /usr/local/nagios/etc/htpasswd.users nagios > > > > Still no luck. It will continually request authentication but will never > accept it. > > Any ideas? > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From Markus.Kraus.hp at sysde.eads.net Mon Dec 9 13:21:37 2002 From: Markus.Kraus.hp at sysde.eads.net (Kraus, Markus) Date: Mon, 9 Dec 2002 13:21:37 +0100 Subject: NRPE: Nagios remote plugin execution Message-ID: Is it possible to tunnel the traffic between Nagios and nrpe-Deamon via ssh (DSA-Keys) to avoid ip-spoofing? On which port is Nagios listening to the answers of nrpe-Deamon? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Markus.Kraus.hp at sysde.eads.net Mon Dec 9 13:24:47 2002 From: Markus.Kraus.hp at sysde.eads.net (Kraus, Markus) Date: Mon, 9 Dec 2002 13:24:47 +0100 Subject: Schedule downtime Message-ID: Is it possible to schedule downtime for a host and its services at once like it is possible to disable notifications for hosts and services at once e.g.? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Linke at eumetsat.de Mon Dec 9 13:29:26 2002 From: Linke at eumetsat.de (Markus Linke) Date: Mon, 09 Dec 2002 13:29:26 +0100 Subject: "-" in hostnames Message-ID: Hi, our hostnames include the minus-character ("-"). When trying to access a extended-host link (additional notes for this service) the minus is replaced with %2D and the graph cannot be shown, because it expects a - and not %2d. http://163.165.200.251/nagios/cgi-bin/apan.cgi?host=hp327%2D1%2D0&service=apan-ping Is there any solution for this problem? Ciao, Markus ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From norbert.schollum at ebuz.de Mon Dec 9 14:00:11 2002 From: norbert.schollum at ebuz.de (Norbert Schollum) Date: Mon, 09 Dec 2002 14:00:11 +0100 Subject: Network unreachable Problem Message-ID: <5.2.0.9.0.20021209134855.038162f0@pop.t-online.de> An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 9527bb.jpg Type: image/jpeg Size: 633 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 952829.jpg Type: image/jpeg Size: 633 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 95287a.jpg Type: image/jpeg Size: 633 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 9528ca.jpg Type: image/jpeg Size: 633 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 952910.jpg Type: image/jpeg Size: 633 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 952960.jpg Type: image/jpeg Size: 633 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 9529b0.jpg Type: image/jpeg Size: 633 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 952a0a.jpg Type: image/jpeg Size: 633 bytes Desc: not available URL: From p.miquet at hafiba.fr Mon Dec 9 14:26:43 2002 From: p.miquet at hafiba.fr (Pascal Miquet) Date: 09 Dec 2002 14:26:43 +0100 Subject: NRPE: Nagios remote plugin execution In-Reply-To: References: Message-ID: <1039440404.4649.10.camel@moishe> Should use the check_ssh plugin. Le lun 09/12/2002 ? 13:21, Kraus, Markus a ?crit : > Is it possible to tunnel the traffic between Nagios and nrpe-Deamon via ssh > (DSA-Keys) to avoid ip-spoofing? On which port is Nagios listening to the > answers of nrpe-Deamon? ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From lfcrob at nicusa.com Mon Dec 9 15:34:25 2002 From: lfcrob at nicusa.com (Rob Lindenbusch) Date: Mon, 9 Dec 2002 09:34:25 -0500 Subject: Nagios 1.06 + NSClient 1.0.6.2 Message-ID: <016601c29f90$131a8f90$0300a8c0@glock> Hi everyone, I'm having a problem with Nagios 1.0b6 (Solaris 8) + NSClient 1.0.6.2 (Windows 2000). Everything almost works, except that the Windows client does not return the service state (OK, WARNING, CRITICAL): /usr/local/nagios/libexec/check_nt -H nthostname -v USEDDISKSPACE -l c -w 10 -c 15 c:\ - total: 3.77 Gb - used: 2.85 Gb (76%) - free 0.92 Gb (24%) Any ideas? Thanks, Rob Rob Lindenbusch Systems and Network Administrator NIC E-mail: lfcrob at nicusa.com Phone: (317)290-1020 ext. 42 Mobile: (317)506-5379 ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From TGFurnish at herff-jones.com Mon Dec 9 15:45:09 2002 From: TGFurnish at herff-jones.com (Furnish, Trever G) Date: Mon, 9 Dec 2002 09:45:09 -0500 Subject: Distributed SNMP monitoring. Message-ID: <5D8D9455134FD211AE4900A0C9DED11E0773FBD9@indy1ntm.herff-jones.com> I probably ought to do a lot more research before I continue to speak, but I don't mind being corrected in public one bit, so... :-) > -----Original Message----- > From: Stanley Hopcroft [mailto:Stanley.Hopcroft at IPAustralia.Gov.AU] > Sent: Sunday, December 08, 2002 8:09 PM > FWIW, there seems to be no serious competitor to RRD for saving time > series data. I certainly agree. > I am not sure if I follow you, but it is not necessary to 'spawn off > rrdtool' since rrdtool has a public API and shared libraries (in at > least C and Perl) that implement the API. Bad use of made-up terminology on my part - by "an rrdtool process" I was actually refering to apan itself, which gets a process creation every time Nagios uses it to check on a host or service. Apan then runs the plugin on behalf of Nagios, so you end up with two processes created per check instead of one...correct? Again, I ought to do more research first...but my impression from the apan docs is that it doesn't keep running as a daemon in the background, but rather has to open and close the rrd files every time an apan service or host gets checked. An alternative would be a process that holds open the xpdfile_host_perfdata_file and xpdfile_service_perfdata_file and then updates the rrd files when it sees new performance data in either file. > Stanley Hopcroft ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From Chris.Losch at newham.gov.uk Mon Dec 9 15:43:49 2002 From: Chris.Losch at newham.gov.uk (Chris Losch) Date: Mon, 9 Dec 2002 14:43:49 -0000 Subject: Permissions Error (Could not stat() command file ) Message-ID: Change of Subject line, things were getting confused.... ---- It was worth a try, still didnt work though *sigh* Just in case I'm missing something. ls -la /usr/local/nagios/var/rw ----------------------------------------- total 8 drwxrwS--- 2 nagios nagiocmd 4096 Dec 6 17:20 . drwxrwxr-x 4 nagios nagios 4096 Dec 9 14:37 .. prw-rwx--- 1 nagios nagiocmd 0 Dec 6 17:20 nagios.cmd (after chmod'ing with Terry Inzauro's suggestion - see below, default group perms are rw-) /etc/group (relevant bits) ---------------- apache:x:48: nobody:x:99: nagios:x:500: nagiocmd:x:501:nagios,nobody,apache ps -ef | grep httpd output ------------------------- root 10311 1 0 Dec06 ? 00:00:02 /usr/sbin/httpd apache 14958 10311 0 14:28 ? 00:00:00 /usr/sbin/httpd apache 14959 10311 0 14:28 ? 00:00:00 /usr/sbin/httpd apache 14960 10311 0 14:28 ? 00:00:00 /usr/sbin/httpd apache 14961 10311 0 14:28 ? 00:00:00 /usr/sbin/httpd apache 14962 10311 0 14:28 ? 00:00:00 /usr/sbin/httpd apache 14963 10311 0 14:28 ? 00:00:00 /usr/sbin/httpd apache 14964 10311 0 14:28 ? 00:00:00 /usr/sbin/httpd apache 14965 10311 0 14:28 ? 00:00:00 /usr/sbin/httpd apache 15022 10311 0 14:28 ? 00:00:00 /usr/sbin/httpd root 16310 15956 0 14:34 pts/3 00:00:00 grep httpd ps -ef | grep nagios --------------------------- nagios 8504 1 0 Dec06 ? 00:03:52 /usr/local/nagios/bin/nagios -d (lots, but all the same) I'm not wrong in thinking that the httpd is running under the APACHE user, am I? Thanks Chris -----Original Message----- From: Terry Inzauro [mailto:tinzauro at axiomintegration.com] Sent: 06 December 2002 19:27 To: Chris Losch Subject: RE: [Nagios-users] RE: Permissions Error I think the nagios user,the apache user need to have write access rwx access to that file. make sure that each of the respective users have the necessary perms. or just add the nagios user to the group owner in the /etc/group file. worth a try? Terry Inzauro On Fri, 2002-12-06 at 11:31, Chris Losch wrote: I'm afraid its a case of been there, done that... but just in case I did something wrong, I tried again... Stopped Nagios and $INSTALLPATH/var/rw/nagios.cmd disappeared (as it should - see I even tried reading the manual :-D ) Used the /etc/rc.d/init/nagios script to start it, $INSTALLPATH/var/rw/nagios.cmd re-appears with the default permissions prw-rw---- 1 nagios nagiocmd 0 Dec 6 17:20 nagios.cmd CHMOD'd 777 it, still receiving the same error when attempting the command. Have even tried restarting the httpd :( which runs under the 'apache' user, which is part of the nagiocmd group. Incidently the parent (rw) directory has the permissions, drwxrwS--- 2 nagios nagiocmd 4096 Dec 6 17:20 rw Maybe someone will spot where im going wrong. Anyway, have a good weekend all. Chris -----Original Message----- From: Terry Inzauro [mailto:tinzauro at axiomintegration.com] Sent: 06 December 2002 15:12 To: Chris Losch Cc: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] RE: Permissions Error I cam across the same error once. If there was a nagios process running, kill it. If there is a $INSTALLPATH/var/rw/nagios.cmd file, delete it. Next, start nagios with the /etc/rc.d/init/nagios script. Then try the request again. If does the same thing. try chmodddddding the $INSTALLPATH/var/rw/nagios.cmd file for something like 777, then work it backwards from there. Terry Inzauro On Fri, 2002-12-06 at 06:41, Chris Losch wrote: FYI, I have just built up a clean install of Redhat 8, and Nagios1.0 I have got Authentication setup and working ok (I can view cgi's), however I am unable to send commands from the Web Pages to Nagios (Scheduling Checks etc.) I am recieving the error Error: Could not stat() command file '/usr/local/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. :( If possible I would suggest you backup the config CGI's (hosts services etc) and start over, it seems to be easier than troubleshooting. Chris... yup another Chris. Just for reference I've included the bits below so you can cross reference your config files. cgi.cfg ------- authorized_for_system_information=xxxx,nagiosadmin, authorized_for_system_commands=xxxx,nagiosadmin, authorized_for_configuration_information=xxxx,nagiosadmin, authorized_for_all_hosts=xxxx,nagiosadmin, authorized_for_all_host_commands=xxxx,nagiosadmin, authorized_for_all_services=xxxx,nagiosadmin, authorized_for_all_service_commands=xxxx,nagiosadmin, .htaccess (in /usr/local/nagios/share/ and /usr/local/nagios/sbin/) --------- AuthName "Nagios Access" AuthType Basic AuthUserFile /usr/local/nagios/etc/htpasswd.users /usr/local/nagios/etc/htpasswd.users ------------------------------------ nagiosadmin: /etc/httpd/conf/httpd.conf (added the following, otherwise, no changes from default) -------------------------- ScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/ AllowOverride AuthConfig Options ExecCGI Order allow,deny Allow from all Alias /nagios/ /usr/local/nagios/share/ Options None AllowOverride AuthConfig Order allow,deny Allow from all /etc/local/nagios/etc/contacts.cfg ---------------------------------- define contact { contact_name nagiosadmin alias Nagios Admin service_notification_period 24x7 host_notification_period 24x7 service_notification_options w,u,c,r host_notification_options d,u,r service_notification_commands notify-by-email,notify-by-epager host_notification_commands host-notify-by-email,host-notify-by-epager email nagios-admin at localhost.localdomain pager pagenagios-admin at localhost.localdomain } /etc/local/nagios/etc/nagios.cfg --------------------------------- # # nagios.cfg - Config file for Nagios (www.nagios.org) # # Written by Nagat. Manually editing this file is a bad idea since Nagat will # overwrite it. Delete the nagatobj.dat file in the nagios/etc directory to # reread the Nagios configuration. # log_file=/usr/local/nagios/var/nagios.log cfg_file=/usr/local/nagios/etc/checkcommands.cfg cfg_file=/usr/local/nagios/etc/misccommands.cfg cfg_file=/usr/local/nagios/etc/contactgroups.cfg cfg_file=/usr/local/nagios/etc/contacts.cfg cfg_file=/usr/local/nagios/etc/dependencies.cfg cfg_file=/usr/local/nagios/etc/escalations.cfg cfg_file=/usr/local/nagios/etc/hostgroups.cfg cfg_file=/usr/local/nagios/etc/hosts.cfg cfg_file=/usr/local/nagios/etc/services.cfg cfg_file=/usr/local/nagios/etc/timeperiods.cfg resource_file=/usr/local/nagios/etc/resource.cfg status_file=/usr/local/nagios/var/status.log nagios_user=nagios nagios_group=nagios check_external_commands=1 command_check_interval=-1 command_file=/usr/local/nagios/var/rw/nagios.cmd comment_file=/usr/local/nagios/var/comment.log downtime_file=/usr/local/nagios/var/downtime.log lock_file=/usr/local/nagios/var/nagios.lock temp_file=/usr/local/nagios/var/nagios.tmp log_rotation_method=d log_archive_path=/usr/local/nagios/var/archives use_syslog=1 log_notifications=1 log_service_retries=1 log_host_retries=1 log_event_handlers=1 log_initial_states=0 log_external_commands=1 log_passive_service_checks=1 inter_check_delay_method=s service_interleave_factor=s max_concurrent_checks=0 service_reaper_frequency=10 sleep_time=1 service_check_timeout=60 host_check_timeout=30 event_handler_timeout=30 notification_timeout=30 ocsp_timeout=5 perfdata_timeout=5 retain_state_information=1 state_retention_file=/usr/local/nagios/var/status.sav retention_update_interval=60 use_retained_program_state=0 interval_length=60 use_agressive_host_checking=0 execute_service_checks=1 accept_passive_service_checks=1 enable_notifications=1 enable_event_handlers=1 process_performance_data=0 obsess_over_services=0 check_for_orphaned_services=0 check_service_freshness=1 freshness_check_interval=60 aggregate_status_updates=1 status_update_interval=15 enable_flap_detection=0 low_service_flap_threshold=5.0 high_service_flap_threshold=20.0 low_host_flap_threshold=5.0 high_host_flap_threshold=20.0 date_format=euro illegal_object_name_chars=`~!$%^&*|'"<>?,()= illegal_macro_output_chars=`~$&|'"<> admin_email=nagios admin_pager=pagenagios -----Original Message----- From: Chris Fairbanks [ mailto:ChrisF at winterlink.net] Sent: 06 December 2002 07:22 To: Chris Fairbanks; wrnash; Potter, G M (Greg); Nagios-users (E-mail) Cc: Robertson, Brown Subject: RE: [Nagios-users] RE: Permissions Error Another interesting tibit, I tired disabling use_authentication and setting up a default user, but I still get the same issues. Thanks Chris -----Original Message----- From: Chris Fairbanks Sent: Thursday, December 05, 2002 10:47 PM To: wrnash; Potter, G M (Greg); Nagios-users (E-mail) Cc: Robertson, Brown Subject: RE: [Nagios-users] RE: Permissions Error My httpasswd.users file and everything is setup totally correctly and use_authentication=1 is set. I have also tried setting all the authorized_for's = * but to no avail. From the sounds of it, it looks like this might be an issue with RH8.0 or Apache 2.0.40 that ships default with RH8.0. Is there anyone on this list that has Nagios working on RH8.0? Thanks, Chris ********************************************************************** Important: This e-mail is intended for the above named person only and should be treated as confidential. If this has come to you in error you should take no action based on it, nor should you copy or show it to anyone; please telephone us immediately. ********************************************************************** Terry Inzauro Systems Engineer Email: tinzauro at axiomintegration.com Phone: 402.345.5500 Fax: 402.345.5501 US Mail: Axiom Integration, Inc. One Owen Pkwy 2200 Abbott Drive Carter Lake, IA 51510 Terry Inzauro Systems Engineer Email: tinzauro at axiomintegration.com Phone: 402.345.5500 Fax: 402.345.5501 US Mail: Axiom Integration, Inc. One Owen Pkwy 2200 Abbott Drive Carter Lake, IA 51510 -------------- next part -------------- An HTML attachment was scrubbed... URL: From John at tradingtechnologies.com Mon Dec 9 16:17:51 2002 From: John at tradingtechnologies.com (John Nykaza (TT)) Date: Mon, 9 Dec 2002 09:17:51 -0600 Subject: plugin timeout Message-ID: <7C5D35FF99E3154280AFC226C88D70DF3D18A5@exchange> hello, after installing nagios 1.0 and plugins 1.3.0 beta 2, i am getting the error "CRITICAL: Plugin timed out after 10 seconds" about 3 out of every 50 checks for the check_ping plugin. I'm thinking this is the nagios server, but the CPU load is less than 1%. i have the services entry set to max_check_attempts 3 normal_check_attempts 3 any help would be greatly appreciated. regards john ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From gjfrater at bechtel.com Mon Dec 9 16:19:27 2002 From: gjfrater at bechtel.com (Frater, Greg J) Date: Mon, 9 Dec 2002 07:19:27 -0800 Subject: Distributed SNMP monitoring. Message-ID: Just a thought...Can rrd write to a database like mysql, I thought it could. If so what would it take to code Nagios or a wrapper of some sort like the urlize check to write the check performance data to a database backend then use apan and or rrd to create the graphs for viewing the data. This may be a off the wall idea, it sounded good this morning. -----Original Message----- From: Stanley Hopcroft [mailto:Stanley.Hopcroft at IPAustralia.Gov.AU] Sent: Sunday, December 08, 2002 5:09 PM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Distributed SNMP monitoring. Dear Sir, FWIW, there seems to be no serious competitor to RRD for saving time series data. On Sun, Dec 08, 2002 at 04:46:06AM -0500, Furnish, Trever G wrote: > Well, actually, if by "fully integrated" you mean "as integrated as anyone > could ever want", then no, it's not fully integrated. :-) No offense - it > looks like a very nice contribution - but I for one would greatly prefer not > to have to spawn off rrdtool to open and close its files again every time > nagios wants to save data. It'd be nice if whatever performance archiving > mechanism gets focused on is one where the long-running nagios process > communicates directly with a long-running, all files held open rrdtool > process or a database. > > It looks like (ok, have I given away the fact yet that I haven't actually > set up apan yet? ;-) ) APAN works by getting called every time you call a > command you want to record performance info for, then returning the result > to Nagios and kicking off an rrdtool process to archive it. Although the > apan and rrdtool executables will probably be in OS read cache, that's still > a lot of additional overhead. > > Comments intended constructively, corrections appreciated... > I am not sure if I follow you, but it is not necessary to 'spawn off rrdtool' since rrdtool has a public API and shared libraries (in at least C and Perl) that implement the API. The RRD fetch, update, create functions can be called directly from Nagios in the same way that it can call any other function that is properly linked (such as the Perl functions if Nagios is built with embedded Perl support) with it. I don't see this as 'a lot of additional overhead', especially with Dynamic loading. Projects that use this approach include the new RRD plugin for Ntop (Again FWIW, Ntop has replaced DB interfaces to mySQL and friends by RRD). RRD tool buys an extraordinary amount of power in . its data manipulation functions . it offers (development at this stage) Holt-Winters time series prediction (from Jake Brutlag of Microsoft). This is an RRA that predicts the next values of data like interface octets that vary periodically, based on historical values of data and variance. It is good way to automatically detect if traffic levels have altered significantly, far more sophisticated than simply setting thresholds. > -t. > Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From JKnash at bnyclearing.com Mon Dec 9 16:26:03 2002 From: JKnash at bnyclearing.com (JKnash at bnyclearing.com) Date: Mon, 9 Dec 2002 07:26:03 -0800 Subject: segfault after adding parents Message-ID: I was setting up my network map, and after adding a bunch of parents, I got the following when restarting Nagios. Any ideas? [root at server etc]# /etc/rc.d/init.d/nagios start Starting network monitor: nagios /etc/rc.d/init.d/nagios: line 167: 16999 Segmentation fault $NagiosBin -d $NagiosCfg ps: error: List of process IDs must follow -p. usage: ps -[Unix98 options] ps [BSD-style options] ps --[GNU-style long options] ps --help for a command summary Justin Knash Network Engineer BNY Clearing The information in this e-mail, and any attachment therein, is confidential and for use by the addressee only. If you are not the intended recipient, please return the e-mail to the sender and delete it from your computer. Although BNY Clearing Services LLC attempts to sweep e-mail and attachments for viruses, it does not guarantee that either are virus-free and accepts no liability for any damage sustained as a result of viruses. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From GPotter at MarathonOil.com Mon Dec 9 16:20:10 2002 From: GPotter at MarathonOil.com (Potter, G M (Greg)) Date: Mon, 9 Dec 2002 09:20:10 -0600 Subject: Permissions Error (Could not stat() command file ) Message-ID: What is apache's primary group in the /etc/passwd file. Just because it is in the group file doesn't mean that is it's current group (I think). I believe the process has to do a newgrp to have it's effective group changed to group nagioscmd. It is worth a shot. Greg -----Original Message----- From: Chris Losch [mailto:Chris.Losch at newham.gov.uk] Sent: Monday, December 09, 2002 8:44 AM To: 'Terry Inzauro' Cc: 'nagios-users at lists.sourceforge.net' Subject: [Nagios-users] RE: Permissions Error (Could not stat() command file ) Change of Subject line, things were getting confused.... ---- It was worth a try, still didnt work though *sigh* Just in case I'm missing something. ls -la /usr/local/nagios/var/rw ----------------------------------------- total 8 drwxrwS--- 2 nagios nagiocmd 4096 Dec 6 17:20 . drwxrwxr-x 4 nagios nagios 4096 Dec 9 14:37 .. prw-rwx--- 1 nagios nagiocmd 0 Dec 6 17:20 nagios.cmd (after chmod'ing with Terry Inzauro's suggestion - see below, default group perms are rw-) /etc/group (relevant bits) ---------------- apache:x:48: nobody:x:99: nagios:x:500: nagiocmd:x:501:nagios,nobody,apache ps -ef | grep httpd output ------------------------- root 10311 1 0 Dec06 ? 00:00:02 /usr/sbin/httpd apache 14958 10311 0 14:28 ? 00:00:00 /usr/sbin/httpd apache 14959 10311 0 14:28 ? 00:00:00 /usr/sbin/httpd apache 14960 10311 0 14:28 ? 00:00:00 /usr/sbin/httpd apache 14961 10311 0 14:28 ? 00:00:00 /usr/sbin/httpd apache 14962 10311 0 14:28 ? 00:00:00 /usr/sbin/httpd apache 14963 10311 0 14:28 ? 00:00:00 /usr/sbin/httpd apache 14964 10311 0 14:28 ? 00:00:00 /usr/sbin/httpd apache 14965 10311 0 14:28 ? 00:00:00 /usr/sbin/httpd apache 15022 10311 0 14:28 ? 00:00:00 /usr/sbin/httpd root 16310 15956 0 14:34 pts/3 00:00:00 grep httpd ps -ef | grep nagios --------------------------- nagios 8504 1 0 Dec06 ? 00:03:52 /usr/local/nagios/bin/nagios -d (lots, but all the same) I'm not wrong in thinking that the httpd is running under the APACHE user, am I? Thanks Chris -----Original Message----- From: Terry Inzauro [mailto:tinzauro at axiomintegration.com] Sent: 06 December 2002 19:27 To: Chris Losch Subject: RE: [Nagios-users] RE: Permissions Error I think the nagios user,the apache user need to have write access rwx access to that file. make sure that each of the respective users have the necessary perms. or just add the nagios user to the group owner in the /etc/group file. worth a try? Terry Inzauro On Fri, 2002-12-06 at 11:31, Chris Losch wrote: I'm afraid its a case of been there, done that... but just in case I did something wrong, I tried again... Stopped Nagios and $INSTALLPATH/var/rw/nagios.cmd disappeared (as it should - see I even tried reading the manual :-D ) Used the /etc/rc.d/init/nagios script to start it, $INSTALLPATH/var/rw/nagios.cmd re-appears with the default permissions prw-rw---- 1 nagios nagiocmd 0 Dec 6 17:20 nagios.cmd CHMOD'd 777 it, still receiving the same error when attempting the command. Have even tried restarting the httpd :( which runs under the 'apache' user, which is part of the nagiocmd group. Incidently the parent (rw) directory has the permissions, drwxrwS--- 2 nagios nagiocmd 4096 Dec 6 17:20 rw Maybe someone will spot where im going wrong. Anyway, have a good weekend all. Chris -----Original Message----- From: Terry Inzauro [mailto:tinzauro at axiomintegration.com] Sent: 06 December 2002 15:12 To: Chris Losch Cc: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] RE: Permissions Error I cam across the same error once. If there was a nagios process running, kill it. If there is a $INSTALLPATH/var/rw/nagios.cmd file, delete it. Next, start nagios with the /etc/rc.d/init/nagios script. Then try the request again. If does the same thing. try chmodddddding the $INSTALLPATH/var/rw/nagios.cmd file for something like 777, then work it backwards from there. Terry Inzauro On Fri, 2002-12-06 at 06:41, Chris Losch wrote: FYI, I have just built up a clean install of Redhat 8, and Nagios1.0 I have got Authentication setup and working ok (I can view cgi's), however I am unable to send commands from the Web Pages to Nagios (Scheduling Checks etc.) I am recieving the error Error: Could not stat() command file '/usr/local/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. :( If possible I would suggest you backup the config CGI's (hosts services etc) and start over, it seems to be easier than troubleshooting. Chris... yup another Chris. Just for reference I've included the bits below so you can cross reference your config files. cgi.cfg ------- authorized_for_system_information=xxxx,nagiosadmin, authorized_for_system_commands=xxxx,nagiosadmin, authorized_for_configuration_information=xxxx,nagiosadmin, authorized_for_all_hosts=xxxx,nagiosadmin, authorized_for_all_host_commands=xxxx,nagiosadmin, authorized_for_all_services=xxxx,nagiosadmin, authorized_for_all_service_commands=xxxx,nagiosadmin, .htaccess (in /usr/local/nagios/share/ and /usr/local/nagios/sbin/) --------- AuthName "Nagios Access" AuthType Basic AuthUserFile /usr/local/nagios/etc/htpasswd.users /usr/local/nagios/etc/htpasswd.users ------------------------------------ nagiosadmin: /etc/httpd/conf/httpd.conf (added the following, otherwise, no changes from default) -------------------------- ScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/ AllowOverride AuthConfig Options ExecCGI Order allow,deny Allow from all Alias /nagios/ /usr/local/nagios/share/ Options None AllowOverride AuthConfig Order allow,deny Allow from all /etc/local/nagios/etc/contacts.cfg ---------------------------------- define contact { contact_name nagiosadmin alias Nagios Admin service_notification_period 24x7 host_notification_period 24x7 service_notification_options w,u,c,r host_notification_options d,u,r service_notification_commands notify-by-email,notify-by-epager host_notification_commands host-notify-by-email,host-notify-by-epager email nagios-admin at localhost.localdomain pager pagenagios-admin at localhost.localdomain } /etc/local/nagios/etc/nagios.cfg --------------------------------- # # nagios.cfg - Config file for Nagios (www.nagios.org) # # Written by Nagat. Manually editing this file is a bad idea since Nagat will # overwrite it. Delete the nagatobj.dat file in the nagios/etc directory to # reread the Nagios configuration. # log_file=/usr/local/nagios/var/nagios.log cfg_file=/usr/local/nagios/etc/checkcommands.cfg cfg_file=/usr/local/nagios/etc/misccommands.cfg cfg_file=/usr/local/nagios/etc/contactgroups.cfg cfg_file=/usr/local/nagios/etc/contacts.cfg cfg_file=/usr/local/nagios/etc/dependencies.cfg cfg_file=/usr/local/nagios/etc/escalations.cfg cfg_file=/usr/local/nagios/etc/hostgroups.cfg cfg_file=/usr/local/nagios/etc/hosts.cfg cfg_file=/usr/local/nagios/etc/services.cfg cfg_file=/usr/local/nagios/etc/timeperiods.cfg resource_file=/usr/local/nagios/etc/resource.cfg status_file=/usr/local/nagios/var/status.log nagios_user=nagios nagios_group=nagios check_external_commands=1 command_check_interval=-1 command_file=/usr/local/nagios/var/rw/nagios.cmd comment_file=/usr/local/nagios/var/comment.log downtime_file=/usr/local/nagios/var/downtime.log lock_file=/usr/local/nagios/var/nagios.lock temp_file=/usr/local/nagios/var/nagios.tmp log_rotation_method=d log_archive_path=/usr/local/nagios/var/archives use_syslog=1 log_notifications=1 log_service_retries=1 log_host_retries=1 log_event_handlers=1 log_initial_states=0 log_external_commands=1 log_passive_service_checks=1 inter_check_delay_method=s service_interleave_factor=s max_concurrent_checks=0 service_reaper_frequency=10 sleep_time=1 service_check_timeout=60 host_check_timeout=30 event_handler_timeout=30 notification_timeout=30 ocsp_timeout=5 perfdata_timeout=5 retain_state_information=1 state_retention_file=/usr/local/nagios/var/status.sav retention_update_interval=60 use_retained_program_state=0 interval_length=60 use_agressive_host_checking=0 execute_service_checks=1 accept_passive_service_checks=1 enable_notifications=1 enable_event_handlers=1 process_performance_data=0 obsess_over_services=0 check_for_orphaned_services=0 check_service_freshness=1 freshness_check_interval=60 aggregate_status_updates=1 status_update_interval=15 enable_flap_detection=0 low_service_flap_threshold=5.0 high_service_flap_threshold=20.0 low_host_flap_threshold=5.0 high_host_flap_threshold=20.0 date_format=euro illegal_object_name_chars=`~!$%^&*|'"<>?,()= illegal_macro_output_chars=`~$&|'"<> admin_email=nagios admin_pager=pagenagios -----Original Message----- From: Chris Fairbanks [ mailto:ChrisF at winterlink.net] Sent: 06 December 2002 07:22 To: Chris Fairbanks; wrnash; Potter, G M (Greg); Nagios-users (E-mail) Cc: Robertson, Brown Subject: RE: [Nagios-users] RE: Permissions Error Another interesting tibit, I tired disabling use_authentication and setting up a default user, but I still get the same issues. Thanks Chris -----Original Message----- From: Chris Fairbanks Sent: Thursday, December 05, 2002 10:47 PM To: wrnash; Potter, G M (Greg); Nagios-users (E-mail) Cc: Robertson, Brown Subject: RE: [Nagios-users] RE: Permissions Error My httpasswd.users file and everything is setup totally correctly and use_authentication=1 is set. I have also tried setting all the authorized_for's = * but to no avail. From the sounds of it, it looks like this might be an issue with RH8.0 or Apache 2.0.40 that ships default with RH8.0. Is there anyone on this list that has Nagios working on RH8.0? Thanks, Chris ********************************************************************** Important: This e-mail is intended for the above named person only and should be treated as confidential. If this has come to you in error you should take no action based on it, nor should you copy or show it to anyone; please telephone us immediately. ********************************************************************** Terry Inzauro Systems Engineer Email: tinzauro at axiomintegration.com Phone: 402.345.5500 Fax: 402.345.5501 US Mail: Axiom Integration, Inc. One Owen Pkwy 2200 Abbott Drive Carter Lake, IA 51510 Terry Inzauro Systems Engineer Email: tinzauro at axiomintegration.com Phone: 402.345.5500 Fax: 402.345.5501 US Mail: Axiom Integration, Inc. One Owen Pkwy 2200 Abbott Drive Carter Lake, IA 51510 -------------- next part -------------- An HTML attachment was scrubbed... URL: From emann at questinc.org Mon Dec 9 16:29:04 2002 From: emann at questinc.org (Evan Mann) Date: Mon, 9 Dec 2002 10:29:04 -0500 Subject: plugin timeout Message-ID: Increase the plugin timeout on your service using the -t flag I set my check_ping to -t 20 for a 20 second timeout since some of my connections have varying latency issues and I was getting a lot of false responses. You are probably having the same issue. -----Original Message----- From: John Nykaza (TT) [mailto:John at tradingtechnologies.com] Sent: Monday, December 09, 2002 10:18 AM To: 'nagios-users at lists.sourceforge.net' Subject: [Nagios-users] plugin timeout hello, after installing nagios 1.0 and plugins 1.3.0 beta 2, i am getting the error "CRITICAL: Plugin timed out after 10 seconds" about 3 out of every 50 checks for the check_ping plugin. I'm thinking this is the nagios server, but the CPU load is less than 1%. i have the services entry set to max_check_attempts 3 normal_check_attempts 3 any help would be greatly appreciated. regards john ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From gjfrater at bechtel.com Mon Dec 9 16:28:13 2002 From: gjfrater at bechtel.com (Frater, Greg J) Date: Mon, 9 Dec 2002 07:28:13 -0800 Subject: Schedule downtime Message-ID: When scheduling a host to be down the services on that host and any child hosts/services checks will also be suspended (someone speak up I am in error on this). -----Original Message----- From: Kraus, Markus [mailto:Markus.Kraus.hp at sysde.eads.net] Sent: Monday, December 09, 2002 4:25 AM To: 'nagios-users at lists.sourceforge.net' Subject: [Nagios-users] Schedule downtime Is it possible to schedule downtime for a host and its services at once like it is possible to disable notifications for hosts and services at once e.g.? -------------- next part -------------- An HTML attachment was scrubbed... URL: From jlyons30 at yahoo.com Mon Dec 9 16:27:40 2002 From: jlyons30 at yahoo.com (Jon Lyons) Date: Mon, 9 Dec 2002 07:27:40 -0800 (PST) Subject: Permissions Error (Could not stat() command file ) In-Reply-To: References: Message-ID: <20021209152740.2645.qmail@web21509.mail.yahoo.com> Are you sure apache is running as "apache" and not "www"? Chris Losch wrote:Change of Subject line, things were getting confused....---- It was worth a try, still didnt work though *sigh* Just in case I'm missing something. ls -la /usr/local/nagios/var/rw-----------------------------------------total 8 drwxrwS--- 2 nagios nagiocmd 4096 Dec 6 17:20 . drwxrwxr-x 4 nagios nagios 4096 Dec 9 14:37 .. prw-rwx--- 1 nagios nagiocmd 0 Dec 6 17:20 nagios.cmd (after chmod'ing with Terry Inzauro's suggestion - see below, default group perms are rw-) /etc/group (relevant bits)----------------apache:x:48:nobody:x:99:nagios:x:500: nagiocmd:x:501:nagios,nobody,apache ps -ef | grep httpd output-------------------------root 10311 1 0 Dec06 ? 00:00:02 /usr/sbin/httpd apache 14958 10311 0 14:28 ? 00:00:00 /usr/sbin/httpd apache 14959 10311 0 14:28 ? 00:00:00 /usr/sbin/httpd apache 14960 10311 0 14:28 ? 00:00:00 /usr/sbin/httpd apache 14961 10311 0 14:28 ? 00:00:00 /usr/sbin/httpd apache 14962 10311 0 14:28 ? 00:00:00 /usr/sbin/httpd apache 14963 10311 0 14:28 ? 00:00:00 /usr/sbin/httpd apache 14964 10311 0 14:28 ? 00:00:00 /usr/sbin/httpd apache 14965 10311 0 14:28 ? 00:00:00 /usr/sbin/httpd apache 15022 10311 0 14:28 ? 00:00:00 /usr/sbin/httpd root 16310 15956 0 14:34 pts/3 00:00:00 grep httpd ps -ef | grep nagios---------------------------nagios 8504 1 0 Dec06 ? 00:03:52 /usr/local/nagios/bin/nagios -d(lots, but all the same) I'm not wrong in thinking that the httpd is running under the APACHE user, am I? ThanksChris -----Original Message----- From: Terry Inzauro [mailto:tinzauro at axiomintegration.com] Sent: 06 December 2002 19:27 To: Chris Losch Subject: RE: [Nagios-users] RE: Permissions Error I think the nagios user,the apache user need to have write access rwx access to that file. make sure that each of the respective users have the necessary perms. or just add the nagios user to the group owner in the /etc/group file. worth a try? Terry Inzauro On Fri, 2002-12-06 at 11:31, Chris Losch wrote: I'm afraid its a case of been there, done that... but just in case I did something wrong, I tried again... Stopped Nagios and $INSTALLPATH/var/rw/nagios.cmd disappeared (as it should - see I even tried reading the manual :-D ) Used the /etc/rc.d/init/nagios script to start it, $INSTALLPATH/var/rw/nagios.cmd re-appears with the default permissions prw-rw---- 1 nagios nagiocmd 0 Dec 6 17:20 nagios.cmd CHMOD'd 777 it, still receiving the same error when attempting the command. Have even tried restarting the httpd :( which runs under the 'apache' user, which is part of the nagiocmd group. Incidently the parent (rw) directory has the permissions, drwxrwS--- 2 nagios nagiocmd 4096 Dec 6 17:20 rw Maybe someone will spot where im going wrong. Anyway, have a good weekend all. Chris -----Original Message----- From: Terry Inzauro [mailto:tinzauro at axiomintegration.com] Sent: 06 December 2002 15:12 To: Chris Losch Cc: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] RE: Permissions Error I cam across the same error once. If there was a nagios process running, kill it. If there is a $INSTALLPATH/var/rw/nagios.cmd file, delete it. Next, start nagios with the /etc/rc.d/init/nagios script. Then try the request again. If does the same thing. try chmodddddding the $INSTALLPATH/var/rw/nagios.cmd file for something like 777, then work it backwards from there. Terry Inzauro On Fri, 2002-12-06 at 06:41, Chris Losch wrote: FYI, I have just built up a clean install of Redhat 8, and Nagios1.0 I have got Authentication setup and working ok (I can view cgi's), however I am unable to send commands from the Web Pages to Nagios (Scheduling Checks etc.) I am recieving the error Error: Could not stat() command file '/usr/local/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. :( If possible I would suggest you backup the config CGI's (hosts services etc) and start over, it seems to be easier than troubleshooting. Chris... yup another Chris. Just for reference I've included the bits below so you can cross reference your config files. cgi.cfg ------- authorized_for_system_information=xxxx,nagiosadmin, authorized_for_system_commands=xxxx,nagiosadmin, authorized_for_configuration_information=xxxx,nagiosadmin, authorized_for_all_hosts=xxxx,nagiosadmin, authorized_for_all_host_commands=xxxx,nagiosadmin, authorized_for_all_services=xxxx,nagiosadmin, authorized_for_all_service_commands=xxxx,nagiosadmin, .htaccess (in /usr/local/nagios/share/ and /usr/local/nagios/sbin/) --------- AuthName "Nagios Access" AuthType Basic AuthUserFile /usr/local/nagios/etc/htpasswd.users /usr/local/nagios/etc/htpasswd.users ------------------------------------ nagiosadmin: /etc/httpd/conf/httpd.conf (added the following, otherwise, no changes from default) -------------------------- ScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/ AllowOverride AuthConfig Options ExecCGI Order allow,deny Allow from all Alias /nagios/ /usr/local/nagios/share/ Options None AllowOverride AuthConfig Order allow,deny Allow from all /etc/local/nagios/etc/contacts.cfg ---------------------------------- define contact { contact_name nagiosadmin alias Nagios Admin service_notification_period 24x7 host_notification_period 24x7 service_notification_options w,u,c,r host_notification_options d,u,r service_notification_commands notify-by-email,notify-by-epager host_notification_commands host-notify-by-email,host-notify-by-epager email nagios-admin at localhost.localdomain pager pagenagios-admin at localhost.localdomain } /etc/local/nagios/etc/nagios.cfg --------------------------------- # # nagios.cfg - Config file for Nagios (www.nagios.org) # # Written by Nagat. Manually editing this file is a bad idea since Nagat will # overwrite it. Delete the nagatobj.dat file in the nagios/etc directory to # reread the Nagios configuration. # log_file=/usr/local/nagios/var/nagios.log cfg_file=/usr/local/nagios/etc/checkcommands.cfg cfg_file=/usr/local/nagios/etc/misccommands.cfg cfg_file=/usr/local/nagios/etc/contactgroups.cfg cfg_file=/usr/local/nagios/etc/contacts.cfg cfg_file=/usr/local/nagios/etc/dependencies.cfg cfg_file=/usr/local/nagios/etc/escalations.cfg cfg_file=/usr/local/nagios/etc/hostgroups.cfg cfg_file=/usr/local/nagios/etc/hosts.cfg cfg_file=/usr/local/nagios/etc/services.cfg cfg_file=/usr/local/nagios/etc/timeperiods.cfg resource_file=/usr/local/nagios/etc/resource.cfg status_file=/usr/local/nagios/var/status.log nagios_user=nagios nagios_group=nagios check_external_commands=1 command_check_interval=-1 command_file=/usr/local/nagios/var/rw/nagios.cmd comment_file=/usr/local/nagios/var/comment.log downtime_file=/usr/local/nagios/var/downtime.log lock_file=/usr/local/nagios/var/nagios.lock temp_file=/usr/local/nagios/var/nagios.tmp log_rotation_method=d log_archive_path=/usr/local/nagios/var/archives use_syslog=1 log_notifications=1 log_service_retries=1 log_host_retries=1 log_event_handlers=1 log_initial_states=0 log_external_commands=1 log_passive_service_checks=1 inter_check_delay_method=s service_interleave_factor=s max_concurrent_checks=0 service_reaper_frequency=10 sleep_time=1 service_check_timeout=60 host_check_timeout=30 event_handler_timeout=30 notification_timeout=30 ocsp_timeout=5 perfdata_timeout=5 retain_state_information=1 state_retention_file=/usr/local/nagios/var/status.sav retention_update_interval=60 use_retained_program_state=0 interval_length=60 use_agressive_host_checking=0 execute_service_checks=1 accept_passive_service_checks=1 enable_notifications=1 enable_event_handlers=1 process_performance_data=0 obsess_over_services=0 check_for_orphaned_services=0 check_service_freshness=1 freshness_check_interval=60 aggregate_status_updates=1 status_update_interval=15 enable_flap_detection=0 low_service_flap_threshold=5.0 high_service_flap_threshold=20.0 low_host_flap_threshold=5.0 high_host_flap_threshold=20.0 date_format=euro illegal_object_name_chars=`~!$%^&*|'"<>?,()= illegal_macro_output_chars=`~$&|'"<> admin_email=nagios admin_pager=pagenagios -----Original Message----- From: Chris Fairbanks [mailto:ChrisF at winterlink.net] Sent: 06 December 2002 07:22 To: Chris Fairbanks; wrnash; Potter, G M (Greg); Nagios-users (E-mail) Cc: Robertson, Brown Subject: RE: [Nagios-users] RE: Permissions Error Another interesting tibit, I tired disabling use_authentication and setting up a default user, but I still get the same issues. Thanks Chris -----Original Message----- From: Chris Fairbanks Sent: Thursday, December 05, 2002 10:47 PM To: wrnash; Potter, G M (Greg); Nagios-users (E-mail) Cc: Robertson, Brown Subject: RE: [Nagios-users] RE: Permissions Error My httpasswd.users file and everything is setup totally correctly and use_authentication=1 is set. I have also tried setting all the authorized_for's = * but to no avail. From the sounds of it, it looks like this might be an issue with RH8.0 or Apache 2.0.40 that ships default with RH8.0. Is there anyone on this list that has Nagios working on RH8.0? Thanks, Chris ********************************************************************** Important: This e-mail is intended for the above named person only and should be treated as confidential. If this has come to you in error you should take no action based on it, nor should you copy or show it to anyone; please telephone us immediately. ********************************************************************** Terry Inzauro Systems Engineer Email: tinzauro at axiomintegration.comPhone: 402.345.5500Fax: 402.345.5501US Mail: Axiom Integration, Inc. One Owen Pkwy 2200 Abbott Drive Carter Lake, IA 51510 Terry Inzauro Systems Engineer Email: tinzauro at axiomintegration.comPhone: 402.345.5500Fax: 402.345.5501US Mail: Axiom Integration, Inc. One Owen Pkwy 2200 Abbott Drive Carter Lake, IA 51510 --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From jlyons30 at yahoo.com Mon Dec 9 16:27:58 2002 From: jlyons30 at yahoo.com (Jon Lyons) Date: Mon, 9 Dec 2002 07:27:58 -0800 (PST) Subject: Permissions Error (Could not stat() command file ) In-Reply-To: References: Message-ID: <20021209152758.1121.qmail@web21507.mail.yahoo.com> Are you sure apache is running as "apache" and not "www"? Chris Losch wrote:Change of Subject line, things were getting confused....---- It was worth a try, still didnt work though *sigh* Just in case I'm missing something. ls -la /usr/local/nagios/var/rw-----------------------------------------total 8 drwxrwS--- 2 nagios nagiocmd 4096 Dec 6 17:20 . drwxrwxr-x 4 nagios nagios 4096 Dec 9 14:37 .. prw-rwx--- 1 nagios nagiocmd 0 Dec 6 17:20 nagios.cmd (after chmod'ing with Terry Inzauro's suggestion - see below, default group perms are rw-) /etc/group (relevant bits)----------------apache:x:48:nobody:x:99:nagios:x:500: nagiocmd:x:501:nagios,nobody,apache ps -ef | grep httpd output-------------------------root 10311 1 0 Dec06 ? 00:00:02 /usr/sbin/httpd apache 14958 10311 0 14:28 ? 00:00:00 /usr/sbin/httpd apache 14959 10311 0 14:28 ? 00:00:00 /usr/sbin/httpd apache 14960 10311 0 14:28 ? 00:00:00 /usr/sbin/httpd apache 14961 10311 0 14:28 ? 00:00:00 /usr/sbin/httpd apache 14962 10311 0 14:28 ? 00:00:00 /usr/sbin/httpd apache 14963 10311 0 14:28 ? 00:00:00 /usr/sbin/httpd apache 14964 10311 0 14:28 ? 00:00:00 /usr/sbin/httpd apache 14965 10311 0 14:28 ? 00:00:00 /usr/sbin/httpd apache 15022 10311 0 14:28 ? 00:00:00 /usr/sbin/httpd root 16310 15956 0 14:34 pts/3 00:00:00 grep httpd ps -ef | grep nagios---------------------------nagios 8504 1 0 Dec06 ? 00:03:52 /usr/local/nagios/bin/nagios -d(lots, but all the same) I'm not wrong in thinking that the httpd is running under the APACHE user, am I? ThanksChris -----Original Message----- From: Terry Inzauro [mailto:tinzauro at axiomintegration.com] Sent: 06 December 2002 19:27 To: Chris Losch Subject: RE: [Nagios-users] RE: Permissions Error I think the nagios user,the apache user need to have write access rwx access to that file. make sure that each of the respective users have the necessary perms. or just add the nagios user to the group owner in the /etc/group file. worth a try? Terry Inzauro On Fri, 2002-12-06 at 11:31, Chris Losch wrote: I'm afraid its a case of been there, done that... but just in case I did something wrong, I tried again... Stopped Nagios and $INSTALLPATH/var/rw/nagios.cmd disappeared (as it should - see I even tried reading the manual :-D ) Used the /etc/rc.d/init/nagios script to start it, $INSTALLPATH/var/rw/nagios.cmd re-appears with the default permissions prw-rw---- 1 nagios nagiocmd 0 Dec 6 17:20 nagios.cmd CHMOD'd 777 it, still receiving the same error when attempting the command. Have even tried restarting the httpd :( which runs under the 'apache' user, which is part of the nagiocmd group. Incidently the parent (rw) directory has the permissions, drwxrwS--- 2 nagios nagiocmd 4096 Dec 6 17:20 rw Maybe someone will spot where im going wrong. Anyway, have a good weekend all. Chris -----Original Message----- From: Terry Inzauro [mailto:tinzauro at axiomintegration.com] Sent: 06 December 2002 15:12 To: Chris Losch Cc: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] RE: Permissions Error I cam across the same error once. If there was a nagios process running, kill it. If there is a $INSTALLPATH/var/rw/nagios.cmd file, delete it. Next, start nagios with the /etc/rc.d/init/nagios script. Then try the request again. If does the same thing. try chmodddddding the $INSTALLPATH/var/rw/nagios.cmd file for something like 777, then work it backwards from there. Terry Inzauro On Fri, 2002-12-06 at 06:41, Chris Losch wrote: FYI, I have just built up a clean install of Redhat 8, and Nagios1.0 I have got Authentication setup and working ok (I can view cgi's), however I am unable to send commands from the Web Pages to Nagios (Scheduling Checks etc.) I am recieving the error Error: Could not stat() command file '/usr/local/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. :( If possible I would suggest you backup the config CGI's (hosts services etc) and start over, it seems to be easier than troubleshooting. Chris... yup another Chris. Just for reference I've included the bits below so you can cross reference your config files. cgi.cfg ------- authorized_for_system_information=xxxx,nagiosadmin, authorized_for_system_commands=xxxx,nagiosadmin, authorized_for_configuration_information=xxxx,nagiosadmin, authorized_for_all_hosts=xxxx,nagiosadmin, authorized_for_all_host_commands=xxxx,nagiosadmin, authorized_for_all_services=xxxx,nagiosadmin, authorized_for_all_service_commands=xxxx,nagiosadmin, .htaccess (in /usr/local/nagios/share/ and /usr/local/nagios/sbin/) --------- AuthName "Nagios Access" AuthType Basic AuthUserFile /usr/local/nagios/etc/htpasswd.users /usr/local/nagios/etc/htpasswd.users ------------------------------------ nagiosadmin: /etc/httpd/conf/httpd.conf (added the following, otherwise, no changes from default) -------------------------- ScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/ AllowOverride AuthConfig Options ExecCGI Order allow,deny Allow from all Alias /nagios/ /usr/local/nagios/share/ Options None AllowOverride AuthConfig Order allow,deny Allow from all /etc/local/nagios/etc/contacts.cfg ---------------------------------- define contact { contact_name nagiosadmin alias Nagios Admin service_notification_period 24x7 host_notification_period 24x7 service_notification_options w,u,c,r host_notification_options d,u,r service_notification_commands notify-by-email,notify-by-epager host_notification_commands host-notify-by-email,host-notify-by-epager email nagios-admin at localhost.localdomain pager pagenagios-admin at localhost.localdomain } /etc/local/nagios/etc/nagios.cfg --------------------------------- # # nagios.cfg - Config file for Nagios (www.nagios.org) # # Written by Nagat. Manually editing this file is a bad idea since Nagat will # overwrite it. Delete the nagatobj.dat file in the nagios/etc directory to # reread the Nagios configuration. # log_file=/usr/local/nagios/var/nagios.log cfg_file=/usr/local/nagios/etc/checkcommands.cfg cfg_file=/usr/local/nagios/etc/misccommands.cfg cfg_file=/usr/local/nagios/etc/contactgroups.cfg cfg_file=/usr/local/nagios/etc/contacts.cfg cfg_file=/usr/local/nagios/etc/dependencies.cfg cfg_file=/usr/local/nagios/etc/escalations.cfg cfg_file=/usr/local/nagios/etc/hostgroups.cfg cfg_file=/usr/local/nagios/etc/hosts.cfg cfg_file=/usr/local/nagios/etc/services.cfg cfg_file=/usr/local/nagios/etc/timeperiods.cfg resource_file=/usr/local/nagios/etc/resource.cfg status_file=/usr/local/nagios/var/status.log nagios_user=nagios nagios_group=nagios check_external_commands=1 command_check_interval=-1 command_file=/usr/local/nagios/var/rw/nagios.cmd comment_file=/usr/local/nagios/var/comment.log downtime_file=/usr/local/nagios/var/downtime.log lock_file=/usr/local/nagios/var/nagios.lock temp_file=/usr/local/nagios/var/nagios.tmp log_rotation_method=d log_archive_path=/usr/local/nagios/var/archives use_syslog=1 log_notifications=1 log_service_retries=1 log_host_retries=1 log_event_handlers=1 log_initial_states=0 log_external_commands=1 log_passive_service_checks=1 inter_check_delay_method=s service_interleave_factor=s max_concurrent_checks=0 service_reaper_frequency=10 sleep_time=1 service_check_timeout=60 host_check_timeout=30 event_handler_timeout=30 notification_timeout=30 ocsp_timeout=5 perfdata_timeout=5 retain_state_information=1 state_retention_file=/usr/local/nagios/var/status.sav retention_update_interval=60 use_retained_program_state=0 interval_length=60 use_agressive_host_checking=0 execute_service_checks=1 accept_passive_service_checks=1 enable_notifications=1 enable_event_handlers=1 process_performance_data=0 obsess_over_services=0 check_for_orphaned_services=0 check_service_freshness=1 freshness_check_interval=60 aggregate_status_updates=1 status_update_interval=15 enable_flap_detection=0 low_service_flap_threshold=5.0 high_service_flap_threshold=20.0 low_host_flap_threshold=5.0 high_host_flap_threshold=20.0 date_format=euro illegal_object_name_chars=`~!$%^&*|'"<>?,()= illegal_macro_output_chars=`~$&|'"<> admin_email=nagios admin_pager=pagenagios -----Original Message----- From: Chris Fairbanks [mailto:ChrisF at winterlink.net] Sent: 06 December 2002 07:22 To: Chris Fairbanks; wrnash; Potter, G M (Greg); Nagios-users (E-mail) Cc: Robertson, Brown Subject: RE: [Nagios-users] RE: Permissions Error Another interesting tibit, I tired disabling use_authentication and setting up a default user, but I still get the same issues. Thanks Chris -----Original Message----- From: Chris Fairbanks Sent: Thursday, December 05, 2002 10:47 PM To: wrnash; Potter, G M (Greg); Nagios-users (E-mail) Cc: Robertson, Brown Subject: RE: [Nagios-users] RE: Permissions Error My httpasswd.users file and everything is setup totally correctly and use_authentication=1 is set. I have also tried setting all the authorized_for's = * but to no avail. From the sounds of it, it looks like this might be an issue with RH8.0 or Apache 2.0.40 that ships default with RH8.0. Is there anyone on this list that has Nagios working on RH8.0? Thanks, Chris ********************************************************************** Important: This e-mail is intended for the above named person only and should be treated as confidential. If this has come to you in error you should take no action based on it, nor should you copy or show it to anyone; please telephone us immediately. ********************************************************************** Terry Inzauro Systems Engineer Email: tinzauro at axiomintegration.comPhone: 402.345.5500Fax: 402.345.5501US Mail: Axiom Integration, Inc. One Owen Pkwy 2200 Abbott Drive Carter Lake, IA 51510 Terry Inzauro Systems Engineer Email: tinzauro at axiomintegration.comPhone: 402.345.5500Fax: 402.345.5501US Mail: Axiom Integration, Inc. One Owen Pkwy 2200 Abbott Drive Carter Lake, IA 51510 --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From Trace.McQuaig at usunwired.com Mon Dec 9 16:47:09 2002 From: Trace.McQuaig at usunwired.com (Trace McQuaig) Date: Mon, 9 Dec 2002 09:47:09 -0600 Subject: Nagios 1.06 + NSClient 1.0.6.2 Message-ID: <19C21F9E0DE1914EA5E20E37D0E10A7B3E9A3C@usuexch02.usunwired.com> It doesn't do it for me either at the command line. However once in nagios it works. Trace McQuaig US Unwired Systems Engineer Unix Ninja MCSE Exchange A+ (o_ //\ "It is all fun and games 'till someone gets a virus." V_/_ All spelling errors are completely intentional. -----Original Message----- From: Rob Lindenbusch [mailto:lfcrob at nicusa.com] Sent: Monday, December 09, 2002 8:34 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Nagios 1.06 + NSClient 1.0.6.2 Hi everyone, I'm having a problem with Nagios 1.0b6 (Solaris 8) + NSClient 1.0.6.2 (Windows 2000). Everything almost works, except that the Windows client does not return the service state (OK, WARNING, CRITICAL): /usr/local/nagios/libexec/check_nt -H nthostname -v USEDDISKSPACE -l c -w 10 -c 15 c:\ - total: 3.77 Gb - used: 2.85 Gb (76%) - free 0.92 Gb (24%) Any ideas? Thanks, Rob Rob Lindenbusch Systems and Network Administrator NIC E-mail: lfcrob at nicusa.com Phone: (317)290-1020 ext. 42 Mobile: (317)506-5379 ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From gjfrater at bechtel.com Mon Dec 9 16:58:39 2002 From: gjfrater at bechtel.com (Frater, Greg J) Date: Mon, 9 Dec 2002 07:58:39 -0800 Subject: Nagios 1.06 + NSClient 1.0.6.2 Message-ID: It's okay. From the command line my does the same thing (doesn't print the status). Within Nagios however it does respond properly (ok, warning, critical). -----Original Message----- From: Rob Lindenbusch [mailto:lfcrob at nicusa.com] Sent: Monday, December 09, 2002 6:34 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Nagios 1.06 + NSClient 1.0.6.2 Hi everyone, I'm having a problem with Nagios 1.0b6 (Solaris 8) + NSClient 1.0.6.2 (Windows 2000). Everything almost works, except that the Windows client does not return the service state (OK, WARNING, CRITICAL): /usr/local/nagios/libexec/check_nt -H nthostname -v USEDDISKSPACE -l c -w 10 -c 15 c:\ - total: 3.77 Gb - used: 2.85 Gb (76%) - free 0.92 Gb (24%) Any ideas? Thanks, Rob Rob Lindenbusch Systems and Network Administrator NIC E-mail: lfcrob at nicusa.com Phone: (317)290-1020 ext. 42 Mobile: (317)506-5379 ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From anders at digitalraadgivning.no Mon Dec 9 17:30:13 2002 From: anders at digitalraadgivning.no (Anders Grue Nerheim) Date: 09 Dec 2002 17:30:13 +0100 Subject: Nagios 1.06 + NSClient 1.0.6.2 In-Reply-To: References: Message-ID: <1039451441.1748.2.camel@aten> reason for this is that Nagios uses exitstates not text output. Btw, you should make thoose values -w 85 and -c 90. now it will return a criticalstate as the diskusage is over 10% On Mon, 2002-12-09 at 16:58, Frater, Greg J wrote: > It's okay. From the command line my does the same thing (doesn't print the > status). Within Nagios however it does respond properly (ok, warning, > critical). > > -----Original Message----- > From: Rob Lindenbusch [mailto:lfcrob at nicusa.com] > Sent: Monday, December 09, 2002 6:34 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Nagios 1.06 + NSClient 1.0.6.2 > > > Hi everyone, > I'm having a problem with Nagios 1.0b6 (Solaris 8) + NSClient > 1.0.6.2 (Windows 2000). Everything almost works, except that the Windows > client does not return the service state (OK, WARNING, CRITICAL): > > /usr/local/nagios/libexec/check_nt -H nthostname -v USEDDISKSPACE -l c -w 10 > -c 15 > c:\ - total: 3.77 Gb - used: 2.85 Gb (76%) - free 0.92 Gb (24%) > > Any ideas? > > Thanks, > Rob > > > Rob Lindenbusch > Systems and Network Administrator > NIC > E-mail: lfcrob at nicusa.com > Phone: (317)290-1020 ext. 42 > Mobile: (317)506-5379 > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jcarro10 at sprintspectrum.com Mon Dec 9 17:34:21 2002 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Mon, 9 Dec 2002 10:34:21 -0600 Subject: Nagios 1.06 + NSClient 1.0.6.2 Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1108@PKDWB03C.ad.sprint.com> To get the status from the command line, you should be able to simply do an "echo $?" immediately after execution. jc > -----Original Message----- > From: Frater, Greg J [mailto:gjfrater at bechtel.com] > Sent: Monday, December 09, 2002 9:59 AM > To: 'Rob Lindenbusch'; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Nagios 1.06 + NSClient 1.0.6.2 > > > It's okay. From the command line my does the same thing > (doesn't print the > status). Within Nagios however it does respond properly (ok, warning, > critical). > > -----Original Message----- > From: Rob Lindenbusch [mailto:lfcrob at nicusa.com] > Sent: Monday, December 09, 2002 6:34 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Nagios 1.06 + NSClient 1.0.6.2 > > > Hi everyone, > I'm having a problem with Nagios 1.0b6 (Solaris 8) + NSClient > 1.0.6.2 (Windows 2000). Everything almost works, except that > the Windows > client does not return the service state (OK, WARNING, CRITICAL): > > /usr/local/nagios/libexec/check_nt -H nthostname -v > USEDDISKSPACE -l c -w 10 > -c 15 > c:\ - total: 3.77 Gb - used: 2.85 Gb (76%) - free 0.92 Gb (24%) > > Any ideas? > > Thanks, > Rob > > > Rob Lindenbusch > Systems and Network Administrator > NIC > E-mail: lfcrob at nicusa.com > Phone: (317)290-1020 ext. 42 > Mobile: (317)506-5379 > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jcarro10 at sprintspectrum.com Mon Dec 9 17:33:22 2002 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Mon, 9 Dec 2002 10:33:22 -0600 Subject: Distributed SNMP monitoring. Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F2486@PKDWB03C.ad.sprint.com> Like yourself, I'm wishful of basically what you're asking for. But (I might be mistaken) I think the design of RRDtool is to leverage a round-robin database. MySQL (or any relational database) is anything but. If programming were my fort?, I'd be looking at ways of extracting data from a MySQL database and leveraging the GD graphics library for creating images similar to RRDtool. Who knows, maybe someone's already done this. jc > -----Original Message----- > From: Frater, Greg J [mailto:gjfrater at bechtel.com] > Sent: Monday, December 09, 2002 9:19 AM > To: 'Stanley Hopcroft'; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Distributed SNMP monitoring. > > > Just a thought...Can rrd write to a database like mysql, I > thought it could. > If so what would it take to code Nagios or a wrapper of some > sort like the > urlize check to write the check performance data to a > database backend then > use apan and or rrd to create the graphs for viewing the > data. This may be > a off the wall idea, it sounded good this morning. > > -----Original Message----- > From: Stanley Hopcroft [mailto:Stanley.Hopcroft at IPAustralia.Gov.AU] > Sent: Sunday, December 08, 2002 5:09 PM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Distributed SNMP monitoring. > > > Dear Sir, > > FWIW, there seems to be no serious competitor to RRD for saving time > series data. > > > On Sun, Dec 08, 2002 at 04:46:06AM -0500, Furnish, Trever G wrote: > > Well, actually, if by "fully integrated" you mean "as > integrated as anyone > > could ever want", then no, it's not fully integrated. :-) > No offense - it > > looks like a very nice contribution - but I for one would > greatly prefer > not > > to have to spawn off rrdtool to open and close its files > again every time > > nagios wants to save data. It'd be nice if whatever > performance archiving > > mechanism gets focused on is one where the long-running > nagios process > > communicates directly with a long-running, all files held > open rrdtool > > process or a database. > > > > It looks like (ok, have I given away the fact yet that I > haven't actually > > set up apan yet? ;-) ) APAN works by getting called every > time you call a > > command you want to record performance info for, then > returning the result > > to Nagios and kicking off an rrdtool process to archive it. > Although the > > apan and rrdtool executables will probably be in OS read > cache, that's > still > > a lot of additional overhead. > > > > Comments intended constructively, corrections appreciated... > > > > I am not sure if I follow you, but it is not necessary to 'spawn off > rrdtool' since rrdtool has a public API and shared libraries (in at > least C and Perl) that implement the API. > > The RRD fetch, update, create functions can be called directly from > Nagios in the same way that it can call any other function that is > properly linked (such as the Perl functions if Nagios is built with > embedded Perl support) with it. > > I don't see this as 'a lot of additional overhead', especially with > Dynamic loading. > > Projects that use this approach include the new RRD plugin for Ntop > (Again FWIW, Ntop has replaced DB interfaces to mySQL and friends by > RRD). > > RRD tool buys an extraordinary amount of power in > > . its data manipulation functions > > . it offers (development at this stage) Holt-Winters time series > prediction (from Jake Brutlag of Microsoft). This is an RRA that > predicts the next values of data like interface octets that vary > periodically, based on historical values of data and variance. > > It is good way to automatically detect if traffic levels have altered > significantly, far more sophisticated than simply setting thresholds. > > > -t. > > > > Yours sincerely. > > -- > -------------------------------------------------------------- > ---------- > Stanley Hopcroft > -------------------------------------------------------------- > ---------- > > '...No man is an island, entire of itself; every man is a piece of the > continent, a part of the main. If a clod be washed away by the sea, > Europe is the less, as well as if a promontory were, as well as if a > manor of thy friend's or of thine own were. Any man's death diminishes > me, because I am involved in mankind; and therefore never send to know > for whom the bell tolls; it tolls for thee...' > > from Meditation 17, J Donne. > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From lfcrob at nicusa.com Mon Dec 9 18:04:02 2002 From: lfcrob at nicusa.com (Rob Lindenbusch) Date: Mon, 9 Dec 2002 12:04:02 -0500 Subject: Nagios 1.06 + NSClient 1.0.6.2 In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB014E1108@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB014E1108@PKDWB03C.ad.sprint.com> Message-ID: <018001c29fa4$fac43210$0300a8c0@glock> Many thanks for all of the replies. Things seem to be working just fine - I guess I did not really understand how the status code was received by Nagios. Thanks, Rob ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From Chris.Losch at newham.gov.uk Mon Dec 9 18:05:16 2002 From: Chris.Losch at newham.gov.uk (Chris Losch) Date: Mon, 9 Dec 2002 17:05:16 -0000 Subject: Permissions Error (Could not stat() comman d file ) Message-ID: Jon, I am 99% sure, (from what I read in the ps -ef output, and httpd.conf) Relevant part from httpd.conf ------------------------------------------ # If you wish httpd to run as a different user or group, you must run # httpd as root initially and it will switch. # # User/Group: The name (or #number) of the user/group to run httpd as. # . On SCO (ODT 3) use "User nouser" and "Group nogroup". # . On HPUX you may not be able to use shared memory as nobody, and the # suggested workaround is to create a user www and use that user. # NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET) # when the value of (unsigned)Group is above 60000; # don't use Group #-1 on these systems! # User apache Group apache I've even tried changing Group to 'nagiocmd', no luck with that either. NOTE This is APACHE 2 as supplied by REDHAT 8 CD's Server version: Apache/2.0.40 Thanks for your suggestion anyway, I'm starting to wonder if this is an issue with Nagios on Apache2, has anyone else got this working successfully? Chris -----Original Message----- From: Jon Lyons [mailto:jlyons30 at yahoo.com] Sent: 09 December 2002 15:28 To: Chris Losch; 'Terry Inzauro' Cc: 'nagios-users at lists.sourceforge.net' Subject: Re: [Nagios-users] RE: Permissions Error (Could not stat() command file ) Are you sure apache is running as "apache" and not "www"? Chris Losch wrote: Change of Subject line, things were getting confused.... ---- It was worth a try, still didnt work though *sigh* Just in case I'm missing something. ls -la /usr/local/nagios/var/rw ----------------------------------------- total 8 drwxrwS--- 2 nagios nagiocmd 4096 Dec 6 17:20 . drwxrwxr-x 4 nagios nagios 4096 Dec 9 14:37 .. prw-rwx--- 1 nagios nagiocmd 0 Dec 6 17:20 nagios.cmd (after chmod'ing with Terry Inzauro's suggestion - see below, default group perms are rw-) /etc/group (relevant bits) ---------------- apache:x:48: nobody:x:99: nagios:x:500: nagiocmd:x:501:nagios,nobody,apache ps -ef | grep httpd output ------------------------- root 10311 1 0 Dec06 ? 00:00:02 /usr/sbin/httpd apache 14958 10311 0 14:28 ? 00:00:00 /usr/sbin/httpd apache 14959 10311 0 14:28 ? 00:00:00 /usr/sbin/httpd apache 14960 10311 0 14:28 ? 00:00:00 /usr/sbin/httpd apache 14961 10311 0 14:28 ? 00:00:00 /usr/sbin/httpd apache 14962 10311 0 14:28 ? 00:00:00 /usr/sbin/httpd apache 14963 10311 0 14:28 ? 00:00:00 /usr/sbin/httpd apache 14964 10311 0 14:28 ? 00:00:00 /usr/sbin/httpd apache 14965 10311 0 14:28 ? 00:00:00 /usr/sbin/httpd apache 15022 10311 0 14:28 ? 00:00:00 /usr/sbin/httpd root 16310 15956 0 14:34 pts/3 00:00:00 grep httpd ps -ef | grep nagios --------------------------- nagios 8504 1 0 Dec06 ? 00:03:52 /usr/local/nagios/bin/nagios -d (lots, but all the same) I'm not wrong in thinking that the httpd is running under the APACHE user, am I? Thanks Chris -----Original Message----- From: Terry Inzauro [mailto:tinzauro at axiomintegration.com] Sent: 06 December 2002 19:27 To: Chris Losch Subject: RE: [Nagios-users] RE: Permissions Error I think the nagios user,the apache user need to have write access rwx access to that file. make sure that each of the respective users have the necessary perms. or just add the nagios user to the group owner in the /etc/group file. worth a try? Terry Inzauro On Fri, 2002-12-06 at 11:31, Chris Losch wrote: I'm afraid its a case of been there, done that... but just in case I did something wrong, I tried again... Stopped Nagios and $INSTALLPATH/var/rw/nagios.cmd disappeared (as it should - see I even tried reading the manual :-D ) Used the /etc/rc.d/init/nagios script to start it, $INSTALLPATH/var/rw/nagios.cmd re-appears with the default permissions prw-rw---- 1 nagios nagiocmd 0 Dec 6 17:20 nagios.cmd CHMOD'd 777 it, still receiving the same error when attempting the command. Have even tried restarting the httpd :( which runs under the 'apache' user, which is part of the nagiocmd group. Incidently the parent (rw) directory has the permissions, drwxrwS--- 2 nagios nagiocmd 4096 Dec 6 17:20 rw Maybe someone will spot where im going wrong. Anyway, have a good weekend all. Chris -----Original Message----- From: Terry Inzauro [mailto:tinzauro at axiomintegration.com] Sent: 06 December 2002 15:12 To: Chris Losch Cc: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] RE: Permissions Error I cam across the same error once. If there was a nagios process running, kill it. If there is a $INSTALLPATH/var/rw/nagios.cmd file, delete it. Next, start nagios with the /etc/rc.d/init/nagios script. Then try the request again. If does the same thing. try chmodddddding the $INSTALLPATH/var/rw/nagios.cmd file for something like 777, then work it backwards from there. Terry Inzauro On Fri, 2002-12-06 at 06:41, Chris Losch wrote: FYI, I have just built up a clean install of Redhat 8, and Nagios1.0 I have got Authentication setup and working ok (I can view cgi's), however I am unable to send commands from the Web Pages to Nagios (Scheduling Checks etc.) I am recieving the error Error: Could not stat() command file '/usr/local/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. :( If possible I would suggest you backup the config CGI's (hosts services etc) and start over, it seems to be easier than troubleshooting. Chris... yup another Chris. Just for reference I've included the bits below so you can cross reference your config files. cgi.cfg ------- authorized_for_system_information=xxxx,nagiosadmin, authorized_for_system_commands=xxxx,nagiosadmin, authorized_for_configuration_information=xxxx,nagiosadmin, authorized_for_all_hosts=xxxx,nagiosadmin, authorized_for_all_host_commands=xxxx,nagiosadmin, authorized_for_all_services=xxxx,nagiosadmin, authorized_for_all_service_commands=xxxx,nagiosadmin, .htaccess (in /usr/local/nagios/share/ and /usr/local/nagios/sbin/) --------- AuthName "Nagios Access" AuthType Basic AuthUserFile /usr/local/nagios/etc/htpasswd.users /usr/local/nagios/etc/htpasswd.users ------------------------------------ nagiosadmin: /etc/httpd/conf/httpd.conf (added the following, otherwise, no changes from default) -------------------------- ScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/ AllowOverride AuthConfig Options ExecCGI Order allow,deny Allow from all Alias /nagios/ /usr/local/nagios/share/ Options None AllowOverride AuthConfig Order allow,deny Allow from all /etc/local/nagios/etc/contacts.cfg ---------------------------------- define contact { contact_name nagiosadmin alias Nagios Admin service_notification_period 24x7 host_notification_period 24x7 service_notification_options w,u,c,r host_notification_options d,u,r service_notification_commands notify-by-email,notify-by-epager host_notification_commands host-notify-by-email,host-notify-by-epager email nagios-admin at localhost.localdomain pager pagenagios-admin at localhost.localdomain } /etc/local/nagios/etc/nagios.cfg --------------------------------- # # nagios.cfg - Config file for Nagios (www.nagios.org) # # Written by Nagat. Manually editing this file is a bad idea since Nagat will # overwrite it. Delete the nagatobj.dat file in the nagios/etc directory to # reread the Nagios configuration. # log_file=/usr/local/nagios/var/nagios.log cfg_file=/usr/local/nagios/etc/checkcommands.cfg cfg_file=/usr/local/nagios/etc/misccommands.cfg cfg_file=/usr/local/nagios/etc/contactgroups.cfg cfg_file=/usr/local/nagios/etc/contacts.cfg cfg_file=/usr/local/nagios/etc/dependencies.cfg cfg_file=/usr/local/nagios/etc/escalations.cfg cfg_file=/usr/local/nagios/etc/hostgroups.cfg cfg_file=/usr/local/nagios/etc/hosts.cfg cfg_file=/usr/local/nagios/etc/services.cfg cfg_file=/usr/local/nagios/etc/timeperiods.cfg resource_file=/usr/local/nagios/etc/resource.cfg status_file=/usr/local/nagios/var/status.log nagios_user=nagios nagios_group=nagios check_external_commands=1 command_check_interval=-1 command_file=/usr/local/nagios/var/rw/nagios.cmd comment_file=/usr/local/nagios/var/comment.log downtime_file=/usr/local/nagios/var/downtime.log lock_file=/usr/local/nagios/var/nagios.lock temp_file=/usr/local/nagios/var/nagios.tmp log_rotation_method=d log_archive_path=/usr/local/nagios/var/archives use_syslog=1 log_notifications=1 log_service_retries=1 log_host_retries=1 log_event_handlers=1 log_initial_states=0 log_external_commands=1 log_passive_service_checks=1 inter_check_delay_method=s service_interleave_factor=s max_concurrent_checks=0 service_reaper_frequency=10 sleep_time=1 service_check_timeout=60 host_check_timeout=30 event_handler_timeout=30 notification_timeout=30 ocsp_timeout=5 perfdata_timeout=5 retain_state_information=1 state_retention_file=/usr/local/nagios/var/status.sav retention_update_interval=60 use_retained_program_state=0 interval_length=60 use_agressive_host_checking=0 execute_service_checks=1 accept_passive_service_checks=1 enable_notifications=1 enable_event_handlers=1 process_performance_data=0 obsess_over_services=0 check_for_orphaned_services=0 check_service_freshness=1 freshness_check_interval=60 aggregate_status_updates=1 status_update_interval=15 enable_flap_detection=0 low_service_flap_threshold=5.0 high_service_flap_threshold=20.0 low_host_flap_threshold=5.0 high_host_flap_threshold=20.0 date_format=euro illegal_object_name_chars=`~!$%^&*|'"<>?,()= illegal_macro_output_chars=`~$&|'"<> admin_email=nagios admin_pager=pagenagios -----Original Message----- From: Chris Fairbanks [ mailto:ChrisF at winterlink.net] Sent: 06 December 2002 07:22 To: Chris Fairbanks; wrnash; Potter, G M (Greg); Nagios-users (E-mail) Cc: Robertson, Brown Subject: RE: [Nagios-users] RE: Permissions Error Another interesting tibit, I tired disabling use_authentication and setting up a default user, but I still get the same issues. Thanks Chris -----Original Message----- From: Chris Fairbanks Sent: Thursday, December 05, 2002 10:47 PM To: wrnash; Potter, G M (Greg); Nagios-users (E-mail) Cc: Robertson, Brown Subject: RE: [Nagios-users] RE: Permissions Error My httpasswd.users file and everything is setup totally correctly and use_authentication=1 is set. I have also tried setting all the authorized_for's = * but to no avail. From the sounds of it, it looks like this might be an issue with RH8.0 or Apache 2.0.40 that ships default with RH8.0. Is there anyone on this list that has Nagios working on RH8.0? Thanks, Chris ********************************************************************** Important: This e-mail is intended for the above named person only and should be treated as confidential. If this has come to you in error you should take no action based on it, nor should you copy or show it to anyone; please telephone us immediately. ********************************************************************** Terry Inzauro Systems Engineer Email: tinzauro at axiomintegration.com Phone: 402.345.5500 Fax: 402.345.5501 US Mail: Axiom Integration, Inc. One Owen Pkwy 2200 Abbott Drive Carter Lake, IA 51510 Terry Inzauro Systems Engineer Email: tinzauro at axiomintegration.com Phone: 402.345.5500 Fax: 402.345.5501 US Mail: Axiom Integration, Inc. One Owen Pkwy 2200 Abbott Drive Carter Lake, IA 51510 _____ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From russell at quadrix.com Mon Dec 9 18:11:17 2002 From: russell at quadrix.com (Russell Scibetti) Date: Mon, 09 Dec 2002 12:11:17 -0500 Subject: 1000+ processes then Nagios fails References: <4A256C7F.002FA310.00@gisw900.gwf.com.au> Message-ID: <3DF4CEB5.60506@quadrix.com> I've read some of the replies, and I have one more suggestion to try. If memory is the problem, and not CPU Load, try lowering the service_reaper_frequency. By default it is set to 10, which means every 10 seconds, Nagios will remove the contents of the pipe (what ALL the plugins write to - there is only 1 pipe) and process them. If you have that many services, you might be overwriting the pipe. I had similar problems on one of my systems where the box kept swapping all the time (about 750 service checks, most every 5 minutes). If you try lowering that value (try 5 for starters), Nagios will read the pipe more frequently, so it shouldn't get overwritten as much. Just another suggestion. -Russell Scibetti Shane_Seidel at gwf.com.au wrote: > > > >Hi All, > >We have a dual P3-1200mhz 512M RAM server running Nagios 1.0 monitoring 180 >devices and 800 services. > >I have noticed that the number of nagios processes increase until they reach a >count of approx 1000 at which time the server complains it is "out of memory" >and starts shutting down services. > >I found that executing '/etc/rc.d/init.d/nagios reload' from cron would "solve" >the problem. The number of processes would return to approx 60 and then start to >climb again. I have the cron job execute every 30 mins. > >I took the config and put all the hosts, services, etc into Netsaint 0.7 on a >P2-350Mhz 128 mb RAM and processes rarely rise to over 100 and then return to >40-60. > >Note that I use the "default" option while compiling to maintain backward >compatibility for Netsaint. > >Has anyone else experienced this? Is there any way to restrict the number of >processes used by nagios. Note also that the big server also runs MRTG/RRD on >approx 20 devices, although mrtg process complete > >Any help appreciated >Thanks >Shane > > > > >********************************************************************************************************************************************** >This email and its attachments are confidential subject to copyright and may be legally privileged. If they have come to >you in error you should take no action based upon the contents nor should you copy or show them to anyone. Please >delete the email and its attachments and inform administrators at gwf.com.au >Any views or opinions expressed are those of the author and do not necessarily represent those of George Weston Foods >Ltd. >Security: Internet email is not a completely secure medium, please note this when considering the content of your message. >Viruses: We take precautions to ensure email is free of viruses but cannot guarantee this. Accordingly we advise >scanning all email and attachments >********************************************************************************************************************************************* > > > >------------------------------------------------------- >This SF.net email is sponsored by: Get the new Palm Tungsten T >handheld. Power & Color in a compact size! >http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users > > -- Russell Scibetti Quadrix Solutions, Inc. http://www.quadrix.com (732) 235-2335, ext. 7038 ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From GPotter at MarathonOil.com Mon Dec 9 18:13:47 2002 From: GPotter at MarathonOil.com (Potter, G M (Greg)) Date: Mon, 9 Dec 2002 11:13:47 -0600 Subject: Permissions Error (Could not stat() command file ) Message-ID: In the httpd.conf file there is an entry that determines the group apache runs as. In my httpd.conf file it looks like the following: # If you wish httpd to run as a different user or group, you must run # httpd as root initially and it will switch. # # User/Group: The name (or #number) of the user/group to run httpd as. # . On SCO (ODT 3) use "User nouser" and "Group nogroup". # . On HPUX you may not be able to use shared memory as nobody, and the # suggested workaround is to create a user www and use that user. # NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET) # when the value of (unsigned)Group is above 60000; # don't use Group nobody on these systems! # User nobody Group nobody How is yours set. Greg -----Original Message----- From: Chris Losch [mailto:Chris.Losch at newham.gov.uk] Sent: Monday, December 09, 2002 11:05 AM To: Potter, G M (Greg) Subject: RE: [Nagios-users] RE: Permissions Error (Could not stat() command file ) As you suggested, I tried changing the /etc/passwd for apache so that its primary group became 'nagiocmd' and restarted Apache, didn't help, then rebooted - Just In Case - and checked everything was up and as expected, still didn't fix the problem. *sigh* Thanks again. Chris -----Original Message----- From: Potter, G M (Greg) [mailto:GPotter at MarathonOil.com] Sent: 09 December 2002 15:20 To: Chris Losch; Terry Inzauro Cc: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] RE: Permissions Error (Could not stat() command file ) What is apache's primary group in the /etc/passwd file. Just because it is in the group file doesn't mean that is it's current group (I think). I believe the process has to do a newgrp to have it's effective group changed to group nagioscmd. It is worth a shot. Greg -------------- next part -------------- An HTML attachment was scrubbed... URL: From mpowell at ena.com Mon Dec 9 18:20:55 2002 From: mpowell at ena.com (Marc Powell) Date: Mon, 9 Dec 2002 11:20:55 -0600 Subject: 1000+ processes then Nagios fails Message-ID: <5DB017510818EC468B05BD7BD9EACF83029F2668@mismail.ena.com> Are you certain that's what the service_reaper_frequency applies to? I thought that command_check_interval applied to the external command pipe and that service_reaper_frequency only applied to local active checks that do not write to the external command pipe. -- Marc -----Original Message----- From: Russell Scibetti [mailto:russell at quadrix.com] Sent: Mon 12/9/2002 11:11 AM To: Shane_Seidel at gwf.com.au; nagios-users at lists.sourceforge.net Cc: Subject: Re: [Nagios-users] 1000+ processes then Nagios fails I've read some of the replies, and I have one more suggestion to try. If memory is the problem, and not CPU Load, try lowering the service_reaper_frequency. By default it is set to 10, which means every 10 seconds, Nagios will remove the contents of the pipe (what ALL the plugins write to - there is only 1 pipe) and process them. If you have that many services, you might be overwriting the pipe. I had similar problems on one of my systems where the box kept swapping all the time (about 750 service checks, most every 5 minutes). If you try lowering that value (try 5 for starters), Nagios will read the pipe more frequently, so it shouldn't get overwritten as much. Just another suggestion. -Russell Scibetti Shane_Seidel at gwf.com.au wrote: > > > >Hi All, > >We have a dual P3-1200mhz 512M RAM server running Nagios 1.0 monitoring 180 >devices and 800 services. > >I have noticed that the number of nagios processes increase until they reach a >count of approx 1000 at which time the server complains it is "out of memory" >and starts shutting down services. > >I found that executing '/etc/rc.d/init.d/nagios reload' from cron would "solve" >the problem. The number of processes would return to approx 60 and then start to >climb again. I have the cron job execute every 30 mins. > >I took the config and put all the hosts, services, etc into Netsaint 0.7 on a >P2-350Mhz 128 mb RAM and processes rarely rise to over 100 and then return to >40-60. > >Note that I use the "default" option while compiling to maintain backward >compatibility for Netsaint. > >Has anyone else experienced this? Is there any way to restrict the number of >processes used by nagios. Note also that the big server also runs MRTG/RRD on >approx 20 devices, although mrtg process complete > >Any help appreciated >Thanks >Shane > > > > >********************************************************************************************************************************************** >This email and its attachments are confidential subject to copyright and may be legally privileged. If they have come to >you in error you should take no action based upon the contents nor should you copy or show them to anyone. Please >delete the email and its attachments and inform administrators at gwf.com.au >Any views or opinions expressed are those of the author and do not necessarily represent those of George Weston Foods >Ltd. >Security: Internet email is not a completely secure medium, please note this when considering the content of your message. >Viruses: We take precautions to ensure email is free of viruses but cannot guarantee this. Accordingly we advise >scanning all email and attachments >********************************************************************************************************************************************* > > > >------------------------------------------------------- >This SF.net email is sponsored by: Get the new Palm Tungsten T >handheld. Power & Color in a compact size! >http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users > > -- Russell Scibetti Quadrix Solutions, Inc. http://www.quadrix.com (732) 235-2335, ext. 7038 ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From GPotter at MarathonOil.com Mon Dec 9 18:39:42 2002 From: GPotter at MarathonOil.com (Potter, G M (Greg)) Date: Mon, 9 Dec 2002 11:39:42 -0600 Subject: Permissions Error (Could not stat() command file ) Message-ID: Chris I recommend running strace on your httpd process. This will show you exactly what is going on, which file it is trying to open, and I think the user/group info. On Solaris I add 'truss -aef -o /tmp/httpd.txt -wall -r all /usr/local/apache/bin/httpd' to the apachectl startup script. I don't know what the strace options are under linux, but they should be in the man page. Greg -----Original Message----- From: Chris Losch [mailto:Chris.Losch at newham.gov.uk] Sent: Monday, December 09, 2002 11:05 AM To: 'Jon Lyons' Cc: 'nagios-users at lists.sourceforge.net' Subject: RE: [Nagios-users] RE: Permissions Error (Could not stat() command file ) Jon, I am 99% sure, (from what I read in the ps -ef output, and httpd.conf) Relevant part from httpd.conf ------------------------------------------ # If you wish httpd to run as a different user or group, you must run # httpd as root initially and it will switch. # # User/Group: The name (or #number) of the user/group to run httpd as. # . On SCO (ODT 3) use "User nouser" and "Group nogroup". # . On HPUX you may not be able to use shared memory as nobody, and the # suggested workaround is to create a user www and use that user. # NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET) # when the value of (unsigned)Group is above 60000; # don't use Group #-1 on these systems! # User apache Group apache I've even tried changing Group to 'nagiocmd', no luck with that either. NOTE This is APACHE 2 as supplied by REDHAT 8 CD's Server version: Apache/2.0.40 Thanks for your suggestion anyway, I'm starting to wonder if this is an issue with Nagios on Apache2, has anyone else got this working successfully? Chris . Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcarro10 at sprintspectrum.com Mon Dec 9 19:05:21 2002 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Mon, 9 Dec 2002 12:05:21 -0600 Subject: Schedule downtime Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E110A@PKDWB03C.ad.sprint.com> Yes. jc -----Original Message----- From: Kraus, Markus [mailto:Markus.Kraus.hp at sysde.eads.net] Sent: Monday, December 09, 2002 6:25 AM To: 'nagios-users at lists.sourceforge.net' Subject: [Nagios-users] Schedule downtime Is it possible to schedule downtime for a host and its services at once like it is possible to disable notifications for hosts and services at once e.g.? -------------- next part -------------- An HTML attachment was scrubbed... URL: From russell at quadrix.com Mon Dec 9 20:27:27 2002 From: russell at quadrix.com (Russell Scibetti) Date: Mon, 09 Dec 2002 14:27:27 -0500 Subject: 1000+ processes then Nagios fails References: <5DB017510818EC468B05BD7BD9EACF83029F2668@mismail.ena.com> Message-ID: <3DF4EE9F.9050203@quadrix.com> When I am referring to the pipe, I mean the pipe between the forked-off plugins and the main Nagios daemon. The way that Nagios gets information back from the plugins is that they all write to one pipe (in this case, the pipe is an object in the C code, not a pipe file like nagios.cmd). You are right that the command_check_interval refers to the command pipe, nagios.cmd. But the service_reaper_frequency affects the reading of the communication pipe between the plugins and the daemon. Hope this clears things up. -Russell Marc Powell wrote: > Are you certain that's what the service_reaper_frequency applies to? I > thought that command_check_interval applied to the external command > pipe and that service_reaper_frequency only applied to local active > checks that do not write to the external command pipe. > > > > -- > > Marc > > -----Original Message----- > From: Russell Scibetti [mailto:russell at quadrix.com] > Sent: Mon 12/9/2002 11:11 AM > To: Shane_Seidel at gwf.com.au; nagios-users at lists.sourceforge.net > Cc: > Subject: Re: [Nagios-users] 1000+ processes then Nagios fails > > I've read some of the replies, and I have one more suggestion to try. > If memory is the problem, and not CPU Load, try lowering the > service_reaper_frequency. By default it is set to 10, which means > every > 10 seconds, Nagios will remove the contents of the pipe (what ALL the > plugins write to - there is only 1 pipe) and process them. > > If you have that many services, you might be overwriting the pipe. I > had similar problems on one of my systems where the box kept swapping > all the time (about 750 service checks, most every 5 minutes). If > you > try lowering that value (try 5 for starters), Nagios will read the > pipe > more frequently, so it shouldn't get overwritten as much. > > Just another suggestion. > > -Russell Scibetti > > Shane_Seidel at gwf.com.au wrote: > > > > > > > > >Hi All, > > > >We have a dual P3-1200mhz 512M RAM server running Nagios 1.0 > monitoring 180 > >devices and 800 services. > > > >I have noticed that the number of nagios processes increase until > they reach a > >count of approx 1000 at which time the server complains it is > "out of memory" > >and starts shutting down services. > > > >I found that executing '/etc/rc.d/init.d/nagios reload' from cron > would "solve" > >the problem. The number of processes would return to approx 60 > and then start to > >climb again. I have the cron job execute every 30 mins. > > > >I took the config and put all the hosts, services, etc into > Netsaint 0.7 on a > >P2-350Mhz 128 mb RAM and processes rarely rise to over 100 and > then return to > >40-60. > > > >Note that I use the "default" option while compiling to maintain > backward > >compatibility for Netsaint. > > > >Has anyone else experienced this? Is there any way to restrict > the number of > >processes used by nagios. Note also that the big server also runs > MRTG/RRD on > >approx 20 devices, although mrtg process complete > > > >Any help appreciated > >Thanks > >Shane > > > > > > > > > >********************************************************************************************************************************************** > > >This email and its attachments are confidential subject to > copyright and may be legally privileged. If they have come to > > >you in error you should take no action based upon the contents > nor should you copy or show them to anyone. Please > >delete the email and its attachments and inform > administrators at gwf.com.au > >Any views or opinions expressed are those of the author and do > not necessarily represent those of George Weston Foods > >Ltd. > >Security: Internet email is not a completely secure medium, > please note this when considering the content of your message. > > >Viruses: We take precautions to ensure email is free of viruses > but cannot guarantee this. Accordingly we advise > >scanning all email and attachments > >********************************************************************************************************************************************* > > > > > > > > >------------------------------------------------------- > >This SF.net email is sponsored by: Get the new Palm Tungsten T > >handheld. Power & Color in a compact size! > > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en > >_______________________________________________ > >Nagios-users mailing list > >Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > -- > Russell Scibetti > Quadrix Solutions, Inc. > http://www.quadrix.com > (732) 235-2335, ext. 7038 > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > -- Russell Scibetti Quadrix Solutions, Inc. http://www.quadrix.com (732) 235-2335, ext. 7038 -------------- next part -------------- An HTML attachment was scrubbed... URL: From russell at quadrix.com Mon Dec 9 20:46:16 2002 From: russell at quadrix.com (Russell Scibetti) Date: Mon, 09 Dec 2002 14:46:16 -0500 Subject: Schedule downtime References: Message-ID: <3DF4F308.7030805@quadrix.com> Since downtime only suppress notifications and not services, just putting a host in a downtime also acts as putting all services on that host in a downtime. The check logic will check the service health. If the services check fails, Nagios will next check the host. If the host is down, the check will fail and notification would only be sent about the host down. But if the host is in a downtime, no notifications will be sent. Russell Scibetti Kraus, Markus wrote: > Is it possible to schedule downtime for a host and its services at > once like it is possible to disable notifications for hosts and > services at once e.g.? > -- Russell Scibetti Quadrix Solutions, Inc. http://www.quadrix.com (732) 235-2335, ext. 7038 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Shane_Seidel at gwf.com.au Mon Dec 9 23:01:18 2002 From: Shane_Seidel at gwf.com.au (Shane_Seidel at gwf.com.au) Date: Tue, 10 Dec 2002 08:01:18 +1000 Subject: 1000+ processes then Nagios fails Message-ID: <4A256C8A.0079BD14.00@gisw900.gwf.com.au> Russell, Marc, Here are my current relevant settings:- inter_check_delay_method=0.01 max_concurrent_checks=750 service_reaper_frequency=10 aggregate_status_updates=0 Program-Wide Performance Information (disk checks >5mins):- Time Frame Checks Completed <= 1 minute: 109 (14.6%) <= 5 minutes: 481 (64.6%) <= 15 minutes: 745 (100.0%) <= 1 hour: 745 (100.0%) Since program start: ********************************************************************************************************************************************** This email and its attachments are confidential subject to copyright and may be legally privileged. If they have come to you in error you should take no action based upon the contents nor should you copy or show them to anyone. Please delete the email and its attachments and inform administrators at gwf.com.au Any views or opinions expressed are those of the author and do not necessarily represent those of George Weston Foods Ltd. Security: Internet email is not a completely secure medium, please note this when considering the content of your message. Viruses: We take precautions to ensure email is free of viruses but cannot guarantee this. Accordingly we advise scanning all email and attachments ********************************************************************************************************************************************* -------------- next part -------------- ? 745 (100.0%) Note that Nagios is now easily keeping up:- Mem: ? 513928K av, ?331684K used, ?182244K free, Swap: 1052248K av, ? ?7216K used, 1045032K free I believe the inter_check_delay_method setting had the most impact on system performance although aggregate_status_updates seems to have contributed. System is running as good as I'd expect and I am hesitant at fixing that which is not broke but your suggestions are appreciated and I will test them should I have further issues. Many Thanks Shane To: ? ? ? ?Marc Powell cc: ? ? ? ?Shane Seidel/GWFIS/GWF at GWF, nagios-users at lists.sourceforge.net Subject: ? ? ? ?Re: [Nagios-users] 1000+ processes then Nagios fails [IMAGE] When I am referring to the pipe, I mean the pipe between the forked-off plugins and the main Nagios daemon. ?The way that Nagios gets information back from the plugins is that they all write to one pipe (in this case, the pipe is an object in the C code, not a pipe file like nagios.cmd). You are right that the command_check_interval refers to the command pipe, nagios.cmd. ?But the service_reaper_frequency affects the reading of the communication pipe between the plugins and the daemon. Hope this clears things up. -Russell Marc Powell wrote: > Are you certain that's what the service_reaper_frequency applies to? I > thought that command_check_interval applied to the external command > pipe and that service_reaper_frequency only applied to local active > checks that do not write to the external command pipe. > > > > -- > > Marc > > ? ? -----Original Message----- > ? ? From: Russell Scibetti [mailto:russell at quadrix.com] > ? ? Sent: Mon 12/9/2002 11:11 AM > ? ? To: Shane_Seidel at gwf.com.au; nagios-users at lists.sourceforge.net > ? ? Cc: > ? ? Subject: Re: [Nagios-users] 1000+ processes then Nagios fails > > ? ? I've read some of the replies, and I have one more suggestion to try. > ? ? ?If memory is the problem, and not CPU Load, try lowering the > ? ? service_reaper_frequency. ?By default it is set to 10, which means > ? ? every > ? ? 10 seconds, Nagios will remove the contents of the pipe (what ALL the > ? ? plugins write to - there is only 1 pipe) and process them. > > ? ? If you have that many services, you might be overwriting the pipe. ?I > ? ? had similar problems on one of my systems where the box kept swapping > ? ? all the time (about 750 service checks, most every 5 minutes). ?If > ? ? you > ? ? try lowering that value (try 5 for starters), Nagios will read the > ? ? pipe > ? ? more frequently, so it shouldn't get overwritten as much. > > ? ? Just another suggestion. > > ? ? -Russell Scibetti > > ? ? Shane_Seidel at gwf.com.au wrote: > > ? ? > > ? ? > > ? ? > > ? ? >Hi All, > ? ? > > ? ? >We have a dual P3-1200mhz 512M RAM server running Nagios 1.0 > ? ? monitoring 180 > ? ? >devices and 800 services. > ? ? > > ? ? >I have noticed that the number of nagios processes increase until > ? ? they reach a > ? ? >count of approx 1000 at which time the server complains it is > ? ? "out of memory" > ? ? >and starts shutting down services. > ? ? > > ? ? >I found that executing '/etc/rc.d/init.d/nagios reload' from cron > ? ? would "solve" > ? ? >the problem. The number of processes would return to approx 60 > ? ? and then start to > ? ? >climb again. I have the cron job execute every 30 mins. > ? ? > > ? ? >I took the config and put all the hosts, services, etc into > ? ? Netsaint 0.7 on a > ? ? >P2-350Mhz 128 mb RAM and processes rarely rise to over 100 and > ? ? then return to > ? ? >40-60. > ? ? > > ? ? >Note that I use the "default" option while compiling to maintain > ? ? backward > ? ? >compatibility for Netsaint. > ? ? > > ? ? >Has anyone else experienced this? Is there any way to restrict > ? ? the number of > ? ? >processes used by nagios. Note also that the big server also runs > ? ? MRTG/RRD on > ? ? >approx 20 devices, although mrtg process complete > ? ? > > ? ? >Any help appreciated > ? ? >Thanks > ? ? >Shane > ? ? > > ? ? > > ? ? > > ? ? > > >********************************************************************************************************************************************** > > ? ? >This email and its attachments are confidential subject to > ? ? copyright and may be legally privileged. If they have come to > > ? ? >you in error you should take no action based upon the contents > ? ? nor should you copy or show them to anyone. Please > ? ? >delete the email and its attachments and inform > ? ? administrators at gwf.com.au > ? ? >Any views or opinions expressed are those of the author and do > ? ? not necessarily represent those of George Weston Foods > ? ? >Ltd. > ? ? >Security: Internet email is not a completely secure medium, > ? ? please note this when considering the content of your message. > > ? ? >Viruses: We take precautions to ensure email is free of viruses > ? ? but cannot guarantee this. Accordingly we advise > ? ? >scanning all email and attachments > >********************************************************************************************************************************************* > > ? ? > > ? ? > > ? ? > > ? ? >------------------------------------------------------- > ? ? >This SF.net email is sponsored by: Get the new Palm Tungsten T > ? ? >handheld. Power & Color in a compact size! > ? ? > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en > ? ? >_______________________________________________ > ? ? >Nagios-users mailing list > ? ? >Nagios-users at lists.sourceforge.net > ? ? > https://lists.sourceforge.net/lists/listinfo/nagios-users > ? ? > > ? ? > > > ? ? -- > ? ? Russell Scibetti > ? ? Quadrix Solutions, Inc. > ? ? http://www.quadrix.com > ? ? (732) 235-2335, ext. 7038 > > > > > > ? ? ------------------------------------------------------- > ? ? This sf.net email is sponsored by:ThinkGeek > ? ? Welcome to geek heaven. > ? ? http://thinkgeek.com/sf > ? ? _______________________________________________ > ? ? Nagios-users mailing list > ? ? Nagios-users at lists.sourceforge.net > ? ? https://lists.sourceforge.net/lists/listinfo/nagios-users > -- Russell Scibetti Quadrix Solutions, Inc. http://www.quadrix.com (732) 235-2335, ext. 7038 [IMAGE] (Embedded image moved to file: pic16220.pcx) (See attached file: C.gif) (See attached file: att1.htm) -------------- next part -------------- A non-text attachment was scrubbed... Name: pic16220.pcx Type: application/octet-stream Size: 1498 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: C.gif Type: image/gif Size: 65 bytes Desc: Compuserve GIF URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: From gjfrater at bechtel.com Mon Dec 9 22:24:50 2002 From: gjfrater at bechtel.com (Frater, Greg J) Date: Mon, 9 Dec 2002 13:24:50 -0800 Subject: orca with Nagios logs Message-ID: Hello All, Has anyone looked into using Orca (http://www.orcaware.com/orca/) to generate rrd files for generating performance data graphs of Nagios checks? The web site says it can read data from arbitrary log files and put it into an rrd. Just wondering if anyone has tried this with Nagios logs. Thanks, Greg Frater WTP IT dept. 509 371 3537 gjfrater at bechtel.com ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From Gawain_Osborne at health.qld.gov.au Mon Dec 9 23:47:06 2002 From: Gawain_Osborne at health.qld.gov.au (Gawain Osborne) Date: Tue, 10 Dec 2002 08:47:06 +1000 Subject: Error with my_perl and utils.o on the make all Message-ID: Hi List, I am a definate newbie to Linux and also nagios. I've got the latest 1.0b6 version and at the make all I get the below...any ideas??? utils.c: In function `check_time_against_period': utils.c:1337: `my_perl' undeclared (first use in this function) utils.c:1337: (Each undeclared identifier is reported only once utils.c:1337: for each function it appears in.) utils.c: In function `get_next_valid_time': utils.c:1397: `my_perl' undeclared (first use in this function) utils.c: In function `get_datetime_string': utils.c:1475: `my_perl' undeclared (first use in this function) utils.c: In function `get_next_log_rotation_time': utils.c:1536: `my_perl' undeclared (first use in this function) utils.c: In function `drop_privileges': utils.c:1903: `my_perl' undeclared (first use in this function) utils.c: In function `open_command_file': utils.c:2108: `my_perl' undeclared (first use in this function) make[1]: *** [utils.o] Error 1 make[1]: Leaving directory `/home/cricket/linuxbuild/nagios-1.0b6/base' make: *** [all] Error 2 Cheers, Gawain ;-) Cheers, Gawain Osborne MCSE (NT4), CNE5 Information Services Systems Integration Officer - Novell Princess Alexandra Hospital PH: 3240 6848 ********************************************************************** This e-mail, including any attachments sent with it, is confidential and for the sole use of the intended recipient(s). This confidentiality is not waived or lost if you receive it and you are not the intended recipient(s), or if it is transmitted/ received in error. Any unauthorised use, alteration, disclosure, distribution or review of this e-mail is prohibited. It may be subject to a statutory duty of confidentiality if it relates to health service matters. If you are not the intended recipient(s), or if you have received this e-mail in error, you are asked to immediately notify the sender by telephone or by return e-mail. You should also delete this e-mail message and destroy any hard copies produced. ********************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcarro10 at sprintspectrum.com Tue Dec 10 00:24:25 2002 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Mon, 9 Dec 2002 17:24:25 -0600 Subject: orca with Nagios logs Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F2488@PKDWB03C.ad.sprint.com> I've gotten as far as downloading Orca and taking a cursory look at the docs. I also reconfigured/recompiled nagios with the --with-file-perfdata option, then defined the xpdfile_service_perfdata_file directive in nagios.cfg. I found the output to be pretty much what the doctor ordered, but I've still been giving this some thought. I've been wondering that if one configures/compiles nagios with --with-mysql-xdata, then would the necessary data be there to be able to do time-series graphing? Even as I write this, I'm looking over JpGraph: http://www.aditus.nu/jpgraph/ and wondering if this, plus PHP, plus the GD library, plus MySQL, aren't just the ticket for creating reports on-the-fly...? This way, we might be able to select a host, a timeperiod, and between 1 and N services, and kicking out graphs which would tell us what we need to know. The obvious win is that the data should only be written once (MySQL), thus keeping disk I/O down to a dull roar. I can't imagine any environment where there would be more than a handful of browsers set to refresh every 90 seconds, and thus the impact on the 'image creation' side should be nominal. Perhaps someone could scrutinize my idea...? jc > -----Original Message----- > From: Frater, Greg J [mailto:gjfrater at bechtel.com] > Sent: Monday, December 09, 2002 3:25 PM > To: 'nagios-users at lists.sourceforge.net' > Subject: [Nagios-users] orca with Nagios logs > > > Hello All, > > Has anyone looked into using Orca (http://www.orcaware.com/orca/) to > generate rrd files for generating performance data graphs of > Nagios checks? > The web site says it can read data from arbitrary log files > and put it into > an rrd. Just wondering if anyone has tried this with Nagios logs. > > Thanks, > > Greg Frater > WTP IT dept. > 509 371 3537 > gjfrater at bechtel.com > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From Gawain_Osborne at health.qld.gov.au Tue Dec 10 02:57:40 2002 From: Gawain_Osborne at health.qld.gov.au (Gawain Osborne) Date: Tue, 10 Dec 2002 11:57:40 +1000 Subject: Problem staring nagios Message-ID: Hi All, I have done a standard install of nagios-1.0 and i get the following when trying to start the service: [1039484421] Nagios 1.0 starting... (PID=15762) [1039484421] Finished daemonizing... (New PID=15763) [1039484421] Caught SIGSEGV, shutting down... then I tried to verify my setup and got this: [cricket at pa-linux-01 var]$ /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg Segmentation fault ..this is the second install, i thought the first got corrupted... ********************************************************************** This e-mail, including any attachments sent with it, is confidential and for the sole use of the intended recipient(s). This confidentiality is not waived or lost if you receive it and you are not the intended recipient(s), or if it is transmitted/ received in error. Any unauthorised use, alteration, disclosure, distribution or review of this e-mail is prohibited. It may be subject to a statutory duty of confidentiality if it relates to health service matters. If you are not the intended recipient(s), or if you have received this e-mail in error, you are asked to immediately notify the sender by telephone or by return e-mail. You should also delete this e-mail message and destroy any hard copies produced. ********************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: From Stanley.Hopcroft at IPAustralia.Gov.AU Tue Dec 10 05:37:29 2002 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Tue, 10 Dec 2002 15:37:29 +1100 Subject: Problem staring nagios In-Reply-To: ; from Gawain_Osborne@health.qld.gov.au on Tue, Dec 10, 2002 at 11:57:40AM +1000 References: Message-ID: <20021210153726.F301@IPAustralia.Gov.AU> Dear Sir, On Tue, Dec 10, 2002 at 11:57:40AM +1000, Gawain Osborne wrote: > Hi All, > > I have done a standard install of nagios-1.0 and i get the following when trying to start the service: > > [1039484421] Nagios 1.0 starting... (PID=15762) > [1039484421] Finished daemonizing... (New PID=15763) > [1039484421] Caught SIGSEGV, shutting down... > > then I tried to verify my setup and got this: > > [cricket at pa-linux-01 var]$ /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg > Segmentation fault > Did you get a core file (nagios.core in the directory you ran ... -v /usr/local/nagios/etc/nagios.cfg ? If so, please cd into the Nagios build directory ../nagios-1.0/base and then post the result of (Or do this with the usual Nagios path) gdb -c /path/to/core_file nagios set args -v /usr/local/nagios/etc/nagios.cfg r bt quit You should see something like tsitc> gdb nagios GNU gdb 4.18 (FreeBSD) Copyright 1998 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. (gdb) set args -v /usr/local/nagios/etc/nagios.cfg (gdb) r Starting program: /usr/home/anwsmh/build/nagios-1.0/base/nagios -v /usr/local/nagios/etc/nagios.cfg Nagios 1.0 Copyright (c) 1999-2002 Ethan Galstad (nagios at nagios.org) Last Modified: 11-24-2002 License: GPL Reading configuration data... Error: Cannot open resource file '/usr/local/nagios/etc/resource.cfg' for reading! Running pre-flight check on configuration data... Checking services... Checked 329 services. Checking hosts... Checked 189 hosts. Checking host groups... Checked 13 host groups. Checking contacts... Checked 39 contacts. Checking contact groups... Checked 14 contact groups. Checking service escalations... Checked 0 service escalations. Checking host group escalations... Checked 0 host group escalations. Checking service dependencies... Checked 30 service dependencies. Checking host escalations... Checked 0 host escalations. Checking host dependencies... Checked 0 host dependencies. Checking commands... Checked 87 commands. Checking time periods... Checked 12 time periods. Checking for circular paths between hosts... Checking for circular service execution dependencies... Checking global event handlers... Checking obsessive compulsive service processor command... Checking misc settings... Total Warnings: 0 Total Errors: 0 Things look okay - No serious problems were detected during the pre-flight check Program exited normally. (gdb) q tsitc> except yours will probably report the SEGV. If you did not get a core file then leave out the -c switch from gdb (eg gdb /usr/local/nagios/bin/nagios set args .. r bt q) > Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From greg_vickers at mbox.com.au Tue Dec 10 09:34:12 2002 From: greg_vickers at mbox.com.au (Greg Vickers) Date: Tue, 10 Dec 2002 18:34:12 +1000 Subject: Using shell script in command definition Message-ID: Hi all, I was wondering if anyone has used a (bash) shell script in one of their command definitions? My script just doesn't run from within my command definition: define command{ command_name service-notify-by-pager command_line echo -e "$SERVICEDESC$ on host $HOSTNAME$ is in a $SERVICESTATE$ state\041" | /bin/bash /usr/local/bin/create_pager_message $CONTACTPAGER$ } The script create_pager_message: #!/bin/bash #This script created 10/12/2002 for use with Nagios # #It crafts a message and places that message onto the ITS pager server #QUT usernames have to be set up on that server, contact Blah blah #on x0000 for configuration #Create unique filename FILE=sms.$(date -I).$$ #NOTE: TEMP location requires / appended to dir location! TEMP=/tmp/ LOGFILE=/var/log/nagios/smbclient_connections.log #check for args if [ "$#" -ne 1 ]; then echo -e "Usage: $0 \nScript expects the message text \ from stdio, e.g. echo \"This is a message.\" | create_pager_message" exit 0 fi echo "To: $1" > $TEMP$FILE echo "From: TALSS_Nagios" >> $TEMP$FILE echo -n "Message: " >> $TEMP$FILE cat 3<&0 >> $TEMP$FILE #Send $FILE to the sbm share on raven. There are currently two accounts #available to TALSS/SSS, sms002 & sms003. See 'Installing Nagios.doc' for #details. date '+%b %e %T' >> $LOGFILE smbclient //raven/sms_pager PASSWORD -U sms002 -c "lcd $TEMP;put $FILE;exit" >> $LOGFILE rm $TEMP$FILE As you can see, i'm not a fantastic script programmer! Has anyone got a bash shell script to run from within a command defintion? Thanks, Greg Vickers p.s. on a side note, my email from my regular email address isn't being allowed through to the sourceforge mail server! Anyone know who I contact to ask why this is so? --------------------------------------------------------------------- Would you like to receive faxes to your personal email address? You can with mBox. Visit http://www.mbox.com.au/fax ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From Markus.Kraus.hp at sysde.eads.net Tue Dec 10 10:35:05 2002 From: Markus.Kraus.hp at sysde.eads.net (Kraus, Markus) Date: Tue, 10 Dec 2002 10:35:05 +0100 Subject: Problems in compiling NRPE Message-ID: Hello @, I' ve got Problems in compiling NRPE under Tru64 4.0. Has anybody an idea? That' s the output of make all: cd ./src/; make ; cd .. make[1]: Entering directory `/usr/var/tmp/nrpe-1.5/src' gcc -g -O2 -DHAVE_CONFIG_H nrpe.c netutils.c -o nrpe nrpe.c: In function `wait_for_connections': nrpe.c:354: warning: passing arg 1 of `bzero' from incompatible pointer type nrpe.c: In function `handle_connection': nrpe.c:613: warning: passing arg 1 of `bzero' from incompatible pointer type netutils.c: In function `my_connect': netutils.c:71: warning: cast from pointer to integer of different size collect2: ld returned 1 exit status /bin/ld: Unresolved: snprintf make[1]: *** [nrpe] Error 1 make[1]: Leaving directory `/usr/var/tmp/nrpe-1.5/src' -------------- next part -------------- An HTML attachment was scrubbed... URL: From M.J.Hulsman01 at rf.rabobank.nl Tue Dec 10 10:55:46 2002 From: M.J.Hulsman01 at rf.rabobank.nl (Hulsman, MJ (Mike)) Date: Tue, 10 Dec 2002 10:55:46 +0100 Subject: Distributed SNMP monitoring. Message-ID: <11EB4559231448-1082@_rabobank.nl_> An embedded and charset-unspecified text was scrubbed... Name: not available URL: From p.miquet at hafiba.fr Tue Dec 10 10:59:55 2002 From: p.miquet at hafiba.fr (Pascal Miquet) Date: 10 Dec 2002 10:59:55 +0100 Subject: Permissions Error (Could not stat() comman d file ) In-Reply-To: References: Message-ID: <1039514391.14241.40.camel@moishe> For me on a RH8.0, APACHE 2.0.40-8 Nagios 1.0 Plugins 1.3 beta 2 I've got on the process info section: It appears as though Nagios is not running, so commands are temporarily unavailable... And according to Execution command, I can't commit specified commands. Seems to be a CGI authentication. Note that the previous version is running fine on my laptop with RH7.3 Regards Le lun 09/12/2002 ? 18:05, Chris Losch a ?crit : > Jon, > I am 99% sure, (from what I read in the ps -ef output, and httpd.conf) > > Relevant part from httpd.conf > ------------------------------------------ > # If you wish httpd to run as a different user or group, you must run > # httpd as root initially and it will switch. > # > # User/Group: The name (or #number) of the user/group to run httpd as. > # . On SCO (ODT 3) use "User nouser" and "Group nogroup". > # . On HPUX you may not be able to use shared memory as nobody, and the > # suggested workaround is to create a user www and use that user. > # NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET) > # when the value of (unsigned)Group is above 60000; > # don't use Group #-1 on these systems! > # > User apache > Group apache > > > I've even tried changing Group to 'nagiocmd', no luck with that either. > > NOTE This is APACHE 2 as supplied by REDHAT 8 CD's > Server version: Apache/2.0.40 > > Thanks for your suggestion anyway, > > I'm starting to wonder if this is an issue with Nagios on Apache2, has > anyone else got this working successfully? > > Chris > > -----Original Message----- > From: Jon Lyons [mailto:jlyons30 at yahoo.com] > Sent: 09 December 2002 15:28 > To: Chris Losch; 'Terry Inzauro' > Cc: 'nagios-users at lists.sourceforge.net' > Subject: Re: [Nagios-users] RE: Permissions Error (Could not stat() command > file ) > > > > Are you sure apache is running as "apache" and not "www"? > > > Chris Losch wrote: > > > Change of Subject line, things were getting confused.... > ---- > > > It was worth a try, still didnt work though *sigh* > > Just in case I'm missing something. > > ls -la /usr/local/nagios/var/rw > ----------------------------------------- > total 8 > drwxrwS--- 2 nagios nagiocmd 4096 Dec 6 17:20 . > drwxrwxr-x 4 nagios nagios 4096 Dec 9 14:37 .. > prw-rwx--- 1 nagios nagiocmd 0 Dec 6 17:20 nagios.cmd (after > chmod'ing with Terry Inzauro's suggestion - see below, default group perms > are rw-) > > /etc/group (relevant bits) > ---------------- > apache:x:48: > nobody:x:99: > nagios:x:500: > nagiocmd:x:501:nagios,nobody,apache > > ps -ef | grep httpd output > ------------------------- > root 10311 1 0 Dec06 ? 00:00:02 /usr/sbin/httpd > apache 14958 10311 0 14:28 ? 00:00:00 /usr/sbin/httpd > apache 14959 10311 0 14:28 ? 00:00:00 /usr/sbin/httpd > apache 14960 10311 0 14:28 ? 00:00:00 /usr/sbin/httpd > apache 14961 10311 0 14:28 ? 00:00:00 /usr/sbin/httpd > apache 14962 10311 0 14:28 ? 00:00:00 /usr/sbin/httpd > apache 14963 10311 0 14:28 ? 00:00:00 /usr/sbin/httpd > apache 14964 10311 0 14:28 ? 00:00:00 /usr/sbin/httpd > apache 14965 10311 0 14:28 ? 00:00:00 /usr/sbin/httpd > apache 15022 10311 0 14:28 ? 00:00:00 /usr/sbin/httpd > root 16310 15956 0 14:34 pts/3 00:00:00 grep httpd > > ps -ef | grep nagios > --------------------------- > nagios 8504 1 0 Dec06 ? 00:03:52 /usr/local/nagios/bin/nagios > -d > (lots, but all the same) > > I'm not wrong in thinking that the httpd is running under the APACHE user, > am I? > > Thanks > Chris > > > -----Original Message----- > From: Terry Inzauro [mailto:tinzauro at axiomintegration.com] > Sent: 06 December 2002 19:27 > To: Chris Losch > Subject: RE: [Nagios-users] RE: Permissions Error > > > I think the nagios user,the apache user need to have write access rwx access > to that file. make sure that each of the respective users have the > necessary perms. or just add the nagios user to the group owner in the > /etc/group file. > > worth a try? > > Terry Inzauro > > > On Fri, 2002-12-06 at 11:31, Chris Losch wrote: > > I'm afraid its a case of been there, done that... > > but just in case I did something wrong, I tried again... > > Stopped Nagios and $INSTALLPATH/var/rw/nagios.cmd disappeared (as it should > - see I even tried reading the manual :-D ) > Used the /etc/rc.d/init/nagios script to start it, > $INSTALLPATH/var/rw/nagios.cmd re-appears with the default permissions > > prw-rw---- 1 nagios nagiocmd 0 Dec 6 17:20 nagios.cmd > > CHMOD'd 777 it, still receiving the same error when attempting the command. > > Have even tried restarting the httpd :( which runs under the 'apache' user, > which is part of the nagiocmd group. > > Incidently the parent (rw) directory has the permissions, > > drwxrwS--- 2 nagios nagiocmd 4096 Dec 6 17:20 rw > > Maybe someone will spot where im going wrong. > Anyway, have a good weekend all. > Chris > > -----Original Message----- > From: Terry Inzauro [mailto:tinzauro at axiomintegration.com] > Sent: 06 December 2002 15:12 > To: Chris Losch > Cc: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] RE: Permissions Error > > > I cam across the same error once. If there was a nagios process running, > kill it. If there is a $INSTALLPATH/var/rw/nagios.cmd file, delete it. > Next, start nagios with the /etc/rc.d/init/nagios script. Then try the > request again. If does the same thing. try chmodddddding the > $INSTALLPATH/var/rw/nagios.cmd file for something like 777, then work it > backwards from there. > > Terry Inzauro > > > On Fri, 2002-12-06 at 06:41, Chris Losch wrote: > > FYI, > > I have just built up a clean install of Redhat 8, and Nagios1.0 > I have got Authentication setup and working ok (I can view cgi's), however I > am unable to send commands from the Web Pages to Nagios (Scheduling Checks > etc.) > > I am recieving the error > > Error: Could not stat() command file > '/usr/local/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. > :( > > If possible I would suggest you backup the config CGI's (hosts services etc) > and start over, it seems to be easier than troubleshooting. > > Chris... yup another Chris. > > Just for reference I've included the bits below so you can cross reference > your config files. > > cgi.cfg > ------- > authorized_for_system_information=xxxx,nagiosadmin, > authorized_for_system_commands=xxxx,nagiosadmin, > authorized_for_configuration_information=xxxx,nagiosadmin, > authorized_for_all_hosts=xxxx,nagiosadmin, > authorized_for_all_host_commands=xxxx,nagiosadmin, > authorized_for_all_services=xxxx,nagiosadmin, > authorized_for_all_service_commands=xxxx,nagiosadmin, > > .htaccess (in /usr/local/nagios/share/ and /usr/local/nagios/sbin/) > --------- > AuthName "Nagios Access" > AuthType Basic > AuthUserFile /usr/local/nagios/etc/htpasswd.users > > /usr/local/nagios/etc/htpasswd.users > ------------------------------------ > nagiosadmin: > > /etc/httpd/conf/httpd.conf (added the following, otherwise, no changes from > default) > -------------------------- > ScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/ > > AllowOverride AuthConfig > Options ExecCGI > Order allow,deny > Allow from all > > > Alias /nagios/ /usr/local/nagios/share/ > > Options None > AllowOverride AuthConfig > Order allow,deny > Allow from all > > > /etc/local/nagios/etc/contacts.cfg > ---------------------------------- > define contact { > contact_name nagiosadmin > alias Nagios Admin > service_notification_period 24x7 > host_notification_period 24x7 > service_notification_options w,u,c,r > host_notification_options d,u,r > service_notification_commands notify-by-email,notify-by-epager > host_notification_commands host-notify-by-email,host-notify-by-epager > email nagios-admin at localhost.localdomain > pager pagenagios-admin at localhost.localdomain > } > > /etc/local/nagios/etc/nagios.cfg > --------------------------------- > # > # nagios.cfg - Config file for Nagios (www.nagios.org) > # > # Written by Nagat. Manually editing this file is a bad idea since Nagat > will > # overwrite it. Delete the nagatobj.dat file in the nagios/etc directory to > # reread the Nagios configuration. > # > log_file=/usr/local/nagios/var/nagios.log > cfg_file=/usr/local/nagios/etc/checkcommands.cfg > cfg_file=/usr/local/nagios/etc/misccommands.cfg > cfg_file=/usr/local/nagios/etc/contactgroups.cfg > cfg_file=/usr/local/nagios/etc/contacts.cfg > cfg_file=/usr/local/nagios/etc/dependencies.cfg > cfg_file=/usr/local/nagios/etc/escalations.cfg > cfg_file=/usr/local/nagios/etc/hostgroups.cfg > cfg_file=/usr/local/nagios/etc/hosts.cfg > cfg_file=/usr/local/nagios/etc/services.cfg > cfg_file=/usr/local/nagios/etc/timeperiods.cfg > resource_file=/usr/local/nagios/etc/resource.cfg > status_file=/usr/local/nagios/var/status.log > nagios_user=nagios > nagios_group=nagios > check_external_commands=1 > command_check_interval=-1 > command_file=/usr/local/nagios/var/rw/nagios.cmd > comment_file=/usr/local/nagios/var/comment.log > downtime_file=/usr/local/nagios/var/downtime.log > lock_file=/usr/local/nagios/var/nagios.lock > temp_file=/usr/local/nagios/var/nagios.tmp > log_rotation_method=d > log_archive_path=/usr/local/nagios/var/archives > use_syslog=1 > log_notifications=1 > log_service_retries=1 > log_host_retries=1 > log_event_handlers=1 > log_initial_states=0 > log_external_commands=1 > log_passive_service_checks=1 > inter_check_delay_method=s > service_interleave_factor=s > max_concurrent_checks=0 > service_reaper_frequency=10 > sleep_time=1 > service_check_timeout=60 > host_check_timeout=30 > event_handler_timeout=30 > notification_timeout=30 > ocsp_timeout=5 > perfdata_timeout=5 > retain_state_information=1 > state_retention_file=/usr/local/nagios/var/status.sav > retention_update_interval=60 > use_retained_program_state=0 > interval_length=60 > use_agressive_host_checking=0 > execute_service_checks=1 > accept_passive_service_checks=1 > enable_notifications=1 > enable_event_handlers=1 > process_performance_data=0 > obsess_over_services=0 > check_for_orphaned_services=0 > check_service_freshness=1 > freshness_check_interval=60 > aggregate_status_updates=1 > status_update_interval=15 > enable_flap_detection=0 > low_service_flap_threshold=5.0 > high_service_flap_threshold=20.0 > low_host_flap_threshold=5.0 > high_host_flap_threshold=20.0 > date_format=euro > illegal_object_name_chars=`~!$%^&*|'"<>?,()= > illegal_macro_output_chars=`~$&|'"<> > admin_email=nagios > admin_pager=pagenagios > > > > > > > > > > -----Original Message----- > From: Chris Fairbanks [ > mailto:ChrisF at winterlink.net] > Sent: 06 December 2002 07:22 > To: Chris Fairbanks; wrnash; Potter, G M (Greg); Nagios-users (E-mail) > Cc: Robertson, Brown > Subject: RE: [Nagios-users] RE: Permissions Error > > > Another interesting tibit, I tired disabling use_authentication and > setting up a default user, but I still get the same issues. > > Thanks > Chris > > > -----Original Message----- > From: Chris Fairbanks > Sent: Thursday, December 05, 2002 10:47 PM > To: wrnash; Potter, G M (Greg); Nagios-users (E-mail) > Cc: Robertson, Brown > Subject: RE: [Nagios-users] RE: Permissions Error > > > My httpasswd.users file and everything is setup totally correctly and > use_authentication=1 is set. I have also tried setting all the > authorized_for's = * but to no avail. From the sounds of it, it looks > like this might be an issue with RH8.0 or Apache 2.0.40 that ships > default with RH8.0. Is there anyone on this list that has Nagios > working on RH8.0? > > Thanks, > Chris > > > > > ********************************************************************** > Important: > This e-mail is intended for the above named person only and should be > treated as confidential. If this has come to you in error you should take > no action based on it, nor should you copy or show it to anyone; > please telephone us immediately. > ********************************************************************** > > > > Terry Inzauro > Systems Engineer > > Email: > tinzauro at axiomintegration.com > > Phone: 402.345.5500 > > Fax: 402.345.5501 > > US Mail: Axiom Integration, Inc. > > One Owen Pkwy > > 2200 Abbott Drive > > Carter Lake, IA > 51510 > > > Terry Inzauro > Systems Engineer > > Email: > tinzauro at axiomintegration.com > > Phone: 402.345.5500 > > Fax: 402.345.5501 > > US Mail: Axiom Integration, Inc. > > One Owen Pkwy > > 2200 Abbott Drive > > Carter Lake, IA 51510 > > > > > > _____ > > Do you Yahoo!? > Yahoo! Mail > Plus - Powerful. Affordable. Sign up > now > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From leoandrade at deloitte.com.br Tue Dec 10 12:40:16 2002 From: leoandrade at deloitte.com.br (Andrade, Leonardo F. Buonsanti de (IT - Brasil)) Date: Tue, 10 Dec 2002 09:40:16 -0200 Subject: =?iso-8859-1?Q?Can=B4t_Start_Nagios_and_use_external_commands?= Message-ID: <190E5F64C065D511B7120002555822CE0220ADBD@brspo0400.br.deloitte.com> Sometimes when I finish installing nagios, I can't start it from the /etc/rc.d/init.d/nagios script, ( but I've installed it ), it shows the headers of the process but it doesn?t show the PID and other things... And, I can?t use the web interface to send commands, like disabling checks for some host. Should I configure it with that -with-command-grp option ??? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From jasmine.chua at securecirt.com Tue Dec 10 13:56:53 2002 From: jasmine.chua at securecirt.com (Jasmine Chua) Date: Tue, 10 Dec 2002 20:56:53 +0800 Subject: =?iso-8859-1?q?Can=B4t=20Start=20Nagios=20and=20use=20external?= commands In-Reply-To: <190E5F64C065D511B7120002555822CE0220ADBD@brspo0400.br.deloitte.com> References: <190E5F64C065D511B7120002555822CE0220ADBD@brspo0400.br.deloitte.com> Message-ID: <200212102057.03266.jasmine.chua@securecirt.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Have you checked your configuration? /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg On Tuesday 10 December 2002 19:40, Andrade, Leonardo F. Buonsanti de (IT - Brasil) wrote: > Sometimes when I finish installing nagios, I can't start it from the > /etc/rc.d/init.d/nagios script, ( but I've installed it ), it shows the > headers of the process but it doesn?t show the PID and other things... > And, I can?t use the web interface to send commands, like disabling checks > for some host. > Should I configure it with that -with-command-grp option ??? > Thanks - -- Jasmine Chua Security Engineer, SecureCiRT (A SBU of Z-Vance Pte Ltd) http://www.securecirt.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE99eSdNgvTa7Hj2AURAuNYAJ9J2mOCrW5A24uaXvCqFya2gMVcSgCdEwU5 +7aq78dBV8jFl654W5V+SLg= =wzy/ -----END PGP SIGNATURE----- ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From p.miquet at hafiba.fr Tue Dec 10 13:59:57 2002 From: p.miquet at hafiba.fr (Pascal Miquet) Date: 10 Dec 2002 13:59:57 +0100 Subject: Problems in compiling NRPE In-Reply-To: References: Message-ID: <1039523644.14243.53.camel@moishe> First you've got warning according to mismatch types of arguments, so result may not work. Finally the linker didn't find the snprintf function. This implies that this function is not implemented on the TRUE64, or is defined into another library. HTH Regards. Pascal Miquet Le mar 10/12/2002 ? 10:35, Kraus, Markus a ?crit : > Hello @, > I' ve got Problems in compiling NRPE under Tru64 4.0. Has anybody an idea? > > That' s the output of make all: > cd ./src/; make ; cd .. > make[1]: Entering directory `/usr/var/tmp/nrpe-1.5/src' > gcc -g -O2 -DHAVE_CONFIG_H nrpe.c netutils.c -o nrpe > nrpe.c: In function `wait_for_connections': > nrpe.c:354: warning: passing arg 1 of `bzero' from incompatible pointer type > nrpe.c: In function `handle_connection': > nrpe.c:613: warning: passing arg 1 of `bzero' from incompatible pointer type > netutils.c: In function `my_connect': > netutils.c:71: warning: cast from pointer to integer of different size > collect2: ld returned 1 exit status > /bin/ld: > Unresolved: > snprintf > make[1]: *** [nrpe] Error 1 > make[1]: Leaving directory `/usr/var/tmp/nrpe-1.5/src' > > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From freddy.frouin at fluxus.net Tue Dec 10 14:17:49 2002 From: freddy.frouin at fluxus.net (Freddy Frouin) Date: Tue, 10 Dec 2002 14:17:49 +0100 Subject: [Nagios/Netsaint] Performances Ask Message-ID: <20021210141749.245886bb.freddy.frouin@fluxus.net> Hi, I would like to get informations about netsaint/nagios users experiences. I have the following server architecture: - Bi-processor (pentium III - 500Mhz) - 1 Go RAM - SCSI (Hardware Raid 1) disks - Linux 2.4.2-2 How many services (with an average check of 5min for all services) do you think you could make check to get an average load less than 1 on such harware & os ? Regards, Freddy. -- Freddy Frouin Responsable Supervision British Telecom / Fluxus 30, rue du Ch?teau des Rentiers 75013 Paris T?l: +33 (0)1 44 97 70 00 Fax: +33 (0)1 44 97 70 07 ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From john.wilhelm at frontiercorp.com Tue Dec 10 14:46:26 2002 From: john.wilhelm at frontiercorp.com (Wilhelm, John) Date: Tue, 10 Dec 2002 08:46:26 -0500 Subject: remote plugins and ssh problem Message-ID: <5070FD2FA9CF484C883AC33034027E6A01AB2121@nyrofcs2kexch01.east.frontiercorp.com> Hello, I am having problems checking remote services (file systems, users, load, .....) using check_by_ssh. Error received in Netsaint is "Host key verification failed." I run the command ( check_by_ssh -H -l netsaint -C < command on remote machine> ) from the shell as the netsaint user and the command executes they way it should. Just for fun, I scheduled a cron job using netsaint's crontab and the job executed the way it should have. It seems as if in my environment the Netsaint core engine cannot execute plugins that use ssh. Some sort of thread issue, when it gets to the second child that uses the ssh command, it will not authenticate. I have also written some plugins that can use either ssh or rsh. When using rsh the plugins work great. When using ssh through the Netsaint engine, same type of authentication problems occur as with check_by_ssh. When I execute the plugins from the shell or cron, they return the results as expected. I have generated pub/priv keys and have created the authorized_keys file on the remote systems as expected. All testing from command line works fine. I am running Netsaint 0.0.7 on Redhat Linux 7.2. Netsaint process's are all owned by the netsaint user who is part of the netsaint group. Netsaint is started with the standard netsaint script -> /etc/init.d/netsaint. Ssh version: 3.4p1 Remote ssh version's: 2.92 & 3.4p1 Can anyone help? Has anyone successfully implemented remote plugins using ssh? Does nagios solve this problem? -john w -------------- next part -------------- An HTML attachment was scrubbed... URL: From Chris.Losch at newham.gov.uk Tue Dec 10 14:13:03 2002 From: Chris.Losch at newham.gov.uk (Chris Losch) Date: Tue, 10 Dec 2002 13:13:03 -0000 Subject: Permissions Error (Could not stat() comman d file ) Message-ID: It would seem I'm paying for running on the b-leading-edge again. Unless anyone has got Nagios successfully working on RH 8 and APACHE 2, looks like i'm going to revert to RH7.3 and Apache 1.3. I can't see anything wrong with the setup, yet it doesn't work. The last thing I'm going to attempt is running a STRACE on httpd and nagios, as suggested by Greg Potter, to see if i can spot anything in there... if not.. well... 1st things 1st. Will post an update after lunch (hey, we have to have priorities!) Chris -----Original Message----- From: Pascal Miquet [mailto:p.miquet at hafiba.fr] Sent: 10 December 2002 10:00 To: Chris Losch Cc: 'Jon Lyons'; 'nagios-users at lists.sourceforge.net' Subject: RE: [Nagios-users] RE: Permissions Error (Could not stat() comman d file ) For me on a RH8.0, APACHE 2.0.40-8 Nagios 1.0 Plugins 1.3 beta 2 I've got on the process info section: It appears as though Nagios is not running, so commands are temporarily unavailable... And according to Execution command, I can't commit specified commands. Seems to be a CGI authentication. Note that the previous version is running fine on my laptop with RH7.3 Regards Le lun 09/12/2002 ? 18:05, Chris Losch a ?crit : > Jon, > I am 99% sure, (from what I read in the ps -ef output, and httpd.conf) > > Relevant part from httpd.conf > ------------------------------------------ > # If you wish httpd to run as a different user or group, you must run > # httpd as root initially and it will switch. > # > # User/Group: The name (or #number) of the user/group to run httpd as. > # . On SCO (ODT 3) use "User nouser" and "Group nogroup". > # . On HPUX you may not be able to use shared memory as nobody, and the > # suggested workaround is to create a user www and use that user. > # NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET) > # when the value of (unsigned)Group is above 60000; > # don't use Group #-1 on these systems! > # > User apache > Group apache > > > I've even tried changing Group to 'nagiocmd', no luck with that either. > > NOTE This is APACHE 2 as supplied by REDHAT 8 CD's > Server version: Apache/2.0.40 > > Thanks for your suggestion anyway, > > I'm starting to wonder if this is an issue with Nagios on Apache2, has > anyone else got this working successfully? > > Chris > > -----Original Message----- > From: Jon Lyons [mailto:jlyons30 at yahoo.com] > Sent: 09 December 2002 15:28 > To: Chris Losch; 'Terry Inzauro' > Cc: 'nagios-users at lists.sourceforge.net' > Subject: Re: [Nagios-users] RE: Permissions Error (Could not stat() command > file ) > > > > Are you sure apache is running as "apache" and not "www"? > > > Chris Losch wrote: > > > Change of Subject line, things were getting confused.... > ---- > > > It was worth a try, still didnt work though *sigh* > > Just in case I'm missing something. > > ls -la /usr/local/nagios/var/rw > ----------------------------------------- > total 8 > drwxrwS--- 2 nagios nagiocmd 4096 Dec 6 17:20 . > drwxrwxr-x 4 nagios nagios 4096 Dec 9 14:37 .. > prw-rwx--- 1 nagios nagiocmd 0 Dec 6 17:20 nagios.cmd (after > chmod'ing with Terry Inzauro's suggestion - see below, default group perms > are rw-) > > /etc/group (relevant bits) > ---------------- > apache:x:48: > nobody:x:99: > nagios:x:500: > nagiocmd:x:501:nagios,nobody,apache > > ps -ef | grep httpd output > ------------------------- > root 10311 1 0 Dec06 ? 00:00:02 /usr/sbin/httpd > apache 14958 10311 0 14:28 ? 00:00:00 /usr/sbin/httpd > apache 14959 10311 0 14:28 ? 00:00:00 /usr/sbin/httpd > apache 14960 10311 0 14:28 ? 00:00:00 /usr/sbin/httpd > apache 14961 10311 0 14:28 ? 00:00:00 /usr/sbin/httpd > apache 14962 10311 0 14:28 ? 00:00:00 /usr/sbin/httpd > apache 14963 10311 0 14:28 ? 00:00:00 /usr/sbin/httpd > apache 14964 10311 0 14:28 ? 00:00:00 /usr/sbin/httpd > apache 14965 10311 0 14:28 ? 00:00:00 /usr/sbin/httpd > apache 15022 10311 0 14:28 ? 00:00:00 /usr/sbin/httpd > root 16310 15956 0 14:34 pts/3 00:00:00 grep httpd > > ps -ef | grep nagios > --------------------------- > nagios 8504 1 0 Dec06 ? 00:03:52 /usr/local/nagios/bin/nagios > -d > (lots, but all the same) > > I'm not wrong in thinking that the httpd is running under the APACHE user, > am I? > > Thanks > Chris > > > -----Original Message----- > From: Terry Inzauro [mailto:tinzauro at axiomintegration.com] > Sent: 06 December 2002 19:27 > To: Chris Losch > Subject: RE: [Nagios-users] RE: Permissions Error > > > I think the nagios user,the apache user need to have write access rwx access > to that file. make sure that each of the respective users have the > necessary perms. or just add the nagios user to the group owner in the > /etc/group file. > > worth a try? > > Terry Inzauro > > > On Fri, 2002-12-06 at 11:31, Chris Losch wrote: > > I'm afraid its a case of been there, done that... > > but just in case I did something wrong, I tried again... > > Stopped Nagios and $INSTALLPATH/var/rw/nagios.cmd disappeared (as it should > - see I even tried reading the manual :-D ) > Used the /etc/rc.d/init/nagios script to start it, > $INSTALLPATH/var/rw/nagios.cmd re-appears with the default permissions > > prw-rw---- 1 nagios nagiocmd 0 Dec 6 17:20 nagios.cmd > > CHMOD'd 777 it, still receiving the same error when attempting the command. > > Have even tried restarting the httpd :( which runs under the 'apache' user, > which is part of the nagiocmd group. > > Incidently the parent (rw) directory has the permissions, > > drwxrwS--- 2 nagios nagiocmd 4096 Dec 6 17:20 rw > > Maybe someone will spot where im going wrong. > Anyway, have a good weekend all. > Chris > > -----Original Message----- > From: Terry Inzauro [mailto:tinzauro at axiomintegration.com] > Sent: 06 December 2002 15:12 > To: Chris Losch > Cc: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] RE: Permissions Error > > > I cam across the same error once. If there was a nagios process running, > kill it. If there is a $INSTALLPATH/var/rw/nagios.cmd file, delete it. > Next, start nagios with the /etc/rc.d/init/nagios script. Then try the > request again. If does the same thing. try chmodddddding the > $INSTALLPATH/var/rw/nagios.cmd file for something like 777, then work it > backwards from there. > > Terry Inzauro > > > On Fri, 2002-12-06 at 06:41, Chris Losch wrote: > > FYI, > > I have just built up a clean install of Redhat 8, and Nagios1.0 > I have got Authentication setup and working ok (I can view cgi's), however I > am unable to send commands from the Web Pages to Nagios (Scheduling Checks > etc.) > > I am recieving the error > > Error: Could not stat() command file > '/usr/local/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. > :( > > If possible I would suggest you backup the config CGI's (hosts services etc) > and start over, it seems to be easier than troubleshooting. > > Chris... yup another Chris. > > Just for reference I've included the bits below so you can cross reference > your config files. > > cgi.cfg > ------- > authorized_for_system_information=xxxx,nagiosadmin, > authorized_for_system_commands=xxxx,nagiosadmin, > authorized_for_configuration_information=xxxx,nagiosadmin, > authorized_for_all_hosts=xxxx,nagiosadmin, > authorized_for_all_host_commands=xxxx,nagiosadmin, > authorized_for_all_services=xxxx,nagiosadmin, > authorized_for_all_service_commands=xxxx,nagiosadmin, > > .htaccess (in /usr/local/nagios/share/ and /usr/local/nagios/sbin/) > --------- > AuthName "Nagios Access" > AuthType Basic > AuthUserFile /usr/local/nagios/etc/htpasswd.users > > /usr/local/nagios/etc/htpasswd.users > ------------------------------------ > nagiosadmin: > > /etc/httpd/conf/httpd.conf (added the following, otherwise, no changes from > default) > -------------------------- > ScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/ > > AllowOverride AuthConfig > Options ExecCGI > Order allow,deny > Allow from all > > > Alias /nagios/ /usr/local/nagios/share/ > > Options None > AllowOverride AuthConfig > Order allow,deny > Allow from all > > > /etc/local/nagios/etc/contacts.cfg > ---------------------------------- > define contact { > contact_name nagiosadmin > alias Nagios Admin > service_notification_period 24x7 > host_notification_period 24x7 > service_notification_options w,u,c,r > host_notification_options d,u,r > service_notification_commands notify-by-email,notify-by-epager > host_notification_commands host-notify-by-email,host-notify-by-epager > email nagios-admin at localhost.localdomain > pager pagenagios-admin at localhost.localdomain > } > > /etc/local/nagios/etc/nagios.cfg > --------------------------------- > # > # nagios.cfg - Config file for Nagios (www.nagios.org) > # > # Written by Nagat. Manually editing this file is a bad idea since Nagat > will > # overwrite it. Delete the nagatobj.dat file in the nagios/etc directory to > # reread the Nagios configuration. > # > log_file=/usr/local/nagios/var/nagios.log > cfg_file=/usr/local/nagios/etc/checkcommands.cfg > cfg_file=/usr/local/nagios/etc/misccommands.cfg > cfg_file=/usr/local/nagios/etc/contactgroups.cfg > cfg_file=/usr/local/nagios/etc/contacts.cfg > cfg_file=/usr/local/nagios/etc/dependencies.cfg > cfg_file=/usr/local/nagios/etc/escalations.cfg > cfg_file=/usr/local/nagios/etc/hostgroups.cfg > cfg_file=/usr/local/nagios/etc/hosts.cfg > cfg_file=/usr/local/nagios/etc/services.cfg > cfg_file=/usr/local/nagios/etc/timeperiods.cfg > resource_file=/usr/local/nagios/etc/resource.cfg > status_file=/usr/local/nagios/var/status.log > nagios_user=nagios > nagios_group=nagios > check_external_commands=1 > command_check_interval=-1 > command_file=/usr/local/nagios/var/rw/nagios.cmd > comment_file=/usr/local/nagios/var/comment.log > downtime_file=/usr/local/nagios/var/downtime.log > lock_file=/usr/local/nagios/var/nagios.lock > temp_file=/usr/local/nagios/var/nagios.tmp > log_rotation_method=d > log_archive_path=/usr/local/nagios/var/archives > use_syslog=1 > log_notifications=1 > log_service_retries=1 > log_host_retries=1 > log_event_handlers=1 > log_initial_states=0 > log_external_commands=1 > log_passive_service_checks=1 > inter_check_delay_method=s > service_interleave_factor=s > max_concurrent_checks=0 > service_reaper_frequency=10 > sleep_time=1 > service_check_timeout=60 > host_check_timeout=30 > event_handler_timeout=30 > notification_timeout=30 > ocsp_timeout=5 > perfdata_timeout=5 > retain_state_information=1 > state_retention_file=/usr/local/nagios/var/status.sav > retention_update_interval=60 > use_retained_program_state=0 > interval_length=60 > use_agressive_host_checking=0 > execute_service_checks=1 > accept_passive_service_checks=1 > enable_notifications=1 > enable_event_handlers=1 > process_performance_data=0 > obsess_over_services=0 > check_for_orphaned_services=0 > check_service_freshness=1 > freshness_check_interval=60 > aggregate_status_updates=1 > status_update_interval=15 > enable_flap_detection=0 > low_service_flap_threshold=5.0 > high_service_flap_threshold=20.0 > low_host_flap_threshold=5.0 > high_host_flap_threshold=20.0 > date_format=euro > illegal_object_name_chars=`~!$%^&*|'"<>?,()= > illegal_macro_output_chars=`~$&|'"<> > admin_email=nagios > admin_pager=pagenagios > ********************************************************************** Important: This e-mail is intended for the above named person only and should be treated as confidential. If this has come to you in error you should take no action based on it, nor should you copy or show it to anyone; please telephone us immediately. ********************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: From robin_brown at totalcomm.com Tue Dec 10 15:36:24 2002 From: robin_brown at totalcomm.com (Robin Brown) Date: Tue, 10 Dec 2002 09:36:24 -0500 Subject: Cisco check_snmp issue Message-ID: <000001c2a059$83fb1940$0bb0a8c0@rbrown> Hello all, I am trying to use Nagios v1.0 to check the temperature readings on a Cisco router using the check_snmp plugin from the nagiosplug-1.3-beta1. I can only get it to work by leaving off the warning and critical options, of course I can't alert unless I can specify what to alert on. I get the "Return code 138 is out of bounds" error when run from within Nagios and a bus error when using them on the command line. Interestingly enough, I am using the same plugin to check on the router power supply status with a warning/critical flag and that operates normally. Of course the number returned from that check is either a 1 or 2 for on or off. The temperature checks return 2-digit numbers, I'm not sure if this is the issue or not. Below are the checkcommands.cfg and services.cfg entries: checkcommands.cfg: # 'check_snmp' generic command definition define command{ command_name check_snmp command_line $USER1$/check_snmp -H $HOSTADDRESS$ -o $ARG1$ -w $ARG2$ -c $ARG3$ -C $ARG4$ $ARG5$ $ARG6$ $ARG7$ $ARG8$ $ARG9$ } # Check Cisco stuff # Working check for power supply status define command{ command_name check_cisco command_line $USER1$/check_snmp -H $HOSTADDRESS$ -o $ARG1$ -w $ARG2$ -c $ARG3$ -C $ARG4$ } # Working for temperature readings without the warning critical options define command{ command_name check_cisco_temp command_line $USER1$/check_snmp -H $HOSTADDRESS$ -o $ARG1$ -C $ARG2$ } # Not working for temperature readings with the warning critical options define command{ command_name check_cisco_temp command_line $USER1$/check_snmp -H $HOSTADDRESS$ -o $ARG1$ -C $ARG2$ -w $ARG3$ -c $ARG4$ } Services.cfg: # Working check for power supply status define service{ use generic-service host_name router-1 service_description PWR2 contact_groups router-admins notification_options w,c check_command check_cisco!.1.3.6.1.4.1.9.9.13.1.5.1.3.2!2!2!comstring } # This only works without the warning and critical flags # Check Cisco Temperature limits define service{ use generic-service host_name router-1 service_description Temp-inlet contact_groups router-admins notification_options w,c check_command check_cisco_temp!.1.3.6.1.4.1.9.9.13.1.3.1.3.1!comstring } # This will not work using the warning and critical flags # Check Cisco Temperature limits define service{ use generic-service host_name router-1 service_description Temp-inlet contact_groups router-admins notification_options w,c check_command check_cisco_temp!.1.3.6.1.4.1.9.9.13.1.3.1.3.1!comstring!35!45 } Thanks and regards, Robin ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From SERGEY.POPENKO at CIBC.com Tue Dec 10 15:38:53 2002 From: SERGEY.POPENKO at CIBC.com (POPENKO, SERGEY) Date: Tue, 10 Dec 2002 09:38:53 -0500 Subject: nagios veritas netbackup plugin? Message-ID: <5163917CBE4BD511A4C9009027E7712306A0C59B@gemmrd-scc007eu.gem.cibc.com> Is there anything written to monitor Veritas NetBackup? Thanks upfront. Sergey Popenko Technical Analyst eChannels Infrastructure Services Group CIBC T: (416)980-6218 E: sergey.popenko at cibc.com 20 Dundas Street West 5th Floor Toronto, Ontario -------------- next part -------------- An HTML attachment was scrubbed... URL: From jasmine.chua at securecirt.com Tue Dec 10 16:06:42 2002 From: jasmine.chua at securecirt.com (Jasmine Chua) Date: Tue, 10 Dec 2002 23:06:42 +0800 Subject: Nagios latency Message-ID: <200212102307.11233.jasmine.chua@securecirt.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I am currently facing a problem with latency on my Nagios-1.0 I am in a hurry to bring it down. Just wonder if anyone could help me, I have sent my problem to the mailing list a couple of times, but to no avail. Have been trying to tweak with my max_concurrent_checks and service reaper, but things just dont work out right. Nagios is able to receive and process service checks now, but has an average latency of 206 secs and my average execution time is 2.438 secs. SERVICE SCHEDULING INFORMATION ------------------------------- Total services: 156 Total hosts: 21 Command check interval: -1 sec Check reaper interval: 5 sec Inter-check delay method: SMART Average check interval: 60.000 sec Inter-check delay: 0.385 sec Interleave factor method: SMART Average services per host: 7.429 Service interleave factor: 8 Initial service check scheduling info: -------------------------------------- First scheduled check: 1039532077 -> Tue Dec 10 22:54:37 2002 Last scheduled check: 1039532138 -> Tue Dec 10 22:55:38 2002 Rough guidelines for max_concurrent_checks value: ------------------------------------------------- Absolute minimum value: 13 Recommend value: 39 command_check_interval=-1 max_concurrent_checks=39 service_reaper_frequency=5 service_check_timeout=90 host_check_timeout=20 aggregate_status_updates=1 status_update_interval=15 - -- Jasmine Chua Security Engineer, SecureCiRT (A SBU of Z-Vance Pte Ltd) http://www.securecirt.com - -- Jasmine Chua Security Engineer, SecureCiRT (A SBU of Z-Vance Pte Ltd) http://www.securecirt.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE99gMGNgvTa7Hj2AURAm7vAKCrn/qEnn9Wqb1k8mHq97hBVC1RGwCgvAmQ U/0MrWa9GI89VCQzgTXK96o= =8PMw -----END PGP SIGNATURE----- ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From gjfrater at bechtel.com Tue Dec 10 16:35:49 2002 From: gjfrater at bechtel.com (Frater, Greg J) Date: Tue, 10 Dec 2002 07:35:49 -0800 Subject: orca with Nagios logs Message-ID: Have any of the host/service checks had the performance data support added? According to the current Nagios doc's none had as of the writing of the documentation. If not is there any kind of time frame for this? Looks like the framework is there for this type of functionality but not quite ready for prime time. Apan is a great start in the right direction, but needs more plugins and a little more maturity for us. We unfortunately are in prime time and don't have the programming resources to build on the current framework. I may be able to make an elementary crack at some of the performance stuff after we get our monitoring system in production mode. I will definitely be watching this area with interest and if my schedule works out may try to do something with the existing functionality. -----Original Message----- From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] Sent: Monday, December 09, 2002 3:24 PM To: Frater, Greg J; 'nagios-users at lists.sourceforge.net' Subject: RE: [Nagios-users] orca with Nagios logs I've gotten as far as downloading Orca and taking a cursory look at the docs. I also reconfigured/recompiled nagios with the --with-file-perfdata option, then defined the xpdfile_service_perfdata_file directive in nagios.cfg. I found the output to be pretty much what the doctor ordered, but I've still been giving this some thought. I've been wondering that if one configures/compiles nagios with --with-mysql-xdata, then would the necessary data be there to be able to do time-series graphing? Even as I write this, I'm looking over JpGraph: http://www.aditus.nu/jpgraph/ and wondering if this, plus PHP, plus the GD library, plus MySQL, aren't just the ticket for creating reports on-the-fly...? This way, we might be able to select a host, a timeperiod, and between 1 and N services, and kicking out graphs which would tell us what we need to know. The obvious win is that the data should only be written once (MySQL), thus keeping disk I/O down to a dull roar. I can't imagine any environment where there would be more than a handful of browsers set to refresh every 90 seconds, and thus the impact on the 'image creation' side should be nominal. Perhaps someone could scrutinize my idea...? jc > -----Original Message----- > From: Frater, Greg J [mailto:gjfrater at bechtel.com] > Sent: Monday, December 09, 2002 3:25 PM > To: 'nagios-users at lists.sourceforge.net' > Subject: [Nagios-users] orca with Nagios logs > > > Hello All, > > Has anyone looked into using Orca (http://www.orcaware.com/orca/) to > generate rrd files for generating performance data graphs of > Nagios checks? > The web site says it can read data from arbitrary log files > and put it into > an rrd. Just wondering if anyone has tried this with Nagios logs. > > Thanks, > > Greg Frater > WTP IT dept. > 509 371 3537 > gjfrater at bechtel.com > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From gjfrater at bechtel.com Tue Dec 10 16:49:44 2002 From: gjfrater at bechtel.com (Frater, Greg J) Date: Tue, 10 Dec 2002 07:49:44 -0800 Subject: Nagios latency Message-ID: Lowering service_check_timeout helped me. Mine is currently set at 20. -----Original Message----- From: Jasmine Chua [mailto:jasmine.chua at securecirt.com] Sent: Tuesday, December 10, 2002 7:07 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Nagios latency -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I am currently facing a problem with latency on my Nagios-1.0 I am in a hurry to bring it down. Just wonder if anyone could help me, I have sent my problem to the mailing list a couple of times, but to no avail. Have been trying to tweak with my max_concurrent_checks and service reaper, but things just dont work out right. Nagios is able to receive and process service checks now, but has an average latency of 206 secs and my average execution time is 2.438 secs. SERVICE SCHEDULING INFORMATION ------------------------------- Total services: 156 Total hosts: 21 Command check interval: -1 sec Check reaper interval: 5 sec Inter-check delay method: SMART Average check interval: 60.000 sec Inter-check delay: 0.385 sec Interleave factor method: SMART Average services per host: 7.429 Service interleave factor: 8 Initial service check scheduling info: -------------------------------------- First scheduled check: 1039532077 -> Tue Dec 10 22:54:37 2002 Last scheduled check: 1039532138 -> Tue Dec 10 22:55:38 2002 Rough guidelines for max_concurrent_checks value: ------------------------------------------------- Absolute minimum value: 13 Recommend value: 39 command_check_interval=-1 max_concurrent_checks=39 service_reaper_frequency=5 service_check_timeout=90 host_check_timeout=20 aggregate_status_updates=1 status_update_interval=15 - -- Jasmine Chua Security Engineer, SecureCiRT (A SBU of Z-Vance Pte Ltd) http://www.securecirt.com - -- Jasmine Chua Security Engineer, SecureCiRT (A SBU of Z-Vance Pte Ltd) http://www.securecirt.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE99gMGNgvTa7Hj2AURAm7vAKCrn/qEnn9Wqb1k8mHq97hBVC1RGwCgvAmQ U/0MrWa9GI89VCQzgTXK96o= =8PMw -----END PGP SIGNATURE----- ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jcarro10 at sprintspectrum.com Tue Dec 10 16:50:09 2002 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Tue, 10 Dec 2002 09:50:09 -0600 Subject: [Nagios/Netsaint] Performances Ask Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1111@PKDWB03C.ad.sprint.com> We're running the following: - 1 Intel PIII @ 800MHz - 1 GB RAM - Red Hat Linux 7.3 - Nagios 1.0 We're checking 127 hosts, 1076 services today, with >97% of them completed within 5 minutes. jc > -----Original Message----- > From: Freddy Frouin [mailto:freddy.frouin at fluxus.net] > Sent: Tuesday, December 10, 2002 7:18 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] [Nagios/Netsaint] Performances Ask > > > Hi, > > I would like to get informations about netsaint/nagios users > experiences. > > I have the following server architecture: > - Bi-processor (pentium III - 500Mhz) > - 1 Go RAM > - SCSI (Hardware Raid 1) disks > - Linux 2.4.2-2 > > How many services (with an average check of 5min for > all services) > do you think you could make check to get an average > load less than > 1 on such harware & os ? > > Regards, Freddy. > > -- > Freddy Frouin > Responsable Supervision > British Telecom / Fluxus > 30, rue du Ch?teau des Rentiers > 75013 Paris > > T?l: +33 (0)1 44 97 70 00 > Fax: +33 (0)1 44 97 70 07 > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jasmine.chua at securecirt.com Tue Dec 10 16:57:42 2002 From: jasmine.chua at securecirt.com (Jasmine Chua) Date: Tue, 10 Dec 2002 23:57:42 +0800 Subject: Nagios latency: timeout reply In-Reply-To: References: Message-ID: <200212102357.47408.jasmine.chua@securecirt.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 My service_check_timeout is set to 90 seconds because one of the services like http.. actually require 90 seconds to execute. On Tuesday 10 December 2002 23:49, you wrote: > Lowering service_check_timeout helped me. Mine is currently set at 20. > > -----Original Message----- > From: Jasmine Chua [mailto:jasmine.chua at securecirt.com] > Sent: Tuesday, December 10, 2002 7:07 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Nagios latency > > > I am currently facing a problem with latency on my > Nagios-1.0 > I am in a hurry to bring it down. Just wonder if anyone could help > me, I have sent my problem to the mailing list a couple of times, but to no > avail. Have been trying to tweak with my max_concurrent_checks and service > reaper, but things just dont work out right. Nagios is able to receive and > process service checks now, but has an average latency of 206 secs and my > average execution time is 2.438 secs. > > SERVICE SCHEDULING INFORMATION > ------------------------------- > Total services: 156 > Total hosts: 21 > > Command check interval: -1 sec > Check reaper interval: 5 sec > > Inter-check delay method: SMART > Average check interval: 60.000 sec > Inter-check delay: 0.385 sec > > Interleave factor method: SMART > Average services per host: 7.429 > Service interleave factor: 8 > > Initial service check scheduling info: > -------------------------------------- > First scheduled check: 1039532077 -> Tue Dec 10 22:54:37 2002 > Last scheduled check: 1039532138 -> Tue Dec 10 22:55:38 2002 > > Rough guidelines for max_concurrent_checks value: > ------------------------------------------------- > Absolute minimum value: 13 > Recommend value: 39 > > command_check_interval=-1 > max_concurrent_checks=39 > service_reaper_frequency=5 > service_check_timeout=90 > host_check_timeout=20 > aggregate_status_updates=1 > status_update_interval=15 - -- Jasmine Chua Security Engineer, SecureCiRT (A SBU of Z-Vance Pte Ltd) http://www.securecirt.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE99g76NgvTa7Hj2AURAnlYAKDJCY6dDwG+CGvDjaXvVpm9PyOKDQCfRyGg mdrF5Zt4amwBggA63Sdfr+I= =VWvH -----END PGP SIGNATURE----- ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jcarro10 at sprintspectrum.com Tue Dec 10 17:00:18 2002 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Tue, 10 Dec 2002 10:00:18 -0600 Subject: alternative to TempTrax Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F2489@PKDWB03C.ad.sprint.com> Greetings all, Last week I was checking out the TempTrax option (out of curiosity), and decided to do some Googling. Ended up finding this interesting product: http://www.akcpinc.com/company/sensorprobe.html At $345 for hardware which monitors both temperature and humidity, it's more expensive than the TempTrax. But the TempTrax only monitors temperature. As far as hooking into Nagios, it apparently supports SNMP. DISCLAIMER: I have no affiliation with AKCP; I just thought it was a clever alternative to TempTrax. jc ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jcarro10 at sprintspectrum.com Tue Dec 10 17:04:27 2002 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Tue, 10 Dec 2002 10:04:27 -0600 Subject: nagios veritas netbackup plugin? Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1113@PKDWB03C.ad.sprint.com> How do you monitor NetBackup now? What aspect are you trying to monitor? NetBackup currently sends out e-mail alerts when the task is complete. jc -----Original Message----- From: POPENKO, SERGEY [mailto:SERGEY.POPENKO at CIBC.com] Sent: Tuesday, December 10, 2002 8:39 AM To: 'nagios-users at lists.sourceforge.net' Subject: [Nagios-users] nagios veritas netbackup plugin? Is there anything written to monitor Veritas NetBackup? Thanks upfront. Sergey Popenko Technical Analyst eChannels Infrastructure Services Group CIBC T: (416)980-6218 E: sergey.popenko at cibc.com 20 Dundas Street West 5th Floor Toronto, Ontario -------------- next part -------------- An HTML attachment was scrubbed... URL: From russell at quadrix.com Tue Dec 10 17:23:15 2002 From: russell at quadrix.com (Russell Scibetti) Date: Tue, 10 Dec 2002 11:23:15 -0500 Subject: Config Storage/Generation Message-ID: <3DF614F3.9040506@quadrix.com> I know I have read emails about users storing config data in DB's, using scripts for generating/storing configs, etc. I was hoping that anyone who has created these type of extra components for Nagios could share them. It would definitely help me out, as I am in charge of Nagios config creations and management. Thanks. -Russell Scibetti -- Russell Scibetti Quadrix Solutions, Inc. http://www.quadrix.com (732) 235-2335, ext. 7038 ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jcarro10 at sprintspectrum.com Tue Dec 10 17:16:46 2002 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Tue, 10 Dec 2002 10:16:46 -0600 Subject: Nagios latency Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1115@PKDWB03C.ad.sprint.com> The only significant difference we have is that the Average Check Interval is 300.00 in my case. Here's my nagios.cfg (without the comments and blank lines): log_file=/usr/local/nagios/var/nagios.log cfg_file=/usr/local/nagios/etc/checkcommands.cfg cfg_file=/usr/local/nagios/etc/misccommands.cfg cfg_file=/usr/local/nagios/etc/contactgroups.cfg cfg_file=/usr/local/nagios/etc/contacts.cfg cfg_file=/usr/local/nagios/etc/dependencies.cfg cfg_file=/usr/local/nagios/etc/escalations.cfg cfg_file=/usr/local/nagios/etc/hostgroups.cfg cfg_file=/usr/local/nagios/etc/hosts.cfg cfg_file=/usr/local/nagios/etc/services.cfg cfg_file=/usr/local/nagios/etc/timeperiods.cfg cfg_dir=/usr/local/nagios/etc/configs resource_file=/usr/local/nagios/etc/resource.cfg status_file=/usr/local/nagios/var/status.log nagios_user=nagios nagios_group=nagios check_external_commands=1 command_check_interval=-1 command_file=/usr/local/nagios/var/rw/nagios.cmd comment_file=/usr/local/nagios/var/comment.log downtime_file=/usr/local/nagios/var/downtime.log lock_file=/usr/local/nagios/var/nagios.lock temp_file=/usr/local/nagios/var/nagios.tmp log_rotation_method=d log_archive_path=/usr/local/nagios/var/archives use_syslog=0 log_notifications=1 log_service_retries=1 log_host_retries=1 log_event_handlers=1 log_initial_states=1 log_external_commands=1 log_passive_service_checks=1 inter_check_delay_method=s service_interleave_factor=s max_concurrent_checks=400 service_reaper_frequency=5 sleep_time=1 service_check_timeout=60 host_check_timeout=30 event_handler_timeout=30 notification_timeout=30 ocsp_timeout=5 perfdata_timeout=5 retain_state_information=1 state_retention_file=/usr/local/nagios/var/status.sav retention_update_interval=60 use_retained_program_state=0 interval_length=60 use_agressive_host_checking=0 execute_service_checks=1 accept_passive_service_checks=1 enable_notifications=1 enable_event_handlers=1 process_performance_data=1 xpdfile_host_perfdata_file=/usr/local/nagios/var/hostperf.log xpdfile_host_perfdata_template=$TIMET$\t$HOSTNAME$\t$OUTPUT$\t$PERFDATA$ xpdfile_service_perfdata_file=/usr/local/nagios/var/serviceperf.log xpdfile_service_perfdata_template=$TIMET$\t$HOSTNAME$\t$SERVICEDESC$\t$OUTPU T$\t$PERFDATA$ obsess_over_services=0 check_for_orphaned_services=0 check_service_freshness=1 freshness_check_interval=60 aggregate_status_updates=1 status_update_interval=15 enable_flap_detection=0 low_service_flap_threshold=5.0 high_service_flap_threshold=20.0 low_host_flap_threshold=5.0 high_host_flap_threshold=20.0 soft_state_dependencies=1 date_format=us illegal_object_name_chars=`~!$%^&*|'"<>?,()= illegal_macro_output_chars=`~$&|'"<> admin_email=nagios admin_pager=pagenagios HTH. jc > -----Original Message----- > From: Jasmine Chua [mailto:jasmine.chua at securecirt.com] > Sent: Tuesday, December 10, 2002 9:07 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Nagios latency > > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > I am currently facing a problem with latency on my > Nagios-1.0 > I am in a hurry to bring it down. Just wonder if anyone could help > me, I have sent my problem to the mailing list a couple of > times, but to no > avail. Have been trying to tweak with my > max_concurrent_checks and service > reaper, but things just dont work out right. Nagios is able > to receive and > process service checks now, but has an average latency of 206 > secs and my > average execution time is 2.438 secs. > > SERVICE SCHEDULING INFORMATION > ------------------------------- > Total services: 156 > Total hosts: 21 > > Command check interval: -1 sec > Check reaper interval: 5 sec > > Inter-check delay method: SMART > Average check interval: 60.000 sec > Inter-check delay: 0.385 sec > > Interleave factor method: SMART > Average services per host: 7.429 > Service interleave factor: 8 > > Initial service check scheduling info: > -------------------------------------- > First scheduled check: 1039532077 -> Tue Dec 10 > 22:54:37 2002 > Last scheduled check: 1039532138 -> Tue Dec 10 > 22:55:38 2002 > > Rough guidelines for max_concurrent_checks value: > ------------------------------------------------- > Absolute minimum value: 13 > Recommend value: 39 > > command_check_interval=-1 > max_concurrent_checks=39 > service_reaper_frequency=5 > service_check_timeout=90 > host_check_timeout=20 > aggregate_status_updates=1 > status_update_interval=15 > > > > - -- > Jasmine Chua > Security Engineer, SecureCiRT (A SBU of Z-Vance Pte Ltd) > http://www.securecirt.com > > - -- > Jasmine Chua > Security Engineer, SecureCiRT (A SBU of Z-Vance Pte Ltd) > http://www.securecirt.com > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.0.6 (GNU/Linux) > Comment: For info see http://www.gnupg.org > > iD8DBQE99gMGNgvTa7Hj2AURAm7vAKCrn/qEnn9Wqb1k8mHq97hBVC1RGwCgvAmQ > U/0MrWa9GI89VCQzgTXK96o= > =8PMw > -----END PGP SIGNATURE----- > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From Jason.Ahrens at TELUS.COM Tue Dec 10 17:07:51 2002 From: Jason.Ahrens at TELUS.COM (Jason Ahrens) Date: Tue, 10 Dec 2002 09:07:51 -0700 Subject: nagios veritas netbackup plugin? Message-ID: <853ED27B8537D611AD1000508BAFBB1101023E53@ONMSG001> > Is there anything written to monitor Veritas NetBackup? Thanks upfront. Not natively, you have to write it yourself AFAIK. I spent a few weeks developing plugins for use with Veritas NetBackup (3.4.1) with Perl. It's not all that difficult. I have a suite of tools that monitors drive status, pending requests, robot status, CAP/inport slots full, media-in-pool monitoring (most useful for Scratch). Maybe others I don't recall off the top of my head. Couple media pool monitoring together with MRTG and you get a lovely media usage trend graphs. The hardest part was monitoring Backup exit status. The easiest way to do that would be through BPEND_NOTIFY scripts and passive checking, depending how much information you want. My original solution of active backup status checking was too CPU intensive on the NetBackup system. Though it's possible to do. My current my solution (which may not easily portable) involves a customized BPEND_NOTIFY script, interfacing with bpdbjobs, and transferring a file occasionally from the NetBackup system to the Nagios system.) Jason -- Jason Ahrens, Hosting Analyst TELUS IP Solutions http://www.telus.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From p.miquet at hafiba.fr Tue Dec 10 17:44:19 2002 From: p.miquet at hafiba.fr (Pascal Miquet) Date: 10 Dec 2002 17:44:19 +0100 Subject: Permissions Error (Could not stat() comman d file ) In-Reply-To: References: Message-ID: <1039538663.4664.6.camel@moishe> Chris, Using a RH8.0 distro, I've at least the same problem, and the same Idea to use a RH7.3 rather the 8.0, cause on my laptop all things tested is running fine. Should use the GD function at least, but nagios and addons works pretty good on an RH7.3 I didn't checks on RH for updates.... Regards Pascal Miquet Le mar 10/12/2002 ? 14:13, Chris Losch a ?crit : > It would seem I'm paying for running on the b-leading-edge again. > > Unless anyone has got Nagios successfully working on RH 8 and APACHE 2, > looks like i'm going to revert to RH7.3 and Apache 1.3. > I can't see anything wrong with the setup, yet it doesn't work. > The last thing I'm going to attempt is running a STRACE on httpd and nagios, > as suggested by Greg Potter, to see if i can spot anything in there... if > not.. well... 1st things 1st. > > Will post an update after lunch (hey, we have to have priorities!) > Chris > > -----Original Message----- > From: Pascal Miquet [mailto:p.miquet at hafiba.fr] > Sent: 10 December 2002 10:00 > To: Chris Losch > Cc: 'Jon Lyons'; 'nagios-users at lists.sourceforge.net' > Subject: RE: [Nagios-users] RE: Permissions Error (Could not stat() > comman d file ) > > > For me on a RH8.0, > APACHE 2.0.40-8 > Nagios 1.0 > Plugins 1.3 beta 2 > > I've got on the process info section: > It appears as though Nagios is not running, so commands are temporarily > unavailable... > > And according to Execution command, I can't commit specified commands. > Seems to be a CGI authentication. > > Note that the previous version is running fine on my laptop with RH7.3 > > Regards > > > Le lun 09/12/2002 ? 18:05, Chris Losch a ?crit : > > Jon, > > I am 99% sure, (from what I read in the ps -ef output, and httpd.conf) > > > > Relevant part from httpd.conf > > ------------------------------------------ > > # If you wish httpd to run as a different user or group, you must run > > # httpd as root initially and it will switch. > > # > > # User/Group: The name (or #number) of the user/group to run httpd as. > > # . On SCO (ODT 3) use "User nouser" and "Group nogroup". > > # . On HPUX you may not be able to use shared memory as nobody, and the > > # suggested workaround is to create a user www and use that user. > > # NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET) > > # when the value of (unsigned)Group is above 60000; > > # don't use Group #-1 on these systems! > > # > > User apache > > Group apache > > > > > > I've even tried changing Group to 'nagiocmd', no luck with that either. > > > > NOTE This is APACHE 2 as supplied by REDHAT 8 CD's > > Server version: Apache/2.0.40 > > > > Thanks for your suggestion anyway, > > > > I'm starting to wonder if this is an issue with Nagios on Apache2, has > > anyone else got this working successfully? > > > > Chris > > > > -----Original Message----- > > From: Jon Lyons [mailto:jlyons30 at yahoo.com] > > Sent: 09 December 2002 15:28 > > To: Chris Losch; 'Terry Inzauro' > > Cc: 'nagios-users at lists.sourceforge.net' > > Subject: Re: [Nagios-users] RE: Permissions Error (Could not stat() > command > > file ) > > > > > > > > Are you sure apache is running as "apache" and not "www"? > > > > > > Chris Losch wrote: > > > > > > Change of Subject line, things were getting confused.... > > ---- > > > > > > It was worth a try, still didnt work though *sigh* > > > > Just in case I'm missing something. > > > > ls -la /usr/local/nagios/var/rw > > ----------------------------------------- > > total 8 > > drwxrwS--- 2 nagios nagiocmd 4096 Dec 6 17:20 . > > drwxrwxr-x 4 nagios nagios 4096 Dec 9 14:37 .. > > prw-rwx--- 1 nagios nagiocmd 0 Dec 6 17:20 nagios.cmd (after > > chmod'ing with Terry Inzauro's suggestion - see below, default group perms > > are rw-) > > > > /etc/group (relevant bits) > > ---------------- > > apache:x:48: > > nobody:x:99: > > nagios:x:500: > > nagiocmd:x:501:nagios,nobody,apache > > > > ps -ef | grep httpd output > > ------------------------- > > root 10311 1 0 Dec06 ? 00:00:02 /usr/sbin/httpd > > apache 14958 10311 0 14:28 ? 00:00:00 /usr/sbin/httpd > > apache 14959 10311 0 14:28 ? 00:00:00 /usr/sbin/httpd > > apache 14960 10311 0 14:28 ? 00:00:00 /usr/sbin/httpd > > apache 14961 10311 0 14:28 ? 00:00:00 /usr/sbin/httpd > > apache 14962 10311 0 14:28 ? 00:00:00 /usr/sbin/httpd > > apache 14963 10311 0 14:28 ? 00:00:00 /usr/sbin/httpd > > apache 14964 10311 0 14:28 ? 00:00:00 /usr/sbin/httpd > > apache 14965 10311 0 14:28 ? 00:00:00 /usr/sbin/httpd > > apache 15022 10311 0 14:28 ? 00:00:00 /usr/sbin/httpd > > root 16310 15956 0 14:34 pts/3 00:00:00 grep httpd > > > > ps -ef | grep nagios > > --------------------------- > > nagios 8504 1 0 Dec06 ? 00:03:52 > /usr/local/nagios/bin/nagios > > -d > > (lots, but all the same) > > > > I'm not wrong in thinking that the httpd is running under the APACHE user, > > am I? > > > > Thanks > > Chris > > > > > > -----Original Message----- > > From: Terry Inzauro [mailto:tinzauro at axiomintegration.com] > > Sent: 06 December 2002 19:27 > > To: Chris Losch > > Subject: RE: [Nagios-users] RE: Permissions Error > > > > > > I think the nagios user,the apache user need to have write access rwx > access > > to that file. make sure that each of the respective users have the > > necessary perms. or just add the nagios user to the group owner in the > > /etc/group file. > > > > worth a try? > > > > Terry Inzauro > > > > > > On Fri, 2002-12-06 at 11:31, Chris Losch wrote: > > > > I'm afraid its a case of been there, done that... > > > > but just in case I did something wrong, I tried again... > > > > Stopped Nagios and $INSTALLPATH/var/rw/nagios.cmd disappeared (as it > should > > - see I even tried reading the manual :-D ) > > Used the /etc/rc.d/init/nagios script to start it, > > $INSTALLPATH/var/rw/nagios.cmd re-appears with the default permissions > > > > prw-rw---- 1 nagios nagiocmd 0 Dec 6 17:20 nagios.cmd > > > > CHMOD'd 777 it, still receiving the same error when attempting the > command. > > > > Have even tried restarting the httpd :( which runs under the 'apache' > user, > > which is part of the nagiocmd group. > > > > Incidently the parent (rw) directory has the permissions, > > > > drwxrwS--- 2 nagios nagiocmd 4096 Dec 6 17:20 rw > > > > Maybe someone will spot where im going wrong. > > Anyway, have a good weekend all. > > Chris > > > > -----Original Message----- > > From: Terry Inzauro [mailto:tinzauro at axiomintegration.com] > > Sent: 06 December 2002 15:12 > > To: Chris Losch > > Cc: nagios-users at lists.sourceforge.net > > Subject: RE: [Nagios-users] RE: Permissions Error > > > > > > I cam across the same error once. If there was a nagios process running, > > kill it. If there is a $INSTALLPATH/var/rw/nagios.cmd file, delete it. > > Next, start nagios with the /etc/rc.d/init/nagios script. Then try the > > request again. If does the same thing. try chmodddddding the > > $INSTALLPATH/var/rw/nagios.cmd file for something like 777, then work it > > backwards from there. > > > > Terry Inzauro > > > > > > On Fri, 2002-12-06 at 06:41, Chris Losch wrote: > > > > FYI, > > > > I have just built up a clean install of Redhat 8, and Nagios1.0 > > I have got Authentication setup and working ok (I can view cgi's), however > I > > am unable to send commands from the Web Pages to Nagios (Scheduling Checks > > etc.) > > > > I am recieving the error > > > > Error: Could not stat() command file > > '/usr/local/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. > > :( > > > > If possible I would suggest you backup the config CGI's (hosts services > etc) > > and start over, it seems to be easier than troubleshooting. > > > > Chris... yup another Chris. > > > > Just for reference I've included the bits below so you can cross reference > > your config files. > > > > cgi.cfg > > ------- > > authorized_for_system_information=xxxx,nagiosadmin, > > authorized_for_system_commands=xxxx,nagiosadmin, > > authorized_for_configuration_information=xxxx,nagiosadmin, > > authorized_for_all_hosts=xxxx,nagiosadmin, > > authorized_for_all_host_commands=xxxx,nagiosadmin, > > authorized_for_all_services=xxxx,nagiosadmin, > > authorized_for_all_service_commands=xxxx,nagiosadmin, > > > > .htaccess (in /usr/local/nagios/share/ and /usr/local/nagios/sbin/) > > --------- > > AuthName "Nagios Access" > > AuthType Basic > > AuthUserFile /usr/local/nagios/etc/htpasswd.users > > > > /usr/local/nagios/etc/htpasswd.users > > ------------------------------------ > > nagiosadmin: > > > > /etc/httpd/conf/httpd.conf (added the following, otherwise, no changes > from > > default) > > -------------------------- > > ScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/ > > > > AllowOverride AuthConfig > > Options ExecCGI > > Order allow,deny > > Allow from all > > > > > > Alias /nagios/ /usr/local/nagios/share/ > > > > Options None > > AllowOverride AuthConfig > > Order allow,deny > > Allow from all > > > > > > /etc/local/nagios/etc/contacts.cfg > > ---------------------------------- > > define contact { > > contact_name nagiosadmin > > alias Nagios Admin > > service_notification_period 24x7 > > host_notification_period 24x7 > > service_notification_options w,u,c,r > > host_notification_options d,u,r > > service_notification_commands notify-by-email,notify-by-epager > > host_notification_commands host-notify-by-email,host-notify-by-epager > email nagios-admin at localhost.localdomain > > pager pagenagios-admin at localhost.localdomain > > } > > > > /etc/local/nagios/etc/nagios.cfg > > --------------------------------- > > # > > # nagios.cfg - Config file for Nagios (www.nagios.org) > > # > > # Written by Nagat. Manually editing this file is a bad idea since Nagat > > will > > # overwrite it. Delete the nagatobj.dat file in the nagios/etc directory > to > > # reread the Nagios configuration. > > # > > log_file=/usr/local/nagios/var/nagios.log > > cfg_file=/usr/local/nagios/etc/checkcommands.cfg > > cfg_file=/usr/local/nagios/etc/misccommands.cfg > > cfg_file=/usr/local/nagios/etc/contactgroups.cfg > > cfg_file=/usr/local/nagios/etc/contacts.cfg > > cfg_file=/usr/local/nagios/etc/dependencies.cfg > > cfg_file=/usr/local/nagios/etc/escalations.cfg > > cfg_file=/usr/local/nagios/etc/hostgroups.cfg > > cfg_file=/usr/local/nagios/etc/hosts.cfg > > cfg_file=/usr/local/nagios/etc/services.cfg > > cfg_file=/usr/local/nagios/etc/timeperiods.cfg > > resource_file=/usr/local/nagios/etc/resource.cfg > > status_file=/usr/local/nagios/var/status.log > > nagios_user=nagios > > nagios_group=nagios > > check_external_commands=1 > > command_check_interval=-1 > > command_file=/usr/local/nagios/var/rw/nagios.cmd > > comment_file=/usr/local/nagios/var/comment.log > > downtime_file=/usr/local/nagios/var/downtime.log > > lock_file=/usr/local/nagios/var/nagios.lock > > temp_file=/usr/local/nagios/var/nagios.tmp > > log_rotation_method=d > > log_archive_path=/usr/local/nagios/var/archives > > use_syslog=1 > > log_notifications=1 > > log_service_retries=1 > > log_host_retries=1 > > log_event_handlers=1 > > log_initial_states=0 > > log_external_commands=1 > > log_passive_service_checks=1 > > inter_check_delay_method=s > > service_interleave_factor=s > > max_concurrent_checks=0 > > service_reaper_frequency=10 > > sleep_time=1 > > service_check_timeout=60 > > host_check_timeout=30 > > event_handler_timeout=30 > > notification_timeout=30 > > ocsp_timeout=5 > > perfdata_timeout=5 > > retain_state_information=1 > > state_retention_file=/usr/local/nagios/var/status.sav > > retention_update_interval=60 > > use_retained_program_state=0 > > interval_length=60 > > use_agressive_host_checking=0 > > execute_service_checks=1 > > accept_passive_service_checks=1 > > enable_notifications=1 > > enable_event_handlers=1 > > process_performance_data=0 > > obsess_over_services=0 > > check_for_orphaned_services=0 > > check_service_freshness=1 > > freshness_check_interval=60 > > aggregate_status_updates=1 > > status_update_interval=15 > > enable_flap_detection=0 > > low_service_flap_threshold=5.0 > > high_service_flap_threshold=20.0 > > low_host_flap_threshold=5.0 > > high_host_flap_threshold=20.0 > > date_format=euro > > illegal_object_name_chars=`~!$%^&*|'"<>?,()= > > illegal_macro_output_chars=`~$&|'"<> > > admin_email=nagios > > admin_pager=pagenagios > > > > > ********************************************************************** > Important: > This e-mail is intended for the above named person only and should be > treated as confidential. If this has come to you in error you should take > no action based on it, nor should you copy or show it to anyone; > please telephone us immediately. > ********************************************************************** > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From pkrzystofiak at endeavors.com Tue Dec 10 19:36:21 2002 From: pkrzystofiak at endeavors.com (Peter Krzystofiak) Date: Tue, 10 Dec 2002 10:36:21 -0800 Subject: =?iso-8859-1?Q?Error_in_recv=28=29=A0_?= Message-ID: <53109A46D4F58F458B18D009EAEEDC830E6313@mail.endeavorstech.com> A couple days ago, my monitoring was checking https (and it was working) $USER1$/check_http -H $HOSTADDRESS$ -p 443 -s $ARG1$ And all of a suddent......I am getting a ton of Error in recv()? errors. What can be the cause of this? I can't find documentation on an Error in recv()?message. Thanks, Peter ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jsm at inpro.net Tue Dec 10 19:51:41 2002 From: jsm at inpro.net (Jeff McKeon) Date: 10 Dec 2002 13:51:41 -0500 Subject: nsclient nolonger working? Message-ID: <1039546303.26821.15.camel@rh80-jsm.telaurus.net> Hey all. I seem to have lost the ability to use the Check_nt plugin with one on my win2k servers. the nsclient service installed on it is getting the following error in the applications even log: warning: CollectData Failed This has been happily working for weeks now. any ideas? Thanks, Jeff ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From Shawn.Brewer at chickasaw.net Tue Dec 10 20:48:00 2002 From: Shawn.Brewer at chickasaw.net (Shawn Brewer) Date: Tue, 10 Dec 2002 13:48:00 -0600 Subject: alternative to TempTrax Message-ID: <352B04312822444A962714393AED8A4D0F65E0@ADAEVS01.int.chickasaw.net> I have been using a "Wallbot" from NetBotz. These have far more options: Temp Airflow Humidity Door External sensors and even digital inputs. They come with cameras that provide web cam functionality and door switches to "Take" pictures when the door is opened. We have integrated this into NAGIOS to keep a history on entry into our datacenter and MDF. Full SNMP support. Here's the link: http://www.netbotz.com/products/wall.html -----Original Message----- From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] Sent: Tuesday, December 10, 2002 10:00 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] alternative to TempTrax Greetings all, Last week I was checking out the TempTrax option (out of curiosity), and decided to do some Googling. Ended up finding this interesting product: http://www.akcpinc.com/company/sensorprobe.html At $345 for hardware which monitors both temperature and humidity, it's more expensive than the TempTrax. But the TempTrax only monitors temperature. As far as hooking into Nagios, it apparently supports SNMP. DISCLAIMER: I have no affiliation with AKCP; I just thought it was a clever alternative to TempTrax. jc ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From Stanley.Hopcroft at IPAustralia.Gov.AU Tue Dec 10 21:36:44 2002 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Wed, 11 Dec 2002 07:36:44 +1100 Subject: remote plugins and ssh problem In-Reply-To: <5070FD2FA9CF484C883AC33034027E6A01AB2121@nyrofcs2kexch01.east.frontiercorp.com>; from john.wilhelm@frontiercorp.com on Tue, Dec 10, 2002 at 08:46:26AM -0500 References: <5070FD2FA9CF484C883AC33034027E6A01AB2121@nyrofcs2kexch01.east.frontiercorp.com> Message-ID: <20021211073639.A223@IPAustralia.Gov.AU> Dear Sir, I am writing to say that I am running remote plugins with ssh (using check_by_ssh) with Nagios-1.0. (The plugin is quite elderly: check_by_ssh (netsaint-plugins 1.2.9-4) 1.23.2.1 but works ok for me) This site has about 20 such checks. Can the Nagios user read the files containing the SSH keys known to the remote hosts ? If you login (or su) as the Nagios user can you still ssh to the remote hosts ? Here are some of the ssh command lines in use here, command_line $USER1$/check_by_ssh -t 30 -H $ARG1$ -l $ARG2$ -C '$ARG3$ $ARG4$ $ARG5$ $ARG6$ $ARG7$ $ARG8$ $ARG9$' command_line $USER1$/check_by_ssh -t 30 -H $ARG1$ -l $ARG2$ -i /home/nagios/.ssh/smon_identity -C '$ARG3$ $ARG4$' command_line $USER1$/check_by_ssh -t 45 -H $HOSTNAME$ -l nagios -i /home/nagios/.ssh/id_dsa -C 'check_dhcp -l' Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From mailing at bgs-ing.de Tue Dec 10 22:04:07 2002 From: mailing at bgs-ing.de (mailing at bgs-ing.de) Date: Tue, 10 Dec 2002 22:04:07 +0100 Subject: Configure Nagios with MySQL? Message-ID: Hi, I have compiled nagios with mysql support and configured cgi /resource config file for mysql. I created the tables in the database with create_mysql file. Do I have to enter the configuration details in the database by hand? Or is there any configuration utility? Thanks! Nicole ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From Stanley.Hopcroft at IPAustralia.Gov.AU Tue Dec 10 22:02:22 2002 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Wed, 11 Dec 2002 08:02:22 +1100 Subject: nagios veritas netbackup plugin? In-Reply-To: <853ED27B8537D611AD1000508BAFBB1101023E53@ONMSG001>; from Jason.Ahrens@TELUS.COM on Tue, Dec 10, 2002 at 09:07:51AM -0700 References: <853ED27B8537D611AD1000508BAFBB1101023E53@ONMSG001> Message-ID: <20021211080220.B223@IPAustralia.Gov.AU> Dear Ladies and Gentlemen, If Veritas has a MIB (as ARC Serve does), perhaps an SNMP trap could be used to signal the backup completion. The process of integrating SNMP traps with Nagios (as passive service check results), using the ARC Serve backup example, is described very completely in the docs. It seems as if such a MIB exists ( http://www.mibdepot.com/cgi-bin/xsearch_index3.cgi?id=8016 ) so this may be an option for you. Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From mangabbs at hotmail.com Tue Dec 10 22:16:50 2002 From: mangabbs at hotmail.com (Master Brian) Date: Tue, 10 Dec 2002 22:16:50 +0100 Subject: check_ping Message-ID: Greetings, I'm new to this mailing list and I'm sorry to start with a request but .... :) I've installed and configured nagios, but I've a problem with check_XXXXX programs (such as check_ping). I couldn't locate them, it is normal? I've to download any separate packages then nagios? Thank you --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.426 / Virus Database: 239 - Release Date: 06/12/2002 -------------- next part -------------- An HTML attachment was scrubbed... URL: From sandromergvaz at uol.com.br Tue Dec 10 23:37:38 2002 From: sandromergvaz at uol.com.br (Sandro Vaz) Date: Tue, 10 Dec 2002 19:37:38 -0300 Subject: RES: check_ping In-Reply-To: References: Message-ID: Nagios doesn?t come with the plugins. I have to download, compile & install them apart. It?s a very easy process. Sure that helps, SMV -----Mensagem original----- De: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] Em nome de Master Brian Enviada em: ter?a-feira, 10 de dezembro de 2002 18:17 Para: nagios-users at lists.sourceforge.net Assunto: [Nagios-users] check_ping Greetings, I'm new to this mailing list and I'm sorry to start with a request but .... :) I've installed and configured nagios, but I've a problem with check_XXXXX programs (such as check_ping). I couldn't locate them, it is normal? I've to download any separate packages then nagios? Thank you --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (HYPERLINK "http://www.grisoft.com"http://www.grisoft.com). Version: 6.0.426 / Virus Database: 239 - Release Date: 06/12/2002 --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.427 / Virus Database: 240 - Release Date: 6/12/2002 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.427 / Virus Database: 240 - Release Date: 6/12/2002 -------------- next part -------------- An HTML attachment was scrubbed... URL: From cpowell at e-store.ws Wed Dec 11 01:22:32 2002 From: cpowell at e-store.ws (Cullen Powell) Date: Tue, 10 Dec 2002 16:22:32 -0800 Subject: alert on failed process Message-ID: <003501c2a0ab$6881e430$0301a8c0@craftohtxkm0de> HEY!! I was just wondering if it is possible for Nagios to alert me whenever a certain process (specifically named) is not running or has failed. And if it is possible, how would I go about making it a reality? Thanks! -Cullen -------------- next part -------------- An HTML attachment was scrubbed... URL: From rob.king at wholefoods.com Tue Dec 10 23:48:35 2002 From: rob.king at wholefoods.com (Rob King) Date: Wed, 11 Dec 2002 06:48:35 +0800 Subject: Excessively long inter-check delays? Message-ID: Hey everyone, This is probably just due to me not understanding how to configure Nagios, but I've got a problem. I have several services, each checking about 300 hosts. It works out to about 1500 service checks total. Anyway, I have Nagios set to to the "smart" inter-check delay, and I find that the services aren't being checked for hours at a time! Does anyone know how to make sure the services are actually checked every 10 minutes, like they were configured to be in the hosts.cfg? Thanks! Rob ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From mpowell at ena.com Tue Dec 10 23:53:17 2002 From: mpowell at ena.com (Marc Powell) Date: Tue, 10 Dec 2002 16:53:17 -0600 Subject: alert on failed process Message-ID: <5DB017510818EC468B05BD7BD9EACF8302C562FF@mismail.ena.com> Yes, certainly... check_dns or check_dig come to mind immediately to see if it's resolving as it should or you could use NRPE if you want verify that the process is actually running and you aren't concerned with whether it's actually resolving or not. As far as making it a reality, http://nagios.sourceforge.net/docs/1_0/xodtemplate.html should help. -- Marc -----Original Message----- From: Cullen Powell [mailto:cpowell at e-store.ws] Sent: Tuesday, December 10, 2002 6:23 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] alert on failed process HEY!! I was just wondering if it is possible for Nagios to alert me whenever a certain process (specifically named) is not running or has failed. And if it is possible, how would I go about making it a reality? Thanks! -Cullen -------------- next part -------------- An HTML attachment was scrubbed... URL: From jasmine.chua at securecirt.com Tue Dec 10 23:58:28 2002 From: jasmine.chua at securecirt.com (Jasmine Chua) Date: Wed, 11 Dec 2002 06:58:28 +0800 Subject: alert on failed process Message-ID: <200212110658.35541.jasmine.chua@securecirt.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 - ---------- Forwarded Message ---------- Subject: Re: [Nagios-users] alert on failed process Date: Wed, 11 Dec 2002 06:57:02 +0800 From: Jasmine Chua To: "Cullen Powell" - -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 You could implement alarms in your plugins. And have a look at Festival. http://www.cstr.ed.ac.uk/projects/festival/userin.html On Wednesday 11 December 2002 08:22, Cullen Powell wrote: > HEY!! > > I was just wondering if it is possible for Nagios to alert me whenever a > certain process (specifically named) is not running or has failed. And if > it is possible, how would I go about making it a reality? > > Thanks! > -Cullen - - -- Jasmine Chua Security Engineer, SecureCiRT (A SBU of Z-Vance Pte Ltd) http://www.securecirt.com - -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE99nFENgvTa7Hj2AURAhEfAJ0QybeocmrGYq9pAqvkdzTAP/jb9wCdELRe UlE1JScXmLJd+QOHvcRZ4GA= =5c6G - -----END PGP SIGNATURE----- - ------------------------------------------------------- - -- Jasmine Chua Security Engineer, SecureCiRT (A SBU of Z-Vance Pte Ltd) http://www.securecirt.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE99nGaNgvTa7Hj2AURAsuRAJ9e6ArAavovdcGRRzp7tbtsdsdv8wCfc7Oi NwIWPY/B0v6MvU+HYjSMzvc= =Uzo5 -----END PGP SIGNATURE----- ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From jasmine.chua at securecirt.com Wed Dec 11 00:07:34 2002 From: jasmine.chua at securecirt.com (Jasmine Chua) Date: Wed, 11 Dec 2002 07:07:34 +0800 Subject: Excessively long inter-check delays? In-Reply-To: References: Message-ID: <200212110707.40480.jasmine.chua@securecirt.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 If you want services scheduled to be checked every 10 minutes, you have to set normal_check_interval option in your service definition as 10.. and interval_length set in your nagios.cfg is set to 60. there is a difference between execution of service and scheduling. On Wednesday 11 December 2002 06:48, Rob King wrote: > Hey everyone, > This is probably just due to me not understanding how to configure Nagios, > but I've got a problem. > > I have several services, each checking about 300 hosts. It works out to > about 1500 service checks total. > > Anyway, I have Nagios set to to the "smart" inter-check delay, and I find > that the services aren't being checked for hours at a time! Does anyone > know how to make sure the services are actually checked every 10 minutes, > like they were configured to be in the hosts.cfg? > > Thanks! > > Rob > > > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users - -- Jasmine Chua Security Engineer, SecureCiRT (A SBU of Z-Vance Pte Ltd) http://www.securecirt.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE99nO6NgvTa7Hj2AURAjSWAKDKCPsHMOnTG5ZoTsIVmrc/kXtWGgCgjSkA nZIb7kE7Odcwy2XO1/R4CHU= =ntZ2 -----END PGP SIGNATURE----- ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From dadams at persistcorp.com Wed Dec 11 02:10:00 2002 From: dadams at persistcorp.com (Drew Adams) Date: Tue, 10 Dec 2002 17:10:00 -0800 Subject: Alert Histogram options Message-ID: Would someone please describe the following options for creating an Alert Histogram report. I'd like to know what they mean/do. - Initial States Logged - Ignore Repeated States Thanks, Drew ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From tdeblend at gcc.dhl.com Wed Dec 11 09:20:30 2002 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Wed, 11 Dec 2002 09:20:30 +0100 Subject: nsclient nolonger working? References: <1039546303.26821.15.camel@rh80-jsm.telaurus.net> Message-ID: <3DF6F54E.331F7D04@gcc.dhl.com> Maybe a bit silly, but did you allready try restarting the NSClient service on that server? Jeff McKeon wrote: > > Hey all. I seem to have lost the ability to use the Check_nt plugin > with one on my win2k servers. the nsclient service installed on it is > getting the following error in the applications even log: > > warning: CollectData Failed > > This has been happily working for weeks now. > > any ideas? > > Thanks, > > Jeff > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From Fredrik.Wanglund at datavis.se Wed Dec 11 09:27:22 2002 From: Fredrik.Wanglund at datavis.se (=?iso-8859-1?Q?Fredrik_W=E4nglund?=) Date: Wed, 11 Dec 2002 09:27:22 +0100 Subject: nsclient nolonger working? Message-ID: <9EA0F1554816EB499A4B1136B80E8DE2780434@storevis.datavis.se> I have had the same problem after installing the latest servicepack. It was discussed here maybe a mont ago weeks ago. The only solution that came up (I think) was to restart NSClient and try a query until it works. Maybe it could help to restart Windows performace-service too... /FredrikW -----Original Message----- From: Jeff McKeon [mailto:jsm at inpro.net] Sent: Tue 10-Dec-02 19:51 To: Nagios List Cc: Subject: [Nagios-users] nsclient nolonger working? Hey all. I seem to have lost the ability to use the Check_nt plugin with one on my win2k servers. the nsclient service installed on it is getting the following error in the applications even log: warning: CollectData Failed This has been happily working for weeks now. any ideas? Thanks, Jeff ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From Stanley.Hopcroft at IPAustralia.Gov.AU Wed Dec 11 09:57:13 2002 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Wed, 11 Dec 2002 19:57:13 +1100 Subject: Problem staring nagios In-Reply-To: ; from Gawain_Osborne@health.qld.gov.au on Wed, Dec 11, 2002 at 04:37:04PM +1000 References: Message-ID: <20021211195709.A220@IPAustralia.Gov.AU> Dear Sir, I am forwarding the back trace to the list, hoping that others will correct my mistakes or have better ideas. On Wed, Dec 11, 2002 at 04:37:04PM +1000, Gawain Osborne wrote: > Hi Stanley, > > I did not get a core file, so I tried the below witout the -c switcc and this is what I got: > > [root at pa-linux-01 nagios]# gdb /usr/local/nagios/bin/nagios > GNU gdb 5.2.1-2mdk (Mandrake Linux) > Copyright 2002 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you are > welcome to change it and/or distribute copies of it under certain conditions. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for details. > This GDB was configured as "i586-mandrake-linux-gnu"... > (no debugging symbols found)... > (gdb) set args -v /usr/local/nagios/etc/nagios.cfg > (gdb) r > Starting program: /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg > (no debugging symbols found)...(no debugging symbols found)... > (no debugging symbols found)...(no debugging symbols found)... > (no debugging symbols found)...(no debugging symbols found)... > (no debugging symbols found)...(no debugging symbols found)... > Program received signal SIGSEGV, Segmentation fault. > 0x4010638f in PerlIO_stdoutf () > from /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/libperl.so > (gdb) bt > #0 0x4010638f in PerlIO_stdoutf () > from /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/libperl.so > #1 0x08051285 in main () > #2 0x401a2082 in __libc_start_main () from /lib/i686/libc.so.6 > (gdb) quit > The program is running. Exit anyway? (y or n) n > Not confirmed. > (gdb) quit > The program is running. Exit anyway? (y or n) y > > This is how I tried to start nagios and the report i got: > [root at pa-linux-01 nagios]# /etc/rc.d/init.d/nagios start > Starting network monitor: nagios > No lock file found in /usr/local/nagios/var/nagios.lock > > I got the same as below in the log file, any help??? > > Cheers, > > Gawain ;-) > My interpretation of the back trace is 1 Your Nagios has not been compiled with debugging symbols. This is not the case for mine. Yours may well have been compiled differently since I think CFLAGS="-g -O2" is the default (in configure). ==> This Nagios may have originated from an RPM or package since it was built differently than what is usually the case if built from source. (Sorry this is wrong. Did you build from source ?) That being the case, it may have been compiled with Perl support. 2 The fault occured in libperl.so, the standard Perl shared library. This was apparently called from the Nagios main() function (after it was loaded by libc.so.6) Why this was called is a big mystery to me. Please would you post any output from (as root) :- /usr/local/nagios/bin/nagios -m (Here's mine tsitc# /usr/local/nagios/bin/nagios -m Nagios 1.0 Copyright (c) 1999-2002 Ethan Galstad (nagios at nagios.org) Last Modified: 11-24-2002 License: GPL External Data I/O ----------------- Object Data: TEMPLATE Status Data: DEFAULT Retention Data: DEFAULT Comment Data: DEFAULT Downtime Data: DEFAULT Performance Data: DEFAULT Options ------- * Embedded Perl compiler (With caching) tsitc# This Nagios uses Perl.) If yours shows 'Embedded Perl compiler', please consider 1 Download the source from http://www.Nagios.ORG 2 Build it as documented and install the binary only. My understanding is that you have __no__ functional Nagios in /usr/local/nagios/bin. If that's not the case, then proceed at your own risk and exercise due diligence - if I suggest cd / && rm -rF *, don't do it. (ie ./configure (making sure that messages show that the gd libraries and headers are found) make all Then, __manually__ install the base/nagios binary (cp base/nagios /usr/local/nagios/bin/ or something like it. This means that the debugging symbols are not stripped.) 3 Try starting it manually - forget /etc/rc/nagios.init or whatever. Try /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg. If it works, replace -v with -d. Otherwise, post the backtrace again. If your Nagios does __not__ show a Perl option, then I cannot offer any more help. Does perl work on your system (eg perl -e 'print "Hello world.\n"') ? If not, then you probably should deal with it. If Netsaint is built without it, it should be functional but lots of other things won't (on a FreeBSD system Perl is used to in the rebuild the kernel process). Lstly, Nagios works well. There is something unfortunate about your situation that is causing this problem. All it needs is finding it. Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From krislists at sledge-hammer.net Wed Dec 11 10:25:09 2002 From: krislists at sledge-hammer.net (Kris Dahl) Date: Wed, 11 Dec 2002 01:25:09 -0800 Subject: Strange MySQL problem, can't seem to figure out Message-ID: <049101c2a0f7$33a96160$021010ac@tequila> I've compiled in support, and configured resource.cfg and cgi.cfg with the proper hostname, port, database, username, password, etc Ran the contrib/database/create_mysql, and verified that the tables are there. [root at vodka database]# mysql -u nagios -p nagios mysql> show tables; +------------------+ | Tables_in_nagios | +------------------+ | hostcomments | | hostdowntime | | hostextinfo | | hostretention | | hoststatus | | programretention | | programstatus | | servicecomments | | servicedowntime | | serviceextinfo | | serviceretention | | servicestatus | +------------------+ 12 rows in set (0.00 sec) And the 'pre-flight' check (nagios -v) comes back with 0 errors, 0 warnings (well not the first time, but it does now :)). [root at vodka etc]# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg Total Warnings: 0 Total Errors: 0 Yet I'm getting the following error(s) [root at vodka etc]# /usr/local/nagios/bin/nagios /usr/local/nagios/etc/nagios.cfg Nagios 1.0 Nagios 1.0 starting... (PID=25132) Error: Could not read program retention data from table programretention Error: Could not read host retention data from table hostretention Error: Could not read service retention data from table serviceretention Error: Could not lock status data tables in database '' Error: Could not lock status data tables in database '' Error: Could not lock status data tables in database '' Error: Could not lock status data tables in database '' ... Error: Could not lock status data tables in database '' What is strange is that (according to what I've read in the lists, etc.) is that it seems like its not really getting the MySQL configurtion from the resource.cfg. It shoul dbe saying something like "Error: Could not lock status data tables in database 'nagios'" right? Here is a snippet of my resource.cfg file xrddb_host=localhost xrddb_port=3306 xrddb_database=nagios xrddb_username=nagios xrddb_password=password xrddb_optimize_data=1 Anyone have any ideas? Thanks! -k ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From Roberto.Balestra at getronics.com Wed Dec 11 10:57:11 2002 From: Roberto.Balestra at getronics.com (Balestra, Roberto) Date: Wed, 11 Dec 2002 10:57:11 +0100 Subject: Strange MySQL problem, can't seem to figure out Message-ID: <7537146F3CB48243B01EEA16DA7110BE22713A@excitmi100.europe.unity> In your sample you use password nagios but in your cfg file used password 'password'. If this is not an example this may be your problem. Bye Roberto > -----Original Message----- > From: Kris Dahl [mailto:krislists at sledge-hammer.net] > Sent: mercoled? 11 dicembre 2002 10.25 > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Strange MySQL problem, can't seem to > figure out > > > I've compiled in support, and configured resource.cfg and > cgi.cfg with the > proper hostname, port, database, username, password, etc > > Ran the contrib/database/create_mysql, and verified that the > tables are > there. > > [root at vodka database]# mysql -u nagios -p nagios > mysql> show tables; > +------------------+ > | Tables_in_nagios | > +------------------+ > | hostcomments | > | hostdowntime | > | hostextinfo | > | hostretention | > | hoststatus | > | programretention | > | programstatus | > | servicecomments | > | servicedowntime | > | serviceextinfo | > | serviceretention | > | servicestatus | > +------------------+ > 12 rows in set (0.00 sec) > > > And the 'pre-flight' check (nagios -v) comes back with 0 > errors, 0 warnings > (well not the first time, but it does now :)). > > [root at vodka etc]# /usr/local/nagios/bin/nagios -v > /usr/local/nagios/etc/nagios.cfg > Total Warnings: 0 > Total Errors: 0 > > > Yet I'm getting the following error(s) > > [root at vodka etc]# /usr/local/nagios/bin/nagios > /usr/local/nagios/etc/nagios.cfg > > Nagios 1.0 > > Nagios 1.0 starting... (PID=25132) > Error: Could not read program retention data from table > programretention > Error: Could not read host retention data from table hostretention > Error: Could not read service retention data from table > serviceretention > Error: Could not lock status data tables in database '' > Error: Could not lock status data tables in database '' > Error: Could not lock status data tables in database '' > Error: Could not lock status data tables in database '' > ... > Error: Could not lock status data tables in database '' > > > What is strange is that (according to what I've read in the > lists, etc.) is > that it seems like its not really getting the MySQL > configurtion from the > resource.cfg. It shoul dbe saying something like > "Error: Could not lock status data tables in database 'nagios'" > right? > > Here is a snippet of my resource.cfg file > > xrddb_host=localhost > xrddb_port=3306 > xrddb_database=nagios > xrddb_username=nagios > xrddb_password=password > xrddb_optimize_data=1 > > > Anyone have any ideas? > > Thanks! > > -k > > > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From kuehne at sietec.de Wed Dec 11 12:05:20 2002 From: kuehne at sietec.de (Alex Kuehne) Date: Wed, 11 Dec 2002 12:05:20 +0100 Subject: Strange MySQL problem, can't seem to figure out Message-ID: <3DF71BF0.8040307@sietec.de> > I've compiled in support, and configured resource.cfg and > cgi.cfg with the > proper hostname, port, database, username, password, etc > > Ran the contrib/database/create_mysql, and verified that the > tables are > there. > And the 'pre-flight' check (nagios -v) comes back with 0 > errors, 0 warnings > (well not the first time, but it does now :)). > [...] Make sure the cgis can at least red the configuration files. Remember the cgis run with permissions of your webserver user. Regards Alex Kuehne -- Network Manager, SAG, Berlin, Germany ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From kuehne at sietec.de Wed Dec 11 12:53:30 2002 From: kuehne at sietec.de (Alex Kuehne) Date: Wed, 11 Dec 2002 12:53:30 +0100 Subject: Configure Nagios with MySQL? Message-ID: <3DF7273A.5020709@sietec.de> > -----Original Message----- > From: mailing at bgs-ing.de [mailto:mailing at bgs-ing.de] > Sent: Tuesday, December 10, 2002 10:04 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Configure Nagios with MySQL? > > > Hi, > > I have compiled nagios with mysql support and configured cgi > /resource > config file for mysql. > I created the tables in the database with create_mysql file. > > Do I have to enter the configuration details in the database by hand? > Or is there any configuration utility? Don't know what you exactly mean. After creating the tables you have to edit the resource.cfg and cgi.cfg with the proper options. Nothing else must be done. Just start Nagios and everything should work fine, assuming your other configuration is right. Regards Alex Kuehne -- Network Manager, SAG, Berlin, Germany ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From jsm at inpro.net Wed Dec 11 13:47:08 2002 From: jsm at inpro.net (Jeff McKeon) Date: 11 Dec 2002 07:47:08 -0500 Subject: nsclient nolonger working? In-Reply-To: <3DF6F54E.331F7D04@gcc.dhl.com> References: <1039546303.26821.15.camel@rh80-jsm.telaurus.net> <3DF6F54E.331F7D04@gcc.dhl.com> Message-ID: <1039610830.14504.2.camel@rh80-jsm.telaurus.net> Yes, first thing I tried. On Wed, 2002-12-11 at 03:20, Tom DE BLENDE wrote: > Maybe a bit silly, but did you allready try restarting the NSClient > service on that server? > > Jeff McKeon wrote: > > > > Hey all. I seem to have lost the ability to use the Check_nt plugin > > with one on my win2k servers. the nsclient service installed on it is > > getting the following error in the applications even log: > > > > warning: CollectData Failed > > > > This has been happily working for weeks now. > > > > any ideas? > > > > Thanks, > > > > Jeff > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From jsm at inpro.net Wed Dec 11 14:31:18 2002 From: jsm at inpro.net (Jeff McKeon) Date: 11 Dec 2002 08:31:18 -0500 Subject: nsclient nolonger working? In-Reply-To: <9EA0F1554816EB499A4B1136B80E8DE2780434@storevis.datavis.se> References: <9EA0F1554816EB499A4B1136B80E8DE2780434@storevis.datavis.se> Message-ID: <1039613479.14668.4.camel@rh80-jsm.telaurus.net> Fixed it. I had to uninstall, reboot and then install the nsclient again. This happend after an automatic windows update. On Wed, 2002-12-11 at 03:27, Fredrik W?nglund wrote: > > I have had the same problem after installing the latest servicepack. It was discussed here maybe a mont ago weeks ago. > The only solution that came up (I think) was to restart NSClient and try a query until it works. Maybe it could help to restart Windows performace-service too... > > > /FredrikW > > > -----Original Message----- > From: Jeff McKeon [mailto:jsm at inpro.net] > Sent: Tue 10-Dec-02 19:51 > To: Nagios List > Cc: > Subject: [Nagios-users] nsclient nolonger working? > > Hey all. I seem to have lost the ability to use the Check_nt plugin > with one on my win2k servers. the nsclient service installed on it is > getting the following error in the applications even log: > > warning: CollectData Failed > > This has been happily working for weeks now. > > any ideas? > > Thanks, > > Jeff > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From tdeblend at gcc.dhl.com Wed Dec 11 14:43:14 2002 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Wed, 11 Dec 2002 14:43:14 +0100 Subject: nsclient nolonger working? References: <9EA0F1554816EB499A4B1136B80E8DE2780434@storevis.datavis.se> <1039613479.14668.4.camel@rh80-jsm.telaurus.net> Message-ID: <3DF740F2.A14B1635@gcc.dhl.com> automatic windows updates on a server? boy, you are one brave man! Jeff McKeon wrote: > > Fixed it. > > I had to uninstall, reboot and then install the nsclient again. This > happend after an automatic windows update. > > On Wed, 2002-12-11 at 03:27, Fredrik W??nglund wrote: > > > > I have had the same problem after installing the latest servicepack. It was discussed here maybe a mont ago weeks ago. > > The only solution that came up (I think) was to restart NSClient and try a query until it works. Maybe it could help to restart Windows performace-service too... > > > > > > /FredrikW > > > > > > -----Original Message----- > > From: Jeff McKeon [mailto:jsm at inpro.net] > > Sent: Tue 10-Dec-02 19:51 > > To: Nagios List > > Cc: > > Subject: [Nagios-users] nsclient nolonger working? > > > > Hey all. I seem to have lost the ability to use the Check_nt plugin > > with one on my win2k servers. the nsclient service installed on it is > > getting the following error in the applications even log: > > > > warning: CollectData Failed > > > > This has been happily working for weeks now. > > > > any ideas? > > > > Thanks, > > > > Jeff > > > > > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by: > > With Great Power, Comes Great Responsibility > > Learn to use your power at OSDN's High Performance Computing Channel > > http://hpc.devchannel.org/ > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From naabokhalaf at refertelecom.pt Wed Dec 11 14:49:38 2002 From: naabokhalaf at refertelecom.pt (ABOKHALAF, Nassri Abdellatif) Date: Wed, 11 Dec 2002 13:49:38 -0000 Subject: Plugin for Squid Message-ID: <5032019AFC475F4B95262C63B94BC2F8B8A5@rtsvr8.refertelecom.pt> A non-text attachment was scrubbed... Name: smime.p7m Type: application/pkcs7-mime Size: 7532 bytes Desc: not available URL: From jasmine.chua at securecirt.com Wed Dec 11 15:37:58 2002 From: jasmine.chua at securecirt.com (Jasmine Chua) Date: Wed, 11 Dec 2002 22:37:58 +0800 Subject: check_ldap plugin Message-ID: <200212112238.03654.jasmine.chua@securecirt.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi guys, anyone provide me a perl plugin check_ldap? Cheers, - -- Jasmine Chua Security Engineer, SecureCiRT (A SBU of Z-Vance Pte Ltd) http://www.securecirt.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9903KNgvTa7Hj2AURAmV/AJ9VkBLjvbi5Bd6DgIZ4hqZXic1p8gCcCbBs qeMre/OocWA4GQOV9XhYR+w= =RhFz -----END PGP SIGNATURE----- ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From hps_kolsassberg at yahoo.com Wed Dec 11 15:32:25 2002 From: hps_kolsassberg at yahoo.com (HPS) Date: Wed, 11 Dec 2002 06:32:25 -0800 (PST) Subject: Modified SaintMap Message-ID: <20021211143225.17576.qmail@web21511.mail.yahoo.com> Hallo !! I have modified ?SaintMap? that it produces an output in the Template-Based way and I have written 2 little perl programmes that transfom hosts.cfg and hostextinfo.cfg into a simplified default (old) method definition. I use the ?old? method as input for SaintMap. How to Use: Copy hosts2default.pl and hostextinfo2default.pl into the nagios-etc-folder (for instance, /usr/local/nagios/etc/) and run ?./hosts2default.pl? and ?./hostextinfo2default.pl? (both executable !!) on the command line in the nagios-etc-folder (Make a backup first !! ; )) Hosts2default.pl returns a file called hostsdefault.cfg and it contains only the host_name and one (!) parent !! Hostextinfo2default.pl creates a file with the name hostextinfodefault.cfg. The next step is to start SaintMap (executable !!) in a XTERM-window with the command ?./saintmap.pl?. Then you open hostsdefault.cfg and hostextinfo.cfg. You can now see your old map (no images ? only the ??? appears as icon). Next: Drag-and-Drop. When you have finished your work, save to any file (best: hostextinfo.cfg) and this file contains your ?Extended Host Information?. SEE YOU HPS PS: I?m not in the MailingList !! --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: saintmap.zip Type: application/x-zip-compressed Size: 17310 bytes Desc: saintmap.zip URL: From jared.brick at convergia.net Wed Dec 11 15:56:38 2002 From: jared.brick at convergia.net (Jared Brick) Date: 11 Dec 2002 09:56:38 -0500 Subject: Response time Message-ID: <1039618597.3196.148.camel@jared.convergia.net> Hello, I'm trying to improve Nagios's response time for when a host is down. I would like to shorten as much as possible the time between a host going down and Nagios sending out a notification. All hosts have a ping service so I would use this service as a way checking when a host is down. Does anyone have experience with Nagios in an environment where downtime is a big concern? Care to share which settings I should use to increase performance? Thanks, Jared Brick ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From tinzauro at axiomintegration.com Wed Dec 11 15:58:54 2002 From: tinzauro at axiomintegration.com (Terry Inzauro) Date: 11 Dec 2002 08:58:54 -0600 Subject: notifications on a host-to-contact basis Message-ID: <1039618739.20579.27.camel@inzauro1.axiomintegration.com> Is there an simple way to setup notifications on a 1 to 1 basis(1 host 1 contact or e-mail address) Terry Inzauro Systems Engineer Email: tinzauro at axiomintegration.com Phone: 402.345.5500 Fax: 402.345.5501 US Mail: Axiom Integration, Inc. One Owen Pkwy 2200 Abbott Drive Carter Lake, IA 51510 -------------- next part -------------- An HTML attachment was scrubbed... URL: From mounier at enac.fr Wed Dec 11 15:56:09 2002 From: mounier at enac.fr (Philippe Mounier) Date: Wed, 11 Dec 2002 15:56:09 +0100 Subject: Pb with nagios 2.0a1 Message-ID: <5.1.1.5.2.20021211154200.00a68370@elise.enac.fr> I try to use last CVS Nagios version but I have problem with Host check command I use argument with check command, but nagios "don't understand" : status host don't change ... ##checkcommands.cfg : define command { command_name check-host-alive-SNMP1 command_line $USER1$/check_snmp -H $HOSTADDRESS$ -o sysUpTime.0 -C $ARG1$ ## hosts.cfg : define host{ use test-vie-secur host_name g-mir alias Routeur Salle TD address 172.20.100.65 max_check_attempts 1 check_command check-host-alive-SNMP1!public } but if I don't use argument, it's OK : ##checkcommands.cfg : define command { command_name check-host-alive-SNMP1 command_line $USER1$/check_snmp -H $HOSTADDRESS$ -o sysUpTime.0 -C public ## hosts.cfg : define host{ use test-vie-secur host_name g-mir alias Routeur Salle TD address 172.20.100.65 max_check_attempts 1 check_command check-host-alive-SNMP1 } ## nagios.log [1039617423] HOST ALERT: g-mir;DOWN;HARD;1;SNMP problem - No data recieved from host [1039617423] HOST NOTIFICATION: eleve;g-mir;DOWN;host-notify-by-email;SNMP problem - No data recieved from host Thanks for help Philippe ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From tdeblend at gcc.dhl.com Wed Dec 11 15:56:54 2002 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Wed, 11 Dec 2002 15:56:54 +0100 Subject: check_ldap plugin References: <200212112238.03654.jasmine.chua@securecirt.com> Message-ID: <3DF75236.7BA3725F@gcc.dhl.com> What's wrong with the C version in the plugins main distribution? Jasmine Chua wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi guys, > > anyone provide me a perl plugin check_ldap? > > Cheers, > - -- > Jasmine Chua > Security Engineer, SecureCiRT (A SBU of Z-Vance Pte Ltd) > http://www.securecirt.com > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.0.6 (GNU/Linux) > Comment: For info see http://www.gnupg.org > > iD8DBQE9903KNgvTa7Hj2AURAmV/AJ9VkBLjvbi5Bd6DgIZ4hqZXic1p8gCcCbBs > qeMre/OocWA4GQOV9XhYR+w= > =RhFz > -----END PGP SIGNATURE----- > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From jlyons30 at yahoo.com Wed Dec 11 16:24:55 2002 From: jlyons30 at yahoo.com (Jon Lyons) Date: Wed, 11 Dec 2002 07:24:55 -0800 (PST) Subject: Mail archive search probelms? In-Reply-To: <1039618739.20579.27.camel@inzauro1.axiomintegration.com> References: <1039618739.20579.27.camel@inzauro1.axiomintegration.com> Message-ID: <20021211152455.30433.qmail@web21511.mail.yahoo.com> Is anyone able to search the nagios mail archives at sourceforge.net? I just get a blank page ----- Jon Lyons Black Honda F3 #800 --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From gjfrater at bechtel.com Wed Dec 11 16:30:21 2002 From: gjfrater at bechtel.com (Frater, Greg J) Date: Wed, 11 Dec 2002 07:30:21 -0800 Subject: nagios veritas netbackup plugin? Message-ID: We use Veritas BackupExec which adds an object in the perfmon. Maybe you can use the nsclient and look at values from that object. -----Original Message----- From: Jason Ahrens [mailto:Jason.Ahrens at TELUS.COM] Sent: Tuesday, December 10, 2002 8:08 AM To: 'nagios-users at lists.sourceforge.net' Subject: RE: [Nagios-users] nagios veritas netbackup plugin? > Is there anything written to monitor Veritas NetBackup? Thanks upfront. Not natively, you have to write it yourself AFAIK. I spent a few weeks developing plugins for use with Veritas NetBackup (3.4.1) with Perl. It's not all that difficult. I have a suite of tools that monitors drive status, pending requests, robot status, CAP/inport slots full, media-in-pool monitoring (most useful for Scratch). Maybe others I don't recall off the top of my head. Couple media pool monitoring together with MRTG and you get a lovely media usage trend graphs. The hardest part was monitoring Backup exit status. The easiest way to do that would be through BPEND_NOTIFY scripts and passive checking, depending how much information you want. My original solution of active backup status checking was too CPU intensive on the NetBackup system. Though it's possible to do. My current my solution (which may not easily portable) involves a customized BPEND_NOTIFY script, interfacing with bpdbjobs, and transferring a file occasionally from the NetBackup system to the Nagios system.) Jason -- Jason Ahrens, Hosting Analyst TELUS IP Solutions http://www.telus.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From gjfrater at bechtel.com Wed Dec 11 16:42:40 2002 From: gjfrater at bechtel.com (Frater, Greg J) Date: Wed, 11 Dec 2002 07:42:40 -0800 Subject: nsclient nolonger working? Message-ID: check the version of the phd.dll (or is it pdh.dll?). This is a windows dll that is used by the nsclient. Something else (other software) may have put a different version on that box. We use version 5.0.2195.2739 with nsclient on 2k boxes. I just looked it's pdh.dll in the system32 dir. -----Original Message----- From: Jeff McKeon [mailto:jsm at inpro.net] Sent: Tuesday, December 10, 2002 10:52 AM To: Nagios List Subject: [Nagios-users] nsclient nolonger working? Hey all. I seem to have lost the ability to use the Check_nt plugin with one on my win2k servers. the nsclient service installed on it is getting the following error in the applications even log: warning: CollectData Failed This has been happily working for weeks now. any ideas? Thanks, Jeff ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From Jason.Ahrens at TELUS.COM Wed Dec 11 16:58:16 2002 From: Jason.Ahrens at TELUS.COM (Jason Ahrens) Date: Wed, 11 Dec 2002 08:58:16 -0700 Subject: nagios veritas netbackup plugin? Message-ID: <853ED27B8537D611AD1000508BAFBB1101023E63@ONMSG001> That brings up an important point. I forgot to mention that my scripts are for Unix based systems (read be inference?). As far as I've been able to tell, not too many people run NetBackup with 2000/NT as servers so I sometimes forget to mention. Jason -- Jason Ahrens, Hosting Analyst TELUS IP Solutions http://www.telus.com -----Original Message----- From: Frater, Greg J [mailto:gjfrater at bechtel.com] Sent: Wednesday, December 11, 2002 10:30 AM To: 'nagios-users at lists.sourceforge.net' Subject: RE: [Nagios-users] nagios veritas netbackup plugin? We use Veritas BackupExec which adds an object in the perfmon. Maybe you can use the nsclient and look at values from that object. -----Original Message----- From: Jason Ahrens [mailto:Jason.Ahrens at TELUS.COM] Sent: Tuesday, December 10, 2002 8:08 AM To: 'nagios-users at lists.sourceforge.net' Subject: RE: [Nagios-users] nagios veritas netbackup plugin? > Is there anything written to monitor Veritas NetBackup? Thanks upfront. Not natively, you have to write it yourself AFAIK. I spent a few weeks developing plugins for use with Veritas NetBackup (3.4.1) with Perl. It's not all that difficult. I have a suite of tools that monitors drive status, pending requests, robot status, CAP/inport slots full, media-in-pool monitoring (most useful for Scratch). Maybe others I don't recall off the top of my head. Couple media pool monitoring together with MRTG and you get a lovely media usage trend graphs. The hardest part was monitoring Backup exit status. The easiest way to do that would be through BPEND_NOTIFY scripts and passive checking, depending how much information you want. My original solution of active backup status checking was too CPU intensive on the NetBackup system. Though it's possible to do. My current my solution (which may not easily portable) involves a customized BPEND_NOTIFY script, interfacing with bpdbjobs, and transferring a file occasionally from the NetBackup system to the Nagios system.) Jason -- Jason Ahrens, Hosting Analyst TELUS IP Solutions http://www.telus.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jasmine.chua at securecirt.com Wed Dec 11 17:12:47 2002 From: jasmine.chua at securecirt.com (Jasmine Chua) Date: Thu, 12 Dec 2002 00:12:47 +0800 Subject: check_ldap plugin --> part 2 In-Reply-To: <3DF75236.7BA3725F@gcc.dhl.com> References: <200212112238.03654.jasmine.chua@securecirt.com> <3DF75236.7BA3725F@gcc.dhl.com> Message-ID: <200212120012.53466.jasmine.chua@securecirt.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Thanks.. I managed to find that plugin under nagiosplugin-1.3b1 was using the CVS plugins. However, I cant seem to get check_ldap.c configured and made.. how can I get that particular plugin configured, made? On Wednesday 11 December 2002 22:56, Tom DE BLENDE wrote: > What's wrong with the C version in the plugins main distribution? > > Jasmine Chua wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > > Hi guys, > > > > anyone provide me a perl plugin check_ldap? > > > > Cheers, > > - -- > > Jasmine Chua > > Security Engineer, SecureCiRT (A SBU of Z-Vance Pte Ltd) > > http://www.securecirt.com > > -----BEGIN PGP SIGNATURE----- > > Version: GnuPG v1.0.6 (GNU/Linux) > > Comment: For info see http://www.gnupg.org > > > > iD8DBQE9903KNgvTa7Hj2AURAmV/AJ9VkBLjvbi5Bd6DgIZ4hqZXic1p8gCcCbBs > > qeMre/OocWA4GQOV9XhYR+w= > > =RhFz > > -----END PGP SIGNATURE----- > > > > ------------------------------------------------------- > > This sf.net email is sponsored by: > > With Great Power, Comes Great Responsibility > > Learn to use your power at OSDN's High Performance Computing Channel > > http://hpc.devchannel.org/ > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users - -- Jasmine Chua Security Engineer, SecureCiRT (A SBU of Z-Vance Pte Ltd) http://www.securecirt.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE992QENgvTa7Hj2AURAjHmAJ9nNZv29mSuf73RDcV/7rOxbxzo2ACgqwPK 7sYyHX5vNUWkKuzPFksJq8M= =hr0J -----END PGP SIGNATURE----- ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From mangabbs at hotmail.com Wed Dec 11 17:17:28 2002 From: mangabbs at hotmail.com (Master Brian) Date: Wed, 11 Dec 2002 17:17:28 +0100 Subject: authentication problem Message-ID: Thank you for plugin's help. Now finally I've setup (and verified with -v) my .cfg files. Setup my apache for /nagios alias, and created my .htaccess and htpassword as from documentation, but now I cannot access to nagios. When I try to go to http://mysite/nagios/ I get this error: Server error! The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script. If you think this is a server error, please contact the webmaster Error 500 If I read from error_log of my apache what's happen I find: [Wed Dec 11 16:51:23 2002] [alert] [client 10.10.1.40] /usr/local/nagios/share/. htaccess: Invalid command 'uthName', perhaps mis-spelled or defined by a module not included in the server configuration Can someone help me get out this problem pls? Thank you -------------- next part -------------- An HTML attachment was scrubbed... URL: From ABostick at mydoconline.com Wed Dec 11 17:17:51 2002 From: ABostick at mydoconline.com (ABostick at mydoconline.com) Date: Wed, 11 Dec 2002 10:17:51 -0600 Subject: Filter HTML on list!? Message-ID: Is there anyway we can put a filter on the one day summaries to remove all the HTML nonsense I see everyday. It makes it very hard for me to read the messages which in turn makes it hard for me to help anyone on the list. It also makes the list much larger than it could be! Any list moderators have a comment on this? Thanks, Aaron Bostick ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From krislists at sledge-hammer.net Wed Dec 11 17:41:02 2002 From: krislists at sledge-hammer.net (Kris Dahl) Date: Wed, 11 Dec 2002 08:41:02 -0800 Subject: Mail archive search probelms? References: <20021211152455.30433.qmail@web21511.mail.yahoo.com> Message-ID: <04ad01c2a134$18345790$021010ac@tequila> I had the same problem yesterday. -k (Yellow/Black Honda F4!) ----- Original Message ----- From: Jon Lyons To: nagios-users at lists.sourceforge.net Sent: Wednesday, December 11, 2002 7:24 AM Subject: [Nagios-users] Mail archive search probelms? Is anyone able to search the nagios mail archives at sourceforge.net? I just get a blank page ----- Jon Lyons Black Honda F3 #800 ------------------------------------------------------------------------------ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From gjfrater at bechtel.com Wed Dec 11 17:31:36 2002 From: gjfrater at bechtel.com (Frater, Greg J) Date: Wed, 11 Dec 2002 08:31:36 -0800 Subject: Mail archive search probelms? Message-ID: Yes, however, it is extremely slow. That blank page will eventually populate. Not very usable. -----Original Message----- From: Jon Lyons [mailto:jlyons30 at yahoo.com] Sent: Wednesday, December 11, 2002 7:25 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Mail archive search probelms? Is anyone able to search the nagios mail archives at sourceforge.net ? I just get a blank page ----- Jon Lyons Black Honda F3 #800 _____ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From russell at quadrix.com Wed Dec 11 17:43:45 2002 From: russell at quadrix.com (Russell Scibetti) Date: Wed, 11 Dec 2002 11:43:45 -0500 Subject: Config Storage/Generation References: <3DF614F3.9040506@quadrix.com> Message-ID: <3DF76B41.2000601@quadrix.com> I received a question regarding this, so maybe I should try to be more clear. I am trying to work on a way of storing, generating, and managing all our Nagios configs, most likely using a database (MySQL?). I know I've seen some messages on these lists about people already doing this. What I was hoping, is that if anyone has done work like this (create a config DB, written cfg generation scripts, etc), that they could share it to the list. It might save me and others a lot of time and grief if there has already been some work done in this area. If enough people have these types of components, we might be able to put together a good Nagios config management tool even (as a loftier goal to look at). Thanks. -Russell Scibetti Russell Scibetti wrote: > I know I have read emails about users storing config data in DB's, > using scripts for generating/storing configs, etc. I was hoping that > anyone who has created these type of extra components for Nagios could > share them. It would definitely help me out, as I am in charge of > Nagios config creations and management. Thanks. > > -Russell Scibetti > -- Russell Scibetti Quadrix Solutions, Inc. http://www.quadrix.com (732) 235-2335, ext. 7038 ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From Chris.Losch at newham.gov.uk Wed Dec 11 17:57:58 2002 From: Chris.Losch at newham.gov.uk (Chris Losch) Date: Wed, 11 Dec 2002 16:57:58 -0000 Subject: authentication problem Message-ID: Yup... htaccess: Invalid command 'uthName', perhaps mis-spelled or defined by a module Check the .htaccess file, the command should be "AuthName", not uthName.... -----Original Message----- From: Master Brian [mailto:mangabbs at hotmail.com] Sent: 11 December 2002 16:17 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] authentication problem Thank you for plugin's help. Now finally I've setup (and verified with -v) my .cfg files. Setup my apache for /nagios alias, and created my .htaccess and htpassword as from documentation, but now I cannot access to nagios. When I try to go to http://mysite/nagios/ I get this error: Server error! The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script. If you think this is a server error, please contact the webmaster Error 500 If I read from error_log of my apache what's happen I find: [Wed Dec 11 16:51:23 2002] [alert] [client 10.10.1.40] /usr/local/nagios/share/. htaccess: Invalid command 'uthName', perhaps mis-spelled or defined by a module not included in the server configuration Can someone help me get out this problem pls? Thank you ********************************************************************** Important: This e-mail is intended for the above named person only and should be treated as confidential. If this has come to you in error you should take no action based on it, nor should you copy or show it to anyone; please telephone us immediately. ********************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: From jacob at webexc.com Wed Dec 11 18:03:26 2002 From: jacob at webexc.com (Jacob Cazzell) Date: Wed, 11 Dec 2002 12:03:26 -0500 Subject: Cannot stat() problem with nagios.cmd file Message-ID: <5.2.0.9.0.20021211115859.00b10ff8@wopr.webexc.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I noticed there was someone on the mailing list having problems getting the "error: cannot stat" message trying to use external commands. I think the problem might be permission on the $NAGIOS/var/rw directory. I was having the exact same problems until I came across an older NetSaint install where I had corrected this. For me, the fix was to change the permissions on the "rw" directory from drwxrwS--- 2 nagios nagios 512 Dec 11 11:52 rw to this: drwxr-sr-x 2 nagios nagios 512 Dec 11 11:52 rw using "chmod 2755 rw" This has solved the problem for me, and I am now able to process commands submitted via the web interface. Hope this helps out! Thanks, Jacob -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 7.0.3 for non-commercial use iQA/AwUBPfdv3ni/zZJr/TXVEQICIACbBT+ymVvWelSwyKDa2kDDvJ0LVTYAoILf L/n0tymS7LaDjzRcL9BWE39/ =g9Sa -----END PGP SIGNATURE----- ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From jlyons30 at yahoo.com Wed Dec 11 18:32:13 2002 From: jlyons30 at yahoo.com (Jon Lyons) Date: Wed, 11 Dec 2002 09:32:13 -0800 (PST) Subject: Distributed monitoring questions... In-Reply-To: References: Message-ID: <20021211173213.98705.qmail@web21501.mail.yahoo.com> Hi, I've been trying to search the archives, but it seems to be having issuse, so hopefully someone can help. I've got two montoring machines on our network, one nagios(monitors networks) and one netsaint machine(unix services). Is there a way to display the netstaint machine errors/acknowledgements in my nagios web interface? I'd like to keep both machines seperate(for admin,alerts,etc..etc.), however I'd like the help desk people to see all errors in one spot. Distrubuted monitoring looks like what I'm looking for, but I have a few questions. Does this setup mean that I need to have all host definitions/services defined on the central server, even the hosts/services the distrubuted server is monitoring? The admin for the distributed server adds a service/host, do I need to update the configs of the central server? And will this work with nagios & a netstaint setup? Thanks.. --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From modea at upoc-inc.com Wed Dec 11 18:34:24 2002 From: modea at upoc-inc.com (Michael O'Dea) Date: Wed, 11 Dec 2002 12:34:24 -0500 Subject: FW: [netsaint] check_snmp errors with solaris 8/sparc - No data recieved from host Message-ID: <4DB9CCB36001AC4F901CC0EC4409719901EF108E@exchange01.upocny.upoc-inc.com> Hi. I sent this to the netsaint list yesterday - then found out about nagios, and installed it & then signed up for the list -- and am still having the same problem with the nagios check_snmp plugin. the version is: check_snmp (nagios-plugins 1.3.0-beta2) 1.20 Any ideas? thanks -m -----Original Message----- From: Michael O'Dea Sent: Tuesday, December 10, 2002 12:43 PM To: netsaint-users at lists.sourceforge.net Subject: [netsaint] check_snmp errors with solaris 8/sparc - No data recieved from host Hello, I seem to be having a problem with the check_snmp plugin, I am getting this error: root at host: [/opt/netsaint #] libexec/check_snmp 10.0.0.5 -C test123 -o system.susName.0 SNMP problem - No data recieved from host CMD: /usr/local/bin/snmpget -m ALL -v 1 10.10.6.81 1luvUp0C system.susName.0 so I run the snmpget cmdline and get a answer: root at host: [/opt/netsaint #] /usr/local/bin/snmpget -m ALL -v 1 10.0.0.5 test123 system.sysName.0 system.sysName.0 = "message1" It works fine... So I checked the mailing list archive & google and I came up with this: http://www.geocrawler.com/mail/msg.php3?msg_id=7358656&list=739 http://www.geocrawler.com/archives/3/736/2001/8/0/6342925/ I tried upping TXTBLK to 256 in the utils.c -- no luck. Any suggestions? system info: check_snmp (netsaint-plugins 1.2.9-4) 1.21.2.5 UCD-snmp version: 4.2.6 SunOS host 5.8 Generic_108528-15 sun4u sparc SUNW,Sun-Fire-280R gcc version 3.2 It does work for me on a solaris 7/intel system, same plugin version but ucd-snmp 4.1.2. I tried compiling 4.1.2 on the solaris 8/sparc box and got the same error. Anyone else seen this? thanks ---- Michael A. O'Dea Senior Systems Administrator Upoc, Inc - NYC, NY 212.405.1042 (desk) modea at upoc-inc.com Upoc Handle: fddi "when the going gets weird, the weird turn pro" -HST ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Netsaint-users mailing list Netsaint-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/netsaint-users ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From jcarro10 at sprintspectrum.com Wed Dec 11 19:03:50 2002 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Wed, 11 Dec 2002 12:03:50 -0600 Subject: Cannot stat() problem with nagios.cmd file Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E112D@PKDWB03C.ad.sprint.com> You're better off following the documentation. Here's a quick summary: - create the group 'nagiocmd' (not 'nagioscmd', so be careful of any typos) - add 'nagios' and whatever the username is that your webserver is running under (eg, 'apache') to group 'nagiocmd' - "chmod 2750 rw" - restart nagios - you may need to restart your webserver, but I don't think so HTH. jc > -----Original Message----- > From: Jacob Cazzell [mailto:jacob at webexc.com] > Sent: Wednesday, December 11, 2002 11:03 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Cannot stat() problem with nagios.cmd file > > > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > I noticed there was someone on the mailing list having > problems getting the > "error: cannot stat" message trying to use external commands. > > I think the problem might be permission on the $NAGIOS/var/rw > directory. I > was having the exact same problems until I came across an > older NetSaint > install where I had corrected this. > > For me, the fix was to change the permissions on the "rw" > directory from > > drwxrwS--- 2 nagios nagios 512 Dec 11 11:52 rw > > to this: > > drwxr-sr-x 2 nagios nagios 512 Dec 11 11:52 rw > > using "chmod 2755 rw" > > This has solved the problem for me, and I am now able to > process commands > submitted via the web interface. > > Hope this helps out! > > Thanks, > > Jacob > -----BEGIN PGP SIGNATURE----- > Version: PGPfreeware 7.0.3 for non-commercial use > > iQA/AwUBPfdv3ni/zZJr/TXVEQICIACbBT+ymVvWelSwyKDa2kDDvJ0LVTYAoILf > L/n0tymS7LaDjzRcL9BWE39/ > =g9Sa > -----END PGP SIGNATURE----- > > > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From krislists at sledge-hammer.net Wed Dec 11 19:18:46 2002 From: krislists at sledge-hammer.net (Kris Dahl) Date: Wed, 11 Dec 2002 10:18:46 -0800 Subject: Strange MySQL problem, can't seem to figure out References: <3DF71BF0.8040307@sietec.de> Message-ID: <04d701c2a141$c0365e90$021010ac@tequila> You're the man. Since I copied the sample files to the actual files they were all owned by root.root, changed it to nagios.nagiocmd and gave it the proper group perms and it works! -k ----- Original Message ----- From: "Alex Kuehne" To: Sent: Wednesday, December 11, 2002 3:05 AM Subject: Re: [Nagios-users] Strange MySQL problem, can't seem to figure out > > I've compiled in support, and configured resource.cfg and > > cgi.cfg with the > > proper hostname, port, database, username, password, etc > > > > Ran the contrib/database/create_mysql, and verified that the > > tables are > > there. > > And the 'pre-flight' check (nagios -v) comes back with 0 > > errors, 0 warnings > > (well not the first time, but it does now :)). > > > [...] > > Make sure the cgis can at least red the configuration files. Remember the > cgis run with permissions of your webserver user. > > Regards > Alex Kuehne > > -- > Network Manager, SAG, Berlin, Germany > > > > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From Jeremy.Bouse at UnderGrid.net Wed Dec 11 19:26:11 2002 From: Jeremy.Bouse at UnderGrid.net (Jeremy T. Bouse) Date: Wed, 11 Dec 2002 10:26:11 -0800 Subject: check_ldap plugin --> part 2 In-Reply-To: <200212120012.53466.jasmine.chua@securecirt.com> References: <200212112238.03654.jasmine.chua@securecirt.com> <3DF75236.7BA3725F@gcc.dhl.com> <200212120012.53466.jasmine.chua@securecirt.com> Message-ID: <20021211182611.GA5458@UnderGrid.net> On Thu, Dec 12, 2002 at 12:12:47AM +0800, Jasmine Chua wrote: > > Thanks.. I managed to find that plugin under nagiosplugin-1.3b1 was using the > CVS plugins. However, I cant seem to get check_ldap.c configured and made.. > how can I get that particular plugin configured, made? > Hmm... I haven't had any problems building the check_ldap plugin from CVS here... Are you sure you have the OpenLDAP development files (header files and libraries) installed on your build machine? I've even got the version I'm working on here to be able to check my LDAP server over both IPv4 and IPv6 successfully... Jeremy ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From wilson at unity.ncsu.edu Wed Dec 11 19:38:10 2002 From: wilson at unity.ncsu.edu (Brian Wilson) Date: Wed, 11 Dec 2002 13:38:10 -0500 (EST) Subject: Config Storage/Generation In-Reply-To: <3DF76B41.2000601@quadrix.com> References: <3DF614F3.9040506@quadrix.com> <3DF76B41.2000601@quadrix.com> Message-ID: Russell, I think this request is somewhat impossible because I haven't met anyone who wants to do the exact same thing with nagios as I. Thus, their configs are going to be different, and most likely their database will be different. How will one populate their database? Where will notifications go? How do you make changes to the db? Just to make my point, I'll attach the script that runs to pull data out of my mysql db and generate my nagios configs. It will probably be of little use to anyone. 1) all notifications are handled by an event handler accept those that have a notify_email in the db. the event handler writes back to the db and populates fields such as down_count_* last_down_count_* last_down_*. 2) the db is populated by another script that dumps data from ciscoworks. this script is somewhat intelligent as it will take care of ip/hostname changes, password changes, etc. 3) Nagios is only used for checks, all managing/unmanaging of devices, downtime, etc is handled through a web-based db frontend and commands are pushed to nagios rw. 4) The event handler checks to see if I device is supposed to be down (schedled downtime), then sends proper commands to the nagios rw file. 5) cronjob is run every 15 minutes to look at the db and find all devices that a) are down b) have been down and recovered - but if the device has gone down and comes back up before the cronjob is run, no notification will be sent c) devices that have been acknowledged and d) devices that have downtime or been unmanaged. This way, if 100 devices go down, you don't get 100 different emails, instead, you get 1 email with info about 100 devices: myswtich.blah.com DOWN (12/10/2002 10:10:03) myrouter.blah.com POWERSUPPLY FAIL (12/10/2002 10:10:03) .. So, what good is it if you have the config generation piece with none of the other pieces? Prolly not much good at all. I'd share everything, but there's not enough time in the day to fully document and make everything so that it would be portable to other locations.. not to mention supporting what is published.. My advice to you is to spend a day (or week) designing exactly what you want out of nagios, build a db (you'll have to rebuild it and add more things later, trust me), then start coding. mysql> describe host_table; +----------------------+---------------------+------+-----+------------+----------------+ | Field | Type | Null | Key | Default | Extra | +----------------------+---------------------+------+-----+------------+----------------+ | oid | int(11) | | PRI | NULL | auto_increment | | a | tinyint(4) unsigned | | | 0 | | | b | tinyint(4) unsigned | | | 0 | | | c | tinyint(6) unsigned | | | 0 | | | d | tinyint(4) unsigned | | | 0 | | | hostname | varchar(40) | | MUL | | | | alias | varchar(35) | YES | MUL | NULL | | | vlan | varchar(60) | YES | | NULL | | | readonly | varchar(12) | YES | | public | | | readwrite | varchar(12) | YES | | private | | | pw1 | varchar(20) | YES | | NULL | | | pw2 | varchar(20) | YES | | NULL | | | pw_type | varchar(20) | | | telnet | | | device_type | text | YES | | NULL | | | device_version | text | YES | | NULL | | | to_monitor | tinyint(4) | | | 1 | | | notification_sent | tinyint(4) | YES | | 0 | | | downtime_start | datetime | YES | | NULL | | | downtime_stop | datetime | YES | | NULL | | | down_count_sys1 | smallint(6) | YES | | 0 | | | down_count_sys2 | tinyint(6) | YES | | 0 | | | last_down_count_sys1 | tinyint(6) | YES | | 0 | | | last_down_count_sys2 | tinyint(4) | YES | | 0 | | | last_down_sys1 | datetime | YES | | NULL | | | last_down_sys2 | datetime | YES | | NULL | | | check_type | text | | | | | | check_time | smallint(6) | | | 8 | | | check_num | smallint(5) | | | 3 | | | retry_interval | smallint(11) | | | 1 | | | email_notify | text | YES | | NULL | | | creation_date | datetime | YES | | NULL | | | last_modified | timestamp(14) | YES | | NULL | | | status_comment | text | YES | | NULL | | | comment | text | YES | | NULL | | +----------------------+---------------------+------+-----+------------+----------------+ 34 rows in set (0.00 sec) network_table where name=vlan name router=router vlan hangs off of hub=hub that router is associated with sX are starting ip address eX are ending ip address. mysql> describe network_table; +--------+------------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +--------+------------------+------+-----+---------+----------------+ | oid | bigint(20) | | PRI | NULL | auto_increment | | name | text | | | | | | router | text | | | | | | hub | text | | | | | | s1 | int(10) unsigned | | MUL | 0 | | | s2 | int(10) unsigned | | | 0 | | | s3 | int(10) unsigned | | | 0 | | | s4 | int(10) unsigned | | | 0 | | | e1 | int(10) unsigned | | | 0 | | | e2 | int(10) unsigned | | | 0 | | | e3 | int(10) unsigned | | | 0 | | | e4 | int(10) unsigned | | | 0 | | +--------+------------------+------+-----+---------+----------------+ 12 rows in set (0.00 sec) On Wed, 11 Dec 2002, Russell Scibetti wrote: > I received a question regarding this, so maybe I should try to be more > clear. > > I am trying to work on a way of storing, generating, and managing all > our Nagios configs, most likely using a database (MySQL?). I know I've > seen some messages on these lists about people already doing this. What > I was hoping, is that if anyone has done work like this (create a config > DB, written cfg generation scripts, etc), that they could share it to > the list. It might save me and others a lot of time and grief if there > has already been some work done in this area. If enough people have > these types of components, we might be able to put together a good > Nagios config management tool even (as a loftier goal to look at). > > Thanks. > > -Russell Scibetti > > Russell Scibetti wrote: > > > I know I have read emails about users storing config data in DB's, > > using scripts for generating/storing configs, etc. I was hoping that > > anyone who has created these type of extra components for Nagios could > > share them. It would definitely help me out, as I am in charge of > > Nagios config creations and management. Thanks. > > > > -Russell Scibetti > > > > -- Brian Wilson Network Analyst Communication Technologies, ATD W: 919.513.3472 North Carolina State University www.ncstate.net -------------- next part -------------- #!/usr/bin/perl use Getopt::Long; use DBI; use Net::hostent; use Socket; use Data::Dumper; $database = "nagios"; $hostname = "localhost"; $username = "nagios"; $password = "nagios"; $user="nagios"; $conf_dir="/etc/nagios"; $hostg_file="$conf_dir/hostgroups.cfg"; $hosts_file="$conf_dir/hosts.cfg"; $services_file="$conf_dir/services.cfg"; $contacts_file="$conf_dir/contacts.cfg"; $contactg_file="$conf_dir/contactgroups.cfg"; $backup_dir="$conf_dir/backup"; ####################### Do Not Edit Below Here ############ $data_source = "DBI:mysql:$database:$hostname:$hostname"; $dbh = DBI->connect($data_source, $username, $password) || die "Can't connect to $data_source: $dbh->errstr\n"; my %Options; GetOptions(\%Options,"noreload","noupdate"); &backup_files; &get_objects; &do_hosts($hosts_file); &do_hostgroups($hostg_file); &do_services($services_file); &reload_nagios; &chown_files($user); ################### # reload nagios? ################### sub reload_nagios { if (!$Options{"noreload"}) { open(RELOAD, "/etc/init.d/nagios reload 2>&1|"); while() { if (/Error/) { print "Error in regeneration of nagios configs. "; open(NAGVER, "/usr/sbin/nagios -v -c $conf_dir/nagios.cfg 2>&1|"); my @output = ; close(NAGVER); print "Please fix the following errors:\n\n"; print @output; print "\n\nRestoring old config files from backup.\n"; &restore_files; system("/etc/init.d/nagios reload"); last; } } close(RELOAD); } } ###################### # restore config files ###################### sub restore_files { my @files = ($contacts_file,$contactg_file, $services_file,$hosts_file,$hostg_file); foreach my $file (@files) { my $filename=$file; $filename =~ s/$conf_dir\///; system("cp -f $backup_dir/$filename $file"); } } ##################### # backup config files ##################### sub backup_files { my @files = ($contacts_file,$contactg_file, $services_file,$hosts_file,$hostg_file); foreach my $file (@files) { my $filename=$file; $filename =~ s/$conf_dir\///; system("cp -f $file $backup_dir/$filename"); } } ############################ # change perms on cfg files ############################ sub chown_files { my ($user) = @_; my @files = ($contacts_file,$contactg_file, $services_file,$hosts_file,$hostg_file); ($l,$p,$uid,$gid) = getpwnam($user); chown $uid, 33, @files; chmod 0775, @files; } sub do_services { my ($file) = @_; open(SERVICES, ">$file") or die "Cannot open $file\n"; print SERVICES "# Generic service definition template\n"; print SERVICES "define service{\n\tname\tgeneric-service;\n\t"; print SERVICES "active_checks_enabled\t1;\n\t"; print SERVICES "passive_checks_enabled\t1;\n\t"; print SERVICES "parallelize_check\t1;\n\t"; print SERVICES "obsess_over_service\t1;\n\t"; print SERVICES "check_freshness\t\t1;\n\t"; print SERVICES "notifications_enabled\t1;\n\t"; print SERVICES "event_handler_enabled\t1;\n\t"; print SERVICES "flap_detection_enabled\t0;\n\t"; print SERVICES "process_perf_data\t0;\n\t"; print SERVICES "retain_status_information\t1;\n\t"; print SERVICES "retain_nonstatus_information\t1;\n\t"; print SERVICES "register\t0;\n\t}\n\n"; foreach $object (keys %objects) { my $notify="dummy-group"; my $contact_group=""; if ($objects{$object}{"email"} && !$user_created{$objects{$object}{"email"}}) { my $email = $objects{$object}{"email"}; #my ($username) = split(/\@/,$email); my @addys = split(/\,/,$email); foreach my $addy (@addys) { $addy =~ s/\s+//g; $username=$addy; $username =~ s/[\@.]/_/g; $contact_group=$username . "-group" . "," . $contact_group; $notify = $contact_group; if (&create_contactgroup($username)) { &create_contact($username,$addy); #$created_contact{$username}++; $user_created{$addy}++; } } chop($notify); } my $svc = $objects{$object}{"type"}; my @svcs=split(/[,]/,$svc); foreach $svc (@svcs) { my $svc_desc = $svc; $svc =~ s/\s+//g; if ($svc =~ /check_(.*)/) { $svc_desc = $1; } print SERVICES "# Service definition for " . $objects{$object}{"alias"}; print SERVICES "\ndefine service{\n\t"; print SERVICES "use\t\t\tgeneric-service;\n\t"; print SERVICES "host_name\t\t" . $objects{$object}{"alias"}; print SERVICES ";\n\tis_volatile\t\t0;\n\t"; print SERVICES "check_period\t\t24x7;\n\t"; print SERVICES "contact_groups\t\t$notify;\n\t"; print SERVICES "notification_period\t24x7;\n\t"; print SERVICES "notification_interval\t180;\n\t"; print SERVICES "notification_options\tc,r;\n\t"; print SERVICES "service_description\t$svc_desc;\n\t"; print SERVICES "max_check_attempts\t" . $objects{$object}{"check_num"}; print SERVICES ";\n\tnormal_check_interval\t".$objects{$object}{"check_time"}; print SERVICES ";\n\tretry_check_interval\t".$objects{$object}{"retry_int"}; print SERVICES ";\n\tcheck_command\t\t".$svc; print SERVICES ";\n\t"; if (!$contact_group) { print SERVICES "event_handler\t\tdevice-down-event-handler;\n\t"; } print SERVICES "}\n\n"; } } close(SERVICES); } ###################################### # create a contact entry for an email ###################################### sub create_contact { my ($username,$email) = @_; my $groupname = $username . "-group"; my $found = 0; my @c; open(C, "<$contacts_file") or die "Cannot open $contacts_file\n"; @c=; close(C); foreach my $line (@c) { if ($line =~ /contact_name\s+$username$/) { $found++; } # caused too many headaches #if ($line =~ /email\s+$email/) { # $found++; #} } if (!$found) { open(C,">>$contacts_file") or die "Cannot open $contacts_file\n"; print C "\n#contact entry for $username ($email)\n"; print C "define contact{\n\tcontact_name\t\t\t$username\n\t"; print C "alias\t\t\t\t$username\n\t"; print C "service_notification_period\t24x7\n\t"; print C "host_notification_period\t24x7\n\t"; print C "service_notification_options\tw,u,c,r\n\t"; print C "host_notification_options\td,u,r\n\t"; print C "service_notification_commands\tnotify-by-email\n\t"; print C "host_notification_commands\thost-notify-by-email\n\t"; print C "email\t\t\t\t$email\n\t}\n\n"; close(C); return 1; } else { return $found; } } ###################################### # create a contact group for an email ###################################### sub create_contactgroup { my ($username) = @_; my $groupname = $username . "-group"; my $found = 0; my @cg; open(CG, "<$contactg_file") or die "Cannot open $contactg_file\n"; @cg=; close(CG); foreach my $line (@cg) { if ($line =~ /contactgroup_name\s+$groupname/) { $found=1; #print "Group ($groupname) already exists\n"; return 0; } } if (!$found) { open(CG, ">>$contactg_file") or die "Cannot open $contactg_file\n"; print CG "\n# Contact group definition for $groupname (really just for $username)\n"; print CG "define contactgroup{\n\t"; print CG "contactgroup_name\t$groupname\n\t"; print CG "alias\t\t\tGroup for $username\n\t"; print CG "members\t\t\t$username\n\t}\n"; close(CG); return 1; } } ###################### # do hosts.cfg entries ###################### sub do_hosts { my ($file) = @_; open(HOST, ">$file") or die "Cannot open $file\n"; print HOST "define host{\n\tname\tgeneric-host\n\t"; print HOST "notifications_enabled\t1;\n\t"; print HOST "event_handler_enabled\t1;\n\t"; print HOST "flap_detection_enabled\t0;\n\t"; print HOST "process_perf_data\t0;\n\t"; print HOST "retain_status_information\t1;\n\t"; print HOST "retain_nonstatus_information\t1;\n\t"; print HOST "notification_period\t24x7;\n\t"; print HOST "notification_interval\t180;\n\t"; print HOST "notification_options\td,r;\n\t"; print HOST "register\t0;\n\t}\n\n"; foreach $object (keys %objects) { if (!($host_added{$object})) { print HOST "# $object host definition\n"; print HOST "define host{\n\t"; print HOST "use\t\t\tgeneric-host;\n\t"; print HOST "host_name\t\t". $objects{$object}{"alias"}; print HOST ";\n\talias\t\t\t$object;\n\t"; print HOST "address\t\t\t". $objects{$object}{"ip"}; print HOST ";\n\tmax_check_attempts\t1;\n\t"; print HOST "check_command\t\tcheck_dummy;\n\t"; print HOST "}\n\n"; my $vlan=$objects{$object}{"vlan"}; $vlans_added{"$vlan"}=$vlans_added{$vlan}.$objects{$object}{"alias"}.","; $host_added{$object}++; #print "$object -> $vlan\n"; } else { #print "Note: $object already exists. creating additional serivce entry\n"; } } } ######################### # do all the work.. generate new config files; ######################### sub do_hostgroups { my ($file) = @_; open(HOSTGRP, ">$file") or die "Cannot open $file\n"; foreach $vlan (keys %vlans_added) { my $cur_vlan = $vlans_added{"$vlan"}; chop($cur_vlan); print HOSTGRP "# $vlan hostgroup definition\n"; print HOSTGRP "define hostgroup {\n"; print HOSTGRP "\thostgroup_name\t$vlan\n"; print HOSTGRP "\talias\t\t$vlan\n"; print HOSTGRP "\tcontact_groups\tdummy-group\n"; print HOSTGRP "\t" . $cur_vlan . "\n\t}\n\n"; } } ######################## ## get host data from db ######################## sub get_objects { %vlans_added=(); $sta=$dbh->prepare("select distinct h.hostname,h.a,h.b,h.c,h.d,h.alias, h.check_type,h.check_time,h.check_num,h.retry_interval, h.email_notify, n.name from host_table h, network_table n where n.s1=h.a and n.s2=h.b and h.c>=n.s3 and h.c<=n.e3 and h.d>=n.s4 and h.d<=n.e4 and h.to_monitor=1 order by h.hostname"); $sta->execute or print $DBI::errstr; while ($row=$sta->fetchrow_arrayref) { my $host = $row->[0]; my $ip = "$row->[1].$row->[2].$row->[3].$row->[4]"; my $alias = $row->[5]; my $check_type = $row->[6]; my $check_time = $row->[7]; my $check_num = $row->[8]; my $retry_int = $row->[9]; my $email = $row->[10]; my $vlan = $row->[11]; $objects{$host}{"alias"}=$alias; $objects{$host}{"ip"}=$ip; $objects{$host}{"type"}=$check_type; $objects{$host}{"email"}=$email; $objects{$host}{"vlan"}=$vlan; $objects{$host}{"check_time"}=$check_time; $objects{$host}{"check_num"}=$check_num; $objects{$host}{"retry_int"}=$retry_int; if (!$vlans_added{"$vlan"}) { $vlans_added{"$vlan"}="members\t"; } } $sta=$dbh->prepare("select hostname,a,b,c,d,alias,check_type,check_time, check_num,retry_interval,email_notify from host_table where to_monitor=1"); $sta->execute or print $DBI::errstr; while ($row=$sta->fetchrow_arrayref) { # take care of any uncategorized objects that got missed on the initial query if (!$objects{$row->[0]}) { my $host = $row->[0]; my $ip = "$row->[1].$row->[2].$row->[3].$row->[4]"; my $alias = $row->[5]; my $check_type = $row->[6]; my $check_time = $row->[7]; my $check_num = $row->[8]; my $retry_int = $row->[9]; my $email = $row->[10]; my $vlan = "Uncategorized"; $objects{$host}{"ip"}=$ip; $objects{$host}{"alias"}=$alias; $objects{$host}{"type"}=$check_type; $objects{$host}{"email"}=$email; $objects{$host}{"vlan"}=$vlan; $objects{$host}{"check_time"}=$check_time; $objects{$host}{"check_num"}=$check_num; $objects{$host}{"retry_int"}=$retry_int; if (!$vlans_added{"$vlan"}) { $vlans_added{"$vlan"}="members\t"; } } } if ($Options{"noupdate"}) { print Dumper %objects; exit; } } From jcarro10 at sprintspectrum.com Wed Dec 11 19:34:56 2002 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Wed, 11 Dec 2002 12:34:56 -0600 Subject: FW: [netsaint] check_snmp errors with solaris 8/sparc - No data recieved from host Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F248B@PKDWB03C.ad.sprint.com> First, it appears that you're testing the command under root. When in doubt, test it under user nagios. (I don't think it would make a difference in this case, but it's all about eliminating possibilities, right?) Second, it appears that there are 3 different invocations of the command, and none of them match. You have (in order shown in your example): 1) libexec/check_snmp 10.0.0.5 -C test123 -o system.susName.0 2) /usr/local/bin/snmpget -m ALL -v 1 10.10.6.81 1luvUp0C system.susName.0 3) /usr/local/bin/snmpget -m ALL -v 1 10.0.0.5 test123 system.sysName.0 system.sysName.0 = "message1" As a result, I'm puzzling over the following: - why do #1 and #2 have different IP addresses? - why are the arguments in #2 and #3 different? - what object is "system.susName.0"? did you mean "system.sysName.0"? They're just all... different. See if you can get some incantation of the check_snmp command to result in kicking out the correct CMD (which would mirror the invocation of snmpget). Try something along the lines of (ie, cut/paste): libexec/check_snmp -H 10.0.0.5 -C test123 -o system.sysName.0 HTH. jc > -----Original Message----- > From: Michael O'Dea [mailto:modea at upoc-inc.com] > Sent: Wednesday, December 11, 2002 11:34 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] FW: [netsaint] check_snmp errors with solaris > 8/sparc - No data recieved from host > > > > Hi. > > I sent this to the netsaint list yesterday - then found out > about nagios, and installed it & then signed up for the list > -- and am still having the same problem with the nagios > check_snmp plugin. > > the version is: check_snmp (nagios-plugins 1.3.0-beta2) 1.20 > > Any ideas? > > thanks > -m > -----Original Message----- > From: Michael O'Dea > Sent: Tuesday, December 10, 2002 12:43 PM > To: netsaint-users at lists.sourceforge.net > Subject: [netsaint] check_snmp errors with solaris 8/sparc - No data > recieved from host > > > > Hello, > > I seem to be having a problem with the check_snmp plugin, I > am getting this error: > > root at host: [/opt/netsaint #] libexec/check_snmp 10.0.0.5 -C > test123 -o system.susName.0 > SNMP problem - No data recieved from host > CMD: /usr/local/bin/snmpget -m ALL -v 1 10.10.6.81 1luvUp0C > system.susName.0 > > so I run the snmpget cmdline and get a answer: > > root at host: [/opt/netsaint #] /usr/local/bin/snmpget -m ALL -v > 1 10.0.0.5 test123 system.sysName.0 > system.sysName.0 = "message1" > > It works fine... > > So I checked the mailing list archive & google and I came up > with this: > > http://www.geocrawler.com/mail/msg.php3?msg_id=7358656&list=739 > http://www.geocrawler.com/archives/3/736/2001/8/0/6342925/ > > I tried upping TXTBLK to 256 in the utils.c -- no luck. > > Any suggestions? > > system info: > > check_snmp (netsaint-plugins 1.2.9-4) 1.21.2.5 > UCD-snmp version: 4.2.6 > SunOS host 5.8 Generic_108528-15 sun4u sparc SUNW,Sun-Fire-280R > gcc version 3.2 > > > It does work for me on a solaris 7/intel system, same plugin > version but ucd-snmp 4.1.2. I tried compiling 4.1.2 on the > solaris 8/sparc box and got the same error. > > Anyone else seen this? > > thanks > > ---- > Michael A. O'Dea > Senior Systems Administrator > Upoc, Inc - NYC, NY > 212.405.1042 (desk) > modea at upoc-inc.com > Upoc Handle: fddi > > "when the going gets weird, the weird turn pro" -HST > > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Netsaint-users mailing list > Netsaint-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/netsaint-users > > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From mpowell at ena.com Wed Dec 11 19:40:57 2002 From: mpowell at ena.com (Marc Powell) Date: Wed, 11 Dec 2002 12:40:57 -0600 Subject: Distributed monitoring questions... Message-ID: <5DB017510818EC468B05BD7BD9EACF8301E26754@mismail.ena.com> Yup, distributed monitoring is what you're looking for. The netsaint server will use send the service check reslts to the nagios server via NSCA. You _will_ need to mirror the host and service definitions from your netsaint server on your nagios server as neither program will accept passive service checks for a service it doesn't know about. It sounds to me that you'll want to disable notificatios for the services on your nagios server or set the notification timeperiod to none. -- Marc Sent from a very tiny wireless device with a very tiny unlit keyboard. -----Original Message----- From: Jon Lyons To: 'nagios-users at lists.sourceforge.net' Sent: Wed Dec 11 11:32:13 2002 Subject: [Nagios-users] Distributed monitoring questions... Hi, I've been trying to search the archives, but it seems to be having issuse, so hopefully someone can help. I've got two montoring machines on our network, one nagios(monitors networks) and one netsaint machine(unix services). Is there a way to display the netstaint machine errors/acknowledgements in my nagios web interface? I'd like to keep both machines seperate(for admin,alerts,etc..etc.), however I'd like the help desk people to see all errors in one spot. Distrubuted monitoring looks like what I'm looking for, but I have a few questions. Does this setup mean that I need to have all host definitions/services defined on the central server, even the hosts/services the distrubuted server is monitoring? The admin for the distributed server adds a service/host, do I need to update the configs of the central server? And will this work with nagios & a netstaint setup? Thanks.. _____ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcarro10 at sprintspectrum.com Wed Dec 11 19:49:59 2002 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Wed, 11 Dec 2002 12:49:59 -0600 Subject: Response time Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F248D@PKDWB03C.ad.sprint.com> You're not going to like this answer. It's all about trade-offs. If you're interested in consolidating N checks on one monitoring server, be prepared for the time between checks to scale proportionately to the number of checks being done. Don't expect a server doing 2,000 checks to behave the same as a server doing 5 checks. If you're interested in having one server kept under the microscope with just a ping test, I'm sure you could tune Nagios to give you pager/e-mail response between 1-5 seconds. If you're interested in doing 2,000 checks and having Nagios alert you in under 5 seconds if *any* of the hosts/services go down (with 100% determinism), you're being a wee bit optimistic. Perhaps you'd like to rephrase the question...? jc > -----Original Message----- > From: Jared Brick [mailto:jared.brick at convergia.net] > Sent: Wednesday, December 11, 2002 8:57 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Response time > > > Hello, > > I'm trying to improve Nagios's response time for when a > host is down. I > would like to shorten as much as possible the time between a > host going > down and Nagios sending out a notification. All hosts have a ping > service so I would use this service as a way checking when a host is > down. > > Does anyone have experience with Nagios in an environment where > downtime is a big concern? Care to share which settings I > should use to > increase performance? > > Thanks, > > Jared Brick > > > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From modea at upoc-inc.com Wed Dec 11 19:53:47 2002 From: modea at upoc-inc.com (Michael O'Dea) Date: Wed, 11 Dec 2002 13:53:47 -0500 Subject: FW: [netsaint] check_snmp errors with solaris 8/sparc - No data recieved from host Message-ID: <4DB9CCB36001AC4F901CC0EC44097199249796@exchange01.upocny.upoc-inc.com> eek! I realized that I pasted a bunch of stuff wrong after I emailed it! So much for attention to detail :( Here is how it *should* look: (and I am still getting the same error) bash-2.05$ id uid=6667(nagios) gid=200(upoc) here I run the plugin: bash-2.05$ /opt/nagios/libexec/check_snmp 10.10.6.81 -C test123 -o system.sysName.0 SNMP problem - No data recieved from host CMD: /usr/local/bin/snmpget -m ALL -v 1 -c test123 10.10.6.81:161 system.sysName.0 bash-2.05$ It reports 'snmp problem' and gives me the cmdline, which I run: bash-2.05$ /usr/local/bin/snmpget -m ALL -v 1 -c test123 10.10.6.81:161 system.sysName.0 system.sysName.0 = "message1" bash-2.05$ It works with the actual snmpget... but check_snmp (which calls snmpget?) seems to fail. I get the same error with snmpget from UCD-snmp version: 4.1.2 & UCD-snmp version: 4.2.6 on this solaris 8/sparc system. I also tried the suggested change in utils.c & recompile - it had no change. Thanks for getting back to me -m -----Original Message----- From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] Sent: Wednesday, December 11, 2002 1:35 PM To: Michael O'Dea; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] FW: [netsaint] check_snmp errors with solaris 8/sparc - No data recieved from host First, it appears that you're testing the command under root. When in doubt, test it under user nagios. (I don't think it would make a difference in this case, but it's all about eliminating possibilities, right?) Second, it appears that there are 3 different invocations of the command, and none of them match. You have (in order shown in your example): 1) libexec/check_snmp 10.0.0.5 -C test123 -o system.susName.0 2) /usr/local/bin/snmpget -m ALL -v 1 10.10.6.81 1luvUp0C system.susName.0 3) /usr/local/bin/snmpget -m ALL -v 1 10.0.0.5 test123 system.sysName.0 system.sysName.0 = "message1" As a result, I'm puzzling over the following: - why do #1 and #2 have different IP addresses? - why are the arguments in #2 and #3 different? - what object is "system.susName.0"? did you mean "system.sysName.0"? They're just all... different. See if you can get some incantation of the check_snmp command to result in kicking out the correct CMD (which would mirror the invocation of snmpget). Try something along the lines of (ie, cut/paste): libexec/check_snmp -H 10.0.0.5 -C test123 -o system.sysName.0 HTH. jc > -----Original Message----- > From: Michael O'Dea [mailto:modea at upoc-inc.com] > Sent: Wednesday, December 11, 2002 11:34 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] FW: [netsaint] check_snmp errors with solaris > 8/sparc - No data recieved from host > > > > Hi. > > I sent this to the netsaint list yesterday - then found out > about nagios, and installed it & then signed up for the list > -- and am still having the same problem with the nagios > check_snmp plugin. > > the version is: check_snmp (nagios-plugins 1.3.0-beta2) 1.20 > > Any ideas? > > thanks > -m > -----Original Message----- > From: Michael O'Dea > Sent: Tuesday, December 10, 2002 12:43 PM > To: netsaint-users at lists.sourceforge.net > Subject: [netsaint] check_snmp errors with solaris 8/sparc - No data > recieved from host > > > > Hello, > > I seem to be having a problem with the check_snmp plugin, I > am getting this error: > > root at host: [/opt/netsaint #] libexec/check_snmp 10.0.0.5 -C > test123 -o system.susName.0 > SNMP problem - No data recieved from host > CMD: /usr/local/bin/snmpget -m ALL -v 1 10.10.6.81 1luvUp0C > system.susName.0 > > so I run the snmpget cmdline and get a answer: > > root at host: [/opt/netsaint #] /usr/local/bin/snmpget -m ALL -v > 1 10.0.0.5 test123 system.sysName.0 > system.sysName.0 = "message1" > > It works fine... > > So I checked the mailing list archive & google and I came up > with this: > > http://www.geocrawler.com/mail/msg.php3?msg_id=7358656&list=739 > http://www.geocrawler.com/archives/3/736/2001/8/0/6342925/ > > I tried upping TXTBLK to 256 in the utils.c -- no luck. > > Any suggestions? > > system info: > > check_snmp (netsaint-plugins 1.2.9-4) 1.21.2.5 > UCD-snmp version: 4.2.6 > SunOS host 5.8 Generic_108528-15 sun4u sparc SUNW,Sun-Fire-280R > gcc version 3.2 > > > It does work for me on a solaris 7/intel system, same plugin > version but ucd-snmp 4.1.2. I tried compiling 4.1.2 on the > solaris 8/sparc box and got the same error. > > Anyone else seen this? > > thanks > > ---- > Michael A. O'Dea > Senior Systems Administrator > Upoc, Inc - NYC, NY > 212.405.1042 (desk) > modea at upoc-inc.com > Upoc Handle: fddi > > "when the going gets weird, the weird turn pro" -HST > > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Netsaint-users mailing list > Netsaint-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/netsaint-users > > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From jcarro10 at sprintspectrum.com Wed Dec 11 19:57:04 2002 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Wed, 11 Dec 2002 12:57:04 -0600 Subject: FW: [netsaint] check_snmp errors with solaris 8/sparc - No data recieved from host Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1132@PKDWB03C.ad.sprint.com> Try using the -H option (as I suggested in my original e-mail). jc > -----Original Message----- > From: Michael O'Dea [mailto:modea at upoc-inc.com] > Sent: Wednesday, December 11, 2002 12:54 PM > To: Carroll, Jim P [Contractor]; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] FW: [netsaint] check_snmp errors with > solaris 8/sparc - No data recieved from host > > > > > eek! > > I realized that I pasted a bunch of stuff wrong after I > emailed it! So much for attention to detail :( > > Here is how it *should* look: (and I am still getting the same error) > > bash-2.05$ id > uid=6667(nagios) gid=200(upoc) > > here I run the plugin: > > bash-2.05$ /opt/nagios/libexec/check_snmp 10.10.6.81 -C > test123 -o system.sysName.0 > SNMP problem - No data recieved from host > CMD: /usr/local/bin/snmpget -m ALL -v 1 -c test123 > 10.10.6.81:161 system.sysName.0 > bash-2.05$ > > It reports 'snmp problem' and gives me the cmdline, which I run: > > bash-2.05$ /usr/local/bin/snmpget -m ALL -v 1 -c test123 > 10.10.6.81:161 system.sysName.0 > system.sysName.0 = "message1" > bash-2.05$ > > It works with the actual snmpget... but check_snmp (which > calls snmpget?) seems to fail. > > I get the same error with snmpget from UCD-snmp version: > 4.1.2 & UCD-snmp version: 4.2.6 on this solaris 8/sparc system. > > I also tried the suggested change in utils.c & recompile - it > had no change. > > Thanks for getting back to me > > -m > > -----Original Message----- > From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] > Sent: Wednesday, December 11, 2002 1:35 PM > To: Michael O'Dea; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] FW: [netsaint] check_snmp errors with > solaris 8/sparc - No data recieved from host > > > First, it appears that you're testing the command under root. When in > doubt, test it under user nagios. (I don't think it would > make a difference > in this case, but it's all about eliminating possibilities, right?) > > Second, it appears that there are 3 different invocations of > the command, > and none of them match. You have (in order shown in your example): > > 1) libexec/check_snmp 10.0.0.5 -C test123 -o system.susName.0 > 2) /usr/local/bin/snmpget -m ALL -v 1 10.10.6.81 1luvUp0C > system.susName.0 > 3) /usr/local/bin/snmpget -m ALL -v 1 10.0.0.5 test123 > system.sysName.0 > system.sysName.0 = "message1" > > As a result, I'm puzzling over the following: > > - why do #1 and #2 have different IP addresses? > - why are the arguments in #2 and #3 different? > - what object is "system.susName.0"? did you mean "system.sysName.0"? > > They're just all... different. See if you can get some > incantation of the > check_snmp command to result in kicking out the correct CMD > (which would > mirror the invocation of snmpget). > > Try something along the lines of (ie, cut/paste): > > libexec/check_snmp -H 10.0.0.5 -C test123 -o system.sysName.0 > > HTH. > > jc > > > > -----Original Message----- > > From: Michael O'Dea [mailto:modea at upoc-inc.com] > > Sent: Wednesday, December 11, 2002 11:34 AM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] FW: [netsaint] check_snmp errors > with solaris > > 8/sparc - No data recieved from host > > > > > > > > Hi. > > > > I sent this to the netsaint list yesterday - then found out > > about nagios, and installed it & then signed up for the list > > -- and am still having the same problem with the nagios > > check_snmp plugin. > > > > the version is: check_snmp (nagios-plugins 1.3.0-beta2) 1.20 > > > > Any ideas? > > > > thanks > > -m > > -----Original Message----- > > From: Michael O'Dea > > Sent: Tuesday, December 10, 2002 12:43 PM > > To: netsaint-users at lists.sourceforge.net > > Subject: [netsaint] check_snmp errors with solaris 8/sparc - No data > > recieved from host > > > > > > > > Hello, > > > > I seem to be having a problem with the check_snmp plugin, I > > am getting this error: > > > > root at host: [/opt/netsaint #] libexec/check_snmp 10.0.0.5 -C > > test123 -o system.susName.0 > > SNMP problem - No data recieved from host > > CMD: /usr/local/bin/snmpget -m ALL -v 1 10.10.6.81 1luvUp0C > > system.susName.0 > > > > so I run the snmpget cmdline and get a answer: > > > > root at host: [/opt/netsaint #] /usr/local/bin/snmpget -m ALL -v > > 1 10.0.0.5 test123 system.sysName.0 > > system.sysName.0 = "message1" > > > > It works fine... > > > > So I checked the mailing list archive & google and I came up > > with this: > > > > http://www.geocrawler.com/mail/msg.php3?msg_id=7358656&list=739 > > http://www.geocrawler.com/archives/3/736/2001/8/0/6342925/ > > > > I tried upping TXTBLK to 256 in the utils.c -- no luck. > > > > Any suggestions? > > > > system info: > > > > check_snmp (netsaint-plugins 1.2.9-4) 1.21.2.5 > > UCD-snmp version: 4.2.6 > > SunOS host 5.8 Generic_108528-15 sun4u sparc SUNW,Sun-Fire-280R > > gcc version 3.2 > > > > > > It does work for me on a solaris 7/intel system, same plugin > > version but ucd-snmp 4.1.2. I tried compiling 4.1.2 on the > > solaris 8/sparc box and got the same error. > > > > Anyone else seen this? > > > > thanks > > > > ---- > > Michael A. O'Dea > > Senior Systems Administrator > > Upoc, Inc - NYC, NY > > 212.405.1042 (desk) > > modea at upoc-inc.com > > Upoc Handle: fddi > > > > "when the going gets weird, the weird turn pro" -HST > > > > > > > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > Netsaint-users mailing list > > Netsaint-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/netsaint-users > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by: > > With Great Power, Comes Great Responsibility > > Learn to use your power at OSDN's High Performance Computing Channel > > http://hpc.devchannel.org/ > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From jasmine.chua at securecirt.com Wed Dec 11 20:11:38 2002 From: jasmine.chua at securecirt.com (Jasmine Chua) Date: Thu, 12 Dec 2002 03:11:38 +0800 Subject: check_ldap plugin --> part 3 In-Reply-To: <20021211182611.GA5458@UnderGrid.net> References: <200212112238.03654.jasmine.chua@securecirt.com> <200212120012.53466.jasmine.chua@securecirt.com> <20021211182611.GA5458@UnderGrid.net> Message-ID: <200212120311.46744.jasmine.chua@securecirt.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Apparently I do not have the libraries installed.hmmm.. may I know which version of nagios plugin are you using? I am using nagios-plugins 200211122300-snapshot On Thursday 12 December 2002 02:26, Jeremy T. Bouse wrote: > On Thu, Dec 12, 2002 at 12:12:47AM +0800, Jasmine Chua wrote: > > Thanks.. I managed to find that plugin under nagiosplugin-1.3b1 was using > > the CVS plugins. However, I cant seem to get check_ldap.c configured and > > made.. how can I get that particular plugin configured, made? > > Hmm... I haven't had any problems building the check_ldap > plugin from CVS here... Are you sure you have the OpenLDAP development > files (header files and libraries) installed on your build machine? I've > even got the version I'm working on here to be able to check my LDAP > server over both IPv4 and IPv6 successfully... > > Jeremy > > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users - -- Jasmine Chua Security Engineer, SecureCiRT (A SBU of Z-Vance Pte Ltd) http://www.securecirt.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9943wNgvTa7Hj2AURApRvAKCVg9g6mPqSwAoO9PyT4t0Oh9zWxgCdFGDd yxxWOwthTLGByWLVcTHakwc= =c5zA -----END PGP SIGNATURE----- ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From mangabbs at hotmail.com Wed Dec 11 20:35:14 2002 From: mangabbs at hotmail.com (Master Brian) Date: Wed, 11 Dec 2002 20:35:14 +0100 Subject: authentication problem References: Message-ID: Thank you... hem sorry, I feel so lamer... BTW now nagios work, but still I'm having the same server error on some cgi. For example for status.cgi I get: [Wed Dec 11 20:06:55 2002] [error] [client myip] script not found or unable to stat: /usr/local/nagios/sbin/statusmap.cgi, referer: http://myserver/nagios/side.html Infact if I do a locate statusmap.cgi I couldn't locate it, it is normal? And again, for outages.cgi I get: It appears as though you do not have permission to view information you requested... If you believe this is an error, check the HTTP server authentication requirements for accessing this CGI and check the authorization options in your CGI configuration file. and in error log nothing of relevant. This is another newbie error that I do? (sorry again ;)) ----- Original Message ----- From: Chris Losch To: 'Master Brian' Sent: Wednesday, December 11, 2002 5:57 PM Subject: RE: [Nagios-users] authentication problem Yup... htaccess: Invalid command 'uthName', perhaps mis-spelled or defined by a module Check the .htaccess file, the command should be "AuthName", not uthName.... -----Original Message----- From: Master Brian [mailto:mangabbs at hotmail.com] Sent: 11 December 2002 16:17 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] authentication problem Thank you for plugin's help. Now finally I've setup (and verified with -v) my .cfg files. Setup my apache for /nagios alias, and created my .htaccess and htpassword as from documentation, but now I cannot access to nagios. When I try to go to http://mysite/nagios/ I get this error: Server error! The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script. If you think this is a server error, please contact the webmaster Error 500 If I read from error_log of my apache what's happen I find: [Wed Dec 11 16:51:23 2002] [alert] [client 10.10.1.40] /usr/local/nagios/share/. htaccess: Invalid command 'uthName', perhaps mis-spelled or defined by a module not included in the server configuration Can someone help me get out this problem pls? Thank you ********************************************************************** Important: This e-mail is intended for the above named person only and should be treated as confidential. If this has come to you in error you should take no action based on it, nor should you copy or show it to anyone; please telephone us immediately. ********************************************************************** --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.426 / Virus Database: 239 - Release Date: 07/12/2002 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jeremy.Bouse at UnderGrid.net Wed Dec 11 21:11:49 2002 From: Jeremy.Bouse at UnderGrid.net (Jeremy T. Bouse) Date: Wed, 11 Dec 2002 12:11:49 -0800 Subject: check_ldap plugin --> part 3 In-Reply-To: <200212120311.46744.jasmine.chua@securecirt.com> References: <200212112238.03654.jasmine.chua@securecirt.com> <200212120012.53466.jasmine.chua@securecirt.com> <20021211182611.GA5458@UnderGrid.net> <200212120311.46744.jasmine.chua@securecirt.com> Message-ID: <20021211201149.GA7370@UnderGrid.net> On Thu, Dec 12, 2002 at 03:11:38AM +0800, Jasmine Chua wrote: > Apparently I do not have the libraries installed.hmmm.. may I know which > version of nagios plugin are you using? > I am using nagios-plugins 200211122300-snapshot > I'm working directly off a current CVS checkout not one of the snapshot tarballs... I'm building on both Solaris 9 Ultra Sparc and Debian GNU/Linux x86... Jeremy ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From jlyons30 at yahoo.com Wed Dec 11 21:05:26 2002 From: jlyons30 at yahoo.com (Jon Lyons) Date: Wed, 11 Dec 2002 12:05:26 -0800 (PST) Subject: Distributed monitoring questions... In-Reply-To: <5DB017510818EC468B05BD7BD9EACF8301E26754@mismail.ena.com> References: <5DB017510818EC468B05BD7BD9EACF8301E26754@mismail.ena.com> Message-ID: <20021211200526.86871.qmail@web21505.mail.yahoo.com> I was hoping I only needed to have hosts/services defined once. I was trying to cut down on the admin tasks(setup, changes,etc...), I guess I'll just combine the two servers into one nagios machine. :( Thanks for the info.... Marc Powell wrote: Yup, distributed monitoring is what you're looking for. The netsaint server will use send the service check reslts to the nagios server via NSCA. You _will_ need to mirror the host and service definitions from your netsaint server on your nagios server as neither program will accept passive service checks for a service it doesn't know about. It sounds to me that you'll want to disable notificatios for the services on your nagios server or set the notification timeperiod to none. -- Marc Sent from a very tiny wireless device with a very tiny unlit keyboard. -----Original Message----- From: Jon Lyons To: 'nagios-users at lists.sourceforge.net' Sent: Wed Dec 11 11:32:13 2002 Subject: [Nagios-users] Distributed monitoring questions... Hi, I've been trying to search the archives, but it seems to be having issuse, so hopefully someone can help. I've got two montoring machines on our network, one nagios(monitors networks) and one netsaint machine(unix services). Is there a way to display the netstaint machine errors/acknowledgements in my nagios web interface? I'd like to keep both machines seperate(for admin,alerts,etc..etc.), however I'd like the help desk people to see all errors in one spot. Distrubuted monitoring looks like what I'm looking for, but I have a few questions. Does this setup mean that I need to have all host definitions/services defined on the central server, even the hosts/services the distrubuted server is monitoring? The admin for the distributed server adds a service/host, do I need to update the configs of the central server? And will this work with nagios & a netstaint setup? Thanks.. _____ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From cpowell at e-store.ws Wed Dec 11 23:35:44 2002 From: cpowell at e-store.ws (Cullen Powell) Date: Wed, 11 Dec 2002 14:35:44 -0800 Subject: not sending notification Message-ID: <000a01c2a165$a7fb5370$0301a8c0@craftohtxkm0de> Hello again, I believe I have everything set up correctly but Nagios is still not emailing me when there is a critical error (or any other warning / error for that matter) Any idea what I could be doing wrong? Im not getting any error messages... All the Best, Cullen -------------- next part -------------- An HTML attachment was scrubbed... URL: From jalal at elage.net Wed Dec 11 22:02:05 2002 From: jalal at elage.net (Jalal ELAGE) Date: Wed, 11 Dec 2002 22:02:05 +0100 Subject: UnSubscribe to the mailing list Message-ID: <000601c2a158$90f2cb20$0d46fea9@elage> -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 4863 bytes Desc: not available URL: From listuser at neo.pittstate.edu Wed Dec 11 22:37:38 2002 From: listuser at neo.pittstate.edu (listuser at neo.pittstate.edu) Date: Wed, 11 Dec 2002 15:37:38 -0600 (CST) Subject: Nagios Publicity from O'Reilly In-Reply-To: <000601c2a158$90f2cb20$0d46fea9@elage> References: <000601c2a158$90f2cb20$0d46fea9@elage> Message-ID: http://www.onlamp.com/pub/a/onlamp/2002/12/05/essentialsysadmin.html I don't know if anyone else has seen this and I didn't see it in the list archives. AEleen Frisch author of "Essential System Administration, 3rd Edition" ranked Nagios #2 on her list of the "Top Five Open Source Packages for System Administrators". Way to go Ethan! Justin ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From jlyons30 at yahoo.com Wed Dec 11 23:12:53 2002 From: jlyons30 at yahoo.com (Jon Lyons) Date: Wed, 11 Dec 2002 14:12:53 -0800 (PST) Subject: Host/Service Status Totals via SMS/pager? In-Reply-To: <000a01c2a165$a7fb5370$0301a8c0@craftohtxkm0de> References: <000a01c2a165$a7fb5370$0301a8c0@craftohtxkm0de> Message-ID: <20021211221253.13729.qmail@web21505.mail.yahoo.com> Hi, Anyone have any suggestions on how I can get the Host & Service status totals(The small tables at the top of service problems) and a list of the hosts/services in a critical state in a plain text format? (ie..Up 165 Down 30) I've written 2 scripts that allow me to acknowledge host/service problems via my Nextel phone, it'd be great if I could get a simple quick stats of all hosts/services.....(I have VERY basic perl skills)..... --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From Stanley.Hopcroft at IPAustralia.Gov.AU Wed Dec 11 23:49:50 2002 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Thu, 12 Dec 2002 09:49:50 +1100 Subject: Filter HTML on list!? In-Reply-To: ; from ABostick@mydoconline.com on Wed, Dec 11, 2002 at 10:17:51AM -0600 References: Message-ID: <20021212094947.A22982@IPAustralia.Gov.AU> Dear Sir, I am writing to thank you for your letter about this matter. Perhaps another way of looking at this is that __no one__ who bothers to respond to this list is likely to profit from the answer directly. People attempt to answer questions for their own reasons, and using whatever resources (especially time) they have available. In my case, I am simply not going to even read letters that are . in HTML . don't wrap sensibly, so the right margin is a hundred miles to the away from the left. It is painful to scan these very long lines. As painful as looking for the logical breaks of thought in a paragraph lacking punctuation. . are hard for me to understand, possibly because the writer is doing their best with a non native language. Obviously, I will be more tolerant in such cases but the fact remains that if I can't understand the question, I have no chance of answering it. The document published by Greg Lehey at http://www.lemis.com/questions.html contains suggestions for writers to increase the likelihood of getting positive results to questions. Although it's targetted at those wishing to write to FreeBSD-Questions, I think the advice is generally applicable, So to sum up, my view is that there is no need to get excited about badly written letters. Such letters are less likely to be answered and the writers will seek other means of obtaining what they want. Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From jasmine.chua at securecirt.com Wed Dec 11 23:42:41 2002 From: jasmine.chua at securecirt.com (Jasmine Chua) Date: Thu, 12 Dec 2002 06:42:41 +0800 Subject: eventhandler script Message-ID: <200212120642.47039.jasmine.chua@securecirt.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi all.. I am trying to tell Nagios to talk to a remote server's NRPE daemon to restart a program when remote server's load service is heavy.. apparently my event handler is not working. Nagios is not talking to the remote server at all. Below is my script to talk to the NRPE daemon. Just wondering if anyone can provide me with some tips or point out any mistakes that I made in the script. Because I suspect that this script is not working at all! Any help is truly appreciated! Sorry. #!/bin/sh # # Event handler script for calling xxx.xxx.xxx.xxx NRPE daemon to restart #program # # Note: This script will only call to restart program if the load service is # retried 3 times (in a "soft" state) or if the load service # falls into a "hard" error state # # Arguments: # $1 = service_state # $2 = state_type # $3 = service_attempt hostname="xxx.xxx.xxx.xxx" checknrpedir="/usr/local/nagios/libexec" # What state is the load service in? case "$1" in OK) # There is no need to do anything. # The service is OK. ;; WARNING) # There is no need to do anything still. # The service is just in WARNING state. ;; UNKNOWN) # No need for anything because we dont really know # the exact problem. ;; CRITICAL) # The Load is heavy. There is a need to restart program. # See the state type if it is soft or hard? case "$2" in SOFT) # Determine the number of service attempts. # Only restart program if its the 3rd attempt # to confirm that it is really critical case "$3" in 3) $checknrpedir/check_nrpe $hostname -c "check-program" ;; esac ;; HARD) # If the check has tried 4 times and # the check still fails it will fall # into hard state. But normally the # 3rd try should restart program and # solve the load problem. $checknrpedir/check_nrpe $hostname -c "check-program" ;; esac ;; esac exit 0 - -- Jasmine Chua Security Engineer, SecureCiRT (A SBU of Z-Vance Pte Ltd) http://www.securecirt.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9979lNgvTa7Hj2AURAgDiAKCcdh3qxe6AzPPYlElJX7CE3Hvl6gCdFeTD NomoG/aSez82sEXvjE4mGwQ= =b2S8 -----END PGP SIGNATURE----- ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From jcarro10 at sprintspectrum.com Thu Dec 12 00:08:42 2002 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Wed, 11 Dec 2002 17:08:42 -0600 Subject: Host/Service Status Totals via SMS/pager? Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F248F@PKDWB03C.ad.sprint.com> For something as limiting as SMS/pager, you might want to start with something like: For host outages: grep HOST status.log | grep CRITICAL | wc -l For service outages: grep SERVICE status.log | grep CRITICAL | wc -l Massage in some formatting, and you could end up with output similar to: Hosts up: 165 down:30 Services up: 1419 down: 155 Anything more detailed than that, you might want to parse out the hosts/services and report on those. The risk of this approach is that for any non-trivial number of outages (hosts or services) in a given report, you could quickly end up surpassing the message limit defined for SMS/pager. (If you don't mind multiple messages, you could write a perl script to chop the message up into multiple messages which satisfy the limit issue, and send them out, one after the other. Then instead of having a truncated message, you end up with several (tens? hundreds?) of messages until that one report cycle is complete. Then 5 minutes (more or less) after the current cycle of messages started, you might be able to expect the same volley of messages to hit (or be queued up for) your SMS device or pager. You might see that while it's technically feasible, your happiness quotient might end up dropping dramatically. Food for thought. jc -----Original Message----- From: Jon Lyons [mailto:jlyons30 at yahoo.com] Sent: Wednesday, December 11, 2002 4:13 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Host/Service Status Totals via SMS/pager? Hi, Anyone have any suggestions on how I can get the Host & Service status totals(The small tables at the top of service problems) and a list of the hosts/services in a critical state in a plain text format? (ie..Up 165 Down 30) I've written 2 scripts that allow me to acknowledge host/service problems via my Nextel phone, it'd be great if I could get a simple quick stats of all hosts/services.....(I have VERY basic perl skills)..... _____ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From Stanley.Hopcroft at IPAustralia.Gov.AU Thu Dec 12 00:06:12 2002 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Thu, 12 Dec 2002 10:06:12 +1100 Subject: Nagios Publicity from O'Reilly In-Reply-To: ; from listuser@neo.pittstate.edu on Wed, Dec 11, 2002 at 03:37:38PM -0600 References: <000601c2a158$90f2cb20$0d46fea9@elage> Message-ID: <20021212100610.C22982@IPAustralia.Gov.AU> Dear Sir, Thank you very much for posting this nice article. It may even be useful in melting the objections of the CIO-PHBs 'Tell me what to think damn it'. 'What do I think about Enterprise System Management'... Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From modea at upoc-inc.com Thu Dec 12 00:14:04 2002 From: modea at upoc-inc.com (Michael O'Dea) Date: Wed, 11 Dec 2002 18:14:04 -0500 Subject: FW: [netsaint] check_snmp errors with solaris 8/sparc - No data recieved from host Message-ID: <4DB9CCB36001AC4F901CC0EC4409719901EF1098@exchange01.upocny.upoc-inc.com> Nope - this didn't get me anywhere. I am baffled by this. I'll have to try the developers list thanks -m -----Original Message----- From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] Sent: Wednesday, December 11, 2002 1:57 PM To: Michael O'Dea; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] FW: [netsaint] check_snmp errors with solaris 8/sparc - No data recieved from host Try using the -H option (as I suggested in my original e-mail). jc > -----Original Message----- > From: Michael O'Dea [mailto:modea at upoc-inc.com] > Sent: Wednesday, December 11, 2002 12:54 PM > To: Carroll, Jim P [Contractor]; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] FW: [netsaint] check_snmp errors with > solaris 8/sparc - No data recieved from host > > > > > eek! > > I realized that I pasted a bunch of stuff wrong after I > emailed it! So much for attention to detail :( > > Here is how it *should* look: (and I am still getting the same error) > > bash-2.05$ id > uid=6667(nagios) gid=200(upoc) > > here I run the plugin: > > bash-2.05$ /opt/nagios/libexec/check_snmp 10.10.6.81 -C > test123 -o system.sysName.0 > SNMP problem - No data recieved from host > CMD: /usr/local/bin/snmpget -m ALL -v 1 -c test123 > 10.10.6.81:161 system.sysName.0 > bash-2.05$ > > It reports 'snmp problem' and gives me the cmdline, which I run: > > bash-2.05$ /usr/local/bin/snmpget -m ALL -v 1 -c test123 > 10.10.6.81:161 system.sysName.0 > system.sysName.0 = "message1" > bash-2.05$ > > It works with the actual snmpget... but check_snmp (which > calls snmpget?) seems to fail. > > I get the same error with snmpget from UCD-snmp version: > 4.1.2 & UCD-snmp version: 4.2.6 on this solaris 8/sparc system. > > I also tried the suggested change in utils.c & recompile - it > had no change. > > Thanks for getting back to me > > -m > > -----Original Message----- > From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] > Sent: Wednesday, December 11, 2002 1:35 PM > To: Michael O'Dea; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] FW: [netsaint] check_snmp errors with > solaris 8/sparc - No data recieved from host > > > First, it appears that you're testing the command under root. When in > doubt, test it under user nagios. (I don't think it would > make a difference > in this case, but it's all about eliminating possibilities, right?) > > Second, it appears that there are 3 different invocations of > the command, > and none of them match. You have (in order shown in your example): > > 1) libexec/check_snmp 10.0.0.5 -C test123 -o system.susName.0 > 2) /usr/local/bin/snmpget -m ALL -v 1 10.10.6.81 1luvUp0C > system.susName.0 > 3) /usr/local/bin/snmpget -m ALL -v 1 10.0.0.5 test123 > system.sysName.0 > system.sysName.0 = "message1" > > As a result, I'm puzzling over the following: > > - why do #1 and #2 have different IP addresses? > - why are the arguments in #2 and #3 different? > - what object is "system.susName.0"? did you mean "system.sysName.0"? > > They're just all... different. See if you can get some > incantation of the > check_snmp command to result in kicking out the correct CMD > (which would > mirror the invocation of snmpget). > > Try something along the lines of (ie, cut/paste): > > libexec/check_snmp -H 10.0.0.5 -C test123 -o system.sysName.0 > > HTH. > > jc > > > > -----Original Message----- > > From: Michael O'Dea [mailto:modea at upoc-inc.com] > > Sent: Wednesday, December 11, 2002 11:34 AM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] FW: [netsaint] check_snmp errors > with solaris > > 8/sparc - No data recieved from host > > > > > > > > Hi. > > > > I sent this to the netsaint list yesterday - then found out > > about nagios, and installed it & then signed up for the list > > -- and am still having the same problem with the nagios > > check_snmp plugin. > > > > the version is: check_snmp (nagios-plugins 1.3.0-beta2) 1.20 > > > > Any ideas? > > > > thanks > > -m > > -----Original Message----- > > From: Michael O'Dea > > Sent: Tuesday, December 10, 2002 12:43 PM > > To: netsaint-users at lists.sourceforge.net > > Subject: [netsaint] check_snmp errors with solaris 8/sparc - No data > > recieved from host > > > > > > > > Hello, > > > > I seem to be having a problem with the check_snmp plugin, I > > am getting this error: > > > > root at host: [/opt/netsaint #] libexec/check_snmp 10.0.0.5 -C > > test123 -o system.susName.0 > > SNMP problem - No data recieved from host > > CMD: /usr/local/bin/snmpget -m ALL -v 1 10.10.6.81 1luvUp0C > > system.susName.0 > > > > so I run the snmpget cmdline and get a answer: > > > > root at host: [/opt/netsaint #] /usr/local/bin/snmpget -m ALL -v > > 1 10.0.0.5 test123 system.sysName.0 > > system.sysName.0 = "message1" > > > > It works fine... > > > > So I checked the mailing list archive & google and I came up > > with this: > > > > http://www.geocrawler.com/mail/msg.php3?msg_id=7358656&list=739 > > http://www.geocrawler.com/archives/3/736/2001/8/0/6342925/ > > > > I tried upping TXTBLK to 256 in the utils.c -- no luck. > > > > Any suggestions? > > > > system info: > > > > check_snmp (netsaint-plugins 1.2.9-4) 1.21.2.5 > > UCD-snmp version: 4.2.6 > > SunOS host 5.8 Generic_108528-15 sun4u sparc SUNW,Sun-Fire-280R > > gcc version 3.2 > > > > > > It does work for me on a solaris 7/intel system, same plugin > > version but ucd-snmp 4.1.2. I tried compiling 4.1.2 on the > > solaris 8/sparc box and got the same error. > > > > Anyone else seen this? > > > > thanks > > > > ---- > > Michael A. O'Dea > > Senior Systems Administrator > > Upoc, Inc - NYC, NY > > 212.405.1042 (desk) > > modea at upoc-inc.com > > Upoc Handle: fddi > > > > "when the going gets weird, the weird turn pro" -HST > > > > > > > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > Netsaint-users mailing list > > Netsaint-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/netsaint-users > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by: > > With Great Power, Comes Great Responsibility > > Learn to use your power at OSDN's High Performance Computing Channel > > http://hpc.devchannel.org/ > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From Stanley.Hopcroft at IPAustralia.Gov.AU Thu Dec 12 00:28:00 2002 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Thu, 12 Dec 2002 10:28:00 +1100 Subject: Host/Service Status Totals via SMS/pager? In-Reply-To: <20021211221253.13729.qmail@web21505.mail.yahoo.com>; from jlyons30@yahoo.com on Wed, Dec 11, 2002 at 02:12:53PM -0800 References: <000a01c2a165$a7fb5370$0301a8c0@craftohtxkm0de> <20021211221253.13729.qmail@web21505.mail.yahoo.com> Message-ID: <20021212102757.E22982@IPAustralia.Gov.AU> Dear Sir, On Wed, Dec 11, 2002 at 02:12:53PM -0800, Jon Lyons wrote: > > Hi, > Anyone have any suggestions on how I can get the Host & Service status totals(The small tables at the top of service problems) > and a list of the hosts/services in a critical state in a plain text > format? (ie..Up 165 Down 30) > I've written 2 scripts that allow me to acknowledge host/service > problems via my Nextel phone. > It'd be great if I could get a simple quick stats of all > hosts/services.....(I have VERY basic perl skills)..... > It seems to me you have two challenges 1 Getting the totals This may go part of the way perl -e 'open(F, "status.log"); $/ = ""; $x = ; $h++ while $x =~/CRITICAL|DOWN/gs; print $h. "\n" ' and can almost certainly be refined and scriptified. 2 Having them displayed/notified on some stimulus (eg state change ==> gloabl service handler ==> get totals | notify) Part 2 is left as 'exercise to the reader'. If you really want to read this stuff from the status.cgi you could also use LWP but this would take more work. Yours sincerely. ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From jlyons30 at yahoo.com Thu Dec 12 00:40:48 2002 From: jlyons30 at yahoo.com (Jon Lyons) Date: Wed, 11 Dec 2002 15:40:48 -0800 (PST) Subject: Host/Service Status Totals via SMS/pager? In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB2F248F@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB2F248F@PKDWB03C.ad.sprint.com> Message-ID: <20021211234048.86501.qmail@web21503.mail.yahoo.com> Thanks, this is what I was looking for! Now I'll be able to request a status update from my phone via two-way paging! Thanks! "Carroll, Jim P [Contractor]" wrote:For something as limiting as SMS/pager, you might want to start with something like: For host outages: grep HOST status.log | grep CRITICAL | wc -l For service outages: grep SERVICE status.log | grep CRITICAL | wc -l Massage in some formatting, and you could end up with output similar to: Hosts up: 165 down:30 Services up: 1419 down: 155 --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From jamie.baddeley at bclnz.net Thu Dec 12 01:17:08 2002 From: jamie.baddeley at bclnz.net (Jamie) Date: Thu, 12 Dec 2002 13:17:08 +1300 Subject: Modified SaintMap References: <20021211143225.17576.qmail@web21511.mail.yahoo.com> Message-ID: <006e01c2a173$cf9a44a0$fe784fcb@paradise.net.nz> Hi, I tried the perl scripts. Unfortunately they barfed at me. see following: -Jamie # ./hostextinfo2default.pl Use of uninitialized value in concatenation (.) at ./hostextinfo2default.pl line 85, line 10. Use of uninitialized value in concatenation (.) at ./hostextinfo2default.pl line 85, line 10. Use of uninitialized value in concatenation (.) at ./hostextinfo2default.pl line 85, line 10. Use of uninitialized value in concatenation (.) at ./hostextinfo2default.pl line 85, line 10. Use of uninitialized value in concatenation (.) at ./hostextinfo2default.pl line 85, line 10. Use of uninitialized value in concatenation (.) at ./hostextinfo2default.pl line 85, line 10. Use of uninitialized value in concatenation (.) at ./hostextinfo2default.pl line 85, line 10. Use of uninitialized value in concatenation (.) at ./hostextinfo2default.pl line 85, line 10. # # ./hosts2default.pl Use of uninitialized value in string eq at ./hosts2default.pl line 45, line 323. Use of uninitialized value in concatenation (.) at ./hosts2default.pl line 55, line 323. Use of uninitialized value in string eq at ./hosts2default.pl line 45, line 340. Use of uninitialized value in concatenation (.) at ./hosts2default.pl line 55, line 340. Use of uninitialized value in string eq at ./hosts2default.pl line 45, line 506. Use of uninitialized value in concatenation (.) at ./hosts2default.pl line 55, line 506. Use of uninitialized value in string eq at ./hosts2default.pl line 45, line 522. Use of uninitialized value in concatenation (.) at ./hosts2default.pl line 55, line 522. Use of uninitialized value in string eq at ./hosts2default.pl line 45, line 538. Use of uninitialized value in concatenation (.) at ./hosts2default.pl line 55, line 538. Use of uninitialized value in string eq at ./hosts2default.pl line 45, line 554. Use of uninitialized value in concatenation (.) at ./hosts2default.pl line 55, line 554. Use of uninitialized value in string eq at ./hosts2default.pl line 45, line 570. Use of uninitialized value in concatenation (.) at ./hosts2default.pl line 55, line 570. Use of uninitialized value in string eq at ./hosts2default.pl line 45, line 586. Use of uninitialized value in concatenation (.) at ./hosts2default.pl line 55, line 586. Use of uninitialized value in string eq at ./hosts2default.pl line 45, line 602. Use of uninitialized value in concatenation (.) at ./hosts2default.pl line 55, line 602. Use of uninitialized value in string eq at ./hosts2default.pl line 45, line 618. Use of uninitialized value in concatenation (.) at ./hosts2default.pl line 55, line 618. Use of uninitialized value in string eq at ./hosts2default.pl line 45, line 634. Use of uninitialized value in concatenation (.) at ./hosts2default.pl line 55, line 634. Use of uninitialized value in string eq at ./hosts2default.pl line 45, line 650. Use of uninitialized value in concatenation (.) at ./hosts2default.pl line 55, line 650. Use of uninitialized value in string eq at ./hosts2default.pl line 45, line 666. Use of uninitialized value in concatenation (.) at ./hosts2default.pl line 55, line 666. Use of uninitialized value in string eq at ./hosts2default.pl line 45, line 682. Use of uninitialized value in concatenation (.) at ./hosts2default.pl line 55, line 682. Use of uninitialized value in string eq at ./hosts2default.pl line 45, line 698. Use of uninitialized value in concatenation (.) at ./hosts2default.pl line 55, line 698. Use of uninitialized value in string eq at ./hosts2default.pl line 45, line 714. Use of uninitialized value in concatenation (.) at ./hosts2default.pl line 55, line 714. Use of uninitialized value in string eq at ./hosts2default.pl line 45, line 730. Use of uninitialized value in concatenation (.) at ./hosts2default.pl line 55, line 730. Use of uninitialized value in string eq at ./hosts2default.pl line 45, line 747. Use of uninitialized value in concatenation (.) at ./hosts2default.pl line 55, line 747. Use of uninitialized value in string eq at ./hosts2default.pl line 45, line 763. Use of uninitialized value in concatenation (.) at ./hosts2default.pl line 55, line 763. Use of uninitialized value in string eq at ./hosts2default.pl line 45, line 779. Use of uninitialized value in concatenation (.) at ./hosts2default.pl line 55, line 779. Use of uninitialized value in string eq at ./hosts2default.pl line 45, line 794. Use of uninitialized value in concatenation (.) at ./hosts2default.pl line 55, line 794. 222222222222222222222222222222222222222222# ----- Original Message ----- From: HPS To: nagios-users at lists.sourceforge.net Cc: nagios-devel at lists.sourceforge.net Sent: Thursday, December 12, 2002 3:32 AM Subject: [Nagios-users] Modified SaintMap Hallo !! I have modified "SaintMap" that it produces an output in the Template-Based way and I have written 2 little perl programmes that transfom hosts.cfg and hostextinfo.cfg into a simplified default (old) method definition. I use the "old" method as input for SaintMap. How to Use: Copy hosts2default.pl and hostextinfo2default.pl into the nagios-etc-folder (for instance, /usr/local/nagios/etc/) and run "./hosts2default.pl" and "./hostextinfo2default.pl" (both executable !!) on the command line in the nagios-etc-folder (Make a backup first !! ; )) Hosts2default.pl returns a file called hostsdefault.cfg and it contains only the host_name and one (!) parent !! Hostextinfo2default.pl creates a file with the name hostextinfodefault.cfg. The next step is to start SaintMap (executable !!) in a XTERM-window with the command "./saintmap.pl". Then you open hostsdefault.cfg and hostextinfo.cfg. You can now see your old map (no images - only the "?" appears as icon). Next: Drag-and-Drop. When you have finished your work, save to any file (best: hostextinfo.cfg) and this file contains your "Extended Host Information". SEE YOU HPS PS: I'm not in the MailingList !! Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From pascal.wessel at media-online.ch Thu Dec 12 08:05:57 2002 From: pascal.wessel at media-online.ch (Pascal Wessel) Date: Thu, 12 Dec 2002 08:05:57 +0100 Subject: Nagios Publicity from O'Reilly In-Reply-To: References: Message-ID: <003101c2a1ac$eb5d6ad0$bd28bb0a@mediaonline.ch> Nice to read. Just a quick remark: is the image capture of "a Nagios map" (aka figure 4) http://www.onlamp.com/onlamp/2002/12/05/graphics/nagios_map.jpg a real Nagios map ??? Seems to me it's a Cheops one "? la Tcl/Tk"... Best regards to all of you. Pascal W. -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of listuser at neo.pittstate.edu Sent: mercredi, 11. d?cembre 2002 22:38 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Nagios Publicity from O'Reilly http://www.onlamp.com/pub/a/onlamp/2002/12/05/essentialsysadmin.html I don't know if anyone else has seen this and I didn't see it in the list archives. AEleen Frisch author of "Essential System Administration, 3rd Edition" ranked Nagios #2 on her list of the "Top Five Open Source Packages for System Administrators". Way to go Ethan! Justin ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From tdeblend at gcc.dhl.com Thu Dec 12 08:54:01 2002 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Thu, 12 Dec 2002 08:54:01 +0100 Subject: Filter HTML on list!? References: <20021212094947.A22982@IPAustralia.Gov.AU> Message-ID: <3DF84099.93437741@gcc.dhl.com> Stanley Hopcroft wrote: > The document published by Greg Lehey at > > http://www.lemis.com/questions.html > > contains suggestions for writers to increase the likelihood of getting > positive results to questions. I would like to add the following (sometimes entertaining) document: http://www.tuxedo.org/~esr/faqs/smart-questions.html . ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From mailing at bgs-ing.de Thu Dec 12 10:09:51 2002 From: mailing at bgs-ing.de (mailing at bgs-ing.de) Date: Thu, 12 Dec 2002 10:09:51 +0100 Subject: Check HP printer with snmp? Message-ID: Hi, I want to check our HP printers with check_snmp, status, printed sites, and other tings, but I don't know the commands to check the printers. Does anybody know them, or know where I can find them? Thanks! Nicole ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From A.Weinberger at ebv.com Thu Dec 12 10:07:03 2002 From: A.Weinberger at ebv.com (Weinberger Andreas) Date: Thu, 12 Dec 2002 10:07:03 +0100 Subject: host notify to multiple contacts? Message-ID: <51420C40A341F14499B8C5A488BEDA5808EE81@EXSRV02.int.ebv.com> hello all, my nagios system doesnt write notifications to all contacts defined in a contacgroup. below you will find my current config. service notifications (notify-by-email) are send to the both contacts, host notifications (host-notify-by-email) not. did i missed any configuration option for the host notification to multiple contacts or emailaddresses? (and yes, didnt find anything in the mailarchive/google ;)) TIA, -- randy :::: :: andreas 'randy' weinberger :: networking group :: ebv elektronik gmbh&co. kg ## logfile ..snipp.. [1039514025] SERVICE NOTIFICATION: network;ljubljana;SSH;OK;notify-by-email;SSH ok [1039514026] SERVICE NOTIFICATION: itsos;ljubljana;SSH;OK;notify-by-email;SSH ok ..snipp.. [1039631192] HOST NOTIFICATION: network;ebv-ljubljana.ebv.com;DOWN;host-notify-by-email;PING CRITICAL [1039632862] HOST NOTIFICATION: network;ebv-ljubljana.ebv.com;UP;host-notify-by-email;PING OK ..snipp.. ## services.cfg define service{ name branchrouter-service active_checks_enabled 1 passive_checks_enabled 1 parallelize_check 1 obsess_over_service 1 check_freshness 0 notifications_enabled 1 event_handler_enabled 1 flap_detection_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 register 0 notification_interval 120 notification_period workhours notification_options w,u,c,r is_volatile 0 check_period workhours max_check_attempts 2 normal_check_interval 5 retry_check_interval 1 contact_groups branchrouter-admins } define service{ use branchrouter-service host_name ljubljana service_description SSH check_command check_ssh } ## contactgroups.cfg define contactgroup{ contactgroup_name branchrouter-admins alias Branchrouter Administrators members itsos, network } ## contacts.cfg define contact{ contact_name itsos alias IT SOS Admins service_notification_period workhours host_notification_period workhours service_notification_options w,u,c,r host_notification_options d,u,r service_notification_commands notify-by-email host_notification_commands host-notify-by-email email email1 at domain } define contact{ contact_name network alias Cisco Admins service_notification_period 24x7 host_notification_period 24x7 service_notification_options w,u,c,r host_notification_options d,u,r service_notification_commands notify-by-email host_notification_commands host-notify-by-email email email2 at domain } ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From tdeblend at gcc.dhl.com Thu Dec 12 10:27:35 2002 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Thu, 12 Dec 2002 10:27:35 +0100 Subject: Check HP printer with snmp? References: Message-ID: <3DF85687.ADA2B71C@gcc.dhl.com> Have you tried check_hpdj from the main plugin distribution? mailing at bgs-ing.de wrote: > > Hi, > > I want to check our HP printers with check_snmp, status, printed sites, and > other tings, > but I don't know the commands to check the printers. > Does anybody know them, or know where I can find them? > > Thanks! > > Nicole > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users -- Tom De Blende Senior NT Infrastructure Analyst (Frango) DHL Global Coordination Center - IT Department Tel +32 2 713 42 62 Fax +32 2 713 52 00 ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From Stanley.Hopcroft at IPAustralia.Gov.AU Thu Dec 12 11:32:45 2002 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Thu, 12 Dec 2002 21:32:45 +1100 Subject: Filter HTML on list!? In-Reply-To: <3DF84099.93437741@gcc.dhl.com>; from tdeblend@gcc.dhl.com on Thu, Dec 12, 2002 at 08:54:01AM +0100 References: <20021212094947.A22982@IPAustralia.Gov.AU> <3DF84099.93437741@gcc.dhl.com> Message-ID: <20021212213242.D217@IPAustralia.Gov.AU> Dear Ladies and Gentlemen, > > I would like to add the following (sometimes entertaining) document: > http://www.tuxedo.org/~esr/faqs/smart-questions.html . > I think Mr Raymonds comments are a bit over the top and not as positive as they could be. If one asks a question 'like a person with smarts, confidence, and clues who just happens to need help on one particular problem.' then one __becomes__ that sort of person. Lists that expect a minimum standard of care and thoughtfulness in asking become more useful, stimulating and attractive. It does not help answering the same question over and over again: not the answerer or the questioner. It is not a matter of rudeness or cleverness; only efficiency and a willingness to encourage participation, learning and action from everyone. Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From Chris.Losch at newham.gov.uk Thu Dec 12 11:51:53 2002 From: Chris.Losch at newham.gov.uk (Chris Losch) Date: Thu, 12 Dec 2002 10:51:53 -0000 Subject: authentication problem Message-ID: Well it sounds as though you have two different issues here, (not that I am a Nagios Expert or anything - except in my building ;) ) I would suggest you disable the authentication side of things for the moment and fix below the error first, [Wed Dec 11 20:06:55 2002] [error] [client myip] script not found or unable to stat: /usr/local/nagios/sbin/statusmap.cgi, referer: http://myserver/nagios/side.html My first thoughts on this is that it could be a apache httpd.conf misconfiguration (check you have the entries as described in the /nagios/docs/installweb.html">http:///nagios/docs/installweb.h tml ) But if you cant find the cgi's on your filesystem (which is what I think you are saying), reinstall nagios following the steps described in the documentation. The cgis, by default, should be in /usr/local/nagios/sbin. As for the outages.cgi permissions issue, ask yourself some Q's! Is this the only cgi you get this problem with? are you actually managing to be recognised by nagios, logged in user = or do you have '?' ? If you are Authenticated - that is, logged in username=, are you authorised to view that information? The best advice is to read, re-read and read again all the relevant documentation, it describes it pretty well - although it assumes things everything works as expected. If you are 99% sure that you are correctly configured, and that all necessary files are on your system ;) then re-post a querie preferably with the relevant parts of you config files - you will know what is relevant when you read the documentation. :) Don't worry about being a newbie, we were all newbies once. Hope this steers you in the right direction Chris -----Original Message----- From: Master Brian [mailto:mangabbs at hotmail.com] Sent: 11 December 2002 19:35 To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] authentication problem Thank you... hem sorry, I feel so lamer... BTW now nagios work, but still I'm having the same server error on some cgi. For example for status.cgi I get: [Wed Dec 11 20:06:55 2002] [error] [client myip] script not found or unable to stat: /usr/local/nagios/sbin/statusmap.cgi, referer: http://myserver/nagios/side.html Infact if I do a locate statusmap.cgi I couldn't locate it, it is normal? And again, for outages.cgi I get: It appears as though you do not have permission to view information you requested... If you believe this is an error, check the HTTP server authentication requirements for accessing this CGI and check the authorization options in your CGI configuration file. and in error log nothing of relevant. This is another newbie error that I do? (sorry again ;)) ----- Original Message ----- From: Chris Losch To: 'Master Brian' Sent: Wednesday, December 11, 2002 5:57 PM Subject: RE: [Nagios-users] authentication problem Yup... htaccess: Invalid command 'uthName', perhaps mis-spelled or defined by a module Check the .htaccess file, the command should be "AuthName", not uthName.... -----Original Message----- From: Master Brian [mailto:mangabbs at hotmail.com] Sent: 11 December 2002 16:17 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] authentication problem Thank you for plugin's help. Now finally I've setup (and verified with -v) my .cfg files. Setup my apache for /nagios alias, and created my .htaccess and htpassword as from documentation, but now I cannot access to nagios. When I try to go to http://mysite/nagios/ I get this error: Server error! The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script. If you think this is a server error, please contact the webmaster Error 500 If I read from error_log of my apache what's happen I find: [Wed Dec 11 16:51:23 2002] [alert] [client 10.10.1.40] /usr/local/nagios/share/. htaccess: Invalid command 'uthName', perhaps mis-spelled or defined by a module not included in the server configuration Can someone help me get out this problem pls? Thank you ********************************************************************** Important: This e-mail is intended for the above named person only and should be treated as confidential. If this has come to you in error you should take no action based on it, nor should you copy or show it to anyone; please telephone us immediately. ********************************************************************** --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system ( http://www.grisoft.com ). Version: 6.0.426 / Virus Database: 239 - Release Date: 07/12/2002 -------------- next part -------------- An HTML attachment was scrubbed... URL: From naabokhalaf at refertelecom.pt Thu Dec 12 13:04:10 2002 From: naabokhalaf at refertelecom.pt (ABOKHALAF, Nassri Abdellatif) Date: Thu, 12 Dec 2002 12:04:10 -0000 Subject: plugin for squid Message-ID: <5032019AFC475F4B95262C63B94BC2F8B8AE@rtsvr8.refertelecom.pt> Hello, I am new with nagios and i am trying to monitor some services. I did not find any plugin for squid and i want to do one of my own.I've searched for documentation explaining how to build your own plugin but unsuccessful. Can anyone point me where to start with... thank you in advance, naa ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From tdeblend at gcc.dhl.com Thu Dec 12 13:15:59 2002 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Thu, 12 Dec 2002 13:15:59 +0100 Subject: plugin for squid References: <5032019AFC475F4B95262C63B94BC2F8B8AE@rtsvr8.refertelecom.pt> Message-ID: <3DF87DFF.18672ED9@gcc.dhl.com> Two things: 1) You can use check_http to monitor squid. 2) It might be easier to help you out if you tell us what you already tried, post some code and explain where you are stuck. With the info you give us now, all we can do is pointing you to the docs. Kind regards, Tom "ABOKHALAF, Nassri Abdellatif" wrote: > > Hello, > I am new with nagios and i am trying to monitor some services. I did not find any plugin for squid and i want to do one of my own.I've searched for documentation explaining how to build your own plugin but unsuccessful. Can anyone point me where to start with... > thank you in advance, > naa > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From naabokhalaf at refertelecom.pt Thu Dec 12 14:12:41 2002 From: naabokhalaf at refertelecom.pt (ABOKHALAF, Nassri Abdellatif) Date: Thu, 12 Dec 2002 13:12:41 -0000 Subject: plugin for squid Message-ID: <5032019AFC475F4B95262C63B94BC2F8B578@rtsvr8.refertelecom.pt> Hello Tom, Well, I've tried to use the check_http commmand for squid check-ups: I wrote in checkcommands.cfg define command{ command_name check_squid command_line $USER1$/check_http -I $HOSTADDRESS$ -p $ARG1$ -u $ARG2$ } then in services.cfg i wrote define service{ use generic-service ; Name of service template to use host_name squid.myserver.com service_description squid is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 10 retry_check_interval 5 contact_groups dsi notification_interval 120 notification_period 24x7 notification_options w,u,c,r check_command check_squid!8080!http://www.google.com } what this command does is ./check_http -I my_squid_ip_addr -p 8080 -u http://www.google.com the answer is : HTTP ok: HTTP/1.0 200 OK - 0.156 second response time |time= 0.156 but sometimes an error is returned (not happening now!) is this testing correct ? An other issue is https testing. We have a https server and i want to monitor it. I've tried using check_http with the following commnad line options: /check_http -H webmail.mycompany.com the answer is : HTTP WARNING: HTTP/1.1 401 Access Denied therefore nagios returns a warning HTTP WARNING: HTTP/1.1 404 Object Not Found by cosequence nagios send me a notification. How can i test this service correctly? Thank you in advance naa -----Mensagem original----- De: Tom DE BLENDE [mailto:tdeblend at gcc.dhl.com] Enviada: quinta-feira, 12 de Dezembro de 2002 12:16 Para: ABOKHALAF, Nassri Abdellatif Cc: nagios-users at lists.sourceforge.net Assunto: Re: [Nagios-users] plugin for squid Two things: 1) You can use check_http to monitor squid. 2) It might be easier to help you out if you tell us what you already tried, post some code and explain where you are stuck. With the info you give us now, all we can do is pointing you to the docs. Kind regards, Tom "ABOKHALAF, Nassri Abdellatif" wrote: > > Hello, > I am new with nagios and i am trying to monitor some services. I did not find any plugin for squid and i want to do one of my own.I've searched for documentation explaining how to build your own plugin but unsuccessful. Can anyone point me where to start with... > thank you in advance, > naa > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From tinzauro at axiomintegration.com Thu Dec 12 14:42:24 2002 From: tinzauro at axiomintegration.com (Terry Inzauro) Date: 12 Dec 2002 07:42:24 -0600 Subject: not sending notification In-Reply-To: <000a01c2a165$a7fb5370$0301a8c0@craftohtxkm0de> References: <000a01c2a165$a7fb5370$0301a8c0@craftohtxkm0de> Message-ID: <1039700554.9473.57.camel@inzauro1.axiomintegration.com> Check and make sure the nagios user has read and write privledges to the mail spool directory. You may want to check the mail logs first and see where that directory may be. Terry Inzauro On Wed, 2002-12-11 at 16:35, Cullen Powell wrote: > Hello again, I believe I have everything set up correctly but Nagios is still not emailing me when there is a critical error (or any other warning / error for that matter) Any idea what I could be doing wrong? Im not getting any error messages... > > All the Best, > Cullen ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From p.miquet at hafiba.fr Thu Dec 12 15:08:44 2002 From: p.miquet at hafiba.fr (Pascal Miquet) Date: 12 Dec 2002 15:08:44 +0100 Subject: authentication problem In-Reply-To: References: Message-ID: <1039699392.5021.26.camel@moishe> Hi, I've got the -rwxrwxr-x 1 nagios nagios 147984 nov 13 18:42 sbin/statusmap.cgi According to the authentication, I would suggest to checks the cgi.cfg file and see the authentication flag set to 1 and all users allowed into all authorised_xxxx users. HTH Pascal Miquet Le mer 11/12/2002 ? 20:35, Master Brian a ?crit : > Thank you... hem sorry, I feel so lamer... BTW now nagios work, but still I'm having the same server error on some cgi. For example for status.cgi I get: > > [Wed Dec 11 20:06:55 2002] [error] [client myip] script not found or unable to stat: /usr/local/nagios/sbin/statusmap.cgi, referer: http://myserver/nagios/side.html > > Infact if I do a locate statusmap.cgi I couldn't locate it, it is normal? > > And again, for outages.cgi I get: > > It appears as though you do not have permission to view information you requested... > > > If you believe this is an error, check the HTTP server authentication requirements for accessing this CGI > and check the authorization options in your CGI configuration file. > > and in error log nothing of relevant. > > This is another newbie error that I do? (sorry again ;)) > > ----- Original Message ----- > From: Chris Losch > To: 'Master Brian' > Sent: Wednesday, December 11, 2002 5:57 PM > Subject: RE: [Nagios-users] authentication problem > > > Yup... > htaccess: Invalid command 'uthName', perhaps mis-spelled or defined by a module > > Check the .htaccess file, the command should be "AuthName", not uthName.... > -----Original Message----- > From: Master Brian [mailto:mangabbs at hotmail.com] > Sent: 11 December 2002 16:17 > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] authentication problem > > > Thank you for plugin's help. Now finally I've setup (and verified with -v) my .cfg files. Setup my apache for /nagios alias, and created my .htaccess and htpassword as from documentation, but now I cannot access to nagios. When I try to go to http://mysite/nagios/ I get this error: > > Server error! > The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script. > If you think this is a server error, please contact the webmaster > Error 500 > > If I read from error_log of my apache what's happen I find: > > [Wed Dec 11 16:51:23 2002] [alert] [client 10.10.1.40] /usr/local/nagios/share/. > htaccess: Invalid command 'uthName', perhaps mis-spelled or defined by a module > not included in the server configuration > > Can someone help me get out this problem pls? > Thank you > > > ********************************************************************** > Important: > This e-mail is intended for the above named person only and should be > treated as confidential. If this has come to you in error you should take > no action based on it, nor should you copy or show it to anyone; > please telephone us immediately. > ********************************************************************** > > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.426 / Virus Database: 239 - Release Date: 07/12/2002 ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From mangabbs at hotmail.com Thu Dec 12 15:27:48 2002 From: mangabbs at hotmail.com (Master Brian) Date: Thu, 12 Dec 2002 15:27:48 +0100 Subject: authentication problem References: Message-ID: Thank you, I will check again the docs :) >If you are Authenticated - that is, logged in username=, are you authorised to view that information? Yes, I'm authenticated, and I've setup authentication=1 in cgi.cfg >If you are Authenticated - that is, logged in username=, are you authorised to view that information? I've used the nagios user that have all privileges on nagios :( >re-post a querie preferably with the relevant parts of you config files Heheheh ok :) >Hope this steers you in the right direction Thank you very much for your help and your kindness -------------- next part -------------- An HTML attachment was scrubbed... URL: From Thomas.Nilsen at roxar.com Thu Dec 12 15:16:30 2002 From: Thomas.Nilsen at roxar.com (Thomas Nilsen) Date: Thu, 12 Dec 2002 15:16:30 +0100 Subject: plugin for squid Message-ID: To check the https server, use "check_http -H $HOSTADDRESS$ -S -a user:passwd -u URL" The -S provieds SSL, -a provides a username and password as it looks like your webmail server requireres authentication on connection. Hope that helps. Thomas >-----Original Message----- >From: ABOKHALAF, Nassri Abdellatif [mailto:naabokhalaf at refertelecom.pt] >Sent: Thursday, December 12, 2002 2:13 PM >To: Tom DE BLENDE >Cc: nagios-users at lists.sourceforge.net >Subject: RE: [Nagios-users] plugin for squid > > >Hello Tom, > >Well, I've tried to use the check_http commmand for squid check-ups: > >I wrote in checkcommands.cfg > >define command{ > command_name check_squid > command_line $USER1$/check_http -I $HOSTADDRESS$ -p >$ARG1$ -u $ARG2$ > } > > >then in services.cfg i wrote > >define service{ > use generic-service > ; Name of service template to use > > host_name squid.myserver.com > service_description squid > is_volatile 0 > check_period 24x7 > max_check_attempts 3 > normal_check_interval 10 > retry_check_interval 5 > contact_groups dsi > notification_interval 120 > notification_period 24x7 > notification_options w,u,c,r > check_command >check_squid!8080!http://www.google.com > } > > >what this command does is > > >./check_http -I my_squid_ip_addr -p 8080 -u http://www.google.com > > >the answer is : > >HTTP ok: HTTP/1.0 200 OK - 0.156 second response time |time= 0.156 > >but sometimes an error is returned (not happening now!) > >is this testing correct ? > > >An other issue is https testing. We have a https server and i >want to monitor it. I've tried using check_http with the >following commnad line options: > >/check_http -H webmail.mycompany.com > >the answer is : > >HTTP WARNING: HTTP/1.1 401 Access Denied > > >therefore nagios returns a warning > >HTTP WARNING: HTTP/1.1 404 Object Not Found > >by cosequence nagios send me a notification. > >How can i test this service correctly? > > >Thank you in advance > >naa > > >-----Mensagem original----- >De: Tom DE BLENDE [mailto:tdeblend at gcc.dhl.com] >Enviada: quinta-feira, 12 de Dezembro de 2002 12:16 >Para: ABOKHALAF, Nassri Abdellatif >Cc: nagios-users at lists.sourceforge.net >Assunto: Re: [Nagios-users] plugin for squid > > >Two things: > >1) You can use check_http to monitor squid. >2) It might be easier to help you out if you tell us what you already >tried, post some code and explain where you are stuck. With the info >you give us now, all we can do is pointing you to the docs. > >Kind regards, >Tom > >"ABOKHALAF, Nassri Abdellatif" wrote: >> >> Hello, >> I am new with nagios and i am trying to monitor some >services. I did not find any plugin for squid and i want to do >one of my own.I've searched for documentation explaining how >to build your own plugin but unsuccessful. Can anyone point me >where to start with... >> thank you in advance, >> naa >> >> ------------------------------------------------------- >> This sf.net email is sponsored by: >> With Great Power, Comes Great Responsibility >> Learn to use your power at OSDN's High Performance Computing Channel >> http://hpc.devchannel.org/ >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users > > >------------------------------------------------------- >This sf.net email is sponsored by: >With Great Power, Comes Great Responsibility >Learn to use your power at OSDN's High Performance Computing Channel >http://hpc.devchannel.org/ >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users > DISCLAIMER: This message contains information that may be privileged or confidential and is the property of the Roxar Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorised to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From Fredrik.Wanglund at datavis.se Thu Dec 12 15:45:05 2002 From: Fredrik.Wanglund at datavis.se (=?iso-8859-1?Q?Fredrik_W=E4nglund?=) Date: Thu, 12 Dec 2002 15:45:05 +0100 Subject: plugin for squid Message-ID: <9EA0F1554816EB499A4B1136B80E8DE278043C@storevis.datavis.se> Look at http://nagiosplug.sourceforge.net/developer-guidelines.html /FredrikW -----Original Message----- From: ABOKHALAF, Nassri Abdellatif [mailto:naabokhalaf at refertelecom.pt] Sent: Thu 12-Dec-02 13:04 To: nagios-users at lists.sourceforge.net Cc: Subject: [Nagios-users] plugin for squid Hello, I am new with nagios and i am trying to monitor some services. I did not find any plugin for squid and i want to do one of my own.I've searched for documentation explaining how to build your own plugin but unsuccessful. Can anyone point me where to start with... thank you in advance, naa ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From Brian.Ipsen at andebakken.dk Thu Dec 12 16:21:29 2002 From: Brian.Ipsen at andebakken.dk (Brian Ipsen) Date: Thu, 12 Dec 2002 16:21:29 +0100 Subject: Status returning to normal ? Message-ID: Hi! Is it somehow possible to put a (passive) service-check back into normal/OK state after a given period of time ?? The reason for my question is that I'd like an alert in case a special SNMP trap is received (and processed through external/passive checking) - but if no trap is received to put the service back into OK state, then the warning/error will not disappear unless I manually submit an OK-result. Regards, /Brian ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From jcarro10 at sprintspectrum.com Thu Dec 12 16:41:34 2002 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Thu, 12 Dec 2002 09:41:34 -0600 Subject: Nagios Publicity from O'Reilly Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F2490@PKDWB03C.ad.sprint.com> I thought that image was peculiar when I saw it, too. If we get a few more "I've never seen that before" responses on this list, I'll try to drop a note to the author about it. jc > -----Original Message----- > From: Pascal Wessel [mailto:pascal.wessel at media-online.ch] > Sent: Thursday, December 12, 2002 1:06 AM > To: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Nagios Publicity from O'Reilly > > > Nice to read. > Just a quick remark: is the image capture of "a Nagios map" > (aka figure > 4) http://www.onlamp.com/onlamp/2002/12/05/graphics/nagios_map.jpg > a real Nagios map ??? > > Seems to me it's a Cheops one "? la Tcl/Tk"... > > Best regards to all of you. > Pascal W. > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of > listuser at neo.pittstate.edu > Sent: mercredi, 11. d?cembre 2002 22:38 > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Nagios Publicity from O'Reilly > > > http://www.onlamp.com/pub/a/onlamp/2002/12/05/essentialsysadmin.html > > I don't know if anyone else has seen this and I didn't see it in the > list archives. AEleen Frisch author of "Essential System > Administration, 3rd Edition" ranked Nagios #2 on her list of the "Top > Five Open Source Packages for System Administrators". > > Way to go Ethan! > > Justin > > > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From mgj at unb.ca Thu Dec 12 16:55:19 2002 From: mgj at unb.ca (Michael Jewett) Date: Thu, 12 Dec 2002 11:55:19 -0400 Subject: default config converted to template config Message-ID: <001001c2a1f6$df0e5380$87a9ca83@unb.ca> Hi, I am currently in the process of upgrading from Netsaint 0.0.6 (I know I'm a little behind the times, but why change something that works!) to Nagios 1.0, because I would like some of the features of Nagios. But I have the old single line entries in my config files. I would like to convert to the template based config, so I can use all the added features of this. Is there a tool to do the conversion? Otherwise starting from scratch might not be a bad idea, so I can make good use of the inheritance features. Thanks, Michael ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From jcarro10 at sprintspectrum.com Thu Dec 12 17:06:58 2002 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Thu, 12 Dec 2002 10:06:58 -0600 Subject: Status returning to normal ? Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F2491@PKDWB03C.ad.sprint.com> I'm not exactly sure I understand what you're asking. On the one hand you're asking for a service check to reset to OK after a period of time (depending on how you define 'period of time, this is the default behaviour). On the other hand it appears you're asking that if the next check returns and OK, to set the status back to OK, but still require that you manually submit an OK. (This confuses me.) If I may speculate wildly for a moment.... If you're primarily interested in receiving alerts based on the (critical) status of the SNMP traps, you could set max_check_attempts=1. Also take a look at the is_volatile directive: http://your_nagios_server/nagios/docs/volatileservices.html HTH. jc > -----Original Message----- > From: Brian Ipsen [mailto:Brian.Ipsen at andebakken.dk] > Sent: Thursday, December 12, 2002 9:21 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Status returning to normal ? > > > Hi! > > Is it somehow possible to put a (passive) service-check back > into normal/OK > state after a given period of time ?? The reason for my > question is that I'd > like an alert in case a special SNMP trap is received (and > processed through > external/passive checking) - but if no trap is received to > put the service > back into OK state, then the warning/error will not disappear unless I > manually submit an OK-result. > > Regards, > > /Brian > > > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From A.Weinberger at ebv.com Thu Dec 12 17:16:18 2002 From: A.Weinberger at ebv.com (Weinberger Andreas) Date: Thu, 12 Dec 2002 17:16:18 +0100 Subject: [solved] host notify to multiple contacts? Message-ID: <51420C40A341F14499B8C5A488BEDA58026950@EXSRV02.int.ebv.com> hi again, > did i missed any configuration option for the host notification > to multiple contacts or emailaddresses? well, would be kewl to add the second contactgroup for the notify in the hostgroup.cfg :) perhabs a good answer for the faq? heh btw, wouldnt be the better place the hosts.cfg file like services.cfg? or perhabs in hosts.cfg and hostgroup.cfg to be more flexible? e.g. define host{ name xya ... contact_groups contact1,contact2 ... } bye, :::: :: andreas 'randy' weinberger :: networking group :: ebv elektronik gmbh&co. kg ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From dadams at persistcorp.com Thu Dec 12 17:18:01 2002 From: dadams at persistcorp.com (Drew Adams) Date: Thu, 12 Dec 2002 08:18:01 -0800 Subject: Alert Histogram options Message-ID: Trying once more, as I got no response. Does anyone know what these options are for? Thanks, Drew -----Original Message----- From: Drew Adams Sent: Tuesday, December 10, 2002 5:10 PM To: nagios-users at lists.sourceforge.net Subject: Alert Histogram options Would someone please describe the following options for creating an Alert Histogram report. I'd like to know what they mean/do. - Initial States Logged - Ignore Repeated States Thanks, Drew ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From Brian.Ipsen at andebakken.dk Thu Dec 12 17:23:43 2002 From: Brian.Ipsen at andebakken.dk (Brian Ipsen) Date: Thu, 12 Dec 2002 17:23:43 +0100 Subject: Status returning to normal ? In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB2F2491@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB2F2491@PKDWB03C.ad.sprint.com> Message-ID: Hi! Example - Something critical has happendend on a host (or router) - which initiates a snmp trap. The trap is received by snmptrapd on the nagios host, and processed as an external/passive service-check - setting the service to warning or critical. If no further traps are received within 2 minutes (and the check interval is 2 minutes) - will the status for that service fall back top OK - or will it remain in state warning/critical (depending on the submitted result) ? I can not depend on the device to send another trap to tell me, that things are OK again (that is why I need nagios to make an alert - and then the status should go back to OK, because otherwise I'll not be notified next time a snmp trap is received). But the right way is probbaly to define the service as Volatile. Regards, /Brian > -----Original Message----- > From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] > Sent: 12. december 2002 17:07 > To: 'Brian Ipsen'; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Status returning to normal ? > > > I'm not exactly sure I understand what you're asking. > > On the one hand you're asking for a service check to reset to OK after a > period of time (depending on how you define 'period of time, this is the > default behaviour). > > On the other hand it appears you're asking that if the next check returns > and OK, to set the status back to OK, but still require that you manually > submit an OK. (This confuses me.) > > If I may speculate wildly for a moment.... If you're primarily interested > in receiving alerts based on the (critical) status of the SNMP traps, you > could set max_check_attempts=1. Also take a look at the is_volatile > directive: > > http://your_nagios_server/nagios/docs/volatileservices.html > > HTH. > > jc > > > -----Original Message----- > > From: Brian Ipsen [mailto:Brian.Ipsen at andebakken.dk] > > Sent: Thursday, December 12, 2002 9:21 AM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Status returning to normal ? > > > > > > Hi! > > > > Is it somehow possible to put a (passive) service-check back > > into normal/OK > > state after a given period of time ?? The reason for my > > question is that I'd > > like an alert in case a special SNMP trap is received (and > > processed through > > external/passive checking) - but if no trap is received to > > put the service > > back into OK state, then the warning/error will not disappear unless I > > manually submit an OK-result. > > > > Regards, > > > > /Brian > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by: > > With Great Power, Comes Great Responsibility > > Learn to use your power at OSDN's High Performance Computing Channel > > http://hpc.devchannel.org/ > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From chris at chrisdos.com Thu Dec 12 17:42:18 2002 From: chris at chrisdos.com (Chris Dos) Date: Thu, 12 Dec 2002 09:42:18 -0700 Subject: User Access to certain hosts Message-ID: <3DF8BC6A.3020404@chrisdos.com> Is there a way to allow certain users to have access to views of only certain hosts? I work for a hosting company that would like to allow the clients that pay for monitoring to be able to view the status of their server but not anyone elses. Is this possible or is this something I should post to the development list? Chris -- Chris Dos Senior Engineer Huge Hosting ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From jcarro10 at sprintspectrum.com Thu Dec 12 17:31:08 2002 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Thu, 12 Dec 2002 10:31:08 -0600 Subject: Status returning to normal ? Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F2493@PKDWB03C.ad.sprint.com> Good point, that another SNMP trap won't be generated when the state returns to OK. I've been elbow-deep in a related issue with logfile checking. Yeah, check out the docs regarding is_volatile (and don't forget to set max_check_attempts=1). I think it'll do exactly what you want. For one thing, SNMP traps are explicitly mentioned. jc > -----Original Message----- > From: Brian Ipsen [mailto:Brian.Ipsen at andebakken.dk] > Sent: Thursday, December 12, 2002 10:24 AM > To: Carroll, Jim P [Contractor]; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Status returning to normal ? > > > Hi! > > Example - Something critical has happendend on a host (or > router) - which > initiates a snmp trap. The trap is received by snmptrapd on > the nagios host, > and processed as an external/passive service-check - setting > the service to > warning or critical. If no further traps are received within > 2 minutes (and > the check interval is 2 minutes) - will the status for that > service fall > back top OK - or will it remain in state warning/critical > (depending on the > submitted result) ? I can not depend on the device to send > another trap to > tell me, that things are OK again (that is why I need nagios > to make an > alert - and then the status should go back to OK, because > otherwise I'll not > be notified next time a snmp trap is received). But the right way is > probbaly to define the service as Volatile. > > Regards, > > /Brian > > > -----Original Message----- > > From: Carroll, Jim P [Contractor] > [mailto:jcarro10 at sprintspectrum.com] > > Sent: 12. december 2002 17:07 > > To: 'Brian Ipsen'; nagios-users at lists.sourceforge.net > > Subject: RE: [Nagios-users] Status returning to normal ? > > > > > > I'm not exactly sure I understand what you're asking. > > > > On the one hand you're asking for a service check to reset > to OK after a > > period of time (depending on how you define 'period of > time, this is the > > default behaviour). > > > > On the other hand it appears you're asking that if the next > check returns > > and OK, to set the status back to OK, but still require > that you manually > > submit an OK. (This confuses me.) > > > > If I may speculate wildly for a moment.... If you're > primarily interested > > in receiving alerts based on the (critical) status of the > SNMP traps, you > > could set max_check_attempts=1. Also take a look at the is_volatile > > directive: > > > > http://your_nagios_server/nagios/docs/volatileservices.html > > > > HTH. > > > > jc > > > > > -----Original Message----- > > > From: Brian Ipsen [mailto:Brian.Ipsen at andebakken.dk] > > > Sent: Thursday, December 12, 2002 9:21 AM > > > To: nagios-users at lists.sourceforge.net > > > Subject: [Nagios-users] Status returning to normal ? > > > > > > > > > Hi! > > > > > > Is it somehow possible to put a (passive) service-check back > > > into normal/OK > > > state after a given period of time ?? The reason for my > > > question is that I'd > > > like an alert in case a special SNMP trap is received (and > > > processed through > > > external/passive checking) - but if no trap is received to > > > put the service > > > back into OK state, then the warning/error will not > disappear unless I > > > manually submit an OK-result. > > > > > > Regards, > > > > > > /Brian > > > > > > > > > > > > ------------------------------------------------------- > > > This sf.net email is sponsored by: > > > With Great Power, Comes Great Responsibility > > > Learn to use your power at OSDN's High Performance > Computing Channel > > > http://hpc.devchannel.org/ > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From jsm at inpro.net Thu Dec 12 18:40:30 2002 From: jsm at inpro.net (Jeff McKeon) Date: 12 Dec 2002 12:40:30 -0500 Subject: question Message-ID: <1039714832.5306.16.camel@rh80-jsm.telaurus.net> is it possible with nagios to check a directory on a remote linux system to see how many files are there and report an error if the number grows above a certain level? I'm trying to monitor when a mail que builds up. Thanks, Jeff ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From mgj at unb.ca Thu Dec 12 18:53:11 2002 From: mgj at unb.ca (Michael Jewett) Date: Thu, 12 Dec 2002 13:53:11 -0400 Subject: Compile problems with version 1.0 Message-ID: <002801c2a207$56681e10$87a9ca83@unb.ca> I'm trying to compile Nagios and went through the docs as found on the website and it dies very early into the make. Anyone have any suggestions? Here is the output from the make all. Thanks, Michael > make all cd ./base && make make[1]: Entering directory `/root/downloads/nagios-1.0/base' gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o checks.o checks.c checks.c: In function `run_service_check': checks.c:301: `SIGALRM' undeclared (first use in this function) checks.c:301: (Each undeclared identifier is reported only once checks.c:301: for each function it appears in.) make[1]: *** [checks.o] Error 1 make[1]: Leaving directory `/root/downloads/nagios-1.0/base' make: *** [all] Error 2 ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From jack at monkeynoodle.org Thu Dec 12 18:50:48 2002 From: jack at monkeynoodle.org (Jack Coates) Date: 12 Dec 2002 09:50:48 -0800 Subject: default config converted to template config In-Reply-To: <001001c2a1f6$df0e5380$87a9ca83@unb.ca> References: <001001c2a1f6$df0e5380$87a9ca83@unb.ca> Message-ID: <1039715450.3474.16.camel@chupacabra.monkeynoodle.org> On Thu, 2002-12-12 at 07:55, Michael Jewett wrote: > Hi, > > I am currently in the process of upgrading from Netsaint 0.0.6 (I know I'm a > little behind the times, but why change something that works!) to Nagios > 1.0, because I would like some of the features of Nagios. But I have the > old single line entries in my config files. I would like to convert to the > template based config, so I can use all the added features of this. > > Is there a tool to do the conversion? Otherwise starting from scratch might > not be a bad idea, so I can make good use of the inheritance features. > > Thanks, > Michael > Just finished doing this; there is a tool in the source distribution, contrib directory, can't remember the name right now but something like cvtconfig or convertcfg. It is not made by the makefile, so you'll need to compile it. The usage is ./[program] /your/old/hosts.cfg /the/new/file/you/want/to/spit/out/e.g./services.cfg/or/contactgroups.cfg. -- Jack Coates Monkeynoodle: A Scientific Venture... ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From pete.dewell at volteurope.com Thu Dec 12 19:19:21 2002 From: pete.dewell at volteurope.com (Pete Dewell) Date: Thu, 12 Dec 2002 18:19:21 +0000 Subject: question Message-ID: Jeff, You can do this, although you will need to write a script to output the data you require to either nsca or nrpe (which one you use will depend on whether you want the check to be active or passive - nsca requires a daemon on the Nagios monitoring machine, nrpe requires a daemon on the remote machine). Both packages are available from http://www.nagios.org/download/ I use nrpe (active checks) to monitor certain processes on a remote SCO machine - works very well for me. Pete Dewell Jeff McKeon wrote: > > is it possible with nagios to check a directory on a remote linux system > to see how many files are there and report an error if the number grows > above a certain level? I'm trying to monitor when a mail que builds up. > > Thanks, > > Jeff > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users -- Technical Support/Analyst Volt Europe Tel : (+44) (0) 1737 774100 Fax : (+44) (0) 1737 772949 Mobile : (+44) (0) 777 1513066 E-mail pete.dewell at volteurope.com ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From listuser at neo.pittstate.edu Thu Dec 12 19:24:47 2002 From: listuser at neo.pittstate.edu (listuser at neo.pittstate.edu) Date: Thu, 12 Dec 2002 12:24:47 -0600 (CST) Subject: Logo preference Message-ID: I'm curious to see what other Nagios folks prefer as far as logos for their status map go. Do you prefer to have a miniature picture of the device (say a router, switch, or in my case a PacketShaper) or do you prefer to use the company's logo (like Redhat, Apple's apple, or BSD's Devil)? I created a set of images for my PacketShaper 4545 this morning from a large tiff the company provided. The png looks pretty good (good enough I think) but the gd2 image is a bit off. http://noc.net.pittstate.edu/tools/nagios/images/logos/macdaddy/PS4500-40x40.png One thing I couldn't find in any docs is what to set the "chunk size" to for pngtogd2. pngtogd2 PS4500-40x40.png PS4500-40x40.gd2 1 1 I used a chuck size of 1 and uncompressed fmt (whatever that is, I just remember the docs did say to keep the image uncompressed for CPU's sake). Should I have done something else? I guess this question is in two parts. Did I make the gd2 correctly and does the general nagios userbase prefer miniature picturess of devices or rather company/product logos? Justin ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From Jeremy.Bouse at UnderGrid.net Thu Dec 12 19:36:28 2002 From: Jeremy.Bouse at UnderGrid.net (Jeremy T. Bouse) Date: Thu, 12 Dec 2002 10:36:28 -0800 Subject: question In-Reply-To: <1039714832.5306.16.camel@rh80-jsm.telaurus.net> References: <1039714832.5306.16.camel@rh80-jsm.telaurus.net> Message-ID: <20021212183628.GB27340@UnderGrid.net> That actually sounds like a useful plugin... I may just start trying to work on one... Course it would need to run locally so would need to either be called through check_by_ssh or using NRPE... One question I have for you would be what MTA are you running and do you make use of a MSP? I my case I'm using Sendmail and I do run both a MTA and MSP so I have 2 queues to monitor on about 6 MX machines... Jeremy On Thu, Dec 12, 2002 at 12:40:30PM -0500, Jeff McKeon wrote: > is it possible with nagios to check a directory on a remote linux system > to see how many files are there and report an error if the number grows > above a certain level? I'm trying to monitor when a mail que builds up. > > Thanks, > > Jeff > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From listuser at neo.pittstate.edu Thu Dec 12 19:40:54 2002 From: listuser at neo.pittstate.edu (listuser at neo.pittstate.edu) Date: Thu, 12 Dec 2002 12:40:54 -0600 (CST) Subject: Logo preference (I am on Leave) In-Reply-To: References: Message-ID: Would the list admin please remove Gawain_Osborne at health.qld.gov.au from the list or set a NOMAIL option if it's available? Gawain's vacation program is not mailing-list aware and I doubt we want to get bounces from it for the next 3.5 weeks. He can resubscribe when he gets back. Thanks Justin On Fri, 13 Dec 2002, Gawain Osborne wrote: > Please note that I am on Leave from the 13th December until the 5th of January 2003. > ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From Jeremy.Bouse at UnderGrid.net Thu Dec 12 19:39:19 2002 From: Jeremy.Bouse at UnderGrid.net (Jeremy T. Bouse) Date: Thu, 12 Dec 2002 10:39:19 -0800 Subject: default config converted to template config In-Reply-To: <1039715450.3474.16.camel@chupacabra.monkeynoodle.org> References: <001001c2a1f6$df0e5380$87a9ca83@unb.ca> <1039715450.3474.16.camel@chupacabra.monkeynoodle.org> Message-ID: <20021212183919.GC27340@UnderGrid.net> On this same line of talk has anyone already possibly created a tool to convert from using text files to using either mysql or pgsql? Or is this a feature of the convertcfg tool and I just didn't see it in my cursory examination? Jeremy On Thu, Dec 12, 2002 at 09:50:48AM -0800, Jack Coates wrote: > On Thu, 2002-12-12 at 07:55, Michael Jewett wrote: > > Hi, > > > > I am currently in the process of upgrading from Netsaint 0.0.6 (I know I'm a > > little behind the times, but why change something that works!) to Nagios > > 1.0, because I would like some of the features of Nagios. But I have the > > old single line entries in my config files. I would like to convert to the > > template based config, so I can use all the added features of this. > > > > Is there a tool to do the conversion? Otherwise starting from scratch might > > not be a bad idea, so I can make good use of the inheritance features. > > > > Thanks, > > Michael > > > Just finished doing this; there is a tool in the source distribution, > contrib directory, can't remember the name right now but something like > cvtconfig or convertcfg. It is not made by the makefile, so you'll need > to compile it. The usage is ./[program] /your/old/hosts.cfg > /the/new/file/you/want/to/spit/out/e.g./services.cfg/or/contactgroups.cfg. > -- > Jack Coates > Monkeynoodle: A Scientific Venture... > > > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From beaker at beakerware.net Thu Dec 12 19:54:30 2002 From: beaker at beakerware.net (Michael Kingsbury) Date: Thu, 12 Dec 2002 13:54:30 -0500 Subject: Nagios Publicity from O'Reilly Message-ID: <7B716C4BC69B63428F30B58B1045782C1EFC@europa.beakerware.net> I'm pretty sure Pascal hit the nail on the head with Cheops... I looked at it a year ago or so, and it looks familiar... -mike -----Original Message----- From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] Sent: Thursday, December 12, 2002 10:42 AM To: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Nagios Publicity from O'Reilly I thought that image was peculiar when I saw it, too. If we get a few more "I've never seen that before" responses on this list, I'll try to drop a note to the author about it. jc > -----Original Message----- > From: Pascal Wessel [mailto:pascal.wessel at media-online.ch] > Sent: Thursday, December 12, 2002 1:06 AM > To: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Nagios Publicity from O'Reilly > > > Nice to read. > Just a quick remark: is the image capture of "a Nagios map" > (aka figure > 4) http://www.onlamp.com/onlamp/2002/12/05/graphics/nagios_map.jpg > a real Nagios map ??? > > Seems to me it's a Cheops one "? la Tcl/Tk"... > > Best regards to all of you. > Pascal W. > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of > listuser at neo.pittstate.edu > Sent: mercredi, 11. d?cembre 2002 22:38 > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Nagios Publicity from O'Reilly > > > http://www.onlamp.com/pub/a/onlamp/2002/12/05/essentialsysadmin.html > > I don't know if anyone else has seen this and I didn't see it in the > list archives. AEleen Frisch author of "Essential System > Administration, 3rd Edition" ranked Nagios #2 on her list of the "Top > Five Open Source Packages for System Administrators". > > Way to go Ethan! > > Justin > > > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From jsm at inpro.net Thu Dec 12 20:04:10 2002 From: jsm at inpro.net (Jeff McKeon) Date: 12 Dec 2002 14:04:10 -0500 Subject: question In-Reply-To: <20021212183628.GB27340@UnderGrid.net> References: <1039714832.5306.16.camel@rh80-jsm.telaurus.net> <20021212183628.GB27340@UnderGrid.net> Message-ID: <1039719852.5306.33.camel@rh80-jsm.telaurus.net> Jeremy, actually it's a long story but it's a home grown smtp server for use over satellite connections. Our company provides email services with a proprietary software over sat. Right now we have our support people watching the servers 24/7 for problems. On of the key indicators they watch is the mail queue. If I had a plugin to alert them when the number of messages that are queued gets too high, then they could get more sleep. the plugin actually just needs to monitor the number of files in a directory. This might also be good for seeing when log files pile up or anything of that nature. In my particular situation, the files are stored in a samba share on a linux box until the smtp server makes a connection and then retrieves them. On Thu, 2002-12-12 at 13:36, Jeremy T. Bouse wrote: > That actually sounds like a useful plugin... I may just start > trying to work on one... Course it would need to run locally so would > need to either be called through check_by_ssh or using NRPE... > > One question I have for you would be what MTA are you running > and do you make use of a MSP? I my case I'm using Sendmail and I do run > both a MTA and MSP so I have 2 queues to monitor on about 6 MX > machines... > > Jeremy > > On Thu, Dec 12, 2002 at 12:40:30PM -0500, Jeff McKeon wrote: > > is it possible with nagios to check a directory on a remote linux system > > to see how many files are there and report an error if the number grows > > above a certain level? I'm trying to monitor when a mail que builds up. > > > > Thanks, > > > > Jeff > > > > > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by: > > With Great Power, Comes Great Responsibility > > Learn to use your power at OSDN's High Performance Computing Channel > > http://hpc.devchannel.org/ > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From mailing at bgs-ing.de Thu Dec 12 20:23:48 2002 From: mailing at bgs-ing.de (mailing at bgs-ing.de) Date: Thu, 12 Dec 2002 20:23:48 +0100 Subject: Check HP printer with snmp? Message-ID: Hi, yes, I'm using check_hpjd too, but you can't check other things stored in the MIB database of the printer like, how many sites were printed with the printer. Those things can be checked with snmp, but you need a special command. And I don't know them. Any idea? Thanks! Nicole "Kaplan, Andrew H." 12.12.2002 14:27 To: "'mailing at bgs-ing.de'" cc: Subject: RE: [Nagios-users] Check HP printer with snmp? Hi there, I've been using the check_hpjd command to check HP printers. When I look at the status of the printers on the service detail screen, I normally get information that would be displayed on the printers' LCD display. Is that what want for information about the printers? -----Original Message----- From: mailing at bgs-ing.de [mailto:mailing at bgs-ing.de] Sent: Thursday, December 12, 2002 4:10 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Check HP printer with snmp? Hi, I want to check our HP printers with check_snmp, status, printed sites, and other tings, but I don't know the commands to check the printers. Does anybody know them, or know where I can find them? Thanks! Nicole ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From Billy.Wright at scts-llc.com Thu Dec 12 20:21:16 2002 From: Billy.Wright at scts-llc.com (Billy Wright) Date: Thu, 12 Dec 2002 14:21:16 -0500 Subject: Host Assumed To Be Up + Availability Reports Message-ID: <1100918C693DAD47BA6B4B5C139A8458045837@s01-dc001.hq.scts-llc.com> Hello All, I have a number of hosts that are listed as "Assumed to be up" I read the FAQ already. I believe this is messing up my availability reports because any host that has this has undetermined for 100% of the time. I would like to change it so that Nagios checks these hosts with a ping also so that I can get an availability report that is correct. Can anyone point me in the right direction to get this working ? Thanks, Billy ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From benny at bennyvision.com Thu Dec 12 20:29:32 2002 From: benny at bennyvision.com (C. Bensend) Date: Thu, 12 Dec 2002 13:29:32 -0600 Subject: question In-Reply-To: <1039719852.5306.33.camel@rh80-jsm.telaurus.net>; from jsm@inpro.net on Thu, Dec 12, 2002 at 02:04:10PM -0500 References: <1039714832.5306.16.camel@rh80-jsm.telaurus.net> <20021212183628.GB27340@UnderGrid.net> <1039719852.5306.33.camel@rh80-jsm.telaurus.net> Message-ID: <20021212132932.A5265@bennyvision.com> On Thu, Dec 12, 2002 at 02:04:10PM -0500, Jeff McKeon wrote: > > the plugin actually just needs to monitor the number of files in a > directory. This might also be good for seeing when log files pile up or > anything of that nature. Hey folks, Actually, I wrote my own for just this sort of situation. I use it via check_by_ssh to monitor a mail queue. It is not _good_ code, nor is it technically correct, but it works for me. And you're welcome to it, if you like. Benny #!/usr/bin/sh numqueued=`/bin/ls -1 /var/spool/mqueue/q* | wc -l` # Adjust as necessary # We go CRITICAL at 300 mesages, WARNING at 150 if [ $numqueued -ge 300 ]; then echo "CRITICAL: $numqueued emails in queue." exit 2; fi if [ $numqueued -ge 150 ]; then echo "WARNING: $numqueued emails in queue." exit 1; fi echo "OK: $numqueued emails in queue." exit 0; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "Oh." --- The Green Goblin, in "Spider-Man" ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From mmcclure at pneservices.com Thu Dec 12 20:35:28 2002 From: mmcclure at pneservices.com (Mike McClure) Date: Thu, 12 Dec 2002 13:35:28 -0600 (CST) Subject: question In-Reply-To: <1039719852.5306.33.camel@rh80-jsm.telaurus.net> References: <1039714832.5306.16.camel@rh80-jsm.telaurus.net> <20021212183628.GB27340@UnderGrid.net> <1039719852.5306.33.camel@rh80-jsm.telaurus.net> Message-ID: <2315.192.168.1.9.1039721728.squirrel@xyzzy.homeip.net> How about this for a start? smbclient '\\server\share' -U username -c 'cd directory; dir' | wc -l -- Mike McClure, CCIE # 5125, CISSP # 30232 PNE Services, Inc. - http://www.pneservices.com > Jeremy, > > actually it's a long story but it's a home grown smtp server for use > over satellite connections. Our company provides email services with a > proprietary software over sat. Right now we have our support people > watching the servers 24/7 for problems. On of the key indicators they > watch is the mail queue. If I had a plugin to alert them when the > number of messages that are queued gets too high, then they could get > more sleep. > > the plugin actually just needs to monitor the number of files in a > directory. This might also be good for seeing when log files pile up or > anything of that nature. > > In my particular situation, the files are stored in a samba share on a > linux box until the smtp server makes a connection and then retrieves > them. > ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From jcarro10 at sprintspectrum.com Thu Dec 12 20:38:51 2002 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Thu, 12 Dec 2002 13:38:51 -0600 Subject: default config converted to template config Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E114A@PKDWB03C.ad.sprint.com> Very recently discussed on the list. This falls under "wish list". jc > -----Original Message----- > From: Jeremy T. Bouse [mailto:Jeremy.Bouse at UnderGrid.net] > Sent: Thursday, December 12, 2002 12:39 PM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] default config converted to > template config > > > On this same line of talk has anyone already possibly created a > tool to convert from using text files to using either mysql > or pgsql? Or > is this a feature of the convertcfg tool and I just didn't > see it in my > cursory examination? > > Jeremy > > On Thu, Dec 12, 2002 at 09:50:48AM -0800, Jack Coates wrote: > > On Thu, 2002-12-12 at 07:55, Michael Jewett wrote: > > > Hi, > > > > > > I am currently in the process of upgrading from Netsaint > 0.0.6 (I know I'm a > > > little behind the times, but why change something that > works!) to Nagios > > > 1.0, because I would like some of the features of Nagios. > But I have the > > > old single line entries in my config files. I would like > to convert to the > > > template based config, so I can use all the added > features of this. > > > > > > Is there a tool to do the conversion? Otherwise starting > from scratch might > > > not be a bad idea, so I can make good use of the > inheritance features. > > > > > > Thanks, > > > Michael > > > > > Just finished doing this; there is a tool in the source > distribution, > > contrib directory, can't remember the name right now but > something like > > cvtconfig or convertcfg. It is not made by the makefile, so > you'll need > > to compile it. The usage is ./[program] /your/old/hosts.cfg > > > /the/new/file/you/want/to/spit/out/e.g./services.cfg/or/contac > tgroups.cfg. > > -- > > Jack Coates > > Monkeynoodle: A Scientific Venture... > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by: > > With Great Power, Comes Great Responsibility > > Learn to use your power at OSDN's High Performance Computing Channel > > http://hpc.devchannel.org/ > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From jsm at inpro.net Thu Dec 12 20:44:32 2002 From: jsm at inpro.net (Jeff McKeon) Date: 12 Dec 2002 14:44:32 -0500 Subject: question In-Reply-To: <20021212132932.A5265@bennyvision.com> References: <1039714832.5306.16.camel@rh80-jsm.telaurus.net> <20021212183628.GB27340@UnderGrid.net> <1039719852.5306.33.camel@rh80-jsm.telaurus.net> <20021212132932.A5265@bennyvision.com> Message-ID: <1039722273.14504.42.camel@rh80-jsm.telaurus.net> That looks like it will do the trick!!! Thanks Benny!!!! On Thu, 2002-12-12 at 14:29, C. Bensend wrote: > On Thu, Dec 12, 2002 at 02:04:10PM -0500, Jeff McKeon wrote: > > > > the plugin actually just needs to monitor the number of files in a > > directory. This might also be good for seeing when log files pile up or > > anything of that nature. > > Hey folks, > > Actually, I wrote my own for just this sort of > situation. I use it via check_by_ssh to monitor a mail > queue. > > It is not _good_ code, nor is it technically > correct, but it works for me. And you're welcome to it, > if you like. > > Benny > > > #!/usr/bin/sh > > numqueued=`/bin/ls -1 /var/spool/mqueue/q* | wc -l` > > # Adjust as necessary > # We go CRITICAL at 300 mesages, WARNING at 150 > > if [ $numqueued -ge 300 ]; then > echo "CRITICAL: $numqueued emails in queue." > exit 2; > fi > > if [ $numqueued -ge 150 ]; then > echo "WARNING: $numqueued emails in queue." > exit 1; > fi > > echo "OK: $numqueued emails in queue." > exit 0; > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > "Oh." --- The Green Goblin, in "Spider-Man" > > > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From sghosh at sghosh.org Thu Dec 12 20:41:56 2002 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Thu, 12 Dec 2002 14:41:56 -0500 (EST) Subject: orca with Nagios logs In-Reply-To: References: Message-ID: Some of the plugins - notably all the check_tcp based plugins return perfdata final release of 1.3 should have most of the plugins with some perfdata output. -sg On Tue, 10 Dec 2002, Frater, Greg J wrote: > Have any of the host/service checks had the performance data support added? > According to the current Nagios doc's none had as of the writing of the > documentation. If not is there any kind of time frame for this? > > Looks like the framework is there for this type of functionality but not > quite ready for prime time. Apan is a great start in the right direction, > but needs more plugins and a little more maturity for us. We unfortunately > are in prime time and don't have the programming resources to build on the > current framework. I may be able to make an elementary crack at some of the > performance stuff after we get our monitoring system in production mode. > > I will definitely be watching this area with interest and if my schedule > works out may try to do something with the existing functionality. > > -----Original Message----- > From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] > Sent: Monday, December 09, 2002 3:24 PM > To: Frater, Greg J; 'nagios-users at lists.sourceforge.net' > Subject: RE: [Nagios-users] orca with Nagios logs > > > I've gotten as far as downloading Orca and taking a cursory look at the > docs. I also reconfigured/recompiled nagios with the --with-file-perfdata > option, then defined the xpdfile_service_perfdata_file directive in > nagios.cfg. I found the output to be pretty much what the doctor ordered, > but I've still been giving this some thought. > > I've been wondering that if one configures/compiles nagios with > --with-mysql-xdata, then would the necessary data be there to be able to do > time-series graphing? > > Even as I write this, I'm looking over JpGraph: > > http://www.aditus.nu/jpgraph/ > > and wondering if this, plus PHP, plus the GD library, plus MySQL, aren't > just the ticket for creating reports on-the-fly...? This way, we might be > able to select a host, a timeperiod, and between 1 and N services, and > kicking out graphs which would tell us what we need to know. > > The obvious win is that the data should only be written once (MySQL), thus > keeping disk I/O down to a dull roar. I can't imagine any environment where > there would be more than a handful of browsers set to refresh every 90 > seconds, and thus the impact on the 'image creation' side should be nominal. > > Perhaps someone could scrutinize my idea...? > > jc > > > -----Original Message----- > > From: Frater, Greg J [mailto:gjfrater at bechtel.com] > > Sent: Monday, December 09, 2002 3:25 PM > > To: 'nagios-users at lists.sourceforge.net' > > Subject: [Nagios-users] orca with Nagios logs > > > > > > Hello All, > > > > Has anyone looked into using Orca (http://www.orcaware.com/orca/) to > > generate rrd files for generating performance data graphs of > > Nagios checks? > > The web site says it can read data from arbitrary log files > > and put it into > > an rrd. Just wondering if anyone has tried this with Nagios logs. > > > > Thanks, > > > > Greg Frater > > WTP IT dept. > > 509 371 3537 > > gjfrater at bechtel.com > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > -- ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From jcarro10 at sprintspectrum.com Thu Dec 12 20:47:13 2002 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Thu, 12 Dec 2002 13:47:13 -0600 Subject: question Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F2494@PKDWB03C.ad.sprint.com> I would think that for this particular application, it would be preferable that the plugin be based on 'mailq' and not 'ls'. Beyond that, a little grep here, a little echo there, a little return to top it off, and you should be able to put together a shell script in about 10 mins. Food for thought. jc > -----Original Message----- > From: Jeremy T. Bouse [mailto:Jeremy.Bouse at UnderGrid.net] > Sent: Thursday, December 12, 2002 12:36 PM > To: Nagios List > Subject: Re: [Nagios-users] question > > > That actually sounds like a useful plugin... I may just start > trying to work on one... Course it would need to run locally so would > need to either be called through check_by_ssh or using NRPE... > > One question I have for you would be what MTA are you running > and do you make use of a MSP? I my case I'm using Sendmail > and I do run > both a MTA and MSP so I have 2 queues to monitor on about 6 MX > machines... > > Jeremy > > On Thu, Dec 12, 2002 at 12:40:30PM -0500, Jeff McKeon wrote: > > is it possible with nagios to check a directory on a remote > linux system > > to see how many files are there and report an error if the > number grows > > above a certain level? I'm trying to monitor when a mail > que builds up. > > > > Thanks, > > > > Jeff > > > > > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by: > > With Great Power, Comes Great Responsibility > > Learn to use your power at OSDN's High Performance Computing Channel > > http://hpc.devchannel.org/ > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From sghosh at sghosh.org Thu Dec 12 20:51:26 2002 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Thu, 12 Dec 2002 14:51:26 -0500 (EST) Subject: Cisco check_snmp issue In-Reply-To: <000001c2a059$83fb1940$0bb0a8c0@rbrown> References: <000001c2a059$83fb1940$0bb0a8c0@rbrown> Message-ID: try the 1.3beta2 plugins - major changes in check_snmp. -sg On Tue, 10 Dec 2002, Robin Brown wrote: > Hello all, > > I am trying to use Nagios v1.0 to check the temperature readings on a > Cisco router using the check_snmp plugin from the nagiosplug-1.3-beta1. > I can only get it to work by leaving off the warning and critical > options, of course I can't alert unless I can specify what to alert on. > I get the "Return code 138 is out of bounds" error when run from within > Nagios and a bus error when using them on the command line. > > Interestingly enough, I am using the same plugin to check on the router > power supply status with a warning/critical flag and that operates > normally. Of course the number returned from that check is either a 1 > or 2 for on or off. The temperature checks return 2-digit numbers, I'm > not sure if this is the issue or not. > > Below are the checkcommands.cfg and services.cfg entries: > > checkcommands.cfg: > > # 'check_snmp' generic command definition > define command{ > command_name check_snmp > command_line $USER1$/check_snmp -H $HOSTADDRESS$ -o $ARG1$ -w > $ARG2$ -c $ARG3$ -C $ARG4$ $ARG5$ $ARG6$ $ARG7$ $ARG8$ $ARG9$ > } > > > # Check Cisco stuff > # Working check for power supply status > define command{ > command_name check_cisco > command_line $USER1$/check_snmp -H $HOSTADDRESS$ -o $ARG1$ -w > $ARG2$ -c $ARG3$ -C $ARG4$ > } > # Working for temperature readings without the warning critical options > define command{ > command_name check_cisco_temp > command_line $USER1$/check_snmp -H $HOSTADDRESS$ -o $ARG1$ -C > $ARG2$ > } > > # Not working for temperature readings with the warning critical options > define command{ > command_name check_cisco_temp > command_line $USER1$/check_snmp -H $HOSTADDRESS$ -o $ARG1$ -C > $ARG2$ -w $ARG3$ -c $ARG4$ > } > > > Services.cfg: > > # Working check for power supply status > define service{ > use generic-service > host_name router-1 > service_description PWR2 > contact_groups router-admins > notification_options w,c > check_command > check_cisco!.1.3.6.1.4.1.9.9.13.1.5.1.3.2!2!2!comstring > } > # This only works without the warning and critical flags > # Check Cisco Temperature limits > define service{ > use generic-service > host_name router-1 > service_description Temp-inlet > contact_groups router-admins > notification_options w,c > check_command > check_cisco_temp!.1.3.6.1.4.1.9.9.13.1.3.1.3.1!comstring > } > > # This will not work using the warning and critical flags > # Check Cisco Temperature limits > define service{ > use generic-service > host_name router-1 > service_description Temp-inlet > contact_groups router-admins > notification_options w,c > check_command > check_cisco_temp!.1.3.6.1.4.1.9.9.13.1.3.1.3.1!comstring!35!45 > } > > Thanks and regards, > Robin > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > -- ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From GWCook at mactec.com Thu Dec 12 20:53:14 2002 From: GWCook at mactec.com (Garry Cook) Date: Thu, 12 Dec 2002 12:53:14 -0700 Subject: question Message-ID: Actually, you might want to change 'dir' to 'dir -l' in the command below. When you pipe the output of 'dir' through 'wc -l', it will count newlines. I believe that 'dir' without the '-l' flag will display all of the files on a single line if possible, otherwise it will show as many files as it can fit on a line before wrapping to the next line. 'ls -l' should also work in place of 'dir'. Garry W. Cook, CCNA Network Infrastructure Manager MACTEC, Inc. - http://www.mactec.com/ 303.308.6228 (Office) - 303.881.5157 (Mobile) -----Original Message----- From: Mike McClure [mailto:mmcclure at pneservices.com] Sent: Thursday, December 12, 2002 12:35 PM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] question How about this for a start? smbclient '\\server\share' -U username -c 'cd directory; dir' | wc -l -- Mike McClure, CCIE # 5125, CISSP # 30232 PNE Services, Inc. - http://www.pneservices.com > Jeremy, > > actually it's a long story but it's a home grown smtp server for use > over satellite connections. Our company provides email services with > a proprietary software over sat. Right now we have our support people > watching the servers 24/7 for problems. On of the key indicators they > watch is the mail queue. If I had a plugin to alert them when the > number of messages that are queued gets too high, then they could get > more sleep. > > the plugin actually just needs to monitor the number of files in a > directory. This might also be good for seeing when log files pile up > or anything of that nature. > > In my particular situation, the files are stored in a samba share on a > linux box until the smtp server makes a connection and then retrieves > them. > ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From daniel.geske at yoc.de Thu Dec 12 20:56:03 2002 From: daniel.geske at yoc.de (Daniel Geske) Date: Thu, 12 Dec 2002 20:56:03 +0100 Subject: Nagios Publicity from O'Reilly In-Reply-To: <7B716C4BC69B63428F30B58B1045782C1EFC@europa.beakerware.net> References: <7B716C4BC69B63428F30B58B1045782C1EFC@europa.beakerware.net> Message-ID: <002d01c2a218$903f7d70$a52efea9@Bowman> Right, it definetly is Cheops - not Nagios. Greetings Daniel ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From sghosh at sghosh.org Thu Dec 12 21:08:38 2002 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Thu, 12 Dec 2002 15:08:38 -0500 (EST) Subject: FW: [netsaint] check_snmp errors with solaris 8/sparc - No data recieved from host In-Reply-To: <4DB9CCB36001AC4F901CC0EC4409719901EF1098@exchange01.upocny.upoc-inc.com> References: <4DB9CCB36001AC4F901CC0EC4409719901EF1098@exchange01.upocny.upoc-inc.com> Message-ID: Could you run the command under truss and post the sections where snmp error happens... -sg On Wed, 11 Dec 2002, Michael O'Dea wrote: > > Nope - this didn't get me anywhere. I am baffled by this. I'll have to try the developers list > > > thanks > -m > > -----Original Message----- > From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] > Sent: Wednesday, December 11, 2002 1:57 PM > To: Michael O'Dea; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] FW: [netsaint] check_snmp errors with > solaris 8/sparc - No data recieved from host > > > Try using the -H option (as I suggested in my original e-mail). > > jc > > > -----Original Message----- > > From: Michael O'Dea [mailto:modea at upoc-inc.com] > > Sent: Wednesday, December 11, 2002 12:54 PM > > To: Carroll, Jim P [Contractor]; nagios-users at lists.sourceforge.net > > Subject: RE: [Nagios-users] FW: [netsaint] check_snmp errors with > > solaris 8/sparc - No data recieved from host > > > > > > > > > > eek! > > > > I realized that I pasted a bunch of stuff wrong after I > > emailed it! So much for attention to detail :( > > > > Here is how it *should* look: (and I am still getting the same error) > > > > bash-2.05$ id > > uid=6667(nagios) gid=200(upoc) > > > > here I run the plugin: > > > > bash-2.05$ /opt/nagios/libexec/check_snmp 10.10.6.81 -C > > test123 -o system.sysName.0 > > SNMP problem - No data recieved from host > > CMD: /usr/local/bin/snmpget -m ALL -v 1 -c test123 > > 10.10.6.81:161 system.sysName.0 > > bash-2.05$ > > > > It reports 'snmp problem' and gives me the cmdline, which I run: > > > > bash-2.05$ /usr/local/bin/snmpget -m ALL -v 1 -c test123 > > 10.10.6.81:161 system.sysName.0 > > system.sysName.0 = "message1" > > bash-2.05$ > > > > It works with the actual snmpget... but check_snmp (which > > calls snmpget?) seems to fail. > > > > I get the same error with snmpget from UCD-snmp version: > > 4.1.2 & UCD-snmp version: 4.2.6 on this solaris 8/sparc system. > > > > I also tried the suggested change in utils.c & recompile - it > > had no change. > > > > Thanks for getting back to me > > > > -m > > > > -----Original Message----- > > From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] > > Sent: Wednesday, December 11, 2002 1:35 PM > > To: Michael O'Dea; nagios-users at lists.sourceforge.net > > Subject: RE: [Nagios-users] FW: [netsaint] check_snmp errors with > > solaris 8/sparc - No data recieved from host > > > > > > First, it appears that you're testing the command under root. When in > > doubt, test it under user nagios. (I don't think it would > > make a difference > > in this case, but it's all about eliminating possibilities, right?) > > > > Second, it appears that there are 3 different invocations of > > the command, > > and none of them match. You have (in order shown in your example): > > > > 1) libexec/check_snmp 10.0.0.5 -C test123 -o system.susName.0 > > 2) /usr/local/bin/snmpget -m ALL -v 1 10.10.6.81 1luvUp0C > > system.susName.0 > > 3) /usr/local/bin/snmpget -m ALL -v 1 10.0.0.5 test123 > > system.sysName.0 > > system.sysName.0 = "message1" > > > > As a result, I'm puzzling over the following: > > > > - why do #1 and #2 have different IP addresses? > > - why are the arguments in #2 and #3 different? > > - what object is "system.susName.0"? did you mean "system.sysName.0"? > > > > They're just all... different. See if you can get some > > incantation of the > > check_snmp command to result in kicking out the correct CMD > > (which would > > mirror the invocation of snmpget). > > > > Try something along the lines of (ie, cut/paste): > > > > libexec/check_snmp -H 10.0.0.5 -C test123 -o system.sysName.0 > > > > HTH. > > > > jc > > > > > > > -----Original Message----- > > > From: Michael O'Dea [mailto:modea at upoc-inc.com] > > > Sent: Wednesday, December 11, 2002 11:34 AM > > > To: nagios-users at lists.sourceforge.net > > > Subject: [Nagios-users] FW: [netsaint] check_snmp errors > > with solaris > > > 8/sparc - No data recieved from host > > > > > > > > > > > > Hi. > > > > > > I sent this to the netsaint list yesterday - then found out > > > about nagios, and installed it & then signed up for the list > > > -- and am still having the same problem with the nagios > > > check_snmp plugin. > > > > > > the version is: check_snmp (nagios-plugins 1.3.0-beta2) 1.20 > > > > > > Any ideas? > > > > > > thanks > > > -m > > > -----Original Message----- > > > From: Michael O'Dea > > > Sent: Tuesday, December 10, 2002 12:43 PM > > > To: netsaint-users at lists.sourceforge.net > > > Subject: [netsaint] check_snmp errors with solaris 8/sparc - No data > > > recieved from host > > > > > > > > > > > > Hello, > > > > > > I seem to be having a problem with the check_snmp plugin, I > > > am getting this error: > > > > > > root at host: [/opt/netsaint #] libexec/check_snmp 10.0.0.5 -C > > > test123 -o system.susName.0 > > > SNMP problem - No data recieved from host > > > CMD: /usr/local/bin/snmpget -m ALL -v 1 10.10.6.81 1luvUp0C > > > system.susName.0 > > > > > > so I run the snmpget cmdline and get a answer: > > > > > > root at host: [/opt/netsaint #] /usr/local/bin/snmpget -m ALL -v > > > 1 10.0.0.5 test123 system.sysName.0 > > > system.sysName.0 = "message1" > > > > > > It works fine... > > > > > > So I checked the mailing list archive & google and I came up > > > with this: > > > > > > http://www.geocrawler.com/mail/msg.php3?msg_id=7358656&list=739 > > > http://www.geocrawler.com/archives/3/736/2001/8/0/6342925/ > > > > > > I tried upping TXTBLK to 256 in the utils.c -- no luck. > > > > > > Any suggestions? > > > > > > system info: > > > > > > check_snmp (netsaint-plugins 1.2.9-4) 1.21.2.5 > > > UCD-snmp version: 4.2.6 > > > SunOS host 5.8 Generic_108528-15 sun4u sparc SUNW,Sun-Fire-280R > > > gcc version 3.2 > > > > > > > > > It does work for me on a solaris 7/intel system, same plugin > > > version but ucd-snmp 4.1.2. I tried compiling 4.1.2 on the > > > solaris 8/sparc box and got the same error. > > > > > > Anyone else seen this? > > > > > > thanks > > > > > > ---- > > > Michael A. O'Dea > > > Senior Systems Administrator > > > Upoc, Inc - NYC, NY > > > 212.405.1042 (desk) > > > modea at upoc-inc.com > > > Upoc Handle: fddi > > > > > > "when the going gets weird, the weird turn pro" -HST > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > This sf.net email is sponsored by:ThinkGeek > > > Welcome to geek heaven. > > > http://thinkgeek.com/sf > > > _______________________________________________ > > > Netsaint-users mailing list > > > Netsaint-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/netsaint-users > > > > > > > > > ------------------------------------------------------- > > > This sf.net email is sponsored by: > > > With Great Power, Comes Great Responsibility > > > Learn to use your power at OSDN's High Performance Computing Channel > > > http://hpc.devchannel.org/ > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > -- ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From benny at bennyvision.com Thu Dec 12 21:09:22 2002 From: benny at bennyvision.com (C. Bensend) Date: Thu, 12 Dec 2002 14:09:22 -0600 Subject: question In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB2F2494@PKDWB03C.ad.sprint.com>; from jcarro10@sprintspectrum.com on Thu, Dec 12, 2002 at 01:47:13PM -0600 References: <74D428BDBFD5D04CB54E84499ECA29DB2F2494@PKDWB03C.ad.sprint.com> Message-ID: <20021212140922.C5265@bennyvision.com> On Thu, Dec 12, 2002 at 01:47:13PM -0600, Carroll, Jim P [Contractor] wrote: > I would think that for this particular application, it would be preferable > that the plugin be based on 'mailq' and not 'ls'. I totally agree. However, due to time constraints, the systems we're running on, etc, I opted to take the quick, easy way. The systems we're on are not GNU-ized, so the tools are somewhat limited. It would have taken too long for what I needed. Benny ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "Oh." --- The Green Goblin, in "Spider-Man" ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From syprinth at yahoo.com Thu Dec 12 21:23:11 2002 From: syprinth at yahoo.com (Joseph Turley) Date: Thu, 12 Dec 2002 12:23:11 -0800 (PST) Subject: statusmap popup info Message-ID: <20021212202311.3798.qmail@web11307.mail.yahoo.com> When I put in extended host info to get the icons and the placement how I want, I lose the ability to mouseover the object and have it display that table of information. Anyone know how to fix that? --Joe __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From Stanley.Hopcroft at IPAustralia.Gov.AU Thu Dec 12 21:43:17 2002 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Fri, 13 Dec 2002 07:43:17 +1100 Subject: Status returning to normal ? In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB2F2493@PKDWB03C.ad.sprint.com>; from jcarro10@sprintspectrum.com on Thu, Dec 12, 2002 at 10:31:08AM -0600 References: <74D428BDBFD5D04CB54E84499ECA29DB2F2493@PKDWB03C.ad.sprint.com> Message-ID: <20021213074312.A214@IPAustralia.Gov.AU> Dear Ladies and Gentlemen, An easy way of resetting the results of passive service checks such as SNMP traps is to 1 In the definition of the service choose a command such as check_ping that although it will never be executed normally by Nagios, will always return OK (you may have to adjust the command parameters if the trap generating host is remote) 2 Force a check of that service. Only in that case will Nagios run the service check command (ping). Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From Jeremy.Bouse at UnderGrid.net Thu Dec 12 21:42:22 2002 From: Jeremy.Bouse at UnderGrid.net (Jeremy T. Bouse) Date: Thu, 12 Dec 2002 12:42:22 -0800 Subject: Cisco check_snmp issue In-Reply-To: References: <000001c2a059$83fb1940$0bb0a8c0@rbrown> Message-ID: <20021212204222.GA29404@UnderGrid.net> Yeah using the beta2 CVS version of the plugins I was able to check this no problem using check_snmp... However I did find it depends on the router version you're checking... In my case I had a 7206VXR that had it but a 4700 that did not... The 4700 didn't know of any MIB values for .1.3.6.1.4.1.9.9.13 even as I tried a snmpwalk... Jeremy On Thu, Dec 12, 2002 at 02:51:26PM -0500, Subhendu Ghosh wrote: > try the 1.3beta2 plugins - major changes in check_snmp. > > -sg > > On Tue, 10 Dec 2002, Robin Brown wrote: > > > Hello all, > > > > I am trying to use Nagios v1.0 to check the temperature readings on a > > Cisco router using the check_snmp plugin from the nagiosplug-1.3-beta1. > > I can only get it to work by leaving off the warning and critical > > options, of course I can't alert unless I can specify what to alert on. > > I get the "Return code 138 is out of bounds" error when run from within > > Nagios and a bus error when using them on the command line. > > > > Interestingly enough, I am using the same plugin to check on the router > > power supply status with a warning/critical flag and that operates > > normally. Of course the number returned from that check is either a 1 > > or 2 for on or off. The temperature checks return 2-digit numbers, I'm > > not sure if this is the issue or not. > > > > Below are the checkcommands.cfg and services.cfg entries: > > > > checkcommands.cfg: > > > > # 'check_snmp' generic command definition > > define command{ > > command_name check_snmp > > command_line $USER1$/check_snmp -H $HOSTADDRESS$ -o $ARG1$ -w > > $ARG2$ -c $ARG3$ -C $ARG4$ $ARG5$ $ARG6$ $ARG7$ $ARG8$ $ARG9$ > > } > > > > > > # Check Cisco stuff > > # Working check for power supply status > > define command{ > > command_name check_cisco > > command_line $USER1$/check_snmp -H $HOSTADDRESS$ -o $ARG1$ -w > > $ARG2$ -c $ARG3$ -C $ARG4$ > > } > > # Working for temperature readings without the warning critical options > > define command{ > > command_name check_cisco_temp > > command_line $USER1$/check_snmp -H $HOSTADDRESS$ -o $ARG1$ -C > > $ARG2$ > > } > > > > # Not working for temperature readings with the warning critical options > > define command{ > > command_name check_cisco_temp > > command_line $USER1$/check_snmp -H $HOSTADDRESS$ -o $ARG1$ -C > > $ARG2$ -w $ARG3$ -c $ARG4$ > > } > > > > > > Services.cfg: > > > > # Working check for power supply status > > define service{ > > use generic-service > > host_name router-1 > > service_description PWR2 > > contact_groups router-admins > > notification_options w,c > > check_command > > check_cisco!.1.3.6.1.4.1.9.9.13.1.5.1.3.2!2!2!comstring > > } > > # This only works without the warning and critical flags > > # Check Cisco Temperature limits > > define service{ > > use generic-service > > host_name router-1 > > service_description Temp-inlet > > contact_groups router-admins > > notification_options w,c > > check_command > > check_cisco_temp!.1.3.6.1.4.1.9.9.13.1.3.1.3.1!comstring > > } > > > > # This will not work using the warning and critical flags > > # Check Cisco Temperature limits > > define service{ > > use generic-service > > host_name router-1 > > service_description Temp-inlet > > contact_groups router-admins > > notification_options w,c > > check_command > > check_cisco_temp!.1.3.6.1.4.1.9.9.13.1.3.1.3.1!comstring!35!45 > > } > > > > Thanks and regards, > > Robin > > > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > -- > > > > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From jamie.baddeley at bclnz.net Thu Dec 12 21:43:41 2002 From: jamie.baddeley at bclnz.net (Jamie) Date: Fri, 13 Dec 2002 09:43:41 +1300 Subject: Nagios Publicity from O'Reilly References: <002d01c2a218$903f7d70$a52efea9@Bowman> Message-ID: <006e01c2a21f$2a5cb5c0$fe784fcb@paradise.net.nz> No no, it's not cheops! It's actually a screenshot of saintmap.pl! The infuriating thing about this is I'm currently trying to get this to work for Nagios rather than Netsaint (for which saintmap.pl was designed) Ask O'Reilly to give us the source-code for their (apprarently) Nagios'ed Saintmap.pl and make everyone happy! Either that or ask them whether ?leen Frisch actually reviewed netsaint.... Jamie ----- Original Message ----- From: "Daniel Geske" To: Sent: Friday, December 13, 2002 8:56 AM Subject: RE: [Nagios-users] Nagios Publicity from O'Reilly > Right, it definetly is Cheops - not Nagios. > > Greetings > > Daniel > > > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From greg.nyce at aei.com Thu Dec 12 21:58:27 2002 From: greg.nyce at aei.com (NYCE, GREG) Date: Thu, 12 Dec 2002 13:58:27 -0700 Subject: arcserve traps, snmptrapd, into nagios... missing 1 piece Message-ID: I've followed the instructions in the Nagios documentation http://nagios.sourceforge.net/docs/1_0/int-snmptrap.html in terms of setting up snmptrapd as a traphandler, and it dutifully fires off the event-handler script. However, what I'm wanting to do is somehow move over the trap "message/status" and pipe that into the output. See example traps below... want to move the number of errors/warnings into the Service status. Dec 11 17:48:41 netmon snmptrapd[5143]: 192.168.1.34: Enterprise Specific Trap (arcServetrapMed) Uptime: 0:00:00.00, enterprises.cheyenne.arcServe.arcServeServerName.0 = "BAK01", enterprises.cheyenne.arcServe.arcServetrapdesc.0 = "BAK01: Backup Operation Incomplete..Number of Errors/Warnings: 0/6" Dec 11 20:43:49 netmon snmptrapd[5143]: 192.168.1.34: Enterprise Specific Trap (arcServetrapMed) Uptime: 0:00:00.00, enterprises.cheyenne.arcServe.arcServeServerName.0 = "BAK01", enterprises.cheyenne.arcServe.arcServetrapdesc.0 = "BAK01: Backup Operation Incomplete..Number of Errors/Warnings: 0/2" So, is that just a matter of knowing what variable (varbind?) that the snmptrap would hold that in? Based on teh documentation, it appears that the server name is held in $host... ___________________________ greg.nyce at aei.com 970-407-6948 _______________________________________________________________ This message, including any attachments, may contain information that is confidential and proprietary information of Advanced Energy Industries, Inc. The dissemination, distribution, use or copying of this message or any of its attachments is strictly prohibited without the express written consent of Advanced Energy Industries, Inc. ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From modea at upoc-inc.com Thu Dec 12 22:20:48 2002 From: modea at upoc-inc.com (Michael O'Dea) Date: Thu, 12 Dec 2002 16:20:48 -0500 Subject: FW: [netsaint] check_snmp errors with solaris8/sparc - No data recieved from host Message-ID: <4DB9CCB36001AC4F901CC0EC4409719924979A@exchange01.upocny.upoc-inc.com> Thanks for getting back to me Here is the truss output: 16:08:14 (1) nagios at build: [/ $] truss /opt/nagios/libexec/check_snmp -H 10.10.6.81 -C test123 -o system.sysName.0 execve("/opt/nagios/libexec/check_snmp", 0xFFBEFC34, 0xFFBEFC54) argc = 7 mmap(0x00000000, 8192, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xFF3A0000 resolvepath("/usr/lib/ld.so.1", "/usr/lib/ld.so.1", 1023) = 16 open("/var/ld/ld.config", O_RDONLY) Err#2 ENOENT open("/usr/local/lib/libkvm.so.1", O_RDONLY) Err#2 ENOENT open("/usr/share/lib/libkvm.so.1", O_RDONLY) Err#2 ENOENT open("/lib/libkvm.so.1", O_RDONLY) = 3 fstat(3, 0xFFBEF35C) = 0 mmap(0x00000000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xFF390000 mmap(0x00000000, 90112, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xFF370000 mmap(0xFF384000, 912, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 16384) = 0xFF384000 munmap(0xFF374000, 65536) = 0 memcntl(0xFF370000, 3940, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0 close(3) = 0 open("/usr/local/lib/libelf.so.1", O_RDONLY) Err#2 ENOENT open("/usr/share/lib/libelf.so.1", O_RDONLY) Err#2 ENOENT open("/lib/libelf.so.1", O_RDONLY) = 3 fstat(3, 0xFFBEF35C) = 0 mmap(0xFF390000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF390000 mmap(0x00000000, 196608, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xFF330000 mmap(0xFF35E000, 3616, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 122880) = 0xFF35E000 munmap(0xFF34E000, 65536) = 0 memcntl(0xFF330000, 12056, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0 close(3) = 0 open("/usr/local/lib/libc.so.1", O_RDONLY) Err#2 ENOENT open("/usr/share/lib/libc.so.1", O_RDONLY) Err#2 ENOENT open("/lib/libc.so.1", O_RDONLY) = 3 fstat(3, 0xFFBEF35C) = 0 mmap(0xFF390000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF390000 mmap(0x00000000, 794624, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xFF200000 mmap(0xFF2BA000, 24668, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 696320) = 0xFF2BA000 munmap(0xFF2AA000, 65536) = 0 memcntl(0xFF200000, 113332, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0 close(3) = 0 open("/usr/local/lib/libdl.so.1", O_RDONLY) Err#2 ENOENT open("/usr/share/lib/libdl.so.1", O_RDONLY) Err#2 ENOENT open("/lib/libdl.so.1", O_RDONLY) = 3 fstat(3, 0xFFBEF35C) = 0 mmap(0xFF390000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF390000 close(3) = 0 open("/usr/platform/SUNW,Sun-Fire-280R/lib/libc_psr.so.1", O_RDONLY) = 3 fstat(3, 0xFFBEF1EC) = 0 mmap(0x00000000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xFF320000 close(3) = 0 brk(0x00029F40) = 0 brk(0x0002BF40) = 0 getrlimit(RLIMIT_CORE, 0xFFBEF718) = 0 setrlimit(RLIMIT_CORE, 0xFFBEF718) = 0 pipe() = 3 [4] pipe() = 5 [6] fork() = 1688 close(4) = 0 close(6) = 0 fstat64(3, 0xFFBEF648) = 0 brk(0x0002BF40) = 0 brk(0x0002DF40) = 0 ioctl(3, TCGETA, 0xFFBEF5D4) Err#22 EINVAL read(3, 0x0002BB6C, 5120) = 0 ioctl(1, TCGETA, 0xFFBEE93C) = 0 SNMP problem - No data recieved from host CMD: /usr/local/bin/snmpget -m ALL -v 1 -c test123 10.10.6.81:161 system.sysName.0 write(1, " S N M P p r o b l e m".., 127) = 127 llseek(0, 0, SEEK_CUR) = 134153 llseek(3, 0, SEEK_CUR) Err#29 ESPIPE llseek(5, 0, SEEK_CUR) Err#29 ESPIPE _exit(3) 16:08:24 (2) nagios at build: [/ $] ldd /opt/nagios/libexec/check_snmp libkvm.so.1 => /lib/libkvm.so.1 libelf.so.1 => /lib/libelf.so.1 libc.so.1 => /lib/libc.so.1 libdl.so.1 => /lib/libdl.so.1 /usr/platform/SUNW,Sun-Fire-280R/lib/libc_psr.so.1 16:09:32 (3) nagios at build: [/ $] -----Original Message----- From: Subhendu Ghosh [mailto:sghosh at sghosh.org] Sent: Thursday, December 12, 2002 3:09 PM To: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] FW: [netsaint] check_snmp errors with solaris8/sparc - No data recieved from host Could you run the command under truss and post the sections where snmp error happens... -sg On Wed, 11 Dec 2002, Michael O'Dea wrote: > > Nope - this didn't get me anywhere. I am baffled by this. I'll have to try the developers list > > > thanks > -m > > -----Original Message----- > From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] > Sent: Wednesday, December 11, 2002 1:57 PM > To: Michael O'Dea; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] FW: [netsaint] check_snmp errors with > solaris 8/sparc - No data recieved from host > > > Try using the -H option (as I suggested in my original e-mail). > > jc > > > -----Original Message----- > > From: Michael O'Dea [mailto:modea at upoc-inc.com] > > Sent: Wednesday, December 11, 2002 12:54 PM > > To: Carroll, Jim P [Contractor]; nagios-users at lists.sourceforge.net > > Subject: RE: [Nagios-users] FW: [netsaint] check_snmp errors with > > solaris 8/sparc - No data recieved from host > > > > > > > > > > eek! > > > > I realized that I pasted a bunch of stuff wrong after I > > emailed it! So much for attention to detail :( > > > > Here is how it *should* look: (and I am still getting the same error) > > > > bash-2.05$ id > > uid=6667(nagios) gid=200(upoc) > > > > here I run the plugin: > > > > bash-2.05$ /opt/nagios/libexec/check_snmp 10.10.6.81 -C > > test123 -o system.sysName.0 > > SNMP problem - No data recieved from host > > CMD: /usr/local/bin/snmpget -m ALL -v 1 -c test123 > > 10.10.6.81:161 system.sysName.0 > > bash-2.05$ > > > > It reports 'snmp problem' and gives me the cmdline, which I run: > > > > bash-2.05$ /usr/local/bin/snmpget -m ALL -v 1 -c test123 > > 10.10.6.81:161 system.sysName.0 > > system.sysName.0 = "message1" > > bash-2.05$ > > > > It works with the actual snmpget... but check_snmp (which > > calls snmpget?) seems to fail. > > > > I get the same error with snmpget from UCD-snmp version: > > 4.1.2 & UCD-snmp version: 4.2.6 on this solaris 8/sparc system. > > > > I also tried the suggested change in utils.c & recompile - it > > had no change. > > > > Thanks for getting back to me > > > > -m > > > > -----Original Message----- > > From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] > > Sent: Wednesday, December 11, 2002 1:35 PM > > To: Michael O'Dea; nagios-users at lists.sourceforge.net > > Subject: RE: [Nagios-users] FW: [netsaint] check_snmp errors with > > solaris 8/sparc - No data recieved from host > > > > > > First, it appears that you're testing the command under root. When in > > doubt, test it under user nagios. (I don't think it would > > make a difference > > in this case, but it's all about eliminating possibilities, right?) > > > > Second, it appears that there are 3 different invocations of > > the command, > > and none of them match. You have (in order shown in your example): > > > > 1) libexec/check_snmp 10.0.0.5 -C test123 -o system.susName.0 > > 2) /usr/local/bin/snmpget -m ALL -v 1 10.10.6.81 1luvUp0C > > system.susName.0 > > 3) /usr/local/bin/snmpget -m ALL -v 1 10.0.0.5 test123 > > system.sysName.0 > > system.sysName.0 = "message1" > > > > As a result, I'm puzzling over the following: > > > > - why do #1 and #2 have different IP addresses? > > - why are the arguments in #2 and #3 different? > > - what object is "system.susName.0"? did you mean "system.sysName.0"? > > > > They're just all... different. See if you can get some > > incantation of the > > check_snmp command to result in kicking out the correct CMD > > (which would > > mirror the invocation of snmpget). > > > > Try something along the lines of (ie, cut/paste): > > > > libexec/check_snmp -H 10.0.0.5 -C test123 -o system.sysName.0 > > > > HTH. > > > > jc > > > > > > > -----Original Message----- > > > From: Michael O'Dea [mailto:modea at upoc-inc.com] > > > Sent: Wednesday, December 11, 2002 11:34 AM > > > To: nagios-users at lists.sourceforge.net > > > Subject: [Nagios-users] FW: [netsaint] check_snmp errors > > with solaris > > > 8/sparc - No data recieved from host > > > > > > > > > > > > Hi. > > > > > > I sent this to the netsaint list yesterday - then found out > > > about nagios, and installed it & then signed up for the list > > > -- and am still having the same problem with the nagios > > > check_snmp plugin. > > > > > > the version is: check_snmp (nagios-plugins 1.3.0-beta2) 1.20 > > > > > > Any ideas? > > > > > > thanks > > > -m > > > -----Original Message----- > > > From: Michael O'Dea > > > Sent: Tuesday, December 10, 2002 12:43 PM > > > To: netsaint-users at lists.sourceforge.net > > > Subject: [netsaint] check_snmp errors with solaris 8/sparc - No data > > > recieved from host > > > > > > > > > > > > Hello, > > > > > > I seem to be having a problem with the check_snmp plugin, I > > > am getting this error: > > > > > > root at host: [/opt/netsaint #] libexec/check_snmp 10.0.0.5 -C > > > test123 -o system.susName.0 > > > SNMP problem - No data recieved from host > > > CMD: /usr/local/bin/snmpget -m ALL -v 1 10.10.6.81 1luvUp0C > > > system.susName.0 > > > > > > so I run the snmpget cmdline and get a answer: > > > > > > root at host: [/opt/netsaint #] /usr/local/bin/snmpget -m ALL -v > > > 1 10.0.0.5 test123 system.sysName.0 > > > system.sysName.0 = "message1" > > > > > > It works fine... > > > > > > So I checked the mailing list archive & google and I came up > > > with this: > > > > > > http://www.geocrawler.com/mail/msg.php3?msg_id=7358656&list=739 > > > http://www.geocrawler.com/archives/3/736/2001/8/0/6342925/ > > > > > > I tried upping TXTBLK to 256 in the utils.c -- no luck. > > > > > > Any suggestions? > > > > > > system info: > > > > > > check_snmp (netsaint-plugins 1.2.9-4) 1.21.2.5 > > > UCD-snmp version: 4.2.6 > > > SunOS host 5.8 Generic_108528-15 sun4u sparc SUNW,Sun-Fire-280R > > > gcc version 3.2 > > > > > > > > > It does work for me on a solaris 7/intel system, same plugin > > > version but ucd-snmp 4.1.2. I tried compiling 4.1.2 on the > > > solaris 8/sparc box and got the same error. > > > > > > Anyone else seen this? > > > > > > thanks > > > > > > ---- > > > Michael A. O'Dea > > > Senior Systems Administrator > > > Upoc, Inc - NYC, NY > > > 212.405.1042 (desk) > > > modea at upoc-inc.com > > > Upoc Handle: fddi > > > > > > "when the going gets weird, the weird turn pro" -HST > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > This sf.net email is sponsored by:ThinkGeek > > > Welcome to geek heaven. > > > http://thinkgeek.com/sf > > > _______________________________________________ > > > Netsaint-users mailing list > > > Netsaint-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/netsaint-users > > > > > > > > > ------------------------------------------------------- > > > This sf.net email is sponsored by: > > > With Great Power, Comes Great Responsibility > > > Learn to use your power at OSDN's High Performance Computing Channel > > > http://hpc.devchannel.org/ > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > -- ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From daniel.geske at yoc.de Thu Dec 12 22:32:34 2002 From: daniel.geske at yoc.de (Daniel Geske) Date: Thu, 12 Dec 2002 22:32:34 +0100 Subject: Nagios Publicity from O'Reilly In-Reply-To: <006e01c2a21f$2a5cb5c0$fe784fcb@paradise.net.nz> References: <006e01c2a21f$2a5cb5c0$fe784fcb@paradise.net.nz> Message-ID: <000001c2a226$0ed40c70$a52efea9@Bowman> Dear Jamie: Interesting! Thanks for sharing! Greetings Daniel > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Jamie > Sent: Thursday, December 12, 2002 9:44 PM > To: Daniel Geske; nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Nagios Publicity from O'Reilly > > > No no, it's not cheops! > > It's actually a screenshot of saintmap.pl! > > The infuriating thing about this is I'm currently trying to > get this to work for Nagios rather than Netsaint (for which > saintmap.pl was designed) > > Ask O'Reilly to give us the source-code for their > (apprarently) Nagios'ed Saintmap.pl and make everyone happy! > > Either that or ask them whether ?leen Frisch actually > reviewed netsaint.... > > Jamie > > > ----- Original Message ----- > From: "Daniel Geske" > To: > Sent: Friday, December 13, 2002 8:56 AM > Subject: RE: [Nagios-users] Nagios Publicity from O'Reilly > > > > Right, it definetly is Cheops - not Nagios. > > > > Greetings > > > > Daniel > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by: > > With Great Power, Comes Great Responsibility > > Learn to use your power at OSDN's High Performance > Computing Channel > > http://hpc.devchannel.org/ > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing > Channel http://hpc.devchannel.org/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From GPotter at MarathonOil.com Thu Dec 12 23:10:49 2002 From: GPotter at MarathonOil.com (Potter, G M (Greg)) Date: Thu, 12 Dec 2002 16:10:49 -0600 Subject: Question about host dependency. Message-ID: All of my workstations and servers are on the same subnet, but connect to different switches. Would you use the same technique (with switches as parents) to configure Nagios not to notify if hosts connected to a different switch were unavailable. We have lost 2 supervisor cards in our Cisco 4006 switches this year. Just wondering. Greg M. Potter mailto:gpotter at marathonoil.com Non Scio, id est in Latina! ~~|\ / | \ ~^~^~^~ / | \ ~^~ Greg Potter~^~^~^~^ ~^~^~ / 9255 ) ~^ Oklahoma City, OK^~^ ~^~^_/____|____) ^~^~^~^~^~^~^~^~^~^~^~^ ~^~^ \_________/ ^~^~^~^~^~^~^~^~^~^~^ ~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~ ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From eric at spins.com Thu Dec 12 23:23:56 2002 From: eric at spins.com (Eric Hill) Date: Thu, 12 Dec 2002 14:23:56 -0800 Subject: basic checks failing Message-ID: Hi, the archive search at sourceforge is either down or choking, so here I am. I'm just getting started in Nagios and I have two hosts set up, one with ping and one with ping and http checks. The check_* commands are failing when Nagios is trying to do its checks, but if I run the check_* command as root (and with `su nagios`) it executes no problem and returns OK. I thought perhaps it was a problem with $USER1 in resource.cfg, but I've double-rechecked that without change. Is there anything else I could be missing? -- Eric Hill we are all mad eric at spins.com the world is mad (415) 957-4420 it's been so for a long time ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From Stanley.Hopcroft at IPAustralia.Gov.AU Thu Dec 12 23:46:22 2002 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Fri, 13 Dec 2002 09:46:22 +1100 Subject: Question about host dependency. In-Reply-To: ; from GPotter@MarathonOil.com on Thu, Dec 12, 2002 at 04:10:49PM -0600 References: Message-ID: <20021213094619.B36798@IPAustralia.Gov.AU> Dear Sir, On Thu, Dec 12, 2002 at 04:10:49PM -0600, Potter, G M (Greg) wrote: > All of my workstations and servers are on the same subnet, > but connect to different switches. Would you use the same > technique (with switches as parents) to configure Nagios > not to notify if hosts connected to a different switch were > unavailable. We have lost 2 supervisor cards in our Cisco > 4006 switches this year. Just wondering. > My employer does. Only trick is recognizing that the switch has 'shuffled off this mortal coil'. Our Cat switches (5000, 29xx) ocassionally lose the ability to respond to ICMP - perhaps because the agent has dies - and while they bridge Ok, they are not easily detectable as alive. The lists SNMP authorities may have better ideas about this. If however, you lose power to your switches, its a great way of avoiding Notifications from Hell. > Greg M. Potter > mailto:gpotter at marathonoil.com > > Non Scio, id est in Latina! > > ~~|\ > / | \ > ~^~^~^~ / | \ ~^~ Greg Potter~^~^~^~^ > ~^~^~ / 9255 ) ~^ Oklahoma City, OK^~^ > ~^~^_/____|____) ^~^~^~^~^~^~^~^~^~^~^~^ > ~^~^ \_________/ ^~^~^~^~^~^~^~^~^~^~^ > ~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~ > Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From jcarro10 at sprintspectrum.com Thu Dec 12 23:38:15 2002 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Thu, 12 Dec 2002 16:38:15 -0600 Subject: Question about host dependency. Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F2498@PKDWB03C.ad.sprint.com> Yes, if the switch will respond to some sort of network check. Typically the network devices we're interested in use TCP/IP, so something as basic as check_ping would suffice. If the network device isn't itself addressable, then you might have to do some pondering if out-of-band checking is an option (eg, an expect script wrapped around tip). Food for thought. jc > -----Original Message----- > From: Potter, G M (Greg) [mailto:GPotter at MarathonOil.com] > Sent: Thursday, December 12, 2002 4:11 PM > To: Nagios-users (E-mail) > Subject: [Nagios-users] Question about host dependency. > > > All of my workstations and servers are on the same subnet, > but connect to different switches. Would you use the same > technique (with switches as parents) to configure Nagios > not to notify if hosts connected to a different switch were > unavailable. We have lost 2 supervisor cards in our Cisco > 4006 switches this year. Just wondering. > > Greg M. Potter > mailto:gpotter at marathonoil.com > > Non Scio, id est in Latina! > > ~~|\ > / | \ > ~^~^~^~ / | \ ~^~ Greg Potter~^~^~^~^ > ~^~^~ / 9255 ) ~^ Oklahoma City, OK^~^ > ~^~^_/____|____) ^~^~^~^~^~^~^~^~^~^~^~^ > ~^~^ \_________/ ^~^~^~^~^~^~^~^~^~^~^ > ~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~ > > > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From Stanley.Hopcroft at IPAustralia.Gov.AU Fri Dec 13 00:39:50 2002 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Fri, 13 Dec 2002 10:39:50 +1100 Subject: Compile problems with version 1.0 In-Reply-To: <002801c2a207$56681e10$87a9ca83@unb.ca>; from mgj@unb.ca on Thu, Dec 12, 2002 at 01:53:11PM -0400 References: <002801c2a207$56681e10$87a9ca83@unb.ca> Message-ID: <20021213103947.D36798@IPAustralia.Gov.AU> Dear Sir, What platform are you running on ? Please try and compile the plugins. They also require the signal named SIGALRM. If they build, it means that you have SIGALRM but the configure script in Nagios is not finding it. SIGALRM should be a part of every POSIX (Linux, Sol, FreeBSD,..) system. On this systemm (FreeBSD 4.7-RELEASE), SIGALRM is in /usr/include/sys/. (pc09011> grep -i -2 SIGALR /usr/include/sys/signal.h #endif #define SIGPIPE 13 /* write on a pipe with no one to read it */ #define SIGALRM 14 /* alarm clock */ #define SIGTERM 15 /* software termination signal from kill */ #ifndef _POSIX_SOURCE ). Perhaps it might be necessary for you to find where SIGALRM is (eg grep -l /usr/include ALRM) and add the necessary path with an -I switch to the Makefile CFLAGS. (CFLAGS=-g -O2 -I/usr/local/include -I/usr/libdata/perl/5.00503/mach/CORE -DHAVE_CONFIG_H). In any case, it sounds either like a Nagios portability problem or a problem with your system. Does Nag build on other systems you have access to. If this works tsitc> perl -e '$SIG{ALRM} = sub { die "Ring Ring" }; eval { alarm(1); while (1) {} }; print "Perl is alarmed\n" if $@ =~ /Ring/' Perl is alarmed tsitc> then SIGALRM is definitely on your system and Perl at least can find it. HTH, Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From tagreen at mhsnetworks.net Fri Dec 13 00:51:26 2002 From: tagreen at mhsnetworks.net (Todd A. Green) Date: 12 Dec 2002 17:51:26 -0600 Subject: NRPEP Update Message-ID: <1039737086.1761.271.camel@desktop> If anyone is interested... NRPEP Nagios/Netsaint Remote Plugin Execution/Perl is a PERL implementation of remote execution of Nagios/Netsaint plugins similar to NRPE. The original version (<0.3) was written by Adam Jacob ~1999. In 2000 I started making minor buglet fixes and in early 2001 Adam agreed to let me take over the project. It had stalled along at 0.2a (bugfixes) until I started my new Managed Services company at which point I was able to continue my work with Netsaint and then Nagios. The first change I made was to remove Crypt::TripleDES as the cipher after running into some issues with it. The current version 0.3.4 uses the PERL Mcrypt interface which will allow for much greater flexibility in the end users choice of encryption techniques. Currently I've coded to Blowfish, but will move the encryption choice to the configuration files. I've also reworked the internal logic to add verification of remote end (are we really talking to NRPEP?), shared secret comparison (Ack our secrets don't match!), and a little better check command error handling. Last thing I added (today) was a default check_nrpep command 'check_nrpep'. This allows you to verify the remote NRPEP server is available for further queries. I plan to put this all back together into a tarball and start (yet another) SourceForge project for it, but thought I'd check the interest here first. Let me know if your interested... Thanks -- Todd A. Green Managed Hosting Soutions, Inc. ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From jcarro10 at sprintspectrum.com Fri Dec 13 02:30:12 2002 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Thu, 12 Dec 2002 19:30:12 -0600 Subject: Apache authentication and Nagios Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F249B@PKDWB03C.ad.sprint.com> Stanley Hopcroft wrote: > mod_apache + Apache::AuthenSMB + Authen::SMB (NT domain > authentication) works beautifully. > > All modules from CPAN. I tried my hand at getting this to work. Installed Apache::AuthenSMB and Authen:SMB without any grief. I couldn't find a mod_apache on CPAN. When I change the .htaccess as per the man page, it fails. The Apache logfile reports: [Thu Dec 12 18:53:01 2002] [error] Can't locate object method "get_basic_auth_pw" via package "Apache" (perhaps you forgot to load "Apache"?) at /usr/lib/perl5/site_perl/5.6.1/Apache/AuthenSmb.pm line 12. I stopped/started Apache, just in case that was the problem. No joy. I checked with CPAN to install Apache, and it says that "Apache is up to date." Suggestions? jc ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From Stanley.Hopcroft at IPAustralia.Gov.AU Fri Dec 13 03:53:30 2002 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Fri, 13 Dec 2002 13:53:30 +1100 Subject: Apache authentication and Nagios In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB2F249B@PKDWB03C.ad.sprint.com>; from jcarro10@sprintspectrum.com on Thu, Dec 12, 2002 at 07:30:12PM -0600 References: <74D428BDBFD5D04CB54E84499ECA29DB2F249B@PKDWB03C.ad.sprint.com> Message-ID: <20021213135329.J36798@IPAustralia.Gov.AU> Dear Sir, I am writing to thank you for your letter and apologise for the stupidity of mine. On Thu, Dec 12, 2002 at 07:30:12PM -0600, Carroll, Jim P [Contractor] wrote: > Stanley Hopcroft wrote: > > mod_apache + Apache::AuthenSMB + Authen::SMB (NT domain > > authentication) works beautifully. There is no such thing as mod_apache; I meant mod_perl, the Apache with a Perl intrepeter (like Nagios can have) built into it that creates a very extensible frame work for writing Apache modules (such as Apache::AuthSMB) in Perl. > > > > All modules from CPAN. > > I tried my hand at getting this to work. Installed Apache::AuthenSMB and > Authen:SMB without any grief. I couldn't find a mod_apache on CPAN. > mod_perl is available from www.apache.org (mod_perl link I think). It is a substantial set of patches and Perl to rebuild a Perlified apache from the Apache source (so unless you get a prebuilt apache + mod_perl, you need the Apache source as well). Here is what Apache looks like with it mod_perl :- tsitc> /usr/local/apache/bin/httpd -l Compiled-in modules: http_core.c mod_so.c mod_perl.c suexec: disabled; invalid wrapper /usr/local/apache/bin/suexec tsitc> You can also get prebuilt apache + mod_perl (eg FreeBSD packages, must be RPMs etc). > When I change the .htaccess as per the man page, it fails. The Apache > logfile reports: > > [Thu Dec 12 18:53:01 2002] [error] Can't locate object method > "get_basic_auth_pw" via package "Apache" (perhaps you forgot to load > "Apache"?) at /usr/lib/perl5/site_perl/5.6.1/Apache/AuthenSmb.pm line 12. > > I stopped/started Apache, just in case that was the problem. No joy. I > checked with CPAN to install Apache, and it says that "Apache is up to > date." > > Suggestions? > I beg your pardon. However, it does work very nicely. Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From nagios at nagios.org Fri Dec 13 05:38:53 2002 From: nagios at nagios.org (Ethan Galstad) Date: Thu, 12 Dec 2002 22:38:53 -0600 Subject: Alert Histogram options In-Reply-To: References: Message-ID: <3DF90FFD.12759.138C4EB@localhost> If you have the log_initial_states directive enable in the main config file, select "Yes" for the initial states logged option. This causes the CGI to ignore initial alerts for some services are program (re)starts. Ignore repeated states is good if you want to have the CGI ignore back-to-back alerts that are of the same state. If you have sequential alerts for a service that are of the same state (i.e. CRITICAL) and they get logged, they could throw the numbers off in the CGI. I guess it depends on what type of service it is that you're checking. On 12 Dec 2002 at 8:18, Drew Adams wrote: > Trying once more, as I got no response. > Does anyone know what these options are for? > > Thanks, > > Drew > > -----Original Message----- > From: Drew Adams > Sent: Tuesday, December 10, 2002 5:10 PM > To: nagios-users at lists.sourceforge.net > Subject: Alert Histogram options > > > Would someone please describe the following options for creating an Alert Histogram report. I'd like to know what they mean/do. > > - Initial States Logged > - Ignore Repeated States > > Thanks, > > Drew > > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > Ethan Galstad, Nagios Developer --- Email: nagios at nagios.org Website: http://www.nagios.org ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From nagios at nagios.org Fri Dec 13 05:38:53 2002 From: nagios at nagios.org (Ethan Galstad) Date: Thu, 12 Dec 2002 22:38:53 -0600 Subject: Filter HTML on list!? In-Reply-To: References: Message-ID: <3DF90FFD.21922.138C498@localhost> I don't believe that Mailman (the list software used at SourceForge) has an option to do this yet. It would be nice feature request to either auto-strip HTML messages or block them entirely. On 11 Dec 2002 at 10:17, ABostick at mydoconline.com wrote: > Is there anyway we can put a filter on the one day summaries to remove all > the HTML nonsense I see everyday. It makes it very hard for me to read the > messages which in turn makes it hard for me to help anyone on the list. > > It also makes the list much larger than it could be! > > Any list moderators have a comment on this? > > Thanks, > Aaron Bostick > > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > Ethan Galstad, Nagios Developer --- Email: nagios at nagios.org Website: http://www.nagios.org ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From mmcclure at pneservices.com Fri Dec 13 07:05:15 2002 From: mmcclure at pneservices.com (Mike McClure) Date: Fri, 13 Dec 2002 00:05:15 -0600 (CST) Subject: Apache authentication and Nagios In-Reply-To: <20021213135329.J36798@IPAustralia.Gov.AU> References: <74D428BDBFD5D04CB54E84499ECA29DB2F249B@PKDWB03C.ad.sprint.com> <20021213135329.J36798@IPAustralia.Gov.AU> Message-ID: <1616.192.168.1.9.1039759515.squirrel@xyzzy.homeip.net> Hi Stanley, > > mod_perl is available from www.apache.org (mod_perl link I think). It is > a substantial set of patches and Perl to rebuild a Perlified apache from > the Apache source (so unless you get a prebuilt apache + mod_perl, you > need the Apache source as well). > > Here is what Apache looks like with it mod_perl :- > > tsitc> /usr/local/apache/bin/httpd -l > Compiled-in modules: > http_core.c > mod_so.c > mod_perl.c > suexec: disabled; invalid wrapper /usr/local/apache/bin/suexec > tsitc> > > You can also get prebuilt apache + mod_perl (eg FreeBSD packages, must > be RPMs etc). > Actually, an easier way is to build mod_perl as a DSO (Dynamic Shared Object) and load it as a module at run-time. That way, you don't have to rebuild Apache, and you shouldn't even need the source code. You might need to add something like this to httpd.conf: LoadModule perl_module /usr/lib/apache/modules/mod_perl.so - Mike -- Mike McClure, CCIE # 5125, CISSP # 30232 PNE Services, Inc. - http://www.pneservices.com mmcclure at pneservices.com mobile: 913-636-5590 ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From Stanley.Hopcroft at IPAustralia.Gov.AU Fri Dec 13 07:25:29 2002 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Fri, 13 Dec 2002 17:25:29 +1100 Subject: Apache authentication and Nagios In-Reply-To: <1616.192.168.1.9.1039759515.squirrel@xyzzy.homeip.net>; from mmcclure@pneservices.com on Fri, Dec 13, 2002 at 12:05:15AM -0600 References: <74D428BDBFD5D04CB54E84499ECA29DB2F249B@PKDWB03C.ad.sprint.com> <20021213135329.J36798@IPAustralia.Gov.AU> <1616.192.168.1.9.1039759515.squirrel@xyzzy.homeip.net> Message-ID: <20021213172528.S36798@IPAustralia.Gov.AU> Dear Sir, I am not sure I should be saying anything more about this but, .. On Fri, Dec 13, 2002 at 12:05:15AM -0600, Mike McClure wrote: > Hi Stanley, > > > > > mod_perl is available from www.apache.org (mod_perl link I think). It is > > a substantial set of patches and Perl to rebuild a Perlified apache from > > the Apache source (so unless you get a prebuilt apache + mod_perl, you > > need the Apache source as well). > > > > Here is what Apache looks like with it mod_perl :- > > > > tsitc> /usr/local/apache/bin/httpd -l > > Compiled-in modules: > > http_core.c > > mod_so.c > > mod_perl.c > > suexec: disabled; invalid wrapper /usr/local/apache/bin/suexec > > tsitc> > > > > You can also get prebuilt apache + mod_perl (eg FreeBSD packages, must > > be RPMs etc). > > > > Actually, an easier way is to build mod_perl as a DSO (Dynamic Shared Object) and > load it as a module at run-time. That way, you don't have to rebuild Apache, and > you shouldn't even need the apache source code. > Good point. > You might need to add something like this to httpd.conf: > > LoadModule perl_module /usr/lib/apache/modules/mod_perl.so > I understand this is a possibility but I have no personal experience of doing so (apart from building Apache with DSO support so that modules can be activated as required). It may be necessary that the prebuilt apache have DSO support (and IIRC correctly this is an apache build option). > - Mike > > -- > Mike McClure, CCIE # 5125, CISSP # 30232 > PNE Services, Inc. - http://www.pneservices.com > mmcclure at pneservices.com > mobile: 913-636-5590 > Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From Stanley.Hopcroft at IPAustralia.Gov.AU Fri Dec 13 07:43:08 2002 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Fri, 13 Dec 2002 17:43:08 +1100 Subject: arcserve traps, snmptrapd, into nagios... missing 1 piece In-Reply-To: ; from greg.nyce@aei.com on Thu, Dec 12, 2002 at 01:58:27PM -0700 References: Message-ID: <20021213174305.T36798@IPAustralia.Gov.AU> Dear Sir, I am writing to thank you for your letter and say, On Thu, Dec 12, 2002 at 01:58:27PM -0700, NYCE, GREG wrote: > I've followed the instructions in the Nagios documentation > http://nagios.sourceforge.net/docs/1_0/int-snmptrap.html in terms of setting > up snmptrapd as a traphandler, and it dutifully fires off the event-handler > script. However, what I'm wanting to do is somehow move over the trap > "message/status" and pipe that into the output. See example traps below... > want to move the number of errors/warnings into the Service status. > > Dec 11 17:48:41 netmon snmptrapd[5143]: 192.168.1.34: Enterprise Specific > Trap (arcServetrapMed) Uptime: 0:00:00.00, > enterprises.cheyenne.arcServe.arcServeServerName.0 = "BAK01", > enterprises.cheyenne.arcServe.arcServetrapdesc.0 = "BAK01: Backup Operation > Incomplete..Number of Errors/Warnings: 0/6" > > Dec 11 20:43:49 netmon snmptrapd[5143]: 192.168.1.34: Enterprise Specific > Trap (arcServetrapMed) Uptime: 0:00:00.00, > enterprises.cheyenne.arcServe.arcServeServerName.0 = "BAK01", > enterprises.cheyenne.arcServe.arcServetrapdesc.0 = "BAK01: Backup Operation > Incomplete..Number of Errors/Warnings: 0/2" > > So, is that just a matter of knowing what variable (varbind?) that the > snmptrap would hold that in? Yes. Here is part of an example that does what I think you are wanting to do for Frame Relay traps # Arguments: # $1 = trap type # First line passed from snmptrapd is FQDN of host that sent the trap read host # Second line passed from snmptrapd is ip address of host that sent the trap read ip # Subsequent lines passed from snmptrapd contain the varbinds, one pair of OIDs and values perl line # # transmission.frame-relay.frCircuitTable.frCircuitEntry.frCircuitIfIndex.15.21 15 # transmission.frame-relay.frCircuitTable.frCircuitEntry.frCircuitDlci.15.21 21 # transmission.frame-relay.frCircuitTable.frCircuitEntry.frCircuitState.15.21 inactive(3) Dlci=9999 CircuitState='unknown' while read oid val do if [ `expr "$oid" : '.*Dlci'` -gt 0 ] then Dlci=$val elif [ `expr "$oid" : '.*CircuitState'` -gt 0 ] then CircuitState=$val fi done # Given a FQDN, get the short name of the host as it is setup in NetSaint hostname="unknown" case $host in so-*) hostname=`expr "$host" : '\(so-...\)'` # traps could come from so-ade-isdn, so-ade-frame etc. ;; localhost) # FIXME. # Testing only. hostname="so-cbr" ;; *) exit 0 esac service_desc="Frame relay PVC state change" # Get severity level (OK, WARNING, UNKNOWN, or CRITICAL) and plugin output based on trape type state_OK=0 state_UNKNOWN=3 state_WARNING=1 state_CRITICAL=2 echocmd="/bin/echo" CommandFile="/usr/local/nagios/var/rw/nagios.cmd" state=state_UNKNOWN output="No output" case $1 in # frDLCIStatusChange (a frame relay PVC has changed state) 1) if [ `expr "$CircuitState" : 'active'` -gt 0 ] then output="Ok. Frame relay PVC $Dlci has changed state to $CircuitState." state=$state_OK elif [ `expr "$CircuitState" : 'inactive'` -gt 0 ] then output="Failed. Frame relay PVC $Dlci has changed state to $CircuitState." state=$state_CRITICAL else output="Uknown. Frame relay PVC $Dlci has changed state to $CircuitState." state=$state_UNKNOWN fi ;; # frDLCIStatusChange reset (Bogon OID. This bogus trap lets us reset a Fault state.) 1111) output="Ok. Frame relay PVC $Dlci has changed state to $CircuitState." state=$state_OK ;; esac So the principle is following the Net-SNMP docco your trap handler is called with the number of the trap and then fed on stdin 1 FQDN of trap reporting host 2 IP of " " 3 'VarBinds' on successive lines, consisting of space separated OIDName and OIDVals. Your script must read the 'varbinds' and work out what they mean, assigning them as required to local storage (for inclusion in the check ouput). You know what the VarBinds are from the trap definition of the MIB you are handling. This one is looking for OIDs containing 'Dlci' and 'CircuitState'. and saves them in $Dlci and $CircuitState (the script would be better written in Perl from the intelligibility/maintainability perspective, but I stupidly thought the shell would run faster). > Based on teh > documentation, it appears that > the server name is held in $host... > Yep. > ___________________________ > > greg.nyce at aei.com > 970-407-6948 > This is pretty much a pain to do and maintain. You may care to check out Alex Brugers SNMPTT (SNMP Trap Translator which does it much more cleanly and easily). I am going to once I get free of dealing with outsourced provider problems. Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From frank.schafer at setuza.cz Fri Dec 13 09:21:31 2002 From: frank.schafer at setuza.cz (Frank Schafer) Date: 13 Dec 2002 09:21:31 +0100 Subject: Building Apache for NAGIOS Message-ID: <1039767691.245.4.camel@ADMIN> Hi there, We've decided to build a second apache server beside our main webserver on the host running NAGIOS. Are there any modules, NAGIOS will need and thus I'll have to build/enable during the apache build? Thanks in advance for any hint Frank ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From marcus.nilsson at cannondale.com Fri Dec 13 10:24:45 2002 From: marcus.nilsson at cannondale.com (Marcus Nilsson) Date: Fri, 13 Dec 2002 10:24:45 +0100 Subject: Building Apache for NAGIOS References: <1039767691.245.4.camel@ADMIN> Message-ID: <3DF9A75D.5080704@cannondale.com> No, a standard build will be ok. Marcus Frank Schafer wrote: > Hi there, > > We've decided to build a second apache server beside our main webserver > on the host running NAGIOS. Are there any modules, NAGIOS will need and > thus I'll have to build/enable during the apache build? > > Thanks in advance for any hint > Frank > > > > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From tdeblend at gcc.dhl.com Fri Dec 13 09:20:12 2002 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Fri, 13 Dec 2002 09:20:12 +0100 Subject: Host Assumed To Be Up + Availability Reports References: <1100918C693DAD47BA6B4B5C139A8458045837@s01-dc001.hq.scts-llc.com> Message-ID: <3DF9983C.C4FA1B18@gcc.dhl.com> change this: log_initial_states=1 in nagios.cmd (one for the FAQ's?) Billy Wright wrote: > > Hello All, > > I have a number of hosts that are listed as "Assumed to be up" I read the FAQ already. I believe this is messing up my availability reports because any host that has this has undetermined for 100% of the time. I would like to change it so that Nagios checks these hosts with a ping also so that I can get an availability report that is correct. Can anyone point me in the right direction to get this working ? > > Thanks, > > Billy > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users -- Tom De Blende Senior NT Infrastructure Analyst (Frango) DHL Global Coordination Center - IT Department Tel +32 2 713 42 62 Fax +32 2 713 52 00 ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From pete.dewell at volteurope.com Fri Dec 13 10:32:11 2002 From: pete.dewell at volteurope.com (Pete Dewell) Date: Fri, 13 Dec 2002 09:32:11 +0000 Subject: Host Assumed To Be Up + Availability Reports References: <1100918C693DAD47BA6B4B5C139A8458045837@s01-dc001.hq.scts-llc.com> Message-ID: You could also change the "First assumed state" dropdown in the report to be "UP". That way the host is assumed to be up to start with, and the availability report works better. Don't forget, the host is only checked on a service state change (or so I understand from the docs) so if the services are OK, you won't have any data on the host state until the service state goes to warning or critical. Pete Dewell Tom DE BLENDE wrote: > > change this: > > log_initial_states=1 > > in nagios.cmd > > (one for the FAQ's?) > > Billy Wright wrote: > > > > Hello All, > > > > I have a number of hosts that are listed as "Assumed to be up" I read the FAQ already. I believe this is messing up my availability reports because any host that has this has undetermined for 100% of the time. I would like to change it so that Nagios checks these hosts with a ping also so that I can get an availability report that is correct. Can anyone point me in the right direction to get this working ? > > > > Thanks, > > > > Billy > > > > ------------------------------------------------------- > > This sf.net email is sponsored by: > > With Great Power, Comes Great Responsibility > > Learn to use your power at OSDN's High Performance Computing Channel > > http://hpc.devchannel.org/ > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > -- > Tom De Blende > Senior NT Infrastructure Analyst (Frango) > DHL Global Coordination Center - IT Department > Tel +32 2 713 42 62 > Fax +32 2 713 52 00 > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users -- Technical Support/Analyst Volt Europe Tel : (+44) (0) 1737 774100 Fax : (+44) (0) 1737 772949 Mobile : (+44) (0) 777 1513066 E-mail pete.dewell at volteurope.com ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From Volker.Aust at premiere.de Fri Dec 13 10:50:00 2002 From: Volker.Aust at premiere.de (Volker.Aust at premiere.de) Date: Fri, 13 Dec 2002 10:50:00 +0100 Subject: User Access to certain hosts Message-ID: Sure is this possible. You have to configure a user for your customer in your htpasswd.users. Then configure a contact with the same name (you can set notification_period to "none" if you don't want that they get notifications). This contact have to be member of a contactgroup which you assign to the hosts or services. Hope this helps. -vol > -----Original Message----- > From: Chris Dos [mailto:chris at chrisdos.com] > Sent: Thursday, December 12, 2002 5:42 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] User Access to certain hosts > > > Is there a way to allow certain users to have access to views of only > certain hosts? I work for a hosting company that would like to allow > the clients that pay for monitoring to be able to view the status of > their server but not anyone elses. Is this possible or is this > something I should post to the development list? > > Chris > -- > Chris Dos > Senior Engineer > Huge Hosting > > > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From carles at servidores.com Fri Dec 13 13:14:56 2002 From: carles at servidores.com (Carles =?ISO-8859-1?Q?Amig=F3?=) Date: 13 Dec 2002 13:14:56 +0100 Subject: NRPEP Update In-Reply-To: <1039737086.1761.271.camel@desktop> References: <1039737086.1761.271.camel@desktop> Message-ID: <1039781695.15595.47.camel@fr3nd> It's a nice to see someone is working on nrpep. With your changes, will it be possible to connect with latest client versions of nrpep to older ones as daemon? El vie, 13-12-2002 a las 00:51, Todd A. Green escribi?: > If anyone is interested... > > NRPEP Nagios/Netsaint Remote Plugin Execution/Perl is a PERL > implementation of remote execution of Nagios/Netsaint plugins similar to > NRPE. > > The original version (<0.3) was written by Adam Jacob ~1999. > > In 2000 I started making minor buglet fixes and in early 2001 Adam > agreed to let me take over the project. > > It had stalled along at 0.2a (bugfixes) until I started my new Managed > Services company at which point I was able to continue my work with > Netsaint and then Nagios. > > The first change I made was to remove Crypt::TripleDES as the cipher > after running into some issues with it. The current version 0.3.4 uses > the PERL Mcrypt interface which will allow for much greater flexibility > in the end users choice of encryption techniques. Currently I've coded > to Blowfish, but will move the encryption choice to the configuration > files. > > I've also reworked the internal logic to add verification of remote end > (are we really talking to NRPEP?), shared secret comparison (Ack our > secrets don't match!), and a little better check command error handling. > > Last thing I added (today) was a default check_nrpep command > 'check_nrpep'. This allows you to verify the remote NRPEP server is > available for further queries. > > I plan to put this all back together into a tarball and start (yet > another) SourceForge project for it, but thought I'd check the interest > here first. > > Let me know if your interested... > > Thanks -- Carles Amig? Mart?nez Resp. Advanced Hosting Servidores.com Tel: (+34) 902 999 707 - Fax: (+34) 93 268 14 79 carles at servidores.com - http://www.servidores.com Servidores.com es un servicio de Inlander Communications SL ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From carles at servidores.com Fri Dec 13 13:43:41 2002 From: carles at servidores.com (Carles =?ISO-8859-1?Q?Amig=F3?=) Date: 13 Dec 2002 13:43:41 +0100 Subject: time until first mail notification Message-ID: <1039783421.15577.53.camel@fr3nd> Hello, Is it possible to delay some minutes the first e-mail notification of a host or a service failure? Regards -- Carles Amig? Mart?nez Resp. Advanced Hosting Servidores.com Tel: (+34) 902 999 707 - Fax: (+34) 93 268 14 79 carles at servidores.com - http://www.servidores.com Servidores.com es un servicio de Inlander Communications SL ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From tdeblend at gcc.dhl.com Fri Dec 13 13:55:11 2002 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Fri, 13 Dec 2002 13:55:11 +0100 Subject: time until first mail notification References: <1039783421.15577.53.camel@fr3nd> Message-ID: <3DF9D8AF.52F44943@gcc.dhl.com> Yes, increase the amount of retries before a service goes into a hard state. Or extend the retry interval. Carles Amig? wrote: > > Hello, > > Is it possible to delay some minutes the first e-mail notification of a > host or a service failure? > > Regards > -- > Carles Amig? Mart?nez > Resp. Advanced Hosting > Servidores.com > Tel: (+34) 902 999 707 - Fax: (+34) 93 268 14 79 > carles at servidores.com - http://www.servidores.com > Servidores.com es un servicio de Inlander Communications SL > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From jsie at quadrix.com Fri Dec 13 16:46:52 2002 From: jsie at quadrix.com (Jackson Sie) Date: Fri, 13 Dec 2002 10:46:52 -0500 Subject: FW: [netsaint] check_snmp errors with solaris 8/sparc - No data recieved from host In-Reply-To: References: Message-ID: <006501c2a2be$dbc76900$a0c81fac@pikachu> This issue has been discussed before. The basic problem is that the check_snmp plugin clears out it's system environment variables before calling exec()'ing snmpget. Unfortunately, if your snmp package is installed in the /usr/local directory tree, the the required libraries are in /usr/local/lib. By default in Solaris, this directory is included in the runtime library path. There are two ways to resolve this. You can either copy or symlink the requisite .so files from /usr/local/lib into /usr/lib, or you can use crle as a system administrator to add /usr/local/lib into the default runtime path. Good luck, Jackson Sie Quadrix Solutions, Inc. -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Subhendu Ghosh Sent: Thursday, December 12, 2002 3:09 PM To: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] FW: [netsaint] check_snmp errors with solaris 8/sparc - No data recieved from host Could you run the command under truss and post the sections where snmp error happens... -sg On Wed, 11 Dec 2002, Michael O'Dea wrote: > > Nope - this didn't get me anywhere. I am baffled by this. I'll have to > try the developers list > > > thanks > -m > > -----Original Message----- > From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] > Sent: Wednesday, December 11, 2002 1:57 PM > To: Michael O'Dea; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] FW: [netsaint] check_snmp errors with > solaris 8/sparc - No data recieved from host > > > Try using the -H option (as I suggested in my original e-mail). > > jc > > > -----Original Message----- > > From: Michael O'Dea [mailto:modea at upoc-inc.com] > > Sent: Wednesday, December 11, 2002 12:54 PM > > To: Carroll, Jim P [Contractor]; nagios-users at lists.sourceforge.net > > Subject: RE: [Nagios-users] FW: [netsaint] check_snmp errors with > > solaris 8/sparc - No data recieved from host > > > > > > > > > > eek! > > > > I realized that I pasted a bunch of stuff wrong after I > > emailed it! So much for attention to detail :( > > > > Here is how it *should* look: (and I am still getting the same > > error) > > > > bash-2.05$ id > > uid=6667(nagios) gid=200(upoc) > > > > here I run the plugin: > > > > bash-2.05$ /opt/nagios/libexec/check_snmp 10.10.6.81 -C > > test123 -o system.sysName.0 > > SNMP problem - No data recieved from host > > CMD: /usr/local/bin/snmpget -m ALL -v 1 -c test123 > > 10.10.6.81:161 system.sysName.0 > > bash-2.05$ > > > > It reports 'snmp problem' and gives me the cmdline, which I run: > > > > bash-2.05$ /usr/local/bin/snmpget -m ALL -v 1 -c test123 > > 10.10.6.81:161 system.sysName.0 > > system.sysName.0 = "message1" > > bash-2.05$ > > > > It works with the actual snmpget... but check_snmp (which > > calls snmpget?) seems to fail. > > > > I get the same error with snmpget from UCD-snmp version: > > 4.1.2 & UCD-snmp version: 4.2.6 on this solaris 8/sparc system. > > > > I also tried the suggested change in utils.c & recompile - it > > had no change. > > > > Thanks for getting back to me > > > > -m > > > > -----Original Message----- > > From: Carroll, Jim P [Contractor] > > [mailto:jcarro10 at sprintspectrum.com] > > Sent: Wednesday, December 11, 2002 1:35 PM > > To: Michael O'Dea; nagios-users at lists.sourceforge.net > > Subject: RE: [Nagios-users] FW: [netsaint] check_snmp errors with > > solaris 8/sparc - No data recieved from host > > > > > > First, it appears that you're testing the command under root. When > > in doubt, test it under user nagios. (I don't think it would make a > > difference in this case, but it's all about eliminating > > possibilities, right?) > > > > Second, it appears that there are 3 different invocations of > > the command, > > and none of them match. You have (in order shown in your example): > > > > 1) libexec/check_snmp 10.0.0.5 -C test123 -o system.susName.0 > > 2) /usr/local/bin/snmpget -m ALL -v 1 10.10.6.81 1luvUp0C > > system.susName.0 > > 3) /usr/local/bin/snmpget -m ALL -v 1 10.0.0.5 test123 > > system.sysName.0 > > system.sysName.0 = "message1" > > > > As a result, I'm puzzling over the following: > > > > - why do #1 and #2 have different IP addresses? > > - why are the arguments in #2 and #3 different? > > - what object is "system.susName.0"? did you mean > > "system.sysName.0"? > > > > They're just all... different. See if you can get some > > incantation of the > > check_snmp command to result in kicking out the correct CMD > > (which would > > mirror the invocation of snmpget). > > > > Try something along the lines of (ie, cut/paste): > > > > libexec/check_snmp -H 10.0.0.5 -C test123 -o system.sysName.0 > > > > HTH. > > > > jc > > > > > > > -----Original Message----- > > > From: Michael O'Dea [mailto:modea at upoc-inc.com] > > > Sent: Wednesday, December 11, 2002 11:34 AM > > > To: nagios-users at lists.sourceforge.net > > > Subject: [Nagios-users] FW: [netsaint] check_snmp errors > > with solaris > > > 8/sparc - No data recieved from host > > > > > > > > > > > > Hi. > > > > > > I sent this to the netsaint list yesterday - then found out > > > about nagios, and installed it & then signed up for the list > > > -- and am still having the same problem with the nagios > > > check_snmp plugin. > > > > > > the version is: check_snmp (nagios-plugins 1.3.0-beta2) 1.20 > > > > > > Any ideas? > > > > > > thanks > > > -m > > > -----Original Message----- > > > From: Michael O'Dea > > > Sent: Tuesday, December 10, 2002 12:43 PM > > > To: netsaint-users at lists.sourceforge.net > > > Subject: [netsaint] check_snmp errors with solaris 8/sparc - No data > > > recieved from host > > > > > > > > > > > > Hello, > > > > > > I seem to be having a problem with the check_snmp plugin, I > > > am getting this error: > > > > > > root at host: [/opt/netsaint #] libexec/check_snmp 10.0.0.5 -C > > > test123 -o system.susName.0 > > > SNMP problem - No data recieved from host > > > CMD: /usr/local/bin/snmpget -m ALL -v 1 10.10.6.81 1luvUp0C > > > system.susName.0 > > > > > > so I run the snmpget cmdline and get a answer: > > > > > > root at host: [/opt/netsaint #] /usr/local/bin/snmpget -m ALL -v > > > 1 10.0.0.5 test123 system.sysName.0 > > > system.sysName.0 = "message1" > > > > > > It works fine... > > > > > > So I checked the mailing list archive & google and I came up > > > with this: > > > > > > http://www.geocrawler.com/mail/msg.php3?msg_id=7358656&list=739 > > > http://www.geocrawler.com/archives/3/736/2001/8/0/6342925/ > > > > > > I tried upping TXTBLK to 256 in the utils.c -- no luck. > > > > > > Any suggestions? > > > > > > system info: > > > > > > check_snmp (netsaint-plugins 1.2.9-4) 1.21.2.5 > > > UCD-snmp version: 4.2.6 > > > SunOS host 5.8 Generic_108528-15 sun4u sparc SUNW,Sun-Fire-280R > > > gcc version 3.2 > > > > > > > > > It does work for me on a solaris 7/intel system, same plugin > > > version but ucd-snmp 4.1.2. I tried compiling 4.1.2 on the > > > solaris 8/sparc box and got the same error. > > > > > > Anyone else seen this? > > > > > > thanks > > > > > > ---- > > > Michael A. O'Dea > > > Senior Systems Administrator > > > Upoc, Inc - NYC, NY > > > 212.405.1042 (desk) > > > modea at upoc-inc.com > > > Upoc Handle: fddi > > > > > > "when the going gets weird, the weird turn pro" -HST > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > This sf.net email is sponsored by:ThinkGeek > > > Welcome to geek heaven. > > > http://thinkgeek.com/sf > > > _______________________________________________ > > > Netsaint-users mailing list Netsaint-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/netsaint-users > > > > > > > > > ------------------------------------------------------- > > > This sf.net email is sponsored by: > > > With Great Power, Comes Great Responsibility > > > Learn to use your power at OSDN's High Performance Computing Channel > > > http://hpc.devchannel.org/ > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > -- ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From ABostick at mydoconline.com Fri Dec 13 17:08:02 2002 From: ABostick at mydoconline.com (ABostick at mydoconline.com) Date: Fri, 13 Dec 2002 10:08:02 -0600 Subject: Nagios-users digest, Vol 1 #1165 - 32 msgs Message-ID: This is what I was afraid of... Another list I am on does auto-stip HTML content but it is not hosted by sourceforge. :( Aaron Message: 19 From: "Ethan Galstad" To: nagios-users Date: Thu, 12 Dec 2002 22:38:53 -0600 Subject: Re: [Nagios-users] Filter HTML on list!? I don't believe that Mailman (the list software used at SourceForge) has an option to do this yet. It would be nice feature request to either auto-strip HTML messages or block them entirely. Ethan Galstad, Nagios Developer --- Email: nagios at nagios.org Website: http://www.nagios.org ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From tagreen at mhsnetworks.net Fri Dec 13 17:12:19 2002 From: tagreen at mhsnetworks.net (Todd A. Green) Date: 13 Dec 2002 10:12:19 -0600 Subject: NRPEP Update In-Reply-To: <1039781695.15595.47.camel@fr3nd> References: <1039737086.1761.271.camel@desktop> <1039781695.15595.47.camel@fr3nd> Message-ID: <1039795939.8753.2.camel@desktop> On Fri, 2002-12-13 at 06:14, Carles Amig? wrote: > It's a nice to see someone is working on nrpep. > > With your changes, will it be possible to connect with latest client > versions of nrpep to older ones as daemon? > Unfortunatly no, if the handshaking I added didn't preclude that (which could be disabled depending on server version #) the encryption method change would. > El vie, 13-12-2002 a las 00:51, Todd A. Green escribi?: > > If anyone is interested... > > > > NRPEP Nagios/Netsaint Remote Plugin Execution/Perl is a PERL > > implementation of remote execution of Nagios/Netsaint plugins similar to > > NRPE. > > > > The original version (<0.3) was written by Adam Jacob ~1999. > > > > In 2000 I started making minor buglet fixes and in early 2001 Adam > > agreed to let me take over the project. > > > > It had stalled along at 0.2a (bugfixes) until I started my new Managed > > Services company at which point I was able to continue my work with > > Netsaint and then Nagios. > > > > The first change I made was to remove Crypt::TripleDES as the cipher > > after running into some issues with it. The current version 0.3.4 uses > > the PERL Mcrypt interface which will allow for much greater flexibility > > in the end users choice of encryption techniques. Currently I've coded > > to Blowfish, but will move the encryption choice to the configuration > > files. > > > > I've also reworked the internal logic to add verification of remote end > > (are we really talking to NRPEP?), shared secret comparison (Ack our > > secrets don't match!), and a little better check command error handling. > > > > Last thing I added (today) was a default check_nrpep command > > 'check_nrpep'. This allows you to verify the remote NRPEP server is > > available for further queries. > > > > I plan to put this all back together into a tarball and start (yet > > another) SourceForge project for it, but thought I'd check the interest > > here first. > > > > Let me know if your interested... > > > > Thanks -- Todd A. Green Managed Hosting Soutions, Inc. ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From modea at upoc-inc.com Fri Dec 13 17:29:36 2002 From: modea at upoc-inc.com (Michael O'Dea) Date: Fri, 13 Dec 2002 11:29:36 -0500 Subject: FW: [netsaint] check_snmp errors with solaris 8/sparc - No data recieved from host Message-ID: <4DB9CCB36001AC4F901CC0EC4409719901EF10A1@exchange01.upocny.upoc-inc.com> Jackson: I'll give this a try! I checked the list archives and didn't see anything regarding it. Thanks so much -m -----Original Message----- From: Jackson Sie [mailto:jsie at quadrix.com] Sent: Friday, December 13, 2002 10:47 AM To: 'Subhendu Ghosh'; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] FW: [netsaint] check_snmp errors with solaris 8/sparc - No data recieved from host This issue has been discussed before. The basic problem is that the check_snmp plugin clears out it's system environment variables before calling exec()'ing snmpget. Unfortunately, if your snmp package is installed in the /usr/local directory tree, the the required libraries are in /usr/local/lib. By default in Solaris, this directory is included in the runtime library path. There are two ways to resolve this. You can either copy or symlink the requisite .so files from /usr/local/lib into /usr/lib, or you can use crle as a system administrator to add /usr/local/lib into the default runtime path. Good luck, Jackson Sie Quadrix Solutions, Inc. -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Subhendu Ghosh Sent: Thursday, December 12, 2002 3:09 PM To: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] FW: [netsaint] check_snmp errors with solaris 8/sparc - No data recieved from host Could you run the command under truss and post the sections where snmp error happens... -sg On Wed, 11 Dec 2002, Michael O'Dea wrote: > > Nope - this didn't get me anywhere. I am baffled by this. I'll have to > try the developers list > > > thanks > -m > > -----Original Message----- > From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] > Sent: Wednesday, December 11, 2002 1:57 PM > To: Michael O'Dea; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] FW: [netsaint] check_snmp errors with > solaris 8/sparc - No data recieved from host > > > Try using the -H option (as I suggested in my original e-mail). > > jc > > > -----Original Message----- > > From: Michael O'Dea [mailto:modea at upoc-inc.com] > > Sent: Wednesday, December 11, 2002 12:54 PM > > To: Carroll, Jim P [Contractor]; nagios-users at lists.sourceforge.net > > Subject: RE: [Nagios-users] FW: [netsaint] check_snmp errors with > > solaris 8/sparc - No data recieved from host > > > > > > > > > > eek! > > > > I realized that I pasted a bunch of stuff wrong after I > > emailed it! So much for attention to detail :( > > > > Here is how it *should* look: (and I am still getting the same > > error) > > > > bash-2.05$ id > > uid=6667(nagios) gid=200(upoc) > > > > here I run the plugin: > > > > bash-2.05$ /opt/nagios/libexec/check_snmp 10.10.6.81 -C > > test123 -o system.sysName.0 > > SNMP problem - No data recieved from host > > CMD: /usr/local/bin/snmpget -m ALL -v 1 -c test123 > > 10.10.6.81:161 system.sysName.0 > > bash-2.05$ > > > > It reports 'snmp problem' and gives me the cmdline, which I run: > > > > bash-2.05$ /usr/local/bin/snmpget -m ALL -v 1 -c test123 > > 10.10.6.81:161 system.sysName.0 > > system.sysName.0 = "message1" > > bash-2.05$ > > > > It works with the actual snmpget... but check_snmp (which > > calls snmpget?) seems to fail. > > > > I get the same error with snmpget from UCD-snmp version: > > 4.1.2 & UCD-snmp version: 4.2.6 on this solaris 8/sparc system. > > > > I also tried the suggested change in utils.c & recompile - it > > had no change. > > > > Thanks for getting back to me > > > > -m > > > > -----Original Message----- > > From: Carroll, Jim P [Contractor] > > [mailto:jcarro10 at sprintspectrum.com] > > Sent: Wednesday, December 11, 2002 1:35 PM > > To: Michael O'Dea; nagios-users at lists.sourceforge.net > > Subject: RE: [Nagios-users] FW: [netsaint] check_snmp errors with > > solaris 8/sparc - No data recieved from host > > > > > > First, it appears that you're testing the command under root. When > > in doubt, test it under user nagios. (I don't think it would make a > > difference in this case, but it's all about eliminating > > possibilities, right?) > > > > Second, it appears that there are 3 different invocations of > > the command, > > and none of them match. You have (in order shown in your example): > > > > 1) libexec/check_snmp 10.0.0.5 -C test123 -o system.susName.0 > > 2) /usr/local/bin/snmpget -m ALL -v 1 10.10.6.81 1luvUp0C > > system.susName.0 > > 3) /usr/local/bin/snmpget -m ALL -v 1 10.0.0.5 test123 > > system.sysName.0 > > system.sysName.0 = "message1" > > > > As a result, I'm puzzling over the following: > > > > - why do #1 and #2 have different IP addresses? > > - why are the arguments in #2 and #3 different? > > - what object is "system.susName.0"? did you mean > > "system.sysName.0"? > > > > They're just all... different. See if you can get some > > incantation of the > > check_snmp command to result in kicking out the correct CMD > > (which would > > mirror the invocation of snmpget). > > > > Try something along the lines of (ie, cut/paste): > > > > libexec/check_snmp -H 10.0.0.5 -C test123 -o system.sysName.0 > > > > HTH. > > > > jc > > > > > > > -----Original Message----- > > > From: Michael O'Dea [mailto:modea at upoc-inc.com] > > > Sent: Wednesday, December 11, 2002 11:34 AM > > > To: nagios-users at lists.sourceforge.net > > > Subject: [Nagios-users] FW: [netsaint] check_snmp errors > > with solaris > > > 8/sparc - No data recieved from host > > > > > > > > > > > > Hi. > > > > > > I sent this to the netsaint list yesterday - then found out > > > about nagios, and installed it & then signed up for the list > > > -- and am still having the same problem with the nagios > > > check_snmp plugin. > > > > > > the version is: check_snmp (nagios-plugins 1.3.0-beta2) 1.20 > > > > > > Any ideas? > > > > > > thanks > > > -m > > > -----Original Message----- > > > From: Michael O'Dea > > > Sent: Tuesday, December 10, 2002 12:43 PM > > > To: netsaint-users at lists.sourceforge.net > > > Subject: [netsaint] check_snmp errors with solaris 8/sparc - No data > > > recieved from host > > > > > > > > > > > > Hello, > > > > > > I seem to be having a problem with the check_snmp plugin, I > > > am getting this error: > > > > > > root at host: [/opt/netsaint #] libexec/check_snmp 10.0.0.5 -C > > > test123 -o system.susName.0 > > > SNMP problem - No data recieved from host > > > CMD: /usr/local/bin/snmpget -m ALL -v 1 10.10.6.81 1luvUp0C > > > system.susName.0 > > > > > > so I run the snmpget cmdline and get a answer: > > > > > > root at host: [/opt/netsaint #] /usr/local/bin/snmpget -m ALL -v > > > 1 10.0.0.5 test123 system.sysName.0 > > > system.sysName.0 = "message1" > > > > > > It works fine... > > > > > > So I checked the mailing list archive & google and I came up > > > with this: > > > > > > http://www.geocrawler.com/mail/msg.php3?msg_id=7358656&list=739 > > > http://www.geocrawler.com/archives/3/736/2001/8/0/6342925/ > > > > > > I tried upping TXTBLK to 256 in the utils.c -- no luck. > > > > > > Any suggestions? > > > > > > system info: > > > > > > check_snmp (netsaint-plugins 1.2.9-4) 1.21.2.5 > > > UCD-snmp version: 4.2.6 > > > SunOS host 5.8 Generic_108528-15 sun4u sparc SUNW,Sun-Fire-280R > > > gcc version 3.2 > > > > > > > > > It does work for me on a solaris 7/intel system, same plugin > > > version but ucd-snmp 4.1.2. I tried compiling 4.1.2 on the > > > solaris 8/sparc box and got the same error. > > > > > > Anyone else seen this? > > > > > > thanks > > > > > > ---- > > > Michael A. O'Dea > > > Senior Systems Administrator > > > Upoc, Inc - NYC, NY > > > 212.405.1042 (desk) > > > modea at upoc-inc.com > > > Upoc Handle: fddi > > > > > > "when the going gets weird, the weird turn pro" -HST > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > This sf.net email is sponsored by:ThinkGeek > > > Welcome to geek heaven. > > > http://thinkgeek.com/sf > > > _______________________________________________ > > > Netsaint-users mailing list Netsaint-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/netsaint-users > > > > > > > > > ------------------------------------------------------- > > > This sf.net email is sponsored by: > > > With Great Power, Comes Great Responsibility > > > Learn to use your power at OSDN's High Performance Computing Channel > > > http://hpc.devchannel.org/ > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > -- ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From dan at conpoint.com Fri Dec 13 19:08:40 2002 From: dan at conpoint.com (Dan Spray) Date: Fri, 13 Dec 2002 12:08:40 -0600 Subject: Problem with check_ftp and check_pop Message-ID: Hello all, I just started using check_ftp and check_pop for a couple of servers. I set it all up and Nagios seems to like my commands and all, however, under Service Detail it says "(No output!) " so I said okay and ran it from the command line, here is what I get: [root at NABU libexec]# ./check_ftp -H nabu FTP OK - 0.001 second response time on port 21|time= 0.001 Segmentation fault Anyone have any ideas on this? Thanks inadvance, Dan -- Dan Spray, Director of Internet Operations dan at conpoint.com Connecting Point Norfolk, NE < http://www.conpoint.com/> Voice - 402.371.4530 x208 Fax - 402.371.4515 "The trouble with doing anything right the first time is that nobody appreciates how difficult it was!" -- -------------- next part -------------- An HTML attachment was scrubbed... URL: From danslists at conpoint.com Fri Dec 13 19:16:04 2002 From: danslists at conpoint.com (Dan Spray) Date: Fri, 13 Dec 2002 12:16:04 -0600 Subject: Problem with check_ftp and check_pop Message-ID: Hello all, I just started using check_ftp and check_pop for a couple of servers. I set it all up and Nagios seems to like my commands and all, however, under Service Detail it says "(No output!) " so I said okay and ran it from the command line, here is what I get: [root at NABU libexec]# ./check_ftp -H nabu FTP OK - 0.001 second response time on port 21|time= 0.001 Segmentation fault Anyone have any ideas on this? Thanks inadvance, Dan -- Dan Spray, Director of Internet Operations dan at conpoint.com Connecting Point Norfolk, NE < http://www.conpoint.com/> Voice - 402.371.4530 x208 Fax - 402.371.4515 "The trouble with doing anything right the first time is that nobody appreciates how difficult it was!" -- -------------- next part -------------- An HTML attachment was scrubbed... URL: From jasmine.chua at securecirt.com Fri Dec 13 19:27:26 2002 From: jasmine.chua at securecirt.com (Jasmine Chua) Date: Sat, 14 Dec 2002 02:27:26 +0800 Subject: Problem with check_ftp and check_pop In-Reply-To: References: Message-ID: <200212140227.31934.jasmine.chua@securecirt.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Looks like you dint compile your plugins properly. On Saturday 14 December 2002 02:08, Dan Spray wrote: > Hello all, > > I just started using check_ftp and check_pop for a couple of servers. I > set it all up and Nagios seems to like my commands and all, however, > under Service Detail it says "(No output!) " so I said okay and ran it > from the command line, here is what I get: > > [root at NABU libexec]# ./check_ftp -H nabu > FTP OK - 0.001 second response time on port 21|time= 0.001 > Segmentation fault > > Anyone have any ideas on this? Thanks inadvance, > > Dan - -- Jasmine Chua Security Engineer, SecureCiRT (A SBU of Z-Vance Pte Ltd) http://www.securecirt.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9+iaSNgvTa7Hj2AURAu0PAKDI9kzxXCKGfQU5eFXAO/LyCRzQnwCeI6F+ /vq6aOcK/wdiU27RTLeYzTU= =EFBu -----END PGP SIGNATURE----- ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From jasmine.chua at securecirt.com Fri Dec 13 19:35:40 2002 From: jasmine.chua at securecirt.com (Jasmine Chua) Date: Sat, 14 Dec 2002 02:35:40 +0800 Subject: Problem with check_ftp and check_pop In-Reply-To: References: Message-ID: <200212140235.47142.jasmine.chua@securecirt.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Check to see if the libraries are there. What version of plugins are you running? And on what O/S? On Saturday 14 December 2002 02:29, you wrote: > I did a configured them, made them, and a make install. Is there > something I'm missing in there? > > -----Original Message----- > From: Jasmine Chua [mailto:jasmine.chua at securecirt.com] > Sent: Friday, December 13, 2002 12:27 PM > To: nagios-users at lists.sourceforge.net > Cc: Dan Spray > Subject: Re: [Nagios-users] Problem with check_ftp and check_pop > > Looks like you dint compile your plugins properly. > > On Saturday 14 December 2002 02:08, Dan Spray wrote: > > Hello all, > > > > I just started using check_ftp and check_pop for a couple of servers. > > I > > > set it all up and Nagios seems to like my commands and all, however, > > under Service Detail it says "(No output!) " so I said okay and ran it > > from the command line, here is what I get: > > > > [root at NABU libexec]# ./check_ftp -H nabu > > FTP OK - 0.001 second response time on port 21|time= 0.001 > > Segmentation fault > > > > Anyone have any ideas on this? Thanks inadvance, > > > > Dan - -- Jasmine Chua Security Engineer, SecureCiRT (A SBU of Z-Vance Pte Ltd) http://www.securecirt.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9+iiBNgvTa7Hj2AURAiUgAJ0RdDE/Wmca9X76BeY0CVEUya2QGgCgnB+W 0s7WdRgvdHqQxu5Gu8+FX44= =0Mum -----END PGP SIGNATURE----- ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From jasmine.chua at securecirt.com Fri Dec 13 19:57:44 2002 From: jasmine.chua at securecirt.com (Jasmine Chua) Date: Sat, 14 Dec 2002 02:57:44 +0800 Subject: Problem with check_ftp and check_pop In-Reply-To: References: Message-ID: <200212140257.52854.jasmine.chua@securecirt.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 maybe because its not locating "utils.pm". use "/usr/local/nagios/libexec"; use utils qw (.....); > > Read the INSTALL file. Make sure you set the -PREFIXthingy > to your nagios install, and set the -CGIPATHthingy to /nagios/cgi-bin > (if you installed nagios with defaults). That's in ./configure > > After that run "make" > Then "make install" > > Plugins should now be under /somedir/nagios/libexec On Saturday 14 December 2002 02:38, you wrote: > I am using nagios-plugins-1.3.0-beta2.tar.gz on RH 7.3. What libraries > are you talking about? > > -----Original Message----- > From: Jasmine Chua [mailto:jasmine.chua at securecirt.com] > Sent: Friday, December 13, 2002 12:36 PM > To: nagios-users at lists.sourceforge.net > Cc: Dan Spray > Subject: Re: [Nagios-users] Problem with check_ftp and check_pop > > Check to see if the libraries are there. > > What version of plugins are you running? And on what O/S? > > On Saturday 14 December 2002 02:29, you wrote: > > I did a configured them, made them, and a make install. Is there > > something I'm missing in there? > > > > -----Original Message----- > > From: Jasmine Chua [mailto:jasmine.chua at securecirt.com] > > Sent: Friday, December 13, 2002 12:27 PM > > To: nagios-users at lists.sourceforge.net > > Cc: Dan Spray > > Subject: Re: [Nagios-users] Problem with check_ftp and check_pop > > > > Looks like you dint compile your plugins properly. > > > > On Saturday 14 December 2002 02:08, Dan Spray wrote: > > > Hello all, > > > > > > I just started using check_ftp and check_pop for a couple of > > servers. > > > I > > > > > set it all up and Nagios seems to like my commands and all, however, > > > under Service Detail it says "(No output!) " so I said okay and ran > > it > > > > from the command line, here is what I get: > > > > > > [root at NABU libexec]# ./check_ftp -H nabu > > > FTP OK - 0.001 second response time on port 21|time= 0.001 > > > Segmentation fault > > > > > > Anyone have any ideas on this? Thanks inadvance, > > > > > > Dan - -- Jasmine Chua Security Engineer, SecureCiRT (A SBU of Z-Vance Pte Ltd) http://www.securecirt.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9+i2rNgvTa7Hj2AURAlMOAJ9yvCnv10spsZzG293Pmbyi+yvZrQCePqyW PW+B4aaoG9c+NUea0d6D3iE= =4bhO -----END PGP SIGNATURE----- ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From anders at jblinux.net Fri Dec 13 20:01:28 2002 From: anders at jblinux.net (Anders Nerheim) Date: 13 Dec 2002 20:01:28 +0100 Subject: Problem with check_ftp and check_pop In-Reply-To: References: Message-ID: <1039806115.2543.5.camel@aten> yeah I got the same stuff. running rh 7.3 with all the libs that's updated after apt-get dist-upgrade I havent gotten any response so far. I posted it to list about 4-5 days ago On Fri, 2002-12-13 at 19:16, Dan Spray wrote: > Hello all, > > I just started using check_ftp and check_pop for a couple of servers. I > set it all up and Nagios seems to like my commands and all, however, > under Service Detail it says "(No output!) " so I said okay and ran it > from the command line, here is what I get: > > [root at NABU libexec]# ./check_ftp -H nabu > FTP OK - 0.001 second response time on port 21|time= 0.001 > Segmentation fault > > Anyone have any ideas on this? Thanks inadvance, > > Dan > > -- > Dan Spray, Director of Internet Operations dan at conpoint.com > Connecting Point Norfolk, NE < > http://www.conpoint.com/> > Voice - 402.371.4530 x208 Fax - 402.371.4515 > "The trouble with doing anything right the first time is that nobody > appreciates how difficult it was!" > -- > ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From jasmine.chua at securecirt.com Fri Dec 13 20:19:15 2002 From: jasmine.chua at securecirt.com (Jasmine Chua) Date: Sat, 14 Dec 2002 03:19:15 +0800 Subject: Problem with check_ftp and check_pop In-Reply-To: References: Message-ID: <200212140319.22257.jasmine.chua@securecirt.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Try the CVS release. Yes they are all linked to check_tcp but running on different ports. Since the rest of them are working, I dont see why you cant run check_ftp. On Saturday 14 December 2002 03:02, you wrote: > I did configure the plugins with the prefix, cgibin, and http directives > pointing to the correct location. Everything else seems to work just > fine, including check_tcp. I should ask that, in my system check_ftp, > check_imap, check_nntp and check_pop are all symlinked to check_tcp. Is > that correct? Anyway, everything else seems to work fine as far as the > plugins. > > Dan > > -----Original Message----- > From: Jasmine Chua [mailto:jasmine.chua at securecirt.com] > Sent: Friday, December 13, 2002 12:58 PM > To: nagios-users at lists.sourceforge.net > Cc: Dan Spray > Subject: Re: [Nagios-users] Problem with check_ftp and check_pop > > maybe because its not locating "utils.pm". > > use "/usr/local/nagios/libexec"; > > use utils qw (.....); > > > Read the INSTALL file. Make sure you set the -PREFIXthingy > > to your nagios install, and set the -CGIPATHthingy to /nagios/cgi-bin > > (if you installed nagios with defaults). That's in ./configure > > > > After that run "make" > > Then "make install" > > > > Plugins should now be under /somedir/nagios/libexec > > On Saturday 14 December 2002 02:38, you wrote: > > I am using nagios-plugins-1.3.0-beta2.tar.gz on RH 7.3. What > > libraries > > > are you talking about? > > > > -----Original Message----- > > From: Jasmine Chua [mailto:jasmine.chua at securecirt.com] > > Sent: Friday, December 13, 2002 12:36 PM > > To: nagios-users at lists.sourceforge.net > > Cc: Dan Spray > > Subject: Re: [Nagios-users] Problem with check_ftp and check_pop > > > > Check to see if the libraries are there. > > > > What version of plugins are you running? And on what O/S? > > > > On Saturday 14 December 2002 02:29, you wrote: > > > I did a configured them, made them, and a make install. Is there > > > something I'm missing in there? > > > > > > -----Original Message----- > > > From: Jasmine Chua [mailto:jasmine.chua at securecirt.com] > > > Sent: Friday, December 13, 2002 12:27 PM > > > To: nagios-users at lists.sourceforge.net > > > Cc: Dan Spray > > > Subject: Re: [Nagios-users] Problem with check_ftp and check_pop > > > > > > Looks like you dint compile your plugins properly. > > > > > > On Saturday 14 December 2002 02:08, Dan Spray wrote: > > > > Hello all, > > > > > > > > I just started using check_ftp and check_pop for a couple of > > > > servers. > > > > > I > > > > > > > set it all up and Nagios seems to like my commands and all, > > however, > > > > > under Service Detail it says "(No output!) " so I said okay and > > ran > > > it > > > > > > from the command line, here is what I get: > > > > > > > > [root at NABU libexec]# ./check_ftp -H nabu > > > > FTP OK - 0.001 second response time on port 21|time= 0.001 > > > > Segmentation fault > > > > > > > > Anyone have any ideas on this? Thanks inadvance, > > > > > > > > Dan - -- Jasmine Chua Security Engineer, SecureCiRT (A SBU of Z-Vance Pte Ltd) http://www.securecirt.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9+jK3NgvTa7Hj2AURArB7AJ4yGU2q7rSBMFxkCLVIppdq5e540ACfQsX6 Iu56CIv1SQSgySzJ1eW7qU8= =7Zx4 -----END PGP SIGNATURE----- ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From jasmine.chua at securecirt.com Fri Dec 13 20:30:53 2002 From: jasmine.chua at securecirt.com (Jasmine Chua) Date: Sat, 14 Dec 2002 03:30:53 +0800 Subject: Problem with check_ftp and check_pop In-Reply-To: <200212140319.22257.jasmine.chua@securecirt.com> References: <200212140319.22257.jasmine.chua@securecirt.com> Message-ID: <200212140330.58899.jasmine.chua@securecirt.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Try to test it without your Nagios server.. with -v option to debug it. On Saturday 14 December 2002 03:19, Jasmine Chua wrote: > Try the CVS release. > Yes they are all linked to check_tcp but running on different ports. Since > the rest of them are working, I dont see why you cant run check_ftp. > > On Saturday 14 December 2002 03:02, you wrote: > > I did configure the plugins with the prefix, cgibin, and http directives > > pointing to the correct location. Everything else seems to work just > > fine, including check_tcp. I should ask that, in my system check_ftp, > > check_imap, check_nntp and check_pop are all symlinked to check_tcp. Is > > that correct? Anyway, everything else seems to work fine as far as the > > plugins. > > > > Dan > > > > -----Original Message----- > > From: Jasmine Chua [mailto:jasmine.chua at securecirt.com] > > Sent: Friday, December 13, 2002 12:58 PM > > To: nagios-users at lists.sourceforge.net > > Cc: Dan Spray > > Subject: Re: [Nagios-users] Problem with check_ftp and check_pop > > > > maybe because its not locating "utils.pm". > > > > use "/usr/local/nagios/libexec"; > > > > use utils qw (.....); > > > > > Read the INSTALL file. Make sure you set the -PREFIXthingy > > > to your nagios install, and set the -CGIPATHthingy to /nagios/cgi-bin > > > (if you installed nagios with defaults). That's in ./configure > > > > > > After that run "make" > > > Then "make install" > > > > > > Plugins should now be under /somedir/nagios/libexec > > > > On Saturday 14 December 2002 02:38, you wrote: > > > I am using nagios-plugins-1.3.0-beta2.tar.gz on RH 7.3. What > > > > libraries > > > > > are you talking about? > > > > > > -----Original Message----- > > > From: Jasmine Chua [mailto:jasmine.chua at securecirt.com] > > > Sent: Friday, December 13, 2002 12:36 PM > > > To: nagios-users at lists.sourceforge.net > > > Cc: Dan Spray > > > Subject: Re: [Nagios-users] Problem with check_ftp and check_pop > > > > > > Check to see if the libraries are there. > > > > > > What version of plugins are you running? And on what O/S? > > > > > > On Saturday 14 December 2002 02:29, you wrote: > > > > I did a configured them, made them, and a make install. Is there > > > > something I'm missing in there? > > > > > > > > -----Original Message----- > > > > From: Jasmine Chua [mailto:jasmine.chua at securecirt.com] > > > > Sent: Friday, December 13, 2002 12:27 PM > > > > To: nagios-users at lists.sourceforge.net > > > > Cc: Dan Spray > > > > Subject: Re: [Nagios-users] Problem with check_ftp and check_pop > > > > > > > > Looks like you dint compile your plugins properly. > > > > > > > > On Saturday 14 December 2002 02:08, Dan Spray wrote: > > > > > Hello all, > > > > > > > > > > I just started using check_ftp and check_pop for a couple of > > > > > > servers. > > > > > > > I > > > > > > > > > set it all up and Nagios seems to like my commands and all, > > > > however, > > > > > > > under Service Detail it says "(No output!) " so I said okay and > > > > ran > > > > > it > > > > > > > > from the command line, here is what I get: > > > > > > > > > > [root at NABU libexec]# ./check_ftp -H nabu > > > > > FTP OK - 0.001 second response time on port 21|time= 0.001 > > > > > Segmentation fault > > > > > > > > > > Anyone have any ideas on this? Thanks inadvance, > > > > > > > > > > Dan - -- Jasmine Chua Security Engineer, SecureCiRT (A SBU of Z-Vance Pte Ltd) http://www.securecirt.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9+jVxNgvTa7Hj2AURAvVwAJsEUlEjxApVndROXg7g+QSHL5uWHQCgkY5T 2WVHRpsorDQoxjOLbY+F4fU= =al89 -----END PGP SIGNATURE----- ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From anders at jblinux.net Fri Dec 13 21:12:57 2002 From: anders at jblinux.net (Anders Nerheim) Date: 13 Dec 2002 21:12:57 +0100 Subject: Problem with check_ftp and check_pop In-Reply-To: <200212140330.58899.jasmine.chua@securecirt.com> References: <200212140319.22257.jasmine.chua@securecirt.com> <200212140330.58899.jasmine.chua@securecirt.com> Message-ID: <1039810403.2543.18.camel@aten> this is the results of the nagios-plugins-1.3.0-beta2.tar.gz package. I tried the package from cvs a few daysago, with same result [root at nagios libexec]# ./check_pop -H mailserver -v POP OK - 0.002 second response time on port 110|time= 0.002 Segmentation fault [root at nagios libexec]# ./check_ftp -H ftp.uninett.no -v FTP OK - 0.047 second response time on port 21|time= 0.047 Segmentation fault [root at nagios libexec]# another odd thing is this [root at nagios libexec]# ./check_dns -H yahoo.com Segmentation fault [root at nagios libexec]# ./check_dns -H yahoo.com -s 195.159.0.100 DNS ok - 0 seconds response time, Address(es) is/are 64.58.79.230 [root at nagios libexec]# strace -o check_ftp.strace ./check_ftp -H ftp.uninett.no -v FTP OK - 0.057 second response time on port 21|time= 0.057 [root at nagios libexec]# ./check_ftp -H ftp.uninett.no -v FTP OK - 0.045 second response time on port 21|time= 0.045 Segmentation fault check_ftp.strace is put in as an attachment. On Fri, 2002-12-13 at 20:30, Jasmine Chua wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Try to test it without your Nagios server.. with -v option to debug it. > > On Saturday 14 December 2002 03:19, Jasmine Chua wrote: > > Try the CVS release. > > Yes they are all linked to check_tcp but running on different ports. Since > > the rest of them are working, I dont see why you cant run check_ftp. > > > > On Saturday 14 December 2002 03:02, you wrote: > > > I did configure the plugins with the prefix, cgibin, and http directives > > > pointing to the correct location. Everything else seems to work just > > > fine, including check_tcp. I should ask that, in my system check_ftp, > > > check_imap, check_nntp and check_pop are all symlinked to check_tcp. Is > > > that correct? Anyway, everything else seems to work fine as far as the > > > plugins. > > > > > > Dan > > > > > > -----Original Message----- > > > From: Jasmine Chua [mailto:jasmine.chua at securecirt.com] > > > Sent: Friday, December 13, 2002 12:58 PM > > > To: nagios-users at lists.sourceforge.net > > > Cc: Dan Spray > > > Subject: Re: [Nagios-users] Problem with check_ftp and check_pop > > > > > > maybe because its not locating "utils.pm". > > > > > > use "/usr/local/nagios/libexec"; > > > > > > use utils qw (.....); > > > > > > > Read the INSTALL file. Make sure you set the -PREFIXthingy > > > > to your nagios install, and set the -CGIPATHthingy to /nagios/cgi-bin > > > > (if you installed nagios with defaults). That's in ./configure > > > > > > > > After that run "make" > > > > Then "make install" > > > > > > > > Plugins should now be under /somedir/nagios/libexec > > > > > > On Saturday 14 December 2002 02:38, you wrote: > > > > I am using nagios-plugins-1.3.0-beta2.tar.gz on RH 7.3. What > > > > > > libraries > > > > > > > are you talking about? > > > > > > > > -----Original Message----- > > > > From: Jasmine Chua [mailto:jasmine.chua at securecirt.com] > > > > Sent: Friday, December 13, 2002 12:36 PM > > > > To: nagios-users at lists.sourceforge.net > > > > Cc: Dan Spray > > > > Subject: Re: [Nagios-users] Problem with check_ftp and check_pop > > > > > > > > Check to see if the libraries are there. > > > > > > > > What version of plugins are you running? And on what O/S? > > > > > > > > On Saturday 14 December 2002 02:29, you wrote: > > > > > I did a configured them, made them, and a make install. Is there > > > > > something I'm missing in there? > > > > > > > > > > -----Original Message----- > > > > > From: Jasmine Chua [mailto:jasmine.chua at securecirt.com] > > > > > Sent: Friday, December 13, 2002 12:27 PM > > > > > To: nagios-users at lists.sourceforge.net > > > > > Cc: Dan Spray > > > > > Subject: Re: [Nagios-users] Problem with check_ftp and check_pop > > > > > > > > > > Looks like you dint compile your plugins properly. > > > > > > > > > > On Saturday 14 December 2002 02:08, Dan Spray wrote: > > > > > > Hello all, > > > > > > > > > > > > I just started using check_ftp and check_pop for a couple of > > > > > > > > servers. > > > > > > > > > I > > > > > > > > > > > set it all up and Nagios seems to like my commands and all, > > > > > > however, > > > > > > > > > under Service Detail it says "(No output!) " so I said okay and > > > > > > ran > > > > > > > it > > > > > > > > > > from the command line, here is what I get: > > > > > > > > > > > > [root at NABU libexec]# ./check_ftp -H nabu > > > > > > FTP OK - 0.001 second response time on port 21|time= 0.001 > > > > > > Segmentation fault > > > > > > > > > > > > Anyone have any ideas on this? Thanks inadvance, > > > > > > > > > > > > Dan > > - -- > Jasmine Chua > Security Engineer, SecureCiRT (A SBU of Z-Vance Pte Ltd) > http://www.securecirt.com > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.0.6 (GNU/Linux) > Comment: For info see http://www.gnupg.org > > iD8DBQE9+jVxNgvTa7Hj2AURAvVwAJsEUlEjxApVndROXg7g+QSHL5uWHQCgkY5T > 2WVHRpsorDQoxjOLbY+F4fU= > =al89 > -----END PGP SIGNATURE----- > > > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > -------------- next part -------------- execve("./check_ftp", ["./check_ftp", "-H", "ftp.uninett.no", "-v"], [/* 21 vars */]) = 0 uname({sys="Linux", node="nagios.xxxxxxxxxxxx.no", ...}) = 0 brk(0) = 0x804c3a4 open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=24107, ...}) = 0 old_mmap(NULL, 24107, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40014000 close(3) = 0 open("/lib/libnsl.so.1", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`:\0\000"..., 1024) = 1024 fstat64(3, {st_mode=S_IFREG|0755, st_size=89424, ...}) = 0 old_mmap(NULL, 84636, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4001a000 mprotect(0x4002c000, 10908, PROT_NONE) = 0 old_mmap(0x4002c000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x12000) = 0x4002c000 old_mmap(0x4002d000, 6812, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4002d000 close(3) = 0 open("/lib/libresolv.so.2", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20\'\0"..., 1024) = 1024 fstat64(3, {st_mode=S_IFREG|0755, st_size=68925, ...}) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4002f000 old_mmap(NULL, 69408, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40030000 mprotect(0x4003e000, 12064, PROT_NONE) = 0 old_mmap(0x4003e000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xe000) = 0x4003e000 old_mmap(0x4003f000, 7968, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4003f000 close(3) = 0 open("/lib/libssl.so.2", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0000\221"..., 1024) = 1024 fstat64(3, {st_mode=S_IFREG|0755, st_size=211067, ...}) = 0 old_mmap(NULL, 182912, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40041000 mprotect(0x4006b000, 10880, PROT_NONE) = 0 old_mmap(0x4006b000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x2a000) = 0x4006b000 close(3) = 0 open("/lib/libcrypto.so.2", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\340S\2"..., 1024) = 1024 fstat64(3, {st_mode=S_IFREG|0755, st_size=925227, ...}) = 0 old_mmap(NULL, 801888, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4006e000 mprotect(0x40123000, 60512, PROT_NONE) = 0 old_mmap(0x40123000, 49152, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xb4000) = 0x40123000 old_mmap(0x4012f000, 11360, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4012f000 close(3) = 0 open("/lib/libutil.so.1", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`\16\0\000"..., 1024) = 1024 fstat64(3, {st_mode=S_IFREG|0755, st_size=11174, ...}) = 0 old_mmap(NULL, 11080, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40132000 mprotect(0x40134000, 2888, PROT_NONE) = 0 old_mmap(0x40134000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x1000) = 0x40134000 close(3) = 0 open("/lib/i686/libc.so.6", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0Pv\1B4\0"..., 1024) = 1024 fstat64(3, {st_mode=S_IFREG|0755, st_size=1402035, ...}) = 0 old_mmap(0x42000000, 1264960, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x42000000 mprotect(0x4212c000, 36160, PROT_NONE) = 0 old_mmap(0x4212c000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x12c000) = 0x4212c000 old_mmap(0x42131000, 15680, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x42131000 close(3) = 0 open("/lib/libdl.so.2", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360\31"..., 1024) = 1024 fstat64(3, {st_mode=S_IFREG|0755, st_size=12102, ...}) = 0 old_mmap(NULL, 11640, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40135000 mprotect(0x40137000, 3448, PROT_NONE) = 0 old_mmap(0x40137000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x1000) = 0x40137000 close(3) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40138000 mprotect(0x4006e000, 741376, PROT_READ|PROT_WRITE) = 0 mprotect(0x4006e000, 741376, PROT_READ|PROT_EXEC) = 0 munmap(0x40014000, 24107) = 0 brk(0) = 0x804c3a4 brk(0x804c3d4) = 0x804c3d4 brk(0x804d000) = 0x804d000 rt_sigaction(SIGALRM, {0x8049ff4, [ALRM], SA_RESTART|0x4000000}, {SIG_DFL}, 8) = 0 alarm(10) = 0 gettimeofday({1039810077, 981001}, NULL) = 0 gettimeofday({1039810077, 981202}, NULL) = 0 getpid() = 25701 open("/etc/resolv.conf", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=25, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40014000 read(3, "nameserver 195.159.0.100\n", 4096) = 25 read(3, "", 4096) = 0 close(3) = 0 munmap(0x40014000, 4096) = 0 uname({sys="Linux", node="nagios.xxxxxxxxxxxxxxxxx.no", ...}) = 0 socket(PF_UNIX, SOCK_STREAM, 0) = 3 connect(3, {sin_family=AF_UNIX, path="/var/run/.nscd_socket"}, 110) = -1 ENOENT (No such file or directory) close(3) = 0 open("/etc/nsswitch.conf", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=1750, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40014000 read(3, "#\n# /etc/nsswitch.conf\n#\n# An ex"..., 4096) = 1750 brk(0x804e000) = 0x804e000 read(3, "", 4096) = 0 close(3) = 0 munmap(0x40014000, 4096) = 0 open("/etc/ld.so.cache", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=24107, ...}) = 0 old_mmap(NULL, 24107, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40014000 close(3) = 0 open("/lib/libnss_files.so.2", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0\35\0"..., 1024) = 1024 fstat64(3, {st_mode=S_IFREG|0755, st_size=45415, ...}) = 0 old_mmap(NULL, 37848, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40139000 mprotect(0x40142000, 984, PROT_NONE) = 0 old_mmap(0x40142000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x9000) = 0x40142000 close(3) = 0 munmap(0x40014000, 24107) = 0 open("/etc/host.conf", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=17, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40014000 read(3, "order hosts,bind\n", 4096) = 17 read(3, "", 4096) = 0 close(3) = 0 munmap(0x40014000, 4096) = 0 open("/etc/hosts", O_RDONLY) = 3 fcntl64(3, F_GETFD) = 0 fcntl64(3, F_SETFD, FD_CLOEXEC) = 0 fstat64(3, {st_mode=S_IFREG|0644, st_size=175, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40014000 read(3, "# Do not remove the following li"..., 4096) = 175 read(3, "", 4096) = 0 close(3) = 0 munmap(0x40014000, 4096) = 0 open("/etc/ld.so.cache", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=24107, ...}) = 0 old_mmap(NULL, 24107, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40014000 close(3) = 0 open("/lib/libnss_nisplus.so.2", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200\33"..., 1024) = 1024 fstat64(3, {st_mode=S_IFREG|0755, st_size=46117, ...}) = 0 old_mmap(NULL, 41872, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40143000 mprotect(0x4014d000, 912, PROT_NONE) = 0 old_mmap(0x4014d000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x9000) = 0x4014d000 close(3) = 0 munmap(0x40014000, 24107) = 0 uname({sys="Linux", node="nagios.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.no", ...}) = 0 open("/var/nis/NIS_COLD_START", O_RDONLY) = -1 ENOENT (No such file or directory) open("/var/nis/NIS_COLD_START", O_RDONLY) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=24107, ...}) = 0 old_mmap(NULL, 24107, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40014000 close(3) = 0 open("/lib/libnss_dns.so.2", O_RDONLY) = 3 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320\r\0"..., 1024) = 1024 fstat64(3, {st_mode=S_IFREG|0755, st_size=16051, ...}) = 0 old_mmap(NULL, 15912, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4014e000 mprotect(0x40151000, 3624, PROT_NONE) = 0 old_mmap(0x40151000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x2000) = 0x40151000 close(3) = 0 munmap(0x40014000, 24107) = 0 socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 3 connect(3, {sin_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("195.159.0.100")}}, 28) = 0 send(3, "\242\253\1\0\0\1\0\0\0\0\0\0\3ftp\7uninett\2no\0\0\1\0"..., 32, 0) = 32 gettimeofday({1039810077, 994023}, NULL) = 0 poll([{fd=3, events=POLLIN, revents=POLLIN}], 1, 5000) = 1 recvfrom(3, "\242\253\201\200\0\1\0\2\0\4\0\4\3ftp\7uninett\2no\0\0"..., 1024, 0, {sin_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("195.159.0.100")}}, [16]) = 216 close(3) = 0 open("/etc/protocols", O_RDONLY) = 3 fcntl64(3, F_GETFD) = 0 fcntl64(3, F_SETFD, FD_CLOEXEC) = 0 fstat64(3, {st_mode=S_IFREG|0644, st_size=5834, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40014000 read(3, "# /etc/protocols:\n# $Id: protoco"..., 4096) = 4096 close(3) = 0 munmap(0x40014000, 4096) = 0 socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 3 connect(3, {sin_family=AF_INET, sin_port=htons(21), sin_addr=inet_addr("158.36.2.10")}}, 16) = 0 send(3, "QUIT\r\n", 6, 0) = 6 close(3) = 0 gettimeofday({1039810078, 37786}, NULL) = 0 alarm(0) = 10 fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40014000 write(1, "FTP OK - 0.057 second response"..., 62) = 62 --- SIGSEGV (Segmentation fault) --- +++ killed by SIGSEGV +++ From jasmine.chua at securecirt.com Fri Dec 13 21:33:08 2002 From: jasmine.chua at securecirt.com (Jasmine Chua) Date: Sat, 14 Dec 2002 04:33:08 +0800 Subject: Problem with check_ftp and check_pop In-Reply-To: References: Message-ID: <200212140433.15906.jasmine.chua@securecirt.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Looks like theres a potential bug going on around here! Nerheim : I had the same thing as you for check_dns I gotta put in an optional name server for it to work. Realised there is a segmentation fault. It maybe the dns tools themselves are not properly installed on the nameserver. However, dns returns OK so everything should be ok.However, I dont have that with check_ftp and check_pop. Spray: Looks almost the same to me.. not much significant difference. From what I had.. but my check_ftp works. This is my ./configure hope it helps you really. ./configure loading cache ./config.cache checking for a BSD compatible install... (cached) /usr/bin/install -c checking whether build environment is sane... yes checking whether make sets ${MAKE}... (cached) yes checking for working aclocal... found checking for working autoconf... found checking for working automake... found checking for working autoheader... found checking for working makeinfo... missing checking for a BSD compatible install... /usr/bin/install -c checking for gcc... (cached) gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... (cached) yes checking whether gcc accepts -g... (cached) yes checking whether make sets ${MAKE}... (cached) yes checking for gawk... (cached) gawk checking how to run the C preprocessor... (cached) gcc -E checking for elf_begin in -lelf... (cached) no checking for kvm_open in -lkvm... (cached) no checking for getloadavg in -lutil... (cached) yes checking for getloadavg... (cached) yes checking whether getloadavg requires setgid... (cached) yes checking group of /dev/kmem... (cached) kmem checking for working strtod... (cached) yes checking for ranlib... (cached) ranlib checking for aclocal... (cached) /usr/bin/aclocal checking for automake... (cached) /usr/bin/automake checking for autoconf... (cached) /usr/bin/autoconf checking for autoheader... (cached) /usr/bin/autoheader checking for python... no checking for perl... (cached) /usr/bin/perl checking for sh... (cached) /bin/sh checking for hostname... (cached) /bin/hostname checking for basename... (cached) /usr/bin/basename checking for main in -ldce... (cached) no checking for main in -lnsl... (cached) yes checking for socket in -lsocket... (cached) no checking for main in -lresolv... (cached) yes checking for main in -lcrypt... (cached) yes checking for PQsetdbLogin in -lpq... (cached) no configure: warning: Skipping PostgreSQL plugin (check_pgsql) configure: warning: LIBS=-lcrypt -lutil CPPFLAGS= configure: warning: install PostgreSQL libs to compile this plugin (see Requirements). checking for rc_read_config in -lradiusclient... (cached) yes checking for main in -lldap... (cached) no configure: warning: Skipping LDAP plugin configure: warning: install LDAP libs to compile this plugin (see Requirements). checking for mysql_init in -lmysqlclient... (cached) yes checking for mysql_close in -lmysqlclient... (cached) yes checking for mysql/mysql.h... (cached) yes checking for mysql/errmsg.h... (cached) yes checking for openssl... (cached) /usr/bin/openssl checking for openssl/x509.h... (cached) yes checking for openssl/ssl.h... (cached) yes checking for openssl/rsa.h... (cached) yes checking for openssl/pem.h... (cached) yes checking for openssl/crypto.h... (cached) yes checking for openssl/err.h... (cached) yes checking for CRYPTO_lock in -lcrypto... (cached) yes checking for main in -lssl... (cached) yes checking for ANSI C header files... (cached) yes checking whether time.h and sys/time.h may both be included... (cached) yes checking for sys/wait.h that is POSIX.1 compatible... (cached) yes checking for signal.h... (cached) yes checking for strings.h... (cached) yes checking for string.h... (cached) yes checking for syslog.h... (cached) yes checking for unistd.h... (cached) yes checking for uio.h... (cached) no checking for errno.h... (cached) yes checking for regex.h... (cached) yes checking for sys/types.h... (cached) yes checking for sys/time.h... (cached) yes checking for sys/socket.h... (cached) yes checking for sys/loadavg.h... (cached) no checking for stdarg.h... (cached) yes checking for sys/unistd.h... (cached) yes checking for unistd.h... (cached) yes checking for ctype.h... (cached) yes checking for sys/wait.h... (cached) yes checking for stdlib.h... (cached) yes checking for working const... (cached) yes checking whether struct tm is in sys/time.h or time.h... (cached) time.h checking for pid_t... (cached) yes checking for size_t... (cached) yes checking return type of signal handlers... (cached) void checking size of int... (cached) 4 checking size of long... (cached) 4 checking size of short... (cached) 2 checking for long long... (cached) yes checking for LL suffix on long long integers... (cached) yes checking for __va_copy... (cached) yes checking for C99 vsnprintf... (cached) yes checking for snprintf... (cached) yes checking for vsnprintf... (cached) yes checking for vasprintf... (cached) yes checking for asprintf... (cached) yes checking for getopt_long... yes checking for memmove... (cached) yes checking for select... (cached) yes checking for socket... (cached) yes checking for strdup... (cached) yes checking for strstr... (cached) yes checking for strtod... (cached) yes checking for strtol... (cached) yes checking for strtoul... (cached) yes checking for type of socket size... int checking for ps... (cached) /bin/ps ps syntax... /bin/ps -weo 'stat comm vsz rss user ppid args' checking for df... (cached) /bin/df df syntax... /bin/df -Pk checking for ping... (cached) /bin/ping ping syntax... /bin/ping -n -U -c checking for nslookup... (cached) /usr/bin/nslookup checking nslookup syntax... /usr/bin/nslookup -sil checking for host... (cached) /usr/bin/host checking host syntax... /usr/bin/host checking for uptime... (cached) /usr/bin/uptime checking for rpcinfo... (cached) /usr/sbin/rpcinfo checking for ntpdate... (cached) /usr/sbin/ntpdate checking for ntpdc... (cached) /usr/sbin/ntpdc checking for lmstat... no ** Get lmstat from Globetrotter Software to monitor flexlm licenses checking for smbclient... no ** Get smbclient from Samba.org to monitor SMB shares checking for who... (cached) /usr/bin/who checking for snmpget... (cached) /usr/bin/snmpget checking for snmpgetnext... (cached) /usr/bin/snmpgetnext ** Tried /usr/bin/perl - install Net::SNMP perl module if you want to use the perl snmp plugins checking for quakestat... no checking for qstat... no ** Get qstat from http://www.activesw.com/people/steve/qstat.html in order to make check_game plugin checking for fping... (cached) /usr/sbin/fping checking for ssh... (cached) /usr/bin/ssh checking for mailq... (cached) /usr/bin/mailq found /proc/meminfo checking for dig... (cached) /usr/bin/dig yes creating ./config.status creating Makefile creating subst creating plugins/Makefile creating plugins-scripts/Makefile creating plugins-scripts/subst creating plugins-scripts/utils.pm creating plugins-scripts/utils.sh creating command.cfg creating test.pl creating plugins/config.h plugins/config.h is unchanged creating plugins/common.h plugins/common.h is unchanged creating plugins/version.h plugins/version.h is unchanged creating plugins/netutils.h plugins/netutils.h is unchanged creating plugins/utils.h plugins/utils.h is unchanged creating plugins/popen.h plugins/popen.h is unchanged -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9+kQJNgvTa7Hj2AURApTcAJ9HvhJgPN68bgLuMa2eon8ZcqraZACgulFS E/J23f4WmzjN3e0EVDE/Zrs= =TJNk -----END PGP SIGNATURE----- ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From anders at jblinux.net Fri Dec 13 21:46:43 2002 From: anders at jblinux.net (Anders Nerheim) Date: 13 Dec 2002 21:46:43 +0100 Subject: Problem with check_ftp and check_pop In-Reply-To: <200212140433.15906.jasmine.chua@securecirt.com> References: <200212140433.15906.jasmine.chua@securecirt.com> Message-ID: <1039812429.2547.22.camel@aten> odd thing is that this works on 4 other server running rh 7.3. useing beta1 of plugins. gonna test beta1 on this server as well when I get the time. all servers were setup from the same kickstart file and runs same kernel/libs/whatever On Fri, 2002-12-13 at 21:33, Jasmine Chua wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Looks like theres a potential bug going on around here! > > Nerheim : > I had the same thing as you for check_dns I gotta put in an optional name > server for it to work. Realised there is a segmentation fault. It maybe the > dns tools themselves are not properly installed on the nameserver. However, > dns returns OK so everything should be ok.However, I dont have that with > check_ftp and check_pop. > > Spray: > Looks almost the same to me.. not much significant difference. From what I > had.. but my check_ftp works. This is my ./configure hope it helps you > really. > > ./configure > loading cache ./config.cache > checking for a BSD compatible install... (cached) /usr/bin/install -c > checking whether build environment is sane... yes > checking whether make sets ${MAKE}... (cached) yes > checking for working aclocal... found > checking for working autoconf... found > checking for working automake... found > checking for working autoheader... found > checking for working makeinfo... missing > checking for a BSD compatible install... /usr/bin/install -c > checking for gcc... (cached) gcc > checking whether the C compiler (gcc ) works... yes > checking whether the C compiler (gcc ) is a cross-compiler... no > checking whether we are using GNU C... (cached) yes > checking whether gcc accepts -g... (cached) yes > checking whether make sets ${MAKE}... (cached) yes > checking for gawk... (cached) gawk > checking how to run the C preprocessor... (cached) gcc -E > checking for elf_begin in -lelf... (cached) no > checking for kvm_open in -lkvm... (cached) no > checking for getloadavg in -lutil... (cached) yes > checking for getloadavg... (cached) yes > checking whether getloadavg requires setgid... (cached) yes > checking group of /dev/kmem... (cached) kmem > checking for working strtod... (cached) yes > checking for ranlib... (cached) ranlib > checking for aclocal... (cached) /usr/bin/aclocal > checking for automake... (cached) /usr/bin/automake > checking for autoconf... (cached) /usr/bin/autoconf > checking for autoheader... (cached) /usr/bin/autoheader > checking for python... no > checking for perl... (cached) /usr/bin/perl > checking for sh... (cached) /bin/sh > checking for hostname... (cached) /bin/hostname > checking for basename... (cached) /usr/bin/basename > checking for main in -ldce... (cached) no > checking for main in -lnsl... (cached) yes > checking for socket in -lsocket... (cached) no > checking for main in -lresolv... (cached) yes > checking for main in -lcrypt... (cached) yes > checking for PQsetdbLogin in -lpq... (cached) no > configure: warning: Skipping PostgreSQL plugin (check_pgsql) > configure: warning: LIBS=-lcrypt -lutil CPPFLAGS= > configure: warning: install PostgreSQL libs to compile this plugin (see > Requirements). > checking for rc_read_config in -lradiusclient... (cached) yes > checking for main in -lldap... (cached) no > configure: warning: Skipping LDAP plugin > configure: warning: install LDAP libs to compile this plugin (see > Requirements). > checking for mysql_init in -lmysqlclient... (cached) yes > checking for mysql_close in -lmysqlclient... (cached) yes > checking for mysql/mysql.h... (cached) yes > checking for mysql/errmsg.h... (cached) yes > checking for openssl... (cached) /usr/bin/openssl > checking for openssl/x509.h... (cached) yes > checking for openssl/ssl.h... (cached) yes > checking for openssl/rsa.h... (cached) yes > checking for openssl/pem.h... (cached) yes > checking for openssl/crypto.h... (cached) yes > checking for openssl/err.h... (cached) yes > checking for CRYPTO_lock in -lcrypto... (cached) yes > checking for main in -lssl... (cached) yes > checking for ANSI C header files... (cached) yes > checking whether time.h and sys/time.h may both be included... (cached) yes > checking for sys/wait.h that is POSIX.1 compatible... (cached) yes > checking for signal.h... (cached) yes > checking for strings.h... (cached) yes > checking for string.h... (cached) yes > checking for syslog.h... (cached) yes > checking for unistd.h... (cached) yes > checking for uio.h... (cached) no > checking for errno.h... (cached) yes > checking for regex.h... (cached) yes > checking for sys/types.h... (cached) yes > checking for sys/time.h... (cached) yes > checking for sys/socket.h... (cached) yes > checking for sys/loadavg.h... (cached) no > checking for stdarg.h... (cached) yes > checking for sys/unistd.h... (cached) yes > checking for unistd.h... (cached) yes > checking for ctype.h... (cached) yes > checking for sys/wait.h... (cached) yes > checking for stdlib.h... (cached) yes > checking for working const... (cached) yes > checking whether struct tm is in sys/time.h or time.h... (cached) time.h > checking for pid_t... (cached) yes > checking for size_t... (cached) yes > checking return type of signal handlers... (cached) void > checking size of int... (cached) 4 > checking size of long... (cached) 4 > checking size of short... (cached) 2 > checking for long long... (cached) yes > checking for LL suffix on long long integers... (cached) yes > checking for __va_copy... (cached) yes > checking for C99 vsnprintf... (cached) yes > checking for snprintf... (cached) yes > checking for vsnprintf... (cached) yes > checking for vasprintf... (cached) yes > checking for asprintf... (cached) yes > checking for getopt_long... yes > checking for memmove... (cached) yes > checking for select... (cached) yes > checking for socket... (cached) yes > checking for strdup... (cached) yes > checking for strstr... (cached) yes > checking for strtod... (cached) yes > checking for strtol... (cached) yes > checking for strtoul... (cached) yes > checking for type of socket size... int > checking for ps... (cached) /bin/ps > ps syntax... /bin/ps -weo 'stat comm vsz rss user ppid args' > checking for df... (cached) /bin/df > df syntax... /bin/df -Pk > checking for ping... (cached) /bin/ping > ping syntax... /bin/ping -n -U -c > checking for nslookup... (cached) /usr/bin/nslookup > checking nslookup syntax... /usr/bin/nslookup -sil > checking for host... (cached) /usr/bin/host > checking host syntax... /usr/bin/host > checking for uptime... (cached) /usr/bin/uptime > checking for rpcinfo... (cached) /usr/sbin/rpcinfo > checking for ntpdate... (cached) /usr/sbin/ntpdate > checking for ntpdc... (cached) /usr/sbin/ntpdc > checking for lmstat... no > ** Get lmstat from Globetrotter Software to monitor flexlm licenses > checking for smbclient... no > ** Get smbclient from Samba.org to monitor SMB shares > checking for who... (cached) /usr/bin/who > checking for snmpget... (cached) /usr/bin/snmpget > checking for snmpgetnext... (cached) /usr/bin/snmpgetnext > ** Tried /usr/bin/perl - install Net::SNMP perl module if you want to > use the perl snmp plugins > checking for quakestat... no > checking for qstat... no > ** Get qstat from http://www.activesw.com/people/steve/qstat.html in order to > make check_game plugin > checking for fping... (cached) /usr/sbin/fping > checking for ssh... (cached) /usr/bin/ssh > checking for mailq... (cached) /usr/bin/mailq > found /proc/meminfo > checking for dig... (cached) /usr/bin/dig > yes > creating ./config.status > creating Makefile > creating subst > creating plugins/Makefile > creating plugins-scripts/Makefile > creating plugins-scripts/subst > creating plugins-scripts/utils.pm > creating plugins-scripts/utils.sh > creating command.cfg > creating test.pl > creating plugins/config.h > plugins/config.h is unchanged > creating plugins/common.h > plugins/common.h is unchanged > creating plugins/version.h > plugins/version.h is unchanged > creating plugins/netutils.h > plugins/netutils.h is unchanged > creating plugins/utils.h > plugins/utils.h is unchanged > creating plugins/popen.h > plugins/popen.h is unchanged > > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.0.6 (GNU/Linux) > Comment: For info see http://www.gnupg.org > > iD8DBQE9+kQJNgvTa7Hj2AURApTcAJ9HvhJgPN68bgLuMa2eon8ZcqraZACgulFS > E/J23f4WmzjN3e0EVDE/Zrs= > =TJNk > -----END PGP SIGNATURE----- > > ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From tbyrne at comscore.com Sat Dec 14 00:13:54 2002 From: tbyrne at comscore.com (Byrne, Tim) Date: Fri, 13 Dec 2002 18:13:54 -0500 Subject: extra recovery notifications Message-ID: <672C6A1C04F3154BB4D9F541E9E5954F03253B9E@csiadexch01.office.comscore.com> This doesn't seem right to me. If I set up two hosts, ("A" and "B"), and make "A" have a dependency on "B" with notification_failure_criteria as "d,u" Nagios correctly suppresses "down" notifications for "A" when "B" is down or unreachable. However, when they recover, I get a recovery notification for both. I didn't think Nagios would send a recovery notification for something it didn't send a problem notification for. Sorry if that sounds confusing, but I guess that's the nature of the whole dependency stuff. -Tim ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From jasmine.chua at securecirt.com Sat Dec 14 00:38:25 2002 From: jasmine.chua at securecirt.com (Jasmine Chua) Date: Sat, 14 Dec 2002 07:38:25 +0800 Subject: extra recovery notifications In-Reply-To: <672C6A1C04F3154BB4D9F541E9E5954F03253B9E@csiadexch01.office.comscore.com> References: <672C6A1C04F3154BB4D9F541E9E5954F03253B9E@csiadexch01.office.comscore.com> Message-ID: <200212140738.36473.jasmine.chua@securecirt.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 You have to specify d,u,r for your notifcation_failure_criteria then recovery notification will be supressed so you will not get notification for both. Nagios will still send a notification recovery for both if you did not specify (r) because host A depends on host B, if host B recovers, host A recovers as well. On Saturday 14 December 2002 07:13, Byrne, Tim wrote: > This doesn't seem right to me. > > If I set up two hosts, ("A" and "B"), and make "A" have a dependency on "B" > with notification_failure_criteria as "d,u" Nagios correctly suppresses > "down" notifications for "A" when "B" is down or unreachable. However, > when they recover, I get a recovery notification for both. I didn't think > Nagios would send a recovery notification for something it didn't send a > problem notification for. > > Sorry if that sounds confusing, but I guess that's the nature of the whole > dependency stuff. > > -Tim > > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users - -- Jasmine Chua Security Engineer, SecureCiRT (A SBU of Z-Vance Pte Ltd) http://www.securecirt.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9+m93NgvTa7Hj2AURAqmjAJsGLYYWkvwX8oQhtOEEm7JdwnTrjgCgzfDA afgmOf1m72+keyTnPautzUY= =5ihf -----END PGP SIGNATURE----- ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From Vince.McIntyre at atnf.csiro.au Sun Dec 15 05:40:14 2002 From: Vince.McIntyre at atnf.csiro.au (Vincent McIntyre) Date: Sun, 15 Dec 2002 15:40:14 +1100 (EST) Subject: using existing netgroups Message-ID: Hello I could not find this in the faq or after searching the list archive - Is there a tool available to translate existing (NIS) netgroups information into a set of host and host group definitions? This would be useful when setting up (and maintaining) nagios on a large network. Come to think of it, once nagios was up, it might be better to make the nagios database the primary, and generate the netgroups map from it. Cheers Vincent McIntyre Australia Telescope National Facility, CSIRO PO Box 76, Epping, NSW 1710, AUSTRALIA ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From sdearth at ncsl.ca Sun Dec 15 08:32:10 2002 From: sdearth at ncsl.ca (Steve Dearth) Date: Sun, 15 Dec 2002 01:32:10 -0600 Subject: check_ftp segmentation fault Message-ID: <000501c2a40c$14694000$c804a8c0@ncsl.ca> I get a seg fault when running: check_ftp -H (IP) -p 21 However it works fine when I do: check_tcp -H (IP) -p 21 What gives? ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From Shane_Seidel at gwf.com.au Mon Dec 16 03:09:36 2002 From: Shane_Seidel at gwf.com.au (Shane_Seidel at gwf.com.au) Date: Mon, 16 Dec 2002 12:09:36 +1000 Subject: Win2000 App Log errors from NS client Message-ID: <4A256C91.000C9D69.00@gisw900.gwf.com.au> Hi All, We are running Nagios 1.0 on our Win2000 + Citrix server farm. Can anyone explain what is causing the error from the Application Log and how to fix it? Monitoring is working fine but the admin blames the NS Client every time he has a problem. Client version is 1.0.7.0. Details below. Thanks in advance. Shane >From the Win 2000 Application Log Event Type: ********************************************************************************************************************************************** This email and its attachments are confidential subject to copyright and may be legally privileged. If they have come to you in error you should take no action based upon the contents nor should you copy or show them to anyone. Please delete the email and its attachments and inform administrators at gwf.com.au Any views or opinions expressed are those of the author and do not necessarily represent those of George Weston Foods Ltd. Security: Internet email is not a completely secure medium, please note this when considering the content of your message. Viruses: We take precautions to ensure email is free of viruses but cannot guarantee this. Accordingly we advise scanning all email and attachments ********************************************************************************************************************************************* -------------- next part -------------- ? ? ? ?Error Event Source: ? ? ? ?NSClient Event Category: ? ? ? ?None Event ID: ? ? ? ?2 Date: ? ? ? ? ? ? ? ?9/11/2002 Time: ? ? ? ? ? ? ? ?3:10:51 PM User: ? ? ? ? ? ? ? ?N/A Computer: ? ? ? ?GISW220 Description: The description for Event ID ( 2 ) in Source ( NSClient ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. The following information is part of the event: NSClient Error: PDH.dll Add \TerminalServices/Active Sessions - ERROR: 0xC0000BC0. services.cfg service[gisw220-Citrix-IMA]=PING;0;24x7;3;5;1;gwfis-admins;240;24x7;1;1;0;;check_ping!200.0,20%!800.0,80% service[gisw220-Citrix-IMA]=DiskUsage M;0;24x7;3;10;1;gwfis-admins;120;24x7;1;1;0;;check_nt_disk_M service[gisw220-Citrix-IMA]=DiskUsage N;0;24x7;3;10;1;gwfis-admins;120;24x7;1;1;0;;check_nt_disk_N service[gisw220-Citrix-IMA]=CPU;0;24x7;3;2;1;gwfis-admins;120;24x7;1;1;0;;check_nt_cpuload service[gisw220-Citrix-IMA]=ClientVersion;0;24x7;3;10;1;gwfis-admins;120;24x7;1;1;0;;check_nt_clientversion service[gisw220-Citrix-IMA]=MemUsage;0;24x7;3;5;1;gwfis-admins;120;24x7;1;1;0;;check_nt_memuse service[gisw220-Citrix-IMA]=PagingFileMemUsage;0;24x7;3;5;1;gwfis-admins;120;24x7;1;1;0;;check_nt_pagingfile service[gisw220-Citrix-IMA]=Uptime;0;24x7;3;10;1;gwfis-admins;120;24x7;1;1;0;;check_nt_uptime service[gisw220-Citrix-IMA]=Mem Pages sec;0;24x7;3;5;1;gwfis-admins;120;24x7;1;1;0;;check_nt_mem_pages service[gisw220-Citrix-IMA]=Disk Queue;0;24x7;3;5;1;gwfis-admins;120;24x7;1;1;0;;check_nt_disk_queue_length service[gisw220-Citrix-IMA]=Processor Time;0;24x7;3;5;1;gwfis-admins;120;24x7;1;1;0;;check_nt_processor_time service[gisw220-Citrix-IMA]=Print;0;24x7;3;5;1;gwfis-admins;120;24x7;1;1;0;;check_nt_spooler service[gisw220-Citrix-IMA]=Citrix TM1;0;24x7;3;5;1;gwfis-admins;120;24x7;1;1;0;;check_citrix_tm1 service[gisw220-Citrix-IMA]=Citrix Cognos;0;24x7;3;5;1;gwfis-admins;120;24x7;1;1;0;;check_citrix_cognos service[gisw220-Citrix-IMA]=Citrix Internet Explorer;0;24x7;3;5;1;gwfis-admins;120;24x7;1;1;0;;check_citrix_ie service[gisw220-Citrix-IMA]=Citrix SAP Business Explorer Analyser;0;24x7;3;5;1;gwfis-admins;120;24x7;1;1;0;;check_citrix_sap_bea From bliwanag at yahoo.com Mon Dec 16 03:13:45 2002 From: bliwanag at yahoo.com (bernie liwanag) Date: Sun, 15 Dec 2002 18:13:45 -0800 (PST) Subject: Process command wont function Message-ID: <20021216021345.54339.qmail@web40605.mail.yahoo.com> To All, How can I activate the "Process Commands" under the "Process Info" menu option?It seems that I can't execute any process using the nagio web enabled program. Thanks! Bernie __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From Daniel.Siegers at bauerverlag.de Mon Dec 16 13:22:17 2002 From: Daniel.Siegers at bauerverlag.de (Daniel Siegers) Date: Mon, 16 Dec 2002 13:22:17 +0100 Subject: nsca and allowed_hosts Message-ID: Hi there, is there a way to give the allowed_hosts option in he nsca.cfg a range of ipadresses ? Mit freundlichen Gr??en / Kind regards Daniel Siegers Systemadministrator Heinrich Bauer Dienstleistungs KG Brieffach 4620 Burchardstra?e 11 D-20077 Hamburg Telefon +49 (40)-3019-1991 Fax +49 (40)-3019-140-1991 E-Mail Daniel.Siegers at Bauerverlag.de -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Daniel Siegers.vcf Type: text/x-vcard Size: 227 bytes Desc: not available URL: From R.Ruecker at st-ag.de Mon Dec 16 13:53:30 2002 From: R.Ruecker at st-ag.de (Ruecker, Rainer) Date: Mon, 16 Dec 2002 13:53:30 +0100 Subject: Win2000 App Log errors from NS client Message-ID: > Hi All, > > We are running Nagios 1.0 on our Win2000 + Citrix server > farm. Can anyone > explain what is causing the error from the Application Log > and how to fix it? > Monitoring is working fine but the admin blames the NS Client > every time he has > a problem. Client version is 1.0.7.0. > > Details below. > > Thanks in advance. > Shane > > From the Win 2000 Application Log > > Event Type: Error >Event Source: NSClient >Event Category: None >Event ID: 2 >Date: 9/11/2002 >Time: 3:10:51 PM >User: N/A >Computer: GISW220 >Description: >The description for Event ID ( 2 ) in Source ( NSClient ) cannot >be found. The local computer may not have the necessary registry >information or message DLL files to display messages from a >remote computer. The following information is part of the event: >NSClient Error: PDH.dll Add \TerminalServices/Active Sessions >- ERROR: 0xC0000BC0. Well, it looks like you've specified "\TerminalServices/Active Sessions" instead of "\\TerminalServices\\Active Sessions" ^ in your config-File. The pathnames for the perf-counters only use backslashes. Error 0xC0000BC0 translates into "Unable to parse the counter path. Check the format and syntax of the specified path." (See jwapdhmsg.pas from the NSClient distribution) Cheers Rainer Ruecker ST-AG ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From pamirian at calculus.ca Mon Dec 16 15:10:43 2002 From: pamirian at calculus.ca (Patrick Amirian) Date: Mon, 16 Dec 2002 09:10:43 -0500 Subject: how to order my hosts in nagios Message-ID: <002701c2a50c$ee584cb0$c8040201@PAIE250> Hi, Is there an ordering system ? define host { use generic-host host_name host1 alias rs6000_1 address 1.2.3.4 parents FDDISwitch check_command check-host-alive max_check_attempts 10 notification_interval 120 notification_period 24x7 notification_options d,u,r ORDER 10 } so that i twill appear in nagios in rank 10 ? is there such a thing ? thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From listuser at neo.pittstate.edu Mon Dec 16 16:19:32 2002 From: listuser at neo.pittstate.edu (listuser at neo.pittstate.edu) Date: Mon, 16 Dec 2002 09:19:32 -0600 (CST) Subject: time until first mail notification In-Reply-To: <3DF9D8AF.52F44943@gcc.dhl.com> References: <3DF9D8AF.52F44943@gcc.dhl.com> Message-ID: I think I need to do this too. I occasionally get false positives for hosts I know didn't go down or have any sort of service interuption. I see the max_check_attempts option but I don't see a retry interval. Can you point me towards that particular doc? Thanks Justin On Fri, 13 Dec 2002, Tom DE BLENDE wrote: > Yes, increase the amount of retries before a service goes into a hard > state. Or extend the retry interval. > > Carles Amig? wrote: > > > > Hello, > > > > Is it possible to delay some minutes the first e-mail notification of a > > host or a service failure? ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From listuser at neo.pittstate.edu Mon Dec 16 16:26:55 2002 From: listuser at neo.pittstate.edu (listuser at neo.pittstate.edu) Date: Mon, 16 Dec 2002 09:26:55 -0600 (CST) Subject: Problem with check_ftp and check_pop In-Reply-To: <1039812429.2547.22.camel@aten> References: <1039812429.2547.22.camel@aten> Message-ID: On 13 Dec 2002, Anders Nerheim wrote: > odd thing is that this works on 4 other server running rh 7.3. useing > beta1 of plugins. gonna test beta1 on this server as well when I get the > time. > > all servers were setup from the same kickstart file and runs same > kernel/libs/whatever I'm running nagio-1.0 with nagios-plugins-1.3.0-beta2 on a RH 7.2 box with no problems. # ./configure --prefix=/usr/local/nagios --with-cgiurl=/tools/nagios/cgi-bin --with-nagios-user=nagios --with-nagio s-grp=nagios Justin ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From carles at servidores.com Mon Dec 16 16:36:31 2002 From: carles at servidores.com (Carles =?ISO-8859-1?Q?Amig=F3?=) Date: 16 Dec 2002 16:36:31 +0100 Subject: time until first mail notification In-Reply-To: References: Message-ID: <1040052990.26961.25.camel@fr3nd> Hello, notification_interval Interval you recieve the notifications normal_check_interval the retry interval when host/service is ok retry_check_interval the retry interval when host/service is not ok Regards On Mon, 2002-12-16 at 16:19, listuser at neo.pittstate.edu wrote: > I think I need to do this too. I occasionally get false positives for > hosts I know didn't go down or have any sort of service interuption. I > see the max_check_attempts option but I don't see a retry interval. Can > you point me towards that particular doc? Thanks > > Justin > > On Fri, 13 Dec 2002, Tom DE BLENDE wrote: > > > Yes, increase the amount of retries before a service goes into a hard > > state. Or extend the retry interval. > > > > Carles Amig? wrote: > > > > > > Hello, > > > > > > Is it possible to delay some minutes the first e-mail notification of a > > > host or a service failure? -- Carles Amig? Mart?nez Resp. Advanced Hosting Servidores.com Tel: (+34) 902 999 707 - Fax: (+34) 93 268 14 79 carles at servidores.com - http://www.servidores.com Servidores.com es un servicio de Inlander Communications SL ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From tbyrne at comscore.com Mon Dec 16 16:39:46 2002 From: tbyrne at comscore.com (Byrne, Tim) Date: Mon, 16 Dec 2002 10:39:46 -0500 Subject: extra recovery notifications Message-ID: <672C6A1C04F3154BB4D9F541E9E5954F03253BA0@csiadexch01.office.comscore.com> I tried to add the "r" as you suggested, but then Nagios fails it's pre-flight check with "Could not add object property". The documentation seems to suggest that the only valid notification_failure_criteria are "o", "d", "u", and "n". Interestingly using "n" also makes Nagios fail it's pre-flight. http://nagios.sourceforge.net/docs/1_0/xodtemplate.html#hostdependency Any other ideas? -Tim -----Original Message----- From: Jasmine Chua [mailto:jasmine.chua at securecirt.com] Sent: Friday, December 13, 2002 5:38 PM To: nagios-users at lists.sourceforge.net Cc: Byrne, Tim Subject: Re: [Nagios-users] extra recovery notifications -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 You have to specify d,u,r for your notifcation_failure_criteria then recovery notification will be supressed so you will not get notification for both. Nagios will still send a notification recovery for both if you did not specify (r) because host A depends on host B, if host B recovers, host A recovers as well. On Saturday 14 December 2002 07:13, Byrne, Tim wrote: > This doesn't seem right to me. > > If I set up two hosts, ("A" and "B"), and make "A" have a dependency on "B" > with notification_failure_criteria as "d,u" Nagios correctly suppresses > "down" notifications for "A" when "B" is down or unreachable. However, > when they recover, I get a recovery notification for both. I didn't think > Nagios would send a recovery notification for something it didn't send a > problem notification for. > > Sorry if that sounds confusing, but I guess that's the nature of the whole > dependency stuff. > > -Tim > > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users - -- Jasmine Chua Security Engineer, SecureCiRT (A SBU of Z-Vance Pte Ltd) http://www.securecirt.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9+m93NgvTa7Hj2AURAqmjAJsGLYYWkvwX8oQhtOEEm7JdwnTrjgCgzfDA afgmOf1m72+keyTnPautzUY= =5ihf -----END PGP SIGNATURE----- ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From mat at avedya.com Mon Dec 16 17:04:16 2002 From: mat at avedya.com (Matthieu Parisot) Date: Mon, 16 Dec 2002 17:04:16 +0100 Subject: Host / Service notification logic In-Reply-To: References: Message-ID: <000901c2a51c$c87dcc30$6d03a8c0@SPACEWT8ZDMO9> Hi list! I'm doing something to monitor my switches, and I would like to be sure it's not too stupid: I consider my switch as an host, and every ports as a service; The switch is monitored by check_host_alive, and the ports are monitored with check_snmp; Will I be notified only once if the check_host_alive fails, or 25 times (1 for the host, and 24 others for all ports which will fail) ? My first thought was that I will be notified only once, but after digging into the doc, I'm more thinking about 25. The solution seems to be to add dependencies, but i can't see how to setup it; Could someone explain me how to do that, and if considering a switch port as service is useless? Thanks, Matthieu ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From Williamsp at ci.boulder.co.us Mon Dec 16 17:14:48 2002 From: Williamsp at ci.boulder.co.us (Paul Williams) Date: Mon, 16 Dec 2002 09:14:48 -0700 Subject: Host / Service notification logic Message-ID: If Nagios finds the host itself to be down, it won't notify that each of the associated services are down. So if you're check_host command in the host definition (check-host-alive) fails, you'll get just the one notification. Paul >>> "Matthieu Parisot" 12/16/02 09:04AM >>> Hi list! I'm doing something to monitor my switches, and I would like to be sure it's not too stupid: I consider my switch as an host, and every ports as a service; The switch is monitored by check_host_alive, and the ports are monitored with check_snmp; Will I be notified only once if the check_host_alive fails, or 25 times (1 for the host, and 24 others for all ports which will fail) ? My first thought was that I will be notified only once, but after digging into the doc, I'm more thinking about 25. The solution seems to be to add dependencies, but i can't see how to setup it; Could someone explain me how to do that, and if considering a switch port as service is useless? Thanks, Matthieu ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From pamirian at calculus.ca Mon Dec 16 17:32:25 2002 From: pamirian at calculus.ca (Patrick Amirian) Date: Mon, 16 Dec 2002 11:32:25 -0500 Subject: compile again nagios and there is no statusmap.cgi Message-ID: <003c01c2a520$b7a31510$c8040201@PAIE250> Hey guys, I recompiled a new nagios on another machine and I can't make the statusmap work. I checked my /usr/local/nagios/sbin and there was no statusmap.cgi file. Anyways I copied this from from another machine and I'm getting error 500. How come the when I installed nagios it didn't install the statusmap.cgi file . I didn't spedify --disable-statusmap=disables and yet the file has not been installed. ideas ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jasmine.chua at securecirt.com Mon Dec 16 17:55:49 2002 From: jasmine.chua at securecirt.com (Jasmine Chua) Date: Tue, 17 Dec 2002 00:55:49 +0800 Subject: extra recovery notifications In-Reply-To: <672C6A1C04F3154BB4D9F541E9E5954F03253BA4@csiadexch01.office.comscore.com> References: <672C6A1C04F3154BB4D9F541E9E5954F03253BA4@csiadexch01.office.comscore.com> Message-ID: <200212170055.57384.jasmine.chua@securecirt.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 haha.. sorry Tim, was busy doing something about host definitions that day. Therefore, got mixed up with the options. Tim, you are right about the options dont worry. Just follow the docs regarding the options. Do you have a snippet of your host dependency definition? On Tuesday 17 December 2002 00:43, you wrote: > Does the "r" option work for you? I looked at the source code and it seems > like only "o", "d", and "u" would work. > > else if(!strcmp(variable,"notification_failure_options") || > !strcmp(variable,"notification_failure_criteria")){ > for(temp_ptr=strtok(value,", ");temp_ptr;temp_ptr=strtok(NULL,", ")){ > if(!strcmp(temp_ptr,"o") || !strcmp(temp_ptr,"up")) > temp_hostdependency->fail_notify_on_up=TRUE; > else if(!strcmp(temp_ptr,"d") || !strcmp(temp_ptr,"down")) > temp_hostdependency->fail_notify_on_down=TRUE; > else if(!strcmp(temp_ptr,"u") || !strcmp(temp_ptr,"unreachable")) > temp_hostdependency->fail_notify_on_unreachable=TRUE; > else{ > #ifdef DEBUG1 > snprintf(temp_buffer,sizeof(temp_buffer)-1,"Error: Invalid > notification dependency option '%s' in hostdependency > definition.\n",temp_ptr); > temp_buffer[sizeof(temp_buffer)-1]='\x0'; > write_to_logs_and_console(temp_buffer,NSLOG_CONFIG_ERROR,TRUE); > #endif > return ERROR; > } > } > temp_hostdependency->have_notification_dependency_options=TRUE; > } > > -Tim > > -----Original Message----- > From: Byrne, Tim > Sent: Monday, December 16, 2002 9:40 AM > To: 'Jasmine Chua'; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] extra recovery notifications > > > I tried to add the "r" as you suggested, but then Nagios fails it's > pre-flight check with "Could not add object property". The documentation > seems to suggest that the only valid notification_failure_criteria are "o", > "d", "u", and "n". Interestingly using "n" also makes Nagios fail it's > pre-flight. > > http://nagios.sourceforge.net/docs/1_0/xodtemplate.html#hostdependency > > Any other ideas? > > -Tim > > -----Original Message----- > From: Jasmine Chua [mailto:jasmine.chua at securecirt.com] > Sent: Friday, December 13, 2002 5:38 PM > To: nagios-users at lists.sourceforge.net > Cc: Byrne, Tim > Subject: Re: [Nagios-users] extra recovery notifications > > > You have to specify d,u,r for your notifcation_failure_criteria then > recovery > notification will be supressed so you will not get notification for both. > Nagios will still send a notification recovery for both if you did not > specify (r) because host A depends on host B, if host B recovers, host A > recovers as well. > > On Saturday 14 December 2002 07:13, Byrne, Tim wrote: > > This doesn't seem right to me. > > > > If I set up two hosts, ("A" and "B"), and make "A" have a dependency on > > "B" > > > with notification_failure_criteria as "d,u" Nagios correctly suppresses > > "down" notifications for "A" when "B" is down or unreachable. However, > > when they recover, I get a recovery notification for both. I didn't > > think Nagios would send a recovery notification for something it didn't > > send a problem notification for. > > > > Sorry if that sounds confusing, but I guess that's the nature of the > > whole dependency stuff. > > > > -Tim > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by: > > With Great Power, Comes Great Responsibility > > Learn to use your power at OSDN's High Performance Computing Channel > > http://hpc.devchannel.org/ > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users - -- Jasmine Chua Security Engineer, SecureCiRT (A SBU of Z-Vance Pte Ltd) http://www.securecirt.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9/gWbNgvTa7Hj2AURAp2xAJ9KheJfuqRmWKo61VymJIV6JkbFRgCgsxSz rMHWFENC8uOM98oIOCieH2Y= =y6wv -----END PGP SIGNATURE----- ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From jasmine.chua at securecirt.com Mon Dec 16 17:58:22 2002 From: jasmine.chua at securecirt.com (Jasmine Chua) Date: Tue, 17 Dec 2002 00:58:22 +0800 Subject: nsca and allowed_hosts In-Reply-To: References: Message-ID: <200212170058.30379.jasmine.chua@securecirt.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Yes you can. Just need to put a comma btw the IP addresses allowed_hosts=xxx.xxx.xxx.xxx,xxx.xxx.xxx.xxx,xxx.xxx.xxx.xxx On Monday 16 December 2002 20:22, Daniel Siegers wrote: > Hi there, > > is there a way to give the allowed_hosts option in he nsca.cfg a range of > ipadresses ? > > > > Mit freundlichen Gr??en / Kind regards > > Daniel Siegers > Systemadministrator > > Heinrich Bauer Dienstleistungs KG > Brieffach 4620 > Burchardstra?e 11 > D-20077 Hamburg > > Telefon +49 (40)-3019-1991 > Fax +49 (40)-3019-140-1991 > > E-Mail Daniel.Siegers at Bauerverlag.de - -- Jasmine Chua Security Engineer, SecureCiRT (A SBU of Z-Vance Pte Ltd) http://www.securecirt.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9/gY0NgvTa7Hj2AURAvp6AJ9AuFxC+uc5j/jP6lbnCXIUl7JAxwCgq4X7 p3ZWcgLFDHPKYftOAU0k7kk= =SUOc -----END PGP SIGNATURE----- ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From russell at quadrix.com Mon Dec 16 17:57:50 2002 From: russell at quadrix.com (Russell Scibetti) Date: Mon, 16 Dec 2002 11:57:50 -0500 Subject: User Access to certain hosts References: Message-ID: <3DFE060E.6010505@quadrix.com> As a sort of related question... I have a host with different services on it, but half of the services are for one user and half are for another. I know I can split the view based on the contactgroup for each service, and that works. But I also want one of the users to be able to see the host status. If I add his contactgroup for that host (actually, that hostgroup with only one member), he can see all services for that host. Is there anyway for a user to only see the host, and not all services on it? Russell Scibetti Volker.Aust at premiere.de wrote: >Sure is this possible. You have to configure a user for your customer in >your htpasswd.users. Then configure a contact with the same name (you can >set notification_period to "none" if you don't want that they get >notifications). This contact have to be member of a contactgroup which you >assign to the hosts or services. > >Hope this helps. > >-vol > >>-----Original Message----- >>From: Chris Dos [mailto:chris at chrisdos.com] >>Sent: Thursday, December 12, 2002 5:42 PM >>To: nagios-users at lists.sourceforge.net >>Subject: [Nagios-users] User Access to certain hosts >> >> >>Is there a way to allow certain users to have access to views of only >>certain hosts? I work for a hosting company that would like to allow >>the clients that pay for monitoring to be able to view the status of >>their server but not anyone elses. Is this possible or is this >>something I should post to the development list? >> >> Chris >>-- >>Chris Dos >>Senior Engineer >>Huge Hosting >> >> >> >>------------------------------------------------------- >>This sf.net email is sponsored by: >>With Great Power, Comes Great Responsibility >>Learn to use your power at OSDN's High Performance Computing Channel >>http://hpc.devchannel.org/ >>_______________________________________________ >>Nagios-users mailing list >>Nagios-users at lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/nagios-users >> > > >------------------------------------------------------- >This sf.net email is sponsored by: >With Great Power, Comes Great Responsibility >Learn to use your power at OSDN's High Performance Computing Channel >http://hpc.devchannel.org/ >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users > > -- Russell Scibetti Quadrix Solutions, Inc. http://www.quadrix.com (732) 235-2335, ext. 7038 -------------- next part -------------- An HTML attachment was scrubbed... URL: From GPotter at MarathonOil.com Mon Dec 16 19:02:45 2002 From: GPotter at MarathonOil.com (Potter, G M (Greg)) Date: Mon, 16 Dec 2002 12:02:45 -0600 Subject: compile again Nagios and there is no statusmap.cgi Message-ID: Could be. Have you looked in your apache error log for any messages. Does it say something about statusmap.cgi exiting pre-maturely? Do you have the LD_LIBRARY_PATH set correctly in the httpd.conf file? (SetENV LD_LIBRARY_PATH /usr/local/lib) Greg -----Original Message----- From: Patrick Amirian [mailto:pamirian at calculus.ca] Sent: Monday, December 16, 2002 11:58 AM To: Potter, G M (Greg); patrick.amirian at cognicase.ca Subject: RE : [Nagios-users] compile again nagios and there is no statusmap.cgi Actually I found my error. I didn't have the gd libraries on my new machine. It's fixed but now it doesn't show the map, I just get a place where the images is supposed to be but there is no image. Perhaps is has something to do with the fact that I'm using apache 2.X on this new machine ?? Thanks. -----Message d'origine----- De : Potter, G M (Greg) [mailto:GPotter at MarathonOil.com] Envoy? : 16 d?cembre, 2002 12:15 ? : patrick.amirian at cognicase.ca Objet : RE: [Nagios-users] compile again nagios and there is no statusmap.cgi Try just making the cgi executables. From the Nagios source directory type make cgis. Are there any compile error messages there? Greg -----Original Message----- From: Patrick Amirian [mailto:pamirian at calculus.ca] Sent: Monday, December 16, 2002 10:32 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] compile again nagios and there is no statusmap.cgi Hey guys, I recompiled a new nagios on another machine and I can't make the statusmap work. I checked my /usr/local/nagios/sbin and there was no statusmap.cgi file. Anyways I copied this from from another machine and I'm getting error 500. How come the when I installed nagios it didn't install the statusmap.cgi file ... I didn't spedify --disable-statusmap=disables and yet the file has not been installed... ideas ? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From pamirian at calculus.ca Mon Dec 16 19:25:05 2002 From: pamirian at calculus.ca (Patrick Amirian) Date: Mon, 16 Dec 2002 13:25:05 -0500 Subject: notification-options Message-ID: <005e01c2a530$74be7f90$c8040201@PAIE250> Hi guys, I'm looking for infos about notification-options and I can't find it in the nagios document. Any urls? I want to know what are the options and what they do. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From pamirian at calculus.ca Mon Dec 16 19:43:39 2002 From: pamirian at calculus.ca (Patrick Amirian) Date: Mon, 16 Dec 2002 13:43:39 -0500 Subject: put some space between statusmap hosts Message-ID: <006701c2a533$0cfdccf0$c8040201@PAIE250> Hey guys, How can I put some space between my hosts that are in the status map image ? Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From scott at urbatsch.com Mon Dec 16 20:04:51 2002 From: scott at urbatsch.com (Scott Urbatsch) Date: Mon, 16 Dec 2002 11:04:51 -0800 Subject: Check Disk Usage Critical & Warning issues Message-ID: <000601c2a536$034fbe90$4601010a@2cats> Seems I can't quite get a grasp of the check_nt (nt_disk) services. I seem to have it partly correct, but either have Critical or OK, never Warning. I've a tried a variety of combinations, but guess I need a definitive answer as to the parameters required. I get reliable responses from the NSClient WebPage - - - - --- - - Disk-usage CRITICAL 12-16-2002 11:01:38 0d 11h 0m 42s 3/3 Disk utilization: f: 5376.00 Mb free, g: 1413.12 Mb free, \tmp\apan.debug - - - - - - - - --- - - Mon Dec 16 11:03:40 PST 2002 Args: nt-disk server Disk-usage 1040065420 1000 2000 (I get same results with 2000 1000 as well) Apan.cfg - - - - --- - - server;Disk-usage;/usr/local/nagios/rrd/server-Disk-usage.rrd;f|g;f-used :AREA f-free:STACK g-used:AREA g-free:STACK ;Disk usage;Bytes;-l 1 -b 1024 services.cfg - - - - --- - - define service { host_name server service_description Disk-usage check_command apan!nt-disk!1000!2000 (NOTE: I've tried 2000!1000 & 2000.00!1000.00 and so on) use generic-service check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 2 contact_groups admins notification_interval 120 notification_period 24x7 notification_options w,u,c,r } serviceextinfo.cfg - - - - --- - - - --- - - define serviceextinfo{ host_name 2k02 service_description Disk-usageFG notes_url /nagios/cgi-bin/apan.cgi?host=2k02&service=Disk-usageFG icon_image graph.png icon_image_alt View graphs } -------------- next part -------------- An HTML attachment was scrubbed... URL: From tbyrne at comscore.com Mon Dec 16 20:09:04 2002 From: tbyrne at comscore.com (Byrne, Tim) Date: Mon, 16 Dec 2002 14:09:04 -0500 Subject: extra recovery notifications Message-ID: <672C6A1C04F3154BB4D9F541E9E5954F03253BA5@csiadexch01.office.comscore.com> I think these are the relevant definitions. define host{ use generic-host host_name hostB alias Host B } define host{ use generic-host host_name hostA parents hostB alias HOST A } define hostdependency { host_name hostB dependent_host_name hostA notification_failure_criteria d,u } -Tim -----Original Message----- From: Jasmine Chua Sent: Monday, December 16, 2002 10:56 AM To: nagios-users at lists.sourceforge.net Cc: Byrne, Tim Subject: Re: [Nagios-users] extra recovery notifications -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 haha.. sorry Tim, was busy doing something about host definitions that day. Therefore, got mixed up with the options. Tim, you are right about the options dont worry. Just follow the docs regarding the options. Do you have a snippet of your host dependency definition? On Tuesday 17 December 2002 00:43, you wrote: > Does the "r" option work for you? I looked at the source code and it seems > like only "o", "d", and "u" would work. > > else if(!strcmp(variable,"notification_failure_options") || > !strcmp(variable,"notification_failure_criteria")){ > for(temp_ptr=strtok(value,", ");temp_ptr;temp_ptr=strtok(NULL,", ")){ > if(!strcmp(temp_ptr,"o") || !strcmp(temp_ptr,"up")) > temp_hostdependency->fail_notify_on_up=TRUE; > else if(!strcmp(temp_ptr,"d") || !strcmp(temp_ptr,"down")) > temp_hostdependency->fail_notify_on_down=TRUE; > else if(!strcmp(temp_ptr,"u") || !strcmp(temp_ptr,"unreachable")) > temp_hostdependency->fail_notify_on_unreachable=TRUE; > else{ > #ifdef DEBUG1 > snprintf(temp_buffer,sizeof(temp_buffer)-1,"Error: Invalid > notification dependency option '%s' in hostdependency > definition.\n",temp_ptr); > temp_buffer[sizeof(temp_buffer)-1]='\x0'; > write_to_logs_and_console(temp_buffer,NSLOG_CONFIG_ERROR,TRUE); > #endif > return ERROR; > } > } > temp_hostdependency->have_notification_dependency_options=TRUE; > } > > -Tim > > -----Original Message----- > From: Byrne, Tim > Sent: Monday, December 16, 2002 9:40 AM > To: 'Jasmine Chua'; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] extra recovery notifications > > > I tried to add the "r" as you suggested, but then Nagios fails it's > pre-flight check with "Could not add object property". The documentation > seems to suggest that the only valid notification_failure_criteria are "o", > "d", "u", and "n". Interestingly using "n" also makes Nagios fail it's > pre-flight. > > http://nagios.sourceforge.net/docs/1_0/xodtemplate.html#hostdependency > > Any other ideas? > > -Tim > > -----Original Message----- > From: Jasmine Chua > Sent: Friday, December 13, 2002 5:38 PM > To: nagios-users at lists.sourceforge.net > Cc: Byrne, Tim > Subject: Re: [Nagios-users] extra recovery notifications > > > You have to specify d,u,r for your notifcation_failure_criteria then > recovery > notification will be supressed so you will not get notification for both. > Nagios will still send a notification recovery for both if you did not > specify (r) because host A depends on host B, if host B recovers, host A > recovers as well. > > On Saturday 14 December 2002 07:13, Byrne, Tim wrote: > > This doesn't seem right to me. > > > > If I set up two hosts, ("A" and "B"), and make "A" have a dependency on > > "B" > > > with notification_failure_criteria as "d,u" Nagios correctly suppresses > > "down" notifications for "A" when "B" is down or unreachable. However, > > when they recover, I get a recovery notification for both. I didn't > > think Nagios would send a recovery notification for something it didn't > > send a problem notification for. > > > > Sorry if that sounds confusing, but I guess that's the nature of the > > whole dependency stuff. > > > > -Tim > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by: > > With Great Power, Comes Great Responsibility > > Learn to use your power at OSDN's High Performance Computing Channel > > http://hpc.devchannel.org/ > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users - -- Jasmine Chua Security Engineer, SecureCiRT (A SBU of Z-Vance Pte Ltd) http://www.securecirt.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9/gWbNgvTa7Hj2AURAp2xAJ9KheJfuqRmWKo61VymJIV6JkbFRgCgsxSz rMHWFENC8uOM98oIOCieH2Y= =y6wv -----END PGP SIGNATURE----- ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From gjfrater at bechtel.com Mon Dec 16 20:10:42 2002 From: gjfrater at bechtel.com (Frater, Greg J) Date: Mon, 16 Dec 2002 11:10:42 -0800 Subject: put some space between statusmap hosts Message-ID: I'm wondering the same thing, I think. I love the auto generated maps but we have over a hundred servers that are children of our core switch so they all get squished together on the circular markup map such that they all become a big green and black jumbled mess. Same with all of our (workgroup) switches. -----Original Message----- From: Patrick Amirian [mailto:pamirian at calculus.ca] Sent: Monday, December 16, 2002 10:44 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] put some space between statusmap hosts Hey guys, How can I put some space between my hosts that are in the status map image ? Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jasmine.chua at securecirt.com Mon Dec 16 20:24:44 2002 From: jasmine.chua at securecirt.com (Jasmine Chua) Date: Tue, 17 Dec 2002 03:24:44 +0800 Subject: extra recovery notifications In-Reply-To: <672C6A1C04F3154BB4D9F541E9E5954F03253BA5@csiadexch01.office.comscore.com> References: <672C6A1C04F3154BB4D9F541E9E5954F03253BA5@csiadexch01.office.comscore.com> Message-ID: <200212170324.55683.jasmine.chua@securecirt.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Looks right to me..the options are valid, I cant see why you are getting an error of invalid notification dependency option. Are you using the latest version of Nagios? On Tuesday 17 December 2002 03:09, you wrote: > I think these are the relevant definitions. > > define host{ > use generic-host > host_name hostB > alias Host B > } > > define host{ > use generic-host > host_name hostA > parents hostB > alias HOST A > } > > define hostdependency { > host_name hostB > dependent_host_name hostA > notification_failure_criteria d,u > } > > -Tim > > -----Original Message----- > From: Jasmine Chua > Sent: Monday, December 16, 2002 10:56 AM > To: nagios-users at lists.sourceforge.net > Cc: Byrne, Tim > Subject: Re: [Nagios-users] extra recovery notifications > > > haha.. sorry Tim, was busy doing something about host definitions that day. > Therefore, got mixed up with the options. Tim, you are right about the > options dont worry. Just follow the docs regarding the options. Do you have > a > snippet of your host dependency definition? > > On Tuesday 17 December 2002 00:43, you wrote: > > Does the "r" option work for you? I looked at the source code and it > > seems > > > like only "o", "d", and "u" would work. > > > > else if(!strcmp(variable,"notification_failure_options") || > > !strcmp(variable,"notification_failure_criteria")){ > > for(temp_ptr=strtok(value,", ");temp_ptr;temp_ptr=strtok(NULL,", > > ")){ > > > if(!strcmp(temp_ptr,"o") || !strcmp(temp_ptr,"up")) > > temp_hostdependency->fail_notify_on_up=TRUE; > > else if(!strcmp(temp_ptr,"d") || !strcmp(temp_ptr,"down")) > > temp_hostdependency->fail_notify_on_down=TRUE; > > else if(!strcmp(temp_ptr,"u") || !strcmp(temp_ptr,"unreachable")) > > temp_hostdependency->fail_notify_on_unreachable=TRUE; > > else{ > > #ifdef DEBUG1 > > snprintf(temp_buffer,sizeof(temp_buffer)-1,"Error: Invalid > > notification dependency option '%s' in hostdependency > > definition.\n",temp_ptr); > > temp_buffer[sizeof(temp_buffer)-1]='\x0'; > > write_to_logs_and_console(temp_buffer,NSLOG_CONFIG_ERROR,TRUE); > > #endif > > return ERROR; > > } > > } > > temp_hostdependency->have_notification_dependency_options=TRUE; > > } > > > > -Tim > > > > -----Original Message----- > > From: Byrne, Tim > > Sent: Monday, December 16, 2002 9:40 AM > > To: 'Jasmine Chua'; nagios-users at lists.sourceforge.net > > Subject: RE: [Nagios-users] extra recovery notifications > > > > > > I tried to add the "r" as you suggested, but then Nagios fails it's > > pre-flight check with "Could not add object property". The documentation > > seems to suggest that the only valid notification_failure_criteria are > > "o", > > > "d", "u", and "n". Interestingly using "n" also makes Nagios fail it's > > pre-flight. > > > > http://nagios.sourceforge.net/docs/1_0/xodtemplate.html#hostdependency > > > > Any other ideas? > > > > -Tim > > > > -----Original Message----- > > From: Jasmine Chua > > Sent: Friday, December 13, 2002 5:38 PM > > To: nagios-users at lists.sourceforge.net > > Cc: Byrne, Tim > > Subject: Re: [Nagios-users] extra recovery notifications > > > > > > You have to specify d,u,r for your notifcation_failure_criteria then > > recovery > > notification will be supressed so you will not get notification for both. > > Nagios will still send a notification recovery for both if you did not > > specify (r) because host A depends on host B, if host B recovers, host A > > recovers as well. > > > > On Saturday 14 December 2002 07:13, Byrne, Tim wrote: > > > This doesn't seem right to me. > > > > > > If I set up two hosts, ("A" and "B"), and make "A" have a dependency on > > > > "B" > > > > > with notification_failure_criteria as "d,u" Nagios correctly suppresses > > > "down" notifications for "A" when "B" is down or unreachable. However, > > > when they recover, I get a recovery notification for both. I didn't > > > think Nagios would send a recovery notification for something it didn't > > > send a problem notification for. > > > > > > Sorry if that sounds confusing, but I guess that's the nature of the > > > whole dependency stuff. > > > > > > -Tim > > > > > > > > > ------------------------------------------------------- > > > This sf.net email is sponsored by: > > > With Great Power, Comes Great Responsibility > > > Learn to use your power at OSDN's High Performance Computing Channel > > > http://hpc.devchannel.org/ > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users - -- Jasmine Chua Security Engineer, SecureCiRT (A SBU of Z-Vance Pte Ltd) http://www.securecirt.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9/iiFNgvTa7Hj2AURApWRAJ9XWEi6boqBGo8JBzI0NjPgBO2NlwCgy/im aRNe6guQfz+NM/soX8dZCBc= =TvPx -----END PGP SIGNATURE----- ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From sandromergvaz at uol.com.br Mon Dec 16 22:20:09 2002 From: sandromergvaz at uol.com.br (Sandro Vaz) Date: Mon, 16 Dec 2002 18:20:09 -0300 Subject: RES: put some space between statusmap hosts In-Reply-To: References: Message-ID: Greg and Patrick: Here we prefer the "circular - ballons" method and one way to put some space between the hosts wat recompile statusmap.c, changing the following line: #define CIRCULAR_DRAWING_RADIUS 100 I?ve tried values between 150-300. To our number of hosts, 180 was the number. The side effect seems to be the "popups", which seem to appear far up from the host position. But i couldn?t fix this, unfortunately. HTH, SMV -----Mensagem original----- De: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] Em nome de Frater, Greg J Enviada em: segunda-feira, 16 de dezembro de 2002 16:11 Para: 'patrick.amirian at cognicase.ca'; nagios-users at lists.sourceforge.net Assunto: RE: [Nagios-users] put some space between statusmap hosts I'm wondering the same thing, I think. I love the auto generated maps but we have over a hundred servers that are children of our core switch so they all get squished together on the circular markup map such that they all become a big green and black jumbled mess. Same with all of our (workgroup) switches. -----Original Message----- From: Patrick Amirian [mailto:pamirian at calculus.ca] Sent: Monday, December 16, 2002 10:44 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] put some space between statusmap hosts Hey guys, How can I put some space between my hosts that are in the status map image ? Thanks. --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.427 / Virus Database: 240 - Release Date: 6/12/2002 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.427 / Virus Database: 240 - Release Date: 6/12/2002 -------------- next part -------------- An HTML attachment was scrubbed... URL: From eric at gatewayconnections.com Mon Dec 16 22:07:58 2002 From: eric at gatewayconnections.com (Eric Gregory) Date: Mon, 16 Dec 2002 15:07:58 -0600 Subject: CGI Authentication Issue Message-ID: <011f01c2a547$366428f0$0a00a8c0@Eric> Any help which can be offered is greatly appreciated. I have just installed nagios v1.0 on my server, a freebsd 4.5 box running apache 2.0. I setup the web interface and plugins, I can login but not see any host information what-so-ever. I have edited cgi.cfg to allow me access to essentially all functions by putting my username in all of the authorized_for spaces. However when I login anytime I try to view any information I get this message It appears as though you do not have permission to view information for any of the hosts you requested... If you believe this is an error, check the HTTP server authentication requirements for accessing this CGI and check the authorization options in your CGI configuration file. Just to see I disabled authentication and everything worked fine, I could view host and service info etc but as soon as I reactivated authentication in cgi.cfg back to nothing. Am I missing something here. Thanks in Advance Eric ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From sghosh at sghosh.org Mon Dec 16 22:48:17 2002 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Mon, 16 Dec 2002 16:48:17 -0500 (EST) Subject: Cisco check_snmp issue In-Reply-To: <20021212204222.GA29404@UnderGrid.net> References: <20021212204222.GA29404@UnderGrid.net> Message-ID: take a look at Cisco's supportlist for a list of MIBs suppoerted by platform and IOS release (ftp.cisco.com/pub/mibs/supportlists/) -sg On Thu, 12 Dec 2002, Jeremy T. Bouse wrote: > Yeah using the beta2 CVS version of the plugins I was able to > check this no problem using check_snmp... However I did find it depends > on the router version you're checking... In my case I had a 7206VXR that > had it but a 4700 that did not... The 4700 didn't know of any MIB values > for .1.3.6.1.4.1.9.9.13 even as I tried a snmpwalk... > > Jeremy > > On Thu, Dec 12, 2002 at 02:51:26PM -0500, Subhendu Ghosh wrote: > > try the 1.3beta2 plugins - major changes in check_snmp. > > > > -sg > > > > On Tue, 10 Dec 2002, Robin Brown wrote: > > > > > Hello all, > > > > > > I am trying to use Nagios v1.0 to check the temperature readings on a > > > Cisco router using the check_snmp plugin from the nagiosplug-1.3-beta1. > > > I can only get it to work by leaving off the warning and critical > > > options, of course I can't alert unless I can specify what to alert on. > > > I get the "Return code 138 is out of bounds" error when run from within > > > Nagios and a bus error when using them on the command line. > > > > > > Interestingly enough, I am using the same plugin to check on the router > > > power supply status with a warning/critical flag and that operates > > > normally. Of course the number returned from that check is either a 1 > > > or 2 for on or off. The temperature checks return 2-digit numbers, I'm > > > not sure if this is the issue or not. > > > > > > Below are the checkcommands.cfg and services.cfg entries: > > > > > > checkcommands.cfg: > > > > > > # 'check_snmp' generic command definition > > > define command{ > > > command_name check_snmp > > > command_line $USER1$/check_snmp -H $HOSTADDRESS$ -o $ARG1$ -w > > > $ARG2$ -c $ARG3$ -C $ARG4$ $ARG5$ $ARG6$ $ARG7$ $ARG8$ $ARG9$ > > > } > > > > > > > > > # Check Cisco stuff > > > # Working check for power supply status > > > define command{ > > > command_name check_cisco > > > command_line $USER1$/check_snmp -H $HOSTADDRESS$ -o $ARG1$ -w > > > $ARG2$ -c $ARG3$ -C $ARG4$ > > > } > > > # Working for temperature readings without the warning critical options > > > define command{ > > > command_name check_cisco_temp > > > command_line $USER1$/check_snmp -H $HOSTADDRESS$ -o $ARG1$ -C > > > $ARG2$ > > > } > > > > > > # Not working for temperature readings with the warning critical options > > > define command{ > > > command_name check_cisco_temp > > > command_line $USER1$/check_snmp -H $HOSTADDRESS$ -o $ARG1$ -C > > > $ARG2$ -w $ARG3$ -c $ARG4$ > > > } > > > > > > > > > Services.cfg: > > > > > > # Working check for power supply status > > > define service{ > > > use generic-service > > > host_name router-1 > > > service_description PWR2 > > > contact_groups router-admins > > > notification_options w,c > > > check_command > > > check_cisco!.1.3.6.1.4.1.9.9.13.1.5.1.3.2!2!2!comstring > > > } > > > # This only works without the warning and critical flags > > > # Check Cisco Temperature limits > > > define service{ > > > use generic-service > > > host_name router-1 > > > service_description Temp-inlet > > > contact_groups router-admins > > > notification_options w,c > > > check_command > > > check_cisco_temp!.1.3.6.1.4.1.9.9.13.1.3.1.3.1!comstring > > > } > > > > > > # This will not work using the warning and critical flags > > > # Check Cisco Temperature limits > > > define service{ > > > use generic-service > > > host_name router-1 > > > service_description Temp-inlet > > > contact_groups router-admins > > > notification_options w,c > > > check_command > > > check_cisco_temp!.1.3.6.1.4.1.9.9.13.1.3.1.3.1!comstring!35!45 > > > } > > > > > > Thanks and regards, > > > Robin > > > > > > > > > > > > > > > ------------------------------------------------------- > > > This sf.net email is sponsored by:ThinkGeek > > > Welcome to geek heaven. > > > http://thinkgeek.com/sf > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > -- > > > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by: > > With Great Power, Comes Great Responsibility > > Learn to use your power at OSDN's High Performance Computing Channel > > http://hpc.devchannel.org/ > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > -- ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From jcarro10 at sprintspectrum.com Tue Dec 17 00:27:52 2002 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Mon, 16 Dec 2002 17:27:52 -0600 Subject: yet ANOTHER NSClient question Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F249F@PKDWB03C.ad.sprint.com> We're finally getting around to checking out this option. On closer inspection, it would seem that NSClient is still somewhat 'exposed'. More specifically, there's no way to force NSClient to *only* accept connections from 127.0.0.1. If this restriction were possible, then the local stunnel config would accept SSL connections on, say, port 1249, and redirect to 127.0.0.1:1248, which of course NSClient would happily accept. Naturally, one would hope that there are packet filters in place to only permit traffic on 1249, but we don't have the luxury of making that assumption. I'm also told that the built-in filtering software on Win2k isn't as robust as one would hope. IPsec isn't an option, because the application in question won't be using it on the machines that the Win2k box will be communicating with. So at this point I'm open to suggestion. Thoughts? jc > -----Original Message----- > From: Mike McClure [mailto:mmcclure at pneservices.com] > Sent: Monday, November 25, 2002 4:57 PM > To: Carroll, Jim P [Contractor] > Cc: nagios > Subject: Re: [Nagios-users] yet ANOTHER NSClient question > > > Hi JC, > > You can certainly lock it down by using stunnel and SSL > client certificates. > There's a Win32 stunnel binary available. That would take > care of encryption and > authentication. > > I wouldn't recommend using NSClient on an Internet-exposed > Windows box without at > least that protection. The passwords are sent in cleartext. > > - Mike > > > How secure is NSClient? > > > > I was asked this question this morning by the resident NT > guru, since we're > > considering monitoring a few NT boxes which are already > 'exposed' to the > > Wild Wild Net. > > > > All I can see is that NSClient has password support, but > that pretty much > > any command (?) can be executed. > > > > Any suggestions on locking this down? Or does this fall > under the "I > > would't recommend it unless you're fond of rebuilding > servers" school of > > thought? > > > > jc > > > > > -- > Mike McClure, CCIE # 5125, CISSP # 30232 > PNE Services, Inc. - http://www.pneservices.com > mmcclure at pneservices.com > mobile: 913-636-5590 > ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From Shane_Seidel at gwf.com.au Tue Dec 17 01:41:50 2002 From: Shane_Seidel at gwf.com.au (Shane_Seidel at gwf.com.au) Date: Tue, 17 Dec 2002 10:41:50 +1000 Subject: Win2000 App Log errors from NS client Message-ID: <4A256C92.00049372.00@gisw900.gwf.com.au> Rainer, Thanks, and point taken. However you may have noticed that I had removed that service from the services.cfg file for this host and checkcommands.cfg file. This has been replaced using the check_citrix plugin. Still the errors occur. regards Shane To: ********************************************************************************************************************************************** This email and its attachments are confidential subject to copyright and may be legally privileged. If they have come to you in error you should take no action based upon the contents nor should you copy or show them to anyone. Please delete the email and its attachments and inform administrators at gwf.com.au Any views or opinions expressed are those of the author and do not necessarily represent those of George Weston Foods Ltd. Security: Internet email is not a completely secure medium, please note this when considering the content of your message. Viruses: We take precautions to ensure email is free of viruses but cannot guarantee this. Accordingly we advise scanning all email and attachments ********************************************************************************************************************************************* -------------- next part -------------- ? ? ? ?Shane Seidel/GWFIS/GWF at GWF, nagios-users at lists.sourceforge.net cc: Subject: ? ? ? ?RE: [Nagios-users] Win2000 App Log errors from NS client [IMAGE] > Hi All, > > We are running Nagios 1.0 on our Win2000 + Citrix server > farm. Can anyone > explain what is causing the error from the Application Log > and how to fix it? > Monitoring is working fine but the admin blames the NS Client > every time he has > a problem. Client version is 1.0.7.0. > > Details below. > > Thanks in advance. > Shane > > From the Win 2000 Application Log > > Event Type: ? ? ? ?Error >Event Source: ? ? ? ?NSClient >Event Category: ? ? ? ?None >Event ID: ? ? ? ?2 >Date: ? ? ? ? ? ? ? ?9/11/2002 >Time: ? ? ? ? ? ? ? ?3:10:51 PM >User: ? ? ? ? ? ? ? ?N/A >Computer: ? ? ? ?GISW220 >Description: >The description for Event ID ( 2 ) in Source ( NSClient ) cannot >be found. The local computer may not have the necessary registry >information or message DLL files to display messages from a >remote computer. The following information is part of the event: >NSClient Error: PDH.dll Add \TerminalServices/Active Sessions >- ERROR: 0xC0000BC0. Well, it looks like you've specified "\TerminalServices/Active Sessions" instead of "\\TerminalServices\\Active Sessions" ? ? ? ? ? ? ? ? ? ?^ in your config-File. The pathnames for the perf-counters only use backslashes. Error 0xC0000BC0 translates into "Unable to parse the counter path. Check the format and syntax of the specified path." (See jwapdhmsg.pas from the NSClient distribution) Cheers Rainer Ruecker ST-AG (Embedded image moved to file: pic20709.pcx) -------------- next part -------------- A non-text attachment was scrubbed... Name: pic20709.pcx Type: application/octet-stream Size: 1534 bytes Desc: not available URL: From dviner at yahoo-inc.com Tue Dec 17 07:55:46 2002 From: dviner at yahoo-inc.com (Dave Viner) Date: Mon, 16 Dec 2002 22:55:46 -0800 Subject: checking memory and cpu consumption of procs Message-ID: Hi, I want to ensure that no process on a machine consumes more than x % of the cpu, and y MB memory. Is there an existing plugin that handles this? I saw that check_procs will monitor the number of processes on a machine (including ones that match a certain name), and check_load will examine the machine's overall load averages as reported by uptime. But I can't seem to find anything that monitors cpu consumption or memory consumption. Is there a plugin for this already? thanks dave ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From tdeblend at gcc.dhl.com Tue Dec 17 08:54:52 2002 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Tue, 17 Dec 2002 08:54:52 +0100 Subject: Check Disk Usage Critical & Warning issues References: <000601c2a536$034fbe90$4601010a@2cats> Message-ID: <3DFED84C.34F32761@gcc.dhl.com> Scott, NSClient works with ratios rather than absolute figures. > Scott Urbatsch wrote: > > Seems I can?t quite get a grasp of the check_nt (nt_disk) services. > I seem to have it partly correct, but either have Critical or OK, > never Warning. I?ve a tried a variety of combinations, but guess I > need a definitive answer as to the parameters required. I get > reliable responses from the NSClient > > > > > > WebPage > > - - - - --- - - > > Disk-usage CRITICAL 12-16-2002 11:01:38 0d 11h 0m 42s 3/3 Disk > utilization: f: 5376.00 Mb free, g: 1413.12 Mb free, > > > > \tmp\apan.debug > > - - - - - - - - --- - - > > Mon Dec 16 11:03:40 PST 2002 Args: nt-disk server Disk-usage > 1040065420 1000 2000 (I get same results with 2000 1000 as well) > > > > Apan.cfg > > - - - - --- - - > > server;Disk-usage;/usr/local/nagios/rrd/server-Disk-usage.rrd;f|g;f-used:AREA > f-free:STACK g-used:AREA g-free:STACK > > ;Disk usage;Bytes;-l 1 -b 1024 > > > > services.cfg > > - - - - --- - - > > define service { > > host_name server > > service_description Disk-usage > > check_command apan!nt-disk!1000!2000 > (NOTE: I?ve tried 2000!1000 & 2000.00!1000.00 and so on) > > use generic-service > > check_period 24x7 > > max_check_attempts 3 > > normal_check_interval 5 > > retry_check_interval 2 > > contact_groups admins > > notification_interval 120 > > notification_period 24x7 > > notification_options w,u,c,r > > } > > > > serviceextinfo.cfg > > - - - - --- - - - --- - - > > define serviceextinfo{ > > host_name 2k02 > > service_description Disk-usageFG > > notes_url > /nagios/cgi-bin/apan.cgi?host=2k02&service=Disk-usageFG > > icon_image graph.png > > icon_image_alt View graphs > > } ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From Stanley.Hopcroft at IPAustralia.Gov.AU Tue Dec 17 10:16:12 2002 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Tue, 17 Dec 2002 20:16:12 +1100 Subject: check_ftp segmentation fault In-Reply-To: <000501c2a40c$14694000$c804a8c0@ncsl.ca>; from sdearth@ncsl.ca on Sun, Dec 15, 2002 at 01:32:10AM -0600 References: <000501c2a40c$14694000$c804a8c0@ncsl.ca> Message-ID: <20021217201608.A220@IPAustralia.Gov.AU> Dear Sir, I am writing to thank you for your letter and ask you to post 1 What version of check_ftp are you using (check_ftp -V) 2 a backtrace of the core dump (vi) 3 What OS check_ftp is installed onto and 4 How it was installed (built from source, package or RPM, other ? If other, please specify) On Sun, Dec 15, 2002 at 01:32:10AM -0600, Steve Dearth wrote: > I get a seg fault when running: > > check_ftp -H (IP) -p 21 > Does this happen from the command line ? If so, locate the core file (check_ftp.core cd to that location post the results of the backtrace like this tsitc> gdb -c check_ftp.core /check_ftp GNU gdb 4.18 (FreeBSD) Copyright 1998 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-unknown-freebsd"...Deprecated bfd_read called at /usr/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dbxread.c line 2627 in elfstab_build_psymtabs Deprecated bfd_read called at /usr/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dbxread.c line 933 in fill_symbuf Core was generated by `check_ftp'. Program terminated with signal 11, Segmentation fault. Reading symbols from /usr/lib/libutil.so.3...done. Reading symbols from /usr/lib/libkvm.so.2...done. Reading symbols from /usr/lib/libc.so.4...done. Reading symbols from /usr/libexec/ld-elf.so.1...done. #0 my_inet_aton (cp=0x0, addr=0xbfbff704) at netutils.c:344 warning: Source file is more recent than executable. 344 c=*cp; (gdb) bt #0 my_inet_aton (cp=0x0, addr=0xbfbff704) at netutils.c:344 #1 0x804a8e6 in my_connect (host_name=0x0, port=21, sd=0xbfbff77c, proto=0xbfbff73c "tcp") at netutils.c:283 #2 0x804a884 in my_tcp_connect (host_name=0x0, port=21, sd=0xbfbff77c) at netutils.c:250 #3 0x8048d6c in main (argc=2, argv=0xbfbffbd4) at check_ftp.c:81 #4 0x8048c7d in _start () (gdb) q tsitc> ie all you need do is type 'bt' and then 'q'. In this case, the segmentation violation ocurred in the function named 'my_connect' probably because (in my case) it was passed a null pointer == non_existent character string, 'host_name', that should have contained the host name of the FTP service to be checked. Otherwise, I cannot help. > However it works fine when I do: > > check_tcp -H (IP) -p 21 > This is probably irrelevant. There is something wrong with the check_ftp program, not the host you are checking. > > What gives? > > Has it ever worked ? Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From Ton.Voon at egg.com Tue Dec 17 10:30:43 2002 From: Ton.Voon at egg.com (Voon, Ton) Date: Tue, 17 Dec 2002 09:30:43 -0000 Subject: checking memory and cpu consumption of procs Message-ID: <53104E20A25CD411B556009027E50636064D5005@pnnemp02.pn.egg.com> Dave, Take a look at check_vsz for the virtual size of memory usage on a process level. I've put lot of functionality patches on sourceforge, so you'll need to apply those. Ton > -----Original Message----- > From: Dave Viner [SMTP:dviner at yahoo-inc.com] > Sent: Tuesday, December 17, 2002 6:56 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] checking memory and cpu consumption of procs > > Hi, > I want to ensure that no process on a machine consumes more than x % > of the > cpu, and y MB memory. Is there an existing plugin that handles this? I > saw > that check_procs will monitor the number of processes on a machine > (including ones that match a certain name), and check_load will examine > the > machine's overall load averages as reported by uptime. But I can't seem > to > find anything that monitors cpu consumption or memory consumption. Is > there > a plugin for this already? > > thanks > dave > This private and confidential e-mail has been sent to you by Egg. The Egg group of companies includes Egg Banking plc (registered no. 2999842), Egg Financial Products Ltd (registered no. 3319027) and Egg Investments Ltd (registered no. 3403963) which carries out investment business on behalf of Egg and is regulated by the Financial Services Authority. Registered in England and Wales. Registered offices: 1 Waterhouse Square, 138-142 Holborn, London EC1N 2NA. If you are not the intended recipient of this e-mail and have received it in error, please notify the sender by replying with 'received in error' as the subject and then delete it from your mailbox. ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From Daniel.Siegers at bauerverlag.de Tue Dec 17 11:10:49 2002 From: Daniel.Siegers at bauerverlag.de (Daniel Siegers) Date: Tue, 17 Dec 2002 11:10:49 +0100 Subject: Antw: Re: nsca and allowed_hosts Message-ID: WHat i ment was Range of Adresses like 192.168.0.0/255.255.255.0 Mit freundlichen Gr??en / Kind regards Daniel Siegers Systemadministrator Heinrich Bauer Dienstleistungs KG Brieffach 4620 Burchardstra?e 11 D-20077 Hamburg Telefon +49 (40)-3019-1991 Fax +49 (40)-3019-140-1991 E-Mail Daniel.Siegers at Bauerverlag.de >>> Jasmine Chua 16.12.2002 17:58 >>> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Yes you can. Just need to put a comma btw the IP addresses allowed_hosts=xxx.xxx.xxx.xxx,xxx.xxx.xxx.xxx,xxx.xxx.xxx.xxx On Monday 16 December 2002 20:22, Daniel Siegers wrote: > Hi there, > > is there a way to give the allowed_hosts option in he nsca.cfg a range of > ipadresses ? > > > > Mit freundlichen Gr??en / Kind regards > > Daniel Siegers > Systemadministrator > > Heinrich Bauer Dienstleistungs KG > Brieffach 4620 > Burchardstra?e 11 > D-20077 Hamburg > > Telefon +49 (40)-3019-1991 > Fax +49 (40)-3019-140-1991 > > E-Mail Daniel.Siegers at Bauerverlag.de - -- Jasmine Chua Security Engineer, SecureCiRT (A SBU of Z-Vance Pte Ltd) http://www.securecirt.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9/gY0NgvTa7Hj2AURAvp6AJ9AuFxC+uc5j/jP6lbnCXIUl7JAxwCgq4X7 p3ZWcgLFDHPKYftOAU0k7kk= =SUOc -----END PGP SIGNATURE----- -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Daniel Siegers.vcf Type: text/x-vcard Size: 227 bytes Desc: not available URL: From tdeblend at gcc.dhl.com Tue Dec 17 11:35:13 2002 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Tue, 17 Dec 2002 11:35:13 +0100 Subject: Downtime Message-ID: <3DFEFDE1.B2F28A85@gcc.dhl.com> Hi, I've got a problem when trying to schedule downtime from the web interface. When I do his for a host, and I just accept the standard 2 hours interval, I get this error: "An error occurred while processing your command. Go back and verify that you entered all required information correctly. Return from whence you came" It's bound to be something silly, but I can't figure out what... An since both nagios.org (not reachable) and the sourceforge archives (temporarily offline) are not available... Kind regards, Tom ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From carles at servidores.com Tue Dec 17 11:47:16 2002 From: carles at servidores.com (Carles =?ISO-8859-1?Q?Amig=F3?=) Date: 17 Dec 2002 11:47:16 +0100 Subject: xml status.cgi output Message-ID: <1040122036.15711.57.camel@fr3nd> Hello, Could Nagios output all status info in a xml output? I would like to make a program that parses all the info remotely, and parsing html is very difficult. Regards -- Carles Amig? Mart?nez Resp. Advanced Hosting Servidores.com Tel: (+34) 902 999 707 - Fax: (+34) 93 268 14 79 carles at servidores.com - http://www.servidores.com Servidores.com es un servicio de Inlander Communications SL ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From Stanley.Hopcroft at IPAustralia.Gov.AU Tue Dec 17 12:20:11 2002 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Tue, 17 Dec 2002 22:20:11 +1100 Subject: Downtime In-Reply-To: <3DFEFDE1.B2F28A85@gcc.dhl.com>; from tdeblend@gcc.dhl.com on Tue, Dec 17, 2002 at 11:35:13AM +0100 References: <3DFEFDE1.B2F28A85@gcc.dhl.com> Message-ID: <20021217222005.B220@IPAustralia.Gov.AU> Dear Sir, On Tue, Dec 17, 2002 at 11:35:13AM +0100, Tom DE BLENDE wrote: > Hi, > > I've got a problem when trying to schedule downtime from the web > interface. When I do his for a host, and I just accept the standard 2 > hours interval, I get this error: > > "An error occurred while processing your command. > Go back and verify that you entered all required information > correctly. > Return from whence you came" > > It's bound to be something silly, but I can't figure out what... An > since both nagios.org (not reachable) and the sourceforge archives > (temporarily offline) are not available... > You need a comment describing the outage. 'blah' is sufficient. (Observed from experience not from code walk.) > Kind regards, > Tom > > Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From tdeblend at gcc.dhl.com Tue Dec 17 12:23:53 2002 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Tue, 17 Dec 2002 12:23:53 +0100 Subject: Downtime References: <3DFEFDE1.B2F28A85@gcc.dhl.com> <20021217222005.B220@IPAustralia.Gov.AU> Message-ID: <3DFF0949.D8E57AF8@gcc.dhl.com> Dear Stanley, While I fail to see the reason for being forced in entering a comment, it did do the trick. Many thanks! Tom Stanley Hopcroft wrote: > > Dear Sir, > > On Tue, Dec 17, 2002 at 11:35:13AM +0100, Tom DE BLENDE wrote: > > Hi, > > > > I've got a problem when trying to schedule downtime from the web > > interface. When I do his for a host, and I just accept the standard 2 > > hours interval, I get this error: > > > > "An error occurred while processing your command. > > Go back and verify that you entered all required information > > correctly. > > Return from whence you came" > > > > It's bound to be something silly, but I can't figure out what... An > > since both nagios.org (not reachable) and the sourceforge archives > > (temporarily offline) are not available... > > > > You need a comment describing the outage. 'blah' is sufficient. > > (Observed from experience not from code walk.) > > > Kind regards, > > Tom > > > > > > Yours sincerely. > > -- > ------------------------------------------------------------------------ > Stanley Hopcroft > ------------------------------------------------------------------------ > > '...No man is an island, entire of itself; every man is a piece of the > continent, a part of the main. If a clod be washed away by the sea, > Europe is the less, as well as if a promontory were, as well as if a > manor of thy friend's or of thine own were. Any man's death diminishes > me, because I am involved in mankind; and therefore never send to know > for whom the bell tolls; it tolls for thee...' > > from Meditation 17, J Donne. -- Tom De Blende Senior NT Infrastructure Analyst (Frango) DHL Global Coordination Center - IT Department Tel +32 2 713 42 62 Fax +32 2 713 52 00 ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From Stanley.Hopcroft at IPAustralia.Gov.AU Tue Dec 17 12:25:35 2002 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Tue, 17 Dec 2002 22:25:35 +1100 Subject: xml status.cgi output In-Reply-To: <1040122036.15711.57.camel@fr3nd>; from carles@servidores.com on Tue, Dec 17, 2002 at 11:47:16AM +0100 References: <1040122036.15711.57.camel@fr3nd> Message-ID: <20021217222533.C220@IPAustralia.Gov.AU> Dear Sir, On Tue, Dec 17, 2002 at 11:47:16AM +0100, Carles Amig? wrote: > Hello, > > Could Nagios output all status info in a xml output? > Patches to the CGI programs always welcome. > I would like to make a program that parses all the info remotely, and > parsing html is very difficult. While I haven't tried the CGI HTML, it's quite feasable to parse other HTML with the Perl modules HTML::Parser, HTML::LinkExtor, HTML::Table (?). There's a good introductory chapter to the use of HTML::Parser in "Network programming with Perl", (example code on AWL web site), or for less easy eaxmples perldoc HTML::Parser (after you have installed it). There must be plenty of equivalent classes/modules for Java, Python, Ruby, C++ etc. > > Regards > -- > Carles Amig? Mart?nez > Resp. Advanced Hosting > Servidores.com > Tel: (+34) 902 999 707 - Fax: (+34) 93 268 14 79 > carles at servidores.com - http://www.servidores.com > Servidores.com es un servicio de Inlander Communications SL Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From Volker.Aust at premiere.de Tue Dec 17 12:29:36 2002 From: Volker.Aust at premiere.de (Volker.Aust at premiere.de) Date: Tue, 17 Dec 2002 12:29:36 +0100 Subject: Downtime Message-ID: I guess you have forgotten to give a comment for the schedule downtime in the webform. Please enter all required information before committing the command. Required fields are marked in red. Failure to supply all required values will result in an error. -vol > -----Original Message----- > From: Tom DE BLENDE [mailto:tdeblend at gcc.dhl.com] > Sent: Tuesday, December 17, 2002 11:35 AM > To: nagios-users > Subject: [Nagios-users] Downtime > > > Hi, > > I've got a problem when trying to schedule downtime from the web > interface. When I do his for a host, and I just accept the standard 2 > hours interval, I get this error: > > "An error occurred while processing your command. > Go back and verify that you entered all required information > correctly. > Return from whence you came" > > It's bound to be something silly, but I can't figure out what... An > since both nagios.org (not reachable) and the sourceforge archives > (temporarily offline) are not available... > > Kind regards, > Tom > > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From rplewe at ess.nec.de Tue Dec 17 12:29:53 2002 From: rplewe at ess.nec.de (Rasmus Plewe) Date: Tue, 17 Dec 2002 12:29:53 +0100 Subject: Downtime In-Reply-To: <3DFEFDE1.B2F28A85@gcc.dhl.com>; from tdeblend@gcc.dhl.com on Tue, Dec 17, 2002 at 11:35:13AM +0100 References: <3DFEFDE1.B2F28A85@gcc.dhl.com> Message-ID: <20021217122953.A1380@ess.nec.de> On Tue, Dec 17, 2002 at 11:35:13AM +0100, Tom DE BLENDE wrote: > > I've got a problem when trying to schedule downtime from the web > interface. When I do his for a host, and I just accept the standard 2 > hours interval, I get this error: > > "An error occurred while processing your command. > Go back and verify that you entered all required information > correctly. > Return from whence you came" > > It's bound to be something silly, but I can't figure out what... Heh. Took me an embarassing 30 min to figure it out myself back then. You need to fill in the "Comment" field in the mask. Regards, Rasmus ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From twelsh at square-box.com Tue Dec 17 12:58:01 2002 From: twelsh at square-box.com (Tom Welsh) Date: Tue, 17 Dec 2002 11:58:01 -0000 Subject: [Nagiosplug-help] Monitoring PeopleSoft Financials In-Reply-To: <3DFED890.DB81B70C@gcc.dhl.com> References: <3DFED890.DB81B70C@gcc.dhl.com> Message-ID: <002001c2a5c3$8c755260$0400a8c0@squarebox.com> Im interested as well. Can I be keptr uptodate on yhos one -----Original Message----- From: nagiosplug-help-admin at lists.sourceforge.net [mailto:nagiosplug-help-admin at lists.sourceforge.net] On Behalf Of Tom DE BLENDE Sent: 17 December 2002 07:56 To: Blair Rampling Cc: nagiosplug-help at lists.sourceforge.net Subject: Re: [Nagiosplug-help] Monitoring PeopleSoft Financials I'm not, but keep me informed :-) Blair Rampling wrote: > > I'd like to know how people are using nagios plugins to monitor PeopleSoft Financials. I have some ideas on how to make it work, but if someone else is already doing it I'm curious as to how. Thanks! > > - -- > Blair Rampling > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > _______________________________________________ > Nagiosplug-help mailing list > Nagiosplug-help at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagiosplug-help ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ _______________________________________________ Nagiosplug-help mailing list Nagiosplug-help at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagiosplug-help ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From naabokhalaf at refertelecom.pt Tue Dec 17 12:48:05 2002 From: naabokhalaf at refertelecom.pt (ABOKHALAF, Nassri Abdellatif) Date: Tue, 17 Dec 2002 11:48:05 -0000 Subject: Problem with Nagios NSClient Message-ID: <5032019AFC475F4B95262C63B94BC2F8B57D@rtsvr8.refertelecom.pt> Hello, I'm trying to monitor w2000 server in my network using NSClient. I downloaded the latest version at http://nsclient.ready2run.nl/ and put the ./check_nt in my /libexec folder. Installed the NSClient for W2000 in the remote machine and started the service with no problem. But when i try to execute some commands i get strange answers. For instance: ./checking -H 10.192.129.14 -p 1248 -v MEMUSE Memory usage: total:0.00 Mb - used: 0.00 Mb (nan%) - free: 0.00 Mb (nan%) -------------------------- false [./check_nt -H 10.192.129.14 -p 1248 -v UPTIME System Uptime : 0 day(s) 0 hour(s) 0 minute(s) ----------------------------------------------------------------------false ./check_nt -H 10.192.129.14 -p 1248 -v CPULOAD -l 10,80,95,60,80,95,1440,80,95 NSClient - ERROR:Malformed request or internal error. Check EventLog:None&2&10 all this makes no sense but if i type: ./check_nt -H 10.192.129.14 -p 1248 -v USEDDISKSPACE -l C -w 80 -c 90 C:\ - total: 19.53 Gb - used: 2.01 Gb (10%) - free 17.53 Gb (90%)-------------------------------------------correct What is Wrong ? Thank you in advance, naa ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From pspa at gp.novis.pt Tue Dec 17 13:58:13 2002 From: pspa at gp.novis.pt (Paulo Pinto) Date: 17 Dec 2002 12:58:13 +0000 Subject: Problem with Nagios NSClient In-Reply-To: <5032019AFC475F4B95262C63B94BC2F8B57D@rtsvr8.refertelecom.pt> References: <5032019AFC475F4B95262C63B94BC2F8B57D@rtsvr8.refertelecom.pt> Message-ID: <1040129894.27671.37.camel@voodoo.ip.pt> English Version: It looks like you have problems with the performance counters installation on you W2K machine. You need an application from the W2K Resource Kit named "Extensible Performance Counter List" to reconfigure your performance counters. Portuguese version: Aparentemente tem problemas com a instalacao dos performance counters no W2K. Ha' uma aplicacao no Resource Kit do W2K chamada "Extensible Performance Counter List" que lhe permite verificar/reconfigurar os performance counters. Deve resolver o seu problema. Best Regards/ Cumprimentos, On Tue, 2002-12-17 at 11:48, ABOKHALAF, Nassri Abdellatif wrote: > Hello, > > I'm trying to monitor w2000 server in my network using NSClient. > I downloaded the latest version at http://nsclient.ready2run.nl/ > and put the ./check_nt in my /libexec folder. Installed the NSClient for W2000 in the remote machine and started > the service with no problem. But when i try to execute some commands i get strange answers. For instance: > > ./checking -H 10.192.129.14 -p 1248 -v MEMUSE > Memory usage: total:0.00 Mb - used: 0.00 Mb (nan%) - free: 0.00 Mb (nan%) -------------------------- false > > [./check_nt -H 10.192.129.14 -p 1248 -v UPTIME > System Uptime : 0 day(s) 0 hour(s) 0 minute(s) ----------------------------------------------------------------------false > > ./check_nt -H 10.192.129.14 -p 1248 -v CPULOAD -l 10,80,95,60,80,95,1440,80,95 > NSClient - ERROR:Malformed request or internal error. Check EventLog:None&2&10 > > > all this makes no sense but if i type: > > ./check_nt -H 10.192.129.14 -p 1248 -v USEDDISKSPACE -l C -w 80 -c 90 > C:\ - total: 19.53 Gb - used: 2.01 Gb (10%) - free 17.53 Gb (90%)-------------------------------------------correct > > > What is Wrong ? > > > Thank you in advance, > > naa > > > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users -- Paulo Pinto Novis GSP pspa at gp.novis.pt ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From atulsh at hclinsys.com Tue Dec 17 09:09:50 2002 From: atulsh at hclinsys.com (Atul Shrivastava) Date: Tue, 17 Dec 2002 13:39:50 +0530 Subject: Nagios Configuraiton through templates References: <5032019AFC475F4B95262C63B94BC2F8B57D@rtsvr8.refertelecom.pt> <1040129894.27671.37.camel@voodoo.ip.pt> Message-ID: <004901c2a5a3$ac3b1280$5f7b0297@atul> Hello all, I am new to Nagios. Can anyone tell me how can I configure all the .cfg files through templates. Thanks in advance. Regards and have a nice day, Atul Shrivastava Info Structure Services HCL INFOSYSTEMS LTD. -------------------------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From mario.ohnewald at gmx.de Tue Dec 17 14:46:45 2002 From: mario.ohnewald at gmx.de (Mario Ohnewald) Date: Tue, 17 Dec 2002 14:46:45 +0100 Subject: Dynamic alarm intervals Message-ID: <000c01c2a5d2$bd9a33b0$fa0aa8c0@aradex.local> Hello! I have coded something similar as nagios, but it was too much work to filter out the bugs etc... Nagois is pretty cool, but i am missing one thing: When a host is offline, i want to get an alarm immediately, 2h later, 6h later and 12h later. (if the host keeps beeing down). (e.g in case i miss the phone call i want to get called again later on) Is this implented in nagios, too? Cheers, Mario ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From GPotter at MarathonOil.com Tue Dec 17 14:51:07 2002 From: GPotter at MarathonOil.com (Potter, G M (Greg)) Date: Tue, 17 Dec 2002 07:51:07 -0600 Subject: Looking for plug-in to Monitor Oracle Instances Message-ID: Has anyone developed a plug-in to check on the availability of an Oracle Instance? I would love to have it if it is out there somewhere. Thanks! Greg M. Potter mailto:gpotter at marathonoil.com Non Scio, id est in Latina! ~~|\ / | \ ~^~^~^~ / | \ ~^~ Greg Potter~^~^~^~^ ~^~^~ / 9255 ) ~^ Oklahoma City, OK^~^ ~^~^_/____|____) ^~^~^~^~^~^~^~^~^~^~^~^ ~^~^ \_________/ ^~^~^~^~^~^~^~^~^~^~^ ~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~ ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From tdeblend at gcc.dhl.com Tue Dec 17 14:56:23 2002 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Tue, 17 Dec 2002 14:56:23 +0100 Subject: Dynamic alarm intervals References: <000c01c2a5d2$bd9a33b0$fa0aa8c0@aradex.local> Message-ID: <3DFF2D07.3A55BE59@gcc.dhl.com> If have managed to have single-handedly coded something even remotely similar to Nagios, I'm sure you are capable of finding your way around the documentation, no? http://nagios.sourceforge.net/docs/1_0/xodtemplate.html#service "notification_interval: This directive is used to define the number of "time units" to wait before re-notifying a contact that this service is still in a non-OK state. Unless you've changed the interval_length directive from the default value of 60, this number will mean minutes. If you set this value to 0, Nagios will not re-notify contacts about problems for this service - only one problem notification will be sent out. " Mario Ohnewald wrote: > > Hello! > I have coded something similar as nagios, but it was too much work to filter > out the bugs etc... > Nagois is pretty cool, but i am missing one thing: > When a host is offline, i want to get an alarm immediately, 2h later, 6h > later and 12h later. (if the host keeps beeing down). > (e.g in case i miss the phone call i want to get called again later on) > > Is this implented in nagios, too? > > Cheers, Mario > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From pspa at gp.novis.pt Tue Dec 17 15:29:07 2002 From: pspa at gp.novis.pt (Paulo Pinto) Date: 17 Dec 2002 14:29:07 +0000 Subject: Looking for plug-in to Monitor Oracle Instances In-Reply-To: References: Message-ID: <1040135347.28849.49.camel@voodoo.ip.pt> Hi. Download the latest version of the Nagios Plugins ( http://telia.dl.sourceforge.net/sourceforge/nagiosplug/nagios-plugins-1.3.0-beta2.tar.gz ), and check under the "contrib" directory. You'll find: - check_oracle_instance.pl - check_ora_table_space.pl Both of them need PerlDBI and DBD::Oracle, though. Hugz, On Tue, 2002-12-17 at 13:51, Potter, G M (Greg) wrote: > Has anyone developed a plug-in to check on the availability of an Oracle Instance? I would love to have it if it is out there somewhere. > > Thanks! > > Greg M. Potter > mailto:gpotter at marathonoil.com > > Non Scio, id est in Latina! > > ~~|\ > / | \ > ~^~^~^~ / | \ ~^~ Greg Potter~^~^~^~^ > ~^~^~ / 9255 ) ~^ Oklahoma City, OK^~^ > ~^~^_/____|____) ^~^~^~^~^~^~^~^~^~^~^~^ > ~^~^ \_________/ ^~^~^~^~^~^~^~^~^~^~^ > ~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~ > > > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users -- Paulo Pinto Novis GSP pspa at gp.novis.pt ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From Ton.Voon at egg.com Tue Dec 17 15:35:43 2002 From: Ton.Voon at egg.com (Voon, Ton) Date: Tue, 17 Dec 2002 14:35:43 -0000 Subject: Looking for plug-in to Monitor Oracle Instance s Message-ID: <53104E20A25CD411B556009027E50636064D500F@pnnemp02.pn.egg.com> Greg, I use check_oracle under the plugins-scripts subdirectory, but with the patches I've put on sourceforge. The --login option does a dummy login and then checks for the correct ORA-01017 error. This is better than the --db and --tns checks as it picks up other error conditions. I recently got a "CRITICAL - ORA-12500: TNS:listener failed to start a dedicated server process" which was due to lack of swap space... Ton > -----Original Message----- > From: Potter, G M (Greg) [SMTP:GPotter at MarathonOil.com] > Sent: Tuesday, December 17, 2002 1:51 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Looking for plug-in to Monitor Oracle > Instances > > Has anyone developed a plug-in to check on the availability of an Oracle > Instance? I would love to have it if it is out there somewhere. > > Thanks! > > Greg M. Potter > mailto:gpotter at marathonoil.com > > Non Scio, id est in Latina! > > ~~|\ > / | \ > ~^~^~^~ / | \ ~^~ Greg Potter~^~^~^~^ > ~^~^~ / 9255 ) ~^ Oklahoma City, OK^~^ > ~^~^_/____|____) ^~^~^~^~^~^~^~^~^~^~^~^ > ~^~^ \_________/ ^~^~^~^~^~^~^~^~^~^~^ > ~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~ > > > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users This private and confidential e-mail has been sent to you by Egg. The Egg group of companies includes Egg Banking plc (registered no. 2999842), Egg Financial Products Ltd (registered no. 3319027) and Egg Investments Ltd (registered no. 3403963) which carries out investment business on behalf of Egg and is regulated by the Financial Services Authority. Registered in England and Wales. Registered offices: 1 Waterhouse Square, 138-142 Holborn, London EC1N 2NA. If you are not the intended recipient of this e-mail and have received it in error, please notify the sender by replying with 'received in error' as the subject and then delete it from your mailbox. ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From Daniel.Siegers at bauerverlag.de Tue Dec 17 16:01:34 2002 From: Daniel.Siegers at bauerverlag.de (Daniel Siegers) Date: Tue, 17 Dec 2002 16:01:34 +0100 Subject: compiling nsca on Solaris 2.8 Message-ID: Hi there, i ve got a problem compiling nsca on Solaris 2.8 with gcc 2.95.3 20010315 (release) ./configure works fine, but here s the ouput of make all: bash-2.03# make all cd ./src/; make all ; cd .. make[1]: Entering directory `/usr/share/src/nsca-2.1/src' gcc -g -O2 -DHAVE_CONFIG_H -lnsl -lsocket nsca.c netutils.c utils.c -o nsca In file included from nsca.c:18: ../common/common.h:105: parse error before `u_int32_t' ../common/common.h:105: warning: no semicolon at end of struct or union ../common/common.h:106: warning: data definition has no type or storage class ../common/common.h:111: parse error before `}' ../common/common.h:111: warning: data definition has no type or storage class ../common/common.h:116: parse error before `u_int32_t' ../common/common.h:116: warning: no semicolon at end of struct or union ../common/common.h:117: warning: data definition has no type or storage class nsca.c: In function `handle_connection': nsca.c:768: `init_packet' undeclared (first use in this function) nsca.c:768: (Each undeclared identifier is reported only once nsca.c:768: for each function it appears in.) nsca.c:768: parse error before `send_packet' nsca.c:791: `send_packet' undeclared (first use in this function) nsca.c:793: `u_int32_t' undeclared (first use in this function) nsca.c: In function `handle_connection_read': nsca.c:837: `data_packet' undeclared (first use in this function) nsca.c:837: parse error before `receive_packet' nsca.c:838: `u_int32_t' undeclared (first use in this function) nsca.c:856: `receive_packet' undeclared (first use in this function) nsca.c:896: `packet_crc32' undeclared (first use in this function) nsca.c:898: `calculated_crc32' undeclared (first use in this function) In file included from netutils.c:32: ../common/common.h:105: parse error before `u_int32_t' ../common/common.h:105: warning: no semicolon at end of struct or union ../common/common.h:106: warning: data definition has no type or storage class ../common/common.h:111: parse error before `}' ../common/common.h:111: warning: data definition has no type or storage class ../common/common.h:116: parse error before `u_int32_t' ../common/common.h:116: warning: no semicolon at end of struct or union ../common/common.h:117: warning: data definition has no type or storage class In file included from utils.c:32: ../common/common.h:105: parse error before `u_int32_t' ../common/common.h:105: warning: no semicolon at end of struct or union ../common/common.h:106: warning: data definition has no type or storage class ../common/common.h:111: parse error before `}' ../common/common.h:111: warning: data definition has no type or storage class ../common/common.h:116: parse error before `u_int32_t' ../common/common.h:116: warning: no semicolon at end of struct or union ../common/common.h:117: warning: data definition has no type or storage class make[1]: *** [nsca] Error 1 make[1]: Leaving directory `/usr/share/src/nsca-2.1/src' bash-2.03# gcc -v Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/specs gcc version 2.95.3 20010315 (release) Has anyone an idea ? Mit freundlichen Gr??en / Kind regards Daniel Siegers Systemadministrator Heinrich Bauer Dienstleistungs KG Brieffach 4620 Burchardstra?e 11 D-20077 Hamburg Telefon +49 (40)-3019-1991 Fax +49 (40)-3019-140-1991 E-Mail Daniel.Siegers at Bauerverlag.de -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Daniel Siegers.vcf Type: text/x-vcard Size: 227 bytes Desc: not available URL: From Markus.Kraus.hp at sysde.eads.net Tue Dec 17 16:19:23 2002 From: Markus.Kraus.hp at sysde.eads.net (Kraus, Markus) Date: Tue, 17 Dec 2002 16:19:23 +0100 Subject: Nagios Configuraiton through templates Message-ID: Just take a look at "http://nagios.sourceforge.net/docs/1_0/xodtemplate.html" in Doxumentation. It's quite simple! -----Original Message----- From: Atul Shrivastava [mailto:atulsh at hclinsys.com] Sent: Dienstag, 17. Dezember 2002 09:10 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Nagios Configuraiton through templates Hello all, I am new to Nagios. Can anyone tell me how can I configure all the .cfg files through templates. Thanks in advance. Regards and have a nice day, Atul Shrivastava Info Structure Services HCL INFOSYSTEMS LTD. _____ -------------- next part -------------- An HTML attachment was scrubbed... URL: From Markus.Kraus.hp at sysde.eads.net Tue Dec 17 16:22:08 2002 From: Markus.Kraus.hp at sysde.eads.net (Kraus, Markus) Date: Tue, 17 Dec 2002 16:22:08 +0100 Subject: Dynamic alarm intervals Message-ID: As I know it is not implemented to use different intervalls. But you can define intervalls like every 2 hours anyway. -----Original Message----- From: Mario Ohnewald [mailto:mario.ohnewald at gmx.de] Sent: Dienstag, 17. Dezember 2002 14:47 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Dynamic alarm intervals Hello! I have coded something similar as nagios, but it was too much work to filter out the bugs etc... Nagois is pretty cool, but i am missing one thing: When a host is offline, i want to get an alarm immediately, 2h later, 6h later and 12h later. (if the host keeps beeing down). (e.g in case i miss the phone call i want to get called again later on) Is this implented in nagios, too? Cheers, Mario ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From Markus.Kraus.hp at sysde.eads.net Tue Dec 17 16:46:34 2002 From: Markus.Kraus.hp at sysde.eads.net (Kraus, Markus) Date: Tue, 17 Dec 2002 16:46:34 +0100 Subject: Merged disk checks Message-ID: Hello @, I monitor about 100 servers each with at least 5 Partitions. That makes over all 500 check_disk calls. Isn' t there a plugin which tests all partitions of a system and returns only an over all status? Any help which can be offered is greatly appreciated. Markus ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From JKnash at bnyclearing.com Tue Dec 17 16:58:56 2002 From: JKnash at bnyclearing.com (JKnash at bnyclearing.com) Date: Tue, 17 Dec 2002 07:58:56 -0800 Subject: availability shown incorrectly Message-ID: All of my Host State Breakdowns in Nagios report 100% Time Undetermined. Any idea why? Justin Knash Network Engineer BNY Clearing Services The information in this e-mail, and any attachment therein, is confidential and for use by the addressee only. If you are not the intended recipient, please return the e-mail to the sender and delete it from your computer. Although BNY Clearing Services LLC attempts to sweep e-mail and attachments for viruses, it does not guarantee that either are virus-free and accepts no liability for any damage sustained as a result of viruses. ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From GPotter at MarathonOil.com Tue Dec 17 17:08:48 2002 From: GPotter at MarathonOil.com (Potter, G M (Greg)) Date: Tue, 17 Dec 2002 10:08:48 -0600 Subject: Dynamic alarm intervals Message-ID: Or you could use escalations to have different notification intervals. I have some notifications go through e-mail and some through qpage to my cell phone. It is pretty cool. Greg > -----Original Message----- > From: Kraus, Markus [mailto:Markus.Kraus.hp at sysde.eads.net] > Sent: Tuesday, December 17, 2002 9:22 AM > To: 'nagios-users at lists.sourceforge.net' > Subject: RE: [Nagios-users] Dynamic alarm intervals > > > As I know it is not implemented to use different intervalls. > But you can > define intervalls like every 2 hours anyway. > > -----Original Message----- > From: Mario Ohnewald [mailto:mario.ohnewald at gmx.de] > Sent: Dienstag, 17. Dezember 2002 14:47 > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Dynamic alarm intervals > > > Hello! > I have coded something similar as nagios, but it was too much > work to filter > out the bugs etc... > Nagois is pretty cool, but i am missing one thing: > When a host is offline, i want to get an alarm immediately, > 2h later, 6h > later and 12h later. (if the host keeps beeing down). > (e.g in case i miss the phone call i want to get called again > later on) > > Is this implented in nagios, too? > > Cheers, Mario > > > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From jcarro10 at sprintspectrum.com Tue Dec 17 17:15:37 2002 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Tue, 17 Dec 2002 10:15:37 -0600 Subject: Downtime Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F24A2@PKDWB03C.ad.sprint.com> I personally like being forced to put in a comment, because: - it gives us some history on the host - it could be 3am and I could be tired I just wish it said something like, "You forgot to put in a comment, go back and try again," because this particular error has confused my peers, the first time they saw it. "Hey Jim, I think Nagios is broken!" :( jc > -----Original Message----- > From: Tom DE BLENDE [mailto:tdeblend at gcc.dhl.com] > Sent: Tuesday, December 17, 2002 5:24 AM > To: Stanley Hopcroft > Cc: nagios-users > Subject: Re: [Nagios-users] Downtime > > > Dear Stanley, > > While I fail to see the reason for being forced in entering a comment, > it did do the trick. > > Many thanks! > Tom > > Stanley Hopcroft wrote: > > > > Dear Sir, > > > > On Tue, Dec 17, 2002 at 11:35:13AM +0100, Tom DE BLENDE wrote: > > > Hi, > > > > > > I've got a problem when trying to schedule downtime from the web > > > interface. When I do his for a host, and I just accept > the standard 2 > > > hours interval, I get this error: > > > > > > "An error occurred while processing your command. > > > Go back and verify that you entered all required information > > > correctly. > > > Return from whence you came" > > > > > > It's bound to be something silly, but I can't figure out > what... An > > > since both nagios.org (not reachable) and the sourceforge archives > > > (temporarily offline) are not available... > > > > > > > You need a comment describing the outage. 'blah' is sufficient. > > > > (Observed from experience not from code walk.) > > > > > Kind regards, > > > Tom > > > > > > > > > > Yours sincerely. > > > > -- > > > -------------------------------------------------------------- > ---------- > > Stanley Hopcroft > > > -------------------------------------------------------------- > ---------- > > > > '...No man is an island, entire of itself; every man is a > piece of the > > continent, a part of the main. If a clod be washed away by the sea, > > Europe is the less, as well as if a promontory were, as well as if a > > manor of thy friend's or of thine own were. Any man's death > diminishes > > me, because I am involved in mankind; and therefore never > send to know > > for whom the bell tolls; it tolls for thee...' > > > > from Meditation 17, J Donne. > > -- > Tom De Blende > Senior NT Infrastructure Analyst (Frango) > DHL Global Coordination Center - IT Department > Tel +32 2 713 42 62 > Fax +32 2 713 52 00 > > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From jlyons30 at yahoo.com Tue Dec 17 17:30:25 2002 From: jlyons30 at yahoo.com (Jon Lyons) Date: Tue, 17 Dec 2002 08:30:25 -0800 (PST) Subject: Change Service Warning text to differnet color in Tac.cgi???... In-Reply-To: <20021211143225.17576.qmail@web21511.mail.yahoo.com> References: <20021211143225.17576.qmail@web21511.mail.yahoo.com> Message-ID: <20021217163025.44496.qmail@web21508.mail.yahoo.com> Hi, I've modified my tac.css stylesheet colors, but I'd like to change the service warning text block from red to something more like yellow for the tac.cgi, is this in the style sheet or somewhere else?? I'd like the critical sections to only use red.. :) Thanks.... --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From giuseppe.cesabianchi at aonet.it Tue Dec 17 17:55:01 2002 From: giuseppe.cesabianchi at aonet.it (Cesabianchi Giuseppe) Date: Tue, 17 Dec 2002 17:55:01 +0100 Subject: Passive checks Message-ID: <2CCF5BB975BC894386BE9854DABA80C2032B67@WMI-EXC-110.aonet.local> Hello, I'm using passive check to inform Nagios about Windows events. Nagios receives these events via external commands and pass control to the event handler. It seems all ok, but Nagios doesn't display it on the status.cgi. What's wrong? Thanks Giuseppe Cesa Bianchi ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From jcarro10 at sprintspectrum.com Tue Dec 17 17:59:00 2002 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Tue, 17 Dec 2002 10:59:00 -0600 Subject: Merged disk checks Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F24A3@PKDWB03C.ad.sprint.com> Markus, I feel your pain; been there, done that, went back to the verbose approach. Yes, there's a way of doing it. Things to consider: Advantages: - saves you lots of manual configuring Disadvantages: - you set the thresholds once for a given host, and they apply to all partitions (which can be less than desireable if you're running, say, an Oracle database server, where in some cases the data files consume (nearly) all of the available space) - there's a limit to the length of the message (I believe it's 1K) which is sent back to Nagios, so you'll end up lacking details on *all* of the partitions - looking at reports such as the Status Grid, you won't be able to see at a glance what all the partitions are currently at Try it out, see if you like the 'lite' approach: ./check_disk -w 10 -c 5 If you decide that the verbose reporting is preferable, you could save yourself quite a few keystrokes with these tips: - use a centralized nrpe.cfg file; distribute it to all the hosts after each add/change/delete (don't forget to manage it with RCS/CVS/similar) - use templates for each unique disk definition and use those in your config files jc > -----Original Message----- > From: Kraus, Markus [mailto:Markus.Kraus.hp at sysde.eads.net] > Sent: Tuesday, December 17, 2002 9:47 AM > To: 'nagios-users at lists.sourceforge.net' > Subject: [Nagios-users] Merged disk checks > > > Hello @, > > I monitor about 100 servers each with at least 5 Partitions. > That makes over > all 500 check_disk calls. Isn' t there a plugin which tests > all partitions > of a system and returns only an over all status? > > Any help which can be offered is greatly appreciated. > > Markus > > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From jcarro10 at sprintspectrum.com Tue Dec 17 18:00:43 2002 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Tue, 17 Dec 2002 11:00:43 -0600 Subject: compiling nsca on Solaris 2.8 Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1190@PKDWB03C.ad.sprint.com> Have you tried GNU make? If not, get it from www.sunfreeware.com. Be sure that you have /usr/local/bin first on your $PATH before running 'make'. jc > -----Original Message----- > From: Daniel Siegers [mailto:Daniel.Siegers at bauerverlag.de] > Sent: Tuesday, December 17, 2002 9:02 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] compiling nsca on Solaris 2.8 > > > Hi there, > > i ve got a problem compiling nsca on Solaris 2.8 with gcc > 2.95.3 20010315 (release) > > ./configure works fine, but here s the ouput of make all: > > bash-2.03# make all > cd ./src/; make all ; cd .. > make[1]: Entering directory `/usr/share/src/nsca-2.1/src' > gcc -g -O2 -DHAVE_CONFIG_H -lnsl -lsocket nsca.c netutils.c > utils.c -o nsca > In file included from nsca.c:18: > ../common/common.h:105: parse error before `u_int32_t' > ../common/common.h:105: warning: no semicolon at end of > struct or union > ../common/common.h:106: warning: data definition has no type > or storage class > ../common/common.h:111: parse error before `}' > ../common/common.h:111: warning: data definition has no type > or storage class > ../common/common.h:116: parse error before `u_int32_t' > ../common/common.h:116: warning: no semicolon at end of > struct or union > ../common/common.h:117: warning: data definition has no type > or storage class > nsca.c: In function `handle_connection': > nsca.c:768: `init_packet' undeclared (first use in this function) > nsca.c:768: (Each undeclared identifier is reported only once > nsca.c:768: for each function it appears in.) > nsca.c:768: parse error before `send_packet' > nsca.c:791: `send_packet' undeclared (first use in this function) > nsca.c:793: `u_int32_t' undeclared (first use in this function) > nsca.c: In function `handle_connection_read': > nsca.c:837: `data_packet' undeclared (first use in this function) > nsca.c:837: parse error before `receive_packet' > nsca.c:838: `u_int32_t' undeclared (first use in this function) > nsca.c:856: `receive_packet' undeclared (first use in this function) > nsca.c:896: `packet_crc32' undeclared (first use in this function) > nsca.c:898: `calculated_crc32' undeclared (first use in this function) > In file included from netutils.c:32: > ../common/common.h:105: parse error before `u_int32_t' > ../common/common.h:105: warning: no semicolon at end of > struct or union > ../common/common.h:106: warning: data definition has no type > or storage class > ../common/common.h:111: parse error before `}' > ../common/common.h:111: warning: data definition has no type > or storage class > ../common/common.h:116: parse error before `u_int32_t' > ../common/common.h:116: warning: no semicolon at end of > struct or union > ../common/common.h:117: warning: data definition has no type > or storage class > In file included from utils.c:32: > ../common/common.h:105: parse error before `u_int32_t' > ../common/common.h:105: warning: no semicolon at end of > struct or union > ../common/common.h:106: warning: data definition has no type > or storage class > ../common/common.h:111: parse error before `}' > ../common/common.h:111: warning: data definition has no type > or storage class > ../common/common.h:116: parse error before `u_int32_t' > ../common/common.h:116: warning: no semicolon at end of > struct or union > ../common/common.h:117: warning: data definition has no type > or storage class > make[1]: *** [nsca] Error 1 > make[1]: Leaving directory `/usr/share/src/nsca-2.1/src' > bash-2.03# gcc -v > Reading specs from > /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/specs > gcc version 2.95.3 20010315 (release) > > > Has anyone an idea ? > > > Mit freundlichen Gr??en / Kind regards > > Daniel Siegers > Systemadministrator > > Heinrich Bauer Dienstleistungs KG > Brieffach 4620 > Burchardstra?e 11 > D-20077 Hamburg > > Telefon +49 (40)-3019-1991 > Fax +49 (40)-3019-140-1991 > > E-Mail Daniel.Siegers at Bauerverlag.de > > ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From gcoon at inch.com Tue Dec 17 18:26:25 2002 From: gcoon at inch.com (Gerald) Date: Tue, 17 Dec 2002 12:26:25 -0500 (EST) Subject: Merged disk checks In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB2F24A3@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB2F24A3@PKDWB03C.ad.sprint.com> Message-ID: <20021217122143.R24716-100000@kod.inch.com> I have to agree with the disadvantages. We worked around it by going to check_snmp and just hitting the disk partitions over snmp. This allowed us to only have to install snmp on the servers (some already had it) and we can monitor more than the plugins have come up with. I don't mean to offend anyone by this, but snmp has also undergone much more scrutiny for security issues than any of the client side netsaint/nagios plugins have. Setup a read only user. Season with tcpwrappers to taste and all of the thresholds can be set from the netsaint config. I haven't done it yet, but I intend to do the mrtg/apan integration into netsaint and I believe the check_snmp_disk that I've setup will graph more information. I posted to the list a while back about how I setup the check disk if you want to search for it. Good Luck, Gerald On Tue, 17 Dec 2002, Carroll, Jim P [Contractor] wrote: > Markus, > > I feel your pain; been there, done that, went back to the verbose approach. > Yes, there's a way of doing it. Things to consider: > > Advantages: > > - saves you lots of manual configuring > > Disadvantages: > > - you set the thresholds once for a given host, and they apply to all > partitions (which can be less than desireable if you're running, say, an > Oracle database server, where in some cases the data files consume (nearly) > all of the available space) > - there's a limit to the length of the message (I believe it's 1K) which is > sent back to Nagios, so you'll end up lacking details on *all* of the > partitions > - looking at reports such as the Status Grid, you won't be able to see at a > glance what all the partitions are currently at > > Try it out, see if you like the 'lite' approach: > > ./check_disk -w 10 -c 5 > > If you decide that the verbose reporting is preferable, you could save > yourself quite a few keystrokes with these tips: > > - use a centralized nrpe.cfg file; distribute it to all the hosts after each > add/change/delete (don't forget to manage it with RCS/CVS/similar) > - use templates for each unique disk definition and use those in your config > files > > jc > > > > -----Original Message----- > > From: Kraus, Markus [mailto:Markus.Kraus.hp at sysde.eads.net] > > Sent: Tuesday, December 17, 2002 9:47 AM > > To: 'nagios-users at lists.sourceforge.net' > > Subject: [Nagios-users] Merged disk checks > > > > > > Hello @, > > > > I monitor about 100 servers each with at least 5 Partitions. > > That makes over > > all 500 check_disk calls. Isn' t there a plugin which tests > > all partitions > > of a system and returns only an over all status? > > > > Any help which can be offered is greatly appreciated. > > > > Markus > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by: > > With Great Power, Comes Great Responsibility > > Learn to use your power at OSDN's High Performance Computing Channel > > http://hpc.devchannel.org/ > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From jsm at inpro.net Tue Dec 17 18:53:46 2002 From: jsm at inpro.net (Jeff McKeon) Date: 17 Dec 2002 12:53:46 -0500 Subject: nrpe custom command problems Message-ID: <1040147626.29648.37.camel@rh80-jsm.telaurus.net> Hey all, I've written a plugin for nrpe to check the records in a database table and then report warning or critical based on how many records are returned. The table is basically a mailserver pending message queue. The plugin, check_msgcount works fine if invoked by itself. However when I try to run it with check_nrpe localhost -c check_msgcount it crashes out.. any ideas why? nrpe is working fine with the standard plugins, check_disk etc... Also, I did restart xinetd after adding the command line to the nrpe.cfg. ******************* nrpe.cfg file: command[check_pendingmail]=/usr/local/nagios/libexec/check_msgcount ****************** if I run /usr/local/nagios/libexec/check_msgcount by itself it all runs fine. If I run /usr/local/nagios/libexec//check_nrpe localhost -c check_pendingmail as in below, the following happens... [root at db02tc07927 libexec]# ./check_nrpe localhost -c check_pendingmail s/libexec/check_msgcount: mysql: command not found /usr/local/nagios/libexec/check_msgcount: [: -ge: unary operator expected /usr/local/nagios/libexec/check_msgcount: [: -ge: unary operator expected the check_msgcount file is this: ****************************************************************** #! /bin/sh mysql telaurus -u nagios < /usr/local/nagios/libexec/messages.sql > /usr/local/nagios/libexec/msg_count numqueued=`grep -v COUNT /usr/local/nagios/libexec/msg_count` if [ $numqueued -ge 2 ]; then echo "CRITICAL: $numqueued waiting messages in seaCOMM" exit 2; fi if [ $numqueued -ge 10 ]; then echo "WARNING: $numqueued waiting messages in seaCOMM" exit 1; fi echo "OK: $numqueued waiting messages in seaCOMM" exit 0; ********************************************************* ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From Daniel.Siegers at bauerverlag.de Tue Dec 17 18:56:09 2002 From: Daniel.Siegers at bauerverlag.de (Daniel Siegers) Date: Tue, 17 Dec 2002 18:56:09 +0100 Subject: Antw: RE: compiling nsca on Solaris 2.8 Message-ID: Yes, here is the ouput: bash-2.03# make -v GNU Make version 3.79.1, by Richard Stallman and Roland McGrath. Built for sparc-sun-solaris2.8 Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 2000 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Report bugs to . Any other ideas ? Are there precompieled binarys for solaris anywhere ? Mit freundlichen Gr??en / Kind regards Daniel Siegers Systemadministrator Heinrich Bauer Dienstleistungs KG Brieffach 4620 Burchardstra?e 11 D-20077 Hamburg Telefon +49 (40)-3019-1991 Fax +49 (40)-3019-140-1991 E-Mail Daniel.Siegers at Bauerverlag.de >>> "Carroll, Jim P [Contractor]" 17.12.2002 18:00 >>> Have you tried GNU make? If not, get it from www.sunfreeware.com . Be sure that you have /usr/local/bin first on your $PATH before running 'make'. jc > -----Original Message----- > From: Daniel Siegers [ mailto:Daniel.Siegers at bauerverlag.de] > Sent: Tuesday, December 17, 2002 9:02 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] compiling nsca on Solaris 2.8 > > > Hi there, > > i ve got a problem compiling nsca on Solaris 2.8 with gcc > 2.95.3 20010315 (release) > > ./configure works fine, but here s the ouput of make all: > > bash-2.03# make all > cd ./src/; make all ; cd .. > make[1]: Entering directory `/usr/share/src/nsca-2.1/src' > gcc -g -O2 -DHAVE_CONFIG_H -lnsl -lsocket nsca.c netutils.c > utils.c -o nsca > In file included from nsca.c:18: > ../common/common.h:105: parse error before `u_int32_t' > ../common/common.h:105: warning: no semicolon at end of > struct or union > ../common/common.h:106: warning: data definition has no type > or storage class > ../common/common.h:111: parse error before `}' > ../common/common.h:111: warning: data definition has no type > or storage class > ../common/common.h:116: parse error before `u_int32_t' > ../common/common.h:116: warning: no semicolon at end of > struct or union > ../common/common.h:117: warning: data definition has no type > or storage class > nsca.c: In function `handle_connection': > nsca.c:768: `init_packet' undeclared (first use in this function) > nsca.c:768: (Each undeclared identifier is reported only once > nsca.c:768: for each function it appears in.) > nsca.c:768: parse error before `send_packet' > nsca.c:791: `send_packet' undeclared (first use in this function) > nsca.c:793: `u_int32_t' undeclared (first use in this function) > nsca.c: In function `handle_connection_read': > nsca.c:837: `data_packet' undeclared (first use in this function) > nsca.c:837: parse error before `receive_packet' > nsca.c:838: `u_int32_t' undeclared (first use in this function) > nsca.c:856: `receive_packet' undeclared (first use in this function) > nsca.c:896: `packet_crc32' undeclared (first use in this function) > nsca.c:898: `calculated_crc32' undeclared (first use in this function) > In file included from netutils.c:32: > ../common/common.h:105: parse error before `u_int32_t' > ../common/common.h:105: warning: no semicolon at end of > struct or union > ../common/common.h:106: warning: data definition has no type > or storage class > ../common/common.h:111: parse error before `}' > ../common/common.h:111: warning: data definition has no type > or storage class > ../common/common.h:116: parse error before `u_int32_t' > ../common/common.h:116: warning: no semicolon at end of > struct or union > ../common/common.h:117: warning: data definition has no type > or storage class > In file included from utils.c:32: > ../common/common.h:105: parse error before `u_int32_t' > ../common/common.h:105: warning: no semicolon at end of > struct or union > ../common/common.h:106: warning: data definition has no type > or storage class > ../common/common.h:111: parse error before `}' > ../common/common.h:111: warning: data definition has no type > or storage class > ../common/common.h:116: parse error before `u_int32_t' > ../common/common.h:116: warning: no semicolon at end of > struct or union > ../common/common.h:117: warning: data definition has no type > or storage class > make[1]: *** [nsca] Error 1 > make[1]: Leaving directory `/usr/share/src/nsca-2.1/src' > bash-2.03# gcc -v > Reading specs from > /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/specs > gcc version 2.95.3 20010315 (release) > > > Has anyone an idea ? > > > Mit freundlichen Gr??en / Kind regards > > Daniel Siegers > Systemadministrator > > Heinrich Bauer Dienstleistungs KG > Brieffach 4620 > Burchardstra?e 11 > D-20077 Hamburg > > Telefon +49 (40)-3019-1991 > Fax +49 (40)-3019-140-1991 > > E-Mail Daniel.Siegers at Bauerverlag.de > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Daniel Siegers.vcf Type: text/x-vcard Size: 227 bytes Desc: not available URL: From jasondixon at myrealbox.com Tue Dec 17 19:15:59 2002 From: jasondixon at myrealbox.com (Jason Dixon) Date: 17 Dec 2002 13:15:59 -0500 Subject: Flapping setup In-Reply-To: <1040148784.1213.7.camel@lappy.fuzzypenguin.net> References: <1040148784.1213.7.camel@lappy.fuzzypenguin.net> Message-ID: <1040148960.1483.10.camel@lappy.fuzzypenguin.net> Oh good god. Please ignore me. All it took was a simple click of "Commit" from the command options page. I'm still a bit perplexed as to why this isn't already running by default when I restart nagios (not HUP). -J. On Tue, 2002-12-17 at 13:13, Jason Dixon wrote: > Hi all- > > Sorry if this has been asked previously- I'm new to the list, and the > mailing list archives don't appear to work. > > I've recently installed nagios successfully on an OpenBSD 3.2 server. > Works great... can't tell you how pleased I am with the overall > project. Unfortunately, flapping is not working for me. > > Flapping is enabled in both my hosts.cfg, nagios.cfg and services.cfg > files, but it's still showing as disabled on all relevant cgi screens. > I wouldn't think this is a result of any compilation errors on the > OpenBSD platform... everything appeared to compile cleanly. > > Based on the documentation, it appears that flap support is > experimental. Nevertheless, I'm hoping someone can point out what I'm > missing. > > TIA, > J. > > ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From sripley at chiaro.com Tue Dec 17 19:12:42 2002 From: sripley at chiaro.com (Scott Ripley) Date: Tue, 17 Dec 2002 12:12:42 -0600 Subject: hostextinfo unavailable to CGIs Message-ID: <668C5EBD23862F459CF63DAFFCA6268C023AA0@rchst006.chiaro.com> All, I have converted my NetSaint installation to Nagios over the weekend, and most everything has gone well. I used the FreeBSD port of 1.06b for the installation, and added the mysql compile options to the Makefile. Most of the mysql features are working, but I was still having difficulty getting hostextinfo to the CGIs. So, things like the icons for hosts, external urls for host info, and statusmap were not working. I went ahead and converted my hostextinfo to template format, and tried adding it as an option in the cgi.cfg. xedtemplate_config_file=/usr/local/nagios/etc/hostextinfo.cfg No luck there either. I noticed that I compiled with both: --with-template-extinfo \ and --with-mysql-extinfo \ So, I reinstalled without the --with-template-extinfo option. Now I am getting extended host information on status.cgi and extinfo.cgi, but still no user-coordinates for the statusmap. I suppose I could go back to the template based extinfo, but I would like to have this in the database if possible. Any ideas? TIA, Scott. Here are the options in my makefile: CONFIGURE_ARGS= --with-command-user=nagios \ --with-command-grp=nagioscmd \ --with-nagios-user=nagios \ --with-nagios-grp=nagios \ --with-template-objects \ --with-init-dir=${PREFIX}/etc/rc.d \ --sbindir=${PREFIX}/share/nagios/cgi-bin \ --libexecdir=${PREFIX}/libexec/nagios \ --datadir=${PREFIX}/share/nagios \ --sysconfdir=${PREFIX}/etc/nagios \ --localstatedir=${PREFIX}/var/nagios \ --prefix=${PREFIX} \ --with-mysql-xdata \ --with-mysql-status \ --with-mysql-comments \ --with-mysql-extinfo \ --with-mysql-retention \ --with-mysql-downtime \ --with-mysql-lib=${PREFIX}/lib/mysql \ --with-mysql-inc=${PREFIX}/include/mysql -------------- next part -------------- ----------------------------------------- (on rchss001) This e-mail and any files transmitted with it are the property of Chiaro Networks, Ltd., and may contain confidential and privileged material for the sole use of the intended recipient(s) to whom this e-mail is addressed. If you are not one of the named recipient(s), or otherwise have reason to believe that you have received this message in error, please notify the sender and delete all copies from your system. Any other use, retention, dissemination, forwarding, printing or copying of this e-mail is strictly prohibited. --------------------------------------------------------- From jasondixon at myrealbox.com Tue Dec 17 19:13:03 2002 From: jasondixon at myrealbox.com (Jason Dixon) Date: 17 Dec 2002 13:13:03 -0500 Subject: Flapping setup Message-ID: <1040148784.1213.7.camel@lappy.fuzzypenguin.net> Hi all- Sorry if this has been asked previously- I'm new to the list, and the mailing list archives don't appear to work. I've recently installed nagios successfully on an OpenBSD 3.2 server. Works great... can't tell you how pleased I am with the overall project. Unfortunately, flapping is not working for me. Flapping is enabled in both my hosts.cfg, nagios.cfg and services.cfg files, but it's still showing as disabled on all relevant cgi screens. I wouldn't think this is a result of any compilation errors on the OpenBSD platform... everything appeared to compile cleanly. Based on the documentation, it appears that flap support is experimental. Nevertheless, I'm hoping someone can point out what I'm missing. TIA, J. ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From dviner at yahoo-inc.com Tue Dec 17 19:22:47 2002 From: dviner at yahoo-inc.com (Dave Viner) Date: Tue, 17 Dec 2002 10:22:47 -0800 Subject: checking memory and cpu consumption of procs In-Reply-To: <53104E20A25CD411B556009027E50636064D5005@pnnemp02.pn.egg.com> References: <53104E20A25CD411B556009027E50636064D5005@pnnemp02.pn.egg.com> Message-ID: Hi, Thanks for pointing me to check_vsz. This is a really great utility. From looking at the usage message and the code itself, it looks to me like this monitors virtual memory consumption. Are there any hooks to monitor %cpu consumption ? Perhaps something like ps waxco 'vsz %cpu command' ? I'm happy to try to add this in if it sounds useful. dave -----Original Message----- From: Voon, Ton [mailto:Ton.Voon at egg.com] Sent: Tuesday, December 17, 2002 1:31 AM To: 'Dave Viner'; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] checking memory and cpu consumption of procs Dave, Take a look at check_vsz for the virtual size of memory usage on a process level. I've put lot of functionality patches on sourceforge, so you'll need to apply those. Ton > -----Original Message----- > From: Dave Viner [SMTP:dviner at yahoo-inc.com] > Sent: Tuesday, December 17, 2002 6:56 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] checking memory and cpu consumption of procs > > Hi, > I want to ensure that no process on a machine consumes more than x % > of the > cpu, and y MB memory. Is there an existing plugin that handles this? I > saw > that check_procs will monitor the number of processes on a machine > (including ones that match a certain name), and check_load will examine > the > machine's overall load averages as reported by uptime. But I can't seem > to > find anything that monitors cpu consumption or memory consumption. Is > there > a plugin for this already? > > thanks > dave > This private and confidential e-mail has been sent to you by Egg. The Egg group of companies includes Egg Banking plc (registered no. 2999842), Egg Financial Products Ltd (registered no. 3319027) and Egg Investments Ltd (registered no. 3403963) which carries out investment business on behalf of Egg and is regulated by the Financial Services Authority. Registered in England and Wales. Registered offices: 1 Waterhouse Square, 138-142 Holborn, London EC1N 2NA. If you are not the intended recipient of this e-mail and have received it in error, please notify the sender by replying with 'received in error' as the subject and then delete it from your mailbox. ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From donavan at 4wx.net Tue Dec 17 19:40:14 2002 From: donavan at 4wx.net (donavan nelson) Date: Tue, 17 Dec 2002 12:40:14 -0600 Subject: Service Groups? Message-ID: <20021217184014.M40176@4wx.net> Am I over looking the obvious? I'm new to nagios, I picked it over the other "free" choices. It is a wonderful tool. But is there anyway to logically group services? For example, I'd like to group all my disk space checks in one "service group". Production web server checks in one group, etc. Thanks, .dn -- Donavan Nelson 4wx Networks www.4wx.net ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From arno at mittelbach-online.de Tue Dec 17 20:03:16 2002 From: arno at mittelbach-online.de (Arno Mittelbach) Date: Tue, 17 Dec 2002 20:03:16 +0100 Subject: no output Message-ID: <5.1.0.14.0.20021217194712.00a688b0@pop.puretec.de> hi, i've got a problem with an error message, which is actually just telling me, that nagios recieved no output: (No output!) i didn't have that problem before i enabled the "check_for_orphaned_services" option in the main config file, so my guess is, that whenever nagios finds an orphaned service it automatically generates this notification. my question is: do you know how i can stop nagios from sending this notification? regards, arno ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From Gopinath_Pulyankote at affymetrix.com Tue Dec 17 20:03:58 2002 From: Gopinath_Pulyankote at affymetrix.com (Pulyankote, Gopinath) Date: Tue, 17 Dec 2002 11:03:58 -0800 Subject: About Alerts Message-ID: <48F1F432BF75D6118FAC0002B325BE3636E9A7@ntex04.affymetrix.com> Hi there, We have setup escalations to our Managers when a host is down for more than 2 hours, but every alert that they get has the time stamp when it was sent out, NOT when the host actually went down. Can someone help me figure out how to get this done? Looking at the host details, I see a field called Last State Change that has the info I am looking for. Is there a way to get the "Last State Change" value into the alerts Nagios sends out. Thanks in advance -Gopinath ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From jsie at quadrix.com Tue Dec 17 20:12:43 2002 From: jsie at quadrix.com (Jackson Sie) Date: Tue, 17 Dec 2002 14:12:43 -0500 Subject: compiling nsca on Solaris 2.8 In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB014E1190@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB014E1190@PKDWB03C.ad.sprint.com> Message-ID: <006901c2a600$46cee450$a0c81fac@pikachu> If you simply do a global search and replace on the source files for: Search for: u_int32_t Replace with: uint32_t This will remove the compilation problem you are experiencing. Jackson Sie Quadrix Solutions, Inc. -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Carroll, Jim P [Contractor] Sent: Tuesday, December 17, 2002 12:01 PM To: 'Daniel Siegers'; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] compiling nsca on Solaris 2.8 Have you tried GNU make? If not, get it from www.sunfreeware.com. Be sure that you have /usr/local/bin first on your $PATH before running 'make'. jc > -----Original Message----- > From: Daniel Siegers [mailto:Daniel.Siegers at bauerverlag.de] > Sent: Tuesday, December 17, 2002 9:02 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] compiling nsca on Solaris 2.8 > > > Hi there, > > i ve got a problem compiling nsca on Solaris 2.8 with gcc > 2.95.3 20010315 (release) > > ./configure works fine, but here s the ouput of make all: > > bash-2.03# make all > cd ./src/; make all ; cd .. > make[1]: Entering directory `/usr/share/src/nsca-2.1/src' > gcc -g -O2 -DHAVE_CONFIG_H -lnsl -lsocket nsca.c netutils.c > utils.c -o nsca > In file included from nsca.c:18: > ../common/common.h:105: parse error before `u_int32_t' > ../common/common.h:105: warning: no semicolon at end of > struct or union > ../common/common.h:106: warning: data definition has no type > or storage class > ../common/common.h:111: parse error before `}' > ../common/common.h:111: warning: data definition has no type > or storage class > ../common/common.h:116: parse error before `u_int32_t' > ../common/common.h:116: warning: no semicolon at end of > struct or union > ../common/common.h:117: warning: data definition has no type > or storage class > nsca.c: In function `handle_connection': > nsca.c:768: `init_packet' undeclared (first use in this function) > nsca.c:768: (Each undeclared identifier is reported only once > nsca.c:768: for each function it appears in.) > nsca.c:768: parse error before `send_packet' > nsca.c:791: `send_packet' undeclared (first use in this function) > nsca.c:793: `u_int32_t' undeclared (first use in this function) > nsca.c: In function `handle_connection_read': > nsca.c:837: `data_packet' undeclared (first use in this function) > nsca.c:837: parse error before `receive_packet' > nsca.c:838: `u_int32_t' undeclared (first use in this function) > nsca.c:856: `receive_packet' undeclared (first use in this function) > nsca.c:896: `packet_crc32' undeclared (first use in this function) > nsca.c:898: `calculated_crc32' undeclared (first use in this function) > In file included from netutils.c:32: > ../common/common.h:105: parse error before `u_int32_t' > ../common/common.h:105: warning: no semicolon at end of > struct or union > ../common/common.h:106: warning: data definition has no type > or storage class > ../common/common.h:111: parse error before `}' > ../common/common.h:111: warning: data definition has no type > or storage class > ../common/common.h:116: parse error before `u_int32_t' > ../common/common.h:116: warning: no semicolon at end of > struct or union > ../common/common.h:117: warning: data definition has no type > or storage class > In file included from utils.c:32: > ../common/common.h:105: parse error before `u_int32_t' > ../common/common.h:105: warning: no semicolon at end of > struct or union > ../common/common.h:106: warning: data definition has no type > or storage class > ../common/common.h:111: parse error before `}' > ../common/common.h:111: warning: data definition has no type > or storage class > ../common/common.h:116: parse error before `u_int32_t' > ../common/common.h:116: warning: no semicolon at end of > struct or union > ../common/common.h:117: warning: data definition has no type > or storage class > make[1]: *** [nsca] Error 1 > make[1]: Leaving directory `/usr/share/src/nsca-2.1/src' > bash-2.03# gcc -v > Reading specs from > /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/specs > gcc version 2.95.3 20010315 (release) > > > Has anyone an idea ? > > > Mit freundlichen Gr??en / Kind regards > > Daniel Siegers > Systemadministrator > > Heinrich Bauer Dienstleistungs KG > Brieffach 4620 > Burchardstra?e 11 > D-20077 Hamburg > > Telefon +49 (40)-3019-1991 > Fax +49 (40)-3019-140-1991 > > E-Mail Daniel.Siegers at Bauerverlag.de > > ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From GPotter at MarathonOil.com Tue Dec 17 20:57:30 2002 From: GPotter at MarathonOil.com (Potter, G M (Greg)) Date: Tue, 17 Dec 2002 13:57:30 -0600 Subject: check_oracle_instance.pl Message-ID: I have modified the check_oracle_instance.pl to accept the ORACLE_HOME variable as a command line option as we have multiple ORACLE_HOMEs on our database server. I wasn't sure where to send any modifications since there wasn't and e-mail address in the file. Is anyone else interested in the changes, or know who I could send them to. The changes are just minor. Greg M. Potter mailto:gpotter at marathonoil.com Non Scio, id est in Latina! ~~|\ / | \ ~^~^~^~ / | \ ~^~ Greg Potter~^~^~^~^ ~^~^~ / 9255 ) ~^ Oklahoma City, OK^~^ ~^~^_/____|____) ^~^~^~^~^~^~^~^~^~^~^~^ ~^~^ \_________/ ^~^~^~^~^~^~^~^~^~^~^ ~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~ ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From russell at quadrix.com Tue Dec 17 21:48:20 2002 From: russell at quadrix.com (Russell Scibetti) Date: Tue, 17 Dec 2002 15:48:20 -0500 Subject: xml status.cgi output References: <1040122036.15711.57.camel@fr3nd> Message-ID: <3DFF8D94.3040201@quadrix.com> If you can, don't parse the status.cgi, parse status.log on the box running Nagios. In fact, I already have a fairly thorough perl plugin called check_state which parses the status.log for Hard problems. You can give it various arguments, such as number of critical/warning/unknown found in the log to result in a problem state, ignoring ack'd problems and things in downtime, regex matching based on service and/or host name, etc. If people are interested in this, I can submit it to the nagiosplug project. I had planned on submitting it soon, but I was going to do some more cleanup of the perl code first. -Russell Carles Amig? wrote: >Hello, > >Could Nagios output all status info in a xml output? > >I would like to make a program that parses all the info remotely, and >parsing html is very difficult. > >Regards > -- Russell Scibetti Quadrix Solutions, Inc. http://www.quadrix.com (732) 235-2335, ext. 7038 ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From jcarro10 at sprintspectrum.com Tue Dec 17 22:29:58 2002 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Tue, 17 Dec 2002 15:29:58 -0600 Subject: nrpe custom command problems Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F24A5@PKDWB03C.ad.sprint.com> What user do you normally run nrpe from? When you tested the plugin, did you test it under that user? Can you kick off your command from your Nagios server using check_by_ssh? (You'll need to set up a null passphrase in order for this to work.) What's the plugin written in? If it's a /bin/bash script, try changing that to /bin/sh . Will the plugin run if invoked using 'at' or 'cron'? Food for thought. jc > -----Original Message----- > From: Jeff McKeon [mailto:jsm at inpro.net] > Sent: Tuesday, December 17, 2002 11:54 AM > To: Nagios List > Subject: [Nagios-users] nrpe custom command problems > > > Hey all, > > I've written a plugin for nrpe to check the records in a > database table > and then report warning or critical based on how many records are > returned. The table is basically a mailserver pending message queue. > The plugin, check_msgcount works fine if invoked by itself. However > when I try to run it with check_nrpe localhost -c check_msgcount it > crashes out.. any ideas why? > > nrpe is working fine with the standard plugins, check_disk etc... > Also, I did restart xinetd after adding the command line to the > nrpe.cfg. > > ******************* > > nrpe.cfg file: > > command[check_pendingmail]=/usr/local/nagios/libexec/check_msgcount > > ****************** > > if I run /usr/local/nagios/libexec/check_msgcount by itself > it all runs > fine. > > If I run /usr/local/nagios/libexec//check_nrpe localhost -c > check_pendingmail as in below, the following happens... > > [root at db02tc07927 libexec]# ./check_nrpe localhost -c > check_pendingmail > s/libexec/check_msgcount: mysql: command not found > /usr/local/nagios/libexec/check_msgcount: [: -ge: unary operator > expected > /usr/local/nagios/libexec/check_msgcount: [: -ge: unary operator > expected > > > the check_msgcount file is this: > > ****************************************************************** > > #! /bin/sh > mysql telaurus -u nagios < /usr/local/nagios/libexec/messages.sql > > /usr/local/nagios/libexec/msg_count > > numqueued=`grep -v COUNT /usr/local/nagios/libexec/msg_count` > > if [ $numqueued -ge 2 ]; then > echo "CRITICAL: $numqueued waiting messages in seaCOMM" > exit 2; > fi > > if [ $numqueued -ge 10 ]; then > echo "WARNING: $numqueued waiting messages in seaCOMM" > exit 1; > fi > > echo "OK: $numqueued waiting messages in seaCOMM" > exit 0; > > ********************************************************* > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From thom.berre at samlerhuset.no Tue Dec 17 23:10:15 2002 From: thom.berre at samlerhuset.no (Thom Berre) Date: Tue, 17 Dec 2002 23:10:15 +0100 Subject: 3D Status map Message-ID: <693E33DF086A0940925DB185A440BE8406E262@obelix.samlerhuset.no> Hi! I have a problem with the 3D Status map. I've had the same problem since I started using Nagios a long time ago. When I try to show the 3D map I get a download window with a grayed out "Open" button and if I choose "Save" I get an error telling me that IE6 is unable to open the statuswrl.cgi?host=all. This really didn't bug me, and I blamed it on a bad WRML-client installation or something - until I browsed into the new Nagios demo-installation at squareBOX and the 3D statusmap worked without any problems in my browser. I run nagios on Linux Slackware and Apache 2.0.39 and I'm wondering if there are some statements that has to be done in the apache configfiles (mime types etc). I've also read something about IE has trouble with the caching under SSL as I'm running the nagios site secure. Any suggestions? -- Thom Mikail Berre IT Koordinator Samlerhuset Norge AS ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From sripley at chiaro.com Tue Dec 17 23:34:19 2002 From: sripley at chiaro.com (Scott Ripley) Date: Tue, 17 Dec 2002 16:34:19 -0600 Subject: hostextinfo unavailable to CGIs Message-ID: <668C5EBD23862F459CF63DAFFCA6268C023AA5@rchst006.chiaro.com> I knew it was going to be something painfully obvious. I didn't have the have_2d_coords field set to 1 in the hostextinfo table. Everything is working correctly now. Scott. -----Original Message----- From: Scott Ripley [mailto:sripley at chiaro.com] Sent: Tuesday, December 17, 2002 12:13 PM To: 'nagios-users at lists.sourceforge.net' Subject: [Nagios-users] hostextinfo unavailable to CGIs All, I have converted my NetSaint installation to Nagios over the weekend, and most everything has gone well. I used the FreeBSD port of 1.06b for the installation, and added the mysql compile options to the Makefile. Most of the mysql features are working, but I was still having difficulty getting hostextinfo to the CGIs. So, things like the icons for hosts, external urls for host info, and statusmap were not working. I went ahead and converted my hostextinfo to template format, and tried adding it as an option in the cgi.cfg. xedtemplate_config_file=/usr/local/nagios/etc/hostextinfo.cfg No luck there either. I noticed that I compiled with both: --with-template-extinfo \ and --with-mysql-extinfo \ So, I reinstalled without the --with-template-extinfo option. Now I am getting extended host information on status.cgi and extinfo.cgi, but still no user-coordinates for the statusmap. I suppose I could go back to the template based extinfo, but I would like to have this in the database if possible. Any ideas? TIA, Scott. Here are the options in my makefile: CONFIGURE_ARGS= --with-command-user=nagios \ --with-command-grp=nagioscmd \ --with-nagios-user=nagios \ --with-nagios-grp=nagios \ --with-template-objects \ --with-init-dir=${PREFIX}/etc/rc.d \ --sbindir=${PREFIX}/share/nagios/cgi-bin \ --libexecdir=${PREFIX}/libexec/nagios \ --datadir=${PREFIX}/share/nagios \ --sysconfdir=${PREFIX}/etc/nagios \ --localstatedir=${PREFIX}/var/nagios \ --prefix=${PREFIX} \ --with-mysql-xdata \ --with-mysql-status \ --with-mysql-comments \ --with-mysql-extinfo \ --with-mysql-retention \ --with-mysql-downtime \ --with-mysql-lib=${PREFIX}/lib/mysql \ --with-mysql-inc=${PREFIX}/include/mysql -------------- next part -------------- ----------------------------------------- (on rchss001) This e-mail and any files transmitted with it are the property of Chiaro Networks, Ltd., and may contain confidential and privileged material for the sole use of the intended recipient(s) to whom this e-mail is addressed. If you are not one of the named recipient(s), or otherwise have reason to believe that you have received this message in error, please notify the sender and delete all copies from your system. Any other use, retention, dissemination, forwarding, printing or copying of this e-mail is strictly prohibited. --------------------------------------------------------- From Gopinath_Pulyankote at affymetrix.com Tue Dec 17 23:55:29 2002 From: Gopinath_Pulyankote at affymetrix.com (Pulyankote, Gopinath) Date: Tue, 17 Dec 2002 14:55:29 -0800 Subject: How to convert UNIX epoch to date format for u se in Alerts? Message-ID: <48F1F432BF75D6118FAC0002B325BE3636E9AA@ntex04.affymetrix.com> Its me again, I figured this out. I created a new notify method with the following: define command { command_name host-notify-manager command_line /usr/bin/printf "%b" " since '$LASTSTATECHANGE$' \nTime now is: $DATETIME$" | /bin/mail -s "$NOTIFICATIONTYPE$ alert - Host $HOSTALIAS$ is $HOSTSTATE$" $CONTACTPAGER$ } The only problem now is that $LASTSTATECHANGE$ is in UNIX epoch format. How does one convert this to readable format ? Thanks -Gopinath -----Original Message----- From: Pulyankote, Gopinath [mailto:Gopinath_Pulyankote at affymetrix.com] Sent: Tuesday, December 17, 2002 11:04 AM To: Nagios List Subject: [Nagios-users] About Alerts Hi there, We have setup escalations to our Managers when a host is down for more than 2 hours, but every alert that they get has the time stamp when it was sent out, NOT when the host actually went down. Can someone help me figure out how to get this done? Looking at the host details, I see a field called Last State Change that has the info I am looking for. Is there a way to get the "Last State Change" value into the alerts Nagios sends out. Thanks in advance -Gopinath ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From jengstro at archonstudios.com Wed Dec 18 00:37:43 2002 From: jengstro at archonstudios.com (J.Engstrom) Date: Tue, 17 Dec 2002 15:37:43 -0800 (PST) Subject: Hostgroup within a hostgroup Message-ID: <20021217233743.0087A3960@sitemail.everyone.net> An embedded and charset-unspecified text was scrubbed... Name: not available URL: From Olaf.Greis at grinco.de Wed Dec 18 02:35:00 2002 From: Olaf.Greis at grinco.de (Olaf Greis) Date: Wed, 18 Dec 2002 02:35:00 +0100 Subject: How to convert UNIX epoch to date format for u se in Alerts? In-Reply-To: <48F1F432BF75D6118FAC0002B325BE3636E9AA@ntex04.affymetrix.com> References: <48F1F432BF75D6118FAC0002B325BE3636E9AA@ntex04.affymetrix.com> Message-ID: <200212180235.00562@grinco.de> > The only problem now is that $LASTSTATECHANGE$ is in UNIX epoch format. > How does one convert this to readable format ? perl -e 'print scalar localtime(1234567890)' is one of the possible solutions. brdgs olaf ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From Stanley.Hopcroft at IPAustralia.Gov.AU Wed Dec 18 04:44:29 2002 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Wed, 18 Dec 2002 14:44:29 +1100 Subject: availability shown incorrectly In-Reply-To: ; from JKnash@bnyclearing.com on Tue, Dec 17, 2002 at 07:58:56AM -0800 References: Message-ID: <20021218144425.D49421@IPAustralia.Gov.AU> Dear Sir, On Tue, Dec 17, 2002 at 07:58:56AM -0800, JKnash at bnyclearing.com wrote: > All of my Host State Breakdowns in Nagios report 100% Time Undetermined. > Any idea why? > Host state breakdowns (and service state) work better for me if I set 'First assumed host state' to UP and press the the UPDATE button. I don't know why this is although I expect that it simplifies accumulating total up time (the sum of up times starting from the start of the time interval). > Justin Knash > Network Engineer > BNY Clearing Services > > > HTH. Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From nagios at nagios.org Wed Dec 18 05:47:51 2002 From: nagios at nagios.org (Ethan Galstad) Date: Tue, 17 Dec 2002 22:47:51 -0600 Subject: FW: Migrating from single monitoring server to distributed monitoring server In-Reply-To: <000701c2a217$663aeb00$77b5fea9@ozpacnet.office.pacific.net.au> References: <000701c2a217$663aeb00$77b5fea9@ozpacnet.office.pacific.net.au> Message-ID: <3DFFA997.30283.117FD06@localhost> > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Andrew Kemp > Sent: Friday, 6 December 2002 3:24 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Migrating from single monitoring server to > distributed monitoring server > > > Gidday, > > > We have a situation where a department has been running Netsaint > in a stand alone environment to monitor their hosts and services. > > My department runs a distributed environment to monitor the enterprise > wide hosts and services. > > We are in the position where we wish to integrate the other departments > monitoring into the distributed environment. If I was to just add the > hosts to the distributed environment as new entries, this would be very > easy. However, there is a requirement to keep the Netsaint host (soon to > be Nagios) and make it another distributed node in the monitoring > environment. Also, I need to keep the historical data for the > hosts/services > that this host monitors (a couple of months). > > Can I simply do: > > cat nagios.log nagios2.log | sort > new-nagios.log (where nagios2.log > is > the log from the other host) to keep the information ? > > I will then iterate through all relevant log files to migrate the > historical > information across. > > > Thanks. > > Andrew > > You should be able to do this. However, make sure to strip out all references to program starts/stops/restarts in the distributed logs before you merge them into the central log. Also, if you do this you will probably have some slight inaccuracies with regards to availability reports on the distributed hosts/services. The main reason for that is that the central and distributed copies of Nagios probably started/stopped/restarted at different times and Nagios logs some events (like initial state info) immediately after startup. I don't think this should affect things negatively too much, but keep the original logs around just in case the combined log gives you problems. Ethan Galstad, Nagios Developer --- Email: nagios at nagios.org Website: http://www.nagios.org ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From tdeblend at gcc.dhl.com Wed Dec 18 08:32:34 2002 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Wed, 18 Dec 2002 08:32:34 +0100 Subject: Merged disk checks References: Message-ID: <3E002492.ABF18D4B@gcc.dhl.com> I think netsaint_statd or nagios_statd is the easiest way to check this. [root at netsaint root]# /usr/local/netsaint/libexec/check_all_disks.pl gcclo12 80 90 Warning: /opt(93%) /opt/ignite(90%) All it needs is a client side Perl deamon on the target servers. "Kraus, Markus" wrote: > > Hello @, > > I monitor about 100 servers each with at least 5 Partitions. That makes over > all 500 check_disk calls. Isn' t there a plugin which tests all partitions > of a system and returns only an over all status? > > Any help which can be offered is greatly appreciated. > > Markus > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From tdeblend at gcc.dhl.com Wed Dec 18 08:29:09 2002 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Wed, 18 Dec 2002 08:29:09 +0100 Subject: Downtime References: <74D428BDBFD5D04CB54E84499ECA29DB2F24A2@PKDWB03C.ad.sprint.com> Message-ID: <3E0023C5.5669347F@gcc.dhl.com> Being forced into it is arguable. My stupidity in this matter, however, is not. If I had scrolled down the page where one schedules the downtime, I would have seen that the "comments" field is a required field. But I do agree with you that the error message is a bit off. The only excuse I have is that I've scheduled downtime though Netsaint numurous times without haviong to add comments, so I wasn't really paying much attention... "Carroll, Jim P [Contractor]" wrote: > > I personally like being forced to put in a comment, because: > > - it gives us some history on the host > - it could be 3am and I could be tired > > I just wish it said something like, "You forgot to put in a comment, go back > and try again," because this particular error has confused my peers, the > first time they saw it. "Hey Jim, I think Nagios is broken!" :( > > jc > > > -----Original Message----- > > From: Tom DE BLENDE [mailto:tdeblend at gcc.dhl.com] > > Sent: Tuesday, December 17, 2002 5:24 AM > > To: Stanley Hopcroft > > Cc: nagios-users > > Subject: Re: [Nagios-users] Downtime > > > > > > Dear Stanley, > > > > While I fail to see the reason for being forced in entering a comment, > > it did do the trick. > > > > Many thanks! > > Tom > > > > Stanley Hopcroft wrote: > > > > > > Dear Sir, > > > > > > On Tue, Dec 17, 2002 at 11:35:13AM +0100, Tom DE BLENDE wrote: > > > > Hi, > > > > > > > > I've got a problem when trying to schedule downtime from the web > > > > interface. When I do his for a host, and I just accept > > the standard 2 > > > > hours interval, I get this error: > > > > > > > > "An error occurred while processing your command. > > > > Go back and verify that you entered all required information > > > > correctly. > > > > Return from whence you came" > > > > > > > > It's bound to be something silly, but I can't figure out > > what... An > > > > since both nagios.org (not reachable) and the sourceforge archives > > > > (temporarily offline) are not available... > > > > > > > > > > You need a comment describing the outage. 'blah' is sufficient. > > > > > > (Observed from experience not from code walk.) > > > > > > > Kind regards, > > > > Tom > > > > > > > > > > > > > > Yours sincerely. > > > > > > -- > > > > > -------------------------------------------------------------- > > ---------- > > > Stanley Hopcroft > > > > > -------------------------------------------------------------- > > ---------- > > > > > > '...No man is an island, entire of itself; every man is a > > piece of the > > > continent, a part of the main. If a clod be washed away by the sea, > > > Europe is the less, as well as if a promontory were, as well as if a > > > manor of thy friend's or of thine own were. Any man's death > > diminishes > > > me, because I am involved in mankind; and therefore never > > send to know > > > for whom the bell tolls; it tolls for thee...' > > > > > > from Meditation 17, J Donne. > > ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From Ton.Voon at egg.com Wed Dec 18 10:32:40 2002 From: Ton.Voon at egg.com (Voon, Ton) Date: Wed, 18 Dec 2002 09:32:40 -0000 Subject: checking memory and cpu consumption of procs Message-ID: <53104E20A25CD411B556009027E50636064D5018@pnnemp02.pn.egg.com> A check_cpu, based on check_vsz, would be useful. However, it would require quite a few non-trivial changes to the configure.in and makefile.am to pick up various flags for the ps command to make it portable. If you want to make a start, I'd be happy to add in other OSes. > -----Original Message----- > From: Dave Viner [SMTP:dviner at yahoo-inc.com] > Sent: Tuesday, December 17, 2002 6:23 PM > To: Voon, Ton; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] checking memory and cpu consumption of > procs > > Hi, > > Thanks for pointing me to check_vsz. This is a really great utility. > From > looking at the usage message and the code itself, it looks to me like this > monitors virtual memory consumption. Are there any hooks to monitor %cpu > consumption ? Perhaps something like > ps waxco 'vsz %cpu command' > ? I'm happy to try to add this in if it sounds useful. > > dave > > -----Original Message----- > From: Voon, Ton [mailto:Ton.Voon at egg.com] > Sent: Tuesday, December 17, 2002 1:31 AM > To: 'Dave Viner'; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] checking memory and cpu consumption of procs > > > Dave, > > Take a look at check_vsz for the virtual size of memory usage on a process > level. I've put lot of functionality patches on sourceforge, so you'll > need > to apply those. > > Ton > > > -----Original Message----- > > From: Dave Viner [SMTP:dviner at yahoo-inc.com] > > Sent: Tuesday, December 17, 2002 6:56 AM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] checking memory and cpu consumption of procs > > > > Hi, > > I want to ensure that no process on a machine consumes more than x % > > of the > > cpu, and y MB memory. Is there an existing plugin that handles this? I > > saw > > that check_procs will monitor the number of processes on a machine > > (including ones that match a certain name), and check_load will examine > > the > > machine's overall load averages as reported by uptime. But I can't seem > > to > > find anything that monitors cpu consumption or memory consumption. Is > > there > > a plugin for this already? > > > > thanks > > dave > > > > This private and confidential e-mail has been sent to you by Egg. The Egg group of companies includes Egg Banking plc (registered no. 2999842), Egg Financial Products Ltd (registered no. 3319027) and Egg Investments Ltd (registered no. 3403963) which carries out investment business on behalf of Egg and is regulated by the Financial Services Authority. Registered in England and Wales. Registered offices: 1 Waterhouse Square, 138-142 Holborn, London EC1N 2NA. If you are not the intended recipient of this e-mail and have received it in error, please notify the sender by replying with 'received in error' as the subject and then delete it from your mailbox. ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From R.Ruecker at st-ag.de Wed Dec 18 10:38:37 2002 From: R.Ruecker at st-ag.de (Ruecker, Rainer) Date: Wed, 18 Dec 2002 10:38:37 +0100 Subject: Win2000 App Log errors from NS client Message-ID: > Rainer, > > Thanks, and point taken. However you may have noticed that I > had removed that > service from the services.cfg file for this host and > checkcommands.cfg file. > This has been replaced using the check_citrix plugin. Still > the errors occur. > > regards > Shane Does the error occur everytime when nagios executes check_citrix or ist the timestamp in the W2K error-log unrelated to the activities of the plugin? In the latter case it might help to restart the NSClient-Service. (But from the code I can see that NSClient *builds* the actual perf-counter at the moment the query arrives over the net and *destroys* it after the query is done. Only the "standard" perfmons (SystemTotalProcessorTime, SystemSystemUpTime, MemoryCommitLimit, MemoryCommitByte) are build at startup of NSClient and run until the Service ist stopped.) Are there other error-messages generated by NS-Client? cheers Rainer ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From kuehne at sietec.de Wed Dec 18 10:40:14 2002 From: kuehne at sietec.de (Alex Kuehne) Date: Wed, 18 Dec 2002 10:40:14 +0100 Subject: compiling nsca on Solaris 2.8 Message-ID: <3E00427E.4000204@sietec.de> > -----Original Message----- > From: Jackson Sie [mailto:jsie at quadrix.com] > Sent: Tuesday, December 17, 2002 8:13 PM > To: 'Carroll, Jim P [Contractor]'; 'Daniel Siegers'; > nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] compiling nsca on Solaris 2.8 > > > If you simply do a global search and replace on the source files for: > > Search for: u_int32_t > Replace with: uint32_t > > This will remove the compilation problem you are experiencing. That was pretty helpful. Regards Alex Kuehne -- Network Manager, SAG, Berlin, Germany ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From p.goedhart at bright.nl Wed Dec 18 10:59:15 2002 From: p.goedhart at bright.nl (Patrick Goedhart) Date: Wed, 18 Dec 2002 10:59:15 +0100 Subject: diskcheck Message-ID: Hi, Is it possible to check the diskspace on remote systems ? I know you need to access the remote server to check the diskspace, so the only solution would be a local test and send a mail or something to the nagios server when there is a problem. But how must this be done ?? or it is possible ? /patrick/ ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From tdeblend at gcc.dhl.com Wed Dec 18 11:07:45 2002 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Wed, 18 Dec 2002 11:07:45 +0100 Subject: diskcheck References: Message-ID: <3E0048F1.A6EB16EF@gcc.dhl.com> nrpe nagios_statd snmp check_by_ssh nsca take a pick... Patrick Goedhart wrote: > > Hi, > > Is it possible to check the diskspace on remote systems ? > > I know you need to access the remote server to check the diskspace, so > the only solution would be a local test and send a mail or something to > the nagios server when there is a problem. But how must this be done ?? > or it is possible ? > > /patrick/ > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From Stanley.Hopcroft at IPAustralia.Gov.AU Wed Dec 18 11:27:17 2002 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Wed, 18 Dec 2002 21:27:17 +1100 Subject: diskcheck In-Reply-To: ; from p.goedhart@bright.nl on Wed, Dec 18, 2002 at 10:59:15AM +0100 References: Message-ID: <20021218212713.A220@IPAustralia.Gov.AU> Dear Sir, I am writing to thank you for your letter and say, On Wed, Dec 18, 2002 at 10:59:15AM +0100, Patrick Goedhart wrote: > Hi, > > Is it possible to check the diskspace on remote systems ? > Yes. There are a number of ways of doing so including 1 by ssh (you provide a shell for the Netsaint/Nagios user on the remote system, equip it with the public key of the Nag/Netsaint user and have that user run the standard plugin check_disk) 2 use netsaint_statd or nagios_statd 3 have the remote machine submit the result of the service check (using check_disk for example) to the monitor machine with ncsa_send and ncsa 4 Remote Execution Layer ... > I know you need to access the remote server to check the diskspace, so > the only solution would be a local test and send a mail or something to > the nagios server when there is a problem. It's possible for the remote host to submit the results with ncsa over a secure tcp connection to the monitor machine. Have a look at the addons section of the project web pages (www.NetSaint.ORG or www.Nagios.ORG). They are very clearly documented like every aspect of Nagios. > But how must this be done ?? > or it is possible ? > > /patrick/ > > There are probably other ways. Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From carles at servidores.com Wed Dec 18 11:27:44 2002 From: carles at servidores.com (Carles =?ISO-8859-1?Q?Amig=F3?=) Date: 18 Dec 2002 11:27:44 +0100 Subject: xml status.cgi output In-Reply-To: <3DFF8D94.3040201@quadrix.com> References: <1040122036.15711.57.camel@fr3nd> <3DFF8D94.3040201@quadrix.com> Message-ID: <1040207263.22029.53.camel@fr3nd> I was looking for a more "universal" way to access remotely to any Nagios server. Parsing status.log would be easyer when doing in the local server. Not remotely On Tue, 2002-12-17 at 21:48, Russell Scibetti wrote: > If you can, don't parse the status.cgi, parse status.log on the box > running Nagios. In fact, I already have a fairly thorough perl plugin > called check_state which parses the status.log for Hard problems. You > can give it various arguments, such as number of > critical/warning/unknown found in the log to result in a problem state, > ignoring ack'd problems and things in downtime, regex matching based on > service and/or host name, etc. > > If people are interested in this, I can submit it to the nagiosplug > project. I had planned on submitting it soon, but I was going to do > some more cleanup of the perl code first. > > -Russell > > Carles Amig? wrote: > > >Hello, > > > >Could Nagios output all status info in a xml output? > > > >I would like to make a program that parses all the info remotely, and > >parsing html is very difficult. > > > >Regards > > -- Carles Amig? Mart?nez Resp. Advanced Hosting Servidores.com Tel: (+34) 902 999 707 - Fax: (+34) 93 268 14 79 carles at servidores.com - http://www.servidores.com Servidores.com es un servicio de Inlander Communications SL ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From Fredrik.Wanglund at datavis.se Wed Dec 18 14:06:02 2002 From: Fredrik.Wanglund at datavis.se (=?iso-8859-1?Q?Fredrik_W=E4nglund?=) Date: Wed, 18 Dec 2002 14:06:02 +0100 Subject: Check Disk Usage Critical & Warning issues Message-ID: <9EA0F1554816EB499A4B1136B80E8DE2780447@storevis.datavis.se> In Apan, you specify how many megabytes there must be free before warning critical is reported. /FredrikW -----Original Message----- From: Tom DE BLENDE [mailto:tdeblend at gcc.dhl.com] Sent: Tue 17-Dec-02 08:54 To: Scott Urbatsch Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Check Disk Usage Critical & Warning issues Scott, NSClient works with ratios rather than absolute figures. > Scott Urbatsch wrote: > > Seems I can't quite get a grasp of the check_nt (nt_disk) services. > I seem to have it partly correct, but either have Critical or OK, > never Warning. I've a tried a variety of combinations, but guess I > need a definitive answer as to the parameters required. I get > reliable responses from the NSClient > > > > > > WebPage > > - - - - --- - - > > Disk-usage CRITICAL 12-16-2002 11:01:38 0d 11h 0m 42s 3/3 Disk > utilization: f: 5376.00 Mb free, g: 1413.12 Mb free, > > > > \tmp\apan.debug > > - - - - - - - - --- - - > > Mon Dec 16 11:03:40 PST 2002 Args: nt-disk server Disk-usage > 1040065420 1000 2000 (I get same results with 2000 1000 as well) > > > > Apan.cfg > > - - - - --- - - > > server;Disk-usage;/usr/local/nagios/rrd/server-Disk-usage.rrd;f|g;f-used:AREA > f-free:STACK g-used:AREA g-free:STACK > > ;Disk usage;Bytes;-l 1 -b 1024 > > > > services.cfg > > - - - - --- - - > > define service { > > host_name server > > service_description Disk-usage > > check_command apan!nt-disk!1000!2000 > (NOTE: I've tried 2000!1000 & 2000.00!1000.00 and so on) > > use generic-service > > check_period 24x7 > > max_check_attempts 3 > > normal_check_interval 5 > > retry_check_interval 2 > > contact_groups admins > > notification_interval 120 > > notification_period 24x7 > > notification_options w,u,c,r > > } > > > > serviceextinfo.cfg > > - - - - --- - - - --- - - > > define serviceextinfo{ > > host_name 2k02 > > service_description Disk-usageFG > > notes_url > /nagios/cgi-bin/apan.cgi?host=2k02&service=Disk-usageFG > > icon_image graph.png > > icon_image_alt View graphs > > } ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From jsm at inpro.net Wed Dec 18 14:38:53 2002 From: jsm at inpro.net (Jeff McKeon) Date: 18 Dec 2002 08:38:53 -0500 Subject: nrpe custom command problems In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB2F24A5@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB2F24A5@PKDWB03C.ad.sprint.com> Message-ID: <1040218734.28378.13.camel@rh80-jsm.telaurus.net> nrpe runs under the user nagios, at least thats whats in the xinetd startup script. It is a /bin/bash shell script. If I take out the mysql command from the scrip nrpe runs it fine. The problem seems to be that nrpe doesn't recognize the mysql command as a real command. Why this matters I'm not sure because shouldn't nrpe just run the script and wait for output? I haven't tried to run it with check_by_ssh because OpenSSH on the target machine is very old, has never been set up correctly and I really don't want to start patching the hell out of a machine I'll probably just rebuild in a month or two (If I have my way). Long story there, classic battle between development and operations. On Tue, 2002-12-17 at 16:29, Carroll, Jim P [Contractor] wrote: > What user do you normally run nrpe from? When you tested the plugin, did > you test it under that user? Can you kick off your command from your Nagios > server using check_by_ssh? (You'll need to set up a null passphrase in > order for this to work.) > > What's the plugin written in? If it's a /bin/bash script, try changing that > to /bin/sh . > > Will the plugin run if invoked using 'at' or 'cron'? > > Food for thought. > > jc > > > -----Original Message----- > > From: Jeff McKeon [mailto:jsm at inpro.net] > > Sent: Tuesday, December 17, 2002 11:54 AM > > To: Nagios List > > Subject: [Nagios-users] nrpe custom command problems > > > > > > Hey all, > > > > I've written a plugin for nrpe to check the records in a > > database table > > and then report warning or critical based on how many records are > > returned. The table is basically a mailserver pending message queue. > > The plugin, check_msgcount works fine if invoked by itself. However > > when I try to run it with check_nrpe localhost -c check_msgcount it > > crashes out.. any ideas why? > > > > nrpe is working fine with the standard plugins, check_disk etc... > > Also, I did restart xinetd after adding the command line to the > > nrpe.cfg. > > > > ******************* > > > > nrpe.cfg file: > > > > command[check_pendingmail]=/usr/local/nagios/libexec/check_msgcount > > > > ****************** > > > > if I run /usr/local/nagios/libexec/check_msgcount by itself > > it all runs > > fine. > > > > If I run /usr/local/nagios/libexec//check_nrpe localhost -c > > check_pendingmail as in below, the following happens... > > > > [root at db02tc07927 libexec]# ./check_nrpe localhost -c > > check_pendingmail > > s/libexec/check_msgcount: mysql: command not found > > /usr/local/nagios/libexec/check_msgcount: [: -ge: unary operator > > expected > > /usr/local/nagios/libexec/check_msgcount: [: -ge: unary operator > > expected > > > > > > the check_msgcount file is this: > > > > ****************************************************************** > > > > #! /bin/sh > > mysql telaurus -u nagios < /usr/local/nagios/libexec/messages.sql > > > /usr/local/nagios/libexec/msg_count > > > > numqueued=`grep -v COUNT /usr/local/nagios/libexec/msg_count` > > > > if [ $numqueued -ge 2 ]; then > > echo "CRITICAL: $numqueued waiting messages in seaCOMM" > > exit 2; > > fi > > > > if [ $numqueued -ge 10 ]; then > > echo "WARNING: $numqueued waiting messages in seaCOMM" > > exit 1; > > fi > > > > echo "OK: $numqueued waiting messages in seaCOMM" > > exit 0; > > > > ********************************************************* > > > > > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by: > > With Great Power, Comes Great Responsibility > > Learn to use your power at OSDN's High Performance Computing Channel > > http://hpc.devchannel.org/ > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From hfh at linuxplanet.dk Wed Dec 18 14:29:26 2002 From: hfh at linuxplanet.dk (Henrik Flindt Hansen) Date: Wed, 18 Dec 2002 14:29:26 +0100 (CET) Subject: There is a circular parent/child path that exists for host Message-ID: <49214.194.239.110.200.1040218166.squirrel@10.1.0.2> Hi I am in the process of adding all internetwork units to a newly installed box with Nagios. We have redundant paths many places and therefore also physically circles where units are configured with spanning-tree etc. What i would like to do is to map the physical layout of all our segments, but i can't avoid getting the "circular" error, speciefied in the header (There is a circular parent/child path that exists for host), when trying. Is there somhow i can make Nagios accept these circular setups ? Best regards Henrik Hansen ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From Daniel.Siegers at bauerverlag.de Wed Dec 18 14:47:41 2002 From: Daniel.Siegers at bauerverlag.de (Daniel Siegers) Date: Wed, 18 Dec 2002 14:47:41 +0100 Subject: Antw: RE: compiling nsca on Solaris 2.8 Message-ID: Thx, it worked ! Mit freundlichen Gr??en / Kind regards Daniel Siegers Systemadministrator Heinrich Bauer Dienstleistungs KG Brieffach 4620 Burchardstra?e 11 D-20077 Hamburg Telefon +49 (40)-3019-1991 Fax +49 (40)-3019-140-1991 E-Mail Daniel.Siegers at Bauerverlag.de >>> "Jackson Sie" 17.12.2002 20:12 >>> If you simply do a global search and replace on the source files for: Search for: u_int32_t Replace with: uint32_t This will remove the compilation problem you are experiencing. Jackson Sie Quadrix Solutions, Inc. -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [ mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Carroll, Jim P [Contractor] Sent: Tuesday, December 17, 2002 12:01 PM To: 'Daniel Siegers'; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] compiling nsca on Solaris 2.8 Have you tried GNU make? If not, get it from www.sunfreeware.com . Be sure that you have /usr/local/bin first on your $PATH before running 'make'. jc > -----Original Message----- > From: Daniel Siegers [ mailto:Daniel.Siegers at bauerverlag.de] > Sent: Tuesday, December 17, 2002 9:02 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] compiling nsca on Solaris 2.8 > > > Hi there, > > i ve got a problem compiling nsca on Solaris 2.8 with gcc > 2.95.3 20010315 (release) > > ./configure works fine, but here s the ouput of make all: > > bash-2.03# make all > cd ./src/; make all ; cd .. > make[1]: Entering directory `/usr/share/src/nsca-2.1/src' > gcc -g -O2 -DHAVE_CONFIG_H -lnsl -lsocket nsca.c netutils.c > utils.c -o nsca > In file included from nsca.c:18: > ../common/common.h:105: parse error before `u_int32_t' > ../common/common.h:105: warning: no semicolon at end of > struct or union > ../common/common.h:106: warning: data definition has no type > or storage class > ../common/common.h:111: parse error before `}' > ../common/common.h:111: warning: data definition has no type > or storage class > ../common/common.h:116: parse error before `u_int32_t' > ../common/common.h:116: warning: no semicolon at end of > struct or union > ../common/common.h:117: warning: data definition has no type > or storage class > nsca.c: In function `handle_connection': > nsca.c:768: `init_packet' undeclared (first use in this function) > nsca.c:768: (Each undeclared identifier is reported only once > nsca.c:768: for each function it appears in.) > nsca.c:768: parse error before `send_packet' > nsca.c:791: `send_packet' undeclared (first use in this function) > nsca.c:793: `u_int32_t' undeclared (first use in this function) > nsca.c: In function `handle_connection_read': > nsca.c:837: `data_packet' undeclared (first use in this function) > nsca.c:837: parse error before `receive_packet' > nsca.c:838: `u_int32_t' undeclared (first use in this function) > nsca.c:856: `receive_packet' undeclared (first use in this function) > nsca.c:896: `packet_crc32' undeclared (first use in this function) > nsca.c:898: `calculated_crc32' undeclared (first use in this function) > In file included from netutils.c:32: > ../common/common.h:105: parse error before `u_int32_t' > ../common/common.h:105: warning: no semicolon at end of > struct or union > ../common/common.h:106: warning: data definition has no type > or storage class > ../common/common.h:111: parse error before `}' > ../common/common.h:111: warning: data definition has no type > or storage class > ../common/common.h:116: parse error before `u_int32_t' > ../common/common.h:116: warning: no semicolon at end of > struct or union > ../common/common.h:117: warning: data definition has no type > or storage class > In file included from utils.c:32: > ../common/common.h:105: parse error before `u_int32_t' > ../common/common.h:105: warning: no semicolon at end of > struct or union > ../common/common.h:106: warning: data definition has no type > or storage class > ../common/common.h:111: parse error before `}' > ../common/common.h:111: warning: data definition has no type > or storage class > ../common/common.h:116: parse error before `u_int32_t' > ../common/common.h:116: warning: no semicolon at end of > struct or union > ../common/common.h:117: warning: data definition has no type > or storage class > make[1]: *** [nsca] Error 1 > make[1]: Leaving directory `/usr/share/src/nsca-2.1/src' > bash-2.03# gcc -v > Reading specs from > /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/specs > gcc version 2.95.3 20010315 (release) > > > Has anyone an idea ? > > > Mit freundlichen Gr??en / Kind regards > > Daniel Siegers > Systemadministrator > > Heinrich Bauer Dienstleistungs KG > Brieffach 4620 > Burchardstra?e 11 > D-20077 Hamburg > > Telefon +49 (40)-3019-1991 > Fax +49 (40)-3019-140-1991 > > E-Mail Daniel.Siegers at Bauerverlag.de > > ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Daniel Siegers.vcf Type: text/x-vcard Size: 227 bytes Desc: not available URL: From Volker.Aust at premiere.de Wed Dec 18 15:19:29 2002 From: Volker.Aust at premiere.de (Volker.Aust at premiere.de) Date: Wed, 18 Dec 2002 15:19:29 +0100 Subject: nrpe custom command problems Message-ID: a few hints: - put in the full path to mysql into the script. - put in the full path to grep into the script. - test your plugin script with the user "nagios", like jc suggested. - my mysgl uses shared libraries. When your script is called from nrpe, there is only a very limited environment. Be sure that mysql find all shared libraries. On Solaris you can set LD_LIBRARY_PATH in your script to ensure that or you can set a global path for shared libraries (crle for Solaris, ld_config for Linux(?)). -vol > -----Original Message----- > From: Jeff McKeon [mailto:jsm at inpro.net] > Sent: Wednesday, December 18, 2002 2:39 PM > To: Carroll, Jim P ""[Contractor] > Cc: Nagios List > Subject: RE: [Nagios-users] nrpe custom command problems > > > nrpe runs under the user nagios, at least thats whats in the xinetd > startup script. It is a /bin/bash shell script. If I take out the > mysql command from the scrip nrpe runs it fine. The problem > seems to be > that nrpe doesn't recognize the mysql command as a real command. Why > this matters I'm not sure because shouldn't nrpe just run the > script and > wait for output? > > I haven't tried to run it with check_by_ssh because OpenSSH on the > target machine is very old, has never been set up correctly > and I really > don't want to start patching the hell out of a machine I'll probably > just rebuild in a month or two (If I have my way). Long story there, > classic battle between development and operations. > > On Tue, 2002-12-17 at 16:29, Carroll, Jim P [Contractor] wrote: > > What user do you normally run nrpe from? When you tested > the plugin, did > > you test it under that user? Can you kick off your command > from your Nagios > > server using check_by_ssh? (You'll need to set up a null > passphrase in > > order for this to work.) > > > > What's the plugin written in? If it's a /bin/bash script, > try changing that > > to /bin/sh . > > > > Will the plugin run if invoked using 'at' or 'cron'? > > > > Food for thought. > > > > jc > > > > > -----Original Message----- > > > From: Jeff McKeon [mailto:jsm at inpro.net] > > > Sent: Tuesday, December 17, 2002 11:54 AM > > > To: Nagios List > > > Subject: [Nagios-users] nrpe custom command problems > > > > > > > > > Hey all, > > > > > > I've written a plugin for nrpe to check the records in a > > > database table > > > and then report warning or critical based on how many records are > > > returned. The table is basically a mailserver pending > message queue. > > > The plugin, check_msgcount works fine if invoked by > itself. However > > > when I try to run it with check_nrpe localhost -c > check_msgcount it > > > crashes out.. any ideas why? > > > > > > nrpe is working fine with the standard plugins, check_disk etc... > > > Also, I did restart xinetd after adding the command line to the > > > nrpe.cfg. > > > > > > ******************* > > > > > > nrpe.cfg file: > > > > > > > command[check_pendingmail]=/usr/local/nagios/libexec/check_msgcount > > > > > > ****************** > > > > > > if I run /usr/local/nagios/libexec/check_msgcount by itself > > > it all runs > > > fine. > > > > > > If I run /usr/local/nagios/libexec//check_nrpe localhost -c > > > check_pendingmail as in below, the following happens... > > > > > > [root at db02tc07927 libexec]# ./check_nrpe localhost -c > > > check_pendingmail > > > s/libexec/check_msgcount: mysql: command not found > > > /usr/local/nagios/libexec/check_msgcount: [: -ge: unary operator > > > expected > > > /usr/local/nagios/libexec/check_msgcount: [: -ge: unary operator > > > expected > > > > > > > > > the check_msgcount file is this: > > > > > > ****************************************************************** > > > > > > #! /bin/sh > > > mysql telaurus -u nagios < > /usr/local/nagios/libexec/messages.sql > > > > /usr/local/nagios/libexec/msg_count > > > > > > numqueued=`grep -v COUNT /usr/local/nagios/libexec/msg_count` > > > > > > if [ $numqueued -ge 2 ]; then > > > echo "CRITICAL: $numqueued waiting messages in seaCOMM" > > > exit 2; > > > fi > > > > > > if [ $numqueued -ge 10 ]; then > > > echo "WARNING: $numqueued waiting messages in seaCOMM" > > > exit 1; > > > fi > > > > > > echo "OK: $numqueued waiting messages in seaCOMM" > > > exit 0; > > > > > > ********************************************************* > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > This sf.net email is sponsored by: > > > With Great Power, Comes Great Responsibility > > > Learn to use your power at OSDN's High Performance > Computing Channel > > > http://hpc.devchannel.org/ > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From jlyons30 at yahoo.com Wed Dec 18 16:12:15 2002 From: jlyons30 at yahoo.com (Jon Lyons) Date: Wed, 18 Dec 2002 07:12:15 -0800 (PST) Subject: RESOLVED: Change Service Warning text to differnet color in Tac.cgi???... In-Reply-To: <20021217163025.44496.qmail@web21508.mail.yahoo.com> References: <20021217163025.44496.qmail@web21508.mail.yahoo.com> Message-ID: <20021218151215.41157.qmail@web21507.mail.yahoo.com> FYI, I've updated my tac.c and tac.css (1.0b6) stylesheet to change the default colors of the tac.cgi text backgrounds from red to yellow for warnings, and brownish for unknown. Now only the critical alerts on the tac.cgi are in red... Basically I added two stylesheet definitions to tac.css; and call them in tac.c... warningserviceImportantProblem { text-align: left; font-family: arial; font-size: 8pt; background-color: #FFFF00; color: black; } .unknownserviceImportantProblem { text-align: left; font-family: arial; font-size: 8pt; background-color: #FF9966; color: black; } /your/nagios/path/share/stylesheets/tac.css Jon Lyons wrote: Hi, I've modified my tac.css stylesheet colors, but I'd like to change the service warning text block from red to something more like yellow for the tac.cgi, is this in the style sheet or somewhere else?? I'd like the critical sections to only use red.. :) Thanks.... --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: tac.c URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: tac.css Type: text/css Size: 9241 bytes Desc: tac.css URL: From alec at bluefiber.net Wed Dec 18 16:28:25 2002 From: alec at bluefiber.net (Alec Matthews) Date: Wed, 18 Dec 2002 07:28:25 -0800 Subject: Insufficient Data Message-ID: <1040225305.3e0094193011d@webmail.bluefiber.net> I have a Nagios set-up watching about 250 switches on a client's network. It is working great - alerting the correct people when things go down etc. But... there is one problem. None of the reporting seems to work. The log files contain all the alerts, but if I run an availability report, etc. I get Insuficient Data 92% or 100% sometimes. I can't seem to figure out why. I doubt you'd want all my config files, but does anyone know where I should start looking? If you need any config files, or server details, let me know. Thanks a lot!!! Alec Matthews white|atom Design ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From scott at urbatsch.com Wed Dec 18 16:37:58 2002 From: scott at urbatsch.com (Scott Urbatsch) Date: Wed, 18 Dec 2002 07:37:58 -0800 Subject: Check Disk Usage Critical & Warning issues In-Reply-To: <9EA0F1554816EB499A4B1136B80E8DE2780447@storevis.datavis.se> References: <9EA0F1554816EB499A4B1136B80E8DE2780447@storevis.datavis.se> Message-ID: <000201c2a6ab$71629620$4601010a@2cats> I now see my problem here ... Fredrik says ... In Apan, you specify how many megabytes there must be free before warning critical is reported. And Tom says ... Scott, NSClient works with ratios rather than absolute figures. So what is the number that should show up in the SERVICES.CFG, MB free or a percentage? I also read earlier that the amount should include (.00) at the end? Looking at the APAN scripts it seems the number should be megabytes free. FROM WEB PAGE - NOTE Critical Disk-usage CRITICAL 12-18-2002 07:35:58 0d 20h 55m 33s 3/3 Disk utilization: c: 1792.00 Mb free, d: 716.80 Mb free, FROM SERVICES.CFG define service { hostgroup_name win2k-servers service_description Disk-usage check_command apan!nt-disk!1000!500 It seems to me that I should get a WARNING not CRITICAL? Using Nagios v1.0, Apan 0.2.0, Redhat v8, NSClient v0.7 -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Fredrik W?nglund Sent: Wednesday, December 18, 2002 5:06 AM To: Tom DE BLENDE; Scott Urbatsch Cc: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Check Disk Usage Critical & Warning issues In Apan, you specify how many megabytes there must be free before warning critical is reported. /FredrikW -----Original Message----- From: Tom DE BLENDE [mailto:tdeblend at gcc.dhl.com] Sent: Tue 17-Dec-02 08:54 To: Scott Urbatsch Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Check Disk Usage Critical & Warning issues Scott, NSClient works with ratios rather than absolute figures. > Scott Urbatsch wrote: > > Seems I can't quite get a grasp of the check_nt (nt_disk) services. > I seem to have it partly correct, but either have Critical or OK, > never Warning. I've a tried a variety of combinations, but guess I > need a definitive answer as to the parameters required. I get > reliable responses from the NSClient > > > > > > WebPage > > - - - - --- - - > > Disk-usage CRITICAL 12-16-2002 11:01:38 0d 11h 0m 42s 3/3 Disk > utilization: f: 5376.00 Mb free, g: 1413.12 Mb free, > > > > \tmp\apan.debug > > - - - - - - - - --- - - > > Mon Dec 16 11:03:40 PST 2002 Args: nt-disk server Disk-usage > 1040065420 1000 2000 (I get same results with 2000 1000 as well) > > > > Apan.cfg > > - - - - --- - - > > server;Disk-usage;/usr/local/nagios/rrd/server-Disk-usage.rrd;f|g;f-used :AREA > f-free:STACK g-used:AREA g-free:STACK > > ;Disk usage;Bytes;-l 1 -b 1024 > > > > services.cfg > > - - - - --- - - > > define service { > > host_name server > > service_description Disk-usage > > check_command apan!nt-disk!1000!2000 > (NOTE: I've tried 2000!1000 & 2000.00!1000.00 and so on) > > use generic-service > > check_period 24x7 > > max_check_attempts 3 > > normal_check_interval 5 > > retry_check_interval 2 > > contact_groups admins > > notification_interval 120 > > notification_period 24x7 > > notification_options w,u,c,r > > } > > > > serviceextinfo.cfg > > - - - - --- - - - --- - - > > define serviceextinfo{ > > host_name 2k02 > > service_description Disk-usageFG > > notes_url > /nagios/cgi-bin/apan.cgi?host=2k02&service=Disk-usageFG > > icon_image graph.png > > icon_image_alt View graphs > > } ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ From jcarro10 at sprintspectrum.com Wed Dec 18 17:30:46 2002 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Wed, 18 Dec 2002 10:30:46 -0600 Subject: RESOLVED: Change Service Warning text to diffe rnet color in Tac.cgi???... Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F24A6@PKDWB03C.ad.sprint.com> I like this idea. And in light of the fact that an acknowledged CRITICAL changes from red to pink, I'm wondering if it would be possible to have an acknowledged WARNING change from yellow to a faded/washed-out yellow? (I'm not up to snuff on my colour names... perhaps 'cornsilk'? Ref: /usr/lib/X11/rgb.txt on RH Linux.) Ethan, would it be possible to add these features to a future release of Nagios? Okay, perhaps not the right way of asking the question... are these features likely to appear anytime soon? ;) jc -----Original Message----- From: Jon Lyons [mailto:jlyons30 at yahoo.com] Sent: Wednesday, December 18, 2002 9:12 AM To: Jon Lyons; nagios-users at lists.sourceforge.net Subject: RESOLVED: [Nagios-users] Change Service Warning text to differnet color in Tac.cgi???... FYI, I've updated my tac.c and tac.css (1.0b6) stylesheet to change the default colors of the tac.cgi text backgrounds from red to yellow for warnings, and brownish for unknown. Now only the critical alerts on the tac.cgi are in red... Basically I added two stylesheet definitions to tac.css; and call them in tac.c... warningserviceImportantProblem { text-align: left; font-family: arial; font-size: 8pt; background-color: #FFFF00; color: black; } .unknownserviceImportantProblem { text-align: left; font-family: arial; font-size: 8pt; background-color: #FF9966; color: black; } /your/nagios/path/share/stylesheets/tac.css Jon Lyons wrote: Hi, I've modified my tac.css stylesheet colors, but I'd like to change the service warning text block from red to something more like yellow for the tac.cgi, is this in the style sheet or somewhere else?? I'd like the critical sections to only use red.. :) Thanks.... _____ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now _____ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From russell at quadrix.com Wed Dec 18 17:55:07 2002 From: russell at quadrix.com (Russell Scibetti) Date: Wed, 18 Dec 2002 11:55:07 -0500 Subject: check_pop Message-ID: <3E00A86B.7020307@quadrix.com> I just noticed something odd about check_pop. I know it is just a sym-link to check_tcp, which is fine, except in the check_tcp code, for doing pop checks, it does an expect for "110", which is the FTP port typically. However, you can get a 110 back even when FTP isn't up and responding. As a coworker just pointed out to me, the important thing to expect is a "+OK", which is the actual FTP response that shows it is working. Is this a problem in the check_tcp code, or is there a good reason for the expect "110"? Russell Scibetti -- Russell Scibetti Quadrix Solutions, Inc. http://www.quadrix.com (732) 235-2335, ext. 7038 ------------------------------------------------------- This SF.NET email is sponsored by: Order your Holiday Geek Presents Now! Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap, MP3 Players, XBox Games, Flying Saucers, WebCams, Smart Putty. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From jlyons30 at yahoo.com Wed Dec 18 17:53:24 2002 From: jlyons30 at yahoo.com (Jon Lyons) Date: Wed, 18 Dec 2002 08:53:24 -0800 (PST) Subject: RESOLVED: Change Service Warning text to diffe rnet color in Tac.cgi???... In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB2F24A6@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB2F24A6@PKDWB03C.ad.sprint.com> Message-ID: <20021218165325.90052.qmail@web21505.mail.yahoo.com> Yea, I think you just need to modify the color # in the tac.css; maybe #FFFFCC? I believe this is the line to modify; .serviceUnimportantProblem { text-align: left; font-family: arial; font-size: 8pt; background-color: #ffcccc; color: black; } "Carroll, Jim P [Contractor]" wrote:I like this idea. And in light of the fact that an acknowledged CRITICAL changes from red to pink, I'm wondering if it would be possible to have an acknowledged WARNING change from yellow to a faded/washed-out yellow? (I'm not up to snuff on my colour names... perhaps 'cornsilk'? Ref: /usr/lib/X11/rgb.txt on RH Linux.) Ethan, would it be possible to add these features to a future release of Nagios? Okay, perhaps not the right way of asking the question... are these features likely to appear anytime soon? ;) jc-----Original Message----- From: Jon Lyons [mailto:jlyons30 at yahoo.com] Sent: Wednesday, December 18, 2002 9:12 AM To: Jon Lyons; nagios-users at lists.sourceforge.net Subject: RESOLVED: [Nagios-users] Change Service Warning text to differnet color in Tac.cgi???... FYI, I've updated my tac.c and tac.css (1.0b6) stylesheet to change the default colors of the tac.cgi text backgrounds from red to yellow for warnings, and brownish for unknown. Now only the critical alerts on the tac.cgi are in red... Basically I added two stylesheet definitions to tac.css; and call them in tac.c... warningserviceImportantProblem { text-align: left; font-family: arial; font-size: 8pt; background-color: #FFFF00; color: black; } .unknownserviceImportantProblem { text-align: left; font-family: arial; font-size: 8pt; background-color: #FF9966; color: black; } /your/nagios/path/share/stylesheets/tac.css Jon Lyons wrote: Hi, I've modified my tac.css stylesheet colors, but I'd like to change the service warning text block from red to something more like yellow for the tac.cgi, is this in the style sheet or somewhere else?? I'd like the critical sections to only use red.. :) Thanks.... --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From don_schultz at panvera.com Wed Dec 18 18:09:25 2002 From: don_schultz at panvera.com (Don Schultz) Date: Wed, 18 Dec 2002 11:09:25 -0600 Subject: check_pop Message-ID: <72CF2973A7532D478D85271D40F608FCC3F31B@mercury.panvera.com> Last I checked 110 is the well-known tcp port for POP3 traffic. .: Don Schultz :: Unix Systems Administrator :: Panvera, LLC :: 501 Charmany Dr. :: Madison, WI 53719 \\ :: Phone: 608.204.5060 :: Fax: 608.204.5061 :: Cell: 608.213.7523 :: Email: don_schultz at panvera.com > -----Original Message----- > From: Russell Scibetti [mailto:russell at quadrix.com] > Sent: Wednesday, December 18, 2002 10:55 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] check_pop > > > I just noticed something odd about check_pop. I know it is just a > sym-link to check_tcp, which is fine, except in the check_tcp > code, for > doing pop checks, it does an expect for "110", which is the FTP port > typically. > > However, you can get a 110 back even when FTP isn't up and > responding. > As a coworker just pointed out to me, the important thing to > expect is > a "+OK", which is the actual FTP response that shows it is working. > > Is this a problem in the check_tcp code, or is there a good > reason for > the expect "110"? > > Russell Scibetti > > -- > Russell Scibetti > Quadrix Solutions, Inc. > http://www.quadrix.com > (732) 235-2335, ext. 7038 > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: Order your Holiday Geek > Presents Now! > Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, > Caffeinated Soap, > MP3 Players, XBox Games, Flying Saucers, WebCams, Smart Putty. > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: Order your Holiday Geek Presents Now! Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap, MP3 Players, XBox Games, Flying Saucers, WebCams, Smart Putty. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From russell at quadrix.com Wed Dec 18 18:33:17 2002 From: russell at quadrix.com (Russell Scibetti) Date: Wed, 18 Dec 2002 12:33:17 -0500 Subject: check_pop References: <72CF2973A7532D478D85271D40F608FCC3F31B@mercury.panvera.com> Message-ID: <3E00B15D.7000407@quadrix.com> Yes, true. Hence why the check_tcp knows to use port 110 when check_pop is the command used. But I am concerned about the expect string. I don't understand why the expect is set to "110" as opposed to expecting "+OK", which is the standard FTP response when everything is working. There are times you get a 110 back when FTP isn't responding, as we unfortunately just discovered here. Russell Don Schultz wrote: >Last I checked 110 is the well-known tcp port for POP3 traffic. > >.: Don Schultz >:: Unix Systems Administrator >:: Panvera, LLC >:: 501 Charmany Dr. >:: Madison, WI 53719 > \\ > :: Phone: 608.204.5060 > :: Fax: 608.204.5061 > :: Cell: 608.213.7523 > :: Email: don_schultz at panvera.com > > >>-----Original Message----- >>From: Russell Scibetti [mailto:russell at quadrix.com] >>Sent: Wednesday, December 18, 2002 10:55 AM >>To: nagios-users at lists.sourceforge.net >>Subject: [Nagios-users] check_pop >> >> >>I just noticed something odd about check_pop. I know it is just a >>sym-link to check_tcp, which is fine, except in the check_tcp >>code, for >>doing pop checks, it does an expect for "110", which is the FTP port >>typically. >> >>However, you can get a 110 back even when FTP isn't up and >>responding. >> As a coworker just pointed out to me, the important thing to >>expect is >>a "+OK", which is the actual FTP response that shows it is working. >> >>Is this a problem in the check_tcp code, or is there a good >>reason for >>the expect "110"? >> >>Russell Scibetti >> >>-- >>Russell Scibetti >>Quadrix Solutions, Inc. >>http://www.quadrix.com >>(732) 235-2335, ext. 7038 >> >> >> >> >>------------------------------------------------------- >>This SF.NET email is sponsored by: Order your Holiday Geek >>Presents Now! >>Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, >>Caffeinated Soap, >>MP3 Players, XBox Games, Flying Saucers, WebCams, Smart Putty. >>T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ >>_______________________________________________ >>Nagios-users mailing list >>Nagios-users at lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/nagios-users >> > > >------------------------------------------------------- >This SF.NET email is sponsored by: Order your Holiday Geek Presents Now! >Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap, >MP3 Players, XBox Games, Flying Saucers, WebCams, Smart Putty. >T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users > > -- Russell Scibetti Quadrix Solutions, Inc. http://www.quadrix.com (732) 235-2335, ext. 7038 -------------- next part -------------- An HTML attachment was scrubbed... URL: From dviner at yahoo-inc.com Wed Dec 18 18:37:32 2002 From: dviner at yahoo-inc.com (Dave Viner) Date: Wed, 18 Dec 2002 09:37:32 -0800 Subject: checking memory and cpu consumption of procs In-Reply-To: <53104E20A25CD411B556009027E50636064D5018@pnnemp02.pn.egg.com> References: <53104E20A25CD411B556009027E50636064D5018@pnnemp02.pn.egg.com> Message-ID: I'll make one for FreeBSD and Linux. I'll post it to the list when I have it ready. Unforunately, I don't really understand autoconf/automake and configure.in/makefile.am, so I don't know that I'll be able to help much there.... Thanks ! dave -----Original Message----- From: Voon, Ton [mailto:Ton.Voon at egg.com] Sent: Wednesday, December 18, 2002 1:33 AM To: 'Dave Viner'; Voon, Ton; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] checking memory and cpu consumption of procs A check_cpu, based on check_vsz, would be useful. However, it would require quite a few non-trivial changes to the configure.in and makefile.am to pick up various flags for the ps command to make it portable. If you want to make a start, I'd be happy to add in other OSes. > -----Original Message----- > From: Dave Viner [SMTP:dviner at yahoo-inc.com] > Sent: Tuesday, December 17, 2002 6:23 PM > To: Voon, Ton; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] checking memory and cpu consumption of > procs > > Hi, > > Thanks for pointing me to check_vsz. This is a really great utility. > From > looking at the usage message and the code itself, it looks to me like this > monitors virtual memory consumption. Are there any hooks to monitor %cpu > consumption ? Perhaps something like > ps waxco 'vsz %cpu command' > ? I'm happy to try to add this in if it sounds useful. > > dave > > -----Original Message----- > From: Voon, Ton [mailto:Ton.Voon at egg.com] > Sent: Tuesday, December 17, 2002 1:31 AM > To: 'Dave Viner'; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] checking memory and cpu consumption of procs > > > Dave, > > Take a look at check_vsz for the virtual size of memory usage on a process > level. I've put lot of functionality patches on sourceforge, so you'll > need > to apply those. > > Ton > > > -----Original Message----- > > From: Dave Viner [SMTP:dviner at yahoo-inc.com] > > Sent: Tuesday, December 17, 2002 6:56 AM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] checking memory and cpu consumption of procs > > > > Hi, > > I want to ensure that no process on a machine consumes more than x % > > of the > > cpu, and y MB memory. Is there an existing plugin that handles this? I > > saw > > that check_procs will monitor the number of processes on a machine > > (including ones that match a certain name), and check_load will examine > > the > > machine's overall load averages as reported by uptime. But I can't seem > > to > > find anything that monitors cpu consumption or memory consumption. Is > > there > > a plugin for this already? > > > > thanks > > dave > > > > This private and confidential e-mail has been sent to you by Egg. The Egg group of companies includes Egg Banking plc (registered no. 2999842), Egg Financial Products Ltd (registered no. 3319027) and Egg Investments Ltd (registered no. 3403963) which carries out investment business on behalf of Egg and is regulated by the Financial Services Authority. Registered in England and Wales. Registered offices: 1 Waterhouse Square, 138-142 Holborn, London EC1N 2NA. If you are not the intended recipient of this e-mail and have received it in error, please notify the sender by replying with 'received in error' as the subject and then delete it from your mailbox. ------------------------------------------------------- This SF.NET email is sponsored by: Order your Holiday Geek Presents Now! Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap, MP3 Players, XBox Games, Flying Saucers, WebCams, Smart Putty. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From pkrzystofiak at endeavors.com Wed Dec 18 18:37:33 2002 From: pkrzystofiak at endeavors.com (Peter Krzystofiak) Date: Wed, 18 Dec 2002 09:37:33 -0800 Subject: check_http is flakey / doesn't work all the time Message-ID: <53109A46D4F58F458B18D009EAEEDC830E6333@mail.endeavorstech.com> Hello all, My check_http plugin is flakey. For example if yahoo.com is up and I run a check_http against it, Nagios will state that it is not online and I will receive an Error recv() message. Other times, the plugin works just fine. Is there a source update, or a fix for this. Has anyone else experienced this or have a solution to get around this problem? Thanks, Peter K. ------------------------------------------------------- This SF.NET email is sponsored by: Order your Holiday Geek Presents Now! Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap, MP3 Players, XBox Games, Flying Saucers, WebCams, Smart Putty. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From jsm at inpro.net Wed Dec 18 19:19:56 2002 From: jsm at inpro.net (Jeff McKeon) Date: 18 Dec 2002 13:19:56 -0500 Subject: nrpe custom command problems In-Reply-To: References: Message-ID: <1040235600.28378.16.camel@rh80-jsm.telaurus.net> Vol, Thanks for the tip. Placing the path to mysql in the script worked.. :o) On Wed, 2002-12-18 at 09:19, Volker.Aust at premiere.de wrote: > a few hints: > > - put in the full path to mysql into the script. > > - put in the full path to grep into the script. > > - test your plugin script with the user "nagios", like jc suggested. > > - my mysgl uses shared libraries. When your script is called from nrpe, > there is only a very limited environment. Be sure that mysql find all shared > libraries. On Solaris you can set LD_LIBRARY_PATH in your script to ensure > that or you can set a global path for shared libraries (crle for Solaris, > ld_config for Linux(?)). > > -vol > > > -----Original Message----- > > From: Jeff McKeon [mailto:jsm at inpro.net] > > Sent: Wednesday, December 18, 2002 2:39 PM > > To: Carroll, Jim P ""[Contractor] > > Cc: Nagios List > > Subject: RE: [Nagios-users] nrpe custom command problems > > > > > > nrpe runs under the user nagios, at least thats whats in the xinetd > > startup script. It is a /bin/bash shell script. If I take out the > > mysql command from the scrip nrpe runs it fine. The problem > > seems to be > > that nrpe doesn't recognize the mysql command as a real command. Why > > this matters I'm not sure because shouldn't nrpe just run the > > script and > > wait for output? > > > > I haven't tried to run it with check_by_ssh because OpenSSH on the > > target machine is very old, has never been set up correctly > > and I really > > don't want to start patching the hell out of a machine I'll probably > > just rebuild in a month or two (If I have my way). Long story there, > > classic battle between development and operations. > > > > On Tue, 2002-12-17 at 16:29, Carroll, Jim P [Contractor] wrote: > > > What user do you normally run nrpe from? When you tested > > the plugin, did > > > you test it under that user? Can you kick off your command > > from your Nagios > > > server using check_by_ssh? (You'll need to set up a null > > passphrase in > > > order for this to work.) > > > > > > What's the plugin written in? If it's a /bin/bash script, > > try changing that > > > to /bin/sh . > > > > > > Will the plugin run if invoked using 'at' or 'cron'? > > > > > > Food for thought. > > > > > > jc > > > > > > > -----Original Message----- > > > > From: Jeff McKeon [mailto:jsm at inpro.net] > > > > Sent: Tuesday, December 17, 2002 11:54 AM > > > > To: Nagios List > > > > Subject: [Nagios-users] nrpe custom command problems > > > > > > > > > > > > Hey all, > > > > > > > > I've written a plugin for nrpe to check the records in a > > > > database table > > > > and then report warning or critical based on how many records are > > > > returned. The table is basically a mailserver pending > > message queue. > > > > The plugin, check_msgcount works fine if invoked by > > itself. However > > > > when I try to run it with check_nrpe localhost -c > > check_msgcount it > > > > crashes out.. any ideas why? > > > > > > > > nrpe is working fine with the standard plugins, check_disk etc... > > > > Also, I did restart xinetd after adding the command line to the > > > > nrpe.cfg. > > > > > > > > ******************* > > > > > > > > nrpe.cfg file: > > > > > > > > > > command[check_pendingmail]=/usr/local/nagios/libexec/check_msgcount > > > > > > > > ****************** > > > > > > > > if I run /usr/local/nagios/libexec/check_msgcount by itself > > > > it all runs > > > > fine. > > > > > > > > If I run /usr/local/nagios/libexec//check_nrpe localhost -c > > > > check_pendingmail as in below, the following happens... > > > > > > > > [root at db02tc07927 libexec]# ./check_nrpe localhost -c > > > > check_pendingmail > > > > s/libexec/check_msgcount: mysql: command not found > > > > /usr/local/nagios/libexec/check_msgcount: [: -ge: unary operator > > > > expected > > > > /usr/local/nagios/libexec/check_msgcount: [: -ge: unary operator > > > > expected > > > > > > > > > > > > the check_msgcount file is this: > > > > > > > > ****************************************************************** > > > > > > > > #! /bin/sh > > > > mysql telaurus -u nagios < > > /usr/local/nagios/libexec/messages.sql > > > > > /usr/local/nagios/libexec/msg_count > > > > > > > > numqueued=`grep -v COUNT /usr/local/nagios/libexec/msg_count` > > > > > > > > if [ $numqueued -ge 2 ]; then > > > > echo "CRITICAL: $numqueued waiting messages in seaCOMM" > > > > exit 2; > > > > fi > > > > > > > > if [ $numqueued -ge 10 ]; then > > > > echo "WARNING: $numqueued waiting messages in seaCOMM" > > > > exit 1; > > > > fi > > > > > > > > echo "OK: $numqueued waiting messages in seaCOMM" > > > > exit 0; > > > > > > > > ********************************************************* > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > This sf.net email is sponsored by: > > > > With Great Power, Comes Great Responsibility > > > > Learn to use your power at OSDN's High Performance > > Computing Channel > > > > http://hpc.devchannel.org/ > > > > _______________________________________________ > > > > Nagios-users mailing list > > > > Nagios-users at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by: > > With Great Power, Comes Great Responsibility > > Learn to use your power at OSDN's High Performance Computing Channel > > http://hpc.devchannel.org/ > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ------------------------------------------------------- This SF.NET email is sponsored by: Order your Holiday Geek Presents Now! Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap, MP3 Players, XBox Games, Flying Saucers, WebCams, Smart Putty. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From jasondixon at myrealbox.com Wed Dec 18 19:06:52 2002 From: jasondixon at myrealbox.com (Jason Dixon) Date: 18 Dec 2002 13:06:52 -0500 Subject: check_pop In-Reply-To: <3E00A86B.7020307@quadrix.com> References: <3E00A86B.7020307@quadrix.com> Message-ID: <1040234792.1401.6.camel@lappy.fuzzypenguin.net> On Wed, 2002-12-18 at 11:55, Russell Scibetti wrote: > I just noticed something odd about check_pop. I know it is just a > sym-link to check_tcp, which is fine, except in the check_tcp code, for > doing pop checks, it does an expect for "110", which is the FTP port > typically. Eh? $ grep 110 /etc/services pop3 110/tcp pop-3 # POP version 3 pop3 110/udp pop-3 kpop 1109/tcp # Pop with Kerberos -J. ------------------------------------------------------- This SF.NET email is sponsored by: Order your Holiday Geek Presents Now! Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap, MP3 Players, XBox Games, Flying Saucers, WebCams, Smart Putty. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From rue at thinlayer.co.uk Wed Dec 18 19:06:35 2002 From: rue at thinlayer.co.uk (Rue Turner) Date: 18 Dec 2002 18:06:35 +0000 Subject: plugins on AIX Message-ID: <1040234795.11375.11.camel@servalon> Has anyone sucessfully compiled the plugins on AIX 4.3.3 yet? I have been working from a src-rpm I built for RedHat but have had no luck rebuilding for AIX. If you are going down this road I am happy to provide the rpm/spec for investigation. or if you have a set of precompiled binaries that would be a handsome start. many thanks ------------------------------------------------------- This SF.NET email is sponsored by: Order your Holiday Geek Presents Now! Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap, MP3 Players, XBox Games, Flying Saucers, WebCams, Smart Putty. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From chris at eventhorizon.ca Wed Dec 18 20:55:28 2002 From: chris at eventhorizon.ca (chris at eventhorizon.ca) Date: Wed, 18 Dec 2002 13:55:28 -0600 Subject: plugins on AIX In-Reply-To: <1040234795.11375.11.camel@servalon> References: <1040234795.11375.11.camel@servalon> Message-ID: <20021218195528.GC1769@eventhorizon.ca> On Wed, Dec 18, 2002 at 06:06:35PM +0000, Rue Turner wrote: > Has anyone sucessfully compiled the plugins on AIX 4.3.3 yet? > > I have been working from a src-rpm I built for RedHat but have had no > luck rebuilding for AIX. If you are going down this road I am happy to > provide the rpm/spec for investigation. > > or if you have a set of precompiled binaries that would be a handsome > start. > > many thanks I have an older version of NetSaint plugins compiled on AIX available at: http://www.eventhorizon.ca/cgi-bin/aixdownloads.cgi Sorry that it's not more up to date, I'm currently working on rebuilding the site and Lonny and I are working on a refresh of some of the Perl AIX plugins as well as compiling Nagios on AIX 4.3.3 and hopefully 5.x soon. -- Chris Rothecker ------------------------------------------------------- This SF.NET email is sponsored by: Order your Holiday Geek Presents Now! Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap, MP3 Players, XBox Games, Flying Saucers, WebCams, Smart Putty. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From steve at sliderule.demon.co.uk Wed Dec 18 21:59:23 2002 From: steve at sliderule.demon.co.uk (Steve Burton) Date: Wed, 18 Dec 2002 20:59:23 +0000 Subject: How to convert UNIX epoch to date format for u se in Alerts? References: <48F1F432BF75D6118FAC0002B325BE3636E9AA@ntex04.affymetrix.com> <200212180235.00562@grinco.de> Message-ID: <3E00E1AB.33AE06E1@sliderule.demon.co.uk> Olaf Greis wrote: > > > The only problem now is that $LASTSTATECHANGE$ is in UNIX epoch format. > > How does one convert this to readable format ? > > perl -e 'print scalar localtime(1234567890)' is one of the possible solutions. > under FreeBSD (at least) date -r does the same. Steve. > brdgs > olaf > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users -- Steve Burton Webmaster & Sub-optimal Coder ------------------------------------------------------- This SF.NET email is sponsored by: Order your Holiday Geek Presents Now! Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap, MP3 Players, XBox Games, Flying Saucers, WebCams, Smart Putty. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From jasondixon at myrealbox.com Wed Dec 18 22:51:20 2002 From: jasondixon at myrealbox.com (Jason Dixon) Date: 18 Dec 2002 16:51:20 -0500 Subject: Includes for services.conf In-Reply-To: <1040246862.1401.10.camel@lappy.fuzzypenguin.net> References: <1040246862.1401.10.camel@lappy.fuzzypenguin.net> Message-ID: <1040248280.1216.14.camel@lappy.fuzzypenguin.net> Sorry, I just read the documentation a bit deeper and found the "trick" that allows me to specify multiple hosts per service. This looks even better. :) Thanks, J. On Wed, 2002-12-18 at 16:27, Jason Dixon wrote: > Is it- or would it be- possible to implement "includes" in the > services.conf file. It would be much more scalable, from a > administrator's POV, to break the services.conf file into one small > template with a list of host "includes". Then you could manage each > host's services in a separate file. This has a myriad of applications, > IMHO. > > If it is already possible, perhaps someone could point me in the right > direction? > > Thanks, > -J. > > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: Order your Holiday Geek Presents Now! > Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap, > MP3 Players, XBox Games, Flying Saucers, WebCams, Smart Putty. > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: Order your Holiday Geek Presents Now! Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap, MP3 Players, XBox Games, Flying Saucers, WebCams, Smart Putty. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From jasondixon at myrealbox.com Wed Dec 18 22:27:41 2002 From: jasondixon at myrealbox.com (Jason Dixon) Date: 18 Dec 2002 16:27:41 -0500 Subject: Includes for services.conf Message-ID: <1040246862.1401.10.camel@lappy.fuzzypenguin.net> Is it- or would it be- possible to implement "includes" in the services.conf file. It would be much more scalable, from a administrator's POV, to break the services.conf file into one small template with a list of host "includes". Then you could manage each host's services in a separate file. This has a myriad of applications, IMHO. If it is already possible, perhaps someone could point me in the right direction? Thanks, -J. ------------------------------------------------------- This SF.NET email is sponsored by: Order your Holiday Geek Presents Now! Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap, MP3 Players, XBox Games, Flying Saucers, WebCams, Smart Putty. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From Gopinath_Pulyankote at affymetrix.com Wed Dec 18 22:58:24 2002 From: Gopinath_Pulyankote at affymetrix.com (Pulyankote, Gopinath) Date: Wed, 18 Dec 2002 13:58:24 -0800 Subject: How to convert UNIX epoch to date format for u se in Alerts? Message-ID: <48F1F432BF75D6118FAC0002B325BE3636E9B9@ntex04.affymetrix.com> Thanks. But how do I get this conversion done within this command definition in checkcommands.cfg ? define command { command_name host-notify-manager command_line /usr/bin/printf "%b" " since '$LASTSTATECHANGE$' \nTime now is: $DATETIME$" | /bin/mail -s "$NOTIFICATIONTYPE$ alert - Host $HOSTALIAS$ is $HOSTSTATE$" $CONTACTPAGER$ } -Gopinath -----Original Message----- From: Steve Burton [mailto:steve at sliderule.demon.co.uk] Sent: Wednesday, December 18, 2002 12:59 PM Cc: Nagios List Subject: Re: [Nagios-users] How to convert UNIX epoch to date format for u se in Alerts? Olaf Greis wrote: > > > The only problem now is that $LASTSTATECHANGE$ is in UNIX epoch format. > > How does one convert this to readable format ? > > perl -e 'print scalar localtime(1234567890)' is one of the possible solutions. > under FreeBSD (at least) date -r does the same. Steve. > brdgs > olaf > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users -- Steve Burton Webmaster & Sub-optimal Coder ------------------------------------------------------- This SF.NET email is sponsored by: Order your Holiday Geek Presents Now! Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap, MP3 Players, XBox Games, Flying Saucers, WebCams, Smart Putty. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: Order your Holiday Geek Presents Now! Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap, MP3 Players, XBox Games, Flying Saucers, WebCams, Smart Putty. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From jlyons30 at yahoo.com Wed Dec 18 23:18:50 2002 From: jlyons30 at yahoo.com (Jon Lyons) Date: Wed, 18 Dec 2002 14:18:50 -0800 (PST) Subject: Includes for services.conf In-Reply-To: <1040248280.1216.14.camel@lappy.fuzzypenguin.net> References: <1040248280.1216.14.camel@lappy.fuzzypenguin.net> Message-ID: <20021218221850.10794.qmail@web21506.mail.yahoo.com> The magical , .. :) Jason Dixon wrote:Sorry, I just read the documentation a bit deeper and found the "trick" that allows me to specify multiple hosts per service. This looks even better. :) Thanks, J. On Wed, 2002-12-18 at 16:27, Jason Dixon wrote: > Is it- or would it be- possible to implement "includes" in the > services.conf file. It would be much more scalable, from a > administrator's POV, to break the services.conf file into one small > template with a list of host "includes". Then you could manage each > host's services in a separate file. This has a myriad of applications, > IMHO. > > If it is already possible, perhaps someone could point me in the right > direction? > > Thanks, > -J. > > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: Order your Holiday Geek Presents Now! > Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap, > MP3 Players, XBox Games, Flying Saucers, WebCams, Smart Putty. > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: Order your Holiday Geek Presents Now! Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap, MP3 Players, XBox Games, Flying Saucers, WebCams, Smart Putty. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From atonns at mail.ivillage.com Wed Dec 18 23:30:42 2002 From: atonns at mail.ivillage.com (atonns at mail.ivillage.com) Date: Wed, 18 Dec 2002 17:30:42 -0500 Subject: Includes for services.conf Message-ID: Actually, I create templates for each service instead and place them in a directory. Then I replace cfg_file=hosts.cfg cfg_file=services.cfg I use the following: cfg_dir=host1 cfg_dir=host2 cfg_dir=routers/router1 cfg_dir=routers/router2 etc... (of course I still have hosts.cfg and services.cfg with generic-host and generic-service) -- "Computer science is as much about computers as astronomy is about telescopes" -- Edsger Dijkstra --------------------------------------------------------- Anthony Tonns, UNIX Administrator - atonns at mail.ivillage.com -----Original Message----- From: Jason Dixon [mailto:jasondixon at myrealbox.com] Sent: Wednesday, December 18, 2002 4:51 PM To: Nagios List Subject: Re: [Nagios-users] Includes for services.conf Sorry, I just read the documentation a bit deeper and found the "trick" that allows me to specify multiple hosts per service. This looks even better. :) Thanks, J. On Wed, 2002-12-18 at 16:27, Jason Dixon wrote: > Is it- or would it be- possible to implement "includes" in the > services.conf file. It would be much more scalable, from a > administrator's POV, to break the services.conf file into one small > template with a list of host "includes". Then you could manage each > host's services in a separate file. This has a myriad of applications, > IMHO. > > If it is already possible, perhaps someone could point me in the right > direction? > > Thanks, > -J. > > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: Order your Holiday Geek Presents Now! > Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap, > MP3 Players, XBox Games, Flying Saucers, WebCams, Smart Putty. > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: Order your Holiday Geek Presents Now! Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap, MP3 Players, XBox Games, Flying Saucers, WebCams, Smart Putty. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From russell at quadrix.com Thu Dec 19 00:09:17 2002 From: russell at quadrix.com (Russell Scibetti) Date: Wed, 18 Dec 2002 18:09:17 -0500 Subject: check_pop References: <3E00A86B.7020307@quadrix.com> <1040234792.1401.6.camel@lappy.fuzzypenguin.net> Message-ID: <3E01001D.1020300@quadrix.com> Sorry about my unclear email. I am only talking about POP, not FTP. My concern is that the default EXPECT value for check_pop (which can be found in the code for check_tcp) is "110." You don't get back "110" in the return from a tcp connect to POP. You get back a "+OK" in the return to know that everything is running. I have sent an email to the devel lists about this and another bug in check_tcp (the actual default EXPECT values never get checked, hence why no one has seen the wrong EXPECT value for check_pop as a problem). Also, I am referring to the Nagiosplug 1.3b2 release only. -Russell Jason Dixon wrote: >On Wed, 2002-12-18 at 11:55, Russell Scibetti wrote: > >>I just noticed something odd about check_pop. I know it is just a >>sym-link to check_tcp, which is fine, except in the check_tcp code, for >>doing pop checks, it does an expect for "110", which is the FTP port >>typically. >> > >Eh? > >$ grep 110 /etc/services >pop3 110/tcp pop-3 # POP version 3 >pop3 110/udp pop-3 >kpop 1109/tcp # Pop with Kerberos > >-J. > > > >------------------------------------------------------- >This SF.NET email is sponsored by: Order your Holiday Geek Presents Now! >Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap, >MP3 Players, XBox Games, Flying Saucers, WebCams, Smart Putty. >T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users > > -- Russell Scibetti Quadrix Solutions, Inc. http://www.quadrix.com (732) 235-2335, ext. 7038 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jasondixon at myrealbox.com Thu Dec 19 01:11:55 2002 From: jasondixon at myrealbox.com (Jason Dixon) Date: 18 Dec 2002 19:11:55 -0500 Subject: checking memory and cpu consumption of procs In-Reply-To: References: Message-ID: <1040256717.1214.18.camel@lappy.fuzzypenguin.net> I've written a perl-based cpu check for my OpenBSD boxen. Basically, it connects via ssh, runs w and formats the output. Then does a simple >= comparison against the set values. Anyone that's interested, let me know. -J. On Wed, 2002-12-18 at 12:37, Dave Viner wrote: > I'll make one for FreeBSD and Linux. I'll post it to the list when I have > it ready. Unforunately, I don't really understand autoconf/automake and > configure.in/makefile.am, so I don't know that I'll be able to help much > there.... > > Thanks ! > > dave > > > -----Original Message----- > From: Voon, Ton [mailto:Ton.Voon at egg.com] > Sent: Wednesday, December 18, 2002 1:33 AM > To: 'Dave Viner'; Voon, Ton; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] checking memory and cpu consumption of procs > > > A check_cpu, based on check_vsz, would be useful. However, it would require > quite a few non-trivial changes to the configure.in and makefile.am to pick > up various flags for the ps command to make it portable. If you want to make > a start, I'd be happy to add in other OSes. > > > -----Original Message----- > > From: Dave Viner [SMTP:dviner at yahoo-inc.com] > > Sent: Tuesday, December 17, 2002 6:23 PM > > To: Voon, Ton; nagios-users at lists.sourceforge.net > > Subject: RE: [Nagios-users] checking memory and cpu consumption of > > procs > > > > Hi, > > > > Thanks for pointing me to check_vsz. This is a really great utility. > > From > > looking at the usage message and the code itself, it looks to me like this > > monitors virtual memory consumption. Are there any hooks to monitor %cpu > > consumption ? Perhaps something like > > ps waxco 'vsz %cpu command' > > ? I'm happy to try to add this in if it sounds useful. > > > > dave > > > > -----Original Message----- > > From: Voon, Ton [mailto:Ton.Voon at egg.com] > > Sent: Tuesday, December 17, 2002 1:31 AM > > To: 'Dave Viner'; nagios-users at lists.sourceforge.net > > Subject: RE: [Nagios-users] checking memory and cpu consumption of procs > > > > > > Dave, > > > > Take a look at check_vsz for the virtual size of memory usage on a process > > level. I've put lot of functionality patches on sourceforge, so you'll > > need > > to apply those. > > > > Ton > > > > > -----Original Message----- > > > From: Dave Viner [SMTP:dviner at yahoo-inc.com] > > > Sent: Tuesday, December 17, 2002 6:56 AM > > > To: nagios-users at lists.sourceforge.net > > > Subject: [Nagios-users] checking memory and cpu consumption of procs > > > > > > Hi, > > > I want to ensure that no process on a machine consumes more than x % > > > of the > > > cpu, and y MB memory. Is there an existing plugin that handles this? I > > > saw > > > that check_procs will monitor the number of processes on a machine > > > (including ones that match a certain name), and check_load will examine > > > the > > > machine's overall load averages as reported by uptime. But I can't seem > > > to > > > find anything that monitors cpu consumption or memory consumption. Is > > > there > > > a plugin for this already? > > > > > > thanks > > > dave > > > > > > > > > > This private and confidential e-mail has been sent to you by Egg. > The Egg group of companies includes Egg Banking plc > (registered no. 2999842), Egg Financial Products Ltd (registered > no. 3319027) and Egg Investments Ltd (registered no. 3403963) which > carries out investment business on behalf of Egg and is regulated > by the Financial Services Authority. > Registered in England and Wales. Registered offices: 1 Waterhouse Square, > 138-142 Holborn, London EC1N 2NA. > If you are not the intended recipient of this e-mail and have > received it in error, please notify the sender by replying with > 'received in error' as the subject and then delete it from your > mailbox. > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: Order your Holiday Geek Presents Now! > Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap, > MP3 Players, XBox Games, Flying Saucers, WebCams, Smart Putty. > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: Order your Holiday Geek Presents Now! Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap, MP3 Players, XBox Games, Flying Saucers, WebCams, Smart Putty. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From mmcclure at pneservices.com Thu Dec 19 01:36:36 2002 From: mmcclure at pneservices.com (Mike McClure) Date: Wed, 18 Dec 2002 18:36:36 -0600 (CST) Subject: How to convert UNIX epoch to date format for u se in Alerts? In-Reply-To: <48F1F432BF75D6118FAC0002B325BE3636E9B9@ntex04.affymetrix.com> References: <48F1F432BF75D6118FAC0002B325BE3636E9B9@ntex04.affymetrix.com> Message-ID: <2912.192.168.1.9.1040258196.squirrel@xyzzy.homeip.net> Gopinath, /usr/bin/printf "%b %s" " since '$LASTSTATECHANGE$' \nTime now is: " "`/usr/bin/perl -e 'print scalar localtime($DATETIME$)'`" | /bin/mail -s "$NOTIFICATIONTYPE$ alert - Host $HOSTALIAS$ is $HOSTSTATE$" $CONTACTPAGER$ You owe me five bucks if it works. :) - Mike > Thanks. But how do I get this conversion done within this command definition > in checkcommands.cfg ? > define command { > command_name host-notify-manager > command_line /usr/bin/printf "%b" " since > '$LASTSTATECHANGE$' \nTime now is: $DATETIME$" | /bin/mail -s > "$NOTIFICATIONTYPE$ alert - Host $HOSTALIAS$ is $HOSTSTATE$" $CONTACTPAGER$ > } > -Gopinath > > > -----Original Message----- > From: Steve Burton [mailto:steve at sliderule.demon.co.uk] > Sent: Wednesday, December 18, 2002 12:59 PM > Cc: Nagios List > Subject: Re: [Nagios-users] How to convert UNIX epoch to date format for u > se in Alerts? > > > > > Olaf Greis wrote: >> >> > The only problem now is that $LASTSTATECHANGE$ is in UNIX epoch format. >> > How does one convert this to readable format ? >> >> perl -e 'print scalar localtime(1234567890)' is one of the possible > solutions. >> > under FreeBSD (at least) date -r does the same. > > Steve. > >> brdgs >> olaf >> >> ------------------------------------------------------- >> This sf.net email is sponsored by: >> With Great Power, Comes Great Responsibility >> Learn to use your power at OSDN's High Performance Computing Channel >> http://hpc.devchannel.org/ >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users > > -- > Steve Burton > > Webmaster & Sub-optimal Coder > > > ------------------------------------------------------- > This SF.NET email is sponsored by: Order your Holiday Geek Presents Now! > Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap, > MP3 Players, XBox Games, Flying Saucers, WebCams, Smart Putty. > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > ------------------------------------------------------- > This SF.NET email is sponsored by: Order your Holiday Geek Presents Now! > Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap, > MP3 Players, XBox Games, Flying Saucers, WebCams, Smart Putty. > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > -- Mike McClure, CCIE # 5125, CISSP # 30232 PNE Services, Inc. - http://www.pneservices.com mmcclure at pneservices.com mobile: 913-636-5590 ------------------------------------------------------- This SF.NET email is sponsored by: Order your Holiday Geek Presents Now! Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap, MP3 Players, XBox Games, Flying Saucers, WebCams, Smart Putty. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From jack at monkeynoodle.org Thu Dec 19 01:27:20 2002 From: jack at monkeynoodle.org (Jack Coates) Date: 18 Dec 2002 16:27:20 -0800 Subject: Merged disk checks In-Reply-To: References: Message-ID: <1040257644.3510.72.camel@chupacabra.monkeynoodle.org> On Tue, 2002-12-17 at 07:46, Kraus, Markus wrote: > Hello @, > > I monitor about 100 servers each with at least 5 Partitions. That makes over > all 500 check_disk calls. Isn' t there a plugin which tests all partitions > of a system and returns only an over all status? > > Any help which can be offered is greatly appreciated. > > Markus > SNMP would be a good way to do it, or you might like a wrapper plugin I put together: http://www.monkeynoodle.org/comp/nagios, look for check_multisvc.pl. -- Jack Coates Monkeynoodle: A Scientific Venture... ------------------------------------------------------- This SF.NET email is sponsored by: Order your Holiday Geek Presents Now! Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap, MP3 Players, XBox Games, Flying Saucers, WebCams, Smart Putty. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From dviner at yahoo-inc.com Thu Dec 19 03:19:11 2002 From: dviner at yahoo-inc.com (Dave Viner) Date: Wed, 18 Dec 2002 18:19:11 -0800 Subject: spopen question Message-ID: Hi, I'm writing a little plugin that uses the spopen function provided in the plugins/utils.c. But I noticed that the spopen function won't execve the command passed in if it contains " ' " or "''" or any ". I actually need to pass an empty string for one of my functions. So, I'm thinking that maybe we could add another spopen function like spopen_raw(const char *cmdstring, int strip_quotes) and if strip_quotes is 0, then don't strip out the quotes (that is, assume the caller knows what (s)he is doing). And then spopen could simply call spopen_raw(cmdstring, 1). Is there any objection to refactoring the code in this way? Basically it means that everything continues to work as is, but more flexibility is introduced. thanks dave ------------------------------------------------------- This SF.NET email is sponsored by: Order your Holiday Geek Presents Now! Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap, MP3 Players, XBox Games, Flying Saucers, WebCams, Smart Putty. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From desmondc at bii.a-star.edu.sg Thu Dec 19 04:10:08 2002 From: desmondc at bii.a-star.edu.sg (Chia Teck Meng Desmond) Date: Thu, 19 Dec 2002 11:10:08 +0800 (SGT) Subject: No data in Apan graph Message-ID: Hi, I'm a beginner in using Nagios and with Apan. I am using Apan 0.2.0 with Nagios 1.0. I tried the exact configuration steps as listed on the Apan website on the measure of the ping round-trip times. The host that I pinged was www.startap.com. The time was around 300ms. The graphs appeared but there was no data in the graph. The graph shows a red line (LINE2), constantly at the zero line. The data in the rrd file is seems to be empty, except for a few entries where the data is too small. I extracted some listings of the rrd file: 1040265000: 0.0000000000e+00 1040265060: 0.0000000000e+00 1040265120: 0.0000000000e+00 1040265180: 0.0000000000e+00 1040265240: 0.0000000000e+00 1040265300: 0.0000000000e+00 1040265360: 0.0000000000e+00 1040265420: 0.0000000000e+00 1040265480: 0.0000000000e+00 1040265540: 0.0000000000e+00 1040265600: 0.0000000000e+00 1040265660: 0.0000000000e+00 1040265720: 0.0000000000e+00 1040265780: 0.0000000000e+00 1040265840: 0.0000000000e+00 1040265900: 0.0000000000e+00 1040265960: nan 1040266020: nan 1040266080: nan Can someone help me out here? Cheers, Desmond. ------------------------------------------------------- This SF.NET email is sponsored by: Order your Holiday Geek Presents Now! Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap, MP3 Players, XBox Games, Flying Saucers, WebCams, Smart Putty. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From greg_vickers at mbox.com.au Thu Dec 19 06:19:20 2002 From: greg_vickers at mbox.com.au (Greg Vickers) Date: Thu, 19 Dec 2002 15:19:20 +1000 Subject: Multiple paths to host & Windows domain access Message-ID: Hi all, Further to Henrik's post about circular paths, I have the same situation and would be very interested in hearing if someone has a solution for this problem. Also, does anyone have a method of accessing the windows domain from linux? So that event handlers can be written for restarting windows services etc. Thanks, Greg --------------------------------------------------------------------- NEW to mBox, receive faxes to any email address! Find out more http://www.mbox.com.au/fax ------------------------------------------------------- This SF.NET email is sponsored by: Order your Holiday Geek Presents Now! Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap, MP3 Players, XBox Games, Flying Saucers, WebCams, Smart Putty. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From rplewe at ess.nec.de Thu Dec 19 07:25:07 2002 From: rplewe at ess.nec.de (Rasmus Plewe) Date: Thu, 19 Dec 2002 07:25:07 +0100 Subject: Merged disk checks In-Reply-To: <1040257644.3510.72.camel@chupacabra.monkeynoodle.org>; from jack@monkeynoodle.org on Wed, Dec 18, 2002 at 04:27:20PM -0800 References: <1040257644.3510.72.camel@chupacabra.monkeynoodle.org> Message-ID: <20021219072507.A1491@ess.nec.de> On Tue, 2002-12-17 at 07:46, Kraus, Markus wrote: > Hello @, > > I monitor about 100 servers each with at least 5 Partitions. That makes over > all 500 check_disk calls. Isn' t there a plugin which tests all partitions > of a system and returns only an over all status? > > Any help which can be offered is greatly appreciated. checkcommands.cfg: define command{ command_name check_local_disk command_line $USER1$/check_by_ssh -H $HOSTADDRESS$ \ -l user -C "/remote/plugins/check_local_disk.sh $ARG1$ $ARG2$" check_local_disk.sh on the remote host: #!/bin/sh FSLIST=`df -hl | grep dev | awk '{print $1} ' | \ sed -e 's|/dev| /dev|g' | tr -d "\n"` /remote/plugins/check_disk -w $1 -c $2 -p "$FSLIST" Might not be the most elegant way, but it works. Regards, Rasmus ------------------------------------------------------- This SF.NET email is sponsored by: Order your Holiday Geek Presents Now! Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap, MP3 Players, XBox Games, Flying Saucers, WebCams, Smart Putty. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From greg_vickers at mbox.com.au Thu Dec 19 07:25:38 2002 From: greg_vickers at mbox.com.au (Greg Vickers) Date: Thu, 19 Dec 2002 16:25:38 +1000 Subject: Running shell scripts from nagios commands Message-ID: Hi all, Has anyone here created a shell script and successfully passed arguments to it from a Nagios command definition? I can't seem to get *any* shell script to execute from a Nagios command definition :( Here is the command definition and script: define command{ command_name service-notify-by-pager command_line /usr/local/bin/create_pager_message $CONTACTPAGER$ "$SERVICEDESC$ on host $HOSTNAME$ is in a $SERVICESTATE$ state" } #!/bin/bash #This script created 10/12/2002 for use with Nagios # #It crafts a message and places that message onto the ITS pager server #QUT usernames have to be set up on that server, contact xxx #on xxxxx for configuration #Create unique filename FILE=sms.$(date -I).$$ #NOTE: TEMP location requires / appended to dir location! TEMP=/tmp/ LOGFILE=/var/log/nagios/smbclient_connections.log #check for args if [ "$#" -ne 2 ]; then echo -e "Usage: $0 \n\ e.g. create_pager_message username \"Hello this is a message\"" >> $LOGFILE exit 0 fi echo "To: $1" > $TEMP$FILE echo "From: TALSS_Nagios" >> $TEMP$FILE echo "Message: $2" >> $TEMP$FILE date '+%b %e %T' >> $LOGFILE smbclient //server/sms_pager password -U account-c "lcd $TEMP;put $FILE;exit" >> $LOGFILE rm $TEMP$FILE I've tried replacing this script with one that simply echos a line to /tmp/message.txt and it doesn't work either! Does anyone have any suggestions? Thanks, Greg --------------------------------------------------------------------- NEW to mBox, receive faxes to any email address! Find out more http://www.mbox.com.au/fax ------------------------------------------------------- This SF.NET email is sponsored by: Order your Holiday Geek Presents Now! Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap, MP3 Players, XBox Games, Flying Saucers, WebCams, Smart Putty. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From Shane_Seidel at gwf.com.au Thu Dec 19 09:18:03 2002 From: Shane_Seidel at gwf.com.au (Shane_Seidel at gwf.com.au) Date: Thu, 19 Dec 2002 18:18:03 +1000 Subject: Win2000 App Log errors from NS client Message-ID: <4A256C94.002E5766.00@gisw900.gwf.com.au> Rainer, The Errors appear inthe NT log and an interval corresponding to the check schedule (when ********************************************************************************************************************************************** This email and its attachments are confidential subject to copyright and may be legally privileged. If they have come to you in error you should take no action based upon the contents nor should you copy or show them to anyone. Please delete the email and its attachments and inform administrators at gwf.com.au Any views or opinions expressed are those of the author and do not necessarily represent those of George Weston Foods Ltd. Security: Internet email is not a completely secure medium, please note this when considering the content of your message. Viruses: We take precautions to ensure email is free of viruses but cannot guarantee this. Accordingly we advise scanning all email and attachments ********************************************************************************************************************************************* -------------- next part -------------- ?it was implemented). I have restarted the service and indeed restarted the box........no joy No reference to the rouge check can be found in nagios.log. No other mesages relating to NSClient appear in the NT logs ???? Regards Shane To: ? ? ? ?Shane Seidel/GWFIS/GWF at GWF, nagios-users at lists.sourceforge.net cc: Subject: ? ? ? ?RE: Win2000 App Log errors from NS client [IMAGE] > Rainer, > > Thanks, and point taken. However you may have noticed that I > had removed that > service from the services.cfg file for this host and > checkcommands.cfg file. > This has been replaced using the check_citrix plugin. Still > the errors occur. > > regards > Shane Does the error occur everytime when nagios executes check_citrix or ist the timestamp in the W2K error-log unrelated to the activities of the plugin? In the latter case it might help to restart the NSClient-Service. (But from the code I can see that NSClient *builds* the actual perf-counter at the moment the query arrives over the net and *destroys* it after the query is done. Only the "standard" perfmons (SystemTotalProcessorTime, SystemSystemUpTime, MemoryCommitLimit, MemoryCommitByte) are build at startup of NSClient and run until the Service ist stopped.) Are there other error-messages generated by NS-Client? cheers Rainer (Embedded image moved to file: pic22315.pcx) -------------- next part -------------- A non-text attachment was scrubbed... Name: pic22315.pcx Type: application/octet-stream Size: 2026 bytes Desc: not available URL: From tdeblend at gcc.dhl.com Thu Dec 19 08:43:36 2002 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Thu, 19 Dec 2002 08:43:36 +0100 Subject: Check Disk Usage Critical & Warning issues References: <000201c2a6ab$71629620$4601010a@2cats> Message-ID: <3E0178A8.E0741113@gcc.dhl.com> Scott Urbatsch wrote: > Tom says ... Scott, NSClient works with ratios rather than absolute > figures. Just ignore what I said. Didn't realize you were using Apan. I never used it and I don't know how it works. Maybe Apan wraps the check_nt command in such a way that you can use absolute figures. All I can tell you is that a normal check_nt expects absolute figures. >From the NSClient Readme: Disk usage Syntax: check_nt -H -p -v USEDDISKSPACE -l [-w ] [-c ] drive letter should be only one character. and : thresholds between 1 and 100. Example: ./check_nt -H 192.168.1.1 -p 1248 -v USEDDISKSPACE -l C -w 80 -c 90 ------------------------------------------------------- This SF.NET email is sponsored by: Order your Holiday Geek Presents Now! Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap, MP3 Players, XBox Games, Flying Saucers, WebCams, Smart Putty. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From eric.leroy at proservia.fr Thu Dec 19 09:57:52 2002 From: eric.leroy at proservia.fr (Eric LEROY) Date: Thu, 19 Dec 2002 09:57:52 +0100 Subject: wewbie : A question Message-ID: <3D70F1B3E51A6541B58FD122DD12873804C7F4@srv442.proservia.lan> Hy I 'm in trouble, installaing nagios 1.0 i need to prepare eventhandler and i have no directory about this . So i haven't example and more to start my monitoring. I installed nagiospluhging and nagios1.0 and nsca Leeroy ------------------------------------------------------- This SF.NET email is sponsored by: Geek Gift Procrastinating? Get the perfect geek gift now! Before the Holidays pass you by. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From Fredrik.Wanglund at datavis.se Thu Dec 19 10:29:54 2002 From: Fredrik.Wanglund at datavis.se (=?iso-8859-1?Q?Fredrik_W=E4nglund?=) Date: Thu, 19 Dec 2002 10:29:54 +0100 Subject: No data in Apan graph Message-ID: <9EA0F1554816EB499A4B1136B80E8DE278044A@storevis.datavis.se> Have you checked /tmp/apan.debug for any clues? /FredrikW -----Original Message----- From: Chia Teck Meng Desmond [mailto:desmondc at bii.a-star.edu.sg] Sent: Thu 19-Dec-02 04:10 To: nagios-users at lists.sourceforge.net Cc: desmondc at bii.a-star.edu.sg Subject: [Nagios-users] No data in Apan graph Hi, I'm a beginner in using Nagios and with Apan. I am using Apan 0.2.0 with Nagios 1.0. I tried the exact configuration steps as listed on the Apan website on the measure of the ping round-trip times. The host that I pinged was www.startap.com. The time was around 300ms. The graphs appeared but there was no data in the graph. The graph shows a red line (LINE2), constantly at the zero line. The data in the rrd file is seems to be empty, except for a few entries where the data is too small. I extracted some listings of the rrd file: 1040265000: 0.0000000000e+00 1040265060: 0.0000000000e+00 1040265120: 0.0000000000e+00 1040265180: 0.0000000000e+00 1040265240: 0.0000000000e+00 1040265300: 0.0000000000e+00 1040265360: 0.0000000000e+00 1040265420: 0.0000000000e+00 1040265480: 0.0000000000e+00 1040265540: 0.0000000000e+00 1040265600: 0.0000000000e+00 1040265660: 0.0000000000e+00 1040265720: 0.0000000000e+00 1040265780: 0.0000000000e+00 1040265840: 0.0000000000e+00 1040265900: 0.0000000000e+00 1040265960: nan 1040266020: nan 1040266080: nan Can someone help me out here? Cheers, Desmond. ------------------------------------------------------- This SF.NET email is sponsored by: Order your Holiday Geek Presents Now! Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap, MP3 Players, XBox Games, Flying Saucers, WebCams, Smart Putty. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: Geek Gift Procrastinating? Get the perfect geek gift now! Before the Holidays pass you by. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From rue at thinlayer.co.uk Thu Dec 19 11:04:20 2002 From: rue at thinlayer.co.uk (Rue Turner) Date: 19 Dec 2002 10:04:20 +0000 Subject: Merged disk checks In-Reply-To: <1040257644.3510.72.camel@chupacabra.monkeynoodle.org> References: <1040257644.3510.72.camel@chupacabra.monkeynoodle.org> Message-ID: <1040292259.11375.28.camel@servalon> I had the same problem till i discovered that if you just use disk_check without any path it applies your limits to all of them :) nice. A couple of my machines have half a dozen or so and it seems happy with those - ths does expand the table a little but you never miss a drive. warning: it will include all mounted drives. this includes CD's and floppies if they are mounted. I don't see this as a problem because if someone puts a cd in a production box i want to know about it. On Thu, 2002-12-19 at 00:27, Jack Coates wrote: > On Tue, 2002-12-17 at 07:46, Kraus, Markus wrote: > > Hello @, > > > > I monitor about 100 servers each with at least 5 Partitions. That makes over > > all 500 check_disk calls. Isn' t there a plugin which tests all partitions > > of a system and returns only an over all status? > > > > Any help which can be offered is greatly appreciated. > > > > Markus > > > > SNMP would be a good way to do it, or you might like a wrapper plugin I > put together: http://www.monkeynoodle.org/comp/nagios, look for > check_multisvc.pl. r u e t u r n e r ? t ? h ? i ? n ? l ? a ? y ? e ? r ? -- You can't evaluate a man by logic alone. -- McCoy, "I, Mudd", stardate 4513.3 ------------------------------------------------------- This SF.NET email is sponsored by: Geek Gift Procrastinating? Get the perfect geek gift now! Before the Holidays pass you by. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From rue at thinlayer.co.uk Thu Dec 19 11:19:40 2002 From: rue at thinlayer.co.uk (Rue Turner) Date: 19 Dec 2002 10:19:40 +0000 Subject: plugins on AIX In-Reply-To: <20021218195528.GC1769@eventhorizon.ca> References: <1040234795.11375.11.camel@servalon> <20021218195528.GC1769@eventhorizon.ca> Message-ID: <1040293179.11375.32.camel@servalon> Thanks chris - i'll be back at my desk tomorrow night and will probably turn this into an rpm for general ease. Would you be interested? On Wed, 2002-12-18 at 19:55, chris at eventhorizon.ca wrote: > On Wed, Dec 18, 2002 at 06:06:35PM +0000, Rue Turner wrote: > > Has anyone sucessfully compiled the plugins on AIX 4.3.3 yet? > > > > I have been working from a src-rpm I built for RedHat but have had no > > luck rebuilding for AIX. If you are going down this road I am happy to > > provide the rpm/spec for investigation. > > > > or if you have a set of precompiled binaries that would be a handsome > > start. > > > > many thanks > > I have an older version of NetSaint plugins compiled on AIX available at: > > http://www.eventhorizon.ca/cgi-bin/aixdownloads.cgi > > Sorry that it's not more up to date, I'm currently working on rebuilding the > site and Lonny and I are working on a refresh of some of the Perl AIX plugins > as well as compiling Nagios on AIX 4.3.3 and hopefully 5.x soon. > > > -- > Chris Rothecker > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: Order your Holiday Geek Presents Now! > Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap, > MP3 Players, XBox Games, Flying Saucers, WebCams, Smart Putty. > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users r u e t u r n e r ? t ? h ? i ? n ? l ? a ? y ? e ? r ? -- We're living in a golden age. All you need is gold. -- D.W. Robertson. ------------------------------------------------------- This SF.NET email is sponsored by: Geek Gift Procrastinating? Get the perfect geek gift now! Before the Holidays pass you by. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From tsi at lbinfotech.com Thu Dec 19 11:29:42 2002 From: tsi at lbinfotech.com (Thirumalai Srinivasan) Date: Thu, 19 Dec 2002 10:29:42 GMT Subject: Notification to Mobile..... Message-ID: <20021219102942.16507.qmail@vhost.dsqworld.com> HI I have installed Nagios for my environment.Things are working fine except the notification to my mobile.How do i do this.I gave my mobile number with the country code ..eg +919840132325 ...but this format is not working...Im not sure whether this is right..Can someone help me in this... Regards Thiru ------------------------------------------------------- This SF.NET email is sponsored by: Geek Gift Procrastinating? Get the perfect geek gift now! Before the Holidays pass you by. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From tdeblend at gcc.dhl.com Thu Dec 19 11:42:49 2002 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Thu, 19 Dec 2002 11:42:49 +0100 Subject: Notification to Mobile..... References: <20021219102942.16507.qmail@vhost.dsqworld.com> Message-ID: <3E01A2A9.8EFFE9D9@gcc.dhl.com> Try using sms_client. Thirumalai Srinivasan wrote: > > HI > > I have installed Nagios for my environment.Things are working fine except > the notification to my mobile.How do i do this.I gave my mobile number with > the country code ..eg +919840132325 ...but this format is not working...Im > not sure whether this is right..Can someone help me in this... > > Regards > Thiru > > ------------------------------------------------------- > This SF.NET email is sponsored by: Geek Gift Procrastinating? > Get the perfect geek gift now! Before the Holidays pass you by. > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: Geek Gift Procrastinating? Get the perfect geek gift now! Before the Holidays pass you by. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From luiz at pucrs.br Thu Dec 19 14:07:26 2002 From: luiz at pucrs.br (luiz at pucrs.br) Date: Thu, 19 Dec 2002 10:07:26 -0300 Subject: Red Hat compilation problem Message-ID: Dear Sir I?m trying to install nagios 1.0 (stable) in one Red Hat server (version 7.3) and occurs the following error: # ./configure # make all cd ./base && make make[1]: Entering directory `/home/nagios/nagios-1.0/base' gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o checks.o checks.c gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o config.o config.c gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o commands.o commands.c gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o flapping.o flapping.c gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o logging.o logging.c gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o notifications.o notifications.c gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o sehandlers.o sehandlers.c gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o utils.o utils.c gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o sretention.o sretention.c gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o perfdata.o perfdata.c gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE nagios.c checks.o config.o commands.o flapping.o logging.o notifications.o sehandlers.o utils.o sretention.o ../xdata/xrddefault.c ../common/comments.c ../xdata/xcddefault.c ../common/objects.c ../xdata/xodtemplate.c ../common/statusdata.c ../xdata/xsddefault.c perfdata.o ../xdata/xpddefault.c ../common/downtime.c ../xdata/xdddefault.c -lm -o nagios make[1]: Leaving directory `/home/nagios/nagios-1.0/base' cd ./cgi && make make[1]: Entering directory `/home/nagios/nagios-1.0/cgi' gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI -c -o getcgi.o getcgi.c gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI -c -o cgiutils.o cgiutils.c gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI -c -o auth.o auth.c gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI -c -o popen.o popen.c gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI avail.c getcgi.o cgiutils.o auth.o popen.o ../common/objects.c ../xdata/xodtemplate.c ../common/statusdata.c ../xdata/xsddefault.c -o avail.cgi ../xdata/xodtemplate.c: In function `xodtemplate_duplicate_objects': ../xdata/xodtemplate.c:3185: Internal error: Segmentation fault. Please submit a full bug report. See for instructions. make[1]: *** [avail.cgi] Error 1 make[1]: Leaving directory `/home/nagios/nagios-1.0/cgi' make: *** [all] Error 2 Apparently, there are problems with the gcc, but seems very strange to me. I couldn?t find anything about it in the docs of nagios and Red Hat. Anyone has any idea to help me? Thanks (a lot) in advance _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ Administra?ao da Rede FACIN / PUCRS Fone: +55 51 3320-3558 r. 4184 Fax : +55 51 3320-3758 Av. Ipiranga, 6681 - 90619.900 Pr?dio 30 - Sala 145 Porto Alegre - RS - Brasil _\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\ -------------- next part -------------- An HTML attachment was scrubbed... URL: From GPotter at MarathonOil.com Thu Dec 19 14:41:31 2002 From: GPotter at MarathonOil.com (Potter, G M (Greg)) Date: Thu, 19 Dec 2002 07:41:31 -0600 Subject: Running shell scripts from Nagios commands Message-ID: Here is the script I use for pager notification. The MACRO variables show up for me. Granted I am not calling a shell script, but the variables are populated and the paging routing works. System Specs: Solaris 8, Nagios 1.0 define command{ command_name notify-by-qpage command_line /bin/echo "okcu06 $HOSTALIAS$/$SERVICESTATE$/$SERVICEDESC$ $OUTPUT$" | /usr/ local/bin/qpage -p $CONTACTPAGER$ } > -----Original Message----- > From: Greg Vickers [mailto:greg_vickers at mbox.com.au] > Sent: Thursday, December 19, 2002 12:26 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Running shell scripts from nagios commands > > > Hi all, > > Has anyone here created a shell script and successfully > passed arguments > to it from a Nagios command definition? I can't seem to get > *any* shell > script to execute from a Nagios command definition :( > > Here is the command definition and script: > > define command{ > command_name service-notify-by-pager > command_line /usr/local/bin/create_pager_message $CONTACTPAGER$ > "$SERVICEDESC$ on host $HOSTNAME$ is in a $SERVICESTATE$ state" > } > > > #!/bin/bash > > #This script created 10/12/2002 for use with Nagios > # > #It crafts a message and places that message onto the ITS pager server > #QUT usernames have to be set up on that server, contact xxx > #on xxxxx for configuration > > #Create unique filename > FILE=sms.$(date -I).$$ > #NOTE: TEMP location requires / appended to dir location! > TEMP=/tmp/ > LOGFILE=/var/log/nagios/smbclient_connections.log > > #check for args > if [ "$#" -ne 2 ]; then > echo -e "Usage: $0 \n\ > e.g. create_pager_message username \"Hello this is a > message\"" >> $LOGFILE > exit 0 > fi > > echo "To: $1" > $TEMP$FILE > echo "From: TALSS_Nagios" >> $TEMP$FILE > echo "Message: $2" >> $TEMP$FILE > > date '+%b %e %T' >> $LOGFILE > smbclient //server/sms_pager password -U account-c "lcd $TEMP;put > $FILE;exit" >> $LOGFILE > > rm $TEMP$FILE > > > I've tried replacing this script with one that simply echos a line to > /tmp/message.txt and it doesn't work either! > > Does anyone have any suggestions? > > Thanks, > Greg > > > --------------------------------------------------------------------- > NEW to mBox, receive faxes to any email address! > Find out more http://www.mbox.com.au/fax > > > ------------------------------------------------------- > This SF.NET email is sponsored by: Order your Holiday Geek > Presents Now! > Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, > Caffeinated Soap, > MP3 Players, XBox Games, Flying Saucers, WebCams, Smart Putty. > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: Geek Gift Procrastinating? Get the perfect geek gift now! Before the Holidays pass you by. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From rplewe at ess.nec.de Thu Dec 19 14:52:35 2002 From: rplewe at ess.nec.de (Rasmus Plewe) Date: Thu, 19 Dec 2002 14:52:35 +0100 Subject: Merged disk checks In-Reply-To: <1040292259.11375.28.camel@servalon>; from rue@thinlayer.co.uk on Thu, Dec 19, 2002 at 10:04:20AM +0000 References: <1040257644.3510.72.camel@chupacabra.monkeynoodle.org> <1040292259.11375.28.camel@servalon> Message-ID: <20021219145235.B1718@ess.nec.de> On Thu, Dec 19, 2002 at 10:04:20AM +0000, Rue Turner wrote: > I had the same problem till i discovered that if you just use disk_check > without any path it applies your limits to all of them :) nice. > A couple of my machines have half a dozen or so and it seems happy with > those - ths does expand the table a little but you never miss a drive. > > warning: it will include all mounted drives. this includes CD's and > floppies if they are mounted. I don't see this as a problem because if > someone puts a cd in a production box i want to know about it. You probably don't want to do this when you have a lot of network-mounted file systems. One disk filling up and triggering 50 warnings is not really cool. Plus that you might be mounting from machines that are not under your control, where you can't do anything against file system status. Regards, Rasmus ------------------------------------------------------- This SF.NET email is sponsored by: Geek Gift Procrastinating? Get the perfect geek gift now! Before the Holidays pass you by. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From daniel.geske at yoc.de Thu Dec 19 15:22:51 2002 From: daniel.geske at yoc.de (Daniel Geske) Date: Thu, 19 Dec 2002 15:22:51 +0100 Subject: Notification to Mobile..... In-Reply-To: <20021219102942.16507.qmail@vhost.dsqworld.com> References: <20021219102942.16507.qmail@vhost.dsqworld.com> Message-ID: Dear Thiru, yaps worked fine for me. http://www.nagios.org/faqs/viewfaq.php?faq_id=65 Greetings Daniel -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Thirumalai Srinivasan Sent: Thursday, December 19, 2002 11:30 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Notification to Mobile..... HI I have installed Nagios for my environment.Things are working fine except the notification to my mobile.How do i do this.I gave my mobile number with the country code ..eg +919840132325 ...but this format is not working...Im not sure whether this is right..Can someone help me in this... Regards Thiru ------------------------------------------------------- This SF.NET email is sponsored by: Geek Gift Procrastinating? Get the perfect geek gift now! Before the Holidays pass you by. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: Geek Gift Procrastinating? Get the perfect geek gift now! Before the Holidays pass you by. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From pete.dewell at volteurope.com Thu Dec 19 15:49:07 2002 From: pete.dewell at volteurope.com (Pete Dewell) Date: Thu, 19 Dec 2002 14:49:07 +0000 Subject: Notification to Mobile..... Message-ID: I just set up an email-to-SMS address with our mobile phone service, and send out emails. Pete Dewell Daniel Geske wrote: > > Dear Thiru, > > yaps worked fine for me. > http://www.nagios.org/faqs/viewfaq.php?faq_id=65 > > Greetings > > Daniel > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Thirumalai > Srinivasan > Sent: Thursday, December 19, 2002 11:30 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Notification to Mobile..... > > HI > > I have installed Nagios for my environment.Things are working fine except > the notification to my mobile.How do i do this.I gave my mobile number with > the country code ..eg +919840132325 ...but this format is not working...Im > not sure whether this is right..Can someone help me in this... > > Regards > Thiru > > ------------------------------------------------------- > This SF.NET email is sponsored by: Geek Gift Procrastinating? > Get the perfect geek gift now! Before the Holidays pass you by. > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ------------------------------------------------------- > This SF.NET email is sponsored by: Geek Gift Procrastinating? > Get the perfect geek gift now! Before the Holidays pass you by. > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users -- Technical Support/Analyst Volt Europe Tel : (+44) (0) 1737 774100 Fax : (+44) (0) 1737 772949 Mobile : (+44) (0) 777 1513066 E-mail pete.dewell at volteurope.com ------------------------------------------------------- This SF.NET email is sponsored by: Geek Gift Procrastinating? Get the perfect geek gift now! Before the Holidays pass you by. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From ftorres at ula.ve Thu Dec 19 16:49:30 2002 From: ftorres at ula.ve (=?iso-8859-1?Q?Jos=E9_Francisco_Torres?=) Date: Thu, 19 Dec 2002 11:49:30 -0400 Subject: command external problem Message-ID: <037601c2a776$3850e3c0$a9cd2cc8@cantv.net> HI I have a problem with commands externals, i need help, i am a user new of nagios........ Error: Could not stat() command file '/usr/local/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. ------------------------------------------------------- This SF.NET email is sponsored by: Geek Gift Procrastinating? Get the perfect geek gift now! Before the Holidays pass you by. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From russell at quadrix.com Thu Dec 19 17:08:04 2002 From: russell at quadrix.com (Russell Scibetti) Date: Thu, 19 Dec 2002 11:08:04 -0500 Subject: xml status.cgi output References: <1040122036.15711.57.camel@fr3nd> <3DFF8D94.3040201@quadrix.com> <1040207263.22029.53.camel@fr3nd> Message-ID: <3E01EEE4.5040106@quadrix.com> I use my plugin via the check_by_ssh plugin to do remote checks. You can also use it through nrpe, or any of the other remote plugin execution methods. Russell Carles Amig? wrote: >I was looking for a more "universal" way to access remotely to any >Nagios server. > >Parsing status.log would be easyer when doing in the local server. Not >remotely > >On Tue, 2002-12-17 at 21:48, Russell Scibetti wrote: > >>If you can, don't parse the status.cgi, parse status.log on the box >>running Nagios. In fact, I already have a fairly thorough perl plugin >>called check_state which parses the status.log for Hard problems. You >>can give it various arguments, such as number of >>critical/warning/unknown found in the log to result in a problem state, >>ignoring ack'd problems and things in downtime, regex matching based on >>service and/or host name, etc. >> >>If people are interested in this, I can submit it to the nagiosplug >>project. I had planned on submitting it soon, but I was going to do >>some more cleanup of the perl code first. >> >>-Russell >> >>Carles Amig? wrote: >> >>>Hello, >>> >>>Could Nagios output all status info in a xml output? >>> >>>I would like to make a program that parses all the info remotely, and >>>parsing html is very difficult. >>> >>>Regards >>> -- Russell Scibetti Quadrix Solutions, Inc. http://www.quadrix.com (732) 235-2335, ext. 7038 ------------------------------------------------------- This SF.NET email is sponsored by: Geek Gift Procrastinating? Get the perfect geek gift now! Before the Holidays pass you by. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From gastrauskas at burrelles.com Thu Dec 19 17:30:48 2002 From: gastrauskas at burrelles.com (Giedrius Astrauskas net) Date: Thu, 19 Dec 2002 11:30:48 -0500 Subject: How to email notifications from Nagios Message-ID: <003901c2a77b$fcfab520$9c0312ac@developer01> Hi, I have installed and configured Nagios to send notifications by email. By looking at Notifications page I see that it correctly produces notifications, however it never actually sends them out. >From reading Nagios documentation I got the impression that additional software is needed to actually email notifications, however I could not find any sample or description how Nagios actually interacts with such software. All I really need is a simple script to send emails. I am quite new to Linux, so please let me know if I am overlooking something. I would really appreciate any advice or information about actually getting emails go out. Thank you. Giedrius ------------------------------------------------------- This SF.NET email is sponsored by: Geek Gift Procrastinating? Get the perfect geek gift now! Before the Holidays pass you by. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From JKnash at bnyclearing.com Thu Dec 19 17:34:19 2002 From: JKnash at bnyclearing.com (JKnash at bnyclearing.com) Date: Thu, 19 Dec 2002 08:34:19 -0800 Subject: help with dependencies Message-ID: I am having a little bit of trouble understanding how dependencies work. The documention isn't helping me all that much so I figured I'd ask for help. I have a webserver named WWW1 that relies on a database server named DB1. The database server is required for the webserver to be considered up. Which would I put as the host_name and which would I put as the dependent_host_name? thanks, Justin Knash Network Engineer BNY Clearing Services The information in this e-mail, and any attachment therein, is confidential and for use by the addressee only. If you are not the intended recipient, please return the e-mail to the sender and delete it from your computer. Although BNY Clearing Services LLC attempts to sweep e-mail and attachments for viruses, it does not guarantee that either are virus-free and accepts no liability for any damage sustained as a result of viruses. ------------------------------------------------------- This SF.NET email is sponsored by: Geek Gift Procrastinating? Get the perfect geek gift now! Before the Holidays pass you by. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From GPotter at MarathonOil.com Thu Dec 19 18:31:52 2002 From: GPotter at MarathonOil.com (Potter, G M (Greg)) Date: Thu, 19 Dec 2002 11:31:52 -0600 Subject: How to email notifications from Nagios Message-ID: Here is my entry from commands.cfg and contacts.cfg that sends e-mail to me. Hope this helps! Greg define command{ command_name notify-by-email command_line /bin/echo "$ARG1$\n$ARG2$\n$ARG3$\n$PERFDATA$\n$OUTPUT$" | /usr/bin/mailx -s '**$SERVICESTATE$ alert for $HOSTALIAS$/$SERVICEDESC$ **' $CONTACTEMAIL$ } define command{ command_name host-notify-by-email command_line /bin/echo "$ARG1$\n$ARG2$\n$ARG3$\n$PERFDATA$\n$OUTPUT$" | /usr/bin/mailx -s '**$SERVICESTATE$ alert for $HOSTALIAS$/$SERVICEDESC$ **' $CONTACTEMAIL$ } define contact{ contact_name greg alias Greg Potter service_notification_period 24x7 host_notification_period 24x7 service_notification_options w,u,c,r host_notification_options d,u,r service_notification_commands notify-by-email host_notification_commands host-notify-by-email email gpotter at marathonoil.com } > -----Original Message----- > From: Giedrius Astrauskas net [mailto:gastrauskas at burrelles.com] > Sent: Thursday, December 19, 2002 10:31 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] How to email notifications from Nagios > > > Hi, > > I have installed and configured Nagios to send notifications > by email. By > looking at Notifications page I see that it correctly produces > notifications, however it never actually sends them out. > From reading Nagios documentation I got the impression that additional > software is needed to actually email notifications, however I > could not find > any sample or description how Nagios actually interacts with > such software. > All I really need is a simple script to send emails. I am quite new to > Linux, so please let me know if I am overlooking something. > I would really appreciate any advice or information about > actually getting > emails go out. > > Thank you. > > > Giedrius > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: Geek Gift Procrastinating? > Get the perfect geek gift now! Before the Holidays pass you by. > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: Geek Gift Procrastinating? Get the perfect geek gift now! Before the Holidays pass you by. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From sripley at chiaro.com Thu Dec 19 18:40:24 2002 From: sripley at chiaro.com (Scott Ripley) Date: Thu, 19 Dec 2002 11:40:24 -0600 Subject: Nagios DB Question Message-ID: <668C5EBD23862F459CF63DAFFCA6268C023AB4@rchst006.chiaro.com> I noticed in the Nagios Contrib README it says: ---------------------------------------------------- Database Creation Scripts: No, the tables are not normalized. They're not *meant* to be. ---------------------------------------------------- This made made me curious about why the tables are not normalized. Would it make the implementation more cumbersome? Would it be a disadvantage in some way? This is purely for my own edification. I have also noticed high cpu utilization by the mysql process after adding nagios w/db support. It is basicly using a whole cpu on its own. Are there any hints on how to improve this? Thanks, Scott. -------------- next part -------------- ----------------------------------------- (on rchss001) This e-mail and any files transmitted with it are the property of Chiaro Networks, Ltd., and may contain confidential and privileged material for the sole use of the intended recipient(s) to whom this e-mail is addressed. If you are not one of the named recipient(s), or otherwise have reason to believe that you have received this message in error, please notify the sender and delete all copies from your system. Any other use, retention, dissemination, forwarding, printing or copying of this e-mail is strictly prohibited. --------------------------------------------------------- From erich at omnilux.net Thu Dec 19 18:58:45 2002 From: erich at omnilux.net (Erich Kuehn) Date: Thu, 19 Dec 2002 09:58:45 -0800 Subject: Measuring Latency Message-ID: <18361A0163154B4E9BF6AE2659E01F0901012BCC@rosemead.iad.idealab.com> Im trying to measure latency on my network. My problem is that, ping as a measurement tool is extremely inaccurate. Due to the fact that a system sees a ping as a relatively low priority, it does not always get handled as it should. I'm looking for a way to measure latency with accuracy in the microseconds range, Any Ideas? Does anyone have a plugin or suggestion for this? Thanks Erich ------------------------------------------------------- This SF.NET email is sponsored by: Geek Gift Procrastinating? Get the perfect geek gift now! Before the Holidays pass you by. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From dviner at yahoo-inc.com Thu Dec 19 19:00:22 2002 From: dviner at yahoo-inc.com (Dave Viner) Date: Thu, 19 Dec 2002 10:00:22 -0800 Subject: checking memory and cpu consumption of procs In-Reply-To: References: Message-ID: Here's my first stab at a check_cpu.c program. I want to use poll() to watch both stdout and stderr of the child process, but I can't get it to compile on both FreeBSD and Linux. FreeBSD just needs: #include but Linux needs: #include #include Unfortunately this means that it requires a new definition in configure.in. I'm not quite sure how to handle that, but I'll also look into make those changes. Can anyone help me with that? Other than that, this program works very well (I think). thanks dave -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Dave Viner Sent: Wednesday, December 18, 2002 9:38 AM To: Voon, Ton; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] checking memory and cpu consumption of procs I'll make one for FreeBSD and Linux. I'll post it to the list when I have it ready. Unforunately, I don't really understand autoconf/automake and configure.in/makefile.am, so I don't know that I'll be able to help much there.... Thanks ! dave -----Original Message----- From: Voon, Ton [mailto:Ton.Voon at egg.com] Sent: Wednesday, December 18, 2002 1:33 AM To: 'Dave Viner'; Voon, Ton; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] checking memory and cpu consumption of procs A check_cpu, based on check_vsz, would be useful. However, it would require quite a few non-trivial changes to the configure.in and makefile.am to pick up various flags for the ps command to make it portable. If you want to make a start, I'd be happy to add in other OSes. > -----Original Message----- > From: Dave Viner [SMTP:dviner at yahoo-inc.com] > Sent: Tuesday, December 17, 2002 6:23 PM > To: Voon, Ton; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] checking memory and cpu consumption of > procs > > Hi, > > Thanks for pointing me to check_vsz. This is a really great utility. > From > looking at the usage message and the code itself, it looks to me like this > monitors virtual memory consumption. Are there any hooks to monitor %cpu > consumption ? Perhaps something like > ps waxco 'vsz %cpu command' > ? I'm happy to try to add this in if it sounds useful. > > dave > > -----Original Message----- > From: Voon, Ton [mailto:Ton.Voon at egg.com] > Sent: Tuesday, December 17, 2002 1:31 AM > To: 'Dave Viner'; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] checking memory and cpu consumption of procs > > > Dave, > > Take a look at check_vsz for the virtual size of memory usage on a process > level. I've put lot of functionality patches on sourceforge, so you'll > need > to apply those. > > Ton > > > -----Original Message----- > > From: Dave Viner [SMTP:dviner at yahoo-inc.com] > > Sent: Tuesday, December 17, 2002 6:56 AM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] checking memory and cpu consumption of procs > > > > Hi, > > I want to ensure that no process on a machine consumes more than x % > > of the > > cpu, and y MB memory. Is there an existing plugin that handles this? I > > saw > > that check_procs will monitor the number of processes on a machine > > (including ones that match a certain name), and check_load will examine > > the > > machine's overall load averages as reported by uptime. But I can't seem > > to > > find anything that monitors cpu consumption or memory consumption. Is > > there > > a plugin for this already? > > > > thanks > > dave > > > > This private and confidential e-mail has been sent to you by Egg. The Egg group of companies includes Egg Banking plc (registered no. 2999842), Egg Financial Products Ltd (registered no. 3319027) and Egg Investments Ltd (registered no. 3403963) which carries out investment business on behalf of Egg and is regulated by the Financial Services Authority. Registered in England and Wales. Registered offices: 1 Waterhouse Square, 138-142 Holborn, London EC1N 2NA. If you are not the intended recipient of this e-mail and have received it in error, please notify the sender by replying with 'received in error' as the subject and then delete it from your mailbox. ------------------------------------------------------- This SF.NET email is sponsored by: Order your Holiday Geek Presents Now! Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap, MP3 Players, XBox Games, Flying Saucers, WebCams, Smart Putty. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users -------------- next part -------------- A non-text attachment was scrubbed... Name: check_cpu.c Type: application/octet-stream Size: 9248 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: check_cpu.patch Type: application/octet-stream Size: 4636 bytes Desc: not available URL: From Gopinath_Pulyankote at affymetrix.com Thu Dec 19 19:14:15 2002 From: Gopinath_Pulyankote at affymetrix.com (Pulyankote, Gopinath) Date: Thu, 19 Dec 2002 10:14:15 -0800 Subject: How to convert UNIX epoch to date format for u se in Alerts? Message-ID: <48F1F432BF75D6118FAC0002B325BE3636E9C8@ntex04.affymetrix.com> Thanks Mike, I owe you the 5 bucks! Let me know how you want it sent ;) Here is the final entry in checkcommands.cfg that worked: # Used for escalations. Alerts have additional info on how long the host was down. define command { command_name host-notify-manager command_line /usr/bin/printf "%s %b" " Since: " " `/usr/bin/perl -e 'print scalar localtime ($LASTSTATECHANGE$)'` " | /bin/mail -s "$NOTIFICATIONTYPE$ alert - Host $HOSTALIAS$ is $HOSTSTATE$" $CONTACTPAGER$ } Thanks once again -Gopinath -----Original Message----- From: Mike McClure [mailto:mmcclure at pneservices.com] Sent: Wednesday, December 18, 2002 5:23 PM To: Pulyankote, Gopinath Subject: RE: [Nagios-users] How to convert UNIX epoch to date format for u se in Alerts? I think you are missing the backticks in there. They mean "evaluate the statement and return it's value as a string". "`/usr/bin/perl -e 'print scalar localtime($LASTSTATECHANGE$)'`" > I definitely will! But it didn't work. It spit out the complete line with > the perl command. > What did I do wrong? BTW, I need to convert $LASTSTATECHANGE$ value to date > format not $DATETIME$, that is already in date format. > > > define command { > command_name host-notify-manager > command_line /usr/bin/printf "%b %s" " Since: " " > /usr/bin/perl -e 'print scalar localtime ($LASTSTATECHANGE$)' " "\nTime now > is: $DATETIME$" | /bin/mail -s "$NOTIFICATIONTYPE$ alert - Host $HOSTALIAS$ > is $HOSTSTATE$" $CONTACTPAGER$ > } > > -----Original Message----- > From: Mike McClure [mailto:mmcclure at pneservices.com] > Sent: Wednesday, December 18, 2002 4:37 PM > To: Pulyankote, Gopinath > Cc: 'Steve Burton'; Nagios List > Subject: RE: [Nagios-users] How to convert UNIX epoch to date format for u > se in Alerts? > > > Gopinath, > > /usr/bin/printf "%b %s" " since '$LASTSTATECHANGE$' \nTime now is: " > "`/usr/bin/perl > -e 'print scalar localtime($DATETIME$)'`" | /bin/mail -s "$NOTIFICATIONTYPE$ > alert - > Host $HOSTALIAS$ is $HOSTSTATE$" $CONTACTPAGER$ > > You owe me five bucks if it works. :) > > - Mike > >> Thanks. But how do I get this conversion done within this command > definition >> in checkcommands.cfg ? >> define command { >> command_name host-notify-manager >> command_line /usr/bin/printf "%b" " since >> '$LASTSTATECHANGE$' \nTime now is: $DATETIME$" | /bin/mail -s >> "$NOTIFICATIONTYPE$ alert - Host $HOSTALIAS$ is $HOSTSTATE$" > $CONTACTPAGER$ >> } >> -Gopinath >> >> >> -----Original Message----- >> From: Steve Burton [mailto:steve at sliderule.demon.co.uk] >> Sent: Wednesday, December 18, 2002 12:59 PM >> Cc: Nagios List >> Subject: Re: [Nagios-users] How to convert UNIX epoch to date format for u >> se in Alerts? >> >> >> >> >> Olaf Greis wrote: >>> >>> > The only problem now is that $LASTSTATECHANGE$ is in UNIX epoch > format. >>> > How does one convert this to readable format ? >>> >>> perl -e 'print scalar localtime(1234567890)' is one of the possible >> solutions. >>> >> under FreeBSD (at least) date -r does the same. >> >> Steve. >> >>> brdgs >>> olaf >>> >>> ------------------------------------------------------- >>> This sf.net email is sponsored by: >>> With Great Power, Comes Great Responsibility >>> Learn to use your power at OSDN's High Performance Computing Channel >>> http://hpc.devchannel.org/ >>> _______________________________________________ >>> Nagios-users mailing list >>> Nagios-users at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/nagios-users >> >> -- >> Steve Burton >> >> Webmaster & Sub-optimal Coder >> >> >> ------------------------------------------------------- >> This SF.NET email is sponsored by: Order your Holiday Geek Presents Now! >> Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap, >> MP3 Players, XBox Games, Flying Saucers, WebCams, Smart Putty. >> T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> >> >> ------------------------------------------------------- >> This SF.NET email is sponsored by: Order your Holiday Geek Presents Now! >> Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap, >> MP3 Players, XBox Games, Flying Saucers, WebCams, Smart Putty. >> T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> >> > > > -- > Mike McClure, CCIE # 5125, CISSP # 30232 > PNE Services, Inc. - http://www.pneservices.com > mmcclure at pneservices.com > mobile: 913-636-5590 > > -- Mike McClure, CCIE # 5125, CISSP # 30232 PNE Services, Inc. - http://www.pneservices.com mmcclure at pneservices.com mobile: 913-636-5590 ------------------------------------------------------- This SF.NET email is sponsored by: Geek Gift Procrastinating? Get the perfect geek gift now! Before the Holidays pass you by. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From gwichman at zantaz.com Thu Dec 19 19:20:49 2002 From: gwichman at zantaz.com (Gerald Wichmann) Date: Thu, 19 Dec 2002 10:20:49 -0800 Subject: setting up distributed servers Message-ID: <12C7D768CC8ED4118A9200508BEEC6FB02CB40E2@zanexch.zantaz.com> I'm trying to setup a distributed server. Do I need to define contacts and contract groups on the distributed server? Seems like you wouldn't need to but when I try to start nagios it bitches that I've not defined any. Guess I was figuring that with enable_notifications set to 0, it wouldn't care but it seems to.. I'm a little confused as to what .cfg files you need to setup on the distributed server.. I realize the services and hosts need to be configured.. and thus the hostgroups probably. But some of the others like the two above seem unnecessary. Though it appears not? Gerald Wichmann Senior Systems Development Engineer Zantaz, Inc. 925.598.3099 (w) This e-mail has been captured and archived by the ZANTAZ Digital Safe(tm) service. For more information, visit us at www.zantaz.com. IMPORTANT: This electronic mail message is intended only for the use of the individual or entity to which it is addressed and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by telephone or directly reply to the original message(s) sent. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From gwichman at zantaz.com Thu Dec 19 19:36:23 2002 From: gwichman at zantaz.com (Gerald Wichmann) Date: Thu, 19 Dec 2002 10:36:23 -0800 Subject: Nagios Error starting up Message-ID: <12C7D768CC8ED4118A9200508BEEC6FB02CB40E4@zanexch.zantaz.com> Another problem with my distributed server is when I start it it logs this.. any idea what that means? Dec 19 10:29:58 PSNAT-DOI nagios: Nagios 1.0b6 starting... (PID=26354) Dec 19 10:29:58 PSNAT-DOI nagios: Warning: Contact group 'solaris-admins' is not used in any hostgroup/service definitions or host/hostgroup/service escalations! Dec 19 10:29:58 PSNAT-DOI nagios: Finished daemonizing... (New PID=26355) Dec 19 10:29:58 PSNAT-DOI nagios: Error: Failed to grab configuration information for retention data The bottom most error.. Gerald Wichmann Senior Systems Development Engineer Zantaz, Inc. 925.598.3099 (w) This e-mail has been captured and archived by the ZANTAZ Digital Safe(tm) service. For more information, visit us at www.zantaz.com. IMPORTANT: This electronic mail message is intended only for the use of the individual or entity to which it is addressed and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by telephone or directly reply to the original message(s) sent. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From twelsh at square-box.com Thu Dec 19 20:49:05 2002 From: twelsh at square-box.com (Tom Welsh) Date: Thu, 19 Dec 2002 19:49:05 -0000 Subject: Notification to Mobile..... In-Reply-To: References: Message-ID: <002001c2a797$afe95540$0400a8c0@squarebox.com> I did this at a pervious company. We used the vodapage gateway service and we just sent an email to the mobilenumber at vodapage.net and it went to trhe correct person. It worked great, too good infact that I always knew when something went down at 4am, even when I wasn?t on shift (Doh!) remember to get your notifications and time periods sorted Cheers Tom Welsh twelsh at square-box.com -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Pete Dewell Sent: 19 December 2002 14:49 To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Notification to Mobile..... I just set up an email-to-SMS address with our mobile phone service, and send out emails. Pete Dewell Daniel Geske wrote: > > Dear Thiru, > > yaps worked fine for me. > http://www.nagios.org/faqs/viewfaq.php?faq_id=65 > > Greetings > > Daniel > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Thirumalai > Srinivasan > Sent: Thursday, December 19, 2002 11:30 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Notification to Mobile..... > > HI > > I have installed Nagios for my environment.Things are working fine except > the notification to my mobile.How do i do this.I gave my mobile number with > the country code ..eg +919840132325 ...but this format is not working...Im > not sure whether this is right..Can someone help me in this... > > Regards > Thiru > > ------------------------------------------------------- > This SF.NET email is sponsored by: Geek Gift Procrastinating? > Get the perfect geek gift now! Before the Holidays pass you by. > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ------------------------------------------------------- > This SF.NET email is sponsored by: Geek Gift Procrastinating? > Get the perfect geek gift now! Before the Holidays pass you by. > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users -- Technical Support/Analyst Volt Europe Tel : (+44) (0) 1737 774100 Fax : (+44) (0) 1737 772949 Mobile : (+44) (0) 777 1513066 E-mail pete.dewell at volteurope.com ------------------------------------------------------- This SF.NET email is sponsored by: Geek Gift Procrastinating? Get the perfect geek gift now! Before the Holidays pass you by. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: Geek Gift Procrastinating? Get the perfect geek gift now! Before the Holidays pass you by. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From twmoore at bea.com Thu Dec 19 21:32:57 2002 From: twmoore at bea.com (Timothy Moore) Date: Thu, 19 Dec 2002 13:32:57 -0700 Subject: nagios problem Message-ID: <3E022CF9.5020502@bea.com> Question / Problem I installed Nagios 1.0 and gd 2.0.9. when I attempt to use user defined coordinates, I get a "Internal Server Error". The error_log file contains "Premature end of script headers: /usr/local/nagios/sbin/statusmap.cgi" I trimmed everything down to a single host and tried different x,y coordinates - negative... TWM ------------------------------------------------------- This SF.NET email is sponsored by: Geek Gift Procrastinating? Get the perfect geek gift now! Before the Holidays pass you by. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From GPotter at MarathonOil.com Thu Dec 19 21:57:08 2002 From: GPotter at MarathonOil.com (Potter, G M (Greg)) Date: Thu, 19 Dec 2002 14:57:08 -0600 Subject: nagios problem Message-ID: Is your SetENV LD_LIBRARY_PATH variable set in your httpd.conf file? What are your system specifics (OS,Web server, etc...) Greg > -----Original Message----- > From: Timothy Moore [mailto:twmoore at bea.com] > Sent: Thursday, December 19, 2002 2:33 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] nagios problem > > > Question / Problem > > I installed Nagios 1.0 and gd 2.0.9. when I attempt to use user > defined coordinates, I get a "Internal Server Error". > The error_log file contains "Premature end of script headers: > /usr/local/nagios/sbin/statusmap.cgi" > > I trimmed everything down to a single host and tried different x,y > coordinates - negative... > > TWM > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: Geek Gift Procrastinating? > Get the perfect geek gift now! Before the Holidays pass you by. > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: Geek Gift Procrastinating? Get the perfect geek gift now! Before the Holidays pass you by. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From andrewm659 at yahoo.com Thu Dec 19 22:29:42 2002 From: andrewm659 at yahoo.com (Andrew Meyer) Date: Thu, 19 Dec 2002 13:29:42 -0800 (PST) Subject: Nagios and DHCP Message-ID: <20021219212942.53592.qmail@web13207.mail.yahoo.com> can nagios monitor computers that are DHCP clients? Andrew Meyer __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com ------------------------------------------------------- This SF.NET email is sponsored by: Geek Gift Procrastinating? Get the perfect geek gift now! Before the Holidays pass you by. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From Stanley.Hopcroft at IPAustralia.Gov.AU Thu Dec 19 23:24:10 2002 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Fri, 20 Dec 2002 09:24:10 +1100 Subject: Nagios and DHCP In-Reply-To: <20021219212942.53592.qmail@web13207.mail.yahoo.com>; from andrewm659@yahoo.com on Thu, Dec 19, 2002 at 01:29:42PM -0800 References: <20021219212942.53592.qmail@web13207.mail.yahoo.com> Message-ID: <20021220092405.A46489@IPAustralia.Gov.AU> Dear Sir, On Thu, Dec 19, 2002 at 01:29:42PM -0800, Andrew Meyer wrote: > can nagios monitor computers that are DHCP clients? > If you mean, 'Can Nagios monitor a DHCP server's supply of leased IP Addresses to DHCP clients ?'. Yes. There is a linux-specific plugin in the contrib directory for this purpose. If you want a more general purpose check_dhcp plugin, there are suitable Perl modules and code (although I don't know where they are). HTH, Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This SF.NET email is sponsored by: Geek Gift Procrastinating? Get the perfect geek gift now! Before the Holidays pass you by. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From rplewe at ess.nec.de Thu Dec 19 23:32:54 2002 From: rplewe at ess.nec.de (Rasmus Plewe) Date: Thu, 19 Dec 2002 23:32:54 +0100 Subject: Nagios and DHCP In-Reply-To: <20021219212942.53592.qmail@web13207.mail.yahoo.com>; from andrewm659@yahoo.com on Thu, Dec 19, 2002 at 01:29:42PM -0800 References: <20021219212942.53592.qmail@web13207.mail.yahoo.com> Message-ID: <20021219233254.B2728@ess.nec.de> On Thu, Dec 19, 2002 at 01:29:42PM -0800, Andrew Meyer wrote: > can nagios monitor computers that are DHCP clients? Of course. What kind of problems are you experiencing/fearing? Regards, Rasmus ------------------------------------------------------- This SF.NET email is sponsored by: Geek Gift Procrastinating? Get the perfect geek gift now! Before the Holidays pass you by. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From Stanley.Hopcroft at IPAustralia.Gov.AU Fri Dec 20 01:20:24 2002 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Fri, 20 Dec 2002 11:20:24 +1100 Subject: help with dependencies In-Reply-To: ; from JKnash@bnyclearing.com on Thu, Dec 19, 2002 at 08:34:19AM -0800 References: Message-ID: <20021220112020.C46489@IPAustralia.Gov.AU> Dear Sir, I am writing to thank you for your letter and say On Thu, Dec 19, 2002 at 08:34:19AM -0800, JKnash at bnyclearing.com wrote: > I am having a little bit of trouble understanding how dependencies work. > The documention isn't helping me all that much so I figured I'd ask for > help. that my experience is (not having inspected the dependency code - and I should: Mr Galstad annotates extensively his code) is that 'host' and 'service' in the templates refer to a service that depends upon the services running on another host, that given by the value of the 'dependent_host_name' and 'dependent_service_description'. > I have a webserver named WWW1 that relies on a database server named > DB1. The database server is required for the webserver to be considered > up. Which would I put as the host_name and which would I put as the > dependent_host_name? > define servicedependency{ host_name WWW1 service_description WWW1 web service dependent_host_name DB1 dependent_service_description DB1 database service execution_failure_criteria n ; These are the criteria for which check execution will be supressed notification_failure_criteria c ; These are the criteria for which notifications will be supressed } Check it out by forcing a passive service check with a HARD CRITICAL state on the DB1 service and see what state the WWW1 service is in. > thanks, > > Justin Knash > Network Engineer > BNY Clearing Services > > Be aware that there are some gotchas with dependencies :- 1 the service may be checked before the 'dependent_service' is checked, so you could be be notified anyway 2 the default is to only suppress checks and notifications when the 'dependent service' is in a HARD state. You can work around the latter with the global config option soft_dependencies... (see doc). I don't know how to deal with the former (apart from changing the rates of service checks so that the 'dependent_service' [this is a perplexing name for me - I would have said the other one is dependent] is checked more frequently than the service that depends on this one). HTH, Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This SF.NET email is sponsored by: Geek Gift Procrastinating? Get the perfect geek gift now! Before the Holidays pass you by. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From peterpan at pvamu.edu Fri Dec 20 06:25:04 2002 From: peterpan at pvamu.edu (Peter Pan) Date: Thu, 19 Dec 2002 23:25:04 -0600 Subject: nrpep Message-ID: <008701c2a7e8$3171fb80$0e38cf81@fucko> [root at netsaint plugins]# ./check_nrpep -h snatch.pvamu.edu -c check_users -p 8086 -t 15 -f /usr/local/netsaint/etc/check_nrpep.cfg Use of uninitialized value in split at ./check_nrpep line 145, line 1. Use of uninitialized value in substitution (s///) at ./check_nrpep line 146, line 1. Use of uninitialized value in substitution (s///) at ./check_nrpep line 147, line 1. Use of uninitialized value in right bitshift (>>) at ./check_nrpep line 148, line 1. Use of uninitialized value in concatenation (.) at ./check_nrpep line 149, line 1. [root at netsaint plugins]# I am getting this when I try to execute remote checks manually. Any ideas? Thanks Peter Pan -------------- next part -------------- An HTML attachment was scrubbed... URL: From Fredrik.Wanglund at datavis.se Fri Dec 20 08:17:18 2002 From: Fredrik.Wanglund at datavis.se (=?iso-8859-1?Q?Fredrik_W=E4nglund?=) Date: Fri, 20 Dec 2002 08:17:18 +0100 Subject: No data in Apan graph Message-ID: <9EA0F1554816EB499A4B1136B80E8DE278044D@storevis.datavis.se> Is the RRD-file writeable by the nagios-user? Try to uncomment the line # debug "Inserting '$TEMPL' , '$DATA' into $RRDFILE" In apan.sh (somewhere around line 88) and se if it looks ok in apan.debug. /FredrikW -----Original Message----- From: Desmond Chia [mailto:desmondc at bii.a-star.edu.sg] Sent: Fri 20-Dec-02 07:13 To: Fredrik W?nglund; nagios-users at lists.sourceforge.net Cc: Subject: Re: [Nagios-users] No data in Apan graph Yup, The apan.debug shows the expected result.. I'm beginning to think that it's the problem with the rrd file. I have included the apan.debug, apancfg.debug, apan.cfg and the rrd file. The command which i used to create the rrd file is: rrdtool create /usr/local/nagios/rrd/startap-ping.rrd -s 60 DS:ping:GAUGE:300:0:U RRA:AVERAGE:0.5:1:50400 RRA:AVERAGE:0.5:60:43800 Anyone has any idea? ====================================== Desmond Chia. BioInformatics Institute Laboratories for Information Technology 21 Heng Mui Keng Terrace Level 3, #03-36 Singapore 119613 desmondc at bii.a-star.edu.sg http://student.bii.a-star.edu.sg/~desmondc/ ====================================== ----- Original Message ----- From: "Fredrik W?nglund" To: "Chia Teck Meng Desmond" ; Cc: Sent: Thursday, December 19, 2002 5:29 PM Subject: RE: [Nagios-users] No data in Apan graph Have you checked /tmp/apan.debug for any clues? /FredrikW -----Original Message----- From: Chia Teck Meng Desmond [mailto:desmondc at bii.a-star.edu.sg] Sent: Thu 19-Dec-02 04:10 To: nagios-users at lists.sourceforge.net Cc: desmondc at bii.a-star.edu.sg Subject: [Nagios-users] No data in Apan graph Hi, I'm a beginner in using Nagios and with Apan. I am using Apan 0.2.0 with Nagios 1.0. I tried the exact configuration steps as listed on the Apan website on the measure of the ping round-trip times. The host that I pinged was www.startap.com. The time was around 300ms. The graphs appeared but there was no data in the graph. The graph shows a red line (LINE2), constantly at the zero line. The data in the rrd file is seems to be empty, except for a few entries where the data is too small. I extracted some listings of the rrd file: 1040265000: 0.0000000000e+00 1040265060: 0.0000000000e+00 1040265120: 0.0000000000e+00 1040265180: 0.0000000000e+00 1040265240: 0.0000000000e+00 1040265300: 0.0000000000e+00 1040265360: 0.0000000000e+00 1040265420: 0.0000000000e+00 1040265480: 0.0000000000e+00 1040265540: 0.0000000000e+00 1040265600: 0.0000000000e+00 1040265660: 0.0000000000e+00 1040265720: 0.0000000000e+00 1040265780: 0.0000000000e+00 1040265840: 0.0000000000e+00 1040265900: 0.0000000000e+00 1040265960: nan 1040266020: nan 1040266080: nan Can someone help me out here? Cheers, Desmond. ------------------------------------------------------- This SF.NET email is sponsored by: Order your Holiday Geek Presents Now! Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap, MP3 Players, XBox Games, Flying Saucers, WebCams, Smart Putty. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: Geek Gift Procrastinating? Get the perfect geek gift now! Before the Holidays pass you by. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From sean.knox at sbcglobal.net Fri Dec 20 08:26:39 2002 From: sean.knox at sbcglobal.net (Sean Knox) Date: Thu, 19 Dec 2002 23:26:39 -0800 Subject: Measuring Latency In-Reply-To: <18361A0163154B4E9BF6AE2659E01F0901012BCC@rosemead.iad.idealab.com> References: <18361A0163154B4E9BF6AE2659E01F0901012BCC@rosemead.iad.idealab.com> Message-ID: <3E02C62F.3040904@sbcglobal.net> Software measurement, as a rule, is unreliable and not accurate. To achieve microsecond accuracy (that is also reliably accurate), you will need some hardware-based measurement. A company I used to work for (now defunct) developed this exact solution. I believe a company called Brix was developing a similar product, as was Cisco. Then again, if can afford to be more lenient with your accuracy, you could always use MRTG, cricket, or a variety of other tools to test TCP return time at various ports (i.e. 22, 80, 25, etc) Sean Erich Kuehn wrote: >Im trying to measure latency on my network. My problem is that, ping as >a measurement tool is extremely inaccurate. Due to the fact that a >system sees a ping as a relatively low priority, it does not always get >handled as it should. I'm looking for a way to measure latency with >accuracy in the microseconds range, Any Ideas? > >Does anyone have a plugin or suggestion for this? > >Thanks > >Erich > > >------------------------------------------------------- >This SF.NET email is sponsored by: Geek Gift Procrastinating? >Get the perfect geek gift now! Before the Holidays pass you by. >T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users > > > ------------------------------------------------------- This SF.NET email is sponsored by: Geek Gift Procrastinating? Get the perfect geek gift now! Before the Holidays pass you by. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From greg_vickers at mbox.com.au Fri Dec 20 08:53:04 2002 From: greg_vickers at mbox.com.au (Greg Vickers) Date: Fri, 20 Dec 2002 17:53:04 +1000 Subject: Unique (?) situation (multiple host NICs/services) - HARD Message-ID: Hi all, We have the following situation: Host A runs SERVICE_1. Host A has multiple (anywhere between 2-5) NICs. Each NIC is on a separate subnet and provides SERVICE_1 to each subnet. Host B runs SERVICE_2. Host B has multiple NICs on the same subnets as Host A. Host B, SERVICE_2 provides a backup for SERVICE_1 on the same subnets. (If clients time-out connecting to SERVICE_1 on Host A they try connecting to SERVICE_2 on Host B on the same subnet) I currently monitor each NIC on each Host as a separate host and perform all service checks of Host A/B on each NIC. Redundant for most checks (disk space, uptime etc) except for SERVICE_x as we need to know that SERVICE_x on each host is serving each subnet. No worries. In the event of a failure, getting multiple emails/winpopups isn't a big deal. I have just gotten my paging working and wish to avoid multiple pages at 1am in the event of a host failure. Further, I want to only be notified if BOTH hosts stop providing SERVICE_x on a particular subnet, or if BOTH hosts go down. Got all that? Good. :) (I told you it was hard :) ) Since I'm in Xmas mode, i'm going home to drink and think about host/service dependancies over the weekend and how I might be able to set them up so that I don't get circular dependancies etc. Beer is good. I was wondering if anyone else out there has set up something vaugely like this situation and if so, how the b00rk did you do it??? Merry Xmas and all that, Greg Vickers p.s. Why do these questions always seem to come to me on Friday afternoon??? :) --------------------------------------------------------------------- Never lose a fax again, receive faxes to your personal email account! Visit http://www.mbox.com.au/fax ------------------------------------------------------- This SF.NET email is sponsored by: Geek Gift Procrastinating? Get the perfect geek gift now! Before the Holidays pass you by. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From ralph.zimmermann at salt-ag.com Fri Dec 20 09:00:52 2002 From: ralph.zimmermann at salt-ag.com (Ralph Zimmermann) Date: Fri, 20 Dec 2002 09:00:52 +0100 Subject: Notification to Mobile..... Message-ID: <01C2A806.4D519EA0.ralph.zimmermann@salt-ag.com> I'm doing it in a similar way, sending alerts to mobilenumber at T-Mobile gateway. The only problem with those message services is the fact that you do not have a determined delivery time for the SMS from the message center to the mobile. Somtimes I'm ending up receiving alarms at 7am in the morning, that had been sucessfully sent to the T-Mobile gateway at 10pm the night before. Not really usefull if a box is already down for 9 hours when the alarm finally reaches you. Cheers, Ralph. -----Original Message----- From: Tom Welsh [SMTP:twelsh at square-box.com] Sent: Thursday, December 19, 2002 8:49 PM To: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Notification to Mobile..... I did this at a pervious company. We used the vodapage gateway service and we just sent an email to the mobilenumber at vodapage.net and it went to trhe correct person. It worked great, too good infact that I always knew when something went down at 4am, even when I wasn't on shift (Doh!) remember to get your notifications and time periods sorted Cheers Tom Welsh twelsh at square-box.com -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Pete Dewell Sent: 19 December 2002 14:49 To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Notification to Mobile..... I just set up an email-to-SMS address with our mobile phone service, and send out emails. Pete Dewell Daniel Geske wrote: > > Dear Thiru, > > yaps worked fine for me. > http://www.nagios.org/faqs/viewfaq.php?faq_id=65 > > Greetings > > Daniel > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Thirumalai > Srinivasan > Sent: Thursday, December 19, 2002 11:30 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Notification to Mobile..... > > HI > > I have installed Nagios for my environment.Things are working fine except > the notification to my mobile.How do i do this.I gave my mobile number with > the country code ..eg +919840132325 ...but this format is not working...Im > not sure whether this is right..Can someone help me in this... > > Regards > Thiru > > ------------------------------------------------------- > This SF.NET email is sponsored by: Geek Gift Procrastinating? > Get the perfect geek gift now! Before the Holidays pass you by. > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ------------------------------------------------------- > This SF.NET email is sponsored by: Geek Gift Procrastinating? > Get the perfect geek gift now! Before the Holidays pass you by. > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users -- Technical Support/Analyst Volt Europe Tel : (+44) (0) 1737 774100 Fax : (+44) (0) 1737 772949 Mobile : (+44) (0) 777 1513066 E-mail pete.dewell at volteurope.com ------------------------------------------------------- This SF.NET email is sponsored by: Geek Gift Procrastinating? Get the perfect geek gift now! Before the Holidays pass you by. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: Geek Gift Procrastinating? Get the perfect geek gift now! Before the Holidays pass you by. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: Geek Gift Procrastinating? Get the perfect geek gift now! Before the Holidays pass you by. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From Markus.Kraus.hp at sysde.eads.net Fri Dec 20 11:05:35 2002 From: Markus.Kraus.hp at sysde.eads.net (Kraus, Markus) Date: Fri, 20 Dec 2002 11:05:35 +0100 Subject: command external problem Message-ID: Set the permissions of the command file to 666. Does anybody no wether there is an other way? -----Original Message----- From: Jos? Francisco Torres [mailto:ftorres at ula.ve] Sent: Donnerstag, 19. Dezember 2002 16:50 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] command external problem HI I have a problem with commands externals, i need help, i am a user new of nagios........ Error: Could not stat() command file '/usr/local/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. ------------------------------------------------------- This SF.NET email is sponsored by: Geek Gift Procrastinating? Get the perfect geek gift now! Before the Holidays pass you by. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: The Best Geek Holiday Gifts! Time is running out! Thinkgeek.com has the coolest gifts for your favorite geek. Let your fingers do the typing. Visit Now. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From Markus.Kraus.hp at sysde.eads.net Fri Dec 20 11:03:47 2002 From: Markus.Kraus.hp at sysde.eads.net (Kraus, Markus) Date: Fri, 20 Dec 2002 11:03:47 +0100 Subject: Nagios Error starting up Message-ID: Seems to deal with state retention. Maybe you disable this fuction for testing. -----Original Message----- From: Gerald Wichmann [mailto:gwichman at zantaz.com] Sent: Donnerstag, 19. Dezember 2002 19:36 To: Nagios (E-mail) Subject: [Nagios-users] Nagios Error starting up Another problem with my distributed server is when I start it it logs this.. any idea what that means? Dec 19 10:29:58 PSNAT-DOI nagios: Nagios 1.0b6 starting... (PID=26354) Dec 19 10:29:58 PSNAT-DOI nagios: Warning: Contact group 'solaris-admins' is not used in any hostgroup/service definitions or host/hostgroup/service escalations! Dec 19 10:29:58 PSNAT-DOI nagios: Finished daemonizing... (New PID=26355) Dec 19 10:29:58 PSNAT-DOI nagios: Error: Failed to grab configuration information for retention data The bottom most error.. Gerald Wichmann Senior Systems Development Engineer Zantaz, Inc. 925.598.3099 (w) This e-mail has been captured and archived by the ZANTAZ Digital Safe(tm) service. For more information, visit us at www.zantaz.com. IMPORTANT: This electronic mail message is intended only for the use of the individual or entity to which it is addressed and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by telephone or directly reply to the original message(s) sent. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sean.knox at sbcglobal.net Fri Dec 20 11:20:29 2002 From: sean.knox at sbcglobal.net (Sean Knox) Date: Fri, 20 Dec 2002 02:20:29 -0800 Subject: command external problem In-Reply-To: References: Message-ID: <3E02EEED.4020207@sbcglobal.net> To enable external cmds: 1. Add nagioscmd group 2. Add nagios and webserver users to nagioscmd group 3. Set correct permissions on /usr/local/nagios/var/rw i. chown nagios.nagioscmd /usr/local/nagios/var/rw ii. chmod u+rwx /usr/local/nagios/var/rw iii. chmod g+rw /usr/local/nagios/var/rw iv. /usr/local/nagios/var/rw v. drwxrws--- 2 nagios nagiocmd 1024 Aug 11 16:30 rw 4. check_external_commands=1 in nagios.cfg 5. Restart Apache Kraus, Markus wrote: >Set the permissions of the command file to 666. Does anybody no wether there >is an other way? > >-----Original Message----- >From: Jos? Francisco Torres [mailto:ftorres at ula.ve] >Sent: Donnerstag, 19. Dezember 2002 16:50 >To: nagios-users at lists.sourceforge.net >Subject: [Nagios-users] command external problem > > > > HI > I have a problem with commands externals, i need help, i am a user new >of nagios........ > >Error: Could not stat() command file '/usr/local/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. > > > > >------------------------------------------------------- >This SF.NET email is sponsored by: Geek Gift Procrastinating? >Get the perfect geek gift now! Before the Holidays pass you by. >T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users > > >------------------------------------------------------- >This SF.NET email is sponsored by: The Best Geek Holiday Gifts! >Time is running out! Thinkgeek.com has the coolest gifts for >your favorite geek. Let your fingers do the typing. Visit Now. >T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users > > > ------------------------------------------------------- This SF.NET email is sponsored by: The Best Geek Holiday Gifts! Time is running out! Thinkgeek.com has the coolest gifts for your favorite geek. Let your fingers do the typing. Visit Now. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From naabokhalaf at refertelecom.pt Fri Dec 20 11:59:55 2002 From: naabokhalaf at refertelecom.pt (ABOKHALAF, Nassri Abdellatif) Date: Fri, 20 Dec 2002 10:59:55 -0000 Subject: Nagios erroneous output Message-ID: <5032019AFC475F4B95262C63B94BC2F8B584@rtsvr8.refertelecom.pt> hello, i am having problems with nagios output. I am monitoring several servers and when i refresh the page in service detail menu o get two situations: i get the error message : "It appears as though you do not have permission to view information for any of the services you requested..." or i only see 13 of the 35 hosts a and services i am monitoring. if i insist in refeshing the page several times i see all my hosts. What confuses me is that i have not made any change in my configuration options for this to happend. An other problem is in the tactical overview menu. It reports unhandeld problems that should not reported. thank you in advance naa ------------------------------------------------------- This SF.NET email is sponsored by: The Best Geek Holiday Gifts! Time is running out! Thinkgeek.com has the coolest gifts for your favorite geek. Let your fingers do the typing. Visit Now. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From tomas.hautala at adm.vxu.se Fri Dec 20 12:44:34 2002 From: tomas.hautala at adm.vxu.se (Tomas Hautala) Date: Fri, 20 Dec 2002 12:44:34 +0100 Subject: Problem with LDAP authenticated users. Message-ID: <3E0302A2.1050300@adm.vxu.se> Hi. I have a problem with users that have been authenticated to the webserver through LDAP. The webserver authenticates fine but im wondering how to solve the part about CGI access? I've been looking att the cgi.cfg file and i dont want to use the "default_user_name" option to work around the problem. Do i need to somehow add all my users who i have in the LDAP directory to nagios just to get Nagios to respond with the correct username when i logon to nagios? I wich to avoid that. I've tryed setting the "authorized_for_all_services" etc. to "*", hopeing it would solve my problem. Any ideas? Any help is appreciated. _______________________ Tomas Hautala V?xj? University ------------------------------------------------------- This SF.NET email is sponsored by: The Best Geek Holiday Gifts! Time is running out! Thinkgeek.com has the coolest gifts for your favorite geek. Let your fingers do the typing. Visit Now. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From R.Ruecker at st-ag.de Fri Dec 20 13:24:11 2002 From: R.Ruecker at st-ag.de (Ruecker, Rainer) Date: Fri, 20 Dec 2002 13:24:11 +0100 Subject: Win2000 App Log errors from NS client Message-ID: [check_citrix triggers \\TerminalServices\\Active Sessions query] > Rainer, > > The Errors appear inthe NT log and an interval corresponding > to the check > schedule (when it was implemented). > > I have restarted the service and indeed restarted the box > ........no joy > No reference to the rouge check can be found in nagios.log. > No other mesages relating to NSClient appear in the NT logs > > ???? I have to make a shot in the blue then: - maybe one of the definitions in checkcommands.cfg still points to the NSClient-Query and gets triggered when it is called under it's "new name". (Probably you have already done a grep for "TerminalServices" in the config-directory on the nagios server.) What happens if you do the check_citrix command from the command-line? Does this create an entry in the NT error log? If yes, we should notify Ed Rolison about this. Regards Rainer ------------------------------------------------------- This SF.NET email is sponsored by: The Best Geek Holiday Gifts! Time is running out! Thinkgeek.com has the coolest gifts for your favorite geek. Let your fingers do the typing. Visit Now. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From chris.stankaitis at datawire.net Fri Dec 20 14:30:58 2002 From: chris.stankaitis at datawire.net (Chris Stankaitis) Date: Fri, 20 Dec 2002 08:30:58 -0500 Subject: Extended Info & Status Log with MySQL In-Reply-To: References: Message-ID: <3E031B92.1000200@datawire.net> Between a collegue of mine we have made Nagios into i686 RPM's for RH and have installed and confgured them, for the most part everything is working great we compiled in mySQL support for everything, and for the most part that is working well as well... I just have 3 small little things that are giving me greif... 1) whenever I start/restart Nagios it complains about not being able to find /var/log/status.log but since it's compiled the MYSql Support into Nagios.. and The Tables exits it wants the nagios user has access to them so it shouldn't even be looking for /var/log/status.log any Ideas as to why it's throwing this error and how to stop it?? it doesn't APPEAR to effect Nagios hoever I can't turn on "Nagios Process Command Check" because it'll throw an error since the log doesn't exist... qustion 1b would be how do I change the cmd line arg for Process Command Check to look into the DB rather then looking for the flat file. 2) This Ext info thing.. I am trying to get those nifty little icons working :).. ON RH All HTML is locate in /usr/share/nagios I installed the image-pack to /usr/share/nagios/images/logos in my cgi.cfg my physical_html_path=/usr/share/nagios Since I also compiled DB support I am supose to put all that stuff in there... I populate a few feilds of the DB but it's still not loading the icons GRR... mysql> select * from hostextinfo; +-----------+-----------+------------+------------+----------------+----------------+------+------+--------+--------+--------+----------------+----------------+ | host_name | notes_url | icon_image | vrml_image | gd2_icon_image | icon_image_alt | x_2d | y_2d | x_3d | y_3d | z_3d | have_2d_coords | have_3d_coords | +-----------+-----------+------------+------------+----------------+----------------+------+------+--------+--------+--------+----------------+----------------+ | win2k-server.ca | | win40.gif | win40.jpg | win40.gd2 | Win2k Server | 0 | 0 | 0.0000 | 0.0000 | 0.0000 | 0 | 0 | +-----------+-----------+------------+------------+----------------+----------------+------+------+--------+--------+--------+----------------+----------------+ The cgi config does have the xeddb stuff.... and the DB Help on the nagios site doesn's say I need to add the same info to the resources.cfg so I am a little stumped as to why it isn't working... do I need to tell it where the logos are somewhere I am missing I wonder... 3) why is it when I go to Host Detail about 90% of the servers being monitored report under "status information" "Host assumed to be up) while a few servers at random (it seems) report their ping?? how can I get all servers to report their ping? --Chris ------------------------------------------------------- This SF.NET email is sponsored by: The Best Geek Holiday Gifts! Time is running out! Thinkgeek.com has the coolest gifts for your favorite geek. Let your fingers do the typing. Visit Now. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From Ton.Voon at egg.com Fri Dec 20 15:07:45 2002 From: Ton.Voon at egg.com (Voon, Ton) Date: Fri, 20 Dec 2002 14:07:45 -0000 Subject: checking memory and cpu consumption of procs Message-ID: <53104E20A25CD411B556009027E50636064D5037@pnnemp02.pn.egg.com> Dave, I've tried to run your program on Solaris but I'm not having any joy. I managed to add in the poll checks for configure, but when running, it goes into an infinite loop. It seems that the line: n = poll (fdarray, 2, INFTIM); is returning 2, but the condition (fdarray[0].revents & readable) is not true and so the read_size never gets set to 0 and the loop never ends. I don't know if this is a Solaris limitation (uname: SunOS 2.6). Is there any particular reason you wanted to use poll? I think for a simple subcommand, the spopen and fgets used in check_procs is probably sufficient. Ton > -----Original Message----- > From: Dave Viner [SMTP:dviner at yahoo-inc.com] > Sent: Thursday, December 19, 2002 6:00 PM > To: Voon, Ton; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] checking memory and cpu consumption of > procs > > Here's my first stab at a check_cpu.c program. I want to use poll() to > watch both stdout and stderr of the child process, but I can't get it to > compile on both FreeBSD and Linux. FreeBSD just needs: > #include > but Linux needs: > #include > #include > > Unfortunately this means that it requires a new definition in > configure.in. > I'm not quite sure how to handle that, but I'll also look into make those > changes. Can anyone help me with that? > > Other than that, this program works very well (I think). > > thanks > > dave > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Dave Viner > Sent: Wednesday, December 18, 2002 9:38 AM > To: Voon, Ton; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] checking memory and cpu consumption of procs > > > I'll make one for FreeBSD and Linux. I'll post it to the list when I have > it ready. Unforunately, I don't really understand autoconf/automake and > configure.in/makefile.am, so I don't know that I'll be able to help much > there.... > > Thanks ! > > dave > > > -----Original Message----- > From: Voon, Ton [mailto:Ton.Voon at egg.com] > Sent: Wednesday, December 18, 2002 1:33 AM > To: 'Dave Viner'; Voon, Ton; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] checking memory and cpu consumption of procs > > > A check_cpu, based on check_vsz, would be useful. However, it would > require > quite a few non-trivial changes to the configure.in and makefile.am to > pick > up various flags for the ps command to make it portable. If you want to > make > a start, I'd be happy to add in other OSes. > > > -----Original Message----- > > From: Dave Viner [SMTP:dviner at yahoo-inc.com] > > Sent: Tuesday, December 17, 2002 6:23 PM > > To: Voon, Ton; nagios-users at lists.sourceforge.net > > Subject: RE: [Nagios-users] checking memory and cpu consumption of > > procs > > > > Hi, > > > > Thanks for pointing me to check_vsz. This is a really great utility. > > From > > looking at the usage message and the code itself, it looks to me like > this > > monitors virtual memory consumption. Are there any hooks to monitor > %cpu > > consumption ? Perhaps something like > > ps waxco 'vsz %cpu command' > > ? I'm happy to try to add this in if it sounds useful. > > > > dave > > > > -----Original Message----- > > From: Voon, Ton [mailto:Ton.Voon at egg.com] > > Sent: Tuesday, December 17, 2002 1:31 AM > > To: 'Dave Viner'; nagios-users at lists.sourceforge.net > > Subject: RE: [Nagios-users] checking memory and cpu consumption of procs > > > > > > Dave, > > > > Take a look at check_vsz for the virtual size of memory usage on a > process > > level. I've put lot of functionality patches on sourceforge, so you'll > > need > > to apply those. > > > > Ton > > > > > -----Original Message----- > > > From: Dave Viner [SMTP:dviner at yahoo-inc.com] > > > Sent: Tuesday, December 17, 2002 6:56 AM > > > To: nagios-users at lists.sourceforge.net > > > Subject: [Nagios-users] checking memory and cpu consumption of procs > > > > > > Hi, > > > I want to ensure that no process on a machine consumes more than x % > > > of the > > > cpu, and y MB memory. Is there an existing plugin that handles this? > I > > > saw > > > that check_procs will monitor the number of processes on a machine > > > (including ones that match a certain name), and check_load will > examine > > > the > > > machine's overall load averages as reported by uptime. But I can't > seem > > > to > > > find anything that monitors cpu consumption or memory consumption. Is > > > there > > > a plugin for this already? > > > > > > thanks > > > dave > > > > > > > > This private and confidential e-mail has been sent to you by Egg. The Egg group of companies includes Egg Banking plc (registered no. 2999842), Egg Financial Products Ltd (registered no. 3319027) and Egg Investments Ltd (registered no. 3403963) which carries out investment business on behalf of Egg and is regulated by the Financial Services Authority. Registered in England and Wales. Registered offices: 1 Waterhouse Square, 138-142 Holborn, London EC1N 2NA. If you are not the intended recipient of this e-mail and have received it in error, please notify the sender by replying with 'received in error' as the subject and then delete it from your mailbox. ------------------------------------------------------- This SF.NET email is sponsored by: The Best Geek Holiday Gifts! Time is running out! Thinkgeek.com has the coolest gifts for your favorite geek. Let your fingers do the typing. Visit Now. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From ftorres at ula.ve Fri Dec 20 15:16:22 2002 From: ftorres at ula.ve (=?iso-8859-1?Q?Jos=E9_Francisco_Torres?=) Date: Fri, 20 Dec 2002 10:16:22 -0400 Subject: Fw: command external problem Message-ID: <002301c2a832$600d22e0$a9cd2cc8@cantv.net> thanks... i can now uses commands external.... ----- Original Message ----- From: "Sean Knox" To: "Kraus, Markus" Cc: Sent: Friday, December 20, 2002 6:20 AM Subject: Re: [Nagios-users] command external problem > To enable external cmds: > 1. Add nagioscmd group > 2. Add nagios and webserver users to nagioscmd group > 3. Set correct permissions on /usr/local/nagios/var/rw > i. chown nagios.nagioscmd /usr/local/nagios/var/rw > ii. chmod u+rwx /usr/local/nagios/var/rw > iii. chmod g+rw /usr/local/nagios/var/rw > iv. /usr/local/nagios/var/rw > v. drwxrws--- 2 nagios nagiocmd 1024 Aug 11 16:30 rw > 4. check_external_commands=1 in nagios.cfg > 5. Restart Apache > > Kraus, Markus wrote: > > >Set the permissions of the command file to 666. Does anybody no wether there > >is an other way? > > > >-----Original Message----- > >From: Jos? Francisco Torres [mailto:ftorres at ula.ve] > >Sent: Donnerstag, 19. Dezember 2002 16:50 > >To: nagios-users at lists.sourceforge.net > >Subject: [Nagios-users] command external problem > > > > > > > > HI > > I have a problem with commands externals, i need help, i am a user new > >of nagios........ > > > >Error: Could not stat() command file '/usr/local/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. > > > > > > > > > >------------------------------------------------------- > >This SF.NET email is sponsored by: Geek Gift Procrastinating? > >Get the perfect geek gift now! Before the Holidays pass you by. > >T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > >_______________________________________________ > >Nagios-users mailing list > >Nagios-users at lists.sourceforge.net > >https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > >------------------------------------------------------- > >This SF.NET email is sponsored by: The Best Geek Holiday Gifts! > >Time is running out! Thinkgeek.com has the coolest gifts for > >your favorite geek. Let your fingers do the typing. Visit Now. > >T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > >_______________________________________________ > >Nagios-users mailing list > >Nagios-users at lists.sourceforge.net > >https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: The Best Geek Holiday Gifts! > Time is running out! Thinkgeek.com has the coolest gifts for > your favorite geek. Let your fingers do the typing. Visit Now. > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: The Best Geek Holiday Gifts! Time is running out! Thinkgeek.com has the coolest gifts for your favorite geek. Let your fingers do the typing. Visit Now. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From pamirian at calculus.ca Fri Dec 20 15:26:35 2002 From: pamirian at calculus.ca (Patrick Amirian) Date: Fri, 20 Dec 2002 09:26:35 -0500 Subject: Warning: Monitoring process may not be running Message-ID: <000301c2a833$cd4561f0$c8040201@PAIE250> Hi guys, I'm having this warning message in my nagios and I don't know how to fix it. Warning: Monitoring process may not be running! Click here for more info. Well I've checked in my cgi.cfg and I have this line nagios_check_command=/usr/local/nagios/libexec/check_nagios /usr/local/nagios/var/status.log 5 '/usr/local/nagios/bin/nagios' when I run the /usr/local/nagios/libexec/check_nagios /usr/local/nagios/var/status.log 5 '/usr/local/nagios/bin/nagios' on the command prompts it returns this: Nagios ok: located 3 processes, status log updated 8 seconds ago So I know that the command is working. Now I don't know why I keep getting this warning message. Any help would be appreciated. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jeremy.Bouse at UnderGrid.net Fri Dec 20 15:32:03 2002 From: Jeremy.Bouse at UnderGrid.net (Jeremy T. Bouse) Date: Fri, 20 Dec 2002 06:32:03 -0800 Subject: Problem with LDAP authenticated users. In-Reply-To: <3E0302A2.1050300@adm.vxu.se> References: <3E0302A2.1050300@adm.vxu.se> Message-ID: <20021220143203.GA1323@UnderGrid.net> I've been using LDAP authentication for quite some time now for the Apache access... You just need to make sure that the contact name matches the username they authenticate as... If you set the authorized_for_all_services to * that would allow anyone who is authenticated view all the services... This does not work for my situation where I have some logins that only need to be able to see certain services/hosts and not all... Otherwise setting the various authorized_for_* variables with the username that matches who they authenticate as should do... Jeremy On Fri, Dec 20, 2002 at 12:44:34PM +0100, Tomas Hautala wrote: > Hi. > I have a problem with users that have been authenticated to the > webserver through LDAP. > > The webserver authenticates fine but im wondering how to solve the part > about CGI access? > I've been looking att the cgi.cfg file and i dont want to use the > "default_user_name" option to work around the problem. > > Do i need to somehow add all my users who i have in the LDAP directory > to nagios just to get Nagios to respond with the correct username when i > logon to nagios? I wich to avoid that. > > I've tryed setting the "authorized_for_all_services" etc. to "*", > hopeing it would solve my problem. > > Any ideas? > > Any help is appreciated. > > _______________________ > Tomas Hautala > V?xj? University > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: The Best Geek Holiday Gifts! > Time is running out! Thinkgeek.com has the coolest gifts for > your favorite geek. Let your fingers do the typing. Visit Now. > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: The Best Geek Holiday Gifts! Time is running out! Thinkgeek.com has the coolest gifts for your favorite geek. Let your fingers do the typing. Visit Now. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From stevelml1 at scee.sony.co.uk Fri Dec 20 15:39:31 2002 From: stevelml1 at scee.sony.co.uk (Steve Loughran) Date: Fri, 20 Dec 2002 14:39:31 -0000 Subject: Extended Info & Status Log with MySQL References: <3E031B92.1000200@datawire.net> Message-ID: <045201c2a835$9bcf43a0$f5c8dfc2@niltxp> > 3) why is it when I go to Host Detail about 90% of the servers being > monitored report under "status information" "Host assumed to be up) > while a few servers at random (it seems) report their ping?? how can I > get all servers to report their ping? This is a VVVFAQ....**HOST** checks only get run if a **SERVICE** checks fails... so if the hosts have never failed a service check, then the Host check has never been run (and therefore have no history or data, and are assumed to be up). If you want to show pings for all hosts, add a ping check as a service check. Steve ------------------------------------------------------- This SF.NET email is sponsored by: The Best Geek Holiday Gifts! Time is running out! Thinkgeek.com has the coolest gifts for your favorite geek. Let your fingers do the typing. Visit Now. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From jack at monkeynoodle.org Fri Dec 20 15:57:35 2002 From: jack at monkeynoodle.org (Jack Coates) Date: 20 Dec 2002 06:57:35 -0800 Subject: Warning: Monitoring process may not be running In-Reply-To: <000301c2a833$cd4561f0$c8040201@PAIE250> References: <000301c2a833$cd4561f0$c8040201@PAIE250> Message-ID: <1040396255.7738.32.camel@chupacabra.monkeynoodle.org> su - nagios and try running it again. I had a similar experience with a heavily locked down server (msec level 4 on Mandrake) and discovered that the nagios user didn't have read permissions in /proc, so ps didn't work. On Fri, 2002-12-20 at 06:26, Patrick Amirian wrote: > Hi guys, > I'm having this warning message in my nagios and I don't know how to fix > it. > > Warning: Monitoring process may not be running! > Click here for more > info. > > Well I've checked in my cgi.cfg and I have this line > nagios_check_command=/usr/local/nagios/libexec/check_nagios > /usr/local/nagios/var/status.log 5 '/usr/local/nagios/bin/nagios' > > when I run the /usr/local/nagios/libexec/check_nagios > /usr/local/nagios/var/status.log 5 '/usr/local/nagios/bin/nagios' on the > command prompts it returns this: > > Nagios ok: located 3 processes, status log updated 8 seconds ago > > So I know that the command is working. Now I don't know why I keep > getting this warning message. > > Any help would be appreciated. > > Thank you. > > -- Jack Coates Monkeynoodle: A Scientific Venture... ------------------------------------------------------- This SF.NET email is sponsored by: The Best Geek Holiday Gifts! Time is running out! Thinkgeek.com has the coolest gifts for your favorite geek. Let your fingers do the typing. Visit Now. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From twmoore at bea.com Fri Dec 20 15:59:30 2002 From: twmoore at bea.com (Timothy Moore) Date: Fri, 20 Dec 2002 07:59:30 -0700 Subject: check_by_ssh Message-ID: <3E033052.1090409@bea.com> I am using check_by_ssh to check services on monitored hosts. I have load, users, procs, disk space, etc. turned up for 5 or 6 systems. The problem: It consistently fails "Every other time". When I run an availability report it is beautifully striped! One system returns "Unknown" status every other time, even though the message output states OK on all 5 service checks. Another system returns "Critical" every other time, with a plugin timeout after 30 sec. for the disk space check. A duplicate system works fine? Running from the command line works every time. (Note: nrpe "monitor-agent" models won't work for me) TWM ------------------------------------------------------- This SF.NET email is sponsored by: The Best Geek Holiday Gifts! Time is running out! Thinkgeek.com has the coolest gifts for your favorite geek. Let your fingers do the typing. Visit Now. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From russell at quadrix.com Fri Dec 20 16:15:03 2002 From: russell at quadrix.com (Russell Scibetti) Date: Fri, 20 Dec 2002 10:15:03 -0500 Subject: command external problem References: Message-ID: <3E0333F7.8080201@quadrix.com> If you are getting this error through the web interface, just add the user that the web server runs as (nobody, apache, ?) to the nagios group. Then you will have permissions to execute commands from the cgi's. Russell Scibetti Kraus, Markus wrote: >Set the permissions of the command file to 666. Does anybody no wether there >is an other way? > >-----Original Message----- >From: Jos? Francisco Torres [mailto:ftorres at ula.ve] >Sent: Donnerstag, 19. Dezember 2002 16:50 >To: nagios-users at lists.sourceforge.net >Subject: [Nagios-users] command external problem > > > > HI > I have a problem with commands externals, i need help, i am a user new >of nagios........ > >Error: Could not stat() command file '/usr/local/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. > > > > >------------------------------------------------------- >This SF.NET email is sponsored by: Geek Gift Procrastinating? >Get the perfect geek gift now! Before the Holidays pass you by. >T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users > > >------------------------------------------------------- >This SF.NET email is sponsored by: The Best Geek Holiday Gifts! >Time is running out! Thinkgeek.com has the coolest gifts for >your favorite geek. Let your fingers do the typing. Visit Now. >T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users > > -- Russell Scibetti Quadrix Solutions, Inc. http://www.quadrix.com (732) 235-2335, ext. 7038 ------------------------------------------------------- This SF.NET email is sponsored by: The Best Geek Holiday Gifts! Time is running out! Thinkgeek.com has the coolest gifts for your favorite geek. Let your fingers do the typing. Visit Now. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From pamirian at calculus.ca Fri Dec 20 16:21:46 2002 From: pamirian at calculus.ca (Patrick Amirian) Date: Fri, 20 Dec 2002 10:21:46 -0500 Subject: Warning: Monitoring process may not be running In-Reply-To: <1040396255.7738.32.camel@chupacabra.monkeynoodle.org> References: <1040396255.7738.32.camel@chupacabra.monkeynoodle.org> Message-ID: <000a01c2a83b$83317ab0$c8040201@PAIE250> Hi Jack, I don't think that's the problem because myself, as a normal user when I do ps I have no problems and I don't have more privilege than the nagios user. Thanks. -----Message d'origine----- De?: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] De la part de Jack Coates Envoy??: 20 d?cembre, 2002 09:58 ??: patrick.amirian at cognicase.ca Cc?: nagios-users at lists.sourceforge.net Objet?: Re: [Nagios-users] Warning: Monitoring process may not be running su - nagios and try running it again. I had a similar experience with a heavily locked down server (msec level 4 on Mandrake) and discovered that the nagios user didn't have read permissions in /proc, so ps didn't work. On Fri, 2002-12-20 at 06:26, Patrick Amirian wrote: > Hi guys, > I'm having this warning message in my nagios and I don't know how to fix > it. > > Warning: Monitoring process may not be running! > Click here for more > info. > > Well I've checked in my cgi.cfg and I have this line > nagios_check_command=/usr/local/nagios/libexec/check_nagios > /usr/local/nagios/var/status.log 5 '/usr/local/nagios/bin/nagios' > > when I run the /usr/local/nagios/libexec/check_nagios > /usr/local/nagios/var/status.log 5 '/usr/local/nagios/bin/nagios' on the > command prompts it returns this: > > Nagios ok: located 3 processes, status log updated 8 seconds ago > > So I know that the command is working. Now I don't know why I keep > getting this warning message. > > Any help would be appreciated. > > Thank you. > > -- Jack Coates Monkeynoodle: A Scientific Venture... ------------------------------------------------------- This SF.NET email is sponsored by: The Best Geek Holiday Gifts! Time is running out! Thinkgeek.com has the coolest gifts for your favorite geek. Let your fingers do the typing. Visit Now. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: The Best Geek Holiday Gifts! Time is running out! Thinkgeek.com has the coolest gifts for your favorite geek. Let your fingers do the typing. Visit Now. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From valen at tuatha.org Fri Dec 20 17:25:45 2002 From: valen at tuatha.org (John P. Looney) Date: Fri, 20 Dec 2002 16:25:45 +0000 Subject: wonderful tool for speeding up nagios Message-ID: <20021220162545.GS9740@jinny.ie> My monitoring box is a low-end raq3, so the massive number of snmpgets that it was doing was cripping the box - it had a constant load of 4 till I reduced the monitoring time to 8 minutes, and the load went back to 1.5 or so. I've just installed the snmp proxy from ;http://freshmeat.net/releases/107146/ And my load is now down to 0.07 :) I'm happy. highly recommended for performance - but I'd be interested to know if people have opinions on it's stability. John ------------------------------------------------------- This SF.NET email is sponsored by: The Best Geek Holiday Gifts! Time is running out! Thinkgeek.com has the coolest gifts for your favorite geek. Let your fingers do the typing. Visit Now. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From dviner at yahoo-inc.com Fri Dec 20 18:09:25 2002 From: dviner at yahoo-inc.com (Dave Viner) Date: Fri, 20 Dec 2002 09:09:25 -0800 Subject: checking memory and cpu consumption of procs In-Reply-To: <53104E20A25CD411B556009027E50636064D5037@pnnemp02.pn.egg.com> References: <53104E20A25CD411B556009027E50636064D5037@pnnemp02.pn.egg.com> Message-ID: Hi Ton, I don't think I currently have access to a Solaris machine, but I'll try to ask some folks I know who do solaris development. I think using poll() or select() or something like that can provide functionality that the spopen()/fgets() strategy can't. In particular, imagine code that uses the spopen()/fgets() model and the popen_timeout_alarm_handler(). The command that is executed doesn't output anything to STDOUT, but spews lots of error messages to STDERR. Since the first fgets() call blocks on STDOUT, the whole plugin just times out and the only thing reported is from the SIGALRM saying the plugin timed out. Using a poll() or select() model instead, the plugin can capture all output from STDOUT _and_ STDERR simultaneously. Then if any timeouts happen, at least there was a chance to see some activity and take some action. Does that make sense? Let me know what you think about this as a model of plugin invocation. Thanks dave -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Voon, Ton Sent: Friday, December 20, 2002 6:08 AM To: 'Dave Viner'; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] checking memory and cpu consumption of procs Dave, I've tried to run your program on Solaris but I'm not having any joy. I managed to add in the poll checks for configure, but when running, it goes into an infinite loop. It seems that the line: n = poll (fdarray, 2, INFTIM); is returning 2, but the condition (fdarray[0].revents & readable) is not true and so the read_size never gets set to 0 and the loop never ends. I don't know if this is a Solaris limitation (uname: SunOS 2.6). Is there any particular reason you wanted to use poll? I think for a simple subcommand, the spopen and fgets used in check_procs is probably sufficient. Ton > -----Original Message----- > From: Dave Viner [SMTP:dviner at yahoo-inc.com] > Sent: Thursday, December 19, 2002 6:00 PM > To: Voon, Ton; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] checking memory and cpu consumption of > procs > > Here's my first stab at a check_cpu.c program. I want to use poll() to > watch both stdout and stderr of the child process, but I can't get it to > compile on both FreeBSD and Linux. FreeBSD just needs: > #include > but Linux needs: > #include > #include > > Unfortunately this means that it requires a new definition in > configure.in. > I'm not quite sure how to handle that, but I'll also look into make those > changes. Can anyone help me with that? > > Other than that, this program works very well (I think). > > thanks > > dave > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Dave Viner > Sent: Wednesday, December 18, 2002 9:38 AM > To: Voon, Ton; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] checking memory and cpu consumption of procs > > > I'll make one for FreeBSD and Linux. I'll post it to the list when I have > it ready. Unforunately, I don't really understand autoconf/automake and > configure.in/makefile.am, so I don't know that I'll be able to help much > there.... > > Thanks ! > > dave > > > -----Original Message----- > From: Voon, Ton [mailto:Ton.Voon at egg.com] > Sent: Wednesday, December 18, 2002 1:33 AM > To: 'Dave Viner'; Voon, Ton; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] checking memory and cpu consumption of procs > > > A check_cpu, based on check_vsz, would be useful. However, it would > require > quite a few non-trivial changes to the configure.in and makefile.am to > pick > up various flags for the ps command to make it portable. If you want to > make > a start, I'd be happy to add in other OSes. > > > -----Original Message----- > > From: Dave Viner [SMTP:dviner at yahoo-inc.com] > > Sent: Tuesday, December 17, 2002 6:23 PM > > To: Voon, Ton; nagios-users at lists.sourceforge.net > > Subject: RE: [Nagios-users] checking memory and cpu consumption of > > procs > > > > Hi, > > > > Thanks for pointing me to check_vsz. This is a really great utility. > > From > > looking at the usage message and the code itself, it looks to me like > this > > monitors virtual memory consumption. Are there any hooks to monitor > %cpu > > consumption ? Perhaps something like > > ps waxco 'vsz %cpu command' > > ? I'm happy to try to add this in if it sounds useful. > > > > dave > > > > -----Original Message----- > > From: Voon, Ton [mailto:Ton.Voon at egg.com] > > Sent: Tuesday, December 17, 2002 1:31 AM > > To: 'Dave Viner'; nagios-users at lists.sourceforge.net > > Subject: RE: [Nagios-users] checking memory and cpu consumption of procs > > > > > > Dave, > > > > Take a look at check_vsz for the virtual size of memory usage on a > process > > level. I've put lot of functionality patches on sourceforge, so you'll > > need > > to apply those. > > > > Ton > > > > > -----Original Message----- > > > From: Dave Viner [SMTP:dviner at yahoo-inc.com] > > > Sent: Tuesday, December 17, 2002 6:56 AM > > > To: nagios-users at lists.sourceforge.net > > > Subject: [Nagios-users] checking memory and cpu consumption of procs > > > > > > Hi, > > > I want to ensure that no process on a machine consumes more than x % > > > of the > > > cpu, and y MB memory. Is there an existing plugin that handles this? > I > > > saw > > > that check_procs will monitor the number of processes on a machine > > > (including ones that match a certain name), and check_load will > examine > > > the > > > machine's overall load averages as reported by uptime. But I can't > seem > > > to > > > find anything that monitors cpu consumption or memory consumption. Is > > > there > > > a plugin for this already? > > > > > > thanks > > > dave > > > > > > > > This private and confidential e-mail has been sent to you by Egg. The Egg group of companies includes Egg Banking plc (registered no. 2999842), Egg Financial Products Ltd (registered no. 3319027) and Egg Investments Ltd (registered no. 3403963) which carries out investment business on behalf of Egg and is regulated by the Financial Services Authority. Registered in England and Wales. Registered offices: 1 Waterhouse Square, 138-142 Holborn, London EC1N 2NA. If you are not the intended recipient of this e-mail and have received it in error, please notify the sender by replying with 'received in error' as the subject and then delete it from your mailbox. ------------------------------------------------------- This SF.NET email is sponsored by: The Best Geek Holiday Gifts! Time is running out! Thinkgeek.com has the coolest gifts for your favorite geek. Let your fingers do the typing. Visit Now. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This SF.NET email is sponsored by: The Best Geek Holiday Gifts! Time is running out! Thinkgeek.com has the coolest gifts for your favorite geek. Let your fingers do the typing. Visit Now. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From dviner at yahoo-inc.com Fri Dec 20 18:35:40 2002 From: dviner at yahoo-inc.com (Dave Viner) Date: Fri, 20 Dec 2002 09:35:40 -0800 Subject: NRPE enhancement Message-ID: Hi, I'd like to suggest an enhancement to NRPE, and if people think this is a good idea, I'll try to make a patch to support my suggestion. Currently the nrpe.cfg file specifies all the commands in this fashion: command[check_disk1]=/usr/local/nagios/libexec/check_disk 80 95 /dev/hda1 As result of this design is that if you want to check something like /dev/hda1 and /dev/hdb1, you need two seperate lines in the nrpe.cfg file. So, I'd like to propose that we extend NRPE to allow for the arguments to a command to be specified by the central Nagios server instead of in the nrpe.cfg. The idea is that the nrpe.cfg would have one command line which maps a key, 'check_disk', to a local executable, '/usr/local/nagios/libexec/check_disk'. The rest would be specified from the central Nagios server in some manner. I think this would great simplify the nrpe.cfg files, and reduce a lot of redundant command definitions that differ only in the arguments they require. Also, it would mean that you'd need to update your nrpe.cfg very rarely. In fact, you'd only need to update it when you add a new plugin. I don't have a concrete suggestion for implementing this yet, because I want to see if the community is interested in this idea first. Has this idea been suggested previously? Is anyone currently interested in the idea or would I be the only consumer of such a service? thanks dave ------------------------------------------------------- This SF.NET email is sponsored by: The Best Geek Holiday Gifts! Time is running out! Thinkgeek.com has the coolest gifts for your favorite geek. Let your fingers do the typing. Visit Now. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From sean.knox at sbcglobal.net Fri Dec 20 18:42:48 2002 From: sean.knox at sbcglobal.net (Sean Knox) Date: Fri, 20 Dec 2002 09:42:48 -0800 Subject: check_by_ssh In-Reply-To: <3E033052.1090409@bea.com> References: <3E033052.1090409@bea.com> Message-ID: <3E035698.3080005@sbcglobal.net> Things to consider: is there a lot of traffic on your network(s)? is DNS resolution setup correctly? are your keys properly setup? the monitored hosts under a lot of load? is your nagios machine under a lot of load? Timothy Moore wrote: > I am using check_by_ssh to check services on monitored hosts. I have > load, users, procs, disk space, etc. turned up for 5 or 6 systems. > > The problem: It consistently fails "Every other time". When I run an > availability report it is beautifully striped! > One system returns "Unknown" status every other time, even though the > message output states OK on all 5 service checks. Another system > returns "Critical" every other time, with a plugin timeout after 30 > sec. for the disk space check. A duplicate system works fine? > Running from the command line works every time. (Note: nrpe > "monitor-agent" models won't work for me) > TWM > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: The Best Geek Holiday Gifts! > Time is running out! Thinkgeek.com has the coolest gifts for > your favorite geek. Let your fingers do the typing. Visit Now. > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: The Best Geek Holiday Gifts! Time is running out! Thinkgeek.com has the coolest gifts for your favorite geek. Let your fingers do the typing. Visit Now. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From natejohn at indiana.edu Fri Dec 20 18:51:32 2002 From: natejohn at indiana.edu (Nate Johnson) Date: Fri, 20 Dec 2002 12:51:32 -0500 Subject: Problem with LDAP authenticated users. In-Reply-To: <20021220143203.GA1323@UnderGrid.net> References: <3E0302A2.1050300@adm.vxu.se> <20021220143203.GA1323@UnderGrid.net> Message-ID: <20021220125132.16184334.natejohn@indiana.edu> Very interresting. I have been using kerberos authentication (mod_auth_kerb) for the cgi frontend, and was getting the same errors for some of my users. It seems to have solved the problem by changing the contact name to the username (rather than a nickname), like you suggested. Thanks, Nate On Fri, 20 Dec 2002 06:32:03 -0800 "Jeremy T. Bouse" wrote: > I've been using LDAP authentication for quite some time now for > the Apache access... You just need to make sure that the contact name > matches the username they authenticate as... If you set the > authorized_for_all_services to * that would allow anyone who is > authenticated view all the services... This does not work for my > situation where I have some logins that only need to be able to see > certain services/hosts and not all... Otherwise setting the various > authorized_for_* variables with the username that matches who they > authenticate as should do... > > Jeremy > > On Fri, Dec 20, 2002 at 12:44:34PM +0100, Tomas Hautala wrote: > > Hi. > > I have a problem with users that have been authenticated to the > > webserver through LDAP. > > > > The webserver authenticates fine but im wondering how to solve the part > > about CGI access? > > I've been looking att the cgi.cfg file and i dont want to use the > > "default_user_name" option to work around the problem. > > > > Do i need to somehow add all my users who i have in the LDAP directory > > to nagios just to get Nagios to respond with the correct username when i > > logon to nagios? I wich to avoid that. > > > > I've tryed setting the "authorized_for_all_services" etc. to "*", > > hopeing it would solve my problem. > > > > Any ideas? > > > > Any help is appreciated. > > > > _______________________ > > Tomas Hautala > > V?xj? University > > > > > > > > > > ------------------------------------------------------- > > This SF.NET email is sponsored by: The Best Geek Holiday Gifts! > > Time is running out! Thinkgeek.com has the coolest gifts for > > your favorite geek. Let your fingers do the typing. Visit Now. > > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > ------------------------------------------------------- > This SF.NET email is sponsored by: The Best Geek Holiday Gifts! > Time is running out! Thinkgeek.com has the coolest gifts for > your favorite geek. Let your fingers do the typing. Visit Now. > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ------------------------------------------------------- This SF.NET email is sponsored by: The Best Geek Holiday Gifts! Time is running out! Thinkgeek.com has the coolest gifts for your favorite geek. Let your fingers do the typing. Visit Now. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From brampling at methanex.com Fri Dec 20 19:51:57 2002 From: brampling at methanex.com (Blair Rampling) Date: Fri, 20 Dec 2002 10:51:57 -0800 Subject: check_by_ssh always returning OK Message-ID: I have a number of things monitored by check_by_ssh. Even when the remote plugin exits with an error code other than 0, nagios shows OK leading me to believe that check_by_ssh is returning error code 0 regardless. I am using 1.3 beta 1 of the plugins and nagios 1.0b6. Why is this happening and how do I fix it? Thanks. Here are two examples of checks that are returning OK when they shouldn't. Note that if I omit the -f the checks will always return UNKNOWN: # 'check_remote_mem' command definition define command{ command_name check_remote_mem command_line $USER1$/check_by_ssh -f -l sysadmin -H $HOSTADDRESS$ -C "~/plugins/check_mem.pl -u -w $ARG1$ -c $ARG2$" } # 'check_remote_ps_proc' command definition define command{ command_name check_remote_ps_proc command_line $USER1$/check_by_ssh -f -l sysadmin -H $HOSTADDRESS$ -C "~/plugins/check_psproc.pl $ARG1$ $ARG2$" } - -- Blair Rampling ------------------------------------------------------- This SF.NET email is sponsored by: The Best Geek Holiday Gifts! Time is running out! Thinkgeek.com has the coolest gifts for your favorite geek. Let your fingers do the typing. Visit Now. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From Ton.Voon at egg.com Fri Dec 20 18:49:06 2002 From: Ton.Voon at egg.com (Voon, Ton) Date: Fri, 20 Dec 2002 17:49:06 -0000 Subject: checking memory and cpu consumption of procs Message-ID: <53104E20A25CD411B556009027E50636064D503A@pnnemp02.pn.egg.com> Copying onto nagiosplug-devel list. Future replies will only be to the nagiosplug-devel list. I would go with "Keep it simple". If a plugin reports a failure, then it is the manual investigation that will show up the stderr failures. I would think a ps failure is fairly catastrophic ;o) Then again, maybe it is just the initial pain of a new model. I can see the model makes more sense for plugins that call 3rd party commands. Maybe Karl would be interested in adding runcmd in utils.c? If your friends are going to look at this on Solaris, here's some of the pain I discovered: strsep is not supported on Solaris. A portable version is: /*************************************************************************** *** * This is a replacement for strsep which is not portable (missing on Solaris). * From Wine code by Fran?ois Gouget */ static char* getToken(char** str, const char* delims) { char* token; if (*str==NULL) { /* No more tokens */ return NULL; } token=*str; while (**str!='\0') { if (strchr(delims,**str)!=NULL) { **str='\0'; (*str)++; return token; } (*str)++; } /* There is no other token */ *str=NULL; return token; } INFTIM is not supported either. Add this in check_cpu.c #ifndef INFTIM #define INFTIM (-1) #endif Here's my diff of configure.in. CPU_COMMAND should be defined within the ps syntax checks, not at the end in your patch. *** configure.in.beta2 Fri Dec 20 17:31:00 2002 --- configure.in Fri Dec 20 17:31:08 2002 *************** *** 260,265 **** --- 260,266 ---- AC_HEADER_SYS_WAIT AC_CHECK_HEADERS(signal.h strings.h string.h syslog.h unistd.h uio.h errno.h regex.h sys/types.h sys/time.h sys/socket.h sys/loadavg.h) AC_CHECK_HEADERS(stdarg.h sys/unistd.h unistd.h ctype.h sys/wait.h stdlib.h) + AC_CHECK_HEADERS(poll.h sys/poll.h asm/poll.h) dnl Checks for typedefs, structures, and compiler characteristics. AC_C_CONST *************** *** 528,533 **** --- 529,536 ---- AC_DEFINE_UNQUOTED(VSZ_FORMAT,"%d %s",[]) AC_DEFINE_UNQUOTED(RSS_COMMAND,"$PATH_TO_PS -Ao 'rss comm'",[]) AC_DEFINE_UNQUOTED(RSS_FORMAT,"%d %s",[]) + AC_DEFINE_UNQUOTED(CPU_COMMAND,"$PATH_TO_PS -Ao 'pcpu comm'",[]) + AC_DEFINE_UNQUOTED(CPU_FORMAT,"%f %s",[]) echo " ps syntax... $PATH_TO_PS -Ao 's comm vsz rss'" elif [ps -Ao 'status comm vsz rss uid user ppid args' 2>/dev/null | egrep -i "^S[TAUES]* +C[OMDNA]+ +V[SIZE]+ +RSS +UID +USER +PPID +[RGSCOMDNA]+" >/dev/null] then Here's how I put includes in plugins/common.h: *** common.h.in.beta2 Fri Dec 20 12:29:51 2002 --- common.h.in Fri Dec 20 12:49:38 2002 *************** *** 66,71 **** --- 66,81 ---- #include #endif + #ifdef HAVE_POLL_H + #include + #endif + #ifdef HAVE_SYS_POLL_H + #include + #endif + #ifdef HAVE_ASM_POLL_H + #include + #endif + /* #ifdef HAVE_GETOPT_H */ #include /* #endif */ Ton > -----Original Message----- > From: Dave Viner [SMTP:dviner at yahoo-inc.com] > Sent: Friday, December 20, 2002 5:09 PM > To: Voon, Ton; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] checking memory and cpu consumption of > procs > > Hi Ton, > I don't think I currently have access to a Solaris machine, but I'll > try to > ask some folks I know who do solaris development. I think using poll() or > select() or something like that can provide functionality that the > spopen()/fgets() strategy can't. In particular, imagine code that uses > the > spopen()/fgets() model and the popen_timeout_alarm_handler(). The command > that is executed doesn't output anything to STDOUT, but spews lots of > error > messages to STDERR. Since the first fgets() call blocks on STDOUT, the > whole plugin just times out and the only thing reported is from the > SIGALRM > saying the plugin timed out. Using a poll() or select() model instead, > the > plugin can capture all output from STDOUT _and_ STDERR simultaneously. > Then > if any timeouts happen, at least there was a chance to see some activity > and > take some action. Does that make sense? Let me know what you think about > this as a model of plugin invocation. > > Thanks > dave > > > > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Voon, Ton > Sent: Friday, December 20, 2002 6:08 AM > To: 'Dave Viner'; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] checking memory and cpu consumption of procs > > > Dave, > > I've tried to run your program on Solaris but I'm not having any joy. I > managed to add in the poll checks for configure, but when running, it goes > into an infinite loop. It seems that the line: > > n = poll (fdarray, 2, INFTIM); > > is returning 2, but the condition > > (fdarray[0].revents & readable) > > is not true and so the read_size never gets set to 0 and the loop never > ends. > > I don't know if this is a Solaris limitation (uname: SunOS 2.6). > > Is there any particular reason you wanted to use poll? I think for a > simple > subcommand, the spopen and fgets used in check_procs is probably > sufficient. > > Ton > > > -----Original Message----- > > From: Dave Viner [SMTP:dviner at yahoo-inc.com] > > Sent: Thursday, December 19, 2002 6:00 PM > > To: Voon, Ton; nagios-users at lists.sourceforge.net > > Subject: RE: [Nagios-users] checking memory and cpu consumption of > > procs > > > > Here's my first stab at a check_cpu.c program. I want to use poll() to > > watch both stdout and stderr of the child process, but I can't get it to > > compile on both FreeBSD and Linux. FreeBSD just needs: > > #include > > but Linux needs: > > #include > > #include > > > > Unfortunately this means that it requires a new definition in > > configure.in. > > I'm not quite sure how to handle that, but I'll also look into make > those > > changes. Can anyone help me with that? > > > > Other than that, this program works very well (I think). > > > > thanks > > > > dave > > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net > > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Dave Viner > > Sent: Wednesday, December 18, 2002 9:38 AM > > To: Voon, Ton; nagios-users at lists.sourceforge.net > > Subject: RE: [Nagios-users] checking memory and cpu consumption of procs > > > > > > I'll make one for FreeBSD and Linux. I'll post it to the list when I > have > > it ready. Unforunately, I don't really understand autoconf/automake and > > configure.in/makefile.am, so I don't know that I'll be able to help much > > there.... > > > > Thanks ! > > > > dave > > > > > > -----Original Message----- > > From: Voon, Ton [mailto:Ton.Voon at egg.com] > > Sent: Wednesday, December 18, 2002 1:33 AM > > To: 'Dave Viner'; Voon, Ton; nagios-users at lists.sourceforge.net > > Subject: RE: [Nagios-users] checking memory and cpu consumption of procs > > > > > > A check_cpu, based on check_vsz, would be useful. However, it would > > require > > quite a few non-trivial changes to the configure.in and makefile.am to > > pick > > up various flags for the ps command to make it portable. If you want to > > make > > a start, I'd be happy to add in other OSes. > > > > > -----Original Message----- > > > From: Dave Viner [SMTP:dviner at yahoo-inc.com] > > > Sent: Tuesday, December 17, 2002 6:23 PM > > > To: Voon, Ton; nagios-users at lists.sourceforge.net > > > Subject: RE: [Nagios-users] checking memory and cpu consumption of > > > procs > > > > > > Hi, > > > > > > Thanks for pointing me to check_vsz. This is a really great utility. > > > From > > > looking at the usage message and the code itself, it looks to me like > > this > > > monitors virtual memory consumption. Are there any hooks to monitor > > %cpu > > > consumption ? Perhaps something like > > > ps waxco 'vsz %cpu command' > > > ? I'm happy to try to add this in if it sounds useful. > > > > > > dave > > > > > > -----Original Message----- > > > From: Voon, Ton [mailto:Ton.Voon at egg.com] > > > Sent: Tuesday, December 17, 2002 1:31 AM > > > To: 'Dave Viner'; nagios-users at lists.sourceforge.net > > > Subject: RE: [Nagios-users] checking memory and cpu consumption of > procs > > > > > > > > > Dave, > > > > > > Take a look at check_vsz for the virtual size of memory usage on a > > process > > > level. I've put lot of functionality patches on sourceforge, so you'll > > > need > > > to apply those. > > > > > > Ton > > > > > > > -----Original Message----- > > > > From: Dave Viner [SMTP:dviner at yahoo-inc.com] > > > > Sent: Tuesday, December 17, 2002 6:56 AM > > > > To: nagios-users at lists.sourceforge.net > > > > Subject: [Nagios-users] checking memory and cpu consumption > of procs > > > > > > > > Hi, > > > > I want to ensure that no process on a machine consumes more > than x % > > > > of the > > > > cpu, and y MB memory. Is there an existing plugin that handles > this? > > I > > > > saw > > > > that check_procs will monitor the number of processes on a machine > > > > (including ones that match a certain name), and check_load will > > examine > > > > the > > > > machine's overall load averages as reported by uptime. But I can't > > seem > > > > to > > > > find anything that monitors cpu consumption or memory consumption. > Is > > > > there > > > > a plugin for this already? > > > > > > > > thanks > > > > dave > This private and confidential e-mail has been sent to you by Egg. The Egg group of companies includes Egg Banking plc (registered no. 2999842), Egg Financial Products Ltd (registered no. 3319027) and Egg Investments Ltd (registered no. 3403963) which carries out investment business on behalf of Egg and is regulated by the Financial Services Authority. Registered in England and Wales. Registered offices: 1 Waterhouse Square, 138-142 Holborn, London EC1N 2NA. If you are not the intended recipient of this e-mail and have received it in error, please notify the sender by replying with 'received in error' as the subject and then delete it from your mailbox. ------------------------------------------------------- This SF.NET email is sponsored by: The Best Geek Holiday Gifts! Time is running out! Thinkgeek.com has the coolest gifts for your favorite geek. Let your fingers do the typing. Visit Now. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From Jeremy.Bouse at UnderGrid.net Fri Dec 20 20:03:01 2002 From: Jeremy.Bouse at UnderGrid.net (Jeremy T. Bouse) Date: Fri, 20 Dec 2002 11:03:01 -0800 Subject: Problem with LDAP authenticated users. In-Reply-To: <20021220125132.16184334.natejohn@indiana.edu> References: <3E0302A2.1050300@adm.vxu.se> <20021220143203.GA1323@UnderGrid.net> <20021220125132.16184334.natejohn@indiana.edu> Message-ID: <20021220190301.GA5542@UnderGrid.net> Yeah when I looked into how it used the authentication since Apache does the authentication not Nagios (or formerly Netsaint) so I just made sure that the usernames used for contacts matched what they logged in as... This was trivial as all accounts on my network are in LDAP anyway and not using the htpasswd user file made things all that much easier... I think the alternative would be to include authentication into Nagios but I think that is unncessary if it can be handled through other means... I also run it over HTTPS rather than HTTP... Jeremy On Fri, Dec 20, 2002 at 12:51:32PM -0500, Nate Johnson wrote: > Very interresting. I have been using kerberos authentication > (mod_auth_kerb) for the cgi frontend, and was getting the same errors for > some of my users. It seems to have solved the problem by changing the > contact name to the username (rather than a nickname), like you suggested. > > Thanks, > Nate > ------------------------------------------------------- This SF.NET email is sponsored by: The Best Geek Holiday Gifts! Time is running out! Thinkgeek.com has the coolest gifts for your favorite geek. Let your fingers do the typing. Visit Now. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From jasondixon at myrealbox.com Fri Dec 20 20:11:00 2002 From: jasondixon at myrealbox.com (Jason Dixon) Date: 20 Dec 2002 14:11:00 -0500 Subject: check_by_ssh always returning OK In-Reply-To: References: Message-ID: <1040411462.1556.17.camel@lappy.fuzzypenguin.net> If I could, I'd like to suggest a few plugins I recently completed and uploaded as patches to the sourceforge site. One of them is OpenBSD/PF specific, so I won't mention it here. The other two are check_cpu and check_df. Both connect via ssh, but the check is actually performed on the output, not the success/failure of the ssh connection. Check_cpu, for example, gathers/checks cpu load averages. Check_df gathers df output and checks the free percentage. The advantage over some of the other plugins is that they don't require monitoring facilities *on* the target machine. Rather, they use the native 'w' and 'df' utilities. Obviously, this is only relevant to *NIX boxen. Hope these are of some remote use to others, as they have been to me. :) -J. On Fri, 2002-12-20 at 13:51, Blair Rampling wrote: > I have a number of things monitored by check_by_ssh. Even when the remote plugin exits with an error code other than 0, nagios shows OK leading me to believe that check_by_ssh is returning error code 0 regardless. I am using 1.3 beta 1 of the plugins and nagios 1.0b6. Why is this happening and how do I fix it? Thanks. > > Here are two examples of checks that are returning OK when they shouldn't. Note that if I omit the -f the checks will always return UNKNOWN: > > # 'check_remote_mem' command definition > define command{ > command_name check_remote_mem > command_line $USER1$/check_by_ssh -f -l sysadmin -H $HOSTADDRESS$ -C "~/plugins/check_mem.pl -u -w $ARG1$ -c $ARG2$" > } > > # 'check_remote_ps_proc' command definition > define command{ > command_name check_remote_ps_proc > command_line $USER1$/check_by_ssh -f -l sysadmin -H $HOSTADDRESS$ -C "~/plugins/check_psproc.pl $ARG1$ $ARG2$" > } > > - -- > Blair Rampling > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: The Best Geek Holiday Gifts! > Time is running out! Thinkgeek.com has the coolest gifts for > your favorite geek. Let your fingers do the typing. Visit Now. > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This SF.NET email is sponsored by: The Best Geek Holiday Gifts! Time is running out! Thinkgeek.com has the coolest gifts for your favorite geek. Let your fingers do the typing. Visit Now. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From benny at bennyvision.com Fri Dec 20 20:50:56 2002 From: benny at bennyvision.com (C. Bensend) Date: Fri, 20 Dec 2002 13:50:56 -0600 Subject: Warning: Monitoring process may not be running In-Reply-To: <000301c2a833$cd4561f0$c8040201@PAIE250>; from pamirian@calculus.ca on Fri, Dec 20, 2002 at 09:26:35AM -0500 References: <000301c2a833$cd4561f0$c8040201@PAIE250> Message-ID: <20021220135056.A19872@bennyvision.com> On Fri, Dec 20, 2002 at 09:26:35AM -0500, Patrick Amirian wrote: > I'm having this warning message in my nagios and I don't know how to fix > it. > > Warning: Monitoring process may not be running! Hey folks, I'm having the exact same problem as Patrick on one of my OpenBSD boxes... Running it from the command line as the nagios user works fine. I did some grepping in the source, but I can't seem to find where the exact 'ps' command is. I'd like to take a look at the flags it's using, so I can further track this down. Can someone tell me what flags it's passing to 'ps'? Thanks! Benny ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "Discharge of a nuclear weapon shall be deemed a warlike act, even if accidental." -- My homeowners insurance policy ------------------------------------------------------- This SF.NET email is sponsored by: The Best Geek Holiday Gifts! Time is running out! Thinkgeek.com has the coolest gifts for your favorite geek. Let your fingers do the typing. Visit Now. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From eric.leroy at proservia.fr Fri Dec 20 09:33:26 2002 From: eric.leroy at proservia.fr (Eric LEROY) Date: Fri, 20 Dec 2002 09:33:26 +0100 Subject: No notification with passive checks Message-ID: <3D70F1B3E51A6541B58FD122DD12873804C7F7@srv442.proservia.lan> Hy I need to minitoring a client with the nsca addon . I created a service, a notification with windows popup (smbclient -M "machinenname") and i send the good result with ssend_ncsa. The result submit become a alert , the icon is changed from grren to red and red to grren , so it'sok but i had no notification !!! Why My service define service { host_name xxxx service_description xxxxxx normal_check_interval 60 max_check_attempts 3 retry_check_interval 1 check_period 24x7 notification_interval 0 notification_period 24x7 check_command print_status contact_groups station-admin notification_options c,r notifications_enabled 1 stalking_options o,c passive_checks_enabled 1 } define contact { contact_name StationAdmin1 alias StationAdministration1 host_notification_period workhours host_notification_options d,r,u host_notification_commands host-popup-nomade443 service_notification_period workhours service_notification_options c,r,w service_notification_commands popup-nomade443 , notify-by-email email supervis at localhost register 1 } ------------------------------------------------------- This SF.NET email is sponsored by: Geek Gift Procrastinating? Get the perfect geek gift now! Before the Holidays pass you by. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From drew.cullis at gwl.com Fri Dec 20 21:24:41 2002 From: drew.cullis at gwl.com (Drew Cullis) Date: Fri, 20 Dec 2002 13:24:41 -0700 Subject: nagios.log file entries Message-ID: <3E037C89.726F6B7F@gwl.com> Hello; Can anyone tell me what the string of numbers on the left side of a nagios.log entry is? Is there a rhyme or reason to them? Thanks.... -- Drew Cullis ITS UNIX Sys Admin Phone: 303-737-6506 Email: drew.cullis at gwl.com ------------------------------------------------------- This SF.NET email is sponsored by: The Best Geek Holiday Gifts! Time is running out! Thinkgeek.com has the coolest gifts for your favorite geek. Let your fingers do the typing. Visit Now. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From sripley at chiaro.com Fri Dec 20 21:47:40 2002 From: sripley at chiaro.com (Scott Ripley) Date: Fri, 20 Dec 2002 14:47:40 -0600 Subject: nagios.log file entries Message-ID: <668C5EBD23862F459CF63DAFFCA6268C023ABE@rchst006.chiaro.com> It is the UNIX time_t value. The variable time_t is a standard data type used to store the number of seconds since the standard UNIX Epoch, 00:00:00 January 1, 1970 UTC. Scott. -----Original Message----- From: Drew Cullis [mailto:drew.cullis at gwl.com] Sent: Friday, December 20, 2002 2:25 PM To: Nagios Subject: [Nagios-users] nagios.log file entries Hello; Can anyone tell me what the string of numbers on the left side of a nagios.log entry is? Is there a rhyme or reason to them? Thanks.... -- Drew Cullis ITS UNIX Sys Admin Phone: 303-737-6506 Email: drew.cullis at gwl.com ------------------------------------------------------- This SF.NET email is sponsored by: The Best Geek Holiday Gifts! Time is running out! Thinkgeek.com has the coolest gifts for your favorite geek. Let your fingers do the typing. Visit Now. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users -------------- next part -------------- ----------------------------------------- (on rchss001) This e-mail and any files transmitted with it are the property of Chiaro Networks, Ltd., and may contain confidential and privileged material for the sole use of the intended recipient(s) to whom this e-mail is addressed. If you are not one of the named recipient(s), or otherwise have reason to believe that you have received this message in error, please notify the sender and delete all copies from your system. Any other use, retention, dissemination, forwarding, printing or copying of this e-mail is strictly prohibited. --------------------------------------------------------- From natejohn at indiana.edu Fri Dec 20 22:00:43 2002 From: natejohn at indiana.edu (Nate Johnson) Date: Fri, 20 Dec 2002 16:00:43 -0500 Subject: nagios.log file entries In-Reply-To: <3E037C89.726F6B7F@gwl.com> References: <3E037C89.726F6B7F@gwl.com> Message-ID: <20021220160043.3cca6dfb.natejohn@indiana.edu> I believe that is UNIX time (the number of seconds that have passed since the great epoch - Jan, 1st, 1970). cheers, Nate On Fri, 20 Dec 2002 13:24:41 -0700 Drew Cullis wrote: > Hello; > Can anyone tell me what the string of numbers on the left side of a > nagios.log entry is? Is there a rhyme or reason to them? > > Thanks.... > -- > Drew Cullis > ITS UNIX Sys Admin > Phone: 303-737-6506 > Email: drew.cullis at gwl.com > > > ------------------------------------------------------- > This SF.NET email is sponsored by: The Best Geek Holiday Gifts! > Time is running out! Thinkgeek.com has the coolest gifts for > your favorite geek. Let your fingers do the typing. Visit Now. > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ------------------------------------------------------- This SF.NET email is sponsored by: The Best Geek Holiday Gifts! Time is running out! Thinkgeek.com has the coolest gifts for your favorite geek. Let your fingers do the typing. Visit Now. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From rue at thinlayer.co.uk Fri Dec 20 22:23:00 2002 From: rue at thinlayer.co.uk (Rue Turner) Date: 20 Dec 2002 21:23:00 +0000 Subject: Unique (?) situation (multiple host NICs/services) - HARD In-Reply-To: References: Message-ID: <1040419379.1115.10.camel@servalon> On Fri, 2002-12-20 at 07:53, Greg Vickers wrote: > We have the following situation: > I currently monitor each NIC on each Host as a separate host and perform > all service checks of Host A/B on each NIC. Redundant for most checks > (disk space, uptime etc) except for SERVICE_x as we need to know that > SERVICE_x on each host is serving each subnet. No worries. This is a really common scenario and I don't know if N can actualy deal with multi-niced boxes any more friendly than it does. I looked into it and eventually gave up. A technique you might consider is using service dependencies but this could get messy to maintain. Another would be to use the check_cluster plugin to tie the services accross the nics on each box but again this means increased maintenance. AFAIK there isn't a solution out-of-the-box. If there is I'd be as excited as you! > Since I'm in Xmas mode, i'm going home to drink and think about > host/service dependancies over the weekend and how I might be able to > set them up so that I don't get circular dependancies etc. Beer is good. CORRECTION: Beer is god - I think that was just a tpo though ;) > p.s. Why do these questions always seem to come to me on Friday > afternoon??? :) Vickers' Law of Productivity? r u e t u r n e r ? t ? h ? i ? n ? l ? a ? y ? e ? r ? -- Success is something I will dress for when I get there, and not until. ------------------------------------------------------- This SF.NET email is sponsored by: The Best Geek Holiday Gifts! Time is running out! Thinkgeek.com has the coolest gifts for your favorite geek. Let your fingers do the typing. Visit Now. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From eric at gatewayconnections.com Fri Dec 20 23:07:57 2002 From: eric at gatewayconnections.com (Eric Gregory) Date: Fri, 20 Dec 2002 16:07:57 -0600 Subject: Fw: CGI Issue Message-ID: <012501c2a874$40a58fe0$0a00a8c0@Eric> Last week I posted about a problem I was having with Authentication through CGI's, basically I get authenticated through HTTP but I have no authority through the CGI's, cgi.cfg seems to be correctly configured but no luck. I think I've found another issue that may be the root of the authentication issue. when I build Nagios it seems as if not all of the CGI's are building. most are fine but I know for sure there should be a statusmap.cgi, histogram.cgi, and statusmap.cgi, however they're not creating. After Running make all and going to the cgi directory I have other scripts such as status.cgi, outages.cgi etc.... based on the source files in the cgi source directory am I correct in assuming that I should also have at least the histogram.cgi, and statusmap.cgi as well as an auth.cgi and more? If I'm correct does anyone know why these cgi's might not be building properly? Thanks Eric -------------- next part -------------- An HTML attachment was scrubbed... URL: From natejohn at indiana.edu Fri Dec 20 23:07:35 2002 From: natejohn at indiana.edu (Nate Johnson) Date: Fri, 20 Dec 2002 17:07:35 -0500 Subject: controlling tty In-Reply-To: <1040411462.1556.17.camel@lappy.fuzzypenguin.net> References: <1040411462.1556.17.camel@lappy.fuzzypenguin.net> Message-ID: <20021220170735.0661b962.natejohn@indiana.edu> When doing remote checks through check_by_ssh, they work from the command line, but from the cgi interface, they return a warning status with the message: warning: You have no controlling tty. Cannot read confirmation. Anyone know what I might be doing wrong? Any advice would be great. Thanks, Nate ------------------------------------------------------- This SF.NET email is sponsored by: The Best Geek Holiday Gifts! Time is running out! Thinkgeek.com has the coolest gifts for your favorite geek. Let your fingers do the typing. Visit Now. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From mmcclure at pneservices.com Fri Dec 20 23:38:06 2002 From: mmcclure at pneservices.com (Mike McClure) Date: Fri, 20 Dec 2002 16:38:06 -0600 (CST) Subject: Fw: CGI Issue In-Reply-To: <012501c2a874$40a58fe0$0a00a8c0@Eric> References: <012501c2a874$40a58fe0$0a00a8c0@Eric> Message-ID: <3425.192.168.1.9.1040423886.squirrel@xyzzy.homeip.net> Hi Eric, My psychic abilities are currently diminished due to solar flare activity. Please provide the following: - Nagios version - Operating system and version - Platform (Sparc, i386, etc) - 'configure' output - 'make' output -- Mike McClure, CCIE # 5125, CISSP # 30232 PNE Services, Inc. - http://www.pneservices.com mmcclure at pneservices.com mobile: 913-636-5590 > > > > > Last week I posted about a problem I was having with Authentication through CGI's, > basically I get authenticated through HTTP but I have no authority through the > CGI's, cgi.cfg seems to be correctly configured but no luck. > > I think I've found another issue that may be the root of the authentication issue. > > when I build Nagios it seems as if not all of the CGI's are building. most are fine > but I know for sure there should be a statusmap.cgi, histogram.cgi, and > statusmap.cgi, however they're not creating. > > After Running make all and going to the cgi directory I have other scripts such as > status.cgi, outages.cgi etc.... > > based on the source files in the cgi source directory am I correct in assuming that > I should also have at least the histogram.cgi, and statusmap.cgi as well as an > auth.cgi and more? > > If I'm correct does anyone know why these cgi's might not be building properly? > > Thanks > Eric ------------------------------------------------------- This SF.NET email is sponsored by: The Best Geek Holiday Gifts! Time is running out! Thinkgeek.com has the coolest gifts for your favorite geek. Let your fingers do the typing. Visit Now. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From mmcclure at pneservices.com Fri Dec 20 23:43:10 2002 From: mmcclure at pneservices.com (Mike McClure) Date: Fri, 20 Dec 2002 16:43:10 -0600 (CST) Subject: controlling tty In-Reply-To: <20021220170735.0661b962.natejohn@indiana.edu> References: <1040411462.1556.17.camel@lappy.fuzz ypenguin.net> <20021220170735.0661b962.natejohn@indiana.edu> Message-ID: <3471.192.168.1.9.1040424190.squirrel@xyzzy.homeip.net> What operating systems are you using? What version of the plugins are you using? Are you using the commercial version of SSH, or OpenSSH? SSHv2 or SSHv1? How are you performing authentication? .shosts? RSA/DSA keys? > When doing remote checks through check_by_ssh, they work from the command > line, but from the cgi interface, they return a warning status with the > message: > > warning: You have no controlling tty. Cannot read confirmation. > > Anyone know what I might be doing wrong? Any advice would be great. > > Thanks, > Nate > > > ------------------------------------------------------- > This SF.NET email is sponsored by: The Best Geek Holiday Gifts! > Time is running out! Thinkgeek.com has the coolest gifts for > your favorite geek. Let your fingers do the typing. Visit Now. > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > -- Mike McClure, CCIE # 5125, CISSP # 30232 PNE Services, Inc. - http://www.pneservices.com mmcclure at pneservices.com mobile: 913-636-5590 ------------------------------------------------------- This SF.NET email is sponsored by: The Best Geek Holiday Gifts! Time is running out! Thinkgeek.com has the coolest gifts for your favorite geek. Let your fingers do the typing. Visit Now. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From natejohn at indiana.edu Fri Dec 20 23:57:06 2002 From: natejohn at indiana.edu (Nate Johnson) Date: Fri, 20 Dec 2002 17:57:06 -0500 Subject: controlling tty In-Reply-To: <3471.192.168.1.9.1040424190.squirrel@xyzzy.homeip.net> References: <1040411462.1556.17.camel@lappy.fuzz ypenguin.net> <20021220170735.0661b962.natejohn@indiana.edu> <3471.192.168.1.9.1040424190.squirrel@xyzzy.homeip.net> Message-ID: <20021220175706.3e04a365.natejohn@indiana.edu> Please see below for answers to each of your questions. Thanks so much for your time so far. ~nate On Fri, 20 Dec 2002 16:43:10 -0600 (CST) "Mike McClure" wrote: > What operating systems are you using? Redhat 7.3 on the nagios monitorring host several other OS's on hosts being monitorred (but the situation is the same on all) > What version of the plugins are you using? 1.3-beta1 > Are you using the commercial version of SSH, or OpenSSH? ssh.com's ssh (although it is the non-commercial version). For the purposes of your question, I am using the commercial ssh. > SSHv2 or SSHv1? sshv2 > How are you performing authentication? .shosts? RSA/DSA keys? I am using a keypair with a null passphrase. > > When doing remote checks through check_by_ssh, they work from the command > > line, but from the cgi interface, they return a warning status with the > > message: > > > > warning: You have no controlling tty. Cannot read confirmation. > > > > Anyone know what I might be doing wrong? Any advice would be great. > > > > Thanks, > > Nate > > > > > > ------------------------------------------------------- > > This SF.NET email is sponsored by: The Best Geek Holiday Gifts! > > Time is running out! Thinkgeek.com has the coolest gifts for > > your favorite geek. Let your fingers do the typing. Visit Now. > > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > -- > Mike McClure, CCIE # 5125, CISSP # 30232 > PNE Services, Inc. - http://www.pneservices.com > mmcclure at pneservices.com > mobile: 913-636-5590 > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: The Best Geek Holiday Gifts! > Time is running out! Thinkgeek.com has the coolest gifts for > your favorite geek. Let your fingers do the typing. Visit Now. > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ------------------------------------------------------- This SF.NET email is sponsored by: The Best Geek Holiday Gifts! Time is running out! Thinkgeek.com has the coolest gifts for your favorite geek. Let your fingers do the typing. Visit Now. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From andre at directsynergy.com Sat Dec 21 00:41:42 2002 From: andre at directsynergy.com (Andre Philippi) Date: Fri, 20 Dec 2002 15:41:42 -0800 Subject: Help with check_nrpe arguments, please... Message-ID: <5.2.0.9.0.20021220152554.00bc58f8@smtp.directsynergy.com> Hi, My Nagios and the nagios-plugins are working just fine, but I keep getting : "Incorrect command line arguments supplied" (on the web interface status information) I did RTFM, searched the list archives, but found no solution to the problem... Could someone help me, please? Below are the relevant parts of the relevant files... Thank you in advance, Andre Philippi -- checkcommands.cfg on Nagios host: ------------------------------------------------------ # 'check_nrpe' command definition define command{ command_name check_nrpe command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ } services.cfg on Nagios host: ----------------------------------------- # Service definition define service{ use generic-service ; Name of service template to use host_name horse2 service_descriptio /dev/sda3 Free Space is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups http-admins notification_interval 120 notification_period 24x7 notification_options w,u,c,r check_command check_nrpe!check_disk2 } nrpe.cfg on remote host: ------------------------------------ command[check_disk2]=/usr/local/nagios/libexec/check_disk 80 95 /dev/sda3 -- ------------------------------------------------------- This SF.NET email is sponsored by: The Best Geek Holiday Gifts! Time is running out! Thinkgeek.com has the coolest gifts for your favorite geek. Let your fingers do the typing. Visit Now. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From lj at mandala-designs.com Sat Dec 21 02:09:51 2002 From: lj at mandala-designs.com (ljacobs ) Date: Fri, 20 Dec 2002 20:09:51 -0500 Subject: getting images to work correctly Message-ID: <200212202009.AA12255850@mandala-designs.com> With cgi.cfg set for hostextinfo: hostextinfo[linuxserver]=;redhat.gif;redhat.jpg;redhat.gd2;redhat.png;100,50;3.5,0.0,-1.5; and with a default instal, e.g., physical_html_path=/usr/local/nagios/share and the actual directory, /usr/local/nagios/share/images/logos is my logo directory, what can I do to actually display the correct logos with the correct servers? Thanks. ________________________________________________________________ Sent via the WebMail system at mandala-designs.com ------------------------------------------------------- This SF.NET email is sponsored by: The Best Geek Holiday Gifts! Time is running out! Thinkgeek.com has the coolest gifts for your favorite geek. Let your fingers do the typing. Visit Now. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From mmcclure at pneservices.com Sat Dec 21 02:20:08 2002 From: mmcclure at pneservices.com (Mike McClure) Date: Fri, 20 Dec 2002 19:20:08 -0600 (CST) Subject: controlling tty In-Reply-To: <20021220175706.3e04a365.natejohn@indiana.edu> References: <1040411462.1556.17.camel@lappy.fuzz ypenguin.net><20021220170735.0661b962.natejohn@indiana.edu><3471.192 .168.1.9.1040424190.squirrel@xyzzy.homeip.net> <20021220175706.3e04a365.natejohn@indiana.edu> Message-ID: <3870.192.168.1.9.1040433608.squirrel@xyzzy.homeip.net> I think the problem is that you don't have a host key for each of the remote hosts on your monitoring host, available to the user under which you run the plugin. You'll need to get them, either manually by editing the "known_hosts" file, or by ssh'ing as the nagios user to each host and accepting the host key. Take a look at http://www.snailbook.com/faq/trusted-host-howto.auto.html for more details. > Please see below for answers to each of your questions. Thanks so much > for your time so far. > > ~nate > > On Fri, 20 Dec 2002 16:43:10 -0600 (CST) "Mike McClure" > wrote: > >> What operating systems are you using? > > Redhat 7.3 on the nagios monitorring host > several other OS's on hosts being monitorred (but the situation is the same on all) > >> What version of the plugins are you using? > > 1.3-beta1 > >> Are you using the commercial version of SSH, or OpenSSH? > > ssh.com's ssh (although it is the non-commercial version). For the > purposes of your question, I am using the commercial ssh. > >> SSHv2 or SSHv1? > > sshv2 > >> How are you performing authentication? .shosts? RSA/DSA keys? > > I am using a keypair with a null passphrase. > >> > When doing remote checks through check_by_ssh, they work from the command >> > line, but from the cgi interface, they return a warning status with the >> > message: >> > >> > warning: You have no controlling tty. Cannot read confirmation. >> > >> > Anyone know what I might be doing wrong? Any advice would be great. >> > >> > Thanks, >> > Nate >> > >> > >> > ------------------------------------------------------- >> > This SF.NET email is sponsored by: The Best Geek Holiday Gifts! >> > Time is running out! Thinkgeek.com has the coolest gifts for >> > your favorite geek. Let your fingers do the typing. Visit Now. >> > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ >> > _______________________________________________ >> > Nagios-users mailing list >> > Nagios-users at lists.sourceforge.net >> > https://lists.sourceforge.net/lists/listinfo/nagios-users >> > >> > >> >> >> -- >> Mike McClure, CCIE # 5125, CISSP # 30232 >> PNE Services, Inc. - http://www.pneservices.com >> mmcclure at pneservices.com >> mobile: 913-636-5590 >> >> >> >> ------------------------------------------------------- >> This SF.NET email is sponsored by: The Best Geek Holiday Gifts! >> Time is running out! Thinkgeek.com has the coolest gifts for >> your favorite geek. Let your fingers do the typing. Visit Now. >> T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> >> > > > ------------------------------------------------------- > This SF.NET email is sponsored by: The Best Geek Holiday Gifts! > Time is running out! Thinkgeek.com has the coolest gifts for > your favorite geek. Let your fingers do the typing. Visit Now. > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > -- Mike McClure, CCIE # 5125, CISSP # 30232 PNE Services, Inc. - http://www.pneservices.com mmcclure at pneservices.com mobile: 913-636-5590 ------------------------------------------------------- This SF.NET email is sponsored by: The Best Geek Holiday Gifts! Time is running out! Thinkgeek.com has the coolest gifts for your favorite geek. Let your fingers do the typing. Visit Now. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From natejohn at indiana.edu Sat Dec 21 03:14:40 2002 From: natejohn at indiana.edu (Nate Johnson) Date: Fri, 20 Dec 2002 21:14:40 -0500 Subject: controlling tty In-Reply-To: <3870.192.168.1.9.1040433608.squirrel@xyzzy.homeip.net> References: <3870.192.168.1.9.1040433608.squirrel@xyzzy.homeip.net> Message-ID: Maybe I wasn't clear enough about this in asking my question, but when ssh'ing to each host *from the command line* and not *from the cgi frontend* the checks succeed. It is when nagios is doing the regularly scheduled checks through the check_by_ssh plugin that the warning message is returned to the cgi frontend. The checks would have failed when executing them manually from the command line if the hostkey of the remote machine wasn't already stored in ~/.ssh/known_hosts. The only reference to this that I was able to find on the web was in the netsaint list archives on geocrawler. Someone asked the same question that I did. Unfortunately, the only answer posted to the list was someone who noted that there was a bug in redhat's /bin/login (from an earlier version of redhat than than the one I'm using). They had suggested update the linux-util rpm. Anyway, I don't think that's the issue here, and reading this e-mail list, it is obvious that others are successfully using the check_by_ssh plugin. thanks for the help so far, Nate On Friday, Dec 20, 2002, at 20:20 America/Indianapolis, Mike McClure wrote: > I think the problem is that you don't have a host key for each of the > remote hosts > on your monitoring host, available to the user under which you run the > plugin. > > You'll need to get them, either manually by editing the "known_hosts" > file, or by > ssh'ing as the nagios user to each host and accepting the host key. > > Take a look at > http://www.snailbook.com/faq/trusted-host-howto.auto.html for more > details. > >> Please see below for answers to each of your questions. Thanks so >> much >> for your time so far. >> >> ~nate >> >> On Fri, 20 Dec 2002 16:43:10 -0600 (CST) "Mike McClure" >> >> wrote: >> >>> What operating systems are you using? >> >> Redhat 7.3 on the nagios monitorring host >> several other OS's on hosts being monitorred (but the situation is >> the same on all) >> >>> What version of the plugins are you using? >> >> 1.3-beta1 >> >>> Are you using the commercial version of SSH, or OpenSSH? >> >> ssh.com's ssh (although it is the non-commercial version). For the >> purposes of your question, I am using the commercial ssh. >> >>> SSHv2 or SSHv1? >> >> sshv2 >> >>> How are you performing authentication? .shosts? RSA/DSA keys? >> >> I am using a keypair with a null passphrase. >> >>>> When doing remote checks through check_by_ssh, they work from the >>>> command >>>> line, but from the cgi interface, they return a warning status with >>>> the >>>> message: >>>> >>>> warning: You have no controlling tty. Cannot read confirmation. >>>> >>>> Anyone know what I might be doing wrong? Any advice would be great. >>>> >>>> Thanks, >>>> Nate >>>> >>>> >>>> ------------------------------------------------------- >>>> This SF.NET email is sponsored by: The Best Geek Holiday Gifts! >>>> Time is running out! Thinkgeek.com has the coolest gifts for >>>> your favorite geek. Let your fingers do the typing. Visit Now. >>>> T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ >>>> _______________________________________________ >>>> Nagios-users mailing list >>>> Nagios-users at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/nagios-users >>>> >>>> >>> >>> >>> -- >>> Mike McClure, CCIE # 5125, CISSP # 30232 >>> PNE Services, Inc. - http://www.pneservices.com >>> mmcclure at pneservices.com >>> mobile: 913-636-5590 >>> >>> >>> >>> ------------------------------------------------------- >>> This SF.NET email is sponsored by: The Best Geek Holiday Gifts! >>> Time is running out! Thinkgeek.com has the coolest gifts for >>> your favorite geek. Let your fingers do the typing. Visit Now. >>> T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ >>> _______________________________________________ >>> Nagios-users mailing list >>> Nagios-users at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/nagios-users >>> >>> >> >> >> ------------------------------------------------------- >> This SF.NET email is sponsored by: The Best Geek Holiday Gifts! >> Time is running out! Thinkgeek.com has the coolest gifts for >> your favorite geek. Let your fingers do the typing. Visit Now. >> T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> >> > > > -- > Mike McClure, CCIE # 5125, CISSP # 30232 > PNE Services, Inc. - http://www.pneservices.com > mmcclure at pneservices.com > mobile: 913-636-5590 > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: The Best Geek Holiday Gifts! > Time is running out! Thinkgeek.com has the coolest gifts for > your favorite geek. Let your fingers do the typing. Visit Now. > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ------------------------------------------------------- This SF.NET email is sponsored by: The Best Geek Holiday Gifts! Time is running out! Thinkgeek.com has the coolest gifts for your favorite geek. Let your fingers do the typing. Visit Now. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From mmcclure at pneservices.com Sat Dec 21 03:39:16 2002 From: mmcclure at pneservices.com (Mike McClure) Date: Fri, 20 Dec 2002 20:39:16 -0600 (CST) Subject: controlling tty In-Reply-To: References: <3870.192.168.1.9.1040433608.squirrel@xyzzy.homeip.net> Message-ID: <4455.192.168.1.9.1040438356.squirrel@xyzzy.homeip.net> > Maybe I wasn't clear enough about this in asking my question, but when > ssh'ing to each host *from the command line* and not *from the cgi > frontend* the checks succeed. It is when nagios is doing the regularly > scheduled checks through the check_by_ssh plugin that the warning > message is returned to the cgi frontend. The checks would have failed > when executing them manually from the command line if the hostkey of > the remote machine wasn't already stored in ~/.ssh/known_hosts. When you execute the checks from a shell, are you doing it as the nagios user, or as another user? When the nagios daemon executes them, it does so as the nagios user (usually "nagios"). Try "su - nagios", then ssh'ing to the host. I haven't ever tried ssh.com's version of ssh, but with OpenSSH, if it doesn't have the host's key in known_hosts, it asks you if you want to add it, then it doesn't ever ask again (unless it is changed). > > The only reference to this that I was able to find on the web was in > the netsaint list archives on geocrawler. Someone asked the same > question that I did. Unfortunately, the only answer posted to the list > was someone who noted that there was a bug in redhat's /bin/login (from > an earlier version of redhat than than the one I'm using). They had > suggested update the linux-util rpm. Anyway, I don't think that's the > issue here, and reading this e-mail list, it is obvious that others are > successfully using the check_by_ssh plugin. > > thanks for the help so far, > Nate > > On Friday, Dec 20, 2002, at 20:20 America/Indianapolis, Mike McClure > wrote: > >> I think the problem is that you don't have a host key for each of the >> remote hosts >> on your monitoring host, available to the user under which you run the >> plugin. >> >> You'll need to get them, either manually by editing the "known_hosts" >> file, or by >> ssh'ing as the nagios user to each host and accepting the host key. >> >> Take a look at >> http://www.snailbook.com/faq/trusted-host-howto.auto.html for more >> details. >> >>> Please see below for answers to each of your questions. Thanks so >>> much >>> for your time so far. >>> >>> ~nate >>> >>> On Fri, 20 Dec 2002 16:43:10 -0600 (CST) "Mike McClure" >>> >>> wrote: >>> >>>> What operating systems are you using? >>> >>> Redhat 7.3 on the nagios monitorring host >>> several other OS's on hosts being monitorred (but the situation is >>> the same on all) >>> >>>> What version of the plugins are you using? >>> >>> 1.3-beta1 >>> >>>> Are you using the commercial version of SSH, or OpenSSH? >>> >>> ssh.com's ssh (although it is the non-commercial version). For the >>> purposes of your question, I am using the commercial ssh. >>> >>>> SSHv2 or SSHv1? >>> >>> sshv2 >>> >>>> How are you performing authentication? .shosts? RSA/DSA keys? >>> >>> I am using a keypair with a null passphrase. >>> >>>>> When doing remote checks through check_by_ssh, they work from the >>>>> command >>>>> line, but from the cgi interface, they return a warning status with >>>>> the >>>>> message: >>>>> >>>>> warning: You have no controlling tty. Cannot read confirmation. >>>>> >>>>> Anyone know what I might be doing wrong? Any advice would be great. >>>>> >>>>> Thanks, >>>>> Nate >>>>> >>>>> >>>>> ------------------------------------------------------- >>>>> This SF.NET email is sponsored by: The Best Geek Holiday Gifts! >>>>> Time is running out! Thinkgeek.com has the coolest gifts for >>>>> your favorite geek. Let your fingers do the typing. Visit Now. >>>>> T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ >>>>> _______________________________________________ >>>>> Nagios-users mailing list >>>>> Nagios-users at lists.sourceforge.net >>>>> https://lists.sourceforge.net/lists/listinfo/nagios-users >>>>> >>>>> >>>> >>>> >>>> -- >>>> Mike McClure, CCIE # 5125, CISSP # 30232 >>>> PNE Services, Inc. - http://www.pneservices.com >>>> mmcclure at pneservices.com >>>> mobile: 913-636-5590 >>>> >>>> >>>> >>>> ------------------------------------------------------- >>>> This SF.NET email is sponsored by: The Best Geek Holiday Gifts! >>>> Time is running out! Thinkgeek.com has the coolest gifts for >>>> your favorite geek. Let your fingers do the typing. Visit Now. >>>> T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ >>>> _______________________________________________ >>>> Nagios-users mailing list >>>> Nagios-users at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/nagios-users >>>> >>>> >>> >>> >>> ------------------------------------------------------- >>> This SF.NET email is sponsored by: The Best Geek Holiday Gifts! >>> Time is running out! Thinkgeek.com has the coolest gifts for >>> your favorite geek. Let your fingers do the typing. Visit Now. >>> T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ >>> _______________________________________________ >>> Nagios-users mailing list >>> Nagios-users at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/nagios-users >>> >>> >> >> >> -- >> Mike McClure, CCIE # 5125, CISSP # 30232 >> PNE Services, Inc. - http://www.pneservices.com >> mmcclure at pneservices.com >> mobile: 913-636-5590 >> >> >> >> ------------------------------------------------------- >> This SF.NET email is sponsored by: The Best Geek Holiday Gifts! >> Time is running out! Thinkgeek.com has the coolest gifts for >> your favorite geek. Let your fingers do the typing. Visit Now. >> T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> >> > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: The Best Geek Holiday Gifts! > Time is running out! Thinkgeek.com has the coolest gifts for > your favorite geek. Let your fingers do the typing. Visit Now. > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > -- Mike McClure, CCIE # 5125, CISSP # 30232 PNE Services, Inc. - http://www.pneservices.com mmcclure at pneservices.com mobile: 913-636-5590 ------------------------------------------------------- This SF.NET email is sponsored by: The Best Geek Holiday Gifts! Time is running out! Thinkgeek.com has the coolest gifts for your favorite geek. Let your fingers do the typing. Visit Now. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From sripley at chiaro.com Sat Dec 21 04:12:32 2002 From: sripley at chiaro.com (Scott Ripley) Date: Fri, 20 Dec 2002 21:12:32 -0600 Subject: Solar Flares (was: RE: Fw: CGI Issue) Message-ID: <668C5EBD23862F459CF63DAFFCA6268C023ABF@rchst006.chiaro.com> Mike, I added the snippet below into my side.html so I can easily monitor solar activity from the Nagios interface. It includes charts for ground and satelite based data. It doesn't pull the data into Nagios, but its entertaining at the least (and the manager types seem to like it). I find it corrolates well to WiFi, WAN, cell, pager, and psychic ;) trouble. You are correct, the solar activity has been moderately high lately. What are the chances that this could ever be even remotely on-topic? Your abilities should return when it subsides, and now you can predict future lapses. Satellite Env (3day) Geomagnetic Storm Lvl ACE RTSW
MAG & SWEPAM
Cheers, Scott. -----Original Message----- From: Mike McClure [mailto:mmcclure at pneservices.com] Sent: Friday, December 20, 2002 4:38 PM To: Eric Gregory Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Fw: CGI Issue Hi Eric, My psychic abilities are currently diminished due to solar flare activity. Please provide the following: - Nagios version - Operating system and version - Platform (Sparc, i386, etc) - 'configure' output - 'make' output -- Mike McClure, CCIE # 5125, CISSP # 30232 PNE Services, Inc. - http://www.pneservices.com mmcclure at pneservices.com mobile: 913-636-5590 > > > > > Last week I posted about a problem I was having with Authentication through CGI's, > basically I get authenticated through HTTP but I have no authority through the > CGI's, cgi.cfg seems to be correctly configured but no luck. > > I think I've found another issue that may be the root of the authentication issue. > > when I build Nagios it seems as if not all of the CGI's are building. most are fine > but I know for sure there should be a statusmap.cgi, histogram.cgi, and > statusmap.cgi, however they're not creating. > > After Running make all and going to the cgi directory I have other scripts such as > status.cgi, outages.cgi etc.... > > based on the source files in the cgi source directory am I correct in assuming that > I should also have at least the histogram.cgi, and statusmap.cgi as well as an > auth.cgi and more? > > If I'm correct does anyone know why these cgi's might not be building properly? > > Thanks > Eric ------------------------------------------------------- This SF.NET email is sponsored by: The Best Geek Holiday Gifts! Time is running out! Thinkgeek.com has the coolest gifts for your favorite geek. Let your fingers do the typing. Visit Now. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users -------------- next part -------------- ----------------------------------------- (on rchss001) This e-mail and any files transmitted with it are the property of Chiaro Networks, Ltd., and may contain confidential and privileged material for the sole use of the intended recipient(s) to whom this e-mail is addressed. If you are not one of the named recipient(s), or otherwise have reason to believe that you have received this message in error, please notify the sender and delete all copies from your system. Any other use, retention, dissemination, forwarding, printing or copying of this e-mail is strictly prohibited. --------------------------------------------------------- From jack at monkeynoodle.org Sat Dec 21 04:44:04 2002 From: jack at monkeynoodle.org (Jack Coates) Date: 20 Dec 2002 19:44:04 -0800 Subject: Help with check_nrpe arguments, please... In-Reply-To: <5.2.0.9.0.20021220152554.00bc58f8@smtp.directsynergy.com> References: <5.2.0.9.0.20021220152554.00bc58f8@smtp.directsynergy.com> Message-ID: <1040442244.3714.12.camel@chupacabra.monkeynoodle.org> On Fri, 2002-12-20 at 15:41, Andre Philippi wrote: > > Hi, > > My Nagios and the nagios-plugins are working just fine, but I keep getting : > > "Incorrect command line arguments supplied" (on the web interface status > information) > > I did RTFM, searched the list archives, but found no solution to the problem... > > Could someone help me, please? > You need to segment the problem and walk through the process step by step. First try to run the check_disk command on the nrpe -d host, then try to telnet to the proper port from your nagios box, then see if nagios can talk to nrpe. For purposes of troubleshooting, you might want to start with one of the simpler check_proc commands. That might be much less likely to have hardcoded paths in them like the Solaris check_disk binary I was just playing with. *cough* I guess Ethan keeps all of his FSF Sun software under /usr/local/gnu *cough*. > Below are the relevant parts of the relevant files... > all looks okay from here. -- Jack Coates Monkeynoodle: A Scientific Venture... ------------------------------------------------------- This SF.NET email is sponsored by: The Best Geek Holiday Gifts! Time is running out! Thinkgeek.com has the coolest gifts for your favorite geek. Let your fingers do the typing. Visit Now. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From mmcclure at pneservices.com Sat Dec 21 05:22:06 2002 From: mmcclure at pneservices.com (Mike McClure) Date: Fri, 20 Dec 2002 22:22:06 -0600 (CST) Subject: Solar Flares (was: RE: Fw: CGI Issue) In-Reply-To: <668C5EBD23862F459CF63DAFFCA6268C023ABF@rchst006.chiaro.com> References: <668C5EBD23862F459CF63DAFFCA6268C023ABF@rchst006.chiaro.com> Message-ID: <1320.192.168.1.9.1040444526.squirrel@xyzzy.homeip.net> Hi Scott, Who would have ever known that my wiseacre response would be so useful? :) Well, besides Miss Cleo and Kenny Kingston. Pretty neat idea! Thanks for sharing that! - Mike > > Mike, > > I added the snippet below into my side.html so I can easily monitor solar > activity from the Nagios interface. It includes charts for ground and > satelite based data. It doesn't pull the data into Nagios, but its > entertaining at the least (and the manager types seem to like it). I find it > corrolates well to WiFi, WAN, cell, pager, and psychic ;) trouble. > > You are correct, the solar activity has been moderately high lately. What > are the chances that this could ever be even remotely on-topic? Your > abilities should return when it subsides, and now you can predict future > lapses. > > > > > > name="satellite-dot"> > target="main" DEFANGED_onMouseOver="switchdot('satellite-dot',1)" > DEFANGED_onMouseOut="switchdot('satellite-dot',0)" class="NavBarItem">Satellite Env > (3day) > > > name="geostorm-dot"> > target="main" DEFANGED_onMouseOver="switchdot('geostorm-dot',1)" > DEFANGED_onMouseOut="switchdot('geostorm-dot',0)" class="NavBarItem">Geomagnetic > Storm Lvl > > > name="acertsw-dot"> > target="main" DEFANGED_onMouseOver="switchdot('acertsw-dot',1)" > DEFANGED_onMouseOut="switchdot('acertsw-dot',0)" class="NavBarItem">ACE RTSW
MAG > & SWEPAM
> > > Cheers, > > Scott. > > -----Original Message----- > From: Mike McClure [mailto:mmcclure at pneservices.com] > Sent: Friday, December 20, 2002 4:38 PM > To: Eric Gregory > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Fw: CGI Issue > > > Hi Eric, > > My psychic abilities are currently diminished due to solar flare activity. > Please > provide the following: > > - Nagios version > - Operating system and version > - Platform (Sparc, i386, etc) > - 'configure' output > - 'make' output > > -- > Mike McClure, CCIE # 5125, CISSP # 30232 > PNE Services, Inc. - http://www.pneservices.com > mmcclure at pneservices.com > mobile: 913-636-5590 > >> >> >> >> >> Last week I posted about a problem I was having with Authentication > through CGI's, >> basically I get authenticated through HTTP but I have no authority through > the >> CGI's, cgi.cfg seems to be correctly configured but no luck. >> >> I think I've found another issue that may be the root of the > authentication issue. >> >> when I build Nagios it seems as if not all of the CGI's are building. > most are fine >> but I know for sure there should be a statusmap.cgi, histogram.cgi, and >> statusmap.cgi, however they're not creating. >> >> After Running make all and going to the cgi directory I have other scripts > such as >> status.cgi, outages.cgi etc.... >> >> based on the source files in the cgi source directory am I correct in > assuming that >> I should also have at least the histogram.cgi, and statusmap.cgi as well > as an >> auth.cgi and more? >> >> If I'm correct does anyone know why these cgi's might not be building > properly? >> >> Thanks >> Eric > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: The Best Geek Holiday Gifts! > Time is running out! Thinkgeek.com has the coolest gifts for > your favorite geek. Let your fingers do the typing. Visit Now. > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users----------------------------------------- > (on rchss001) > > This e-mail and any files transmitted with it are the property > of Chiaro Networks, Ltd., and may contain confidential and > privileged material for the sole use of the intended recipient(s) > to whom this e-mail is addressed. If you are not one of the named > recipient(s), or otherwise have reason to believe that you have > received this message in error, please notify the sender and > delete all copies from your system. Any other use, retention, > dissemination, forwarding, printing or copying of this e-mail is > strictly prohibited. > > > --------------------------------------------------------- > -- Mike McClure, CCIE # 5125, CISSP # 30232 PNE Services, Inc. - http://www.pneservices.com mmcclure at pneservices.com mobile: 913-636-5590 ------------------------------------------------------- This SF.NET email is sponsored by: The Best Geek Holiday Gifts! Time is running out! Thinkgeek.com has the coolest gifts for your favorite geek. Let your fingers do the typing. Visit Now. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From rue at thinlayer.co.uk Fri Dec 20 22:32:32 2002 From: rue at thinlayer.co.uk (Rue Turner) Date: 20 Dec 2002 21:32:32 +0000 Subject: NRPE enhancement In-Reply-To: References: Message-ID: <1040419952.1648.15.camel@servalon> dave, I think the reson for this choice of configuration is security. If the nrpe was allowed to run whatever it was asked it would be easy to compromise your machines. This way although your configs are hefty (mine have almost a hundred lines in) you can only ask it to run commands from this library. rue On Fri, 2002-12-20 at 17:35, Dave Viner wrote: > Hi, > I'd like to suggest an enhancement to NRPE, and if people think this is a > good idea, I'll try to make a patch to support my suggestion. Currently the > nrpe.cfg file specifies all the commands in this fashion: > command[check_disk1]=/usr/local/nagios/libexec/check_disk 80 95 /dev/hda1 > As result of this design is that if you want to check something like > /dev/hda1 and /dev/hdb1, you need two seperate lines in the nrpe.cfg file. > So, I'd like to propose that we extend NRPE to allow for the arguments to a > command to be specified by the central Nagios server instead of in the > nrpe.cfg. The idea is that the nrpe.cfg would have one command line which > maps a key, 'check_disk', to a local executable, > '/usr/local/nagios/libexec/check_disk'. The rest would be specified from > the central Nagios server in some manner. > I think this would great simplify the nrpe.cfg files, and reduce a lot of > redundant command definitions that differ only in the arguments they > require. Also, it would mean that you'd need to update your nrpe.cfg very > rarely. In fact, you'd only need to update it when you add a new plugin. > I don't have a concrete suggestion for implementing this yet, because I > want to see if the community is interested in this idea first. Has this > idea been suggested previously? Is anyone currently interested in the idea > or would I be the only consumer of such a service? > > thanks > dave > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: The Best Geek Holiday Gifts! > Time is running out! Thinkgeek.com has the coolest gifts for > your favorite geek. Let your fingers do the typing. Visit Now. > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users r u e t u r n e r ? t ? h ? i ? n ? l ? a ? y ? e ? r ? -- index, n.: Alphabetical list of words of no possible interest where an alphabetical list of subjects with references ought to be. ------------------------------------------------------- This SF.NET email is sponsored by: The Best Geek Holiday Gifts! Time is running out! Thinkgeek.com has the coolest gifts for your favorite geek. Let your fingers do the typing. Visit Now. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From tsi at lbinfotech.com Sat Dec 21 12:43:41 2002 From: tsi at lbinfotech.com (Thirumalai Srinivasan) Date: Sat, 21 Dec 2002 11:43:41 GMT Subject: REG : Host name instead of IP address Message-ID: <20021221114341.12159.qmail@vhost.dsqworld.com> Hi all I just want to know whether the host name can be specified instead of IP address in the hosts.cfg file.As the IP address keeps changing for me i cant specify that .So thought of giving the host name ..Anyone there to help me out.. Regards Thiru ------------------------------------------------------- This SF.NET email is sponsored by: Order your Holiday Geek Presents Now! Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap, MP3 Players, XBox Games, Flying Saucers, WebCams, Smart Putty. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From pspa at gp.novis.pt Fri Dec 20 18:55:38 2002 From: pspa at gp.novis.pt (Paulo Pinto) Date: 20 Dec 2002 17:55:38 +0000 Subject: extinfo.cfg does not like wildcarding ? Message-ID: <1040406939.27671.124.camel@voodoo.ip.pt> Hi all. I'm using a couple of perl scripts to graphically output my rrd databases, based on "HOST-SERVICE", and using the extinfo.cfg to place the little cute ( :p ) icons next to each service and linking to the scripts using $HOSTNAME$ and $SERVICEDESC$ macros. I dunno if this is a bug (or a feature :-> ), but the following example does NOT work: define serviceextinfo{ host_name MYHOST service_description * <<<----- wildcard. notes_url http://host.domain.dom/cgi/myscript?id=$HOSTNAME$-$SERVICEDESC$ icon_image myimage.png icon_image_alt Service Details } This means that, if my host has 30 services, I have to input 30X the above example, one for each service :( Now, if I have more than 1 host ... Well, [root at nagios etc]# cat extinfo.cfg |wc -l 2780 Bug ? ToDo list ? :) Ah, running Nagios 1.0 (non-beta :) ). -- Paulo Pinto Novis GSP pspa at gp.novis.pt ------------------------------------------------------- This SF.NET email is sponsored by: The Best Geek Holiday Gifts! Time is running out! Thinkgeek.com has the coolest gifts for your favorite geek. Let your fingers do the typing. Visit Now. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From natejohn at indiana.edu Sat Dec 21 03:44:20 2002 From: natejohn at indiana.edu (Nate Johnson) Date: Fri, 20 Dec 2002 21:44:20 -0500 Subject: controlling tty In-Reply-To: <4455.192.168.1.9.1040438356.squirrel@xyzzy.homeip.net> References: <4455.192.168.1.9.1040438356.squirrel@xyzzy.homeip.net> Message-ID: <1B4E081E-148E-11D7-87B7-0030655A0B42@indiana.edu> I am both executing the checks, and simply ssh'ing to the remote host as the nagios user. ssh.com's ssh behaves the same way that openssh does, save for some minor differences not relevant to this discussion. Thanks again, Nate On Friday, Dec 20, 2002, at 21:39 America/Indianapolis, Mike McClure wrote: > > >> Maybe I wasn't clear enough about this in asking my question, but when >> ssh'ing to each host *from the command line* and not *from the cgi >> frontend* the checks succeed. It is when nagios is doing the >> regularly >> scheduled checks through the check_by_ssh plugin that the warning >> message is returned to the cgi frontend. The checks would have failed >> when executing them manually from the command line if the hostkey of >> the remote machine wasn't already stored in ~/.ssh/known_hosts. > > When you execute the checks from a shell, are you doing it as the > nagios user, or as > another user? When the nagios daemon executes them, it does so as > the nagios user > (usually "nagios"). > > Try "su - nagios", then ssh'ing to the host. I haven't ever tried > ssh.com's version > of ssh, but with OpenSSH, if it doesn't have the host's key in > known_hosts, it asks > you if you want to add it, then it doesn't ever ask again (unless it > is changed). > >> >> The only reference to this that I was able to find on the web was in >> the netsaint list archives on geocrawler. Someone asked the same >> question that I did. Unfortunately, the only answer posted to the >> list >> was someone who noted that there was a bug in redhat's /bin/login >> (from >> an earlier version of redhat than than the one I'm using). They had >> suggested update the linux-util rpm. Anyway, I don't think that's the >> issue here, and reading this e-mail list, it is obvious that others >> are >> successfully using the check_by_ssh plugin. >> >> thanks for the help so far, >> Nate >> >> On Friday, Dec 20, 2002, at 20:20 America/Indianapolis, Mike McClure >> wrote: >> >>> I think the problem is that you don't have a host key for each of the >>> remote hosts >>> on your monitoring host, available to the user under which you run >>> the >>> plugin. >>> >>> You'll need to get them, either manually by editing the "known_hosts" >>> file, or by >>> ssh'ing as the nagios user to each host and accepting the host key. >>> >>> Take a look at >>> http://www.snailbook.com/faq/trusted-host-howto.auto.html for more >>> details. >>> >>>> Please see below for answers to each of your questions. Thanks so >>>> much >>>> for your time so far. >>>> >>>> ~nate >>>> >>>> On Fri, 20 Dec 2002 16:43:10 -0600 (CST) "Mike McClure" >>>> >>>> wrote: >>>> >>>>> What operating systems are you using? >>>> >>>> Redhat 7.3 on the nagios monitorring host >>>> several other OS's on hosts being monitorred (but the situation is >>>> the same on all) >>>> >>>>> What version of the plugins are you using? >>>> >>>> 1.3-beta1 >>>> >>>>> Are you using the commercial version of SSH, or OpenSSH? >>>> >>>> ssh.com's ssh (although it is the non-commercial version). For the >>>> purposes of your question, I am using the commercial ssh. >>>> >>>>> SSHv2 or SSHv1? >>>> >>>> sshv2 >>>> >>>>> How are you performing authentication? .shosts? RSA/DSA keys? >>>> >>>> I am using a keypair with a null passphrase. >>>> >>>>>> When doing remote checks through check_by_ssh, they work from the >>>>>> command >>>>>> line, but from the cgi interface, they return a warning status >>>>>> with >>>>>> the >>>>>> message: >>>>>> >>>>>> warning: You have no controlling tty. Cannot read confirmation. >>>>>> >>>>>> Anyone know what I might be doing wrong? Any advice would be >>>>>> great. >>>>>> >>>>>> Thanks, >>>>>> Nate >>>>>> >>>>>> >>>>>> ------------------------------------------------------- >>>>>> This SF.NET email is sponsored by: The Best Geek Holiday Gifts! >>>>>> Time is running out! Thinkgeek.com has the coolest gifts for >>>>>> your favorite geek. Let your fingers do the typing. Visit Now. >>>>>> T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ >>>>>> _______________________________________________ >>>>>> Nagios-users mailing list >>>>>> Nagios-users at lists.sourceforge.net >>>>>> https://lists.sourceforge.net/lists/listinfo/nagios-users >>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> Mike McClure, CCIE # 5125, CISSP # 30232 >>>>> PNE Services, Inc. - http://www.pneservices.com >>>>> mmcclure at pneservices.com >>>>> mobile: 913-636-5590 >>>>> >>>>> >>>>> >>>>> ------------------------------------------------------- >>>>> This SF.NET email is sponsored by: The Best Geek Holiday Gifts! >>>>> Time is running out! Thinkgeek.com has the coolest gifts for >>>>> your favorite geek. Let your fingers do the typing. Visit Now. >>>>> T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ >>>>> _______________________________________________ >>>>> Nagios-users mailing list >>>>> Nagios-users at lists.sourceforge.net >>>>> https://lists.sourceforge.net/lists/listinfo/nagios-users >>>>> >>>>> >>>> >>>> >>>> ------------------------------------------------------- >>>> This SF.NET email is sponsored by: The Best Geek Holiday Gifts! >>>> Time is running out! Thinkgeek.com has the coolest gifts for >>>> your favorite geek. Let your fingers do the typing. Visit Now. >>>> T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ >>>> _______________________________________________ >>>> Nagios-users mailing list >>>> Nagios-users at lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/nagios-users >>>> >>>> >>> >>> >>> -- >>> Mike McClure, CCIE # 5125, CISSP # 30232 >>> PNE Services, Inc. - http://www.pneservices.com >>> mmcclure at pneservices.com >>> mobile: 913-636-5590 >>> >>> >>> >>> ------------------------------------------------------- >>> This SF.NET email is sponsored by: The Best Geek Holiday Gifts! >>> Time is running out! Thinkgeek.com has the coolest gifts for >>> your favorite geek. Let your fingers do the typing. Visit Now. >>> T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ >>> _______________________________________________ >>> Nagios-users mailing list >>> Nagios-users at lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/nagios-users >>> >>> >> >> >> >> ------------------------------------------------------- >> This SF.NET email is sponsored by: The Best Geek Holiday Gifts! >> Time is running out! Thinkgeek.com has the coolest gifts for >> your favorite geek. Let your fingers do the typing. Visit Now. >> T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> >> > > > -- > Mike McClure, CCIE # 5125, CISSP # 30232 > PNE Services, Inc. - http://www.pneservices.com > mmcclure at pneservices.com > mobile: 913-636-5590 > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: The Best Geek Holiday Gifts! > Time is running out! Thinkgeek.com has the coolest gifts for > your favorite geek. Let your fingers do the typing. Visit Now. > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ------------------------------------------------------- This SF.NET email is sponsored by: The Best Geek Holiday Gifts! Time is running out! Thinkgeek.com has the coolest gifts for your favorite geek. Let your fingers do the typing. Visit Now. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From jasmine.chua at securecirt.com Sun Dec 22 09:34:00 2002 From: jasmine.chua at securecirt.com (Jasmine Chua) Date: Sun, 22 Dec 2002 16:34:00 +0800 Subject: distributed monitoring server checking results too slow. Message-ID: <200212221634.05166.jasmine.chua@securecirt.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 My distributed monitoring server works for awhile.. and stops then the log file started showing the following: [1040545718] Warning: A system time change of 4296 seconds (forwards in time) has been detected. Compensating... [1040545719] Warning: A system time change of 4293 seconds (backwards in time) has been detected. Compensating... Does anyone know what this mean? And, its not sending results fast enough to the central monitoring server. Jasmine Chua Security Engineer, SecureCiRT (A SBU of Z-Vance Pte Ltd) http://www.securecirt.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE+BXj7NgvTa7Hj2AURArJiAKCeNHy+wolvr4yPnpSfYEzV9uoyZQCdEl/Z PDU3CE5DLdXBxTIO80P4Lic= =T3UI -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.NET email is sponsored by: Order your Holiday Geek Presents Now! Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap, MP3 Players, XBox Games, Flying Saucers, WebCams, Smart Putty. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ From karl at debisschop.net Sun Dec 22 14:59:43 2002 From: karl at debisschop.net (Karl DeBisschop) Date: 22 Dec 2002 08:59:43 -0500 Subject: controlling tty In-Reply-To: References: Message-ID: <1040565583.529.10.camel@toaster> On Fri, 2002-12-20 at 21:14, Nate Johnson wrote: > Maybe I wasn't clear enough about this in asking my question, but when > ssh'ing to each host *from the command line* and not *from the cgi > frontend* the checks succeed. It is when nagios is doing the regularly > scheduled checks through the check_by_ssh plugin that the warning > message is returned to the cgi frontend. The checks would have failed > when executing them manually from the command line if the hostkey of > the remote machine wasn't already stored in ~/.ssh/known_hosts. Have you tried '-f' ? -- Karl DeBisschop ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From twelsh at square-box.com Mon Dec 23 01:08:49 2002 From: twelsh at square-box.com (Tom Welsh) Date: Mon, 23 Dec 2002 00:08:49 -0000 Subject: Solar Flares (was: RE: Fw: CGI Issue) In-Reply-To: <1320.192.168.1.9.1040444526.squirrel@xyzzy.homeip.net> References: <1320.192.168.1.9.1040444526.squirrel@xyzzy.homeip.net> Message-ID: <000001c2aa17$783e1720$0400a8c0@squarebox.com> Fantastic, I have just added this to the nagios demo page so people can see it on http://nagios.square-box.com I will probably leave it there until next Sunday when I do the cvs rebuild of nagios and the plugins. Incidentally, is it possible to pick up this data real time? I was trying to find info on electronically tagged species so I could plot their Lat and Long in nagios, but after asking NASA for data feeds I did not get very far. Something to do with them not wanting me playing with satellites I suppose. If anyone has any cool stuff that could be monitored to show the diversity of monitoring, I would be interested to here from him or her. Just email me the details of what you have and I will see what I can do. Don?t post it to the list, as I do not reckon everyone wants to know movements of a walrus colony in Alaska :) But then again... Cheers Tom Welsh twelsh at square-box.com -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Mike McClure Sent: 21 December 2002 04:22 To: Scott Ripley Cc: nagios-users at lists.sourceforge.net Subject: Re: Solar Flares (was: RE: [Nagios-users] Fw: CGI Issue) Hi Scott, Who would have ever known that my wiseacre response would be so useful? :) Well, besides Miss Cleo and Kenny Kingston. Pretty neat idea! Thanks for sharing that! - Mike > > Mike, > > I added the snippet below into my side.html so I can easily monitor solar > activity from the Nagios interface. It includes charts for ground and > satelite based data. It doesn't pull the data into Nagios, but its > entertaining at the least (and the manager types seem to like it). I find it > corrolates well to WiFi, WAN, cell, pager, and psychic ;) trouble. > > You are correct, the solar activity has been moderately high lately. What > are the chances that this could ever be even remotely on-topic? Your > abilities should return when it subsides, and now you can predict future > lapses. > > > > > > name="satellite-dot"> > target="main" DEFANGED_onMouseOver="switchdot('satellite-dot',1)" > DEFANGED_onMouseOut="switchdot('satellite-dot',0)" class="NavBarItem">Satellite Env > (3day) > > > name="geostorm-dot"> > target="main" DEFANGED_onMouseOver="switchdot('geostorm-dot',1)" > DEFANGED_onMouseOut="switchdot('geostorm-dot',0)" class="NavBarItem">Geomagnetic > Storm Lvl > > > name="acertsw-dot"> > target="main" DEFANGED_onMouseOver="switchdot('acertsw-dot',1)" > DEFANGED_onMouseOut="switchdot('acertsw-dot',0)" class="NavBarItem">ACE RTSW
MAG > & SWEPAM
> > > Cheers, > > Scott. > > -----Original Message----- > From: Mike McClure [mailto:mmcclure at pneservices.com] > Sent: Friday, December 20, 2002 4:38 PM > To: Eric Gregory > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Fw: CGI Issue > > > Hi Eric, > > My psychic abilities are currently diminished due to solar flare activity. > Please > provide the following: > > - Nagios version > - Operating system and version > - Platform (Sparc, i386, etc) > - 'configure' output > - 'make' output > > -- > Mike McClure, CCIE # 5125, CISSP # 30232 > PNE Services, Inc. - http://www.pneservices.com > mmcclure at pneservices.com > mobile: 913-636-5590 > >> >> >> >> >> Last week I posted about a problem I was having with Authentication > through CGI's, >> basically I get authenticated through HTTP but I have no authority through > the >> CGI's, cgi.cfg seems to be correctly configured but no luck. >> >> I think I've found another issue that may be the root of the > authentication issue. >> >> when I build Nagios it seems as if not all of the CGI's are building. > most are fine >> but I know for sure there should be a statusmap.cgi, histogram.cgi, and >> statusmap.cgi, however they're not creating. >> >> After Running make all and going to the cgi directory I have other scripts > such as >> status.cgi, outages.cgi etc.... >> >> based on the source files in the cgi source directory am I correct in > assuming that >> I should also have at least the histogram.cgi, and statusmap.cgi as well > as an >> auth.cgi and more? >> >> If I'm correct does anyone know why these cgi's might not be building > properly? >> >> Thanks >> Eric > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: The Best Geek Holiday Gifts! > Time is running out! Thinkgeek.com has the coolest gifts for > your favorite geek. Let your fingers do the typing. Visit Now. > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users--------------- -------------------------- > (on rchss001) > > This e-mail and any files transmitted with it are the property > of Chiaro Networks, Ltd., and may contain confidential and > privileged material for the sole use of the intended recipient(s) > to whom this e-mail is addressed. If you are not one of the named > recipient(s), or otherwise have reason to believe that you have > received this message in error, please notify the sender and > delete all copies from your system. Any other use, retention, > dissemination, forwarding, printing or copying of this e-mail is > strictly prohibited. > > > --------------------------------------------------------- > -- Mike McClure, CCIE # 5125, CISSP # 30232 PNE Services, Inc. - http://www.pneservices.com mmcclure at pneservices.com mobile: 913-636-5590 ------------------------------------------------------- This SF.NET email is sponsored by: The Best Geek Holiday Gifts! Time is running out! Thinkgeek.com has the coolest gifts for your favorite geek. Let your fingers do the typing. Visit Now. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From nagios at nagios.org Mon Dec 23 03:37:20 2002 From: nagios at nagios.org (Ethan Galstad) Date: Sun, 22 Dec 2002 20:37:20 -0600 Subject: Solar Flares (was: RE: Fw: CGI Issue) In-Reply-To: <000001c2aa17$783e1720$0400a8c0@squarebox.com> References: <1320.192.168.1.9.1040444526.squirrel@xyzzy.homeip.net> Message-ID: <3E062280.12948.9E72E3@localhost> I actually wouldn't recommend using nagios code from CVS for a while. The 2.x stuff breaks some 1.0 config file stuff and there aren't any docs yet. :-) On 23 Dec 2002 at 0:08, Tom Welsh wrote: > Fantastic, > > I have just added this to the nagios demo page so people can see it on > > http://nagios.square-box.com > > I will probably leave it there until next Sunday when I do the cvs > rebuild of nagios and the plugins. > > Incidentally, is it possible to pick up this data real time? > > I was trying to find info on electronically tagged species so I could > plot their Lat and Long in nagios, but after asking NASA for data feeds > I did not get very far. Something to do with them not wanting me playing > with satellites I suppose. > > If anyone has any cool stuff that could be monitored to show the > diversity of monitoring, I would be interested to here from him or her. > Just email me the details of what you have and I will see what I can do. > Don?t post it to the list, as I do not reckon everyone wants to know > movements of a walrus colony in Alaska :) > > But then again... > > Cheers > > Tom Welsh > twelsh at square-box.com > > > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Mike > McClure > Sent: 21 December 2002 04:22 > To: Scott Ripley > Cc: nagios-users at lists.sourceforge.net > Subject: Re: Solar Flares (was: RE: [Nagios-users] Fw: CGI Issue) > > Hi Scott, > > Who would have ever known that my wiseacre response would be so useful? > :) Well, > besides Miss Cleo and Kenny Kingston. > > Pretty neat idea! Thanks for sharing that! > > - Mike > > > > > Mike, > > > > I added the snippet below into my side.html so I can easily monitor > solar > > activity from the Nagios interface. It includes charts for ground and > > satelite based data. It doesn't pull the data into Nagios, but its > > entertaining at the least (and the manager types seem to like it). I > find it > > corrolates well to WiFi, WAN, cell, pager, and psychic ;) trouble. > > > > You are correct, the solar activity has been moderately high lately. > What > > are the chances that this could ever be even remotely on-topic? Your > > abilities should return when it subsides, and now you can predict > future > > lapses. > > > > > > > > > > > > > name="satellite-dot"> > > > target="main" DEFANGED_onMouseOver="switchdot('satellite-dot',1)" > > DEFANGED_onMouseOut="switchdot('satellite-dot',0)" > class="NavBarItem">Satellite Env > > (3day) > > > > > > > name="geostorm-dot"> > > href="http://sprg.ssl.berkeley.edu/dst_index/page1.html" > > target="main" DEFANGED_onMouseOver="switchdot('geostorm-dot',1)" > > DEFANGED_onMouseOut="switchdot('geostorm-dot',0)" > class="NavBarItem">Geomagnetic > > Storm Lvl > > > > > > > name="acertsw-dot"> > > href="http://www.sec.noaa.gov/ace/MAG_SWEPAM_24h.html" > > target="main" DEFANGED_onMouseOver="switchdot('acertsw-dot',1)" > > DEFANGED_onMouseOut="switchdot('acertsw-dot',0)" > class="NavBarItem">ACE RTSW
MAG > > & SWEPAM
> > > > > > Cheers, > > > > Scott. > > > > -----Original Message----- > > From: Mike McClure [mailto:mmcclure at pneservices.com] > > Sent: Friday, December 20, 2002 4:38 PM > > To: Eric Gregory > > Cc: nagios-users at lists.sourceforge.net > > Subject: Re: [Nagios-users] Fw: CGI Issue > > > > > > Hi Eric, > > > > My psychic abilities are currently diminished due to solar flare > activity. > > Please > > provide the following: > > > > - Nagios version > > - Operating system and version > > - Platform (Sparc, i386, etc) > > - 'configure' output > > - 'make' output > > > > -- > > Mike McClure, CCIE # 5125, CISSP # 30232 > > PNE Services, Inc. - http://www.pneservices.com > > mmcclure at pneservices.com > > mobile: 913-636-5590 > > > >> > >> > >> > >> > >> Last week I posted about a problem I was having with Authentication > > through CGI's, > >> basically I get authenticated through HTTP but I have no authority > through > > the > >> CGI's, cgi.cfg seems to be correctly configured but no luck. > >> > >> I think I've found another issue that may be the root of the > > authentication issue. > >> > >> when I build Nagios it seems as if not all of the CGI's are building. > > most are fine > >> but I know for sure there should be a statusmap.cgi, histogram.cgi, > and > >> statusmap.cgi, however they're not creating. > >> > >> After Running make all and going to the cgi directory I have other > scripts > > such as > >> status.cgi, outages.cgi etc.... > >> > >> based on the source files in the cgi source directory am I correct in > > assuming that > >> I should also have at least the histogram.cgi, and statusmap.cgi as > well > > as an > >> auth.cgi and more? > >> > >> If I'm correct does anyone know why these cgi's might not be building > > properly? > >> > >> Thanks > >> Eric > > > > > > > > > > ------------------------------------------------------- > > This SF.NET email is sponsored by: The Best Geek Holiday Gifts! > > Time is running out! Thinkgeek.com has the coolest gifts for > > your favorite geek. Let your fingers do the typing. Visit Now. > > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users--------------- > -------------------------- > > (on rchss001) > > > > This e-mail and any files transmitted with it are the property > > of Chiaro Networks, Ltd., and may contain confidential and > > privileged material for the sole use of the intended recipient(s) > > to whom this e-mail is addressed. If you are not one of the named > > recipient(s), or otherwise have reason to believe that you have > > received this message in error, please notify the sender and > > delete all copies from your system. Any other use, retention, > > dissemination, forwarding, printing or copying of this e-mail is > > strictly prohibited. > > > > > > --------------------------------------------------------- > > > > > -- > Mike McClure, CCIE # 5125, CISSP # 30232 > PNE Services, Inc. - http://www.pneservices.com > mmcclure at pneservices.com > mobile: 913-636-5590 > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: The Best Geek Holiday Gifts! > Time is running out! Thinkgeek.com has the coolest gifts for > your favorite geek. Let your fingers do the typing. Visit Now. > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > Ethan Galstad, Nagios Developer --- Email: nagios at nagios.org Website: http://www.nagios.org ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From greg_vickers at mbox.com.au Mon Dec 23 04:38:07 2002 From: greg_vickers at mbox.com.au (Greg Vickers) Date: Mon, 23 Dec 2002 13:38:07 +1000 Subject: Unique (?) blah de blah - SOLVED Message-ID: <10979481099262.10992621097948@mbox.com.au> Okies, 5 minutes after I posted on friday, I found the solution to my problem: check_cluster Is exactly what I need for monitoring my services and host interfaces. Thanks to Jack Coates for his input. Greg --------------------------------------------------------------------- Would you like to receive faxes to your personal email address? You can with mBox. Visit http://www.mbox.com.au/fax ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From atulsh at hclinsys.com Mon Dec 23 13:17:37 2002 From: atulsh at hclinsys.com (Atul Shrivastava) Date: Mon, 23 Dec 2002 17:47:37 +0530 Subject: How can I configure Nagios using the SNMP Service only References: <5032019AFC475F4B95262C63B94BC2F8B57D@rtsvr8.refertelecom.pt> <1040129894.27671.37.camel@voodoo.ip.pt> <004901c2a5a3$ac3b1280$5f7b0297@atul> Message-ID: <002701c2aa7d$483f3110$5f7b0297@atul> Hello all, Can anyone tell me how can I configure the Nagios system so that it can work using only the SNMP service that is there with every operating system and also with the routers and switches. This is because I do not want to use the Nagios client (NPRE). Thanks in advance. Regards and have a nice day, Atul Shrivastava Info Structure Services HCL INFOSYSTEMS LTD. INDIA -------------- next part -------------- An HTML attachment was scrubbed... URL: From emann at questinc.org Mon Dec 23 16:13:43 2002 From: emann at questinc.org (Evan Mann) Date: Mon, 23 Dec 2002 10:13:43 -0500 Subject: Notifications wth escalations Message-ID: I could use some help in figuring out how to set up some escalated notifications. First and foremost, I have a 24x7 monitoring on services/hosts via a ping to all my routers and firewalls. The notification is 24x7 and is sent off via e-mail to an e-mail box. I want to have an escalation where if a site is in a DOWN state for more than 3 notification intervals that an e-mail is sent off to a Nextel phone. However, I only want the notification period for this escalated notification to use my "oncall" notifications time frames (which is NOT 24x7) How can I accomplish this exactly? ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From Volker.Aust at premiere.de Mon Dec 23 17:10:32 2002 From: Volker.Aust at premiere.de (Volker.Aust at premiere.de) Date: Mon, 23 Dec 2002 17:10:32 +0100 Subject: Help with check_nrpe arguments, please... Message-ID: AFAIK you have to give the hostaddress as first (and only?) positional parameter to check_nrpe. No "-H "! > command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ ^^^ -vol ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From gecbr.suporte at gecapital.com Mon Dec 23 17:40:44 2002 From: gecbr.suporte at gecapital.com (suporte, gecbr (CAP, GCF)) Date: Mon, 23 Dec 2002 11:40:44 -0500 Subject: Downtime&Notification Message-ID: Hi all, When the host is down and the downtime process starts, it continues in "DOWN" state. The host does not assume the "OK" state. Does anybody know how to configure downtime for assuming OK state? Thanks in advance, > Alberto > Help Desk - GE Capital > ___________________________ > > Av. do Cafe, 277 - 3? andar - Torre B > 04311-000 - Sao Paulo - SP - Brasil > Tel: (55 11) 6847-7433 > Fax: (55 11) 6847-7410 > E-mail: gecbr.suporte at gecapital.com > > > Esta mensagem pode conter informa??o confidencial e/ou privilegiada. Se voc? n?o for o destinat?rio ou a pessoa autorizada a receber esta mensagem, n?o pode usar, copiar ou > divulgar as informa??es nela contidas ou tomar qualquer a??o baseada nessas informa??es. Se voc? recebeu esta mensagem por engano, por favor avise imediatamente o remetente, > respondendo o e-mail e em seguida apague-o. Agradecemos sua coopera??o. > > This message may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, > disclose or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and > delete this message. Thank you for your cooperation. > > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From Volker.Aust at premiere.de Mon Dec 23 17:39:10 2002 From: Volker.Aust at premiere.de (Volker.Aust at premiere.de) Date: Mon, 23 Dec 2002 17:39:10 +0100 Subject: Notifications wth escalations Message-ID: You have to set up a second contact ("nextel-contact"), which has "notification_period oncall" in a second contactgroup ("nextel-contact-grp") and the following escalation for services: define serviceescalation{ host_name your-host-name service_description your-service-name first_notification 3 last_notification 3 notification_interval xxx ; the same as in the service definition contact-groups mail-contact-grp,nextel-contact-grp } or for hosts: define hostescalation{ host_name your-host-name first_notification 3 last_notification 3 notification_interval xxx ; the same as in the host definition contact-groups mail-contact-grp,nextel-contact-grp } You can have a comma seperated list of all hostnames for "host_name", which have to share the same escalation. -vol > -----Original Message----- > From: Evan Mann [mailto:emann at questinc.org] > Sent: Monday, December 23, 2002 4:14 PM > To: Nagios-users (E-mail) > Subject: [Nagios-users] Notifications wth escalations > > > I could use some help in figuring out how to set up some escalated > notifications. > > First and foremost, I have a 24x7 monitoring on > services/hosts via a ping to > all my routers and firewalls. The notification is 24x7 and > is sent off via > e-mail to an e-mail box. > > I want to have an escalation where if a site is in a DOWN > state for more > than 3 notification intervals that an e-mail is sent off to a > Nextel phone. > However, I only want the notification period for this > escalated notification > to use my "oncall" notifications time frames (which is NOT 24x7) > > How can I accomplish this exactly? > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From dviner at yahoo-inc.com Mon Dec 23 17:50:32 2002 From: dviner at yahoo-inc.com (Dave Viner) Date: Mon, 23 Dec 2002 08:50:32 -0800 Subject: NRPE enhancement In-Reply-To: <1040419952.1648.15.camel@servalon> References: <1040419952.1648.15.camel@servalon> Message-ID: Hi Rue, Security is a great reason for limiting the commands that NRPE is able to execute. But my suggested enhancement wouldn't allow NRPE to execute any command that isn't listed in the cfg file. That is, the NRPE would still need to find the path to the executable in the nrpe.cfg file, then use any remaining information as arguments passed to the executable. It is true that this is less secure that forcing the entire command line (executable and arguments) in the config file. But, so long as the executables are well authored and handle unexpected arguments well, I think this enhancement would not significantly decrease security. Do you think that specifying arguments would make NRPE significantly less secure? Dave -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Rue Turner Sent: Friday, December 20, 2002 1:33 PM To: Naios Users Subject: Re: [Nagios-users] NRPE enhancement dave, I think the reson for this choice of configuration is security. If the nrpe was allowed to run whatever it was asked it would be easy to compromise your machines. This way although your configs are hefty (mine have almost a hundred lines in) you can only ask it to run commands from this library. rue On Fri, 2002-12-20 at 17:35, Dave Viner wrote: > Hi, > I'd like to suggest an enhancement to NRPE, and if people think this is a > good idea, I'll try to make a patch to support my suggestion. Currently the > nrpe.cfg file specifies all the commands in this fashion: > command[check_disk1]=/usr/local/nagios/libexec/check_disk 80 95 /dev/hda1 > As result of this design is that if you want to check something like > /dev/hda1 and /dev/hdb1, you need two seperate lines in the nrpe.cfg file. > So, I'd like to propose that we extend NRPE to allow for the arguments to a > command to be specified by the central Nagios server instead of in the > nrpe.cfg. The idea is that the nrpe.cfg would have one command line which > maps a key, 'check_disk', to a local executable, > '/usr/local/nagios/libexec/check_disk'. The rest would be specified from > the central Nagios server in some manner. > I think this would great simplify the nrpe.cfg files, and reduce a lot of > redundant command definitions that differ only in the arguments they > require. Also, it would mean that you'd need to update your nrpe.cfg very > rarely. In fact, you'd only need to update it when you add a new plugin. > I don't have a concrete suggestion for implementing this yet, because I > want to see if the community is interested in this idea first. Has this > idea been suggested previously? Is anyone currently interested in the idea > or would I be the only consumer of such a service? > > thanks > dave > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: The Best Geek Holiday Gifts! > Time is running out! Thinkgeek.com has the coolest gifts for > your favorite geek. Let your fingers do the typing. Visit Now. > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users r u e t u r n e r ? t ? h ? i ? n ? l ? a ? y ? e ? r ? -- index, n.: Alphabetical list of words of no possible interest where an alphabetical list of subjects with references ought to be. ------------------------------------------------------- This SF.NET email is sponsored by: The Best Geek Holiday Gifts! Time is running out! Thinkgeek.com has the coolest gifts for your favorite geek. Let your fingers do the typing. Visit Now. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From Volker.Aust at premiere.de Mon Dec 23 17:50:39 2002 From: Volker.Aust at premiere.de (Volker.Aust at premiere.de) Date: Mon, 23 Dec 2002 17:50:39 +0100 Subject: [Nagiosplug-help] Fw: CGI Issue Message-ID: When the ./configure did not find the GD-libraries, all "graphical" CGI's (statusmap.cgi, histofram.cgi, ...) were not build. This have nothing to do with authentication. Did you see your login name in the upper left box under "Logged in as ..." or is there an question mark? -vol -----Original Message----- From: Eric Gregory [mailto:eric at gatewayconnections.com] Sent: Friday, December 20, 2002 11:08 PM To: nagios-users at lists.sourceforge.net; nagiosplug-help at lists.sourceforge.net Subject: [Nagiosplug-help] Fw: CGI Issue Last week I posted about a problem I was having with Authentication through CGI's, basically I get authenticated through HTTP but I have no authority through the CGI's, cgi.cfg seems to be correctly configured but no luck. I think I've found another issue that may be the root of the authentication issue. when I build Nagios it seems as if not all of the CGI's are building. most are fine but I know for sure there should be a statusmap.cgi, histogram.cgi, and statusmap.cgi, however they're not creating. After Running make all and going to the cgi directory I have other scripts such as status.cgi, outages.cgi etc.... based on the source files in the cgi source directory am I correct in assuming that I should also have at least the histogram.cgi, and statusmap.cgi as well as an auth.cgi and more? If I'm correct does anyone know why these cgi's might not be building properly? Thanks Eric -------------- next part -------------- An HTML attachment was scrubbed... URL: From russell at quadrix.com Mon Dec 23 18:21:17 2002 From: russell at quadrix.com (Russell Scibetti) Date: Mon, 23 Dec 2002 12:21:17 -0500 Subject: Downtime&Notification References: Message-ID: <3E07460D.3040206@quadrix.com> You can't. The idea of downtime is a suppression of notifications, not the actual checks. The CGI's will show that the host is down, as will history and trends because the box is down, but you won't get notified. Russell suporte, gecbr (CAP, GCF) wrote: >Hi all, > > When the host is down and the downtime process starts, it continues in "DOWN" state. The host does not assume the "OK" state. > Does anybody know how to configure downtime for assuming OK state? > > > >Thanks in advance, > > > >> Alberto >>Help Desk - GE Capital >>___________________________ >> >>Av. do Cafe, 277 - 3? andar - Torre B >>04311-000 - Sao Paulo - SP - Brasil >>Tel: (55 11) 6847-7433 >>Fax: (55 11) 6847-7410 >>E-mail: gecbr.suporte at gecapital.com >> >> >>Esta mensagem pode conter informa??o confidencial e/ou privilegiada. Se voc? n?o for o destinat?rio ou a pessoa autorizada a receber esta mensagem, n?o pode usar, copiar ou >>divulgar as informa??es nela contidas ou tomar qualquer a??o baseada nessas informa??es. Se voc? recebeu esta mensagem por engano, por favor avise imediatamente o remetente, >>respondendo o e-mail e em seguida apague-o. Agradecemos sua coopera??o. >> >>This message may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, >>disclose or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and >>delete this message. Thank you for your cooperation. >> >> > > >------------------------------------------------------- >This sf.net email is sponsored by:ThinkGeek >Welcome to geek heaven. >http://thinkgeek.com/sf >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users > > -- Russell Scibetti Quadrix Solutions, Inc. http://www.quadrix.com (732) 235-2335, ext. 7038 -------------- next part -------------- An HTML attachment was scrubbed... URL: From nagios at nagios.org Mon Dec 23 18:49:59 2002 From: nagios at nagios.org (Ethan Galstad) Date: Mon, 23 Dec 2002 11:49:59 -0600 Subject: Slashdot RFQ Message-ID: <3E06F867.16976.337B53@localhost> As some of you may have noticed, I have agreed to be subjected to an interview on Slashdot. So if you've got questions that you want to ask, post them on Slashdot before tomorrow. I'll be answering the 10 highest moderated posts. The RFQ can be found at: http://interviews.slashdot.org/article.pl?sid=02/12/23/144208&mode=thread Happy Holidays Ethan Galstad, Nagios Developer --- Email: nagios at nagios.org Website: http://www.nagios.org ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From sripley at chiaro.com Mon Dec 23 19:36:03 2002 From: sripley at chiaro.com (Scott Ripley) Date: Mon, 23 Dec 2002 12:36:03 -0600 Subject: Solar Flares (was: RE: Fw: CGI Issue) Message-ID: <668C5EBD23862F459CF63DAFFCA6268C023AC3@rchst006.chiaro.com> Tom, I actually had the links under reporting on my installation, but its probably best to leave them at the bottom for the demo. It could probably use another header to avoid confusion with the configuration section. I wouldn't want to mislead anyone about Nagios' capabilities, or more importantly that NASA owns the data. Who made the original png images? Maybe we could get another for "Other", "Custom", or "External". Then do something like the following to make it more uniform. ** END OF CONFIGURATION TABLE **
--
Custom --
** ADD SOLAR SNIPPET HERE **
Actually, the more I think about it, the more I want a custom section. It could even be included in the distribution to encourage creativity/ideas. Not the solar weather graphs, but just a Cust-Link1, Cust-Link2, Cust-Link3 type thing. I have some embedded web devices that do something similar, where you can add localized links into the menu. Hmmmm..... As long as I'm making a Christmas wish list... I wish that the headers on side.html were just with corresponding properties in the style sheet to make them uniform, instead of gif or png images. Then it would be easy to add more anytime you wish, and the properties (color, font, fontsize, etc.) would be configurable. You could add an "Intranet", "IT Only", or any custom section at your lesiure. I've added my intranet links under General, but it would be nice to have a seperate section. I'm just thinking out loud here, so to speak. I'm getting more ideas about optional collapsable sub-menus, but its starting to look like scope-creap to me. Take all of this with a grain of salt. To your question, I think the ACE data is available via FTP, and updated every x minutes. Not real time, but you can get it. http://sec.noaa.gov/ftpmenu/lists/ace.html 1&5 min data http://sec.noaa.gov/ftpmenu/lists/ace2.html hourly data Also, browsable historical data for each instrument here: http://www.srl.caltech.edu/ACE/ASC/browse/mag_brws_plts.html I don't know about the rest. I've had this in there since NetSaint, and I haven't looked in a while. I guess that was the whole point of having the links there. :-) Scott. -----Original Message----- From: Tom Welsh [mailto:twelsh at square-box.com] Sent: Sunday, December 22, 2002 6:09 PM To: nagios-users at lists.sourceforge.net Subject: RE: Solar Flares (was: RE: [Nagios-users] Fw: CGI Issue) Fantastic, I have just added this to the nagios demo page so people can see it on http://nagios.square-box.com I will probably leave it there until next Sunday when I do the cvs rebuild of nagios and the plugins. Incidentally, is it possible to pick up this data real time? I was trying to find info on electronically tagged species so I could plot their Lat and Long in nagios, but after asking NASA for data feeds I did not get very far. Something to do with them not wanting me playing with satellites I suppose. If anyone has any cool stuff that could be monitored to show the diversity of monitoring, I would be interested to here from him or her. Just email me the details of what you have and I will see what I can do. Don't post it to the list, as I do not reckon everyone wants to know movements of a walrus colony in Alaska :) But then again... Cheers Tom Welsh twelsh at square-box.com -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Mike McClure Sent: 21 December 2002 04:22 To: Scott Ripley Cc: nagios-users at lists.sourceforge.net Subject: Re: Solar Flares (was: RE: [Nagios-users] Fw: CGI Issue) Hi Scott, Who would have ever known that my wiseacre response would be so useful? :) Well, besides Miss Cleo and Kenny Kingston. Pretty neat idea! Thanks for sharing that! - Mike > > Mike, > > I added the snippet below into my side.html so I can easily monitor solar > activity from the Nagios interface. It includes charts for ground and > satelite based data. It doesn't pull the data into Nagios, but its > entertaining at the least (and the manager types seem to like it). I find it > corrolates well to WiFi, WAN, cell, pager, and psychic ;) trouble. > > You are correct, the solar activity has been moderately high lately. What > are the chances that this could ever be even remotely on-topic? Your > abilities should return when it subsides, and now you can predict future > lapses. > > > > > > name="satellite-dot"> > target="main" DEFANGED_onMouseOver="switchdot('satellite-dot',1)" > DEFANGED_onMouseOut="switchdot('satellite-dot',0)" class="NavBarItem">Satellite Env > (3day) > > > name="geostorm-dot"> > target="main" DEFANGED_onMouseOver="switchdot('geostorm-dot',1)" > DEFANGED_onMouseOut="switchdot('geostorm-dot',0)" class="NavBarItem">Geomagnetic > Storm Lvl > > > name="acertsw-dot"> > target="main" DEFANGED_onMouseOver="switchdot('acertsw-dot',1)" > DEFANGED_onMouseOut="switchdot('acertsw-dot',0)" class="NavBarItem">ACE RTSW
MAG > & SWEPAM
> > > Cheers, > > Scott. > > -----Original Message----- > From: Mike McClure [mailto:mmcclure at pneservices.com] > Sent: Friday, December 20, 2002 4:38 PM > To: Eric Gregory > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Fw: CGI Issue > > > Hi Eric, > > My psychic abilities are currently diminished due to solar flare activity. > Please > provide the following: > > - Nagios version > - Operating system and version > - Platform (Sparc, i386, etc) > - 'configure' output > - 'make' output > > -- > Mike McClure, CCIE # 5125, CISSP # 30232 > PNE Services, Inc. - http://www.pneservices.com > mmcclure at pneservices.com > mobile: 913-636-5590 > >> >> >> >> >> Last week I posted about a problem I was having with Authentication > through CGI's, >> basically I get authenticated through HTTP but I have no authority through > the >> CGI's, cgi.cfg seems to be correctly configured but no luck. >> >> I think I've found another issue that may be the root of the > authentication issue. >> >> when I build Nagios it seems as if not all of the CGI's are building. > most are fine >> but I know for sure there should be a statusmap.cgi, histogram.cgi, and >> statusmap.cgi, however they're not creating. >> >> After Running make all and going to the cgi directory I have other scripts > such as >> status.cgi, outages.cgi etc.... >> >> based on the source files in the cgi source directory am I correct in > assuming that >> I should also have at least the histogram.cgi, and statusmap.cgi as well > as an >> auth.cgi and more? >> >> If I'm correct does anyone know why these cgi's might not be building > properly? >> >> Thanks >> Eric > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: The Best Geek Holiday Gifts! > Time is running out! Thinkgeek.com has the coolest gifts for > your favorite geek. Let your fingers do the typing. Visit Now. > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users--------------- -------------------------- > (on rchss001) > > This e-mail and any files transmitted with it are the property > of Chiaro Networks, Ltd., and may contain confidential and > privileged material for the sole use of the intended recipient(s) > to whom this e-mail is addressed. If you are not one of the named > recipient(s), or otherwise have reason to believe that you have > received this message in error, please notify the sender and > delete all copies from your system. Any other use, retention, > dissemination, forwarding, printing or copying of this e-mail is > strictly prohibited. > > > --------------------------------------------------------- > -- Mike McClure, CCIE # 5125, CISSP # 30232 PNE Services, Inc. - http://www.pneservices.com mmcclure at pneservices.com mobile: 913-636-5590 ------------------------------------------------------- This SF.NET email is sponsored by: The Best Geek Holiday Gifts! Time is running out! Thinkgeek.com has the coolest gifts for your favorite geek. Let your fingers do the typing. Visit Now. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users -------------- next part -------------- ----------------------------------------- (on rchss001) This e-mail and any files transmitted with it are the property of Chiaro Networks, Ltd., and may contain confidential and privileged material for the sole use of the intended recipient(s) to whom this e-mail is addressed. If you are not one of the named recipient(s), or otherwise have reason to believe that you have received this message in error, please notify the sender and delete all copies from your system. Any other use, retention, dissemination, forwarding, printing or copying of this e-mail is strictly prohibited. --------------------------------------------------------- From natejohn at indiana.edu Tue Dec 24 01:40:07 2002 From: natejohn at indiana.edu (Nate Johnson) Date: Mon, 23 Dec 2002 19:40:07 -0500 (EST) Subject: controlling tty In-Reply-To: <1040565583.529.10.camel@toaster> References: <1040565583.529.10.camel@toaster> Message-ID: Yes, I tried that. Mike McClure ended up suggesting something that made all the difference. The check_by_ssh plugin was ssh'ing to the IP address (or $HOSTADRESS$), not the short hostname or the FQDN. Once I added the hostkey for the IP addresses I was trying to get to, everything was fine. Thanks, Nate On 22 Dec 2002, Karl DeBisschop wrote: > On Fri, 2002-12-20 at 21:14, Nate Johnson wrote: > > Maybe I wasn't clear enough about this in asking my question, but when > > ssh'ing to each host *from the command line* and not *from the cgi > > frontend* the checks succeed. It is when nagios is doing the regularly > > scheduled checks through the check_by_ssh plugin that the warning > > message is returned to the cgi frontend. The checks would have failed > > when executing them manually from the command line if the hostkey of > > the remote machine wasn't already stored in ~/.ssh/known_hosts. > > Have you tried '-f' ? > > -- > Karl DeBisschop > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > -- * Nate Johnson, UITS SysAdmin * natejohn at indiana.edu ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jasmine.chua at securecirt.com Tue Dec 24 06:45:52 2002 From: jasmine.chua at securecirt.com (Jasmine Chua) Date: Tue, 24 Dec 2002 13:45:52 +0800 Subject: tweaking latency Message-ID: <200212241346.03820.jasmine.chua@securecirt.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Merry X'Mas Hi all, This is really urgent! I am just wondering how can I lower the latency on my central monitoring server. Its currently Check Execution Time: < 1 sec / 90 sec / 1.657 sec Check Latency: 651 sec / 1675 sec / 1221.329 sec Percent State Change: 0.00% / 12.11% / 0.28% Below is the service scheduling information of my central monitoring server Nagios. max_concurrent_checks=300 service_reaper_frequency=5 SERVICE SCHEDULING INFORMATION ------------------------------- Total services: 578 Total hosts: 161 Command check interval: -1 sec Check reaper interval: 5 sec Inter-check delay method: SMART Average check interval: 299.585 sec Inter-check delay: 0.518 sec Interleave factor method: SMART Average services per host: 3.590 Service interleave factor: 4 Initial service check scheduling info: -------------------------------------- First scheduled check: 1040707565 -> Tue Dec 24 13:26:05 2002 Last scheduled check: 1040707865 -> Tue Dec 24 13:31:05 2002 Rough guidelines for max_concurrent_checks value: ------------------------------------------------- Absolute minimum value: 10 Recommend value: 30 Below is the service scheduling information of the distributed monitoring server that causes the high latency when put into the central server for monitoring. When I checked the log files I realised that certain remote hosts monitored by the distributed server are causing the latency but the strange thing is that their service and host status are in ok state. And, the rest of the remote hosts with ok state does not add onto the latency. Anyone have any idea why these remote hosts are causing latency when their services are ok? max_concurrent_checks=200 service_reaper_frequency=5 SERVICE SCHEDULING INFORMATION ------------------------------- Total services: 437 Total hosts: 142 Command check interval: -1 sec Check reaper interval: 5 sec Inter-check delay method: SMART Average check interval: 300.000 sec Inter-check delay: 0.686 sec Interleave factor method: SMART Average services per host: 3.077 Service interleave factor: 4 Initial service check scheduling info: -------------------------------------- First scheduled check: 1040707901 -> Tue Dec 24 05:31:41 2002 Last scheduled check: 1040708202 -> Tue Dec 24 05:36:42 2002 Rough guidelines for max_concurrent_checks value: ------------------------------------------------- Absolute minimum value: 8 Recommend value: 24 - -- Thanks! Jasmine Chua Security Engineer, SecureCiRT (A SBU of Z-Vance Pte Ltd) http://www.securecirt.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE+B/SaNgvTa7Hj2AURAogwAKChTsSIi00VxHC6fEWjZX9lTyMnggCeJYm9 7IK05DhMHD6aU+4fTr8/bik= =KRVV -----END PGP SIGNATURE----- ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From arjan at pwc-mas.nl Tue Dec 24 09:08:38 2002 From: arjan at pwc-mas.nl (Arjan de Graaff) Date: Tue, 24 Dec 2002 09:08:38 +0100 Subject: Downtime&Notification In-Reply-To: <3E07460D.3040206@quadrix.com> References: <3E07460D.3040206@quadrix.com> Message-ID: Yes you can but you wil have to temporaly make the check a passive check. The only problem is you have to do this in your config files so it is not usefull if you have a short downtime. Arjan -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Russell Scibetti Sent: maandag 23 december 2002 18:21 To: suporte, gecbr (CAP, GCF) Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Downtime&Notification You can't. The idea of downtime is a suppression of notifications, not the actual checks. The CGI's will show that the host is down, as will history and trends because the box is down, but you won't get notified. Russell suporte, gecbr (CAP, GCF) wrote: Hi all, When the host is down and the downtime process starts, it continues in "DOWN" state. The host does not assume the "OK" state. Does anybody know how to configure downtime for assuming OK state? Thanks in advance, AlbertoHelp Desk - GE Capital___________________________Av. do Cafe, 277 - 3? andar - Torre B04311-000 - Sao Paulo - SP - BrasilTel: (55 11) 6847-7433Fax: (55 11) 6847-7410E-mail: gecbr.suporte at gecapital.comEsta mensagem pode conter informa??o confidencial e/ou privilegiada. Se voc? n?o for o destinat?rio ou a pessoa autorizada a receber esta mensagem, n?o pode usar, copiar oudivulgar as informa??es nela contidas ou tomar qualquer a??o baseada nessas informa??es. Se voc? recebeu esta mensagem por engano, por favor avise imediatamente o remetente,respondendo o e-mail e em seguida apague-o. Agradecemos sua coopera??o.This message may contain confidential and/or privileged information. If you are not the addres see or authorized to receive this for the addressee, you must not use, copy,disclose or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail anddelete this message. Thank you for your cooperation.-------------------------------------------------------This sf.net email is sponsored by:ThinkGeekWelcome to geek heaven.http://thinkgeek.com/sf______________________________________________ _Nagios-users mailing listNagios-users at lists.sourceforge.nethttps://lists.sourceforge.net/lists/li stinfo/nagios-users -- Russell Scibetti Quadrix Solutions, Inc. http://www.quadrix.com (732) 235-2335, ext. 7038 -------------- next part -------------- An HTML attachment was scrubbed... URL: From atulsh at hclinsys.com Tue Dec 24 10:16:42 2002 From: atulsh at hclinsys.com (Atul Shrivastava) Date: Tue, 24 Dec 2002 14:46:42 +0530 Subject: Nagios Client configuration Message-ID: <006801c2ab2d$2c75c970$5f7b0297@atul> Hello All, I want to monitor some winnt and win2k servers. So for that I installed the nsclient. but the installaion is interrupted and now i am in trouble. Can anyone tell me how can i configure these servers for monitoring. Is there any other software to monitor it and also i want to monitor some routers. Can anyone provide me info regarding this. Thanks in advance. Regards and have a nice day, Atul Shrivastava -------------- next part -------------- An HTML attachment was scrubbed... URL: From twelsh at square-box.com Tue Dec 24 10:44:05 2002 From: twelsh at square-box.com (Tom Welsh) Date: Tue, 24 Dec 2002 09:44:05 -0000 Subject: Nagios Client configuration In-Reply-To: <006801c2ab2d$2c75c970$5f7b0297@atul> References: <006801c2ab2d$2c75c970$5f7b0297@atul> Message-ID: <000401c2ab30$ffe3e320$0400a8c0@squarebox.com> Hi Atul, I have stuck a site at http://demo.square-box.com which shows all the configuration files I used top setup http://nagios.square-box.com (Login/oassword guest/guest) in the services and chececk commands I have examples of using nrpe to check win2kservers Cheers Tom Welsh -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Atul Shrivastava Sent: 24 December 2002 09:17 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Nagios Client configuration Importance: High Hello All, I want to monitor some winnt and win2k servers. So for that I installed the nsclient. but the installaion is interrupted and now i am in trouble. Can anyone tell me how can i configure these servers for monitoring. Is there any other software to monitor it and also i want to monitor some routers. Can anyone provide me info regarding this. Thanks in advance. Regards and have a nice day, Atul Shrivastava -------------- next part -------------- An HTML attachment was scrubbed... URL: From atulsh at hclinsys.com Tue Dec 24 11:12:41 2002 From: atulsh at hclinsys.com (Atul Shrivastava) Date: Tue, 24 Dec 2002 15:42:41 +0530 Subject: Nagios Client configuration References: <000401c2ab30$ffe3e320$0400a8c0@squarebox.com> Message-ID: <008b01c2ab34$fe8ce1d0$5f7b0297@atul> Hi Tom, Thanks for the quick response. Sorry to say but this link is not working. Can you give me any "how to" for this. I want to monitor the routers also. Thanks in advance. Regards and have a nice day, Atul Shrivastava Info Structure Services HCL INFOSYSTEMS LTD. E - 4,5,6 Sector XI, Noida - 201301 Tel: 91-120-2526910,2443013 -------------------------------------------------------------------------------- ----- Original Message ----- From: Tom Welsh To: 'Atul Shrivastava' ; nagios-users at lists.sourceforge.net Sent: Tuesday, December 24, 2002 3:14 PM Subject: RE: [Nagios-users] Nagios Client configuration Hi Atul, I have stuck a site at http://demo.square-box.com which shows all the configuration files I used top setup http://nagios.square-box.com (Login/oassword guest/guest) in the services and chececk commands I have examples of using nrpe to check win2kservers Cheers Tom Welsh -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Atul Shrivastava Sent: 24 December 2002 09:17 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Nagios Client configuration Importance: High Hello All, I want to monitor some winnt and win2k servers. So for that I installed the nsclient. but the installaion is interrupted and now i am in trouble. Can anyone tell me how can i configure these servers for monitoring. Is there any other software to monitor it and also i want to monitor some routers. Can anyone provide me info regarding this. Thanks in advance. Regards and have a nice day, Atul Shrivastava -------------- next part -------------- An HTML attachment was scrubbed... URL: From jbenney at dot.state.ny.us Tue Dec 24 13:42:10 2002 From: jbenney at dot.state.ny.us (Jack Benney) Date: Tue, 24 Dec 2002 07:42:10 -0500 Subject: Nagios Client configuration Message-ID: Settle down a bit would be my first suggestion. What happened when you installed the nsclient? Did it crash the server or just didn't install correctly? Any details would be great. Depending on what happened when you installed the nsclient, you may be able to fix it. Nagios with the Plugins have built in capabilities to monitor both NT and win2k servers. For the most part I would assume that you could at least monitor PING from the servers. This goes for the routers as well. Check out http://nagios.org/ for more information on using Nagios as a network monitor. Merry Christmas Eve from NY! Jack Benney >>> "Atul Shrivastava" 12/24/02 04:16AM >>> Hello All, I want to monitor some winnt and win2k servers. So for that I installed the nsclient. but the installaion is interrupted and now i am in trouble. Can anyone tell me how can i configure these servers for monitoring. Is there any other software to monitor it and also i want to monitor some routers. Can anyone provide me info regarding this. Thanks in advance. Regards and have a nice day, Atul Shrivastava ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From atulsh at hclinsys.com Tue Dec 24 13:45:54 2002 From: atulsh at hclinsys.com (Atul Shrivastava) Date: Tue, 24 Dec 2002 18:15:54 +0530 Subject: How can I monitor Managed Switch & Router with Nagios Message-ID: <010401c2ab4a$6608d660$5f7b0297@atul> Hello All, Can anyone tell me that how can I monitor Managed Switch and Router (with SNMP enabled) with the Nagios. On the Switch and router side I can only enable SNMP service. Can anyone send me a full "How to" for it if you have done it earlier. Can there is any tool that does auto-discovery of the whole network so that I can configure the Nagios accordingly. One more thing that when I tried to install the NSClient on some winnt machine then it has given an error. Any sugessions ......? Thanks in advance. Regards and have a nice day, Atul Shrivastava Info Structure Services HCL INFOSYSTEMS LTD. E - 4,5,6 Sector XI, Noida - 201301 Tel: 91-120-2526910,2443013 -------------- next part -------------- An HTML attachment was scrubbed... URL: From atulsh at hclinsys.com Tue Dec 24 14:54:39 2002 From: atulsh at hclinsys.com (Atul Shrivastava) Date: Tue, 24 Dec 2002 19:24:39 +0530 Subject: Nagios Client configuration References: Message-ID: <015f01c2ab54$00dd4960$5f7b0297@atul> Hello Jack, When I install NSClient in my WinNT machine, then the installation is interrupted and the error raised is "The procedure entry point RtlStringFromGUID could not be located in the dynamic link library ntdll.dll" Can you tell me the problem and why this is happening so. Thanks in advance. Regards and have a nice day, Atul Shrivastava Info Structure Services HCL INFOSYSTEMS LTD. E - 4,5,6 Sector XI, Noida - 201301 Tel: 91-120-2526910,2443013 -------------------------------------------------------------------------------- ----- Original Message ----- From: "Jack Benney" To: ; Sent: Tuesday, December 24, 2002 6:12 PM Subject: Re: [Nagios-users] Nagios Client configuration > Settle down a bit would be my first suggestion. What happened when you installed the nsclient? Did it crash the server or just didn't install correctly? Any details would be great. Depending on what happened when you installed the nsclient, you may be able to fix it. > > Nagios with the Plugins have built in capabilities to monitor both NT and win2k servers. For the most part I would assume that you could at least monitor PING from the servers. This goes for the routers as well. Check out http://nagios.org/ for more information on using Nagios as a network monitor. > > Merry Christmas Eve from NY! > Jack Benney > > >>> "Atul Shrivastava" 12/24/02 04:16AM >>> > Hello All, > > I want to monitor some winnt and win2k servers. So for that I installed the nsclient. but the installaion is interrupted and now i am in trouble. Can anyone tell me how can i configure these servers for monitoring. Is there any other software to monitor it and also i want to monitor some routers. Can anyone provide me info regarding this. > Thanks in advance. > > Regards and have a nice day, > Atul Shrivastava > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From R.Ruecker at st-ag.de Tue Dec 24 17:01:07 2002 From: R.Ruecker at st-ag.de (Ruecker, Rainer) Date: Tue, 24 Dec 2002 17:01:07 +0100 Subject: Nagios Client configuration Message-ID: Hello Atul, Sounds like the pdh.dll and the psapi.dll are the wrong version. Check the Version of pdh.dll and psapi.dll. I've seen this Error when pdh.dll from windows XP was installed on NT4. If your NT-box is NT4, the versions should be pdh.dll: 5.0.2195.2739 or lower psapi.dll: 5.0.2134.1 or lower In case your box is W2k or XP, the versions should be pdh.dll: 5.1.2600.0 or higher psapi.dll: 5.1.2600.0 or higher AFAIK the NSClient-Distribution comes with both Versions of the dlls. Probably you just need to change them and the installation will succeed. HTH Rainer Ruecker > Hello Jack, > > When I install NSClient in my WinNT machine, then the > installation is interrupted and the error raised is "The > procedure entry point RtlStringFromGUID could not be > located in the dynamic link library ntdll.dll" > Can you tell me the problem and why this is happening so. > Thanks in advance. > > Regards and have a nice day, > Atul Shrivastava > Info Structure Services > HCL INFOSYSTEMS LTD. > E - 4,5,6 Sector XI, > Noida - 201301 > Tel: 91-120-2526910,2443013 ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jbenney at dot.state.ny.us Tue Dec 24 20:00:57 2002 From: jbenney at dot.state.ny.us (Jack Benney) Date: Tue, 24 Dec 2002 14:00:57 -0500 Subject: Nagios Client configuration Message-ID: Also make sure you have the latest service packs and patches from MS before you begin. I am pretty sure that ntdll.dll is a system file. Jack Benney http://pajonet.com >>> "Ruecker, Rainer" 12/24/02 11:01AM >>> Hello Atul, Sounds like the pdh.dll and the psapi.dll are the wrong version. Check the Version of pdh.dll and psapi.dll. I've seen this Error when pdh.dll from windows XP was installed on NT4. If your NT-box is NT4, the versions should be pdh.dll: 5.0.2195.2739 or lower psapi.dll: 5.0.2134.1 or lower In case your box is W2k or XP, the versions should be pdh.dll: 5.1.2600.0 or higher psapi.dll: 5.1.2600.0 or higher AFAIK the NSClient-Distribution comes with both Versions of the dlls. Probably you just need to change them and the installation will succeed. HTH Rainer Ruecker > Hello Jack, > > When I install NSClient in my WinNT machine, then the > installation is interrupted and the error raised is "The > procedure entry point RtlStringFromGUID could not be > located in the dynamic link library ntdll.dll" > Can you tell me the problem and why this is happening so. > Thanks in advance. > > Regards and have a nice day, > Atul Shrivastava > Info Structure Services > HCL INFOSYSTEMS LTD. > E - 4,5,6 Sector XI, > Noida - 201301 > Tel: 91-120-2526910,2443013 ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jnichols at pbp.net Tue Dec 24 23:42:58 2002 From: jnichols at pbp.net (Jonathan Nichols) Date: Tue, 24 Dec 2002 14:42:58 -0800 (PST) Subject: libpng error? Message-ID: Hey guys - I needed to restore the box that Netsaint is running on. Everything went well (nice to be able to just tar up /usr/local/netsaint and have everything remain intact..whew) except the statusmap.cgi isn't working anymore. Here's the error in error_log: [Tue Dec 24 13:10:03 2002] [error] [client 192.168.10.177] Premature end of script headers: /usr/local/netsaint/sbin/statusmap.cgi statusmap.cgi: error while loading shared libraries: libpng.so.2: cannot open shared object file: No such file or directory Now, I installed libpng-1.2.5 before I fired Netsaint back up. Here's what's in /usr/local/lib: lrwxrwxrwx 1 root 10 Dec 24 13:16 libpng.a -> libpng12.a lrwxrwxrwx 1 root 11 Dec 24 13:16 libpng.so -> libpng.so.3* lrwxrwxrwx 1 root 17 Dec 24 13:16 libpng.so.3 -> libpng.so.3.1.2.5* -rwxr-xr-x 1 root 198725 Dec 24 13:16 libpng.so.3.1.2.5* -rw-r--r-- 1 root 171310 Dec 24 13:16 libpng12.a lrwxrwxrwx 1 root 13 Dec 24 13:16 libpng12.so -> libpng12.so.0* lrwxrwxrwx 1 root 19 Dec 24 13:16 libpng12.so.0 -> libpng12.so.0.1.2.5* -rwxr-xr-x 1 root 198757 Dec 24 13:16 libpng12.so.0.1.2.5* -rwxr-xr-x 1 root 65262 Dec 21 07:42 libz.a* drwxr-xr-x 18 root 568 Dec 21 10:55 php/ drwxr-xr-x 2 root 112 Dec 24 13:16 pkgconfig/ Can I just make a symlink to libpng.so.3.1.2.5 and call it libpng.so.2 or will that fail miserably? Also, what's the status on the Nagios plugins? The sourceforge page says that they're still in beta. Is there an estimated "release date" for the final? I'd hate to move from Netsaint to Nagios, only to have the final plugins come out 2 days later. :) Thanks, and happy holidays! -Jonathan ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From atulsh at hclinsys.com Wed Dec 25 12:15:54 2002 From: atulsh at hclinsys.com (Atul Shrivastava) Date: Wed, 25 Dec 2002 16:45:54 +0530 Subject: Monitoring Win NT & 2K Machine Message-ID: <010801c2ac06$fe1c1630$5f7b0297@atul> Hello, I want to monitor some of my Win NT and Win 2K machine. For that, When I install NSClient in my WinNT machine, then the installation is interrupted and the error raised is "The procedure entry point RtlStringFromGUID could not be located in the dynamic link library ntdll.dll" Can you tell me the problem and why this is happening so. Also tell me what all is required on the management server (Nagios) side. Thanks in advance. Regards and have a nice day, Atul Shrivastava Info Structure Services HCL INFOSYSTEMS LTD. E - 4,5,6 Sector XI, Noida - 201301 Tel: 91-120-2526910,2443013 -------------- next part -------------- An HTML attachment was scrubbed... URL: From inconnu at chello.at Wed Dec 25 15:52:08 2002 From: inconnu at chello.at (Stefan Hornek) Date: Wed, 25 Dec 2002 15:52:08 +0100 Subject: Problem with plugin Message-ID: <200212251552.08599.inconnu@chello.at> I tryed to install the Problem as mentioned in the install file. But as you can see it stops by the ping - something. I don't have any idea what the Problem could be. I didn't have any problem installing the nagios main programm. OS: Mandrake 9.0 (Download Version) CPU: PII 450Mhz Ram: 400MB pls help me inc ----------------------------------------------------------------------------------- [root at server nagios-plugins-1.3.0-beta2]# ./configure --prefix=/usr/local/nagios --with-nagios-user=nagios --with-nagios-group=nagios --with-cgiurl=/nagios/cgi-bin loading cache ./config.cache checking for a BSD compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking whether make sets ${MAKE}... yes checking for working aclocal... found checking for working autoconf... found checking for working automake... found checking for working autoheader... found checking for working makeinfo... found checking for a BSD compatible install... /usr/bin/install -c checking for gcc... gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking whether make sets ${MAKE}... (cached) yes checking for gawk... gawk checking how to run the C preprocessor... gcc -E checking for elf_begin in -lelf... no checking for kvm_open in -lkvm... no checking for getloadavg in -lutil... yes checking for getloadavg... yes checking whether getloadavg requires setgid... (cached) yes checking group of /dev/kmem... root checking for working strtod... yes checking for ranlib... ranlib checking for aclocal... /usr/bin/aclocal checking for automake... /usr/bin/automake checking for autoconf... /usr/bin/autoconf checking for autoheader... /usr/bin/autoheader checking for python... /usr/bin/python checking for perl... /usr/bin/perl checking for sh... /bin/sh checking for hostname... /bin/hostname checking for basename... /bin/basename checking for main in -ldce... no checking for main in -lnsl... yes checking for socket in -lsocket... no checking for main in -lresolv... yes checking for main in -lcrypt... yes checking for PQsetdbLogin in -lpq... no configure: warning: Skipping PostgreSQL plugin (check_pgsql) configure: warning: LIBS=-lcrypt -lutil CPPFLAGS= configure: warning: install PostgreSQL libs to compile this plugin (see Requirements). checking for rc_read_config in -lradiusclient... no configure: warning: Skipping radius plugin configure: warning: install radius libs to compile this plugin (see Requirements). checking for main in -lldap... no configure: warning: Skipping LDAP plugin configure: warning: install LDAP libs to compile this plugin (see Requirements). configure: warning: Skipping mysql plugin configure: warning: install mysql client libs to compile this plugin (see Requirements). checking for openssl... /usr/bin/openssl checking for openssl/x509.h... no checking for openssl/ssl.h... no checking for openssl/rsa.h... no checking for openssl/pem.h... no checking for openssl/crypto.h... no checking for openssl/err.h... no checking for x509.h... no checking for ssl.h... no checking for rsa.h... no checking for pem.h... no checking for crypto.h... no checking for err.h... no checking for CRYPTO_lock in -lcrypto... no checking for ANSI C header files... yes checking whether time.h and sys/time.h may both be included... yes checking for sys/wait.h that is POSIX.1 compatible... yes checking for signal.h... yes checking for strings.h... yes checking for string.h... yes checking for syslog.h... yes checking for unistd.h... yes checking for uio.h... no checking for errno.h... yes checking for regex.h... yes checking for sys/types.h... yes checking for sys/time.h... yes checking for sys/socket.h... yes checking for sys/loadavg.h... no checking for stdarg.h... yes checking for sys/unistd.h... yes checking for unistd.h... (cached) yes checking for ctype.h... yes checking for sys/wait.h... (cached) yes checking for stdlib.h... yes checking for working const... yes checking whether struct tm is in sys/time.h or time.h... time.h checking for pid_t... yes checking for size_t... yes checking return type of signal handlers... void checking size of int... 4 checking size of long... 4 checking size of short... 2 checking for long long... yes checking for LL suffix on long long integers... yes checking for __va_copy... yes checking for C99 vsnprintf... yes checking for snprintf... yes checking for vsnprintf... yes checking for vasprintf... yes checking for asprintf... yes checking for getopt_long... yes checking for memmove... yes checking for select... yes checking for socket... yes checking for strdup... yes checking for strstr... yes checking for strtod... yes checking for strtol... yes checking for strtoul... yes checking for type of socket size... int checking for ps... /bin/ps ps syntax... /bin/ps -weo 'stat comm vsz rss user ppid args' checking for df... /bin/df df syntax... /bin/df -Pk checking for ping... /bin/ping ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From lj at mandala-designs.com Wed Dec 25 22:21:11 2002 From: lj at mandala-designs.com (ljacobs ) Date: Wed, 25 Dec 2002 16:21:11 -0500 Subject: statusmap and trends Message-ID: <200212251621.AA36242142@mandala-designs.com> Sine upgrading to RH 8 (and apache 2) I am unable to display either the statusmaps or trend report. Is this due to some change in the GD libs or something else that is known? Thanks for any advice. ________________________________________________________________ Sent via the WebMail system at mandala-designs.com ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From sureshot2k at hotmail.com Thu Dec 26 09:19:10 2002 From: sureshot2k at hotmail.com (Alec) Date: Thu, 26 Dec 2002 03:19:10 -0500 Subject: NSClient Commands Returning (null) just in nagios References: Message-ID: My commands from check_nt work on the command line, but show as (null) for status information when called by nagios (but it says Status Ok.). Same issue with 1.06.2 and 1.07 beta. Here's how I setup the commands. I added the -s paramater based on what I saw at http://demo.square-box.com/checkcommandscfg.htm, but it seems to do the same without it. # NSClient NT Check Commands # 'check_nt_disk' command definition define command{ command_name check_nt_disk command_line $USER1$/check_nt -H $HOSTADDRESS -p 1248 -v USEDDISKSPACE -l $ARG1$ -w $ARG2$ -c $ARG3$ } # 'check_nt_cpuload' command definition define command{ command_name check_nt_cpuload command_line $USER1$/check_nt -H $HOSTADDRESS -p 1248 -s $USER5$ -v CPULOAD -l $ARG1$ } services.cfg piece: define service{ use generic-service ; Name of service template to use host_name i2000 service_description CPU LOAD is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 3 retry_check_interval 1 contact_groups i-admins notification_interval 120 notification_period 24x7 notification_options w,u,c,r check_command check_nt_cpuload } # Service definition define service{ use generic-service ; Name of service template to use host_name i2000 service_description DISK C is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 3 retry_check_interval 1 contact_groups i-admins notification_interval 120 notification_period 24x7 notification_options w,u,c,r check_command check_nt_disk!c!75!90 } bits of nagios.log: [1040887879] SERVICE ALERT: i2000;CPU LOAD;OK;SOFT;3;(null) [1040887889] SERVICE ALERT: i2000;DISK C;OK;SOFT;2;(null) Any ideas? Thanks ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From tdeblend at gcc.dhl.com Thu Dec 26 10:09:20 2002 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Thu, 26 Dec 2002 10:09:20 +0100 Subject: Notification to Mobile..... References: <01C2A806.4D519EA0.ralph.zimmermann@salt-ag.com> Message-ID: <3E0AC740.74FD3310@gcc.dhl.com> The real problem here is that you rely on internet connectivity and a working email system. If you want to get paged when 1) your internet link breaks down or 2) your email system is a goner, then you're out of luck. The best thing still is attaching a plain old modem to the serial port and use tools like http://www.smsclient.org. Ralph Zimmermann wrote: > > I'm doing it in a similar way, sending alerts to mobilenumber at T-Mobile gateway. The only problem > with those message services is the fact that you do not have a determined delivery time > for the SMS from the message center to the mobile. Somtimes I'm ending up receiving alarms at > 7am in the morning, that had been sucessfully sent to the T-Mobile gateway at 10pm the night before. > Not really usefull if a box is already down for 9 hours when the alarm finally reaches you. > > Cheers, > Ralph. > > -----Original Message----- > From: Tom Welsh [SMTP:twelsh at square-box.com] > Sent: Thursday, December 19, 2002 8:49 PM > To: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Notification to Mobile..... > > I did this at a pervious company. We used the vodapage gateway service > and we just sent an email to the mobilenumber at vodapage.net and it went > to trhe correct person. It worked great, too good infact that I always > knew when something went down at 4am, even when I wasn't on shift (Doh!) > remember to get your notifications and time periods sorted > > Cheers > > Tom Welsh > twelsh at square-box.com > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Pete > Dewell > Sent: 19 December 2002 14:49 > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Notification to Mobile..... > > I just set up an email-to-SMS address with our mobile phone service, and > send out emails. > > Pete Dewell > > Daniel Geske wrote: > > > > Dear Thiru, > > > > yaps worked fine for me. > > http://www.nagios.org/faqs/viewfaq.php?faq_id=65 > > > > Greetings > > > > Daniel > > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net > > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of > Thirumalai > > Srinivasan > > Sent: Thursday, December 19, 2002 11:30 AM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Notification to Mobile..... > > > > HI > > > > I have installed Nagios for my environment.Things are working fine > except > > the notification to my mobile.How do i do this.I gave my mobile number > with > > the country code ..eg +919840132325 ...but this format is not > working...Im > > not sure whether this is right..Can someone help me in this... > > > > Regards > > Thiru > > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From tdeblend at gcc.dhl.com Thu Dec 26 11:40:16 2002 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Thu, 26 Dec 2002 11:40:16 +0100 Subject: [Nagiosplug-help] Plugins are not working References: <005d01c2acbc$78761970$5f7b0297@atul> <3E0AC7E6.DBF0F9F8@gcc.dhl.com> <001a01c2acc4$b6abe000$5f7b0297@atul> Message-ID: <3E0ADC90.57E7286@gcc.dhl.com> Please post your replies to the list. > Atul Shrivastava wrote: > > Hello Tom, > > Thx for the quick reply. > My problem is that I want to monitor a network which consists of > WinNT, 2K, Linux, Switches and routers. > Can you tell me a way in which I can monitor all these things > convenently and quickly. Basically I want to monitor these using > SNMP only. Is there a way out. > Further, I configured the NRPE Plugin in Linux machine but the > plugin is not working correctly and the Nagios is unable to > communicate to them. > For the WinNT, When I install NSClient in my WinNT machine, then the > installation is interrupted and the error raised is "The procedure > entry point RtlStringFromGUID could not be located in the dynamic > link library ntdll.dll" > Can you tell me the problem and why this is happening so. Also tell > me what all is required on the management server (Nagios) side. > Now I think that you can understand my problem. Waiting for reply. > Thanks in advance. > > Regards and have a nice day, > Atul Shrivastava > Info Structure Services > HCL INFOSYSTEMS LTD. > E - 4,5,6 Sector XI, > Noida - 201301 > Tel: 91-120-2526910,2443013 > > ----- Original Message ----- > From: "Tom DE BLENDE" > To: "Atul Shrivastava" > Sent: Thursday, December 26, 2002 2:42 PM > Subject: Re: [Nagiosplug-help] Plugins are not working > > > Well, i'm afraid that you'll have to provide some more info > (again). > > Do they woprk from the command line? Did your pre-flight check run > ok > > (nagios -v configfile)? What is shown as Status Information? What > > plugins are you using? > > > > > Atul Shrivastava wrote: > > > > > > Hello All, > > > > > > I have installed Nagios sucessfully, my web-console is comming > right > > > but the plugins are not working. I don't know why, can anyone > tell > > > me why is it happenig. Also tell me the solution. Every > host is > > > showing as red and service as critical. > > > Thanks in advance. > > > > > > Regards and have a nice day, > > > Atul Shrivastava > > > Info Structure Services > > > HCL INFOSYSTEMS LTD. > > > E - 4,5,6 Sector XI, > > > Noida - 201301 > > > Tel: 91-120-2526910,2443013 > > > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From atulsh at hclinsys.com Thu Dec 26 14:11:22 2002 From: atulsh at hclinsys.com (Atul Shrivastava) Date: Thu, 26 Dec 2002 18:41:22 +0530 Subject: Plugin not woeking ...... Message-ID: <001a01c2ace0$49ebff10$5f7b0297@atul> Hello All, My problem is that I want to monitor a network which consists of WinNT, 2K, Linux, Switches and routers. Can anyone tell me a way in which I can monitor all these things convenently and quickly. Basically I want to monitor these using SNMP only. Is there a way out. Further, I configured the NRPE Plugin in Linux machine but the plugin is not working correctly and the Nagios is unable to communicate to them. For the WinNT, When I install NSClient in my WinNT machine, then the installation is complete and it is running in the Service but it is not making any effect on the Nagios Console. Can anyone tell me the problem and why this is happening so. Also tell me what all is required on the management server (Nagios) side. Thanks in advance. Regards and have a nice day, Atul Shrivastava Info Structure Services HCL INFOSYSTEMS LTD. E - 4,5,6 Sector XI, Noida - 201301 Tel: 91-120-2526910,2443013 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jlyons30 at yahoo.com Thu Dec 26 16:31:35 2002 From: jlyons30 at yahoo.com (Jon Lyons) Date: Thu, 26 Dec 2002 07:31:35 -0800 (PST) Subject: NSClient Commands Returning (null) just in nagios In-Reply-To: References: Message-ID: <20021226153135.3058.qmail@web21502.mail.yahoo.com> I've tried both versions and only get "null" at the command prompt. How do you just a list of monitorable variables? I tried -d SHOWALL but I just get null.... Alec <sureshot2k at hotmail.com> wrote: My commands from check_nt work on the command line, but show as (null) for status information when called by nagios (but it says Status Ok.). Same issue with 1.06.2 and 1.07 beta. Here's how I setup the commands. I added the -s paramater based on what I saw at http://demo.square-box.com/checkcommandscfg.htm, but it seems to do the same without it. # NSClient NT Check Commands # 'check_nt_disk' command definition define command{ command_name check_nt_disk command_line $USER1$/check_nt -H $HOSTADDRESS -p 1248 -v USEDDISKSPACE -l $ARG1$ -w $ARG2$ -c $ARG3$ } # 'check_nt_cpuload' command definition define command{ command_name check_nt_cpuload command_line $USER1$/check_nt -H $HOSTADDRESS -p 1248 -s $USER5$ -v CPULOAD -l $ARG1$ } services.cfg piece: define service{ use generic-service ; Name of service template to use host_name i2000 service_description CPU LOAD is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 3 retry_check_interval 1 contact_groups i-admins notification_interval 120 notification_period 24x7 notification_options w,u,c,r check_command check_nt_cpuload } # Service definition define service{ use generic-service ; Name of service template to use host_name i2000 service_description DISK C is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 3 retry_check_interval 1 contact_groups i-admins notification_interval 120 notification_period 24x7 notification_options w,u,c,r check_command check_nt_disk!c!75!90 } bits of nagios.log: [1040887879] SERVICE ALERT: i2000;CPU LOAD;OK;SOFT;3;(null) [1040887889] SERVICE ALERT: i2000;DISK C;OK;SOFT;2;(null) Any ideas? Thanks ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From jlyons30 at yahoo.com Thu Dec 26 16:43:04 2002 From: jlyons30 at yahoo.com (Jon Lyons) Date: Thu, 26 Dec 2002 07:43:04 -0800 (PST) Subject: Check_http & proxy server on port 8080? In-Reply-To: <3E0ADC90.57E7286@gcc.dhl.com> References: <3E0ADC90.57E7286@gcc.dhl.com> Message-ID: <20021226154304.83587.qmail@web21512.mail.yahoo.com> Is anyone monitoring websites via a proxy server, and if so how? Thanks.. --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From jlyons30 at yahoo.com Thu Dec 26 17:08:47 2002 From: jlyons30 at yahoo.com (Jon Lyons) Date: Thu, 26 Dec 2002 08:08:47 -0800 (PST) Subject: Nevermind-- Check_http & proxy server on port 8080? In-Reply-To: <20021226154304.83587.qmail@web21512.mail.yahoo.com> References: <20021226154304.83587.qmail@web21512.mail.yahoo.com> Message-ID: <20021226160847.16244.qmail@web21509.mail.yahoo.com> ./check_http -H www.cnn.com -I 77.69.251.6 -p 8080 -s new Is anyone monitoring websites via a proxy server, and if so how? Thanks.. --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From p.miquet at hafiba.fr Thu Dec 26 18:02:49 2002 From: p.miquet at hafiba.fr (Pascal Miquet) Date: 26 Dec 2002 18:02:49 +0100 Subject: [Nagiosplug-help] Plugin not woeking ...... In-Reply-To: <001a01c2ace0$49ebff10$5f7b0297@atul> References: <001a01c2ace0$49ebff10$5f7b0297@atul> Message-ID: <1040922160.4725.14.camel@moishe> According to SNMP, you can use the check_snmp plugin. I've installed and test the beta2 version, after configuring my switches to get snmpwalk to work, snmp plugin is working pretty fine. According to LiNUX boxes, I've also made the test and installation where fine. Did you check that your nagios server can access to the NRPE service on your linux. A telnet server 5666 (if this is you port) may tell you if thing are going rights, and finaly you may run the check_nrpe command manually. NT Client, I don't know, because I didn't try an installation Regards Pascal Miquet Le jeu 26/12/2002 ? 14:11, Atul Shrivastava a ?crit : > Hello All, > > My problem is that I want to monitor a network which consists of WinNT, 2K, Linux, Switches and routers. Can anyone tell me a way in which I can monitor all these things convenently and quickly. Basically I want to monitor these using SNMP only. Is there a way out. > Further, I configured the NRPE Plugin in Linux machine but the plugin is not working correctly and the Nagios is unable to communicate to them. > For the WinNT, When I install NSClient in my WinNT machine, then the installation is complete and it is running in the Service but it is not making any effect on the Nagios Console. > > Can anyone tell me the problem and why this is happening so. Also tell me what all is required on the management server (Nagios) side. > Thanks in advance. > > Regards and have a nice day, > Atul Shrivastava > Info Structure Services > HCL INFOSYSTEMS LTD. > E - 4,5,6 Sector XI, > Noida - 201301 > Tel: 91-120-2526910,2443013 > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jcarro10 at sprintspectrum.com Thu Dec 26 18:01:13 2002 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Thu, 26 Dec 2002 11:01:13 -0600 Subject: Measuring Latency Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E11BF@PKDWB03C.ad.sprint.com> (I'm catching up on e-mails I missed while away on vacation.) You might want to check out SmokePing (RRDTool-based). jc > -----Original Message----- > From: Erich Kuehn [mailto:erich at omnilux.net] > Sent: Thursday, December 19, 2002 11:59 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Measuring Latency > > > Im trying to measure latency on my network. My problem is > that, ping as > a measurement tool is extremely inaccurate. Due to the fact that a > system sees a ping as a relatively low priority, it does not > always get > handled as it should. I'm looking for a way to measure latency with > accuracy in the microseconds range, Any Ideas? > > Does anyone have a plugin or suggestion for this? > > Thanks > > Erich > > > ------------------------------------------------------- > This SF.NET email is sponsored by: Geek Gift Procrastinating? > Get the perfect geek gift now! Before the Holidays pass you by. > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From swhitney at journyx.com Thu Dec 26 19:22:47 2002 From: swhitney at journyx.com (Scott Whitney) Date: Thu, 26 Dec 2002 12:22:47 -0600 Subject: Nagios dependency question Message-ID: <012901c2ad0b$caa34b60$aa64a8c0@whitneys> Background: a) Nagios runs "here" b) There is a router "here" c) It goes across the Internet to my coloc site (call it "there") d) There is a router "there" e) For the purposes of this example, there is 1 "machine" there f) "machine" runs httpd g) this httpd is shared for all web apps on the box, of which there are 55 h) I have a script which checks the status of this web app. Here's my problem. When the router, here, is down, I get 59 messages. That is, router "here", router "there", machine ping, machine httpd + 55 sites. I can solve this using dependencies, but here's my question. For the dependencies to work properly, each of the sites must be dependent on: a) httpd b) ping machine c) ping router "there" d) ping router "here" Let's assume I check this every minute. My math says that this is roughly 280 hits on httpd per minute (55 * 5 + 5), 280 pings to the machine per minute, 280 pings to the router there per minute and 280 pings to the router here per minute. This gets a little worse when you realize I actually have over 200 sites, not 55. Also on 7 boxes, not one, so we're looking at more like 1005 per minute, spread unevenly across several boxes. The question, then, is whether anyone has run into this and/or does Nagios take this into consideration via any caching mechanism? The documentation says "Before Nagios executes a service check or sends notifications out for a service, it will check to see if the service has any dependencies. If it doesn't have any dependencies, the check is executed or the notification is sent out as it normally would be. If the service does have one or more dependencies, Nagios will check each dependency entry as follows: Nagios gets the current status* of the service that is being depended upon. " * by default this is the current HARD state So...from where is it getting this information? Further perusal through the theory section helps me not at all... Anyone have ideas on this? Thanks, Scott Whitney swhitney at Journyx.com ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From john at journyx.com Thu Dec 26 19:42:45 2002 From: john at journyx.com (John Maddalozzo) Date: Thu, 26 Dec 2002 12:42:45 -0600 (CST) Subject: Nagios dependency question In-Reply-To: <012901c2ad0b$caa34b60$aa64a8c0@whitneys> References: <012901c2ad0b$caa34b60$aa64a8c0@whitneys> Message-ID: On Thu, 26 Dec 2002, Scott Whitney wrote: > Background: > a) Nagios runs "here" > b) There is a router "here" > c) It goes across the Internet to my coloc site (call it "there") > d) There is a router "there" > e) For the purposes of this example, there is 1 "machine" there > f) "machine" runs httpd > g) this httpd is shared for all web apps on the box, of which there are 55 > h) I have a script which checks the status of this web app. > > Here's my problem. When the router, here, is down, I get 59 messages. That > is, router "here", router "there", machine ping, machine httpd + 55 sites. No, actually you don't get the "site down" messages, but you do (or did) get the "machine down" messages. At least that is what was happening the other day. I already put in an additional dependency ( I think it is on the coloc-router) for the machine notifications. I think this is covered now, but I haven't tested it. Should be able to test it by unplugging the T1. Note there are two types of dependencies. host and service. I added the service dependency. The host dependency was already there. I don't understand your math below. > > I can solve this using dependencies, but here's my question. > > For the dependencies to work properly, each of the sites must be dependent > on: > a) httpd > b) ping machine > c) ping router "there" > d) ping router "here" > > Let's assume I check this every minute. My math says that this is roughly > 280 hits on httpd per minute (55 * 5 + 5), 280 pings to the machine per Huh? What's the *5? and +5? > minute, 280 pings to the router there per minute and 280 pings to the router > here per minute. > > This gets a little worse when you realize I actually have over 200 sites, > not 55. Also on 7 boxes, not one, so we're looking at more like 1005 per > minute, spread unevenly across several boxes. > > The question, then, is whether anyone has run into this and/or does Nagios > take this into consideration via any caching mechanism? The documentation > says > > "Before Nagios executes a service check or sends notifications out for a > service, it will check to see if the service has any dependencies. If it > doesn't have any dependencies, the check is executed or the notification is > sent out as it normally would be. If the service does have one or more > dependencies, Nagios will check each dependency entry as follows: > Nagios gets the current status* of the service that is being depended upon. > " > > * by default this is the current HARD state I presume either out of the state file, or it's image in shared mem. > > So...from where is it getting this information? Further perusal through the > theory section helps me not at all... > > Anyone have ideas on this? > > Thanks, > > Scott Whitney > swhitney at Journyx.com > -- __________________________________________________________________ Web-Based Project Management and TimeSheet Software Journyx Timesheet http://www.journyx.com John Maddalozzo, V.P. Engineering - john at journyx.com (512)833-3274 ------------------------------------------------------------------ ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jcarro10 at sprintspectrum.com Thu Dec 26 20:46:44 2002 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Thu, 26 Dec 2002 13:46:44 -0600 Subject: Nagios dependency question Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F24AD@PKDWB03C.ad.sprint.com> Scott Whitney wrote: > Background: > a) Nagios runs "here" > b) There is a router "here" > c) It goes across the Internet to my coloc site (call it "there") > d) There is a router "there" > e) For the purposes of this example, there is 1 "machine" there > f) "machine" runs httpd > g) this httpd is shared for all web apps on the box, of which > there are 55 > h) I have a script which checks the status of this web app. > > Here's my problem. When the router, here, is down, I get 59 > messages. That > is, router "here", router "there", machine ping, machine > httpd + 55 sites. Heh. I'm not aware of a check_sites plugin. ;-) How are you actually checking whether a 'site' is up or down? (This might be moot, but it might be useful info.) > I can solve this using dependencies, but here's my question. You *can*, but I would recommend you define parents in your hosts.cfg. Much gentler on the ol' grey matter. Read: http://your_nagios_server/nagios/docs/xodtemplate.html#host and go straight to the 'parents' directive. Worth noting: You don't need to define *all* the parent nodes in a given hosts config definition. In your case, 'router there' would be the parent for all the hosts at the colo, 'router here' would be the parent to 'router there'. (I'm not entirely certain how/when you would want to define multiple parents, quite honestly, but I'm taking the simple approach, and it works quite well.) > For the dependencies to work properly, each of the sites must > be dependent > on: > a) httpd > b) ping machine > c) ping router "there" > d) ping router "here" > > Let's assume I check this every minute. My math says that > this is roughly > 280 hits on httpd per minute (55 * 5 + 5), 280 pings to the > machine per > minute, 280 pings to the router there per minute and 280 > pings to the router > here per minute. I'm not sure how you arrive at those values. According to what you've told us, you have 3 pingable IP addresses, therefore you would get 1 ping per node per minute. As for httpd hits, you've so far stated that you have 1 httpd daemon, so we can only extrapolate that only 1 socket is being listened on. Perhaps once you've clarified how you define a 'site' and how you're checking each site, that'll become clearer. (If you mean that you've defined 55 IP aliases and you're pinging each one, etc...?) > This gets a little worse when you realize I actually have > over 200 sites, > not 55. Also on 7 boxes, not one, so we're looking at more > like 1005 per > minute, spread unevenly across several boxes. Not quite that bad, given the logic I've been following. > The question, then, is whether anyone has run into this > and/or does Nagios > take this into consideration via any caching mechanism? The > documentation > says Do you mean caching a ping or an httpd check? That somewhat defeats the purpose of doing the check to begin with, I'd think, even assuming that you could do so. > "Before Nagios executes a service check or sends > notifications out for a > service, it will check to see if the service has any > dependencies. If it > doesn't have any dependencies, the check is executed or the > notification is > sent out as it normally would be. If the service does have one or more > dependencies, Nagios will check each dependency entry as follows: > Nagios gets the current status* of the service that is being > depended upon. > " > > * by default this is the current HARD state > > So...from where is it getting this information? Further > perusal through the > theory section helps me not at all... > > Anyone have ideas on this? Yes. Just skip the whole dependancies bit for now, and focus on parents. Unless you're really really in the mood for visualizing a 4-D Klein bottle. ;) jc > Thanks, > > Scott Whitney > swhitney at Journyx.com > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jcarro10 at sprintspectrum.com Thu Dec 26 23:05:06 2002 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Thu, 26 Dec 2002 16:05:06 -0600 Subject: Nagios dependency question Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F24AE@PKDWB03C.ad.sprint.com> [CC'ing to the list for the sake of continuity.] Scott Whitney wrote: > Thanks for the help, but parents only solve part of the > equation. Here's > the actual dependency structure: > > nagios --> NAT Router --> Cisco Router --> INTERNET --> coloc > router --> > ping machine --> httpd machine --> check_site (mine) That's what I'd figured (for the most part). The only part I'm unfamiliar with is check_site. From what you're now saying, check_site can fail on its own, but if check_http fails, you'll get a notification for the failed check_http *as well as* a failed check_site (times 55)? If you can think of even one scenario where check_http will fail but check_site will come back OK, you may not want to define that dependancy. > Now, check_site is a service similar to httpd, but it looks > for certain > things that the web app throws back in the headers. I take it that your check_site plugin does something that you weren't able to do with either the -e or the -s option in check_http...? Just curious; sometimes the finer details of the plugins are overlooked. If check_site is basically an enhancement to check_http, I'm wondering why you're using check_http at all. Having said that, it's worth noting that (in a proper config) a service on a given host depends on the host itself being available. If the service fails, it should check to see whether the host check is good or not, and if not, would only alert on the failed host, not on the N failed services. Taking that approach, once you define parents (as per my previous e-mail), then if the remote router fails, everything behind that will be indeterminate (you have no way of knowing whether they're up or down), and if the local router fails, then everything behind that (including the remote router) will be indeterminate. > So, what I've got, then is: > > NAT Router (host) --> Cisco Router (host) --> Coloc Router (host) --> > machine (host) --> httpd (service) --> check_site (service) > > If I'm checking 55 sites (service checks) per minute, and > let's say that > Coloc Router is down, I want the logic to work as such: > > Well, Coloc Router is down, which means that everyone who has > Coloc Router > as a parent is down, and therefore you can't possibly check > the services on > those machines. Nagios should not, in this case, log the > services as down, > but rather the machines. The docs are unclear on the status > of checking a > service with parent hosts down. Do you know how this works? If a router is down, you can't flag the hosts *or* the services behind that router as down. Or up. How could you possibly know? They're indeterminate (unreachable). You would need an out-of-band connection to check whether a remote host/service is down/up. > Does that make sense? Sure does. Just try not to get caught up in the excitement of defining dependancies. I've gone through that as well; you'll find yourself doing a *lot* more keystrokes for effectively the same thing to meet your particular needs. (I did it so that for the N NRPE checks on a given host, there are N-1 dependancies on a very basic "echo OK - NRPE is working" test. Take those definitions and try rolling them out across all your hosts... not fun.) Try using the parents approach. You may be pleasantly surprised. jc > Thanks, again. > > Scott > ----- Original Message ----- > From: "Carroll, Jim P [Contractor]" > To: "'Scott Whitney'" ; > > Sent: Thursday, December 26, 2002 1:46 PM > Subject: RE: [Nagios-users] Nagios dependency question > > > > Scott Whitney wrote: > > > Background: > > > a) Nagios runs "here" > > > b) There is a router "here" > > > c) It goes across the Internet to my coloc site (call it "there") > > > d) There is a router "there" > > > e) For the purposes of this example, there is 1 "machine" there > > > f) "machine" runs httpd > > > g) this httpd is shared for all web apps on the box, of which > > > there are 55 > > > h) I have a script which checks the status of this web app. > > > > > > Here's my problem. When the router, here, is down, I get 59 > > > messages. That > > > is, router "here", router "there", machine ping, machine > > > httpd + 55 sites. > > > > Heh. I'm not aware of a check_sites plugin. ;-) How are > you actually > > checking whether a 'site' is up or down? (This might be > moot, but it > might > > be useful info.) > > > > > I can solve this using dependencies, but here's my question. > > > > You *can*, but I would recommend you define parents in your > hosts.cfg. > Much > > gentler on the ol' grey matter. Read: > > > > http://your_nagios_server/nagios/docs/xodtemplate.html#host > > > > and go straight to the 'parents' directive. Worth noting: > You don't need > > to define *all* the parent nodes in a given hosts config > definition. In > > your case, 'router there' would be the parent for all the > hosts at the > colo, > > 'router here' would be the parent to 'router there'. (I'm > not entirely > > certain how/when you would want to define multiple parents, quite > honestly, > > but I'm taking the simple approach, and it works quite well.) > > > > > For the dependencies to work properly, each of the sites must > > > be dependent > > > on: > > > a) httpd > > > b) ping machine > > > c) ping router "there" > > > d) ping router "here" > > > > > > Let's assume I check this every minute. My math says that > > > this is roughly > > > 280 hits on httpd per minute (55 * 5 + 5), 280 pings to the > > > machine per > > > minute, 280 pings to the router there per minute and 280 > > > pings to the router > > > here per minute. > > > > I'm not sure how you arrive at those values. According to > what you've > told > > us, you have 3 pingable IP addresses, therefore you would > get 1 ping per > > node per minute. As for httpd hits, you've so far stated > that you have 1 > > httpd daemon, so we can only extrapolate that only 1 socket is being > > listened on. Perhaps once you've clarified how you define > a 'site' and > how > > you're checking each site, that'll become clearer. (If you > mean that > you've > > defined 55 IP aliases and you're pinging each one, etc...?) > > > > > This gets a little worse when you realize I actually have > > > over 200 sites, > > > not 55. Also on 7 boxes, not one, so we're looking at more > > > like 1005 per > > > minute, spread unevenly across several boxes. > > > > Not quite that bad, given the logic I've been following. > > > > > The question, then, is whether anyone has run into this > > > and/or does Nagios > > > take this into consideration via any caching mechanism? The > > > documentation > > > says > > > > Do you mean caching a ping or an httpd check? That > somewhat defeats the > > purpose of doing the check to begin with, I'd think, even > assuming that > you > > could do so. > > > > > "Before Nagios executes a service check or sends > > > notifications out for a > > > service, it will check to see if the service has any > > > dependencies. If it > > > doesn't have any dependencies, the check is executed or the > > > notification is > > > sent out as it normally would be. If the service does > have one or more > > > dependencies, Nagios will check each dependency entry as follows: > > > Nagios gets the current status* of the service that is being > > > depended upon. > > > " > > > > > > * by default this is the current HARD state > > > > > > So...from where is it getting this information? Further > > > perusal through the > > > theory section helps me not at all... > > > > > > Anyone have ideas on this? > > > > Yes. Just skip the whole dependancies bit for now, and > focus on parents. > > Unless you're really really in the mood for visualizing a 4-D Klein > bottle. > > ;) > > > > jc > > > > > Thanks, > > > > > > Scott Whitney > > > swhitney at Journyx.com > > > > > > > > > > > > ------------------------------------------------------- > > > This sf.net email is sponsored by:ThinkGeek > > > Welcome to geek heaven. > > > http://thinkgeek.com/sf > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jcarro10 at sprintspectrum.com Fri Dec 27 00:30:07 2002 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Thu, 26 Dec 2002 17:30:07 -0600 Subject: Plugin not woeking ...... Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F24B2@PKDWB03C.ad.sprint.com> -----Original Message----- From: Atul Shrivastava [mailto:atulsh at hclinsys.com] Sent: Thursday, December 26, 2002 7:11 AM To: nagios-users at lists.sourceforge.net; nagiosplug-help at lists.sourceforge.net Subject: [Nagios-users] Plugin not woeking ...... Importance: High Hello All, My problem is that I want to monitor a network which consists of WinNT, 2K, Linux, Switches and routers. Can anyone tell me a way in which I can monitor all these things convenently and quickly. I would recommend: - Nagios - Nagios plugins - NSClient - NRPE Basically I want to monitor these using SNMP only. Is there a way out. In that case, don't use NSClient or NRPE. Use the check_snmp plugin. Further, I configured the NRPE Plugin in Linux machine but the plugin is not working correctly and the Nagios is unable to communicate to them. Hmm. I thought you only wanted to use SNMP...? Is it safe to say you've decided to use NRPE too? How have you determined that Nagios isn't communicating with NRPE? Have you tried to do basic check_nrpe tests on the command line? Can you telnet to port 5666 on the client from the Nagios server? Do you have any logfile output showing the errors? Don't overwhelm us with 100KB of data, but also don't simply say "is not working correctly". For the WinNT, When I install NSClient in my WinNT machine, then the installation is complete and it is running in the Service but it is not making any effect on the Nagios Console. I thought you only wanted to use SNMP (and NRPE)...? Is it safe to say you've decided to use NSClient too? Did you read the README file that came with NSClient? It gives you very useful examples of what you can use in your checkcommands.cfg. Granted, they're in the 'old' format, so here's one example of something that you might find useful: define command{ command_name check_nt_cpuload command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v CPULOAD -s $ARG1$ -l $ARG2$ } And here's an example of something you might put in services.cfg: define service{ host_name itdmlw04 use icmp service_description W2K CPULoad contact_groups windows-admins check_command check_nt_cpuload!MyPassword!10,80,95,60,80,95,1440,80,95 } Can anyone tell me the problem and why this is happening so. Also tell me what all is required on the management server (Nagios) side. I strongly urge you to read the documentation, because otherwise that's exactly what will be regurgitated here. I hate to say this, but your request is too broad. You might as well be requesting, "Hi, could you please share your 15 years of UNIX sysadmin experience in 25 words or less?" You've been extremely vague on describing the problem you're experiencing, and have seemingly changed your design requirements (SNMP vs. NRPE & NSClient). You can't expect a physician to help you if you simply say, "I don't feel well," especially from halfway around the globe, and especially not if you say, "I don't want to take anything except a liquid medication" in one sentence, and then "oh by the way, I'm taking pills and haven't really read the literature regarding recommended dosage or contraindications or even if it's good for what ails me." Have you got Nagios to successfully monitor *anything* in your environment? If not, I suggest you put SNMP, NRPE and NSClient back on the shelf, and start out with a simple check_disk on the local Nagios host itself. Once you get that working, try having Nagios do some very basic monitoring of another host using, say, check_http, or the appropriate plugin for whatever network service you're interested in monitoring. Have you installed NRPE on the remote host? Did you remember to install the plugins on the remote host, too? Do they work? Are they compiled for that architecture? How are you starting the nrpe daemon? What's one line out of the nrpe.cfg file that you can give us which is clearly not working? What command line test did you do on the remote host with that very same plugin which shows that it works/doesn't work? Did you try to run check_nrpe on the remote host and connect to itself (localhost)? Can you run check_nrpe on your Nagios server (checking the remote host) with similar success? I could go on, but the vast majority on this list have already been there, done that. I'm not trying to discourage you from using Nagios; I'm a huge fan, and believe that as the number of users grows, the better the base of knowledge and experience. Try to be more explicit in your requirements/goals/problem determination (cut-paste from logfiles, for example, "X works but Y does not, and they're almost identical and here are the config descriptions for each," for another example). If a dancing giraffe wearing pink-and-green striped pyjamas suddenly appears with a marker in its mouth and draws "Host fuzzbang is down" on the wall, then this might be worth mentioning, too. (Incidentally, if you do have a plugin for the dancing giraffe, I'm sure there might be some interest on the list. ;-) Now, let's see some simple (basic) examples for each scenario you're having difficulties with. Config file snippets would be useful, too. jc Thanks in advance. Regards and have a nice day, Atul Shrivastava Info Structure Services HCL INFOSYSTEMS LTD. E - 4,5,6 Sector XI, Noida - 201301 Tel: 91-120-2526910,2443013 -------------- next part -------------- An HTML attachment was scrubbed... URL: From harpo at thebackrow.net Fri Dec 27 03:08:30 2002 From: harpo at thebackrow.net (Will Lowe) Date: Thu, 26 Dec 2002 18:08:30 -0800 Subject: 2.0, who's using what, etc. Message-ID: <20021227020830.GA15872@thebackrow.net> I've been taking a look through the plan Ethan's put together for Nagios 2.0 and thinking about scaling my Netsaint (soon to be Nagios) installation from the current 600 hosts and 1700 services to, say, twice that. I've started wondering: 1) What web servers are people using with the Nagios web interface? More simply put, is anybody really using anything other than Apache? 2) Are a lot of people using the database support? If so, are you using MySQL or PostGres? -- thanks, Will ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From GPotter at MarathonOil.com Fri Dec 27 14:40:01 2002 From: GPotter at MarathonOil.com (Potter, G M (Greg)) Date: Fri, 27 Dec 2002 07:40:01 -0600 Subject: 2.0, who's using what, etc. Message-ID: Were using Nagios 1.0, Apache Web server 1.3.27, Solaris 7 Nagios host, 25 monitored hosts, 45 monitored services. Soon to be more as I integrate some Oracle checks into Nagios. No database support, but use template style config files. E-mail/qpage notifications. Greg Potter > -----Original Message----- > From: Will Lowe [mailto:harpo at thebackrow.net] > Sent: Thursday, December 26, 2002 8:09 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] 2.0, who's using what, etc. > > > I've been taking a look through the plan Ethan's put together for > Nagios 2.0 and thinking about scaling my Netsaint (soon to be Nagios) > installation from the current 600 hosts and 1700 services to, say, > twice that. I've started wondering: > > 1) What web servers are people using with the Nagios web interface? > More simply put, is anybody really using anything other than Apache? > > 2) Are a lot of people using the database support? If so, are you > using MySQL or PostGres? > > > > -- > thanks, > > Will > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From AHKAPLAN at PARTNERS.ORG Fri Dec 27 15:26:58 2002 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Fri, 27 Dec 2002 09:26:58 -0500 Subject: Sporadic Communication Problems with an NRPE Client Message-ID: <5593DA408212D511B0910002A513501F01D2885C@phsexch20.mgh.harvard.edu> I installed the nrpe client on a Red Hat 7.3 machine recently and I am encountering the following problem: Nagios sporadically returns a critical error message indicating that the connection has been refused by the host machine. Additionally, I cannot access the service detail screen of the particular host. Every time that I try I get an Error: Status information not found message, even though the services do appear on the previous web page. Has anyone encountered this situation, and if so what have they done to correct it? Thanks. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From GPotter at MarathonOil.com Fri Dec 27 15:35:41 2002 From: GPotter at MarathonOil.com (Potter, G M (Greg)) Date: Fri, 27 Dec 2002 08:35:41 -0600 Subject: CISCO MIB Message-ID: I could use some SNMP help from someone on the list with more SNMP experience than I have. We recently had a redundant power supply fail on one of our Catalyst switches. I would like to be able to use check_snmp to query the switch on the status of the supervisor card, the Ethernet blades and the power supplies. I have searched www.cisco.com for the correct OID to query, but have been unable to get through to their ftp site for the last two days. I have also tried an snmpwalk on the switches with the power supply plugged in and unplugged looking for differences in the output of the snmpwalk command. Included below are the OIDs I found that look like they are power supply related, but I could not find any entries that were status related (up, down, ok, faulty, etc...) 47.1.1.1.1.2.9 = "Container of power supply group" 47.1.1.1.1.2.10 = "Container of power supply" 47.1.1.1.1.2.11 = "400 watt supply" 47.1.1.1.1.2.12 = "Container of power supply" 47.1.1.1.1.2.13 = "400 watt supply" 47.1.1.1.1.2.14 = "Container of power supply" 47.1.1.1.1.2.15 = "400 watt supply" 47.1.1.1.1.2.16 = "Container of Power Entry Module" Is anyone using check_snmp or a similar plugin for monitoring Cisco switches/routers? If so what are the OIDs you are using. I appreciate any helpful pointers. Greg M. Potter mailto:gpotter at marathonoil.com Non Scio, id est in Latina! ~~|\ / | \ ~^~^~^~ / | \ ~^~ Greg Potter~^~^~^~^ ~^~^~ / 9255 ) ~^ Oklahoma City, OK^~^ ~^~^_/____|____) ^~^~^~^~^~^~^~^~^~^~^~^ ~^~^ \_________/ ^~^~^~^~^~^~^~^~^~^~^ ~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~ ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From chocklehot at clan-union.com Fri Dec 27 15:48:31 2002 From: chocklehot at clan-union.com (Charles) Date: Fri, 27 Dec 2002 09:48:31 -0500 Subject: HI, Got a n00b question Message-ID: I did install everything... But I am trying to start nagios, and telling me he can't write in nagios.log and can,t find /usr/local/nagios/libexec/check_http: No such file or directory Cause there is no libexec folder... Could anyone help me pls Ty Chock An Happy holidays everyone ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jlyons30 at yahoo.com Fri Dec 27 15:58:20 2002 From: jlyons30 at yahoo.com (Jon Lyons) Date: Fri, 27 Dec 2002 06:58:20 -0800 (PST) Subject: HI, Got a n00b question In-Reply-To: References: Message-ID: <20021227145820.60947.qmail@web21511.mail.yahoo.com> Did you install the plugins? Charles wrote:I did install everything... But I am trying to start nagios, and telling me he can't write in nagios.log and can,t find /usr/local/nagios/libexec/check_http: No such file or directory Cause there is no libexec folder... Could anyone help me pls Ty Chock An Happy holidays everyone ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcarro10 at sprintspectrum.com Fri Dec 27 16:27:02 2002 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 27 Dec 2002 09:27:02 -0600 Subject: HI, Got a n00b question Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F24B4@PKDWB03C.ad.sprint.com> Make sure you've created the user 'nagios' and the groups 'nagios' and 'nagiocmd' (not 'nagioscmd'). Make sure your webserver (Apache?) is a member of the nagiocmd group. Do a "chown -R nagios:nagios /usr/local/nagios", followed by: chgrp nagiocmd /usr/local/nagios/var/rw chmod 2770 /usr/local/nagios/var/rw Make sure you've downloaded/compiled/installed the plugins (that's why you don't have a libexec directory). Stop/start nagios and give it another go. jc > -----Original Message----- > From: Charles [mailto:chocklehot at clan-union.com] > Sent: Friday, December 27, 2002 8:49 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] HI, Got a n00b question > > > I did install everything... But I am trying to start nagios, > and telling me > he can't write in nagios.log and can,t find > /usr/local/nagios/libexec/check_http: No such file or directory > > Cause there is no libexec folder... > Could anyone help me pls > > Ty > Chock > An Happy holidays everyone > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From chocklehot at clan-union.com Fri Dec 27 16:40:21 2002 From: chocklehot at clan-union.com (Charles) Date: Fri, 27 Dec 2002 10:40:21 -0500 Subject: HI, Got a n00b question In-Reply-To: <1041002950.18558.21.camel@phobos> References: <1041002950.18558.21.camel@phobos> Message-ID: Ty all for your answer, but I tried to install a rpm and... Where did it install??? nagios-plugins-1.3.0-beta2.tar.gz So.. What plungin should I download??? Ty Chock Le 12/27/02 10:29 AM, ??[NOM]?? <[ADRESSE]> a ?crit?: > > 1) you installed the Nagios plugins? > 2) if you did, you need to specify the location of your Nagios > installation when compiling the plugins > > Geert > > On Fri, 2002-12-27 at 15:48, Charles wrote: >> I did install everything... But I am trying to start nagios, and telling me >> he can't write in nagios.log and can,t find >> /usr/local/nagios/libexec/check_http: No such file or directory >> >> Cause there is no libexec folder... >> Could anyone help me pls >> >> Ty >> Chock >> An Happy holidays everyone >> >> >> >> ------------------------------------------------------- >> This sf.net email is sponsored by:ThinkGeek >> Welcome to geek heaven. >> http://thinkgeek.com/sf >> _______________________________________________ >> Nagios-users mailing list >> Nagios-users at lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jcarro10 at sprintspectrum.com Fri Dec 27 16:46:50 2002 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 27 Dec 2002 09:46:50 -0600 Subject: Sporadic Communication Problems with an NRPE C lient Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F24B5@PKDWB03C.ad.sprint.com> It appears you have two problems here. I can comment on the one, but am unsure of the other. I, too, suffered from sporadic NRPE problems in the past, such as what you're describing. The first time, I resolved it by moving Nagios from a wheezy, underpowered Intel machine to something quite a bit more up-to-date. I started experiencing it again as I continued to scale up the number of hosts I was monitoring, and ended up doing some performance tuning of the system. This system is using RLX blade technology (www.rlx.com) with RH 7.2. A co-worker had configured the blade to use the disk mirroring option that RLX supplies (could possibly be LVM) and that was just beating up on the I/O. So we captured the image and redeployed it without the mirroring. We also bumped up the swap from 500MB (1/2 of the 1GB RAM) to 2GB (which might be overkill). There were other symptoms prior to the tuning; I had bumped up the number of service checks from about 800 to about 1100, which was also causing the system to suffer a little too much (response lag started to skyrocket). I haven't had any NRPE problems of this nature since tuning the system. However, I've already expressed my concern to the list in this regard, pondering aloud whether NSCA is preferable for scaling to much larger numbers, but alas, I received neither "YES, switch to NSCA" nor "NO, NRPE will easily scale to [insert really large number here]". I'm not entirely certain this is the best approach, but I think it would be preferable if there were a way to tell check_nrpe to ignore connection timeouts (ie, don't return 2). It's useful to have at least one NRPE check return a critical if it cannot connect with the NRPE daemon on the client, but as I've discovered, the only way to avoid getting flooded with NRPE alerts (eg, if the daemon can't/didn't start) is to define dependancies. I have a dummy NRPE check which merely does an "echo OK - NRPE is up" which of course returns a 0, and all the other NRPE checks for that host are dependant on that. Works like a charm, but adds a significant bulk to dependencies.cfg for each host. As for your "status information not found", you might want to check your logfiles for hints of the problem. jc > -----Original Message----- > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > Sent: Friday, December 27, 2002 8:27 AM > To: 'nagios-users at lists.sourceforge.net' > Subject: [Nagios-users] Sporadic Communication Problems with an NRPE > Client > > > I installed the nrpe client on a Red Hat 7.3 machine recently and I am > encountering the following problem: > > Nagios sporadically returns a critical error message > indicating that the > connection has been refused by the > host machine. Additionally, I cannot access the service > detail screen of the > particular host. Every time that > I try I get an Error: Status information not found message, > even though the > services do appear on the previous > web page. > > Has anyone encountered this situation, and if so what have > they done to correct > it? Thanks. > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From Stanley.G.Martin at mail.sprint.com Fri Dec 27 16:58:02 2002 From: Stanley.G.Martin at mail.sprint.com (Stanley.G.Martin at mail.sprint.com) Date: Fri, 27 Dec 2002 09:58:02 -0600 Subject: Checking Nagios Process Message-ID: I compiled in all the Mysql items I could and they are working just fine. The nagios process info is in the 'programstatus' table and the PID matches when I run 'ps auxw' from command line. The problem is, when I use the CGIs, it still shows that the process is not running. I checked cgi.cfg and the correct information is in there for database access. What else do I need to do to make this work? Stanley G. Martin Sprint - EIS? Customer Care Stanley.G.Martin at mail.sprint.com ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From chris.stankaitis at datawire.net Fri Dec 27 16:58:11 2002 From: chris.stankaitis at datawire.net (Chris Stankaitis) Date: Fri, 27 Dec 2002 10:58:11 -0500 Subject: HI, Got a n00b question In-Reply-To: References: Message-ID: <3E0C7893.2010004@datawire.net> you can do a locate nagios or if that doesn't work do a rpm -qa | grep nagios to get the name of the installed nagios package and then do a rpm -ql to get a listing of all nagios files. Chances are that the RPM just installed the core nagios stuff. You'll have to find or build an RPM for the plugins, or install it from tarball if you don't care about poluting your system with non-packaged installs. --Chris Charles wrote: > Ty all for your answer, but I tried to install a rpm and... Where did it > install??? nagios-plugins-1.3.0-beta2.tar.gz > So.. What plungin should I download??? > > Ty > Chock > > Le 12/27/02 10:29 AM, ? [NOM] ? <[ADRESSE]> a ?crit : > > >>1) you installed the Nagios plugins? >>2) if you did, you need to specify the location of your Nagios >>installation when compiling the plugins >> >>Geert >> >>On Fri, 2002-12-27 at 15:48, Charles wrote: >> >>>I did install everything... But I am trying to start nagios, and telling me >>>he can't write in nagios.log and can,t find >>>/usr/local/nagios/libexec/check_http: No such file or directory >>> >>>Cause there is no libexec folder... >>>Could anyone help me pls >>> >>>Ty >>>Chock >>>An Happy holidays everyone >>> >>> >>> >>>------------------------------------------------------- >>>This sf.net email is sponsored by:ThinkGeek >>>Welcome to geek heaven. >>>http://thinkgeek.com/sf >>>_______________________________________________ >>>Nagios-users mailing list >>>Nagios-users at lists.sourceforge.net >>>https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users -- Chris Stankaitis Systems Administrator Datawire Communication Networks Inc. chris.stankaitis at datawire.net ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jcarro10 at sprintspectrum.com Fri Dec 27 17:05:18 2002 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 27 Dec 2002 10:05:18 -0600 Subject: HI, Got a n00b question Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E11D4@PKDWB03C.ad.sprint.com> I originally tried the RPM approach to Nagios. I ended up a little frustrated, and eventually started from scratch with the tarballs that one needs to compile and install. Try that approach. jc > -----Original Message----- > From: Charles [mailto:chocklehot at clan-union.com] > Sent: Friday, December 27, 2002 9:40 AM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] HI, Got a n00b question > > > Ty all for your answer, but I tried to install a rpm and... > Where did it > install??? nagios-plugins-1.3.0-beta2.tar.gz > So.. What plungin should I download??? > > Ty > Chock > > Le 12/27/02 10:29 AM, ??[NOM]?? <[ADRESSE]> a ?crit?: > > > > > 1) you installed the Nagios plugins? > > 2) if you did, you need to specify the location of your Nagios > > installation when compiling the plugins > > > > Geert > > > > On Fri, 2002-12-27 at 15:48, Charles wrote: > >> I did install everything... But I am trying to start > nagios, and telling me > >> he can't write in nagios.log and can,t find > >> /usr/local/nagios/libexec/check_http: No such file or directory > >> > >> Cause there is no libexec folder... > >> Could anyone help me pls > >> > >> Ty > >> Chock > >> An Happy holidays everyone > >> > >> > >> > >> ------------------------------------------------------- > >> This sf.net email is sponsored by:ThinkGeek > >> Welcome to geek heaven. > >> http://thinkgeek.com/sf > >> _______________________________________________ > >> Nagios-users mailing list > >> Nagios-users at lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From eric at gatewayconnections.com Fri Dec 27 17:51:53 2002 From: eric at gatewayconnections.com (Eric Gregory) Date: Fri, 27 Dec 2002 10:51:53 -0600 Subject: check_dig woes Message-ID: <007a01c2adc8$4209fb10$0a00a8c0@Eric> I'm trying to monitor DNS service using the check_dig command, unfortunately it doesn't seem to compile into the checkcommands.cfg by defualt so I'm guessing I have to add it manually, I've done so using section 1 below, I then added section 2 to services.cfg to implement a check of the server. I'm sure I've done it wrong but I can't find an example of the right way to do it. status.cgi tells me the status is unknown and the status information is DNS problem - No ANSWER SECTION found I am running on freebsd 4.5, nagios 1.0, apache2.0 Can anyone tell me what I've done wrong, I'm pretty sure it's in my checkcommands.cfg but I couldn't find a proper configuration for the command anywhere. Thanks Eric -----Section 1------ >From checkcommands.cfg # 'check_dig' command definition define command{ command_name check_dig command_line $USER1$/check_dig -H $HOSTADDRESS$ } -----Section 2------ from services.cfg define service{ use generic-service host_name ns service_description DNS is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups admin notification_interval 240 notification_period 24x7 notification_options c,r check_command check_dig } -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcarro10 at sprintspectrum.com Fri Dec 27 18:21:52 2002 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 27 Dec 2002 11:21:52 -0600 Subject: check_dig woes Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E11D5@PKDWB03C.ad.sprint.com> You're missing the "-l " in your check_dig command definition. It's difficult to test the lookup capability if you don't specify a host to lookup. ;-) Before definining it in checkcommands.cfg, play around with it on the command line until you're satisfied with an invocation you can live with. Do a "./check_dig --help" for more info. jc -----Original Message----- From: Eric Gregory [mailto:eric at gatewayconnections.com] Sent: Friday, December 27, 2002 10:52 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] check_dig woes I'm trying to monitor DNS service using the check_dig command, unfortunately it doesn't seem to compile into the checkcommands.cfg by defualt so I'm guessing I have to add it manually, I've done so using section 1 below, I then added section 2 to services.cfg to implement a check of the server. I'm sure I've done it wrong but I can't find an example of the right way to do it. status.cgi tells me the status is unknown and the status information is DNS problem - No ANSWER SECTION found I am running on freebsd 4.5, nagios 1.0, apache2.0 Can anyone tell me what I've done wrong, I'm pretty sure it's in my checkcommands.cfg but I couldn't find a proper configuration for the command anywhere. Thanks Eric -----Section 1------ >From checkcommands.cfg # 'check_dig' command definition define command{ command_name check_dig command_line $USER1$/check_dig -H $HOSTADDRESS$ } -----Section 2------ from services.cfg define service{ use generic-service host_name ns service_description DNS is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups admin notification_interval 240 notification_period 24x7 notification_options c,r check_command check_dig } -------------- next part -------------- An HTML attachment was scrubbed... URL: From brampling at methanex.com Fri Dec 27 18:29:45 2002 From: brampling at methanex.com (Blair Rampling) Date: Fri, 27 Dec 2002 09:29:45 -0800 Subject: 2.0, who's using what, etc. Message-ID: I'm running Nagios 1.0 on Solaris 9 with iPlanet Web Server Enterprise Edition 6.0 with no database support. - -- Blair Rampling >>> Will Lowe 12/26/02 06:08pm >>> I've been taking a look through the plan Ethan's put together for Nagios 2.0 and thinking about scaling my Netsaint (soon to be Nagios) installation from the current 600 hosts and 1700 services to, say, twice that. I've started wondering: 1) What web servers are people using with the Nagios web interface? More simply put, is anybody really using anything other than Apache? 2) Are a lot of people using the database support? If so, are you using MySQL or PostGres? -- thanks, Will ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From dviner at yahoo-inc.com Fri Dec 27 18:48:15 2002 From: dviner at yahoo-inc.com (Dave Viner) Date: Fri, 27 Dec 2002 09:48:15 -0800 Subject: NRPE enhancement In-Reply-To: References: Message-ID: In order to clarify the idea that I'm proposing, I've made a patch to the nrpe source that implements what I'm describing. This patch is made against the nrpe-1.5.tar.gz from sourceforge. Essentially, these changes allow us to specify in the nrpe.cfg file lines like this: command[check_disk_gen]=/usr/local/libexec/nagios/check_disk Then when invoking check_nrpe, you can invoke it like this: ./check_nrpe 127.0.0.1 -V 2 -c check_disk_gen -a "-w 50000 -c 10000 -p /dev/ad0s1e" And the effect is that /usr/local/libexec/nagios/check_disk is invoked with the -w 50000 -c 10000 -p /dev/ad0s1e as the argument string. For example: ~/nagios/nrpe-1.5.new/src>./check_nrpe 127.0.0.1 -V 2 -c check_disk_gen -a "-w 50000 -c 10000 -p /dev/ad0s1e" DISK OK - [1484108 kB (9%) free on /dev/ad0s1e] ~/nagios/nrpe-1.5.new/src> I think this is really useful and would greatly reduce the size of the nrpe.cfg and, more importantly, would reduce the number of times you'd need to modify that configuration file. Instead the modifications would occur on the centralized Nagios server's configuration file. What does everyone think? Should we add this to the main source for NRPE-1.6? dave -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Dave Viner Sent: Monday, December 23, 2002 8:51 AM To: Naios Users Subject: RE: [Nagios-users] NRPE enhancement Hi Rue, Security is a great reason for limiting the commands that NRPE is able to execute. But my suggested enhancement wouldn't allow NRPE to execute any command that isn't listed in the cfg file. That is, the NRPE would still need to find the path to the executable in the nrpe.cfg file, then use any remaining information as arguments passed to the executable. It is true that this is less secure that forcing the entire command line (executable and arguments) in the config file. But, so long as the executables are well authored and handle unexpected arguments well, I think this enhancement would not significantly decrease security. Do you think that specifying arguments would make NRPE significantly less secure? Dave -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Rue Turner Sent: Friday, December 20, 2002 1:33 PM To: Naios Users Subject: Re: [Nagios-users] NRPE enhancement dave, I think the reson for this choice of configuration is security. If the nrpe was allowed to run whatever it was asked it would be easy to compromise your machines. This way although your configs are hefty (mine have almost a hundred lines in) you can only ask it to run commands from this library. rue On Fri, 2002-12-20 at 17:35, Dave Viner wrote: > Hi, > I'd like to suggest an enhancement to NRPE, and if people think this is a > good idea, I'll try to make a patch to support my suggestion. Currently the > nrpe.cfg file specifies all the commands in this fashion: > command[check_disk1]=/usr/local/nagios/libexec/check_disk 80 95 /dev/hda1 > As result of this design is that if you want to check something like > /dev/hda1 and /dev/hdb1, you need two seperate lines in the nrpe.cfg file. > So, I'd like to propose that we extend NRPE to allow for the arguments to a > command to be specified by the central Nagios server instead of in the > nrpe.cfg. The idea is that the nrpe.cfg would have one command line which > maps a key, 'check_disk', to a local executable, > '/usr/local/nagios/libexec/check_disk'. The rest would be specified from > the central Nagios server in some manner. > I think this would great simplify the nrpe.cfg files, and reduce a lot of > redundant command definitions that differ only in the arguments they > require. Also, it would mean that you'd need to update your nrpe.cfg very > rarely. In fact, you'd only need to update it when you add a new plugin. > I don't have a concrete suggestion for implementing this yet, because I > want to see if the community is interested in this idea first. Has this > idea been suggested previously? Is anyone currently interested in the idea > or would I be the only consumer of such a service? > > thanks > dave > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: The Best Geek Holiday Gifts! > Time is running out! Thinkgeek.com has the coolest gifts for > your favorite geek. Let your fingers do the typing. Visit Now. > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users r u e t u r n e r ? t ? h ? i ? n ? l ? a ? y ? e ? r ? -- index, n.: Alphabetical list of words of no possible interest where an alphabetical list of subjects with references ought to be. ------------------------------------------------------- This SF.NET email is sponsored by: The Best Geek Holiday Gifts! Time is running out! Thinkgeek.com has the coolest gifts for your favorite geek. Let your fingers do the typing. Visit Now. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users -------------- next part -------------- A non-text attachment was scrubbed... Name: nrpe.v2.patch Type: application/octet-stream Size: 18244 bytes Desc: not available URL: From John.Jolet at misyshealthcare.com Fri Dec 27 19:06:31 2002 From: John.Jolet at misyshealthcare.com (Jolet, John) Date: Fri, 27 Dec 2002 13:06:31 -0500 Subject: NRPE enhancement Message-ID: I agree, it would be more consistent with the non-nrpe checks if the nrpe config file didn't have the thresholds in them, instead getting them passed in with the call to check_nrpe. -----Original Message----- From: Dave Viner [mailto:dviner at yahoo-inc.com] Sent: Friday, December 27, 2002 11:48 AM To: Nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] NRPE enhancement In order to clarify the idea that I'm proposing, I've made a patch to the nrpe source that implements what I'm describing. This patch is made against the nrpe-1.5.tar.gz from sourceforge. Essentially, these changes allow us to specify in the nrpe.cfg file lines like this: command[check_disk_gen]=/usr/local/libexec/nagios/check_disk Then when invoking check_nrpe, you can invoke it like this: ./check_nrpe 127.0.0.1 -V 2 -c check_disk_gen -a "-w 50000 -c 10000 -p /dev/ad0s1e" And the effect is that /usr/local/libexec/nagios/check_disk is invoked with the -w 50000 -c 10000 -p /dev/ad0s1e as the argument string. For example: ~/nagios/nrpe-1.5.new/src>./check_nrpe 127.0.0.1 -V 2 -c check_disk_gen -a "-w 50000 -c 10000 -p /dev/ad0s1e" DISK OK - [1484108 kB (9%) free on /dev/ad0s1e] ~/nagios/nrpe-1.5.new/src> I think this is really useful and would greatly reduce the size of the nrpe.cfg and, more importantly, would reduce the number of times you'd need to modify that configuration file. Instead the modifications would occur on the centralized Nagios server's configuration file. What does everyone think? Should we add this to the main source for NRPE-1.6? dave -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Dave Viner Sent: Monday, December 23, 2002 8:51 AM To: Naios Users Subject: RE: [Nagios-users] NRPE enhancement Hi Rue, Security is a great reason for limiting the commands that NRPE is able to execute. But my suggested enhancement wouldn't allow NRPE to execute any command that isn't listed in the cfg file. That is, the NRPE would still need to find the path to the executable in the nrpe.cfg file, then use any remaining information as arguments passed to the executable. It is true that this is less secure that forcing the entire command line (executable and arguments) in the config file. But, so long as the executables are well authored and handle unexpected arguments well, I think this enhancement would not significantly decrease security. Do you think that specifying arguments would make NRPE significantly less secure? Dave -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Rue Turner Sent: Friday, December 20, 2002 1:33 PM To: Naios Users Subject: Re: [Nagios-users] NRPE enhancement dave, I think the reson for this choice of configuration is security. If the nrpe was allowed to run whatever it was asked it would be easy to compromise your machines. This way although your configs are hefty (mine have almost a hundred lines in) you can only ask it to run commands from this library. rue On Fri, 2002-12-20 at 17:35, Dave Viner wrote: > Hi, > I'd like to suggest an enhancement to NRPE, and if people think this is a > good idea, I'll try to make a patch to support my suggestion. Currently the > nrpe.cfg file specifies all the commands in this fashion: > command[check_disk1]=/usr/local/nagios/libexec/check_disk 80 95 /dev/hda1 > As result of this design is that if you want to check something like > /dev/hda1 and /dev/hdb1, you need two seperate lines in the nrpe.cfg file. > So, I'd like to propose that we extend NRPE to allow for the arguments to a > command to be specified by the central Nagios server instead of in the > nrpe.cfg. The idea is that the nrpe.cfg would have one command line which > maps a key, 'check_disk', to a local executable, > '/usr/local/nagios/libexec/check_disk'. The rest would be specified from > the central Nagios server in some manner. > I think this would great simplify the nrpe.cfg files, and reduce a lot of > redundant command definitions that differ only in the arguments they > require. Also, it would mean that you'd need to update your nrpe.cfg very > rarely. In fact, you'd only need to update it when you add a new plugin. > I don't have a concrete suggestion for implementing this yet, because I > want to see if the community is interested in this idea first. Has this > idea been suggested previously? Is anyone currently interested in the idea > or would I be the only consumer of such a service? > > thanks > dave > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: The Best Geek Holiday Gifts! > Time is running out! Thinkgeek.com has the coolest gifts for > your favorite geek. Let your fingers do the typing. Visit Now. > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users r u e t u r n e r ? t ? h ? i ? n ? l ? a ? y ? e ? r ? -- index, n.: Alphabetical list of words of no possible interest where an alphabetical list of subjects with references ought to be. ------------------------------------------------------- This SF.NET email is sponsored by: The Best Geek Holiday Gifts! Time is running out! Thinkgeek.com has the coolest gifts for your favorite geek. Let your fingers do the typing. Visit Now. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jcarro10 at sprintspectrum.com Fri Dec 27 19:20:17 2002 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 27 Dec 2002 12:20:17 -0600 Subject: NRPE enhancement Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F24B8@PKDWB03C.ad.sprint.com> I think it's a good idea, but with the following provisions: - This should not be enabled by default. - The configure script, the Makefile and any/all NRPE docs should explicitly state the security risks in forcing the non-default (added feature) behaviour. - If the daemon is compiled with this option, anytime the daemon starts, it should briefly mention that it has been compiled for this behaviour, and a quick remark about the increased risks. (Sent to stderr if standalone, else sent to syslog if running under (x)inetd). It should scream loud and clear if it's started under root; preferably it would simply not run as root, full stop. - Perhaps a reference to implementing NRPE with stunnel (and only permitting connections from localhost, as defined in nrpe.cfg) would be desireable. I'm not a security guru, but it seems to me that facilitating this feature would open oneself up to a buffer overflow attack. If you're on a trusted network, it's a non-issue. On a related note, I'd be much more comfy with this feature if there were a facility to enforce some level of native encryption, such as what NSCA uses. If you don't have the keys to the house, you get dropped on the floor. (I have a similar wish for NSClient.) Food for thought. jc > -----Original Message----- > From: Dave Viner [mailto:dviner at yahoo-inc.com] > Sent: Friday, December 27, 2002 11:48 AM > To: Nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] NRPE enhancement > > > In order to clarify the idea that I'm proposing, I've made a > patch to the nrpe source that implements what I'm describing. > This patch is made against the nrpe-1.5.tar.gz from sourceforge. > > Essentially, these changes allow us to specify in the > nrpe.cfg file lines like this: > command[check_disk_gen]=/usr/local/libexec/nagios/check_disk > > Then when invoking check_nrpe, you can invoke it like this: > ./check_nrpe 127.0.0.1 -V 2 -c check_disk_gen -a "-w 50000 > -c 10000 -p /dev/ad0s1e" > > And the effect is that /usr/local/libexec/nagios/check_disk > is invoked with the -w 50000 -c 10000 -p /dev/ad0s1e as the > argument string. For example: > > ~/nagios/nrpe-1.5.new/src>./check_nrpe 127.0.0.1 -V 2 -c > check_disk_gen -a "-w 50000 -c 10000 -p /dev/ad0s1e" > DISK OK - [1484108 kB (9%) free on /dev/ad0s1e] > ~/nagios/nrpe-1.5.new/src> > > I think this is really useful and would greatly reduce the > size of the nrpe.cfg and, more importantly, would reduce the > number of times you'd need to modify that configuration file. > Instead the modifications would occur on the centralized > Nagios server's configuration file. > > What does everyone think? Should we add this to the main > source for NRPE-1.6? > > dave > > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of > Dave Viner > Sent: Monday, December 23, 2002 8:51 AM > To: Naios Users > Subject: RE: [Nagios-users] NRPE enhancement > > > Hi Rue, > Security is a great reason for limiting the commands > that NRPE is able to execute. But my suggested enhancement > wouldn't allow NRPE to execute any command that isn't listed > in the cfg file. That is, the NRPE would still need to find > the path to the executable in the nrpe.cfg file, then use any > remaining information as arguments passed to the executable. > It is true that this is less secure that forcing the entire > command line (executable and arguments) in the config file. > But, so long as the executables are well authored and handle > unexpected arguments well, I think this enhancement would not > significantly decrease security. Do you think that > specifying arguments would make NRPE significantly less secure? > > > Dave > > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of > Rue Turner > Sent: Friday, December 20, 2002 1:33 PM > To: Naios Users > Subject: Re: [Nagios-users] NRPE enhancement > > > dave, > > I think the reson for this choice of configuration is security. If the > nrpe was allowed to run whatever it was asked it would be easy to > compromise your machines. This way although your configs are > hefty (mine > have almost a hundred lines in) you can only ask it to run > commands from > this library. > > rue > > > On Fri, 2002-12-20 at 17:35, Dave Viner wrote: > > Hi, > > I'd like to suggest an enhancement to NRPE, and if > people think this is a > > good idea, I'll try to make a patch to support my > suggestion. Currently the > > nrpe.cfg file specifies all the commands in this fashion: > > > command[check_disk1]=/usr/local/nagios/libexec/check_disk 80 > 95 /dev/hda1 > > As result of this design is that if you want to check something like > > /dev/hda1 and /dev/hdb1, you need two seperate lines in the > nrpe.cfg file. > > So, I'd like to propose that we extend NRPE to allow > for the arguments to a > > command to be specified by the central Nagios server > instead of in the > > nrpe.cfg. The idea is that the nrpe.cfg would have one > command line which > > maps a key, 'check_disk', to a local executable, > > '/usr/local/nagios/libexec/check_disk'. The rest would be > specified from > > the central Nagios server in some manner. > > I think this would great simplify the nrpe.cfg files, > and reduce a lot of > > redundant command definitions that differ only in the arguments they > > require. Also, it would mean that you'd need to update > your nrpe.cfg very > > rarely. In fact, you'd only need to update it when you add > a new plugin. > > I don't have a concrete suggestion for implementing > this yet, because I > > want to see if the community is interested in this idea > first. Has this > > idea been suggested previously? Is anyone currently > interested in the idea > > or would I be the only consumer of such a service? > > > > thanks > > dave > > > > > > > > ------------------------------------------------------- > > This SF.NET email is sponsored by: The Best Geek Holiday Gifts! > > Time is running out! Thinkgeek.com has the coolest gifts for > > your favorite geek. Let your fingers do the typing. Visit Now. > > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > r u e t u r n e r > ? t ? h ? i ? n ? l ? a ? y ? e ? r ? > > -- index, n.: Alphabetical list of words of no possible interest where > an alphabetical list of subjects with references ought to be. > > > ------------------------------------------------------- > This SF.NET email is sponsored by: The Best Geek Holiday Gifts! > Time is running out! Thinkgeek.com has the coolest gifts for > your favorite geek. Let your fingers do the typing. Visit Now. > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From don_schultz at panvera.com Fri Dec 27 19:25:19 2002 From: don_schultz at panvera.com (Don Schultz) Date: Fri, 27 Dec 2002 12:25:19 -0600 Subject: 2.0, who's using what, etc. Message-ID: <72CF2973A7532D478D85271D40F608FCC3F407@mercury.panvera.com> Nagios 1.0 on Trustix 1.5 w/custom kernel, apache 1.3.27 & php 4.3.0, no databases. .: Don Schultz :: Unix Systems Administrator :: Panvera, LLC :: 501 Charmany Dr. :: Madison, WI 53719 \\ :: Phone: 608.204.5060 :: Fax: 608.204.5061 :: Cell: 608.213.7523 :: Email: don_schultz at panvera.com > -----Original Message----- > From: Blair Rampling [mailto:brampling at methanex.com] > Sent: Friday, December 27, 2002 11:30 AM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] 2.0, who's using what, etc. > > > I'm running Nagios 1.0 on Solaris 9 with iPlanet Web Server > Enterprise Edition 6.0 with no database support. > > - -- > Blair Rampling > > >>> Will Lowe 12/26/02 06:08pm >>> > I've been taking a look through the plan Ethan's put together for > Nagios 2.0 and thinking about scaling my Netsaint (soon to be Nagios) > installation from the current 600 hosts and 1700 services to, say, > twice that. I've started wondering: > > 1) What web servers are people using with the Nagios web interface? > More simply put, is anybody really using anything other than Apache? > > 2) Are a lot of people using the database support? If so, are you > using MySQL or PostGres? > > > > -- > thanks, > > Will > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From dviner at yahoo-inc.com Fri Dec 27 19:49:26 2002 From: dviner at yahoo-inc.com (Dave Viner) Date: Fri, 27 Dec 2002 10:49:26 -0800 Subject: NRPE enhancement In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB2F24B8@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB2F24B8@PKDWB03C.ad.sprint.com> Message-ID: This sounds interesting, but I have a question about the security implications of this code. I'm not a security expert, so please excuse the somewhat basic question. The struct packet as defined in common/common.h has an argv member which is a character array of length 2048. I believe this means that if the incoming packet has an argv member whose length is greater than 2048 chars, then the rc=recvall(sock,(char *)&receive_packet,&bytes_to_recv,socket_timeout); should fail, should it not? However, I think your suggestions regarding stunnel, and encryption are good ones, regardless of the inclusion of this code. thanks dave -----Original Message----- From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] Sent: Friday, December 27, 2002 10:20 AM To: 'Dave Viner'; Nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] NRPE enhancement I think it's a good idea, but with the following provisions: - This should not be enabled by default. - The configure script, the Makefile and any/all NRPE docs should explicitly state the security risks in forcing the non-default (added feature) behaviour. - If the daemon is compiled with this option, anytime the daemon starts, it should briefly mention that it has been compiled for this behaviour, and a quick remark about the increased risks. (Sent to stderr if standalone, else sent to syslog if running under (x)inetd). It should scream loud and clear if it's started under root; preferably it would simply not run as root, full stop. - Perhaps a reference to implementing NRPE with stunnel (and only permitting connections from localhost, as defined in nrpe.cfg) would be desireable. I'm not a security guru, but it seems to me that facilitating this feature would open oneself up to a buffer overflow attack. If you're on a trusted network, it's a non-issue. On a related note, I'd be much more comfy with this feature if there were a facility to enforce some level of native encryption, such as what NSCA uses. If you don't have the keys to the house, you get dropped on the floor. (I have a similar wish for NSClient.) Food for thought. jc > -----Original Message----- > From: Dave Viner [mailto:dviner at yahoo-inc.com] > Sent: Friday, December 27, 2002 11:48 AM > To: Nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] NRPE enhancement > > > In order to clarify the idea that I'm proposing, I've made a > patch to the nrpe source that implements what I'm describing. > This patch is made against the nrpe-1.5.tar.gz from sourceforge. > > Essentially, these changes allow us to specify in the > nrpe.cfg file lines like this: > command[check_disk_gen]=/usr/local/libexec/nagios/check_disk > > Then when invoking check_nrpe, you can invoke it like this: > ./check_nrpe 127.0.0.1 -V 2 -c check_disk_gen -a "-w 50000 > -c 10000 -p /dev/ad0s1e" > > And the effect is that /usr/local/libexec/nagios/check_disk > is invoked with the -w 50000 -c 10000 -p /dev/ad0s1e as the > argument string. For example: > > ~/nagios/nrpe-1.5.new/src>./check_nrpe 127.0.0.1 -V 2 -c > check_disk_gen -a "-w 50000 -c 10000 -p /dev/ad0s1e" > DISK OK - [1484108 kB (9%) free on /dev/ad0s1e] > ~/nagios/nrpe-1.5.new/src> > > I think this is really useful and would greatly reduce the > size of the nrpe.cfg and, more importantly, would reduce the > number of times you'd need to modify that configuration file. > Instead the modifications would occur on the centralized > Nagios server's configuration file. > > What does everyone think? Should we add this to the main > source for NRPE-1.6? > > dave > > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of > Dave Viner > Sent: Monday, December 23, 2002 8:51 AM > To: Naios Users > Subject: RE: [Nagios-users] NRPE enhancement > > > Hi Rue, > Security is a great reason for limiting the commands > that NRPE is able to execute. But my suggested enhancement > wouldn't allow NRPE to execute any command that isn't listed > in the cfg file. That is, the NRPE would still need to find > the path to the executable in the nrpe.cfg file, then use any > remaining information as arguments passed to the executable. > It is true that this is less secure that forcing the entire > command line (executable and arguments) in the config file. > But, so long as the executables are well authored and handle > unexpected arguments well, I think this enhancement would not > significantly decrease security. Do you think that > specifying arguments would make NRPE significantly less secure? > > > Dave > > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of > Rue Turner > Sent: Friday, December 20, 2002 1:33 PM > To: Naios Users > Subject: Re: [Nagios-users] NRPE enhancement > > > dave, > > I think the reson for this choice of configuration is security. If the > nrpe was allowed to run whatever it was asked it would be easy to > compromise your machines. This way although your configs are > hefty (mine > have almost a hundred lines in) you can only ask it to run > commands from > this library. > > rue > > > On Fri, 2002-12-20 at 17:35, Dave Viner wrote: > > Hi, > > I'd like to suggest an enhancement to NRPE, and if > people think this is a > > good idea, I'll try to make a patch to support my > suggestion. Currently the > > nrpe.cfg file specifies all the commands in this fashion: > > > command[check_disk1]=/usr/local/nagios/libexec/check_disk 80 > 95 /dev/hda1 > > As result of this design is that if you want to check something like > > /dev/hda1 and /dev/hdb1, you need two seperate lines in the > nrpe.cfg file. > > So, I'd like to propose that we extend NRPE to allow > for the arguments to a > > command to be specified by the central Nagios server > instead of in the > > nrpe.cfg. The idea is that the nrpe.cfg would have one > command line which > > maps a key, 'check_disk', to a local executable, > > '/usr/local/nagios/libexec/check_disk'. The rest would be > specified from > > the central Nagios server in some manner. > > I think this would great simplify the nrpe.cfg files, > and reduce a lot of > > redundant command definitions that differ only in the arguments they > > require. Also, it would mean that you'd need to update > your nrpe.cfg very > > rarely. In fact, you'd only need to update it when you add > a new plugin. > > I don't have a concrete suggestion for implementing > this yet, because I > > want to see if the community is interested in this idea > first. Has this > > idea been suggested previously? Is anyone currently > interested in the idea > > or would I be the only consumer of such a service? > > > > thanks > > dave > > > > > > > > ------------------------------------------------------- > > This SF.NET email is sponsored by: The Best Geek Holiday Gifts! > > Time is running out! Thinkgeek.com has the coolest gifts for > > your favorite geek. Let your fingers do the typing. Visit Now. > > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > r u e t u r n e r > ? t ? h ? i ? n ? l ? a ? y ? e ? r ? > > -- index, n.: Alphabetical list of words of no possible interest where > an alphabetical list of subjects with references ought to be. > > > ------------------------------------------------------- > This SF.NET email is sponsored by: The Best Geek Holiday Gifts! > Time is running out! Thinkgeek.com has the coolest gifts for > your favorite geek. Let your fingers do the typing. Visit Now. > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From harpo at thebackrow.net Fri Dec 27 19:55:41 2002 From: harpo at thebackrow.net (Will Lowe) Date: Fri, 27 Dec 2002 10:55:41 -0800 Subject: 2.0, who's using what, etc. In-Reply-To: <72CF2973A7532D478D85271D40F608FCC3F407@mercury.panvera.com> References: <72CF2973A7532D478D85271D40F608FCC3F407@mercury.panvera.com> Message-ID: <20021227185541.GB2473@thebackrow.net> Ok, so far I've found a few people who aren't using the database support, and only one who isn't using Apache. How many hosts/services are you guys monitoring, how many people use the web interface, and how's the performance? I have Netsaint (without db support) monitoring 500 machines with about 1700 service checks. I'm using a distributed setup where most (90%) of the checks are done by remote stations and the central unit just does aggregation and display ... and I'm finding that the web interface is basically unusable. I'm beginning to suspect that the file IO alone (reading/parsing the configs and status.log on every CGI load) is largely to blame ... -- thanks, Will ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jcarro10 at sprintspectrum.com Fri Dec 27 20:46:06 2002 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 27 Dec 2002 13:46:06 -0600 Subject: NRPE enhancement Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F24B9@PKDWB03C.ad.sprint.com> I'm not a C programmer by profession, so I defer your query to those who have a strong background, both in C code and system/network security. It does presume that every other link in the chain is bulletproof. [Insert ObRef to Bugtraq here.] At any rate, I'm curious to hear why Ethan didn't choose that approach to begin with. jc > -----Original Message----- > From: Dave Viner [mailto:dviner at yahoo-inc.com] > Sent: Friday, December 27, 2002 12:49 PM > To: Nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] NRPE enhancement > > > This sounds interesting, but I have a question about the > security implications of this code. I'm not a security > expert, so please excuse the somewhat basic question. The > struct packet as defined in common/common.h has an argv > member which is a character array of length 2048. I believe > this means that if the incoming packet has an argv member > whose length is greater than 2048 chars, then the > rc=recvall(sock,(char > *)&receive_packet,&bytes_to_recv,socket_timeout); > should fail, should it not? > > However, I think your suggestions regarding stunnel, and > encryption are good ones, regardless of the inclusion of this code. > > thanks > > dave > > > -----Original Message----- > From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] > Sent: Friday, December 27, 2002 10:20 AM > To: 'Dave Viner'; Nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] NRPE enhancement > > > I think it's a good idea, but with the following provisions: > > - This should not be enabled by default. > > - The configure script, the Makefile and any/all NRPE docs > should explicitly > state the security risks in forcing the non-default (added feature) > behaviour. > > - If the daemon is compiled with this option, anytime the > daemon starts, it > should briefly mention that it has been compiled for this > behaviour, and a > quick remark about the increased risks. (Sent to stderr if > standalone, else > sent to syslog if running under (x)inetd). It should scream > loud and clear > if it's started under root; preferably it would simply not > run as root, full > stop. > > - Perhaps a reference to implementing NRPE with stunnel (and > only permitting > connections from localhost, as defined in nrpe.cfg) would be > desireable. > > I'm not a security guru, but it seems to me that facilitating > this feature > would open oneself up to a buffer overflow attack. If you're > on a trusted > network, it's a non-issue. > > On a related note, I'd be much more comfy with this feature > if there were a > facility to enforce some level of native encryption, such as > what NSCA uses. > If you don't have the keys to the house, you get dropped on > the floor. (I > have a similar wish for NSClient.) > > Food for thought. > > jc > > > -----Original Message----- > > From: Dave Viner [mailto:dviner at yahoo-inc.com] > > Sent: Friday, December 27, 2002 11:48 AM > > To: Nagios-users at lists.sourceforge.net > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > In order to clarify the idea that I'm proposing, I've made a > > patch to the nrpe source that implements what I'm describing. > > This patch is made against the nrpe-1.5.tar.gz from sourceforge. > > > > Essentially, these changes allow us to specify in the > > nrpe.cfg file lines like this: > > command[check_disk_gen]=/usr/local/libexec/nagios/check_disk > > > > Then when invoking check_nrpe, you can invoke it like this: > > ./check_nrpe 127.0.0.1 -V 2 -c check_disk_gen -a "-w 50000 > > -c 10000 -p /dev/ad0s1e" > > > > And the effect is that /usr/local/libexec/nagios/check_disk > > is invoked with the -w 50000 -c 10000 -p /dev/ad0s1e as the > > argument string. For example: > > > > ~/nagios/nrpe-1.5.new/src>./check_nrpe 127.0.0.1 -V 2 -c > > check_disk_gen -a "-w 50000 -c 10000 -p /dev/ad0s1e" > > DISK OK - [1484108 kB (9%) free on /dev/ad0s1e] > > ~/nagios/nrpe-1.5.new/src> > > > > I think this is really useful and would greatly reduce the > > size of the nrpe.cfg and, more importantly, would reduce the > > number of times you'd need to modify that configuration file. > > Instead the modifications would occur on the centralized > > Nagios server's configuration file. > > > > What does everyone think? Should we add this to the main > > source for NRPE-1.6? > > > > dave > > > > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net > > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of > > Dave Viner > > Sent: Monday, December 23, 2002 8:51 AM > > To: Naios Users > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > Hi Rue, > > Security is a great reason for limiting the commands > > that NRPE is able to execute. But my suggested enhancement > > wouldn't allow NRPE to execute any command that isn't listed > > in the cfg file. That is, the NRPE would still need to find > > the path to the executable in the nrpe.cfg file, then use any > > remaining information as arguments passed to the executable. > > It is true that this is less secure that forcing the entire > > command line (executable and arguments) in the config file. > > But, so long as the executables are well authored and handle > > unexpected arguments well, I think this enhancement would not > > significantly decrease security. Do you think that > > specifying arguments would make NRPE significantly less secure? > > > > > > Dave > > > > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net > > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of > > Rue Turner > > Sent: Friday, December 20, 2002 1:33 PM > > To: Naios Users > > Subject: Re: [Nagios-users] NRPE enhancement > > > > > > dave, > > > > I think the reson for this choice of configuration is > security. If the > > nrpe was allowed to run whatever it was asked it would be easy to > > compromise your machines. This way although your configs are > > hefty (mine > > have almost a hundred lines in) you can only ask it to run > > commands from > > this library. > > > > rue > > > > > > On Fri, 2002-12-20 at 17:35, Dave Viner wrote: > > > Hi, > > > I'd like to suggest an enhancement to NRPE, and if > > people think this is a > > > good idea, I'll try to make a patch to support my > > suggestion. Currently the > > > nrpe.cfg file specifies all the commands in this fashion: > > > > > command[check_disk1]=/usr/local/nagios/libexec/check_disk 80 > > 95 /dev/hda1 > > > As result of this design is that if you want to check > something like > > > /dev/hda1 and /dev/hdb1, you need two seperate lines in the > > nrpe.cfg file. > > > So, I'd like to propose that we extend NRPE to allow > > for the arguments to a > > > command to be specified by the central Nagios server > > instead of in the > > > nrpe.cfg. The idea is that the nrpe.cfg would have one > > command line which > > > maps a key, 'check_disk', to a local executable, > > > '/usr/local/nagios/libexec/check_disk'. The rest would be > > specified from > > > the central Nagios server in some manner. > > > I think this would great simplify the nrpe.cfg files, > > and reduce a lot of > > > redundant command definitions that differ only in the > arguments they > > > require. Also, it would mean that you'd need to update > > your nrpe.cfg very > > > rarely. In fact, you'd only need to update it when you add > > a new plugin. > > > I don't have a concrete suggestion for implementing > > this yet, because I > > > want to see if the community is interested in this idea > > first. Has this > > > idea been suggested previously? Is anyone currently > > interested in the idea > > > or would I be the only consumer of such a service? > > > > > > thanks > > > dave > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.NET email is sponsored by: The Best Geek Holiday Gifts! > > > Time is running out! Thinkgeek.com has the coolest gifts for > > > your favorite geek. Let your fingers do the typing. Visit Now. > > > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > r u e t u r n e r > > ? t ? h ? i ? n ? l ? a ? y ? e ? r ? > > > > -- index, n.: Alphabetical list of words of no possible > interest where > > an alphabetical list of subjects with references ought to be. > > > > > > ------------------------------------------------------- > > This SF.NET email is sponsored by: The Best Geek Holiday Gifts! > > Time is running out! Thinkgeek.com has the coolest gifts for > > your favorite geek. Let your fingers do the typing. Visit Now. > > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From GPotter at MarathonOil.com Fri Dec 27 21:38:29 2002 From: GPotter at MarathonOil.com (Potter, G M (Greg)) Date: Fri, 27 Dec 2002 14:38:29 -0600 Subject: CISCO MIB Message-ID: I think I have found the OIDs that I need for the Power supplies on my cisco 4006 switch. I am not sure how to implement this with check_snmp though. The first three lines are with the power supply plugged in, the next three are with the power supply unplugged. Any recommendations on the best way to check for downed power supplies, blades, administrative cards, etc... SNMPv2-SMI::enterprises.9.5.1.2.20.0 = INTEGER: 25 SNMPv2-SMI::enterprises.9.5.1.2.21.0 = INTEGER: 2 SNMPv2-SMI::enterprises.9.5.1.2.22.0 = INTEGER: 0 $ SNMPv2-SMI::enterprises.9.5.1.2.20.0 = INTEGER: 25 SNMPv2-SMI::enterprises.9.5.1.2.21.0 = INTEGER: 4 SNMPv2-SMI::enterprises.9.5.1.2.22.0 = INTEGER: 16384 S > -----Original Message----- > From: Potter, G M (Greg) > Sent: Friday, December 27, 2002 8:36 AM > To: Nagios-users (E-mail) > Subject: [Nagios-users] CISCO MIB > > > I could use some SNMP help from someone on the list with more SNMP > experience than I have. We recently had a redundant power supply > fail on one of our Catalyst switches. I would like to be able to > use check_snmp to query the switch on the status of the supervisor > card, the Ethernet blades and the power supplies. > > I have searched www.cisco.com for the correct OID to query, but have > been unable to get through to their ftp site for the last two days. > I have also tried an snmpwalk on the switches with the power supply > plugged in and unplugged looking for differences in the output of the > snmpwalk command. Included below are the OIDs I found that look > like they are power supply related, but I could not find any entries > that were status related (up, down, ok, faulty, etc...) > > 47.1.1.1.1.2.9 = "Container of power supply group" > 47.1.1.1.1.2.10 = "Container of power supply" > 47.1.1.1.1.2.11 = "400 watt supply" > 47.1.1.1.1.2.12 = "Container of power supply" > 47.1.1.1.1.2.13 = "400 watt supply" > 47.1.1.1.1.2.14 = "Container of power supply" > 47.1.1.1.1.2.15 = "400 watt supply" > 47.1.1.1.1.2.16 = "Container of Power Entry Module" > > Is anyone using check_snmp or a similar plugin for monitoring Cisco > switches/routers? If so what are the OIDs you are using. > I appreciate any helpful pointers. > > > Greg M. Potter > mailto:gpotter at marathonoil.com > > Non Scio, id est in Latina! > > ~~|\ > / | \ > ~^~^~^~ / | \ ~^~ Greg Potter~^~^~^~^ > ~^~^~ / 9255 ) ~^ Oklahoma City, OK^~^ > ~^~^_/____|____) ^~^~^~^~^~^~^~^~^~^~^~^ > ~^~^ \_________/ ^~^~^~^~^~^~^~^~^~^~^ > ~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~ > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From Stanley.Hopcroft at IPAustralia.Gov.AU Sat Dec 28 00:01:00 2002 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Sat, 28 Dec 2002 10:01:00 +1100 Subject: [netsaint] Email notifications In-Reply-To: ; from Mike.Hall@eiiecomm.com on Fri, Dec 27, 2002 at 09:09:46AM -0500 References: Message-ID: <20021228100055.A217@IPAustralia.Gov.AU> Dear Sir, I am writing to thank you for your letter and say that I am forwarding the reply to nagios-users in case someone else can correct any mistakes I make or that others may benefit from the correspondence. On Fri, Dec 27, 2002 at 09:09:46AM -0500, Mike.Hall at eiiecomm.com wrote: > Stanley, > Does mail have to be configured on my Netsaint box? It depends on where you want the mail sent and how it should be delivered (SMTP, SMS etc). If you only want mail delivered 'locally' ie to a user with a login account on the host running Nagios, No. Otherwise probably yes. The first thing to try is send mail to root or postmaster from the CLI - this is a Linux/Unix installation right ? - on the same box as that running Netsaint eg You should see something like this tsitc> echo 'In the beginning was the word and the word was with GOD' | mail postmaster tsitc> tail -2 /var/log/maillog Dec 28 09:41:34 tsitc sendmail[47835]: gBRMfYD5047835: to=postmaster, ctladdr=anwsmh (1001/1001), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30016, relay=localhost.aipo.gov.au. [127.0.0.1], dsn=2.0.0, stat=Sent (gBRMfYm3047836 Message accepted for delivery) Dec 28 09:41:34 tsitc sendmail[47837]: gBRMfYm3047836: to=root, ctladdr= (1001/1001), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30676, relay=local, dsn=2.0.0, stat=Sent tsitc> If you see 'Message accepted for delivery' all is well for local delivery (probably ...). Provided that Netsaint notify commands are correct, and you use 'unqualified' email addresses (like 'root', 'postmaster', 'ken' etc), a notify command like ... mail -s 'yada subject' ken should result in email being sent to "ken"'s account on the Netsaint host. If you want non local delivery ie to somewhere else, you need to configure your MTA. Here's an example from my Netsaint hosts.cfg with non local delivery contact[anwsmh]=Stanley Hopcroft;24x7;24x7;1;1;0;1;1;0;notify-by-email;host-notify-by-email;Stanley at xena If your MTA is sendmail, then the easiest way to do this is with mailertables. eg tsitc> more /etc/mail/mailertable IPAustralia.gov.au esmtp:ipaustralia.gov.au . esmtp:vmail This means that any mail to Foo at IPAustralia.Gov.AU goes to the MX for IP Australia, otherwise to a box named Vmail (that knows how to deliver to any email address). Don't try this at home !! Do the R&D yourself or hire someone to configure your MTA eg one of the Nagios/Netsaint professional consultants on the Web pages {that is not me by the way] Don't do anything until you are confident that you won't break your organisations mail system etc >I have tested taking > my laptop down and have not received a notification. Any ideas? > Was the 'laptop' being monitored by Netsaint ? (entries in hosts.cfg ..) Is there a NOTIFY entry in netsaint.log ? Is there a corresponding entry in maillog ? > Mike Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jcarro10 at sprintspectrum.com Sat Dec 28 00:21:10 2002 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 27 Dec 2002 17:21:10 -0600 Subject: Nagios, MySQL and trending Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F24BA@PKDWB03C.ad.sprint.com> After a few bumps and bruises, I succeeded in converting my existing Nagios installation to include MySQL support (except for the host/service extended info, which I deliberately avoided). Now that it's merrily collecting the data in the serviceretention table, I'm a bit disappointed that my key reason for doing the conversion (trending data) isn't quite supported as I'd hoped. I was hoping it would keep an archive of the ongoing service (and host) performance data. I know there's a compile-time option to do something similar using a file (xpdfile_service_perfdata_file), but if this data were in MySQL, I'd never have to fiddle with stop/rename/start on a periodic basis (eg, once every 24 hours). I'd rather not create a cronjob to read the service retention table just to populate another table every minute, if possible. Am I overlooking something simple, or is the capability just not there today? If the latter, are there any plans to provide this in the foreseeable future? (Ethan?) If I can nail this down, I'll have a more serious go of using PHP/JpGraph to do some ad-hoc trend graphing. jc ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From Jeff.Engstrom at fortix.net Sat Dec 28 00:49:56 2002 From: Jeff.Engstrom at fortix.net (Jeff Engstrom) Date: Fri, 27 Dec 2002 15:49:56 -0800 Subject: Nagios hostgroup options Message-ID: <6DC8CB0C5A67744EB3D89E41BC429F9513088E@fortix-exchange.fortix-office.com> Greetings, Does anyone know if Nagios supports groups within a group? I will provide an example... hosts.cfg define host{ use generic-host host_name examplehost1 alias Example Host 1 address x.x.x.x. check_command check-host-alive max_check_attempts 10 notification_interval 120 notification_period none notification_options d,r } define host{ use generic-host host_name examplehost2 alias Example Host 2 address x.x.x.x. check_command check-host-alive max_check_attempts 10 notification_interval 120 notification_period none notification_options d,r } hostgroup.cfg define hostgroup{ hostgroup_name examplegroup1 alias Example Group 1 contact_groups examplecontact members examplehost1 } define hostgroup{ hostgroup_name examplegroup2 alias Example Group 2 contact_groups examplecontact members examplehost2 } define hostgroup{ hostgroup_name examplegroup3 alias Example Group 3 contact_groups examplecontact members examplegroup1,examplegroup2 } Any ideas are a huge help... Thank you! -Jeff -------------- next part -------------- An HTML attachment was scrubbed... URL: From sfulton at esoteric.ca Sat Dec 28 02:33:57 2002 From: sfulton at esoteric.ca (Steve Fulton) Date: Fri, 27 Dec 2002 20:33:57 -0500 Subject: Solaris compile woes: undefined getopt_long Message-ID: <5.1.0.14.0.20021227202423.01aee8f8@postoffice.esoteric.ca> Hi all, I'm trying to compile Nagios under Solaris 8, and it keeps failing with the following message: *** make all .... gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE nagios.c checks.o config.o commands.o flapping.o logging.o notifications.o sehandlers.o utils.o sretention.o ../xdata/xrddefault.c ../common/comments.c ../xdata/xcddefault.c ../common/objects.c ../xdata/xodtemplate.c ../common/statusdata.c ../xdata/xsddefault.c perfdata.o ../xdata/xpddefault.c ../common/downtime.c ../xdata/xdddefault.c -lm -o nagios Undefined first referenced symbol in file getopt_long /var/tmp//ccz3C8yU.o ld: fatal: Symbol referencing errors. No output written to nagios collect2: ld returned 1 exit status make[1]: *** [nagios] Error 1 make[1]: Leaving directory `/export/home/steve/files/nagios/tmp/nagios-1.0/base' make: *** [all] Error 2 *** Yes, I do have a getopt header file on my system, and getopt *is* defined in common/config.h! I have commented it out, but I prefer to actually find the source of the original error rather than run without. FYI, here are my configure options: ./configure --prefix=/usr/local/nagios --with-cgiurl=/nagios/cgi-bin --with-htmurl=/nagios .. and I run "make all" as instructed. If you have any thoughts, I'd appreciate them. -- Steve ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From nagios at nagios.org Sat Dec 28 04:38:09 2002 From: nagios at nagios.org (Ethan Galstad) Date: Fri, 27 Dec 2002 21:38:09 -0600 Subject: NRPE enhancement In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB2F24B9@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB2F24B9@PKDWB03C.ad.sprint.com> Message-ID: <3E0CC841.4411.EFE5A8@localhost> There are several reasons why I have not added support for arguments to checks in NRPE. Most have been touched on in the past on the list, but I'll reiterate them here. The main issue is not overruning the 2K packet that the check_nrpe plugin and NRPE daemon pass back and forth - that can be easily avoided... 1. Users connecting to the NRPE are not authenticated. Sure, you can restrict connection based on IP address using TCP wrappers, but they are still not authenticated. Also, I am not too familiar with IP spoofing, but I'm sure its possible for someone to fake the originating address of the connection and get the NRPE daemon to accept the packet and execute the necessary plugin without too much trouble. 2. Some plugins (like check_dhcp) may (have to) be installed suid root. Regardless of what user the NRPE daemon is running as, these plugins will be executed with higher privs. 3. Plugins can be made to segfault under the right conditions. Sure, we can try and eliminate this possibility, but it will probably always exist to some extent since many plugins call system commands to get their data. --- Most remote exploits rely on buffer overflows/segfaults to get their work done, so allowing unauthenticated users to pass arbitrary arguments/data to plugins that might be running suid commands is a very bad idea indeed. Stunnel would provide some security, but there is no guarantee that everyone would use it. There would undoubtably be many people that would put off implementing it until they finished "testing" NRPE. In the worst case, they might never get around to implementing stunnel at all. In the likely best case scenario, there is at least a window of opportunity. I just don't want to be responsible for the possible carnage that happens at that point. :-) Also, incorporating native encryption into NRPE involves reinventing the wheel called "check_by_ssh", so I'm really interested in doing that. On 27 Dec 2002 at 13:46, Carroll, Jim P [Contractor] wrote: > I'm not a C programmer by profession, so I defer your query to those who > have a strong background, both in C code and system/network security. It > does presume that every other link in the chain is bulletproof. [Insert > ObRef to Bugtraq here.] > > At any rate, I'm curious to hear why Ethan didn't choose that approach to > begin with. > > jc > > > -----Original Message----- > > From: Dave Viner [mailto:dviner at yahoo-inc.com] > > Sent: Friday, December 27, 2002 12:49 PM > > To: Nagios-users at lists.sourceforge.net > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > This sounds interesting, but I have a question about the > > security implications of this code. I'm not a security > > expert, so please excuse the somewhat basic question. The > > struct packet as defined in common/common.h has an argv > > member which is a character array of length 2048. I believe > > this means that if the incoming packet has an argv member > > whose length is greater than 2048 chars, then the > > rc=recvall(sock,(char > > *)&receive_packet,&bytes_to_recv,socket_timeout); > > should fail, should it not? > > > > However, I think your suggestions regarding stunnel, and > > encryption are good ones, regardless of the inclusion of this code. > > > > thanks > > > > dave > > > > > > -----Original Message----- > > From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] > > Sent: Friday, December 27, 2002 10:20 AM > > To: 'Dave Viner'; Nagios-users at lists.sourceforge.net > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > I think it's a good idea, but with the following provisions: > > > > - This should not be enabled by default. > > > > - The configure script, the Makefile and any/all NRPE docs > > should explicitly > > state the security risks in forcing the non-default (added feature) > > behaviour. > > > > - If the daemon is compiled with this option, anytime the > > daemon starts, it > > should briefly mention that it has been compiled for this > > behaviour, and a > > quick remark about the increased risks. (Sent to stderr if > > standalone, else > > sent to syslog if running under (x)inetd). It should scream > > loud and clear > > if it's started under root; preferably it would simply not > > run as root, full > > stop. > > > > - Perhaps a reference to implementing NRPE with stunnel (and > > only permitting > > connections from localhost, as defined in nrpe.cfg) would be > > desireable. > > > > I'm not a security guru, but it seems to me that facilitating > > this feature > > would open oneself up to a buffer overflow attack. If you're > > on a trusted > > network, it's a non-issue. > > > > On a related note, I'd be much more comfy with this feature > > if there were a > > facility to enforce some level of native encryption, such as > > what NSCA uses. > > If you don't have the keys to the house, you get dropped on > > the floor. (I > > have a similar wish for NSClient.) > > > > Food for thought. > > > > jc > > > > > -----Original Message----- > > > From: Dave Viner [mailto:dviner at yahoo-inc.com] > > > Sent: Friday, December 27, 2002 11:48 AM > > > To: Nagios-users at lists.sourceforge.net > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > In order to clarify the idea that I'm proposing, I've made a > > > patch to the nrpe source that implements what I'm describing. > > > This patch is made against the nrpe-1.5.tar.gz from sourceforge. > > > > > > Essentially, these changes allow us to specify in the > > > nrpe.cfg file lines like this: > > > command[check_disk_gen]=/usr/local/libexec/nagios/check_disk > > > > > > Then when invoking check_nrpe, you can invoke it like this: > > > ./check_nrpe 127.0.0.1 -V 2 -c check_disk_gen -a "-w 50000 > > > -c 10000 -p /dev/ad0s1e" > > > > > > And the effect is that /usr/local/libexec/nagios/check_disk > > > is invoked with the -w 50000 -c 10000 -p /dev/ad0s1e as the > > > argument string. For example: > > > > > > ~/nagios/nrpe-1.5.new/src>./check_nrpe 127.0.0.1 -V 2 -c > > > check_disk_gen -a "-w 50000 -c 10000 -p /dev/ad0s1e" > > > DISK OK - [1484108 kB (9%) free on /dev/ad0s1e] > > > ~/nagios/nrpe-1.5.new/src> > > > > > > I think this is really useful and would greatly reduce the > > > size of the nrpe.cfg and, more importantly, would reduce the > > > number of times you'd need to modify that configuration file. > > > Instead the modifications would occur on the centralized > > > Nagios server's configuration file. > > > > > > What does everyone think? Should we add this to the main > > > source for NRPE-1.6? > > > > > > dave > > > > > > > > > -----Original Message----- > > > From: nagios-users-admin at lists.sourceforge.net > > > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of > > > Dave Viner > > > Sent: Monday, December 23, 2002 8:51 AM > > > To: Naios Users > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > Hi Rue, > > > Security is a great reason for limiting the commands > > > that NRPE is able to execute. But my suggested enhancement > > > wouldn't allow NRPE to execute any command that isn't listed > > > in the cfg file. That is, the NRPE would still need to find > > > the path to the executable in the nrpe.cfg file, then use any > > > remaining information as arguments passed to the executable. > > > It is true that this is less secure that forcing the entire > > > command line (executable and arguments) in the config file. > > > But, so long as the executables are well authored and handle > > > unexpected arguments well, I think this enhancement would not > > > significantly decrease security. Do you think that > > > specifying arguments would make NRPE significantly less secure? > > > > > > > > > Dave > > > > > > > > > -----Original Message----- > > > From: nagios-users-admin at lists.sourceforge.net > > > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of > > > Rue Turner > > > Sent: Friday, December 20, 2002 1:33 PM > > > To: Naios Users > > > Subject: Re: [Nagios-users] NRPE enhancement > > > > > > > > > dave, > > > > > > I think the reson for this choice of configuration is > > security. If the > > > nrpe was allowed to run whatever it was asked it would be easy to > > > compromise your machines. This way although your configs are > > > hefty (mine > > > have almost a hundred lines in) you can only ask it to run > > > commands from > > > this library. > > > > > > rue > > > > > > > > > On Fri, 2002-12-20 at 17:35, Dave Viner wrote: > > > > Hi, > > > > I'd like to suggest an enhancement to NRPE, and if > > > people think this is a > > > > good idea, I'll try to make a patch to support my > > > suggestion. Currently the > > > > nrpe.cfg file specifies all the commands in this fashion: > > > > > > > command[check_disk1]=/usr/local/nagios/libexec/check_disk 80 > > > 95 /dev/hda1 > > > > As result of this design is that if you want to check > > something like > > > > /dev/hda1 and /dev/hdb1, you need two seperate lines in the > > > nrpe.cfg file. > > > > So, I'd like to propose that we extend NRPE to allow > > > for the arguments to a > > > > command to be specified by the central Nagios server > > > instead of in the > > > > nrpe.cfg. The idea is that the nrpe.cfg would have one > > > command line which > > > > maps a key, 'check_disk', to a local executable, > > > > '/usr/local/nagios/libexec/check_disk'. The rest would be > > > specified from > > > > the central Nagios server in some manner. > > > > I think this would great simplify the nrpe.cfg files, > > > and reduce a lot of > > > > redundant command definitions that differ only in the > > arguments they > > > > require. Also, it would mean that you'd need to update > > > your nrpe.cfg very > > > > rarely. In fact, you'd only need to update it when you add > > > a new plugin. > > > > I don't have a concrete suggestion for implementing > > > this yet, because I > > > > want to see if the community is interested in this idea > > > first. Has this > > > > idea been suggested previously? Is anyone currently > > > interested in the idea > > > > or would I be the only consumer of such a service? > > > > > > > > thanks > > > > dave > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > This SF.NET email is sponsored by: The Best Geek Holiday Gifts! > > > > Time is running out! Thinkgeek.com has the coolest gifts for > > > > your favorite geek. Let your fingers do the typing. Visit Now. > > > > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > > > > _______________________________________________ > > > > Nagios-users mailing list > > > > Nagios-users at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > r u e t u r n e r > > > ?? t ?? h ?? i ?? n ?? l ?? a ?? y ?? e ?? r ?? > > > > > > -- index, n.: Alphabetical list of words of no possible > > interest where > > > an alphabetical list of subjects with references ought to be. > > > > > > > > > ------------------------------------------------------- > > > This SF.NET email is sponsored by: The Best Geek Holiday Gifts! > > > Time is running out! Thinkgeek.com has the coolest gifts for > > > your favorite geek. Let your fingers do the typing. Visit Now. > > > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > > > > > > > ------------------------------------------------------- > > > This sf.net email is sponsored by:ThinkGeek > > > Welcome to geek heaven. > > > http://thinkgeek.com/sf > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > Ethan Galstad, Nagios Developer --- Email: nagios at nagios.org Website: http://www.nagios.org ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From chocklehot at clan-union.com Sat Dec 28 04:43:03 2002 From: chocklehot at clan-union.com (Charles) Date: Fri, 27 Dec 2002 22:43:03 -0500 Subject: The n00b again :) Message-ID: Hi, Well I am trying to start nagios, and the app never finish to load it: [root@***** bin]# ./nagios /usr/local/nagios/etc/nagios.cfg Nagios 1.0 Copyright (c) 1999-2002 Ethan Galstad (nagios at nagios.org) Last Modified: 11-24-2002 License: GPL Nagios 1.0 starting... (PID=1155) Warning: Contact 'jdoe' is not a member of any contact groups! [root at rksclan bin]# cd .. I want in nagios.log and got this: [1041051657] HOST ALERT: linux2;DOWN;SOFT;2;CRITICAL - Plugin timed out after 10 seconds So... Could anyone help me??? Ty Chock ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From mmcclure at pneservices.com Sat Dec 28 06:08:38 2002 From: mmcclure at pneservices.com (Mike McClure) Date: Fri, 27 Dec 2002 23:08:38 -0600 (CST) Subject: Solaris compile woes: undefined getopt_long In-Reply-To: <5.1.0.14.0.20021227202423.01aee8f8@postoffice.esoteric.ca> References: <5.1.0.14.0.20021227202423.01aee8f8@postoffice.esoteric.ca> Message-ID: <1870.192.168.1.9.1041052118.squirrel@xyzzy.homeip.net> Hi Steve, Which version are you trying to compile? 1.0-stable? CVS? 1.0b6? Post your ./configure output, please. Do a "make clean" first, though. - Mike > Hi all, > > I'm trying to compile Nagios under Solaris 8, and it keeps failing with the > following message: > > *** > make all > .... > gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE nagios.c checks.o config.o commands.o > flapping.o logging.o notifications.o sehandlers.o utils.o sretention.o > ../xdata/xrddefault.c ../common/comments.c ../xdata/xcddefault.c > ../common/objects.c ../xdata/xodtemplate.c ../common/statusdata.c > ../xdata/xsddefault.c perfdata.o ../xdata/xpddefault.c ../common/downtime.c > ../xdata/xdddefault.c -lm -o nagios > Undefined first referenced > symbol in file > getopt_long /var/tmp//ccz3C8yU.o > ld: fatal: Symbol referencing errors. No output written to nagios > collect2: ld returned 1 exit status > make[1]: *** [nagios] Error 1 > make[1]: Leaving directory > `/export/home/steve/files/nagios/tmp/nagios-1.0/base' > make: *** [all] Error 2 > > *** > > Yes, I do have a getopt header file on my system, and getopt *is* defined > in common/config.h! I have commented it out, but I prefer to actually find > the source of the original error rather than run without. > > FYI, here are my configure options: > > ./configure --prefix=/usr/local/nagios --with-cgiurl=/nagios/cgi-bin > --with-htmurl=/nagios > > .. and I run "make all" as instructed. > > If you have any thoughts, I'd appreciate them. > > -- Steve -- Mike McClure, CCIE # 5125, CISSP # 30232 PNE Services, Inc. - http://www.pneservices.com mmcclure at pneservices.com mobile: 913-636-5590 ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From gilles.poiret at noos.fr Fri Dec 27 22:51:36 2002 From: gilles.poiret at noos.fr (Gilles Poiret) Date: Fri, 27 Dec 2002 22:51:36 +0100 Subject: Avaibility report Message-ID: <20021227215136.GA3325@localhost> Hi, i have trouble with Avaibility reports. For instance : By Services -> ALL SERVICES -> Last 7 days (assume Initial States , assume State Retention, First assumed State Unspecified), and I've results Host Service % Time OK% Time Warning% Time Unknown% Time Critical% Time Undetermined HTTP 100.000%(100.000%) 0.000% (0.000%) 0.000% (0.000%) 0.000%(0.000%) 0.000% That's seems OK. BUT.. when I click on the link "HTTP" I have the following result : OK, WARNING, UNKNOWN, CRITICAL : 0 And on the Undetermined case : Nagios Not Running 0d 0h 0m 0s 0.000% Insufficient Data 7d 0h 0m 0s 100.000% Total 7d 0h 0m 0s 100.000% All Total 7d 0h 0m 0s 100.000%100.000% And no logs (full/condensed) are available.. And the "Service Detail" view give me : | HTTP | OK | 27-12-2002 22:28:48 | 49d 11h 9m 50s | 1/3 | HTTP ok: HTTP/1.1 200 OK - 0.390 second response time -> the check command works normaly -> no problem are detected since 49 days (this information is good) ... For this 7 days period, no problems are detected, so nothing was logged. But I'm wondering if results have had to be believe, and if it's always the right state which is taken when no information are available for a determined period.. Why in the global report, I have : time OK : 100 % ; time undetermed : 0 %, while in the detailed view : it's the opposite !!! ? Thanks to explain me what's wrong, Regards, -- Gilles Poiret ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From dviner at yahoo-inc.com Sat Dec 28 22:45:42 2002 From: dviner at yahoo-inc.com (Dave Viner) Date: Sat, 28 Dec 2002 13:45:42 -0800 Subject: NRPE enhancement In-Reply-To: <3E0CC841.4411.EFE5A8@localhost> References: <3E0CC841.4411.EFE5A8@localhost> Message-ID: These are excellent arguments for not incorporating the enhancement I am suggesting. However, I suspect that there are lots of installations of Nagios and NRPE that run on completely trusted network. (Or the risk of network intrusion through NRPE is worth the benefit of reduced configuration management.) What do you think about incorporating this enhancement but have it turned off by default, and enabled only at configure time? dave -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Ethan Galstad Sent: Friday, December 27, 2002 7:38 PM To: nagios-users Subject: RE: [Nagios-users] NRPE enhancement There are several reasons why I have not added support for arguments to checks in NRPE. Most have been touched on in the past on the list, but I'll reiterate them here. The main issue is not overruning the 2K packet that the check_nrpe plugin and NRPE daemon pass back and forth - that can be easily avoided... 1. Users connecting to the NRPE are not authenticated. Sure, you can restrict connection based on IP address using TCP wrappers, but they are still not authenticated. Also, I am not too familiar with IP spoofing, but I'm sure its possible for someone to fake the originating address of the connection and get the NRPE daemon to accept the packet and execute the necessary plugin without too much trouble. 2. Some plugins (like check_dhcp) may (have to) be installed suid root. Regardless of what user the NRPE daemon is running as, these plugins will be executed with higher privs. 3. Plugins can be made to segfault under the right conditions. Sure, we can try and eliminate this possibility, but it will probably always exist to some extent since many plugins call system commands to get their data. --- Most remote exploits rely on buffer overflows/segfaults to get their work done, so allowing unauthenticated users to pass arbitrary arguments/data to plugins that might be running suid commands is a very bad idea indeed. Stunnel would provide some security, but there is no guarantee that everyone would use it. There would undoubtably be many people that would put off implementing it until they finished "testing" NRPE. In the worst case, they might never get around to implementing stunnel at all. In the likely best case scenario, there is at least a window of opportunity. I just don't want to be responsible for the possible carnage that happens at that point. :-) Also, incorporating native encryption into NRPE involves reinventing the wheel called "check_by_ssh", so I'm really interested in doing that. On 27 Dec 2002 at 13:46, Carroll, Jim P [Contractor] wrote: > I'm not a C programmer by profession, so I defer your query to those who > have a strong background, both in C code and system/network security. It > does presume that every other link in the chain is bulletproof. [Insert > ObRef to Bugtraq here.] > > At any rate, I'm curious to hear why Ethan didn't choose that approach to > begin with. > > jc > > > -----Original Message----- > > From: Dave Viner [mailto:dviner at yahoo-inc.com] > > Sent: Friday, December 27, 2002 12:49 PM > > To: Nagios-users at lists.sourceforge.net > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > This sounds interesting, but I have a question about the > > security implications of this code. I'm not a security > > expert, so please excuse the somewhat basic question. The > > struct packet as defined in common/common.h has an argv > > member which is a character array of length 2048. I believe > > this means that if the incoming packet has an argv member > > whose length is greater than 2048 chars, then the > > rc=recvall(sock,(char > > *)&receive_packet,&bytes_to_recv,socket_timeout); > > should fail, should it not? > > > > However, I think your suggestions regarding stunnel, and > > encryption are good ones, regardless of the inclusion of this code. > > > > thanks > > > > dave > > > > > > -----Original Message----- > > From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] > > Sent: Friday, December 27, 2002 10:20 AM > > To: 'Dave Viner'; Nagios-users at lists.sourceforge.net > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > I think it's a good idea, but with the following provisions: > > > > - This should not be enabled by default. > > > > - The configure script, the Makefile and any/all NRPE docs > > should explicitly > > state the security risks in forcing the non-default (added feature) > > behaviour. > > > > - If the daemon is compiled with this option, anytime the > > daemon starts, it > > should briefly mention that it has been compiled for this > > behaviour, and a > > quick remark about the increased risks. (Sent to stderr if > > standalone, else > > sent to syslog if running under (x)inetd). It should scream > > loud and clear > > if it's started under root; preferably it would simply not > > run as root, full > > stop. > > > > - Perhaps a reference to implementing NRPE with stunnel (and > > only permitting > > connections from localhost, as defined in nrpe.cfg) would be > > desireable. > > > > I'm not a security guru, but it seems to me that facilitating > > this feature > > would open oneself up to a buffer overflow attack. If you're > > on a trusted > > network, it's a non-issue. > > > > On a related note, I'd be much more comfy with this feature > > if there were a > > facility to enforce some level of native encryption, such as > > what NSCA uses. > > If you don't have the keys to the house, you get dropped on > > the floor. (I > > have a similar wish for NSClient.) > > > > Food for thought. > > > > jc > > > > > -----Original Message----- > > > From: Dave Viner [mailto:dviner at yahoo-inc.com] > > > Sent: Friday, December 27, 2002 11:48 AM > > > To: Nagios-users at lists.sourceforge.net > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > In order to clarify the idea that I'm proposing, I've made a > > > patch to the nrpe source that implements what I'm describing. > > > This patch is made against the nrpe-1.5.tar.gz from sourceforge. > > > > > > Essentially, these changes allow us to specify in the > > > nrpe.cfg file lines like this: > > > command[check_disk_gen]=/usr/local/libexec/nagios/check_disk > > > > > > Then when invoking check_nrpe, you can invoke it like this: > > > ./check_nrpe 127.0.0.1 -V 2 -c check_disk_gen -a "-w 50000 > > > -c 10000 -p /dev/ad0s1e" > > > > > > And the effect is that /usr/local/libexec/nagios/check_disk > > > is invoked with the -w 50000 -c 10000 -p /dev/ad0s1e as the > > > argument string. For example: > > > > > > ~/nagios/nrpe-1.5.new/src>./check_nrpe 127.0.0.1 -V 2 -c > > > check_disk_gen -a "-w 50000 -c 10000 -p /dev/ad0s1e" > > > DISK OK - [1484108 kB (9%) free on /dev/ad0s1e] > > > ~/nagios/nrpe-1.5.new/src> > > > > > > I think this is really useful and would greatly reduce the > > > size of the nrpe.cfg and, more importantly, would reduce the > > > number of times you'd need to modify that configuration file. > > > Instead the modifications would occur on the centralized > > > Nagios server's configuration file. > > > > > > What does everyone think? Should we add this to the main > > > source for NRPE-1.6? > > > > > > dave > > > > > > > > > -----Original Message----- > > > From: nagios-users-admin at lists.sourceforge.net > > > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of > > > Dave Viner > > > Sent: Monday, December 23, 2002 8:51 AM > > > To: Naios Users > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > Hi Rue, > > > Security is a great reason for limiting the commands > > > that NRPE is able to execute. But my suggested enhancement > > > wouldn't allow NRPE to execute any command that isn't listed > > > in the cfg file. That is, the NRPE would still need to find > > > the path to the executable in the nrpe.cfg file, then use any > > > remaining information as arguments passed to the executable. > > > It is true that this is less secure that forcing the entire > > > command line (executable and arguments) in the config file. > > > But, so long as the executables are well authored and handle > > > unexpected arguments well, I think this enhancement would not > > > significantly decrease security. Do you think that > > > specifying arguments would make NRPE significantly less secure? > > > > > > > > > Dave > > > > > > > > > -----Original Message----- > > > From: nagios-users-admin at lists.sourceforge.net > > > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of > > > Rue Turner > > > Sent: Friday, December 20, 2002 1:33 PM > > > To: Naios Users > > > Subject: Re: [Nagios-users] NRPE enhancement > > > > > > > > > dave, > > > > > > I think the reson for this choice of configuration is > > security. If the > > > nrpe was allowed to run whatever it was asked it would be easy to > > > compromise your machines. This way although your configs are > > > hefty (mine > > > have almost a hundred lines in) you can only ask it to run > > > commands from > > > this library. > > > > > > rue > > > > > > > > > On Fri, 2002-12-20 at 17:35, Dave Viner wrote: > > > > Hi, > > > > I'd like to suggest an enhancement to NRPE, and if > > > people think this is a > > > > good idea, I'll try to make a patch to support my > > > suggestion. Currently the > > > > nrpe.cfg file specifies all the commands in this fashion: > > > > > > > command[check_disk1]=/usr/local/nagios/libexec/check_disk 80 > > > 95 /dev/hda1 > > > > As result of this design is that if you want to check > > something like > > > > /dev/hda1 and /dev/hdb1, you need two seperate lines in the > > > nrpe.cfg file. > > > > So, I'd like to propose that we extend NRPE to allow > > > for the arguments to a > > > > command to be specified by the central Nagios server > > > instead of in the > > > > nrpe.cfg. The idea is that the nrpe.cfg would have one > > > command line which > > > > maps a key, 'check_disk', to a local executable, > > > > '/usr/local/nagios/libexec/check_disk'. The rest would be > > > specified from > > > > the central Nagios server in some manner. > > > > I think this would great simplify the nrpe.cfg files, > > > and reduce a lot of > > > > redundant command definitions that differ only in the > > arguments they > > > > require. Also, it would mean that you'd need to update > > > your nrpe.cfg very > > > > rarely. In fact, you'd only need to update it when you add > > > a new plugin. > > > > I don't have a concrete suggestion for implementing > > > this yet, because I > > > > want to see if the community is interested in this idea > > > first. Has this > > > > idea been suggested previously? Is anyone currently > > > interested in the idea > > > > or would I be the only consumer of such a service? > > > > > > > > thanks > > > > dave > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > This SF.NET email is sponsored by: The Best Geek Holiday Gifts! > > > > Time is running out! Thinkgeek.com has the coolest gifts for > > > > your favorite geek. Let your fingers do the typing. Visit Now. > > > > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > > > > _______________________________________________ > > > > Nagios-users mailing list > > > > Nagios-users at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > r u e t u r n e r > > > ?? t ?? h ?? i ?? n ?? l ?? a ?? y ?? e ?? r ?? > > > > > > -- index, n.: Alphabetical list of words of no possible > > interest where > > > an alphabetical list of subjects with references ought to be. > > > > > > > > > ------------------------------------------------------- > > > This SF.NET email is sponsored by: The Best Geek Holiday Gifts! > > > Time is running out! Thinkgeek.com has the coolest gifts for > > > your favorite geek. Let your fingers do the typing. Visit Now. > > > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > > > > > > > ------------------------------------------------------- > > > This sf.net email is sponsored by:ThinkGeek > > > Welcome to geek heaven. > > > http://thinkgeek.com/sf > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > Ethan Galstad, Nagios Developer --- Email: nagios at nagios.org Website: http://www.nagios.org ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From twelsh at square-box.com Sun Dec 29 02:02:03 2002 From: twelsh at square-box.com (Tom Welsh) Date: Sun, 29 Dec 2002 01:02:03 -0000 Subject: NRPE enhancement In-Reply-To: References: Message-ID: <000001c2aed5$e6815d60$0400a8c0@squarebox.com> In my humble opinion an option that allows an arbitary command to be executed and which by "default" is switched off is an accident waiting to happen. It only takes 1 security breach via a plugin to completely destroy the good name Nagios and its associated plugins have. There is a good truism that states "good news travels fast, but bad news travels even faster" I for one would not be too happy having a command available on my network, trusted or not that would allow commands to be executed remotely pon a box. For one. It?s the kind of thing im always looking for when im "playing on my " networks. Well that?s my two cents worth Cheers Tom Welsh twelsh at square-box.com -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Dave Viner Sent: 28 December 2002 21:46 To: Ethan Galstad; nagios-users Subject: RE: [Nagios-users] NRPE enhancement These are excellent arguments for not incorporating the enhancement I am suggesting. However, I suspect that there are lots of installations of Nagios and NRPE that run on completely trusted network. (Or the risk of network intrusion through NRPE is worth the benefit of reduced configuration management.) What do you think about incorporating this enhancement but have it turned off by default, and enabled only at configure time? dave -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Ethan Galstad Sent: Friday, December 27, 2002 7:38 PM To: nagios-users Subject: RE: [Nagios-users] NRPE enhancement There are several reasons why I have not added support for arguments to checks in NRPE. Most have been touched on in the past on the list, but I'll reiterate them here. The main issue is not overruning the 2K packet that the check_nrpe plugin and NRPE daemon pass back and forth - that can be easily avoided... 1. Users connecting to the NRPE are not authenticated. Sure, you can restrict connection based on IP address using TCP wrappers, but they are still not authenticated. Also, I am not too familiar with IP spoofing, but I'm sure its possible for someone to fake the originating address of the connection and get the NRPE daemon to accept the packet and execute the necessary plugin without too much trouble. 2. Some plugins (like check_dhcp) may (have to) be installed suid root. Regardless of what user the NRPE daemon is running as, these plugins will be executed with higher privs. 3. Plugins can be made to segfault under the right conditions. Sure, we can try and eliminate this possibility, but it will probably always exist to some extent since many plugins call system commands to get their data. --- Most remote exploits rely on buffer overflows/segfaults to get their work done, so allowing unauthenticated users to pass arbitrary arguments/data to plugins that might be running suid commands is a very bad idea indeed. Stunnel would provide some security, but there is no guarantee that everyone would use it. There would undoubtably be many people that would put off implementing it until they finished "testing" NRPE. In the worst case, they might never get around to implementing stunnel at all. In the likely best case scenario, there is at least a window of opportunity. I just don't want to be responsible for the possible carnage that happens at that point. :-) Also, incorporating native encryption into NRPE involves reinventing the wheel called "check_by_ssh", so I'm really interested in doing that. On 27 Dec 2002 at 13:46, Carroll, Jim P [Contractor] wrote: > I'm not a C programmer by profession, so I defer your query to those who > have a strong background, both in C code and system/network security. It > does presume that every other link in the chain is bulletproof. [Insert > ObRef to Bugtraq here.] > > At any rate, I'm curious to hear why Ethan didn't choose that approach to > begin with. > > jc > > > -----Original Message----- > > From: Dave Viner [mailto:dviner at yahoo-inc.com] > > Sent: Friday, December 27, 2002 12:49 PM > > To: Nagios-users at lists.sourceforge.net > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > This sounds interesting, but I have a question about the > > security implications of this code. I'm not a security > > expert, so please excuse the somewhat basic question. The > > struct packet as defined in common/common.h has an argv > > member which is a character array of length 2048. I believe > > this means that if the incoming packet has an argv member > > whose length is greater than 2048 chars, then the > > rc=recvall(sock,(char > > *)&receive_packet,&bytes_to_recv,socket_timeout); > > should fail, should it not? > > > > However, I think your suggestions regarding stunnel, and > > encryption are good ones, regardless of the inclusion of this code. > > > > thanks > > > > dave > > > > > > -----Original Message----- > > From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] > > Sent: Friday, December 27, 2002 10:20 AM > > To: 'Dave Viner'; Nagios-users at lists.sourceforge.net > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > I think it's a good idea, but with the following provisions: > > > > - This should not be enabled by default. > > > > - The configure script, the Makefile and any/all NRPE docs > > should explicitly > > state the security risks in forcing the non-default (added feature) > > behaviour. > > > > - If the daemon is compiled with this option, anytime the > > daemon starts, it > > should briefly mention that it has been compiled for this > > behaviour, and a > > quick remark about the increased risks. (Sent to stderr if > > standalone, else > > sent to syslog if running under (x)inetd). It should scream > > loud and clear > > if it's started under root; preferably it would simply not > > run as root, full > > stop. > > > > - Perhaps a reference to implementing NRPE with stunnel (and > > only permitting > > connections from localhost, as defined in nrpe.cfg) would be > > desireable. > > > > I'm not a security guru, but it seems to me that facilitating > > this feature > > would open oneself up to a buffer overflow attack. If you're > > on a trusted > > network, it's a non-issue. > > > > On a related note, I'd be much more comfy with this feature > > if there were a > > facility to enforce some level of native encryption, such as > > what NSCA uses. > > If you don't have the keys to the house, you get dropped on > > the floor. (I > > have a similar wish for NSClient.) > > > > Food for thought. > > > > jc > > > > > -----Original Message----- > > > From: Dave Viner [mailto:dviner at yahoo-inc.com] > > > Sent: Friday, December 27, 2002 11:48 AM > > > To: Nagios-users at lists.sourceforge.net > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > In order to clarify the idea that I'm proposing, I've made a > > > patch to the nrpe source that implements what I'm describing. > > > This patch is made against the nrpe-1.5.tar.gz from sourceforge. > > > > > > Essentially, these changes allow us to specify in the > > > nrpe.cfg file lines like this: > > > command[check_disk_gen]=/usr/local/libexec/nagios/check_disk > > > > > > Then when invoking check_nrpe, you can invoke it like this: > > > ./check_nrpe 127.0.0.1 -V 2 -c check_disk_gen -a "-w 50000 > > > -c 10000 -p /dev/ad0s1e" > > > > > > And the effect is that /usr/local/libexec/nagios/check_disk > > > is invoked with the -w 50000 -c 10000 -p /dev/ad0s1e as the > > > argument string. For example: > > > > > > ~/nagios/nrpe-1.5.new/src>./check_nrpe 127.0.0.1 -V 2 -c > > > check_disk_gen -a "-w 50000 -c 10000 -p /dev/ad0s1e" > > > DISK OK - [1484108 kB (9%) free on /dev/ad0s1e] > > > ~/nagios/nrpe-1.5.new/src> > > > > > > I think this is really useful and would greatly reduce the > > > size of the nrpe.cfg and, more importantly, would reduce the > > > number of times you'd need to modify that configuration file. > > > Instead the modifications would occur on the centralized > > > Nagios server's configuration file. > > > > > > What does everyone think? Should we add this to the main > > > source for NRPE-1.6? > > > > > > dave > > > > > > > > > -----Original Message----- > > > From: nagios-users-admin at lists.sourceforge.net > > > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of > > > Dave Viner > > > Sent: Monday, December 23, 2002 8:51 AM > > > To: Naios Users > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > Hi Rue, > > > Security is a great reason for limiting the commands > > > that NRPE is able to execute. But my suggested enhancement > > > wouldn't allow NRPE to execute any command that isn't listed > > > in the cfg file. That is, the NRPE would still need to find > > > the path to the executable in the nrpe.cfg file, then use any > > > remaining information as arguments passed to the executable. > > > It is true that this is less secure that forcing the entire > > > command line (executable and arguments) in the config file. > > > But, so long as the executables are well authored and handle > > > unexpected arguments well, I think this enhancement would not > > > significantly decrease security. Do you think that > > > specifying arguments would make NRPE significantly less secure? > > > > > > > > > Dave > > > > > > > > > -----Original Message----- > > > From: nagios-users-admin at lists.sourceforge.net > > > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of > > > Rue Turner > > > Sent: Friday, December 20, 2002 1:33 PM > > > To: Naios Users > > > Subject: Re: [Nagios-users] NRPE enhancement > > > > > > > > > dave, > > > > > > I think the reson for this choice of configuration is > > security. If the > > > nrpe was allowed to run whatever it was asked it would be easy to > > > compromise your machines. This way although your configs are > > > hefty (mine > > > have almost a hundred lines in) you can only ask it to run > > > commands from > > > this library. > > > > > > rue > > > > > > > > > On Fri, 2002-12-20 at 17:35, Dave Viner wrote: > > > > Hi, > > > > I'd like to suggest an enhancement to NRPE, and if > > > people think this is a > > > > good idea, I'll try to make a patch to support my > > > suggestion. Currently the > > > > nrpe.cfg file specifies all the commands in this fashion: > > > > > > > command[check_disk1]=/usr/local/nagios/libexec/check_disk 80 > > > 95 /dev/hda1 > > > > As result of this design is that if you want to check > > something like > > > > /dev/hda1 and /dev/hdb1, you need two seperate lines in the > > > nrpe.cfg file. > > > > So, I'd like to propose that we extend NRPE to allow > > > for the arguments to a > > > > command to be specified by the central Nagios server > > > instead of in the > > > > nrpe.cfg. The idea is that the nrpe.cfg would have one > > > command line which > > > > maps a key, 'check_disk', to a local executable, > > > > '/usr/local/nagios/libexec/check_disk'. The rest would be > > > specified from > > > > the central Nagios server in some manner. > > > > I think this would great simplify the nrpe.cfg files, > > > and reduce a lot of > > > > redundant command definitions that differ only in the > > arguments they > > > > require. Also, it would mean that you'd need to update > > > your nrpe.cfg very > > > > rarely. In fact, you'd only need to update it when you add > > > a new plugin. > > > > I don't have a concrete suggestion for implementing > > > this yet, because I > > > > want to see if the community is interested in this idea > > > first. Has this > > > > idea been suggested previously? Is anyone currently > > > interested in the idea > > > > or would I be the only consumer of such a service? > > > > > > > > thanks > > > > dave > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > This SF.NET email is sponsored by: The Best Geek Holiday Gifts! > > > > Time is running out! Thinkgeek.com has the coolest gifts for > > > > your favorite geek. Let your fingers do the typing. Visit Now. > > > > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > > > > _______________________________________________ > > > > Nagios-users mailing list > > > > Nagios-users at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > r u e t u r n e r > > > ?? t ?? h ?? i ?? n ?? l ?? a ?? y ?? e ?? r ?? > > > > > > -- index, n.: Alphabetical list of words of no possible > > interest where > > > an alphabetical list of subjects with references ought to be. > > > > > > > > > ------------------------------------------------------- > > > This SF.NET email is sponsored by: The Best Geek Holiday Gifts! > > > Time is running out! Thinkgeek.com has the coolest gifts for > > > your favorite geek. Let your fingers do the typing. Visit Now. > > > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > > > > > > > ------------------------------------------------------- > > > This sf.net email is sponsored by:ThinkGeek > > > Welcome to geek heaven. > > > http://thinkgeek.com/sf > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > Ethan Galstad, Nagios Developer --- Email: nagios at nagios.org Website: http://www.nagios.org ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From Olaf.Greis at grinco.de Sun Dec 29 11:55:47 2002 From: Olaf.Greis at grinco.de (Olaf Greis) Date: Sun, 29 Dec 2002 11:55:47 +0100 Subject: controlling tty In-Reply-To: <20021220170735.0661b962.natejohn@indiana.edu> References: <1040411462.1556.17.camel@lappy.fuzzypenguin.net> <20021220170735.0661b962.natejohn@indiana.edu> Message-ID: <200212291155.48062@grinco.de> Am Freitag, 20. Dezember 2002 23:07 schrieb Nate Johnson: > When doing remote checks through check_by_ssh, they work from the command > line, but from the cgi interface, they return a warning status with the > message: > > warning: You have no controlling tty. Cannot read confirmation. > > Anyone know what I might be doing wrong? Any advice would be great. try to call ssh with -o 'Batchmode yes' (or put it in you ssh2_config file for the user) brgds olaf ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From rue at thinlayer.co.uk Mon Dec 30 10:41:42 2002 From: rue at thinlayer.co.uk (Rue Turner) Date: 30 Dec 2002 09:41:42 +0000 Subject: Nagios, MySQL and trending In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB2F24BA@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB2F24BA@PKDWB03C.ad.sprint.com> Message-ID: <1041241301.1113.9.camel@servalon> > After a few bumps and bruises, I succeeded in converting my existing Nagios > installation to include MySQL support (except for the host/service extended > info, which I deliberately avoided). Jim, It might interest you to know that database support is being dropped. There's a full discussion on it somewhere and I believe it's also in the docs somewhere - something to do with it being such a headache to deal with (sorry for simplification, Ethan.) I am waiting for a while to build up courage before removing the db from my installation - I use extended data a lot! don't shoot the messenger rue ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From hrishys at yahoo.co.uk Mon Dec 30 11:20:30 2002 From: hrishys at yahoo.co.uk (=?iso-8859-1?q?hrishy?=) Date: Mon, 30 Dec 2002 10:20:30 +0000 (GMT) Subject: sample files required In-Reply-To: <1041241301.1113.9.camel@servalon> References: <1041241301.1113.9.camel@servalon> Message-ID: <20021230102030.30860.qmail@web12606.mail.yahoo.com> Hi All I installed nagios yesterday...my congrajulatiosn to all these wunderful people here for providing such an excellent masterpiece..after the initial configuration i ran into a few gottchas...my nagios monitoring process is not running when i edit the sample configuration files...so i am wundering if anybody is kind enough to ship me his/hers working configuration files ..probably it would be a good point for me to start out.. regards Hrishy __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From atulsh at hclinsys.com Mon Dec 30 12:25:30 2002 From: atulsh at hclinsys.com (Atul Shrivastava) Date: Mon, 30 Dec 2002 16:55:30 +0530 (IST) Subject: SNMP Setting in Windows In-Reply-To: <20021230102030.30860.qmail@web12606.mail.yahoo.com> References: <20021230102030.30860.qmail@web12606.mail.yahoo.com> Message-ID: Hello All, I want to know that what all are the settings that are required while configuring the SNMP service in Win NT & Win 2K machines. I think that on the Nagios side only check_snmp is configured in the checkcommands.cfg Can anyone give me a way out. Regards and have a nice day, Atul Shrivastava Info Structure Services HCL INFOSYSTEMS LTD. E - 4,5,6 Sector XI, Noida - 201301 Tel: 91-120-2526910,2443013 ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From AHKAPLAN at PARTNERS.ORG Mon Dec 30 13:45:42 2002 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Mon, 30 Dec 2002 07:45:42 -0500 Subject: No Lock File Foudn In... Message-ID: <5593DA408212D511B0910002A513501F01D2885F@phsexch20.mgh.harvard.edu> I have installed Nagios 1.0 (non-beta) onto a Red Hat 8.0 computer. The installation appeared to go by without a problem. However, when I try to automatically or manually start the program via the init script, the following error occurs: NO LOCK FILE FOUND IN /USR/LOCAL/NAGIOS/VAR/NAGIOS.LOCK. Is this file automatically created or do I need to manually create one? If the latter is true, will the touch command be sufficient? Thanks. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From hrishys at yahoo.co.uk Mon Dec 30 14:28:26 2002 From: hrishys at yahoo.co.uk (=?iso-8859-1?q?hrishy?=) Date: Mon, 30 Dec 2002 13:28:26 +0000 (GMT) Subject: sample configuration files In-Reply-To: <5593DA408212D511B0910002A513501F01D2885F@phsexch20.mgh.harvard.edu> References: <5593DA408212D511B0910002A513501F01D2885F@phsexch20.mgh.harvard.edu> Message-ID: <20021230132826.49786.qmail@web12606.mail.yahoo.com> Hi I have tried to manipulate the sample configuration file hosts.cfg..when i change it..i get the following error when trying to run the nagios deamon in verbose mode.. Error: Could not add object property in file '/usr/local/nagios/etc/hosts.cfg' on line 36. my partial hosts.cfg file including line 26 raeds like this..can somebody help me.. 28 #'unix1' host definition 29 define host{ 30 use generic-host ; Name of host t emplate 31 to use 32 host_name zblrdv89 33 alias Unix Server #1 34 address 176.1.111.89 35 check_command check-host-alive 36 max_check_attempts 10 37 notification_interval 480 38 notification_period 24x7 39 notification_options d,u,r 40 } can sombody please help me.. regards Hrishy __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From emann at questinc.org Mon Dec 30 15:10:51 2002 From: emann at questinc.org (Evan Mann) Date: Mon, 30 Dec 2002 09:10:51 -0500 Subject: modem based alerts Message-ID: I currently have 2 levels of alerts setup, the initials emails and an all host group escalation which is an email alert to a nextel phone. I'd like to add a 3rd level which is a modem based alert to a Nextel phone. Does anyone have a modem based alert to Nextel's that they are dealing with? I'd like some input how how they deal with this. I am unsure if Nextel has an # specifically for automated paging, so if I assume they don't, I can have it simply call and just leave dead silence on the phone and I just check the caller id and know that particular # it's calling from is only for my alerts. This seems very lacking however. Any advice would be appreciated. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jduraisw at smtp.aed.org Mon Dec 30 16:01:14 2002 From: jduraisw at smtp.aed.org (John Duraiswamy) Date: Mon, 30 Dec 2002 10:01:14 -0500 Subject: Check_nt Message-ID: Hello everyone, I monitor the NT servers with USEDDISKSPACE. Is there a way you can monitor by MEGS instead of percentage? for example if the free space go below 400 megs. thanks John ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From dack at msi.umn.edu Mon Dec 30 16:02:53 2002 From: dack at msi.umn.edu (Dack Anderson) Date: Mon, 30 Dec 2002 09:02:53 -0600 (CST) Subject: modem based alerts In-Reply-To: References: Message-ID: Contact your provider for a TAP number. or check out: http://www.notepager.net/tap-phone-numbers-n.htm I see that Nextel has several numbers. Also check out Qpage for the text-messaging software. On Mon, 30 Dec 2002, Evan Mann wrote: > I currently have 2 levels of alerts setup, the initials emails and an all > host group escalation which is an email alert to a nextel phone. > > I'd like to add a 3rd level which is a modem based alert to a Nextel phone. > Does anyone have a modem based alert to Nextel's that they are dealing > with? I'd like some input how how they deal with this. I am unsure if > Nextel has an # specifically for automated paging, so if I assume they > don't, I can have it simply call and just leave dead silence on the phone > and I just check the caller id and know that particular # it's calling from > is only for my alerts. This seems very lacking however. Any advice would > be appreciated. > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > -- Dack Anderson ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From sureshot2k at hotmail.com Mon Dec 30 16:40:43 2002 From: sureshot2k at hotmail.com (Alec) Date: Mon, 30 Dec 2002 10:40:43 -0500 Subject: Check_nt References: Message-ID: What's wrong with finding out what percentage 400 megs is? your drive size isn't changing, is it? :) Alec ----- Original Message ----- From: "John Duraiswamy" To: Sent: Monday, December 30, 2002 10:01 AM Subject: [Nagios-users] Check_nt Hello everyone, I monitor the NT servers with USEDDISKSPACE. Is there a way you can monitor by MEGS instead of percentage? for example if the free space go below 400 megs. thanks John ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From gastrauskas at burrelles.com Mon Dec 30 17:11:17 2002 From: gastrauskas at burrelles.com (Giedrius Astrauskas) Date: Mon, 30 Dec 2002 11:11:17 -0500 Subject: How to make Nagios ping Message-ID: <00ae01c2b01e$15c9cf50$9c0312ac@developer01> Hi, I am sure that there must be an easy solution to this, because when I was using NSCA, Nagios was pinging every time the NSCA client did not return OK message. However, now I am attempting to simply make Nagios ping the client computer without having installed anything (no NSCA, no NRPE, no plugins)on client computer. I inlcuded client computer in hosts.cfg, also I created new service entry in services.cfg: define service{ use generic-service ; Name of service template to use host_name zsbld07 service_description CheckPing is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 1 retry_check_interval 1 contact_groups windows-admins notification_interval 60 notification_period 24x7 notification_options w,u,c,r check_command check_ping_m } then I created command in checkcommands.cfg: # 'check_ping_m' command definition define command{ command_name check_ping_m command_line $USER1$/check_ping -H -w 5000 -c 10000 -p 5 } I installed plugins and above syntax I got from check_ping plugin's help. However, when I run Nagios, it displays the status of the above service as "UNKNOWN". Does it mean that I cannot simply make Nagios ping client computer wihtout having anything installed on client? Sorry, if the question sounds simple - I am still in the process of trying to understand how Nagios works. I would appreciate any advice. Thanks. Giedrius ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jcarro10 at sprintspectrum.com Mon Dec 30 17:18:26 2002 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Mon, 30 Dec 2002 10:18:26 -0600 Subject: NRPE enhancement Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F24BB@PKDWB03C.ad.sprint.com> Ethan Galstad wrote: > Also, incorporating native encryption into NRPE involves reinventing > the wheel called "check_by_ssh", so I'm really interested in doing > that. Erm... did you mean to say "I'm really interested"? The context would imply that you meant that you're not. :^) Having said that, I would agree that implementing crypto in NRPE would be something of a duplication of effort. I'm admittedly curious why crypto *is* available as an option for NSCA (not that I'm complaining). jc ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jlyons30 at yahoo.com Mon Dec 30 17:27:19 2002 From: jlyons30 at yahoo.com (Jon Lyons) Date: Mon, 30 Dec 2002 08:27:19 -0800 (PST) Subject: modem based alerts In-Reply-To: References: Message-ID: <20021230162719.50492.qmail@web21506.mail.yahoo.com> Yes, I use qpage, nextel use the TAPS protocol.... Evan Mann wrote: I currently have 2 levels of alerts setup, the initials emails and an all host group escalation which is an email alert to a nextel phone. I'd like to add a 3rd level which is a modem based alert to a Nextel phone. Does anyone have a modem based alert to Nextel's that they are dealing with? I'd like some input how how they deal with this. I am unsure if Nextel has an # specifically for automated paging, so if I assume they don't, I can have it simply call and just leave dead silence on the phone and I just check the caller id and know that particular # it's calling from is only for my alerts. This seems very lacking however. Any advice would be appreciated. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: qpage.cf Type: application/octet-stream Size: 1429 bytes Desc: qpage.cf URL: From gastrauskas at burrelles.com Mon Dec 30 17:37:01 2002 From: gastrauskas at burrelles.com (Giedrius Astrauskas) Date: Mon, 30 Dec 2002 11:37:01 -0500 Subject: How to make Nagios ping References: <00ae01c2b01e$15c9cf50$9c0312ac@developer01> Message-ID: <00cb01c2b021$ade4af50$9c0312ac@developer01> Hi, I guess this is a problem with my use of plugin, because when I run the same command from the command line, I get an error: ./check_ping -H -w 5000 -c 10000 -p 5 was not set Could not parse argumentsUsage: check_ping -H -w ,%% -c ,%% [-p packets] [-t timeout] [-L] check_ping (-h | --help) for detailed help check_ping (-V | --version) for version information Giedrius ----- Original Message ----- From: "Giedrius Astrauskas" To: Sent: Monday, December 30, 2002 11:11 AM Subject: [Nagios-users] How to make Nagios ping > Hi, > > I am sure that there must be an easy solution to this, because when I was > using NSCA, Nagios was pinging every time the NSCA client did not return OK > message. > > However, now I am attempting to simply make Nagios ping the client computer > without having installed anything (no NSCA, no NRPE, no plugins)on client > computer. > I inlcuded client computer in hosts.cfg, also I created new service entry in > services.cfg: > > define service{ > use generic-service ; Name of > service template to use > > host_name zsbld07 > service_description CheckPing > is_volatile 0 > check_period 24x7 > max_check_attempts 3 > normal_check_interval 1 > retry_check_interval 1 > contact_groups windows-admins > notification_interval 60 > notification_period 24x7 > notification_options w,u,c,r > check_command check_ping_m > } > > then I created command in checkcommands.cfg: > > # 'check_ping_m' command definition > define command{ > command_name check_ping_m > command_line $USER1$/check_ping -H removed before posting> -w 5000 -c 10000 -p 5 > } > > > I installed plugins and above syntax I got from check_ping plugin's help. > However, when I run Nagios, it displays the status of the above service as > "UNKNOWN". > Does it mean that I cannot simply make Nagios ping client computer wihtout > having anything installed on client? > > Sorry, if the question sounds simple - I am still in the process of trying > to understand how Nagios works. > I would appreciate any advice. > Thanks. > > > Giedrius > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From JBilder at netrixllc.com Mon Dec 30 17:36:58 2002 From: JBilder at netrixllc.com (Jeff Bilder) Date: Mon, 30 Dec 2002 10:36:58 -0600 Subject: How to make Nagios ping Message-ID: recompile Nagios without the ping option. It worked great! >>> "Giedrius Astrauskas" 12/30/02 10:11AM >>> Hi, I am sure that there must be an easy solution to this, because when I was using NSCA, Nagios was pinging every time the NSCA client did not return OK message. However, now I am attempting to simply make Nagios ping the client computer without having installed anything (no NSCA, no NRPE, no plugins)on client computer. I inlcuded client computer in hosts.cfg, also I created new service entry in services.cfg: define service{ use generic-service ; Name of service template to use host_name zsbld07 service_description CheckPing is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 1 retry_check_interval 1 contact_groups windows-admins notification_interval 60 notification_period 24x7 notification_options w,u,c,r check_command check_ping_m } then I created command in checkcommands.cfg: # 'check_ping_m' command definition define command{ command_name check_ping_m command_line $USER1$/check_ping -H -w 5000 -c 10000 -p 5 } I installed plugins and above syntax I got from check_ping plugin's help. However, when I run Nagios, it displays the status of the above service as "UNKNOWN". Does it mean that I cannot simply make Nagios ping client computer wihtout having anything installed on client? Sorry, if the question sounds simple - I am still in the process of trying to understand how Nagios works. I would appreciate any advice. Thanks. Giedrius ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jlyons30 at yahoo.com Mon Dec 30 17:37:40 2002 From: jlyons30 at yahoo.com (Jon Lyons) Date: Mon, 30 Dec 2002 08:37:40 -0800 (PST) Subject: Nextel(and other 2way paging device) 2way paging scripts In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB2F24BB@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB2F24BB@PKDWB03C.ad.sprint.com> Message-ID: <20021230163740.38869.qmail@web21501.mail.yahoo.com> Hi, I've been using these scripts for a few weeks now for 2 way paging to my nextel, thought I'd share them if anyone else wants to use them. They look and work ugly, but they do work.. :) Please note you'll need some basic Perl knowledge to use these scripts. Each script needs to be modified to work with your system. I'm just a beginner Perl user so excuse my mess! I use 1 script to send pages to my phone, with automated replies(so I don?t have to type on my phone) and then 2 scripts that are executed on the replies from my phone via e-mail. Currently I can acknowledge hosts/services, Dis/enable notifications, get current stats, and restart nagios. If during any point of the snpp page fails, the page is sent via modem by qpage, this doesn?t allow for 2way paging..L See the install.doc for details, I'll try and help, but there's no garuentee! --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 2way-paging.ZIP Type: application/x-zip-compressed Size: 8756 bytes Desc: 2way-paging.ZIP URL: From dviner at yahoo-inc.com Mon Dec 30 18:07:03 2002 From: dviner at yahoo-inc.com (Dave Viner) Date: Mon, 30 Dec 2002 09:07:03 -0800 Subject: NRPE enhancement In-Reply-To: <000001c2aed5$e6815d60$0400a8c0@squarebox.com> References: <000001c2aed5$e6815d60$0400a8c0@squarebox.com> Message-ID: I don't think that my enhancement allows an arbitrary command to be executed. I think the code that I wrote will only allow one of the commands already listed in the nrpe.cfg file to be executed. The arguments passed are arbitrary, but not the command. (The code even checks to ensure that the command requested, without any arguments, exists before executing it to prevent malicious usage of arguments.) dave -----Original Message----- From: Tom Welsh [mailto:twelsh at square-box.com] Sent: Saturday, December 28, 2002 5:02 PM To: 'Dave Viner'; 'Ethan Galstad'; 'nagios-users' Subject: RE: [Nagios-users] NRPE enhancement In my humble opinion an option that allows an arbitary command to be executed and which by "default" is switched off is an accident waiting to happen. It only takes 1 security breach via a plugin to completely destroy the good name Nagios and its associated plugins have. There is a good truism that states "good news travels fast, but bad news travels even faster" I for one would not be too happy having a command available on my network, trusted or not that would allow commands to be executed remotely pon a box. For one. It?s the kind of thing im always looking for when im "playing on my " networks. Well that?s my two cents worth Cheers Tom Welsh twelsh at square-box.com -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Dave Viner Sent: 28 December 2002 21:46 To: Ethan Galstad; nagios-users Subject: RE: [Nagios-users] NRPE enhancement These are excellent arguments for not incorporating the enhancement I am suggesting. However, I suspect that there are lots of installations of Nagios and NRPE that run on completely trusted network. (Or the risk of network intrusion through NRPE is worth the benefit of reduced configuration management.) What do you think about incorporating this enhancement but have it turned off by default, and enabled only at configure time? dave -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Ethan Galstad Sent: Friday, December 27, 2002 7:38 PM To: nagios-users Subject: RE: [Nagios-users] NRPE enhancement There are several reasons why I have not added support for arguments to checks in NRPE. Most have been touched on in the past on the list, but I'll reiterate them here. The main issue is not overruning the 2K packet that the check_nrpe plugin and NRPE daemon pass back and forth - that can be easily avoided... 1. Users connecting to the NRPE are not authenticated. Sure, you can restrict connection based on IP address using TCP wrappers, but they are still not authenticated. Also, I am not too familiar with IP spoofing, but I'm sure its possible for someone to fake the originating address of the connection and get the NRPE daemon to accept the packet and execute the necessary plugin without too much trouble. 2. Some plugins (like check_dhcp) may (have to) be installed suid root. Regardless of what user the NRPE daemon is running as, these plugins will be executed with higher privs. 3. Plugins can be made to segfault under the right conditions. Sure, we can try and eliminate this possibility, but it will probably always exist to some extent since many plugins call system commands to get their data. --- Most remote exploits rely on buffer overflows/segfaults to get their work done, so allowing unauthenticated users to pass arbitrary arguments/data to plugins that might be running suid commands is a very bad idea indeed. Stunnel would provide some security, but there is no guarantee that everyone would use it. There would undoubtably be many people that would put off implementing it until they finished "testing" NRPE. In the worst case, they might never get around to implementing stunnel at all. In the likely best case scenario, there is at least a window of opportunity. I just don't want to be responsible for the possible carnage that happens at that point. :-) Also, incorporating native encryption into NRPE involves reinventing the wheel called "check_by_ssh", so I'm really interested in doing that. On 27 Dec 2002 at 13:46, Carroll, Jim P [Contractor] wrote: > I'm not a C programmer by profession, so I defer your query to those who > have a strong background, both in C code and system/network security. It > does presume that every other link in the chain is bulletproof. [Insert > ObRef to Bugtraq here.] > > At any rate, I'm curious to hear why Ethan didn't choose that approach to > begin with. > > jc > > > -----Original Message----- > > From: Dave Viner [mailto:dviner at yahoo-inc.com] > > Sent: Friday, December 27, 2002 12:49 PM > > To: Nagios-users at lists.sourceforge.net > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > This sounds interesting, but I have a question about the > > security implications of this code. I'm not a security > > expert, so please excuse the somewhat basic question. The > > struct packet as defined in common/common.h has an argv > > member which is a character array of length 2048. I believe > > this means that if the incoming packet has an argv member > > whose length is greater than 2048 chars, then the > > rc=recvall(sock,(char > > *)&receive_packet,&bytes_to_recv,socket_timeout); > > should fail, should it not? > > > > However, I think your suggestions regarding stunnel, and > > encryption are good ones, regardless of the inclusion of this code. > > > > thanks > > > > dave > > > > > > -----Original Message----- > > From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] > > Sent: Friday, December 27, 2002 10:20 AM > > To: 'Dave Viner'; Nagios-users at lists.sourceforge.net > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > I think it's a good idea, but with the following provisions: > > > > - This should not be enabled by default. > > > > - The configure script, the Makefile and any/all NRPE docs > > should explicitly > > state the security risks in forcing the non-default (added feature) > > behaviour. > > > > - If the daemon is compiled with this option, anytime the > > daemon starts, it > > should briefly mention that it has been compiled for this > > behaviour, and a > > quick remark about the increased risks. (Sent to stderr if > > standalone, else > > sent to syslog if running under (x)inetd). It should scream > > loud and clear > > if it's started under root; preferably it would simply not > > run as root, full > > stop. > > > > - Perhaps a reference to implementing NRPE with stunnel (and > > only permitting > > connections from localhost, as defined in nrpe.cfg) would be > > desireable. > > > > I'm not a security guru, but it seems to me that facilitating > > this feature > > would open oneself up to a buffer overflow attack. If you're > > on a trusted > > network, it's a non-issue. > > > > On a related note, I'd be much more comfy with this feature > > if there were a > > facility to enforce some level of native encryption, such as > > what NSCA uses. > > If you don't have the keys to the house, you get dropped on > > the floor. (I > > have a similar wish for NSClient.) > > > > Food for thought. > > > > jc > > > > > -----Original Message----- > > > From: Dave Viner [mailto:dviner at yahoo-inc.com] > > > Sent: Friday, December 27, 2002 11:48 AM > > > To: Nagios-users at lists.sourceforge.net > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > In order to clarify the idea that I'm proposing, I've made a > > > patch to the nrpe source that implements what I'm describing. > > > This patch is made against the nrpe-1.5.tar.gz from sourceforge. > > > > > > Essentially, these changes allow us to specify in the > > > nrpe.cfg file lines like this: > > > command[check_disk_gen]=/usr/local/libexec/nagios/check_disk > > > > > > Then when invoking check_nrpe, you can invoke it like this: > > > ./check_nrpe 127.0.0.1 -V 2 -c check_disk_gen -a "-w 50000 > > > -c 10000 -p /dev/ad0s1e" > > > > > > And the effect is that /usr/local/libexec/nagios/check_disk > > > is invoked with the -w 50000 -c 10000 -p /dev/ad0s1e as the > > > argument string. For example: > > > > > > ~/nagios/nrpe-1.5.new/src>./check_nrpe 127.0.0.1 -V 2 -c > > > check_disk_gen -a "-w 50000 -c 10000 -p /dev/ad0s1e" > > > DISK OK - [1484108 kB (9%) free on /dev/ad0s1e] > > > ~/nagios/nrpe-1.5.new/src> > > > > > > I think this is really useful and would greatly reduce the > > > size of the nrpe.cfg and, more importantly, would reduce the > > > number of times you'd need to modify that configuration file. > > > Instead the modifications would occur on the centralized > > > Nagios server's configuration file. > > > > > > What does everyone think? Should we add this to the main > > > source for NRPE-1.6? > > > > > > dave > > > > > > > > > -----Original Message----- > > > From: nagios-users-admin at lists.sourceforge.net > > > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of > > > Dave Viner > > > Sent: Monday, December 23, 2002 8:51 AM > > > To: Naios Users > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > Hi Rue, > > > Security is a great reason for limiting the commands > > > that NRPE is able to execute. But my suggested enhancement > > > wouldn't allow NRPE to execute any command that isn't listed > > > in the cfg file. That is, the NRPE would still need to find > > > the path to the executable in the nrpe.cfg file, then use any > > > remaining information as arguments passed to the executable. > > > It is true that this is less secure that forcing the entire > > > command line (executable and arguments) in the config file. > > > But, so long as the executables are well authored and handle > > > unexpected arguments well, I think this enhancement would not > > > significantly decrease security. Do you think that > > > specifying arguments would make NRPE significantly less secure? > > > > > > > > > Dave > > > > > > > > > -----Original Message----- > > > From: nagios-users-admin at lists.sourceforge.net > > > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of > > > Rue Turner > > > Sent: Friday, December 20, 2002 1:33 PM > > > To: Naios Users > > > Subject: Re: [Nagios-users] NRPE enhancement > > > > > > > > > dave, > > > > > > I think the reson for this choice of configuration is > > security. If the > > > nrpe was allowed to run whatever it was asked it would be easy to > > > compromise your machines. This way although your configs are > > > hefty (mine > > > have almost a hundred lines in) you can only ask it to run > > > commands from > > > this library. > > > > > > rue > > > > > > > > > On Fri, 2002-12-20 at 17:35, Dave Viner wrote: > > > > Hi, > > > > I'd like to suggest an enhancement to NRPE, and if > > > people think this is a > > > > good idea, I'll try to make a patch to support my > > > suggestion. Currently the > > > > nrpe.cfg file specifies all the commands in this fashion: > > > > > > > command[check_disk1]=/usr/local/nagios/libexec/check_disk 80 > > > 95 /dev/hda1 > > > > As result of this design is that if you want to check > > something like > > > > /dev/hda1 and /dev/hdb1, you need two seperate lines in the > > > nrpe.cfg file. > > > > So, I'd like to propose that we extend NRPE to allow > > > for the arguments to a > > > > command to be specified by the central Nagios server > > > instead of in the > > > > nrpe.cfg. The idea is that the nrpe.cfg would have one > > > command line which > > > > maps a key, 'check_disk', to a local executable, > > > > '/usr/local/nagios/libexec/check_disk'. The rest would be > > > specified from > > > > the central Nagios server in some manner. > > > > I think this would great simplify the nrpe.cfg files, > > > and reduce a lot of > > > > redundant command definitions that differ only in the > > arguments they > > > > require. Also, it would mean that you'd need to update > > > your nrpe.cfg very > > > > rarely. In fact, you'd only need to update it when you add > > > a new plugin. > > > > I don't have a concrete suggestion for implementing > > > this yet, because I > > > > want to see if the community is interested in this idea > > > first. Has this > > > > idea been suggested previously? Is anyone currently > > > interested in the idea > > > > or would I be the only consumer of such a service? > > > > > > > > thanks > > > > dave > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > This SF.NET email is sponsored by: The Best Geek Holiday Gifts! > > > > Time is running out! Thinkgeek.com has the coolest gifts for > > > > your favorite geek. Let your fingers do the typing. Visit Now. > > > > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > > > > _______________________________________________ > > > > Nagios-users mailing list > > > > Nagios-users at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > r u e t u r n e r > > > ?? t ?? h ?? i ?? n ?? l ?? a ?? y ?? e ?? r ?? > > > > > > -- index, n.: Alphabetical list of words of no possible > > interest where > > > an alphabetical list of subjects with references ought to be. > > > > > > > > > ------------------------------------------------------- > > > This SF.NET email is sponsored by: The Best Geek Holiday Gifts! > > > Time is running out! Thinkgeek.com has the coolest gifts for > > > your favorite geek. Let your fingers do the typing. Visit Now. > > > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > > > > > > > ------------------------------------------------------- > > > This sf.net email is sponsored by:ThinkGeek > > > Welcome to geek heaven. > > > http://thinkgeek.com/sf > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > Ethan Galstad, Nagios Developer --- Email: nagios at nagios.org Website: http://www.nagios.org ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jcarro10 at sprintspectrum.com Mon Dec 30 18:32:34 2002 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Mon, 30 Dec 2002 11:32:34 -0600 Subject: NRPE enhancement Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F24BC@PKDWB03C.ad.sprint.com> As much as I'm concerned with the increased risks of the proposed NRPE enhancement, I'd like to add some perspective. Tom Welsh wrote: > In my humble opinion an option that allows an arbitary command to be > executed and which by "default" is switched off is an accident waiting > to happen. Giving a newbie a Linux distro on CD-ROM and letting him install it and connect it to an untrusted network is an accident waiting to happen. Arguably a much bigger accident. I would argue that having the 'enhanced' version squawk with something like: WARNING!!!! You have started a non-default version of NRPE which is considered less secure than the default version! Unless this is being run on a trusted network, it is STRONGLY recommended you recompile NRPE with the default options! (Refer to the README included in the original tarball.) each and every time it's started will tend to be noticed by most somewhat-security-aware sysadmins, I would think. > It only takes 1 security breach via a plugin to completely destroy the > good name Nagios and its associated plugins have. Hmm. 'Via a plugin'? Yeah alright, I can see that, if it's running with suid. I don't see that as an inherent risk with check_by_ssh, since that would depend on the SSH installation. (If you really wanted to, you could get pretty lame with SSH.) Security of the Nagios host itself would depend on locking it down, of course, and making sure you're not running a 'Swiss cheese' http server. The Nagios processes (if the docs are followed to the letter) run under user nagios, not root, or any other UID 0 account. What about NSClient? No crypto, no SSH option, no restrict-by-IP option in the client's config. Sure, you can use stunnel, but you still have to have a port open on the Windows client, and there's no way to restrict it to 127.0.0.1, short of adding a software firewall solution. (My apologies to the Windows gurus on the list if such a feature currently exists.) > There is a good truism that states "good news travels fast, > but bad news > travels even faster" "Everything in moderation, even moderation." -- Buddha > I for one would not be too happy having a command available on my > network, trusted or not that would allow commands to be executed > remotely pon a box. For one. It's the kind of thing im always looking > for when im "playing on my " networks. We have at least one command available for executing commands remotely. It's called ssh. Alright, I'm being the devil's advocate here. :^) All I'm saying is, perhaps it should be the sysadmin's choice whether he/she wants to install something considered more secure or less secure than what his/her bretheren/sisters are using. I still cringe when I find out someone wishes to enable telnetd. If the application boldly states that it's running in a less secure configuration than can be had and the sysadmin boldly accepts that risk, so be it. Nothing's stopping anyone from running rshd/rlogind/rexecd with "+" in hosts.equiv, for example, and unless you pick up a book on UNIX security, it may not occur to you what the risks are. Certainly the r-daemons don't give you any such warning. I personally wouldn't implement the 'enhanced' version of NRPE, but so long as the appropriate caveats were in place, I don't see why someone else shouldn't be given the chance. If it appears that I'm sitting on the fence, that's because I am. Creativity means growth; stifling creativity would eventually sound the death knell of any software development. There will always be some risk if a system is powered up and connected to a network. Security holes come about as the results of poor coding or design oversights, a.k.a. 'bugs'. Any non-trivial piece of code will have bugs. I seem to recall reading somewhere that it's not possible to prove that a given piece of code is bug-free; failure to find a bug does not constitute proof that the code is clean, whereas finding a bug proves the trivial case that at least one bug exists. It might be an interesting exercise to continue to enhance NRPE, even adding trivial security such as password authentication, rot13, identd support.... *shrug* Perhaps Mr. Viner would rise to the challenge...? > Well that's my two cents worth Add my $0.015 to the pile. :^) jc > Cheers > > Tom Welsh > twelsh at square-box.com > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Dave > Viner > Sent: 28 December 2002 21:46 > To: Ethan Galstad; nagios-users > Subject: RE: [Nagios-users] NRPE enhancement > > These are excellent arguments for not incorporating the > enhancement I am > suggesting. However, I suspect that there are lots of > installations of > Nagios and NRPE that run on completely trusted network. (Or > the risk of > network intrusion through NRPE is worth the benefit of reduced > configuration > management.) > > What do you think about incorporating this enhancement but have it > turned > off by default, and enabled only at configure time? > > dave > > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Ethan > Galstad > Sent: Friday, December 27, 2002 7:38 PM > To: nagios-users > Subject: RE: [Nagios-users] NRPE enhancement > > > There are several reasons why I have not added support for arguments > to checks in NRPE. Most have been touched on in the past on the > list, but I'll reiterate them here. The main issue is not overruning > the 2K packet that the check_nrpe plugin and NRPE daemon pass back > and forth - that can be easily avoided... > > 1. > Users connecting to the NRPE are not authenticated. Sure, you can > restrict connection based on IP address using TCP wrappers, but they > are still not authenticated. Also, I am not too familiar with IP > spoofing, but I'm sure its possible for someone to fake the > originating address of the connection and get the NRPE daemon to > accept the packet and execute the necessary plugin without too much > trouble. > > 2. > Some plugins (like check_dhcp) may (have to) be installed suid root. > Regardless of what user the NRPE daemon is running as, these plugins > will be executed with higher privs. > > 3. > Plugins can be made to segfault under the right conditions. Sure, we > can try and eliminate this possibility, but it will probably always > exist to some extent since many plugins call system commands to get > their data. > > --- > > Most remote exploits rely on buffer overflows/segfaults to get their > work done, so allowing unauthenticated users to pass arbitrary > arguments/data to plugins that might be running suid commands is a > very bad idea indeed. > > Stunnel would provide some security, but there is no guarantee that > everyone would use it. There would undoubtably be many people that > would put off implementing it until they finished "testing" NRPE. In > the worst case, they might never get around to implementing stunnel > at all. In the likely best case scenario, there is at least a window > of opportunity. I just don't want to be responsible for the possible > carnage that happens at that point. :-) > > Also, incorporating native encryption into NRPE involves reinventing > the wheel called "check_by_ssh", so I'm really interested in doing > that. > > > > On 27 Dec 2002 at 13:46, Carroll, Jim P [Contractor] wrote: > > > I'm not a C programmer by profession, so I defer your query to those > who > > have a strong background, both in C code and system/network > security. > It > > does presume that every other link in the chain is bulletproof. > [Insert > > ObRef to Bugtraq here.] > > > > At any rate, I'm curious to hear why Ethan didn't choose > that approach > to > > begin with. > > > > jc > > > > > -----Original Message----- > > > From: Dave Viner [mailto:dviner at yahoo-inc.com] > > > Sent: Friday, December 27, 2002 12:49 PM > > > To: Nagios-users at lists.sourceforge.net > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > This sounds interesting, but I have a question about the > > > security implications of this code. I'm not a security > > > expert, so please excuse the somewhat basic question. The > > > struct packet as defined in common/common.h has an argv > > > member which is a character array of length 2048. I believe > > > this means that if the incoming packet has an argv member > > > whose length is greater than 2048 chars, then the > > > rc=recvall(sock,(char > > > *)&receive_packet,&bytes_to_recv,socket_timeout); > > > should fail, should it not? > > > > > > However, I think your suggestions regarding stunnel, and > > > encryption are good ones, regardless of the inclusion of > this code. > > > > > > thanks > > > > > > dave > > > > > > > > > -----Original Message----- > > > From: Carroll, Jim P [Contractor] > [mailto:jcarro10 at sprintspectrum.com] > > > Sent: Friday, December 27, 2002 10:20 AM > > > To: 'Dave Viner'; Nagios-users at lists.sourceforge.net > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > I think it's a good idea, but with the following provisions: > > > > > > - This should not be enabled by default. > > > > > > - The configure script, the Makefile and any/all NRPE docs > > > should explicitly > > > state the security risks in forcing the non-default > (added feature) > > > behaviour. > > > > > > - If the daemon is compiled with this option, anytime the > > > daemon starts, it > > > should briefly mention that it has been compiled for this > > > behaviour, and a > > > quick remark about the increased risks. (Sent to stderr if > > > standalone, else > > > sent to syslog if running under (x)inetd). It should scream > > > loud and clear > > > if it's started under root; preferably it would simply not > > > run as root, full > > > stop. > > > > > > - Perhaps a reference to implementing NRPE with stunnel (and > > > only permitting > > > connections from localhost, as defined in nrpe.cfg) would be > > > desireable. > > > > > > I'm not a security guru, but it seems to me that facilitating > > > this feature > > > would open oneself up to a buffer overflow attack. If you're > > > on a trusted > > > network, it's a non-issue. > > > > > > On a related note, I'd be much more comfy with this feature > > > if there were a > > > facility to enforce some level of native encryption, such as > > > what NSCA uses. > > > If you don't have the keys to the house, you get dropped on > > > the floor. (I > > > have a similar wish for NSClient.) > > > > > > Food for thought. > > > > > > jc > > > > > > > -----Original Message----- > > > > From: Dave Viner [mailto:dviner at yahoo-inc.com] > > > > Sent: Friday, December 27, 2002 11:48 AM > > > > To: Nagios-users at lists.sourceforge.net > > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > > > > In order to clarify the idea that I'm proposing, I've made a > > > > patch to the nrpe source that implements what I'm describing. > > > > This patch is made against the nrpe-1.5.tar.gz from > sourceforge. > > > > > > > > Essentially, these changes allow us to specify in the > > > > nrpe.cfg file lines like this: > > > > command[check_disk_gen]=/usr/local/libexec/nagios/check_disk > > > > > > > > Then when invoking check_nrpe, you can invoke it like this: > > > > ./check_nrpe 127.0.0.1 -V 2 -c check_disk_gen -a "-w 50000 > > > > -c 10000 -p /dev/ad0s1e" > > > > > > > > And the effect is that /usr/local/libexec/nagios/check_disk > > > > is invoked with the -w 50000 -c 10000 -p /dev/ad0s1e as the > > > > argument string. For example: > > > > > > > > ~/nagios/nrpe-1.5.new/src>./check_nrpe 127.0.0.1 -V 2 -c > > > > check_disk_gen -a "-w 50000 -c 10000 -p /dev/ad0s1e" > > > > DISK OK - [1484108 kB (9%) free on /dev/ad0s1e] > > > > ~/nagios/nrpe-1.5.new/src> > > > > > > > > I think this is really useful and would greatly reduce the > > > > size of the nrpe.cfg and, more importantly, would reduce the > > > > number of times you'd need to modify that configuration file. > > > > Instead the modifications would occur on the centralized > > > > Nagios server's configuration file. > > > > > > > > What does everyone think? Should we add this to the main > > > > source for NRPE-1.6? > > > > > > > > dave > > > > > > > > > > > > -----Original Message----- > > > > From: nagios-users-admin at lists.sourceforge.net > > > > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of > > > > Dave Viner > > > > Sent: Monday, December 23, 2002 8:51 AM > > > > To: Naios Users > > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > > > > Hi Rue, > > > > Security is a great reason for limiting the commands > > > > that NRPE is able to execute. But my suggested enhancement > > > > wouldn't allow NRPE to execute any command that isn't listed > > > > in the cfg file. That is, the NRPE would still need to find > > > > the path to the executable in the nrpe.cfg file, then use any > > > > remaining information as arguments passed to the executable. > > > > It is true that this is less secure that forcing the entire > > > > command line (executable and arguments) in the config file. > > > > But, so long as the executables are well authored and handle > > > > unexpected arguments well, I think this enhancement would not > > > > significantly decrease security. Do you think that > > > > specifying arguments would make NRPE significantly less secure? > > > > > > > > > > > > Dave > > > > > > > > > > > > -----Original Message----- > > > > From: nagios-users-admin at lists.sourceforge.net > > > > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of > > > > Rue Turner > > > > Sent: Friday, December 20, 2002 1:33 PM > > > > To: Naios Users > > > > Subject: Re: [Nagios-users] NRPE enhancement > > > > > > > > > > > > dave, > > > > > > > > I think the reson for this choice of configuration is > > > security. If the > > > > nrpe was allowed to run whatever it was asked it would > be easy to > > > > compromise your machines. This way although your configs are > > > > hefty (mine > > > > have almost a hundred lines in) you can only ask it to run > > > > commands from > > > > this library. > > > > > > > > rue > > > > > > > > > > > > On Fri, 2002-12-20 at 17:35, Dave Viner wrote: > > > > > Hi, > > > > > I'd like to suggest an enhancement to NRPE, and if > > > > people think this is a > > > > > good idea, I'll try to make a patch to support my > > > > suggestion. Currently the > > > > > nrpe.cfg file specifies all the commands in this fashion: > > > > > > > > > command[check_disk1]=/usr/local/nagios/libexec/check_disk 80 > > > > 95 /dev/hda1 > > > > > As result of this design is that if you want to check > > > something like > > > > > /dev/hda1 and /dev/hdb1, you need two seperate lines in the > > > > nrpe.cfg file. > > > > > So, I'd like to propose that we extend NRPE to allow > > > > for the arguments to a > > > > > command to be specified by the central Nagios server > > > > instead of in the > > > > > nrpe.cfg. The idea is that the nrpe.cfg would have one > > > > command line which > > > > > maps a key, 'check_disk', to a local executable, > > > > > '/usr/local/nagios/libexec/check_disk'. The rest would be > > > > specified from > > > > > the central Nagios server in some manner. > > > > > I think this would great simplify the nrpe.cfg files, > > > > and reduce a lot of > > > > > redundant command definitions that differ only in the > > > arguments they > > > > > require. Also, it would mean that you'd need to update > > > > your nrpe.cfg very > > > > > rarely. In fact, you'd only need to update it when you add > > > > a new plugin. > > > > > I don't have a concrete suggestion for implementing > > > > this yet, because I > > > > > want to see if the community is interested in this idea > > > > first. Has this > > > > > idea been suggested previously? Is anyone currently > > > > interested in the idea > > > > > or would I be the only consumer of such a service? > > > > > > > > > > thanks > > > > > dave > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > This SF.NET email is sponsored by: The Best Geek > Holiday Gifts! > > > > > Time is running out! Thinkgeek.com has the coolest gifts for > > > > > your favorite geek. Let your fingers do the typing. Visit > Now. > > > > > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > > > > > _______________________________________________ > > > > > Nagios-users mailing list > > > > > Nagios-users at lists.sourceforge.net > > > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > > > > r u e t u r n e r > > > > ?? t ?? h ?? i ?? n ?? l ?? a ?? y ?? e ?? r ?? > > > > > > > > -- index, n.: Alphabetical list of words of no possible > > > interest where > > > > an alphabetical list of subjects with references ought to be. > > > > > > > > > > > > ------------------------------------------------------- > > > > This SF.NET email is sponsored by: The Best Geek Holiday Gifts! > > > > Time is running out! Thinkgeek.com has the coolest gifts for > > > > your favorite geek. Let your fingers do the typing. > Visit Now. > > > > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > > > > _______________________________________________ > > > > Nagios-users mailing list > > > > Nagios-users at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > This sf.net email is sponsored by:ThinkGeek > > > > Welcome to geek heaven. > > > > http://thinkgeek.com/sf > > > > _______________________________________________ > > > > Nagios-users mailing list > > > > Nagios-users at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > This sf.net email is sponsored by:ThinkGeek > > > Welcome to geek heaven. > > > http://thinkgeek.com/sf > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > Ethan Galstad, > Nagios Developer > --- > Email: nagios at nagios.org > Website: http://www.nagios.org > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From gastrauskas at burrelles.com Mon Dec 30 18:36:50 2002 From: gastrauskas at burrelles.com (Giedrius Astrauskas) Date: Mon, 30 Dec 2002 12:36:50 -0500 Subject: How to make Nagios ping References: Message-ID: <014701c2b02a$0934b780$9c0312ac@developer01> Hi, Thanks for replies. I found that there already exists command called "check-host-alive", so I am using that one. Also, I found that my problem was with syntax how I called plugin. Besides, another problem was that I was trying to ping though firewall. I can use Nagios to ping any computer on the network now. It works fine. Giedrius ----- Original Message ----- From: "Jeff Bilder" To: ; Sent: Monday, December 30, 2002 11:36 AM Subject: Re: [Nagios-users] How to make Nagios ping recompile Nagios without the ping option. It worked great! >>> "Giedrius Astrauskas" 12/30/02 10:11AM >>> Hi, I am sure that there must be an easy solution to this, because when I was using NSCA, Nagios was pinging every time the NSCA client did not return OK message. However, now I am attempting to simply make Nagios ping the client computer without having installed anything (no NSCA, no NRPE, no plugins)on client computer. I inlcuded client computer in hosts.cfg, also I created new service entry in services.cfg: define service{ use generic-service ; Name of service template to use host_name zsbld07 service_description CheckPing is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 1 retry_check_interval 1 contact_groups windows-admins notification_interval 60 notification_period 24x7 notification_options w,u,c,r check_command check_ping_m } then I created command in checkcommands.cfg: # 'check_ping_m' command definition define command{ command_name check_ping_m command_line $USER1$/check_ping -H -w 5000 -c 10000 -p 5 } I installed plugins and above syntax I got from check_ping plugin's help. However, when I run Nagios, it displays the status of the above service as "UNKNOWN". Does it mean that I cannot simply make Nagios ping client computer wihtout having anything installed on client? Sorry, if the question sounds simple - I am still in the process of trying to understand how Nagios works. I would appreciate any advice. Thanks. Giedrius ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From harpo at thebackrow.net Mon Dec 30 19:08:22 2002 From: harpo at thebackrow.net (Will Lowe) Date: Mon, 30 Dec 2002 10:08:22 -0800 Subject: Check_nt In-Reply-To: References: Message-ID: <20021230180822.GA19408@thebackrow.net> > What's wrong with finding out what percentage 400 megs is? your drive size > isn't changing, is it? :) No, but if you have a large production environment with a few hundred machines that were all bought at varying times with different disk sizes, the percentage is different on every machine. That's a configuration nightmare ... -- thanks, Will ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From dviner at yahoo-inc.com Mon Dec 30 19:14:21 2002 From: dviner at yahoo-inc.com (Dave Viner) Date: Mon, 30 Dec 2002 10:14:21 -0800 Subject: NRPE enhancement In-Reply-To: References: Message-ID: Let me ask a second question that might help me understand more clearly the situation. Check_by_ssh allows for the passing of arbitrary arguments to arbitrary command from the centralized Nagios server to any remote machine which has sshd running. NRPE allows for executing a specific command with specific arguments on any remote machine which has nrpe running. As someone setting up monitoring, when should I use check_by_ssh and when should I use nrpe? dave -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Dave Viner Sent: Monday, December 30, 2002 9:07 AM To: Tom Welsh; 'Ethan Galstad'; 'nagios-users' Subject: RE: [Nagios-users] NRPE enhancement I don't think that my enhancement allows an arbitrary command to be executed. I think the code that I wrote will only allow one of the commands already listed in the nrpe.cfg file to be executed. The arguments passed are arbitrary, but not the command. (The code even checks to ensure that the command requested, without any arguments, exists before executing it to prevent malicious usage of arguments.) dave -----Original Message----- From: Tom Welsh [mailto:twelsh at square-box.com] Sent: Saturday, December 28, 2002 5:02 PM To: 'Dave Viner'; 'Ethan Galstad'; 'nagios-users' Subject: RE: [Nagios-users] NRPE enhancement In my humble opinion an option that allows an arbitary command to be executed and which by "default" is switched off is an accident waiting to happen. It only takes 1 security breach via a plugin to completely destroy the good name Nagios and its associated plugins have. There is a good truism that states "good news travels fast, but bad news travels even faster" I for one would not be too happy having a command available on my network, trusted or not that would allow commands to be executed remotely pon a box. For one. It?s the kind of thing im always looking for when im "playing on my " networks. Well that?s my two cents worth Cheers Tom Welsh twelsh at square-box.com -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Dave Viner Sent: 28 December 2002 21:46 To: Ethan Galstad; nagios-users Subject: RE: [Nagios-users] NRPE enhancement These are excellent arguments for not incorporating the enhancement I am suggesting. However, I suspect that there are lots of installations of Nagios and NRPE that run on completely trusted network. (Or the risk of network intrusion through NRPE is worth the benefit of reduced configuration management.) What do you think about incorporating this enhancement but have it turned off by default, and enabled only at configure time? dave -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Ethan Galstad Sent: Friday, December 27, 2002 7:38 PM To: nagios-users Subject: RE: [Nagios-users] NRPE enhancement There are several reasons why I have not added support for arguments to checks in NRPE. Most have been touched on in the past on the list, but I'll reiterate them here. The main issue is not overruning the 2K packet that the check_nrpe plugin and NRPE daemon pass back and forth - that can be easily avoided... 1. Users connecting to the NRPE are not authenticated. Sure, you can restrict connection based on IP address using TCP wrappers, but they are still not authenticated. Also, I am not too familiar with IP spoofing, but I'm sure its possible for someone to fake the originating address of the connection and get the NRPE daemon to accept the packet and execute the necessary plugin without too much trouble. 2. Some plugins (like check_dhcp) may (have to) be installed suid root. Regardless of what user the NRPE daemon is running as, these plugins will be executed with higher privs. 3. Plugins can be made to segfault under the right conditions. Sure, we can try and eliminate this possibility, but it will probably always exist to some extent since many plugins call system commands to get their data. --- Most remote exploits rely on buffer overflows/segfaults to get their work done, so allowing unauthenticated users to pass arbitrary arguments/data to plugins that might be running suid commands is a very bad idea indeed. Stunnel would provide some security, but there is no guarantee that everyone would use it. There would undoubtably be many people that would put off implementing it until they finished "testing" NRPE. In the worst case, they might never get around to implementing stunnel at all. In the likely best case scenario, there is at least a window of opportunity. I just don't want to be responsible for the possible carnage that happens at that point. :-) Also, incorporating native encryption into NRPE involves reinventing the wheel called "check_by_ssh", so I'm really interested in doing that. On 27 Dec 2002 at 13:46, Carroll, Jim P [Contractor] wrote: > I'm not a C programmer by profession, so I defer your query to those who > have a strong background, both in C code and system/network security. It > does presume that every other link in the chain is bulletproof. [Insert > ObRef to Bugtraq here.] > > At any rate, I'm curious to hear why Ethan didn't choose that approach to > begin with. > > jc > > > -----Original Message----- > > From: Dave Viner [mailto:dviner at yahoo-inc.com] > > Sent: Friday, December 27, 2002 12:49 PM > > To: Nagios-users at lists.sourceforge.net > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > This sounds interesting, but I have a question about the > > security implications of this code. I'm not a security > > expert, so please excuse the somewhat basic question. The > > struct packet as defined in common/common.h has an argv > > member which is a character array of length 2048. I believe > > this means that if the incoming packet has an argv member > > whose length is greater than 2048 chars, then the > > rc=recvall(sock,(char > > *)&receive_packet,&bytes_to_recv,socket_timeout); > > should fail, should it not? > > > > However, I think your suggestions regarding stunnel, and > > encryption are good ones, regardless of the inclusion of this code. > > > > thanks > > > > dave > > > > > > -----Original Message----- > > From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] > > Sent: Friday, December 27, 2002 10:20 AM > > To: 'Dave Viner'; Nagios-users at lists.sourceforge.net > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > I think it's a good idea, but with the following provisions: > > > > - This should not be enabled by default. > > > > - The configure script, the Makefile and any/all NRPE docs > > should explicitly > > state the security risks in forcing the non-default (added feature) > > behaviour. > > > > - If the daemon is compiled with this option, anytime the > > daemon starts, it > > should briefly mention that it has been compiled for this > > behaviour, and a > > quick remark about the increased risks. (Sent to stderr if > > standalone, else > > sent to syslog if running under (x)inetd). It should scream > > loud and clear > > if it's started under root; preferably it would simply not > > run as root, full > > stop. > > > > - Perhaps a reference to implementing NRPE with stunnel (and > > only permitting > > connections from localhost, as defined in nrpe.cfg) would be > > desireable. > > > > I'm not a security guru, but it seems to me that facilitating > > this feature > > would open oneself up to a buffer overflow attack. If you're > > on a trusted > > network, it's a non-issue. > > > > On a related note, I'd be much more comfy with this feature > > if there were a > > facility to enforce some level of native encryption, such as > > what NSCA uses. > > If you don't have the keys to the house, you get dropped on > > the floor. (I > > have a similar wish for NSClient.) > > > > Food for thought. > > > > jc > > > > > -----Original Message----- > > > From: Dave Viner [mailto:dviner at yahoo-inc.com] > > > Sent: Friday, December 27, 2002 11:48 AM > > > To: Nagios-users at lists.sourceforge.net > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > In order to clarify the idea that I'm proposing, I've made a > > > patch to the nrpe source that implements what I'm describing. > > > This patch is made against the nrpe-1.5.tar.gz from sourceforge. > > > > > > Essentially, these changes allow us to specify in the > > > nrpe.cfg file lines like this: > > > command[check_disk_gen]=/usr/local/libexec/nagios/check_disk > > > > > > Then when invoking check_nrpe, you can invoke it like this: > > > ./check_nrpe 127.0.0.1 -V 2 -c check_disk_gen -a "-w 50000 > > > -c 10000 -p /dev/ad0s1e" > > > > > > And the effect is that /usr/local/libexec/nagios/check_disk > > > is invoked with the -w 50000 -c 10000 -p /dev/ad0s1e as the > > > argument string. For example: > > > > > > ~/nagios/nrpe-1.5.new/src>./check_nrpe 127.0.0.1 -V 2 -c > > > check_disk_gen -a "-w 50000 -c 10000 -p /dev/ad0s1e" > > > DISK OK - [1484108 kB (9%) free on /dev/ad0s1e] > > > ~/nagios/nrpe-1.5.new/src> > > > > > > I think this is really useful and would greatly reduce the > > > size of the nrpe.cfg and, more importantly, would reduce the > > > number of times you'd need to modify that configuration file. > > > Instead the modifications would occur on the centralized > > > Nagios server's configuration file. > > > > > > What does everyone think? Should we add this to the main > > > source for NRPE-1.6? > > > > > > dave > > > > > > > > > -----Original Message----- > > > From: nagios-users-admin at lists.sourceforge.net > > > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of > > > Dave Viner > > > Sent: Monday, December 23, 2002 8:51 AM > > > To: Naios Users > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > Hi Rue, > > > Security is a great reason for limiting the commands > > > that NRPE is able to execute. But my suggested enhancement > > > wouldn't allow NRPE to execute any command that isn't listed > > > in the cfg file. That is, the NRPE would still need to find > > > the path to the executable in the nrpe.cfg file, then use any > > > remaining information as arguments passed to the executable. > > > It is true that this is less secure that forcing the entire > > > command line (executable and arguments) in the config file. > > > But, so long as the executables are well authored and handle > > > unexpected arguments well, I think this enhancement would not > > > significantly decrease security. Do you think that > > > specifying arguments would make NRPE significantly less secure? > > > > > > > > > Dave > > > > > > > > > -----Original Message----- > > > From: nagios-users-admin at lists.sourceforge.net > > > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of > > > Rue Turner > > > Sent: Friday, December 20, 2002 1:33 PM > > > To: Naios Users > > > Subject: Re: [Nagios-users] NRPE enhancement > > > > > > > > > dave, > > > > > > I think the reson for this choice of configuration is > > security. If the > > > nrpe was allowed to run whatever it was asked it would be easy to > > > compromise your machines. This way although your configs are > > > hefty (mine > > > have almost a hundred lines in) you can only ask it to run > > > commands from > > > this library. > > > > > > rue > > > > > > > > > On Fri, 2002-12-20 at 17:35, Dave Viner wrote: > > > > Hi, > > > > I'd like to suggest an enhancement to NRPE, and if > > > people think this is a > > > > good idea, I'll try to make a patch to support my > > > suggestion. Currently the > > > > nrpe.cfg file specifies all the commands in this fashion: > > > > > > > command[check_disk1]=/usr/local/nagios/libexec/check_disk 80 > > > 95 /dev/hda1 > > > > As result of this design is that if you want to check > > something like > > > > /dev/hda1 and /dev/hdb1, you need two seperate lines in the > > > nrpe.cfg file. > > > > So, I'd like to propose that we extend NRPE to allow > > > for the arguments to a > > > > command to be specified by the central Nagios server > > > instead of in the > > > > nrpe.cfg. The idea is that the nrpe.cfg would have one > > > command line which > > > > maps a key, 'check_disk', to a local executable, > > > > '/usr/local/nagios/libexec/check_disk'. The rest would be > > > specified from > > > > the central Nagios server in some manner. > > > > I think this would great simplify the nrpe.cfg files, > > > and reduce a lot of > > > > redundant command definitions that differ only in the > > arguments they > > > > require. Also, it would mean that you'd need to update > > > your nrpe.cfg very > > > > rarely. In fact, you'd only need to update it when you add > > > a new plugin. > > > > I don't have a concrete suggestion for implementing > > > this yet, because I > > > > want to see if the community is interested in this idea > > > first. Has this > > > > idea been suggested previously? Is anyone currently > > > interested in the idea > > > > or would I be the only consumer of such a service? > > > > > > > > thanks > > > > dave > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > This SF.NET email is sponsored by: The Best Geek Holiday Gifts! > > > > Time is running out! Thinkgeek.com has the coolest gifts for > > > > your favorite geek. Let your fingers do the typing. Visit Now. > > > > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > > > > _______________________________________________ > > > > Nagios-users mailing list > > > > Nagios-users at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > r u e t u r n e r > > > ?? t ?? h ?? i ?? n ?? l ?? a ?? y ?? e ?? r ?? > > > > > > -- index, n.: Alphabetical list of words of no possible > > interest where > > > an alphabetical list of subjects with references ought to be. > > > > > > > > > ------------------------------------------------------- > > > This SF.NET email is sponsored by: The Best Geek Holiday Gifts! > > > Time is running out! Thinkgeek.com has the coolest gifts for > > > your favorite geek. Let your fingers do the typing. Visit Now. > > > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > > > > > > > ------------------------------------------------------- > > > This sf.net email is sponsored by:ThinkGeek > > > Welcome to geek heaven. > > > http://thinkgeek.com/sf > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > Ethan Galstad, Nagios Developer --- Email: nagios at nagios.org Website: http://www.nagios.org ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jcarro10 at sprintspectrum.com Mon Dec 30 19:03:25 2002 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Mon, 30 Dec 2002 12:03:25 -0600 Subject: Nagios, MySQL and trending Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F24BD@PKDWB03C.ad.sprint.com> Eep! Ah well, it was an interesting exercise, nonetheless. Alright, this brings me full circle back to working with: xpdfile_service_perfdata_file=/usr/local/nagios/var/serviceperf.log Nagios logs to this file. But it never closes the file, so renaming the file before slurping it into a Perl script won't help matters. I suppose I could have a cronjob do a rename then stop/start Nagios, but I'd like to slurp the data every 5 mins; bouncing Nagios every 5 mins seems excessive. I suppose I could just leave serviceperf.log alone and just use seek/tell, but at some point serviceperf.log will get large enough that I'll want to reset it to 0 bytes, which will then mean I'll have to restart Nagios anyway; however, any data written since the last slurp until the file is reset will be lost. I'm trying to think this one through as I type. Ideally, Nagios would dump this directly to MySQL, but since database support is going away, that approach should be discouraged. Perhaps Nagios could close serviceperf.log between writes, which would eliminate the filehandle problem. I suppose I could slurp serviceperf.log and immediately reset it to 0 bytes ("cat /dev/null > /usr/local/nagios/var/serviceperf.log"), but I still feel there's a risk that a bit of data will be lost. It might be an acceptable risk, all things considered. Can anyone make any other suggestions? jc > -----Original Message----- > From: Rue Turner [mailto:rue at thinlayer.co.uk] > Sent: Monday, December 30, 2002 3:42 AM > To: Naios Users > Subject: Re: [Nagios-users] Nagios, MySQL and trending > > > > After a few bumps and bruises, I succeeded in converting my > existing Nagios > > installation to include MySQL support (except for the > host/service extended > > info, which I deliberately avoided). > > Jim, > > It might interest you to know that database support is being dropped. > There's a full discussion on it somewhere and I believe it's > also in the > docs somewhere - something to do with it being such a headache to deal > with (sorry for simplification, Ethan.) > > I am waiting for a while to build up courage before removing > the db from > my installation - I use extended data a lot! > > don't shoot the messenger > rue > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From nagios at showkilr.com Mon Dec 30 19:26:21 2002 From: nagios at showkilr.com (James Peterson) Date: Mon, 30 Dec 2002 12:26:21 -0600 Subject: No Lock File Foudn In... References: <5593DA408212D511B0910002A513501F01D2885F@phsexch20.mgh.harvard.edu> Message-ID: <01b301c2b030$f44497d0$6600a8c0@playnet.com> Check your configs with `nagios -v {config file name}` You may have errors in the configuration.. the lock file does not get created if the configs don't check out right and Nagios will not start.. James "Showkilr" Peterson ----- Original Message ----- From: "Kaplan, Andrew H." To: Sent: Monday, December 30, 2002 6:45 AM Subject: [Nagios-users] No Lock File Foudn In... > I have installed Nagios 1.0 (non-beta) onto a Red Hat 8.0 computer. > The installation appeared to go by without a problem. However, when > I try to automatically or manually start the program via the init script, > the following error occurs: > > NO LOCK FILE FOUND IN /USR/LOCAL/NAGIOS/VAR/NAGIOS.LOCK. > > Is this file automatically created or do I need to manually create one? If > the latter is true, will the touch command be sufficient? Thanks. > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jcarro10 at sprintspectrum.com Mon Dec 30 19:35:08 2002 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Mon, 30 Dec 2002 12:35:08 -0600 Subject: Check_nt Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E11E7@PKDWB03C.ad.sprint.com> Not to trivialize the nature of the problem, but given that: 1) Nagios configs support templates; 2) out of a few hundred machines, there should be *some* repetition of disk sizes; 3) for each machine, you need to edit a config definition anyway; you ought to be able to define quite a few templates and reference them in the individual configs (and save yourself lots of keystrokes in the process). This might bring the nightmare down to a more manageable 'nuisance' level. Food for thought. jc > -----Original Message----- > From: Will Lowe [mailto:harpo at thebackrow.net] > Sent: Monday, December 30, 2002 12:08 PM > To: Alec > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Check_nt > > > > What's wrong with finding out what percentage 400 megs is? > your drive size > > isn't changing, is it? :) > > No, but if you have a large production environment with a few hundred > machines that were all bought at varying times with different disk > sizes, the percentage is different on every machine. > > That's a configuration nightmare ... > > -- > thanks, > > Will > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jcarro10 at sprintspectrum.com Mon Dec 30 19:49:04 2002 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Mon, 30 Dec 2002 12:49:04 -0600 Subject: NRPE enhancement Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F24C0@PKDWB03C.ad.sprint.com> The general consensus is that check_by_ssh isn't a solution which will scale well, due to the nature of the number-crunching crypto beast. This is where NRPE has the advantage. check_by_ssh has the advantage when it comes to punching through a firewall, assuming that an appropriate port is open. Sure, you could open port 5666 for NRPE, but has has been discussed, that doesn't quite leave the same warm fuzzies. HTH. jc > -----Original Message----- > From: Dave Viner [mailto:dviner at yahoo-inc.com] > Sent: Monday, December 30, 2002 12:14 PM > To: 'Ethan Galstad'; 'nagios-users' > Subject: RE: [Nagios-users] NRPE enhancement > > > Let me ask a second question that might help me understand > more clearly the > situation. Check_by_ssh allows for the passing of arbitrary > arguments to > arbitrary command from the centralized Nagios server to any > remote machine > which has sshd running. NRPE allows for executing a specific > command with > specific arguments on any remote machine which has nrpe running. > > As someone setting up monitoring, when should I use > check_by_ssh and when > should I use nrpe? > > dave > > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of > Dave Viner > Sent: Monday, December 30, 2002 9:07 AM > To: Tom Welsh; 'Ethan Galstad'; 'nagios-users' > Subject: RE: [Nagios-users] NRPE enhancement > > > I don't think that my enhancement allows an arbitrary command to be > executed. I think the code that I wrote will only allow one > of the commands > already listed in the nrpe.cfg file to be executed. The > arguments passed > are arbitrary, but not the command. (The code even checks to > ensure that the > command requested, without any arguments, exists before > executing it to > prevent malicious usage of arguments.) > > dave > > > > -----Original Message----- > From: Tom Welsh [mailto:twelsh at square-box.com] > Sent: Saturday, December 28, 2002 5:02 PM > To: 'Dave Viner'; 'Ethan Galstad'; 'nagios-users' > Subject: RE: [Nagios-users] NRPE enhancement > > > In my humble opinion an option that allows an arbitary command to be > executed and which by "default" is switched off is an accident waiting > to happen. > > It only takes 1 security breach via a plugin to completely destroy the > good name Nagios and its associated plugins have. > > There is a good truism that states "good news travels fast, > but bad news > travels even faster" > > I for one would not be too happy having a command available on my > network, trusted or not that would allow commands to be executed > remotely pon a box. For one. It's the kind of thing im always looking > for when im "playing on my " networks. > > Well that's my two cents worth > > Cheers > > Tom Welsh > twelsh at square-box.com > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Dave > Viner > Sent: 28 December 2002 21:46 > To: Ethan Galstad; nagios-users > Subject: RE: [Nagios-users] NRPE enhancement > > These are excellent arguments for not incorporating the > enhancement I am > suggesting. However, I suspect that there are lots of > installations of > Nagios and NRPE that run on completely trusted network. (Or > the risk of > network intrusion through NRPE is worth the benefit of reduced > configuration > management.) > > What do you think about incorporating this enhancement but have it > turned > off by default, and enabled only at configure time? > > dave > > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Ethan > Galstad > Sent: Friday, December 27, 2002 7:38 PM > To: nagios-users > Subject: RE: [Nagios-users] NRPE enhancement > > > There are several reasons why I have not added support for arguments > to checks in NRPE. Most have been touched on in the past on the > list, but I'll reiterate them here. The main issue is not overruning > the 2K packet that the check_nrpe plugin and NRPE daemon pass back > and forth - that can be easily avoided... > > 1. > Users connecting to the NRPE are not authenticated. Sure, you can > restrict connection based on IP address using TCP wrappers, but they > are still not authenticated. Also, I am not too familiar with IP > spoofing, but I'm sure its possible for someone to fake the > originating address of the connection and get the NRPE daemon to > accept the packet and execute the necessary plugin without too much > trouble. > > 2. > Some plugins (like check_dhcp) may (have to) be installed suid root. > Regardless of what user the NRPE daemon is running as, these plugins > will be executed with higher privs. > > 3. > Plugins can be made to segfault under the right conditions. Sure, we > can try and eliminate this possibility, but it will probably always > exist to some extent since many plugins call system commands to get > their data. > > --- > > Most remote exploits rely on buffer overflows/segfaults to get their > work done, so allowing unauthenticated users to pass arbitrary > arguments/data to plugins that might be running suid commands is a > very bad idea indeed. > > Stunnel would provide some security, but there is no guarantee that > everyone would use it. There would undoubtably be many people that > would put off implementing it until they finished "testing" NRPE. In > the worst case, they might never get around to implementing stunnel > at all. In the likely best case scenario, there is at least a window > of opportunity. I just don't want to be responsible for the possible > carnage that happens at that point. :-) > > Also, incorporating native encryption into NRPE involves reinventing > the wheel called "check_by_ssh", so I'm really interested in doing > that. > > > > On 27 Dec 2002 at 13:46, Carroll, Jim P [Contractor] wrote: > > > I'm not a C programmer by profession, so I defer your query to those > who > > have a strong background, both in C code and system/network > security. > It > > does presume that every other link in the chain is bulletproof. > [Insert > > ObRef to Bugtraq here.] > > > > At any rate, I'm curious to hear why Ethan didn't choose > that approach > to > > begin with. > > > > jc > > > > > -----Original Message----- > > > From: Dave Viner [mailto:dviner at yahoo-inc.com] > > > Sent: Friday, December 27, 2002 12:49 PM > > > To: Nagios-users at lists.sourceforge.net > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > This sounds interesting, but I have a question about the > > > security implications of this code. I'm not a security > > > expert, so please excuse the somewhat basic question. The > > > struct packet as defined in common/common.h has an argv > > > member which is a character array of length 2048. I believe > > > this means that if the incoming packet has an argv member > > > whose length is greater than 2048 chars, then the > > > rc=recvall(sock,(char > > > *)&receive_packet,&bytes_to_recv,socket_timeout); > > > should fail, should it not? > > > > > > However, I think your suggestions regarding stunnel, and > > > encryption are good ones, regardless of the inclusion of > this code. > > > > > > thanks > > > > > > dave > > > > > > > > > -----Original Message----- > > > From: Carroll, Jim P [Contractor] > [mailto:jcarro10 at sprintspectrum.com] > > > Sent: Friday, December 27, 2002 10:20 AM > > > To: 'Dave Viner'; Nagios-users at lists.sourceforge.net > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > I think it's a good idea, but with the following provisions: > > > > > > - This should not be enabled by default. > > > > > > - The configure script, the Makefile and any/all NRPE docs > > > should explicitly > > > state the security risks in forcing the non-default > (added feature) > > > behaviour. > > > > > > - If the daemon is compiled with this option, anytime the > > > daemon starts, it > > > should briefly mention that it has been compiled for this > > > behaviour, and a > > > quick remark about the increased risks. (Sent to stderr if > > > standalone, else > > > sent to syslog if running under (x)inetd). It should scream > > > loud and clear > > > if it's started under root; preferably it would simply not > > > run as root, full > > > stop. > > > > > > - Perhaps a reference to implementing NRPE with stunnel (and > > > only permitting > > > connections from localhost, as defined in nrpe.cfg) would be > > > desireable. > > > > > > I'm not a security guru, but it seems to me that facilitating > > > this feature > > > would open oneself up to a buffer overflow attack. If you're > > > on a trusted > > > network, it's a non-issue. > > > > > > On a related note, I'd be much more comfy with this feature > > > if there were a > > > facility to enforce some level of native encryption, such as > > > what NSCA uses. > > > If you don't have the keys to the house, you get dropped on > > > the floor. (I > > > have a similar wish for NSClient.) > > > > > > Food for thought. > > > > > > jc > > > > > > > -----Original Message----- > > > > From: Dave Viner [mailto:dviner at yahoo-inc.com] > > > > Sent: Friday, December 27, 2002 11:48 AM > > > > To: Nagios-users at lists.sourceforge.net > > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > > > > In order to clarify the idea that I'm proposing, I've made a > > > > patch to the nrpe source that implements what I'm describing. > > > > This patch is made against the nrpe-1.5.tar.gz from > sourceforge. > > > > > > > > Essentially, these changes allow us to specify in the > > > > nrpe.cfg file lines like this: > > > > command[check_disk_gen]=/usr/local/libexec/nagios/check_disk > > > > > > > > Then when invoking check_nrpe, you can invoke it like this: > > > > ./check_nrpe 127.0.0.1 -V 2 -c check_disk_gen -a "-w 50000 > > > > -c 10000 -p /dev/ad0s1e" > > > > > > > > And the effect is that /usr/local/libexec/nagios/check_disk > > > > is invoked with the -w 50000 -c 10000 -p /dev/ad0s1e as the > > > > argument string. For example: > > > > > > > > ~/nagios/nrpe-1.5.new/src>./check_nrpe 127.0.0.1 -V 2 -c > > > > check_disk_gen -a "-w 50000 -c 10000 -p /dev/ad0s1e" > > > > DISK OK - [1484108 kB (9%) free on /dev/ad0s1e] > > > > ~/nagios/nrpe-1.5.new/src> > > > > > > > > I think this is really useful and would greatly reduce the > > > > size of the nrpe.cfg and, more importantly, would reduce the > > > > number of times you'd need to modify that configuration file. > > > > Instead the modifications would occur on the centralized > > > > Nagios server's configuration file. > > > > > > > > What does everyone think? Should we add this to the main > > > > source for NRPE-1.6? > > > > > > > > dave > > > > > > > > > > > > -----Original Message----- > > > > From: nagios-users-admin at lists.sourceforge.net > > > > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of > > > > Dave Viner > > > > Sent: Monday, December 23, 2002 8:51 AM > > > > To: Naios Users > > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > > > > Hi Rue, > > > > Security is a great reason for limiting the commands > > > > that NRPE is able to execute. But my suggested enhancement > > > > wouldn't allow NRPE to execute any command that isn't listed > > > > in the cfg file. That is, the NRPE would still need to find > > > > the path to the executable in the nrpe.cfg file, then use any > > > > remaining information as arguments passed to the executable. > > > > It is true that this is less secure that forcing the entire > > > > command line (executable and arguments) in the config file. > > > > But, so long as the executables are well authored and handle > > > > unexpected arguments well, I think this enhancement would not > > > > significantly decrease security. Do you think that > > > > specifying arguments would make NRPE significantly less secure? > > > > > > > > > > > > Dave > > > > > > > > > > > > -----Original Message----- > > > > From: nagios-users-admin at lists.sourceforge.net > > > > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of > > > > Rue Turner > > > > Sent: Friday, December 20, 2002 1:33 PM > > > > To: Naios Users > > > > Subject: Re: [Nagios-users] NRPE enhancement > > > > > > > > > > > > dave, > > > > > > > > I think the reson for this choice of configuration is > > > security. If the > > > > nrpe was allowed to run whatever it was asked it would > be easy to > > > > compromise your machines. This way although your configs are > > > > hefty (mine > > > > have almost a hundred lines in) you can only ask it to run > > > > commands from > > > > this library. > > > > > > > > rue > > > > > > > > > > > > On Fri, 2002-12-20 at 17:35, Dave Viner wrote: > > > > > Hi, > > > > > I'd like to suggest an enhancement to NRPE, and if > > > > people think this is a > > > > > good idea, I'll try to make a patch to support my > > > > suggestion. Currently the > > > > > nrpe.cfg file specifies all the commands in this fashion: > > > > > > > > > command[check_disk1]=/usr/local/nagios/libexec/check_disk 80 > > > > 95 /dev/hda1 > > > > > As result of this design is that if you want to check > > > something like > > > > > /dev/hda1 and /dev/hdb1, you need two seperate lines in the > > > > nrpe.cfg file. > > > > > So, I'd like to propose that we extend NRPE to allow > > > > for the arguments to a > > > > > command to be specified by the central Nagios server > > > > instead of in the > > > > > nrpe.cfg. The idea is that the nrpe.cfg would have one > > > > command line which > > > > > maps a key, 'check_disk', to a local executable, > > > > > '/usr/local/nagios/libexec/check_disk'. The rest would be > > > > specified from > > > > > the central Nagios server in some manner. > > > > > I think this would great simplify the nrpe.cfg files, > > > > and reduce a lot of > > > > > redundant command definitions that differ only in the > > > arguments they > > > > > require. Also, it would mean that you'd need to update > > > > your nrpe.cfg very > > > > > rarely. In fact, you'd only need to update it when you add > > > > a new plugin. > > > > > I don't have a concrete suggestion for implementing > > > > this yet, because I > > > > > want to see if the community is interested in this idea > > > > first. Has this > > > > > idea been suggested previously? Is anyone currently > > > > interested in the idea > > > > > or would I be the only consumer of such a service? > > > > > > > > > > thanks > > > > > dave > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > This SF.NET email is sponsored by: The Best Geek > Holiday Gifts! > > > > > Time is running out! Thinkgeek.com has the coolest gifts for > > > > > your favorite geek. Let your fingers do the typing. Visit > Now. > > > > > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > > > > > _______________________________________________ > > > > > Nagios-users mailing list > > > > > Nagios-users at lists.sourceforge.net > > > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > > > > r u e t u r n e r > > > > ?? t ?? h ?? i ?? n ?? l ?? a ?? y ?? e ?? r ?? > > > > > > > > -- index, n.: Alphabetical list of words of no possible > > > interest where > > > > an alphabetical list of subjects with references ought to be. > > > > > > > > > > > > ------------------------------------------------------- > > > > This SF.NET email is sponsored by: The Best Geek Holiday Gifts! > > > > Time is running out! Thinkgeek.com has the coolest gifts for > > > > your favorite geek. Let your fingers do the typing. > Visit Now. > > > > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > > > > _______________________________________________ > > > > Nagios-users mailing list > > > > Nagios-users at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > This sf.net email is sponsored by:ThinkGeek > > > > Welcome to geek heaven. > > > > http://thinkgeek.com/sf > > > > _______________________________________________ > > > > Nagios-users mailing list > > > > Nagios-users at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > This sf.net email is sponsored by:ThinkGeek > > > Welcome to geek heaven. > > > http://thinkgeek.com/sf > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > Ethan Galstad, > Nagios Developer > --- > Email: nagios at nagios.org > Website: http://www.nagios.org > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From emann at questinc.org Mon Dec 30 20:48:57 2002 From: emann at questinc.org (Evan Mann) Date: Mon, 30 Dec 2002 14:48:57 -0500 Subject: modem based alerts Message-ID: Now that I know what I need to do, I'm in the proces sof trying to get a Lucent LT Modem to work. I've compiled my own LTModem drivers and insmod lt_modem and when I insmod lt_serial I get: Using /lib/modules/2.4.19/ltmodem/lt_serial.o /lib/modules/2.4.19/ltmodem/lt_serial.o: init_module: No such device Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters So it wants me to specify IO and IRQ in the options for the lt_serial or lt_modem module? Not sure where to do from here. Can anyone help? -----Original Message----- From: Jon Lyons [mailto:jlyons30 at yahoo.com] Sent: Monday, December 30, 2002 11:27 AM To: Evan Mann; 'nagios-users at lists.sourceforge.net' Subject: Re: [Nagios-users] modem based alerts Yes, I use qpage, nextel use the TAPS protocol.... Evan Mann wrote: I currently have 2 levels of alerts setup, the initials emails and an all host group escalation which is an email alert to a nextel phone. I'd like to add a 3rd level which is a modem based alert to a Nextel phone. Does anyone have a modem based alert to Nextel's that they are dealing with? I'd like some input how how they deal with this. I am unsure if Nextel has an # specifically for automated paging, so if I assume they don't, I can have it simply call and just leave dead silence on the phone and I just check the caller id and know that particular # it's calling from is only for my alerts. This seems very lacking however. Any advice would be appreciated. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users _____ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From bnelson at rightnow.com Mon Dec 30 20:45:43 2002 From: bnelson at rightnow.com (Nelson, Ben) Date: Mon, 30 Dec 2002 12:45:43 -0700 Subject: Nagios processes hanging around for a long time Message-ID: I am currently running Nagios 1.0 and I always seem to have a lot of nagios processes hanging around after they have done their checks. As a result, many service checks take a long time to complete (4-5 minutes in some cases). To try and debug this I attached strace to several of them, and got very similar output every time. Here is a sample: write(7, "servername\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 504) = 504 ------------------ insert long pause here ---------------------------- close(7) = 0 _exit(0) = ? All of the processes that seem to take a long time to complete seem to be waiting on IO somewhere, since the write call takes quite a while to complete. I can't seem to figure out which file they are writing to here. Does anybody know? --Ben ============================================== Ben Nelson Sr. Systems Administrator, Hosting RightNow Technologies (www.rightnow.com) A Better Way to Serve Your Customers -------------- next part -------------- An HTML attachment was scrubbed... URL: From gwichman at zantaz.com Mon Dec 30 21:35:18 2002 From: gwichman at zantaz.com (Gerald Wichmann) Date: Mon, 30 Dec 2002 12:35:18 -0800 Subject: distributed server glitch? Message-ID: <12C7D768CC8ED4118A9200508BEEC6FB02CB4102@zanexch.zantaz.com> I've installed a distributed environment.. 2 distributed servers polling a variety of clients with 1 central server. Everything is received passively by the central server. Seems to be working now as I fine tune it, but for some reason a couple of the servers are flagged RED, even though all their services are GREEN under "service detail" view. Under "host detail", some have a status of "down" with status information "CRITICAL - plugin timed out after 10 seconds"... some have a status of "UNREACHABLE" with status information "CRITICAL - plugin timed out after 10 seconds". The last check column is very recent within a few minutes or so.. Why is this occurring? Doesn't make sense to me since under service view everything is GREEN.. Course some of the services in service view have old times for "last checked". Why is service detail view not as current or what might be going on here? Weird.. Gerald Wichmann Senior Systems Development Engineer Zantaz, Inc. 925.598.3099 (w) This e-mail has been captured and archived by the ZANTAZ Digital Safe(tm) service. For more information, visit us at www.zantaz.com. IMPORTANT: This electronic mail message is intended only for the use of the individual or entity to which it is addressed and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by telephone or directly reply to the original message(s) sent. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dviner at yahoo-inc.com Mon Dec 30 21:42:59 2002 From: dviner at yahoo-inc.com (Dave Viner) Date: Mon, 30 Dec 2002 12:42:59 -0800 Subject: NRPE enhancement In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB2F24C0@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB2F24C0@PKDWB03C.ad.sprint.com> Message-ID: Ok, so check_by_ssh doesn't scale well, and nrpe is scalable cpu-wise, but has problems configuration-wise. (Imagine 500 machines all of which have 5 disks, and different check_disk arguments for each. That's 2500 configuration lines that need to be maintained over 500 machines in 500 files.) Perhaps there is room for something more secure than the current nrpe, but more scalable than check_by_ssh. Does that seem reasonable? If so, does anyone have suggestions for low cost security implementations that could enhance the security of nrpe without the cost of ssh? dave -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Carroll, Jim P [Contractor] Sent: Monday, December 30, 2002 10:49 AM To: 'nagios-users' Subject: RE: [Nagios-users] NRPE enhancement The general consensus is that check_by_ssh isn't a solution which will scale well, due to the nature of the number-crunching crypto beast. This is where NRPE has the advantage. check_by_ssh has the advantage when it comes to punching through a firewall, assuming that an appropriate port is open. Sure, you could open port 5666 for NRPE, but has has been discussed, that doesn't quite leave the same warm fuzzies. HTH. jc > -----Original Message----- > From: Dave Viner [mailto:dviner at yahoo-inc.com] > Sent: Monday, December 30, 2002 12:14 PM > To: 'Ethan Galstad'; 'nagios-users' > Subject: RE: [Nagios-users] NRPE enhancement > > > Let me ask a second question that might help me understand > more clearly the > situation. Check_by_ssh allows for the passing of arbitrary > arguments to > arbitrary command from the centralized Nagios server to any > remote machine > which has sshd running. NRPE allows for executing a specific > command with > specific arguments on any remote machine which has nrpe running. > > As someone setting up monitoring, when should I use > check_by_ssh and when > should I use nrpe? > > dave > > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of > Dave Viner > Sent: Monday, December 30, 2002 9:07 AM > To: Tom Welsh; 'Ethan Galstad'; 'nagios-users' > Subject: RE: [Nagios-users] NRPE enhancement > > > I don't think that my enhancement allows an arbitrary command to be > executed. I think the code that I wrote will only allow one > of the commands > already listed in the nrpe.cfg file to be executed. The > arguments passed > are arbitrary, but not the command. (The code even checks to > ensure that the > command requested, without any arguments, exists before > executing it to > prevent malicious usage of arguments.) > > dave > > > > -----Original Message----- > From: Tom Welsh [mailto:twelsh at square-box.com] > Sent: Saturday, December 28, 2002 5:02 PM > To: 'Dave Viner'; 'Ethan Galstad'; 'nagios-users' > Subject: RE: [Nagios-users] NRPE enhancement > > > In my humble opinion an option that allows an arbitary command to be > executed and which by "default" is switched off is an accident waiting > to happen. > > It only takes 1 security breach via a plugin to completely destroy the > good name Nagios and its associated plugins have. > > There is a good truism that states "good news travels fast, > but bad news > travels even faster" > > I for one would not be too happy having a command available on my > network, trusted or not that would allow commands to be executed > remotely pon a box. For one. It's the kind of thing im always looking > for when im "playing on my " networks. > > Well that's my two cents worth > > Cheers > > Tom Welsh > twelsh at square-box.com > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Dave > Viner > Sent: 28 December 2002 21:46 > To: Ethan Galstad; nagios-users > Subject: RE: [Nagios-users] NRPE enhancement > > These are excellent arguments for not incorporating the > enhancement I am > suggesting. However, I suspect that there are lots of > installations of > Nagios and NRPE that run on completely trusted network. (Or > the risk of > network intrusion through NRPE is worth the benefit of reduced > configuration > management.) > > What do you think about incorporating this enhancement but have it > turned > off by default, and enabled only at configure time? > > dave > > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Ethan > Galstad > Sent: Friday, December 27, 2002 7:38 PM > To: nagios-users > Subject: RE: [Nagios-users] NRPE enhancement > > > There are several reasons why I have not added support for arguments > to checks in NRPE. Most have been touched on in the past on the > list, but I'll reiterate them here. The main issue is not overruning > the 2K packet that the check_nrpe plugin and NRPE daemon pass back > and forth - that can be easily avoided... > > 1. > Users connecting to the NRPE are not authenticated. Sure, you can > restrict connection based on IP address using TCP wrappers, but they > are still not authenticated. Also, I am not too familiar with IP > spoofing, but I'm sure its possible for someone to fake the > originating address of the connection and get the NRPE daemon to > accept the packet and execute the necessary plugin without too much > trouble. > > 2. > Some plugins (like check_dhcp) may (have to) be installed suid root. > Regardless of what user the NRPE daemon is running as, these plugins > will be executed with higher privs. > > 3. > Plugins can be made to segfault under the right conditions. Sure, we > can try and eliminate this possibility, but it will probably always > exist to some extent since many plugins call system commands to get > their data. > > --- > > Most remote exploits rely on buffer overflows/segfaults to get their > work done, so allowing unauthenticated users to pass arbitrary > arguments/data to plugins that might be running suid commands is a > very bad idea indeed. > > Stunnel would provide some security, but there is no guarantee that > everyone would use it. There would undoubtably be many people that > would put off implementing it until they finished "testing" NRPE. In > the worst case, they might never get around to implementing stunnel > at all. In the likely best case scenario, there is at least a window > of opportunity. I just don't want to be responsible for the possible > carnage that happens at that point. :-) > > Also, incorporating native encryption into NRPE involves reinventing > the wheel called "check_by_ssh", so I'm really interested in doing > that. > > > > On 27 Dec 2002 at 13:46, Carroll, Jim P [Contractor] wrote: > > > I'm not a C programmer by profession, so I defer your query to those > who > > have a strong background, both in C code and system/network > security. > It > > does presume that every other link in the chain is bulletproof. > [Insert > > ObRef to Bugtraq here.] > > > > At any rate, I'm curious to hear why Ethan didn't choose > that approach > to > > begin with. > > > > jc > > > > > -----Original Message----- > > > From: Dave Viner [mailto:dviner at yahoo-inc.com] > > > Sent: Friday, December 27, 2002 12:49 PM > > > To: Nagios-users at lists.sourceforge.net > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > This sounds interesting, but I have a question about the > > > security implications of this code. I'm not a security > > > expert, so please excuse the somewhat basic question. The > > > struct packet as defined in common/common.h has an argv > > > member which is a character array of length 2048. I believe > > > this means that if the incoming packet has an argv member > > > whose length is greater than 2048 chars, then the > > > rc=recvall(sock,(char > > > *)&receive_packet,&bytes_to_recv,socket_timeout); > > > should fail, should it not? > > > > > > However, I think your suggestions regarding stunnel, and > > > encryption are good ones, regardless of the inclusion of > this code. > > > > > > thanks > > > > > > dave > > > > > > > > > -----Original Message----- > > > From: Carroll, Jim P [Contractor] > [mailto:jcarro10 at sprintspectrum.com] > > > Sent: Friday, December 27, 2002 10:20 AM > > > To: 'Dave Viner'; Nagios-users at lists.sourceforge.net > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > I think it's a good idea, but with the following provisions: > > > > > > - This should not be enabled by default. > > > > > > - The configure script, the Makefile and any/all NRPE docs > > > should explicitly > > > state the security risks in forcing the non-default > (added feature) > > > behaviour. > > > > > > - If the daemon is compiled with this option, anytime the > > > daemon starts, it > > > should briefly mention that it has been compiled for this > > > behaviour, and a > > > quick remark about the increased risks. (Sent to stderr if > > > standalone, else > > > sent to syslog if running under (x)inetd). It should scream > > > loud and clear > > > if it's started under root; preferably it would simply not > > > run as root, full > > > stop. > > > > > > - Perhaps a reference to implementing NRPE with stunnel (and > > > only permitting > > > connections from localhost, as defined in nrpe.cfg) would be > > > desireable. > > > > > > I'm not a security guru, but it seems to me that facilitating > > > this feature > > > would open oneself up to a buffer overflow attack. If you're > > > on a trusted > > > network, it's a non-issue. > > > > > > On a related note, I'd be much more comfy with this feature > > > if there were a > > > facility to enforce some level of native encryption, such as > > > what NSCA uses. > > > If you don't have the keys to the house, you get dropped on > > > the floor. (I > > > have a similar wish for NSClient.) > > > > > > Food for thought. > > > > > > jc > > > > > > > -----Original Message----- > > > > From: Dave Viner [mailto:dviner at yahoo-inc.com] > > > > Sent: Friday, December 27, 2002 11:48 AM > > > > To: Nagios-users at lists.sourceforge.net > > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > > > > In order to clarify the idea that I'm proposing, I've made a > > > > patch to the nrpe source that implements what I'm describing. > > > > This patch is made against the nrpe-1.5.tar.gz from > sourceforge. > > > > > > > > Essentially, these changes allow us to specify in the > > > > nrpe.cfg file lines like this: > > > > command[check_disk_gen]=/usr/local/libexec/nagios/check_disk > > > > > > > > Then when invoking check_nrpe, you can invoke it like this: > > > > ./check_nrpe 127.0.0.1 -V 2 -c check_disk_gen -a "-w 50000 > > > > -c 10000 -p /dev/ad0s1e" > > > > > > > > And the effect is that /usr/local/libexec/nagios/check_disk > > > > is invoked with the -w 50000 -c 10000 -p /dev/ad0s1e as the > > > > argument string. For example: > > > > > > > > ~/nagios/nrpe-1.5.new/src>./check_nrpe 127.0.0.1 -V 2 -c > > > > check_disk_gen -a "-w 50000 -c 10000 -p /dev/ad0s1e" > > > > DISK OK - [1484108 kB (9%) free on /dev/ad0s1e] > > > > ~/nagios/nrpe-1.5.new/src> > > > > > > > > I think this is really useful and would greatly reduce the > > > > size of the nrpe.cfg and, more importantly, would reduce the > > > > number of times you'd need to modify that configuration file. > > > > Instead the modifications would occur on the centralized > > > > Nagios server's configuration file. > > > > > > > > What does everyone think? Should we add this to the main > > > > source for NRPE-1.6? > > > > > > > > dave > > > > > > > > > > > > -----Original Message----- > > > > From: nagios-users-admin at lists.sourceforge.net > > > > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of > > > > Dave Viner > > > > Sent: Monday, December 23, 2002 8:51 AM > > > > To: Naios Users > > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > > > > Hi Rue, > > > > Security is a great reason for limiting the commands > > > > that NRPE is able to execute. But my suggested enhancement > > > > wouldn't allow NRPE to execute any command that isn't listed > > > > in the cfg file. That is, the NRPE would still need to find > > > > the path to the executable in the nrpe.cfg file, then use any > > > > remaining information as arguments passed to the executable. > > > > It is true that this is less secure that forcing the entire > > > > command line (executable and arguments) in the config file. > > > > But, so long as the executables are well authored and handle > > > > unexpected arguments well, I think this enhancement would not > > > > significantly decrease security. Do you think that > > > > specifying arguments would make NRPE significantly less secure? > > > > > > > > > > > > Dave > > > > > > > > > > > > -----Original Message----- > > > > From: nagios-users-admin at lists.sourceforge.net > > > > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of > > > > Rue Turner > > > > Sent: Friday, December 20, 2002 1:33 PM > > > > To: Naios Users > > > > Subject: Re: [Nagios-users] NRPE enhancement > > > > > > > > > > > > dave, > > > > > > > > I think the reson for this choice of configuration is > > > security. If the > > > > nrpe was allowed to run whatever it was asked it would > be easy to > > > > compromise your machines. This way although your configs are > > > > hefty (mine > > > > have almost a hundred lines in) you can only ask it to run > > > > commands from > > > > this library. > > > > > > > > rue > > > > > > > > > > > > On Fri, 2002-12-20 at 17:35, Dave Viner wrote: > > > > > Hi, > > > > > I'd like to suggest an enhancement to NRPE, and if > > > > people think this is a > > > > > good idea, I'll try to make a patch to support my > > > > suggestion. Currently the > > > > > nrpe.cfg file specifies all the commands in this fashion: > > > > > > > > > command[check_disk1]=/usr/local/nagios/libexec/check_disk 80 > > > > 95 /dev/hda1 > > > > > As result of this design is that if you want to check > > > something like > > > > > /dev/hda1 and /dev/hdb1, you need two seperate lines in the > > > > nrpe.cfg file. > > > > > So, I'd like to propose that we extend NRPE to allow > > > > for the arguments to a > > > > > command to be specified by the central Nagios server > > > > instead of in the > > > > > nrpe.cfg. The idea is that the nrpe.cfg would have one > > > > command line which > > > > > maps a key, 'check_disk', to a local executable, > > > > > '/usr/local/nagios/libexec/check_disk'. The rest would be > > > > specified from > > > > > the central Nagios server in some manner. > > > > > I think this would great simplify the nrpe.cfg files, > > > > and reduce a lot of > > > > > redundant command definitions that differ only in the > > > arguments they > > > > > require. Also, it would mean that you'd need to update > > > > your nrpe.cfg very > > > > > rarely. In fact, you'd only need to update it when you add > > > > a new plugin. > > > > > I don't have a concrete suggestion for implementing > > > > this yet, because I > > > > > want to see if the community is interested in this idea > > > > first. Has this > > > > > idea been suggested previously? Is anyone currently > > > > interested in the idea > > > > > or would I be the only consumer of such a service? > > > > > > > > > > thanks > > > > > dave > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > This SF.NET email is sponsored by: The Best Geek > Holiday Gifts! > > > > > Time is running out! Thinkgeek.com has the coolest gifts for > > > > > your favorite geek. Let your fingers do the typing. Visit > Now. > > > > > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > > > > > _______________________________________________ > > > > > Nagios-users mailing list > > > > > Nagios-users at lists.sourceforge.net > > > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > > > > r u e t u r n e r > > > > ?? t ?? h ?? i ?? n ?? l ?? a ?? y ?? e ?? r ?? > > > > > > > > -- index, n.: Alphabetical list of words of no possible > > > interest where > > > > an alphabetical list of subjects with references ought to be. > > > > > > > > > > > > ------------------------------------------------------- > > > > This SF.NET email is sponsored by: The Best Geek Holiday Gifts! > > > > Time is running out! Thinkgeek.com has the coolest gifts for > > > > your favorite geek. Let your fingers do the typing. > Visit Now. > > > > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > > > > _______________________________________________ > > > > Nagios-users mailing list > > > > Nagios-users at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > This sf.net email is sponsored by:ThinkGeek > > > > Welcome to geek heaven. > > > > http://thinkgeek.com/sf > > > > _______________________________________________ > > > > Nagios-users mailing list > > > > Nagios-users at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > This sf.net email is sponsored by:ThinkGeek > > > Welcome to geek heaven. > > > http://thinkgeek.com/sf > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > Ethan Galstad, > Nagios Developer > --- > Email: nagios at nagios.org > Website: http://www.nagios.org > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From chris.stankaitis at datawire.net Mon Dec 30 21:39:34 2002 From: chris.stankaitis at datawire.net (Chris Stankaitis) Date: Mon, 30 Dec 2002 15:39:34 -0500 Subject: NSCA and Passive Checks In-Reply-To: References: Message-ID: <3E10AF06.3050505@datawire.net> I am using NSCA to do passive checks for external hosts and I have it working with one exception which I think is a simple Nagios config issue which is escaping me at this time Basically I need to tell Nagios that disabled Active Checks for Some services is ok. As it stands now I have 141 Active Checks, and 1 Passive Check, under the TAC it gives me a big warning in the Active Checks box that Active Checks are disabled under 1 Service and under the Services I get 142 OK (1 Disabled) I kept the generic-service as is under the services.cfg and made a new one called passive-service with the identical options to the generic with the exception that active checks are set to 0, I put the one service which I am working on testing the nsca stuff in using the new passive-service and it's working fine, getting the external cmd updates etc... however the main Nagios doesn't like it any thoughts? ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From russell at quadrix.com Mon Dec 30 22:17:17 2002 From: russell at quadrix.com (Russell Scibetti) Date: Mon, 30 Dec 2002 16:17:17 -0500 Subject: distributed server glitch? References: <12C7D768CC8ED4118A9200508BEEC6FB02CB4102@zanexch.zantaz.com> Message-ID: <3E10B7DD.9050802@quadrix.com> First thing to check. Stop nagios and make sure that all nagios processes have been stopped. It almost sounds like you have multiple daemon's running, so you are getting mixed information from the CGI's. Russell Gerald Wichmann wrote: > I've installed a distributed environment.. 2 distributed servers > polling a variety of clients with 1 central server. Everything is > received passively by the central server. Seems to be working now as I > fine tune it, but for some reason a couple of the servers are flagged > RED, even though all their services are GREEN under "service detail" view. > > > > Under "host detail", some have a status of "down" with status > information "CRITICAL - plugin timed out after 10 seconds"... some > have a status of "UNREACHABLE" with status information "CRITICAL - > plugin timed out after 10 seconds". The last check column is very > recent within a few minutes or so.. > > > > Why is this occurring? Doesn't make sense to me since under service > view everything is GREEN.. > > > > Course some of the services in service view have old times for "last > checked". Why is service detail view not as current or what might be > going on here? Weird.. > > > > Gerald Wichmann > > Senior Systems Development Engineer > > Zantaz, Inc. > > 925.598.3099 (w) > > > > > > This e-mail has been captured and archived by the ZANTAZ Digital > Safe(tm) service. For more information, visit us at www.zantaz.com. > > IMPORTANT: This electronic mail message is intended only for the use > of the individual or entity to which it is addressed and may contain > information that is privileged, confidential or exempt from disclosure > under applicable law. If the reader of this message is not the > intended recipient, or the employee or agent responsible for > delivering this message to the intended recipient, you are hereby > notified that any dissemination, distribution or copying of this > communication is strictly prohibited. If you have received this > communication in error, please notify the sender immediately by > telephone or directly reply to the original message(s) sent. Thank you. > -- Russell Scibetti Quadrix Solutions, Inc. http://www.quadrix.com (732) 235-2335, ext. 7038 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jlyons30 at yahoo.com Mon Dec 30 22:16:43 2002 From: jlyons30 at yahoo.com (Jon Lyons) Date: Mon, 30 Dec 2002 13:16:43 -0800 (PST) Subject: modem based alerts In-Reply-To: References: Message-ID: <20021230211643.9005.qmail@web21506.mail.yahoo.com> Ummm....the easy way? Spend the $100 bucks and buy a real modem....Something thats not windows specific.... Evan Mann wrote:Now that I know what I need to do, I'm in the proces sof trying to get a Lucent LT Modem to work. I've compiled my own LTModem drivers and insmod lt_modem and when I insmod lt_serial I get: Using /lib/modules/2.4.19/ltmodem/lt_serial.o /lib/modules/2.4.19/ltmodem/lt_serial.o: init_module: No such device Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters So it wants me to specify IO and IRQ in the options for the lt_serial or lt_modem module? Not sure where to do from here. Can anyone help?-----Original Message----- From: Jon Lyons [mailto:jlyons30 at yahoo.com] Sent: Monday, December 30, 2002 11:27 AM To: Evan Mann; 'nagios-users at lists.sourceforge.net' Subject: Re: [Nagios-users] modem based alerts Yes, I use qpage, nextel use the TAPS protocol.... Evan Mann wrote: I currently have 2 levels of alerts setup, the initials emails and an all host group escalation which is an email alert to a nextel phone. I'd like to add a 3rd level which is a modem based alert to a Nextel phone. Does anyone have a modem based alert to Nextel's that they are dealing with? I'd like some input how how they deal with this. I am unsure if Nextel has an # specifically for automated paging, so if I assume they don't, I can have it simply call and just leave dead silence on the phone and I just check the caller id and know that particular # it's calling from is only for my alerts. This seems very lacking however. Any advice would be appreciated. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From gwichman at zantaz.com Mon Dec 30 22:56:45 2002 From: gwichman at zantaz.com (Gerald Wichmann) Date: Mon, 30 Dec 2002 13:56:45 -0800 Subject: distributed server glitch? Message-ID: <12C7D768CC8ED4118A9200508BEEC6FB02CB4103@zanexch.zantaz.com> Interesting.. my two distributed servers only show one nagios process running. But the central server has a bunch as shown below.. even more when I first looked at it. I did a /etc/init.d/nagios stop and they all went away. None running. So I started nagios again and initially there was only 1.. but over time as you can see it seems to launch multiple ones. Is this unusual behavior? Any thoughts on what might cause it? [root at dhcp-51-205 etc]# ps -ef | grep nag nagios 19583 1 0 13:46 ? 00:00:00 /usr/local/nagios/bin/nagios -d nagios 19682 1 0 13:48 ? 00:00:00 /usr/local/nagios/bin/nagios -d nagios 19691 1 0 13:48 ? 00:00:00 /usr/local/nagios/bin/nagios -d nagios 19701 1 0 13:48 ? 00:00:00 /usr/local/nagios/bin/nagios -d nagios 19709 1 0 13:48 ? 00:00:00 /usr/local/nagios/bin/nagios -d nagios 19717 1 0 13:49 ? 00:00:00 /usr/local/nagios/bin/nagios -d nagios 19725 1 0 13:49 ? 00:00:00 /usr/local/nagios/bin/nagios -d nagios 19732 1 0 13:49 ? 00:00:00 /usr/local/nagios/bin/nagios -d nagios 19738 1 0 13:49 ? 00:00:00 /usr/local/nagios/bin/nagios -d nagios 19748 1 0 13:49 ? 00:00:00 /usr/local/nagios/bin/nagios -d nagios 19761 1 0 13:50 ? 00:00:00 /usr/local/nagios/bin/nagios -d nagios 19770 1 0 13:50 ? 00:00:00 /usr/local/nagios/bin/nagios -d nagios 19786 1 0 13:50 ? 00:00:00 /usr/local/nagios/bin/nagios -d nagios 19795 1 0 13:50 ? 00:00:00 /usr/local/nagios/bin/nagios -d nagios 19803 1 0 13:50 ? 00:00:00 /usr/local/nagios/bin/nagios -d nagios 19812 1 0 13:50 ? 00:00:00 /usr/local/nagios/bin/nagios -d nagios 19820 1 0 13:51 ? 00:00:00 /usr/local/nagios/bin/nagios -d nagios 19836 1 0 13:51 ? 00:00:00 /usr/local/nagios/bin/nagios -d nagios 19846 1 0 13:51 ? 00:00:00 /usr/local/nagios/bin/nagios -d nagios 19847 19583 0 13:51 ? 00:00:00 /usr/local/nagios/bin/nagios -d nagios 19848 19847 0 13:51 ? 00:00:00 /usr/local/nagios/libexec/check_ nagios 19849 19848 0 13:51 ? 00:00:00 /bin/ping -n -U -c 1 10.1.82.21 root 19851 1655 0 13:51 pts/5 00:00:00 grep nag [root at dhcp-51-205 etc]# Gerald Wichmann Senior Systems Development Engineer Zantaz, Inc. 925.598.3099 (w) -----Original Message----- From: Russell Scibetti [mailto:russell at quadrix.com] Sent: Monday, December 30, 2002 1:17 PM To: Gerald Wichmann Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] distributed server glitch? First thing to check. Stop nagios and make sure that all nagios processes have been stopped. It almost sounds like you have multiple daemon's running, so you are getting mixed information from the CGI's. Russell Gerald Wichmann wrote: I've installed a distributed environment.. 2 distributed servers polling a variety of clients with 1 central server. Everything is received passively by the central server. Seems to be working now as I fine tune it, but for some reason a couple of the servers are flagged RED, even though all their services are GREEN under "service detail" view. Under "host detail", some have a status of "down" with status information "CRITICAL - plugin timed out after 10 seconds"... some have a status of "UNREACHABLE" with status information "CRITICAL - plugin timed out after 10 seconds". The last check column is very recent within a few minutes or so.. Why is this occurring? Doesn't make sense to me since under service view everything is GREEN.. Course some of the services in service view have old times for "last checked". Why is service detail view not as current or what might be going on here? Weird.. Gerald Wichmann Senior Systems Development Engineer Zantaz, Inc. 925.598.3099 (w) This e-mail has been captured and archived by the ZANTAZ Digital Safe(tm) service. For more information, visit us at www.zantaz.com . IMPORTANT: This electronic mail message is intended only for the use of the individual or entity to which it is addressed and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by telephone or directly reply to the original message(s) sent. Thank you. -- Russell Scibetti Quadrix Solutions, Inc. http://www.quadrix.com (732) 235-2335, ext. 7038 This e-mail has been captured and archived by the ZANTAZ Digital Safe(tm) service. For more information, visit us at www.zantaz.com. IMPORTANT: This electronic mail message is intended only for the use of the individual or entity to which it is addressed and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by telephone or directly reply to the original message(s) sent. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcarro10 at sprintspectrum.com Mon Dec 30 23:11:16 2002 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Mon, 30 Dec 2002 16:11:16 -0600 Subject: Nagios processes hanging around for a long tim e Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E11EC@PKDWB03C.ad.sprint.com> The only thing which springs to mind is a misconfigured resolv.conf, causing long delays in resolving hostnames. Do you have this problem when you execute a plugin from the command line? Does this happen with all plugins, or just network-related ones? jc -----Original Message----- From: Nelson, Ben [mailto:bnelson at rightnow.com] Sent: Monday, December 30, 2002 1:46 PM To: 'nagios-users at lists.sourceforge.net' Subject: [Nagios-users] Nagios processes hanging around for a long time I am currently running Nagios 1.0 and I always seem to have a lot of nagios processes hanging around after they have done their checks. As a result, many service checks take a long time to complete (4-5 minutes in some cases). To try and debug this I attached strace to several of them, and got very similar output every time. Here is a sample: write(7, "servername\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 504) = 504 ------------------ insert long pause here ---------------------------- close(7) = 0 _exit(0) = ? All of the processes that seem to take a long time to complete seem to be waiting on IO somewhere, since the write call takes quite a while to complete. I can't seem to figure out which file they are writing to here. Does anybody know? --Ben ============================================== Ben Nelson Sr. Systems Administrator, Hosting RightNow Technologies (www.rightnow.com) A Better Way to Serve Your Customers -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcarro10 at sprintspectrum.com Mon Dec 30 23:09:01 2002 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Mon, 30 Dec 2002 16:09:01 -0600 Subject: modem based alerts Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E11EB@PKDWB03C.ad.sprint.com> If it turns out you don't get the desired info from the nagios-users mailing list, check out the linuxmanagers mailing list: http://www.linuxmanagers.org/ jc -----Original Message----- From: Evan Mann [mailto:emann at questinc.org] Sent: Monday, December 30, 2002 1:49 PM To: 'nagios-users at lists.sourceforge.net' Subject: RE: [Nagios-users] modem based alerts Now that I know what I need to do, I'm in the proces sof trying to get a Lucent LT Modem to work. I've compiled my own LTModem drivers and insmod lt_modem and when I insmod lt_serial I get: Using /lib/modules/2.4.19/ltmodem/lt_serial.o /lib/modules/2.4.19/ltmodem/lt_serial.o: init_module: No such device Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters So it wants me to specify IO and IRQ in the options for the lt_serial or lt_modem module? Not sure where to do from here. Can anyone help? -----Original Message----- From: Jon Lyons [mailto:jlyons30 at yahoo.com] Sent: Monday, December 30, 2002 11:27 AM To: Evan Mann; 'nagios-users at lists.sourceforge.net' Subject: Re: [Nagios-users] modem based alerts Yes, I use qpage, nextel use the TAPS protocol.... Evan Mann wrote: I currently have 2 levels of alerts setup, the initials emails and an all host group escalation which is an email alert to a nextel phone. I'd like to add a 3rd level which is a modem based alert to a Nextel phone. Does anyone have a modem based alert to Nextel's that they are dealing with? I'd like some input how how they deal with this. I am unsure if Nextel has an # specifically for automated paging, so if I assume they don't, I can have it simply call and just leave dead silence on the phone and I just check the caller id and know that particular # it's calling from is only for my alerts. This seems very lacking however. Any advice would be appreciated. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users _____ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From shane.stakem at managestar.com Mon Dec 30 23:20:47 2002 From: shane.stakem at managestar.com (Shane Stakem) Date: Mon, 30 Dec 2002 14:20:47 -0800 Subject: Nagios not passing warning when using nrpe? Message-ID: <371EAC487A83CD4296F6999FD088D8338FAC6F@atlas.managestar.com> Im using nrpe to monitor disk utilization on remote clients, however when a threshold has been met Nagios doesn't treat the output as a problem. As you can see from the output here nrpe out reports a problem but Nagios says its "OK" Can anyone tell me how to get Nagios to display an alert when using nrpe? DISK_SPACE_1 OK 12-30-2002 13:48:06 0d 0h 0m 15s 1/3 DISK WARNING - [8113484 kB (7%) free on /dev/hde1] Nrpe.cfg (remote client) command[check_disk1]=/usr/local/nagios/libexec/check_disk 80 95 /dev/hde1 define service{ host_name server1,server2,server3,server4 service_description DISK_SPACE_1 is_volatile 0 check_period 24x7 max_check_attempt 3 normal_check_interval 1 retry_check_interval 1 contact_groups admins notification_interval 120 notification_period 24x7 notification_options w,u,c,r check_command check_nrpe!check_disk1 } Shane C. Stakem Senior Systems Architect manageStar 350 North Wiget Lane, Suite 100 Walnut Creek, CA 94598 shane.stakem at manageStar.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From dviner at yahoo-inc.com Mon Dec 30 23:25:26 2002 From: dviner at yahoo-inc.com (Dave Viner) Date: Mon, 30 Dec 2002 14:25:26 -0800 Subject: NRPE enhancement In-Reply-To: References: Message-ID: What about using GPG to validate the origin of the request? On the central Nagios server, it would sign the request using a private key, then on the remote machine, it would verify the signature using the public key. I don't know exactly how that compares to check_by_ssh with respect to scalablity, but it is one possible way of verifying the origin of a request. dave -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Dave Viner Sent: Monday, December 30, 2002 12:43 PM To: Carroll, Jim P [Contractor]; 'nagios-users' Subject: RE: [Nagios-users] NRPE enhancement Ok, so check_by_ssh doesn't scale well, and nrpe is scalable cpu-wise, but has problems configuration-wise. (Imagine 500 machines all of which have 5 disks, and different check_disk arguments for each. That's 2500 configuration lines that need to be maintained over 500 machines in 500 files.) Perhaps there is room for something more secure than the current nrpe, but more scalable than check_by_ssh. Does that seem reasonable? If so, does anyone have suggestions for low cost security implementations that could enhance the security of nrpe without the cost of ssh? dave -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Carroll, Jim P [Contractor] Sent: Monday, December 30, 2002 10:49 AM To: 'nagios-users' Subject: RE: [Nagios-users] NRPE enhancement The general consensus is that check_by_ssh isn't a solution which will scale well, due to the nature of the number-crunching crypto beast. This is where NRPE has the advantage. check_by_ssh has the advantage when it comes to punching through a firewall, assuming that an appropriate port is open. Sure, you could open port 5666 for NRPE, but has has been discussed, that doesn't quite leave the same warm fuzzies. HTH. jc > -----Original Message----- > From: Dave Viner [mailto:dviner at yahoo-inc.com] > Sent: Monday, December 30, 2002 12:14 PM > To: 'Ethan Galstad'; 'nagios-users' > Subject: RE: [Nagios-users] NRPE enhancement > > > Let me ask a second question that might help me understand > more clearly the > situation. Check_by_ssh allows for the passing of arbitrary > arguments to > arbitrary command from the centralized Nagios server to any > remote machine > which has sshd running. NRPE allows for executing a specific > command with > specific arguments on any remote machine which has nrpe running. > > As someone setting up monitoring, when should I use > check_by_ssh and when > should I use nrpe? > > dave > > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of > Dave Viner > Sent: Monday, December 30, 2002 9:07 AM > To: Tom Welsh; 'Ethan Galstad'; 'nagios-users' > Subject: RE: [Nagios-users] NRPE enhancement > > > I don't think that my enhancement allows an arbitrary command to be > executed. I think the code that I wrote will only allow one > of the commands > already listed in the nrpe.cfg file to be executed. The > arguments passed > are arbitrary, but not the command. (The code even checks to > ensure that the > command requested, without any arguments, exists before > executing it to > prevent malicious usage of arguments.) > > dave > > > > -----Original Message----- > From: Tom Welsh [mailto:twelsh at square-box.com] > Sent: Saturday, December 28, 2002 5:02 PM > To: 'Dave Viner'; 'Ethan Galstad'; 'nagios-users' > Subject: RE: [Nagios-users] NRPE enhancement > > > In my humble opinion an option that allows an arbitary command to be > executed and which by "default" is switched off is an accident waiting > to happen. > > It only takes 1 security breach via a plugin to completely destroy the > good name Nagios and its associated plugins have. > > There is a good truism that states "good news travels fast, > but bad news > travels even faster" > > I for one would not be too happy having a command available on my > network, trusted or not that would allow commands to be executed > remotely pon a box. For one. It's the kind of thing im always looking > for when im "playing on my " networks. > > Well that's my two cents worth > > Cheers > > Tom Welsh > twelsh at square-box.com > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Dave > Viner > Sent: 28 December 2002 21:46 > To: Ethan Galstad; nagios-users > Subject: RE: [Nagios-users] NRPE enhancement > > These are excellent arguments for not incorporating the > enhancement I am > suggesting. However, I suspect that there are lots of > installations of > Nagios and NRPE that run on completely trusted network. (Or > the risk of > network intrusion through NRPE is worth the benefit of reduced > configuration > management.) > > What do you think about incorporating this enhancement but have it > turned > off by default, and enabled only at configure time? > > dave > > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Ethan > Galstad > Sent: Friday, December 27, 2002 7:38 PM > To: nagios-users > Subject: RE: [Nagios-users] NRPE enhancement > > > There are several reasons why I have not added support for arguments > to checks in NRPE. Most have been touched on in the past on the > list, but I'll reiterate them here. The main issue is not overruning > the 2K packet that the check_nrpe plugin and NRPE daemon pass back > and forth - that can be easily avoided... > > 1. > Users connecting to the NRPE are not authenticated. Sure, you can > restrict connection based on IP address using TCP wrappers, but they > are still not authenticated. Also, I am not too familiar with IP > spoofing, but I'm sure its possible for someone to fake the > originating address of the connection and get the NRPE daemon to > accept the packet and execute the necessary plugin without too much > trouble. > > 2. > Some plugins (like check_dhcp) may (have to) be installed suid root. > Regardless of what user the NRPE daemon is running as, these plugins > will be executed with higher privs. > > 3. > Plugins can be made to segfault under the right conditions. Sure, we > can try and eliminate this possibility, but it will probably always > exist to some extent since many plugins call system commands to get > their data. > > --- > > Most remote exploits rely on buffer overflows/segfaults to get their > work done, so allowing unauthenticated users to pass arbitrary > arguments/data to plugins that might be running suid commands is a > very bad idea indeed. > > Stunnel would provide some security, but there is no guarantee that > everyone would use it. There would undoubtably be many people that > would put off implementing it until they finished "testing" NRPE. In > the worst case, they might never get around to implementing stunnel > at all. In the likely best case scenario, there is at least a window > of opportunity. I just don't want to be responsible for the possible > carnage that happens at that point. :-) > > Also, incorporating native encryption into NRPE involves reinventing > the wheel called "check_by_ssh", so I'm really interested in doing > that. > > > > On 27 Dec 2002 at 13:46, Carroll, Jim P [Contractor] wrote: > > > I'm not a C programmer by profession, so I defer your query to those > who > > have a strong background, both in C code and system/network > security. > It > > does presume that every other link in the chain is bulletproof. > [Insert > > ObRef to Bugtraq here.] > > > > At any rate, I'm curious to hear why Ethan didn't choose > that approach > to > > begin with. > > > > jc > > > > > -----Original Message----- > > > From: Dave Viner [mailto:dviner at yahoo-inc.com] > > > Sent: Friday, December 27, 2002 12:49 PM > > > To: Nagios-users at lists.sourceforge.net > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > This sounds interesting, but I have a question about the > > > security implications of this code. I'm not a security > > > expert, so please excuse the somewhat basic question. The > > > struct packet as defined in common/common.h has an argv > > > member which is a character array of length 2048. I believe > > > this means that if the incoming packet has an argv member > > > whose length is greater than 2048 chars, then the > > > rc=recvall(sock,(char > > > *)&receive_packet,&bytes_to_recv,socket_timeout); > > > should fail, should it not? > > > > > > However, I think your suggestions regarding stunnel, and > > > encryption are good ones, regardless of the inclusion of > this code. > > > > > > thanks > > > > > > dave > > > > > > > > > -----Original Message----- > > > From: Carroll, Jim P [Contractor] > [mailto:jcarro10 at sprintspectrum.com] > > > Sent: Friday, December 27, 2002 10:20 AM > > > To: 'Dave Viner'; Nagios-users at lists.sourceforge.net > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > I think it's a good idea, but with the following provisions: > > > > > > - This should not be enabled by default. > > > > > > - The configure script, the Makefile and any/all NRPE docs > > > should explicitly > > > state the security risks in forcing the non-default > (added feature) > > > behaviour. > > > > > > - If the daemon is compiled with this option, anytime the > > > daemon starts, it > > > should briefly mention that it has been compiled for this > > > behaviour, and a > > > quick remark about the increased risks. (Sent to stderr if > > > standalone, else > > > sent to syslog if running under (x)inetd). It should scream > > > loud and clear > > > if it's started under root; preferably it would simply not > > > run as root, full > > > stop. > > > > > > - Perhaps a reference to implementing NRPE with stunnel (and > > > only permitting > > > connections from localhost, as defined in nrpe.cfg) would be > > > desireable. > > > > > > I'm not a security guru, but it seems to me that facilitating > > > this feature > > > would open oneself up to a buffer overflow attack. If you're > > > on a trusted > > > network, it's a non-issue. > > > > > > On a related note, I'd be much more comfy with this feature > > > if there were a > > > facility to enforce some level of native encryption, such as > > > what NSCA uses. > > > If you don't have the keys to the house, you get dropped on > > > the floor. (I > > > have a similar wish for NSClient.) > > > > > > Food for thought. > > > > > > jc > > > > > > > -----Original Message----- > > > > From: Dave Viner [mailto:dviner at yahoo-inc.com] > > > > Sent: Friday, December 27, 2002 11:48 AM > > > > To: Nagios-users at lists.sourceforge.net > > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > > > > In order to clarify the idea that I'm proposing, I've made a > > > > patch to the nrpe source that implements what I'm describing. > > > > This patch is made against the nrpe-1.5.tar.gz from > sourceforge. > > > > > > > > Essentially, these changes allow us to specify in the > > > > nrpe.cfg file lines like this: > > > > command[check_disk_gen]=/usr/local/libexec/nagios/check_disk > > > > > > > > Then when invoking check_nrpe, you can invoke it like this: > > > > ./check_nrpe 127.0.0.1 -V 2 -c check_disk_gen -a "-w 50000 > > > > -c 10000 -p /dev/ad0s1e" > > > > > > > > And the effect is that /usr/local/libexec/nagios/check_disk > > > > is invoked with the -w 50000 -c 10000 -p /dev/ad0s1e as the > > > > argument string. For example: > > > > > > > > ~/nagios/nrpe-1.5.new/src>./check_nrpe 127.0.0.1 -V 2 -c > > > > check_disk_gen -a "-w 50000 -c 10000 -p /dev/ad0s1e" > > > > DISK OK - [1484108 kB (9%) free on /dev/ad0s1e] > > > > ~/nagios/nrpe-1.5.new/src> > > > > > > > > I think this is really useful and would greatly reduce the > > > > size of the nrpe.cfg and, more importantly, would reduce the > > > > number of times you'd need to modify that configuration file. > > > > Instead the modifications would occur on the centralized > > > > Nagios server's configuration file. > > > > > > > > What does everyone think? Should we add this to the main > > > > source for NRPE-1.6? > > > > > > > > dave > > > > > > > > > > > > -----Original Message----- > > > > From: nagios-users-admin at lists.sourceforge.net > > > > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of > > > > Dave Viner > > > > Sent: Monday, December 23, 2002 8:51 AM > > > > To: Naios Users > > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > > > > Hi Rue, > > > > Security is a great reason for limiting the commands > > > > that NRPE is able to execute. But my suggested enhancement > > > > wouldn't allow NRPE to execute any command that isn't listed > > > > in the cfg file. That is, the NRPE would still need to find > > > > the path to the executable in the nrpe.cfg file, then use any > > > > remaining information as arguments passed to the executable. > > > > It is true that this is less secure that forcing the entire > > > > command line (executable and arguments) in the config file. > > > > But, so long as the executables are well authored and handle > > > > unexpected arguments well, I think this enhancement would not > > > > significantly decrease security. Do you think that > > > > specifying arguments would make NRPE significantly less secure? > > > > > > > > > > > > Dave > > > > > > > > > > > > -----Original Message----- > > > > From: nagios-users-admin at lists.sourceforge.net > > > > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of > > > > Rue Turner > > > > Sent: Friday, December 20, 2002 1:33 PM > > > > To: Naios Users > > > > Subject: Re: [Nagios-users] NRPE enhancement > > > > > > > > > > > > dave, > > > > > > > > I think the reson for this choice of configuration is > > > security. If the > > > > nrpe was allowed to run whatever it was asked it would > be easy to > > > > compromise your machines. This way although your configs are > > > > hefty (mine > > > > have almost a hundred lines in) you can only ask it to run > > > > commands from > > > > this library. > > > > > > > > rue > > > > > > > > > > > > On Fri, 2002-12-20 at 17:35, Dave Viner wrote: > > > > > Hi, > > > > > I'd like to suggest an enhancement to NRPE, and if > > > > people think this is a > > > > > good idea, I'll try to make a patch to support my > > > > suggestion. Currently the > > > > > nrpe.cfg file specifies all the commands in this fashion: > > > > > > > > > command[check_disk1]=/usr/local/nagios/libexec/check_disk 80 > > > > 95 /dev/hda1 > > > > > As result of this design is that if you want to check > > > something like > > > > > /dev/hda1 and /dev/hdb1, you need two seperate lines in the > > > > nrpe.cfg file. > > > > > So, I'd like to propose that we extend NRPE to allow > > > > for the arguments to a > > > > > command to be specified by the central Nagios server > > > > instead of in the > > > > > nrpe.cfg. The idea is that the nrpe.cfg would have one > > > > command line which > > > > > maps a key, 'check_disk', to a local executable, > > > > > '/usr/local/nagios/libexec/check_disk'. The rest would be > > > > specified from > > > > > the central Nagios server in some manner. > > > > > I think this would great simplify the nrpe.cfg files, > > > > and reduce a lot of > > > > > redundant command definitions that differ only in the > > > arguments they > > > > > require. Also, it would mean that you'd need to update > > > > your nrpe.cfg very > > > > > rarely. In fact, you'd only need to update it when you add > > > > a new plugin. > > > > > I don't have a concrete suggestion for implementing > > > > this yet, because I > > > > > want to see if the community is interested in this idea > > > > first. Has this > > > > > idea been suggested previously? Is anyone currently > > > > interested in the idea > > > > > or would I be the only consumer of such a service? > > > > > > > > > > thanks > > > > > dave > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > This SF.NET email is sponsored by: The Best Geek > Holiday Gifts! > > > > > Time is running out! Thinkgeek.com has the coolest gifts for > > > > > your favorite geek. Let your fingers do the typing. Visit > Now. > > > > > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > > > > > _______________________________________________ > > > > > Nagios-users mailing list > > > > > Nagios-users at lists.sourceforge.net > > > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > > > > r u e t u r n e r > > > > ?? t ?? h ?? i ?? n ?? l ?? a ?? y ?? e ?? r ?? > > > > > > > > -- index, n.: Alphabetical list of words of no possible > > > interest where > > > > an alphabetical list of subjects with references ought to be. > > > > > > > > > > > > ------------------------------------------------------- > > > > This SF.NET email is sponsored by: The Best Geek Holiday Gifts! > > > > Time is running out! Thinkgeek.com has the coolest gifts for > > > > your favorite geek. Let your fingers do the typing. > Visit Now. > > > > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > > > > _______________________________________________ > > > > Nagios-users mailing list > > > > Nagios-users at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > This sf.net email is sponsored by:ThinkGeek > > > > Welcome to geek heaven. > > > > http://thinkgeek.com/sf > > > > _______________________________________________ > > > > Nagios-users mailing list > > > > Nagios-users at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > This sf.net email is sponsored by:ThinkGeek > > > Welcome to geek heaven. > > > http://thinkgeek.com/sf > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > Ethan Galstad, > Nagios Developer > --- > Email: nagios at nagios.org > Website: http://www.nagios.org > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From bnelson at rightnow.com Mon Dec 30 23:37:22 2002 From: bnelson at rightnow.com (Nelson, Ben) Date: Mon, 30 Dec 2002 15:37:22 -0700 Subject: Nagios processes hanging around for a long tim e Message-ID: Actually it is all checks. But, I think I figured out the problem. All of these writes were waiting to write to the file descriptor that the master Nagios process reads for status. I think that some buffer was filling up and these children processes were having to wait for the master process to clean out the FIFO before they could write to it. By adjusting the 'service_reaper_frequency', I was able to get rid of the problem. Thanks for all of the help from everyone though. --Ben -----Original Message----- From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] Sent: Monday, December 30, 2002 3:11 PM To: Nelson, Ben; 'nagios-users at lists.sourceforge.net' Subject: RE: [Nagios-users] Nagios processes hanging around for a long tim e The only thing which springs to mind is a misconfigured resolv.conf, causing long delays in resolving hostnames. Do you have this problem when you execute a plugin from the command line? Does this happen with all plugins, or just network-related ones? jc -----Original Message----- From: Nelson, Ben [mailto:bnelson at rightnow.com] Sent: Monday, December 30, 2002 1:46 PM To: 'nagios-users at lists.sourceforge.net' Subject: [Nagios-users] Nagios processes hanging around for a long time I am currently running Nagios 1.0 and I always seem to have a lot of nagios processes hanging around after they have done their checks. As a result, many service checks take a long time to complete (4-5 minutes in some cases). To try and debug this I attached strace to several of them, and got very similar output every time. Here is a sample: write(7, "servername\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 504) = 504 ------------------ insert long pause here ---------------------------- close(7) = 0 _exit(0) = ? All of the processes that seem to take a long time to complete seem to be waiting on IO somewhere, since the write call takes quite a while to complete. I can't seem to figure out which file they are writing to here. Does anybody know? --Ben ============================================== Ben Nelson Sr. Systems Administrator, Hosting RightNow Technologies (www.rightnow.com) A Better Way to Serve Your Customers -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcarro10 at sprintspectrum.com Mon Dec 30 23:43:50 2002 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Mon, 30 Dec 2002 16:43:50 -0600 Subject: NRPE enhancement Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F24C1@PKDWB03C.ad.sprint.com> If you have 500 machines, and among those machines there are no two disks alike, then I can only imagine the grief ahead of you. To take a page out of www.infrastructures.org, it's desireable to maintain a convergence, not divergence, among the various systems. Homogeneity is A Good Thing ?. Having said that, rather than maintaining 500 config files, why not maintain a single config file containing all the similar and dissimilar config particulars? Edit that one file, and either push it out from a trusted host ("gold server", in Infrastructures.org parlance). Better still, set up an rsync server (or some other server that you can live with, and set up a cron job to pull down the latest nrpe.cfg file. (As has been emphasized on their list, pull, never push. But take your pick. :) In our location, I maintain a single nrpe.cfg file, complete with all the unique disk definitions. I'm not sure if it matters to you, but for the most part, I've elected to use the percentage option of check_disk. 5% free on the root partition of an 18GB disk isn't going to be a whole lot different from 5% free on root of a 36GB disk. Sure, mathematically they're different, so if exacting differences is critical in your environment, create unique definitions for the different root partitions. (I'm also specifying mount points, not device filenames.) On a related note, we have partitions on our database servers which follow a fairly straightforward naming scheme for the mount points, and since I don't expect those partitions to change, I can either exclude them, or I can set a trivial threshold for each of the warning and critical, but in those cases I specify kbytes. (I do the latter; this lets anyone with the appropriate permissions at the web interface view all the defined partitions.) [Sidebar: I noticed at one point that there's a limit to the length of the command token in nrpe.cfg. As a result, I simplified all the names. Lesson learned: Be economical with the keystrokes.] If you like, I can send you the nrpe.cfg file that I install on all our hosts. You might find that instead of one master nrpe.cfg file, that you'd rather manage a handful of dissimilar files. Might still want to use the gold/config server, as above. Food for thought. jc > -----Original Message----- > From: Dave Viner [mailto:dviner at yahoo-inc.com] > Sent: Monday, December 30, 2002 2:43 PM > To: Carroll, Jim P [Contractor]; 'nagios-users' > Subject: RE: [Nagios-users] NRPE enhancement > > > Ok, so check_by_ssh doesn't scale well, and nrpe is scalable > cpu-wise, but > has problems configuration-wise. (Imagine 500 machines all > of which have 5 > disks, and different check_disk arguments for each. That's 2500 > configuration lines that need to be maintained over 500 > machines in 500 > files.) > > Perhaps there is room for something more secure than the > current nrpe, but > more scalable than check_by_ssh. Does that seem reasonable? > If so, does > anyone have suggestions for low cost security implementations > that could > enhance the security of nrpe without the cost of ssh? > > dave > > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Carroll, > Jim P [Contractor] > Sent: Monday, December 30, 2002 10:49 AM > To: 'nagios-users' > Subject: RE: [Nagios-users] NRPE enhancement > > > The general consensus is that check_by_ssh isn't a solution > which will scale > well, due to the nature of the number-crunching crypto beast. > This is where > NRPE has the advantage. > > check_by_ssh has the advantage when it comes to punching > through a firewall, > assuming that an appropriate port is open. Sure, you could > open port 5666 > for NRPE, but has has been discussed, that doesn't quite > leave the same warm > fuzzies. > > HTH. > > jc > > > -----Original Message----- > > From: Dave Viner [mailto:dviner at yahoo-inc.com] > > Sent: Monday, December 30, 2002 12:14 PM > > To: 'Ethan Galstad'; 'nagios-users' > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > Let me ask a second question that might help me understand > > more clearly the > > situation. Check_by_ssh allows for the passing of arbitrary > > arguments to > > arbitrary command from the centralized Nagios server to any > > remote machine > > which has sshd running. NRPE allows for executing a specific > > command with > > specific arguments on any remote machine which has nrpe running. > > > > As someone setting up monitoring, when should I use > > check_by_ssh and when > > should I use nrpe? > > > > dave > > > > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net > > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of > > Dave Viner > > Sent: Monday, December 30, 2002 9:07 AM > > To: Tom Welsh; 'Ethan Galstad'; 'nagios-users' > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > I don't think that my enhancement allows an arbitrary command to be > > executed. I think the code that I wrote will only allow one > > of the commands > > already listed in the nrpe.cfg file to be executed. The > > arguments passed > > are arbitrary, but not the command. (The code even checks to > > ensure that the > > command requested, without any arguments, exists before > > executing it to > > prevent malicious usage of arguments.) > > > > dave > > > > > > > > -----Original Message----- > > From: Tom Welsh [mailto:twelsh at square-box.com] > > Sent: Saturday, December 28, 2002 5:02 PM > > To: 'Dave Viner'; 'Ethan Galstad'; 'nagios-users' > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > In my humble opinion an option that allows an arbitary command to be > > executed and which by "default" is switched off is an > accident waiting > > to happen. > > > > It only takes 1 security breach via a plugin to completely > destroy the > > good name Nagios and its associated plugins have. > > > > There is a good truism that states "good news travels fast, > > but bad news > > travels even faster" > > > > I for one would not be too happy having a command available on my > > network, trusted or not that would allow commands to be executed > > remotely pon a box. For one. It's the kind of thing im > always looking > > for when im "playing on my " networks. > > > > Well that's my two cents worth > > > > Cheers > > > > Tom Welsh > > twelsh at square-box.com > > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net > > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Dave > > Viner > > Sent: 28 December 2002 21:46 > > To: Ethan Galstad; nagios-users > > Subject: RE: [Nagios-users] NRPE enhancement > > > > These are excellent arguments for not incorporating the > > enhancement I am > > suggesting. However, I suspect that there are lots of > > installations of > > Nagios and NRPE that run on completely trusted network. (Or > > the risk of > > network intrusion through NRPE is worth the benefit of reduced > > configuration > > management.) > > > > What do you think about incorporating this enhancement but have it > > turned > > off by default, and enabled only at configure time? > > > > dave > > > > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net > > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Ethan > > Galstad > > Sent: Friday, December 27, 2002 7:38 PM > > To: nagios-users > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > There are several reasons why I have not added support for arguments > > to checks in NRPE. Most have been touched on in the past on the > > list, but I'll reiterate them here. The main issue is not > overruning > > the 2K packet that the check_nrpe plugin and NRPE daemon pass back > > and forth - that can be easily avoided... > > > > 1. > > Users connecting to the NRPE are not authenticated. Sure, you can > > restrict connection based on IP address using TCP wrappers, but they > > are still not authenticated. Also, I am not too familiar with IP > > spoofing, but I'm sure its possible for someone to fake the > > originating address of the connection and get the NRPE daemon to > > accept the packet and execute the necessary plugin without too much > > trouble. > > > > 2. > > Some plugins (like check_dhcp) may (have to) be installed suid root. > > Regardless of what user the NRPE daemon is running as, these plugins > > will be executed with higher privs. > > > > 3. > > Plugins can be made to segfault under the right conditions. > Sure, we > > can try and eliminate this possibility, but it will probably always > > exist to some extent since many plugins call system commands to get > > their data. > > > > --- > > > > Most remote exploits rely on buffer overflows/segfaults to get their > > work done, so allowing unauthenticated users to pass arbitrary > > arguments/data to plugins that might be running suid commands is a > > very bad idea indeed. > > > > Stunnel would provide some security, but there is no guarantee that > > everyone would use it. There would undoubtably be many people that > > would put off implementing it until they finished "testing" > NRPE. In > > the worst case, they might never get around to implementing stunnel > > at all. In the likely best case scenario, there is at > least a window > > of opportunity. I just don't want to be responsible for > the possible > > carnage that happens at that point. :-) > > > > Also, incorporating native encryption into NRPE involves reinventing > > the wheel called "check_by_ssh", so I'm really interested in doing > > that. > > > > > > > > On 27 Dec 2002 at 13:46, Carroll, Jim P [Contractor] wrote: > > > > > I'm not a C programmer by profession, so I defer your > query to those > > who > > > have a strong background, both in C code and system/network > > security. > > It > > > does presume that every other link in the chain is bulletproof. > > [Insert > > > ObRef to Bugtraq here.] > > > > > > At any rate, I'm curious to hear why Ethan didn't choose > > that approach > > to > > > begin with. > > > > > > jc > > > > > > > -----Original Message----- > > > > From: Dave Viner [mailto:dviner at yahoo-inc.com] > > > > Sent: Friday, December 27, 2002 12:49 PM > > > > To: Nagios-users at lists.sourceforge.net > > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > > > > This sounds interesting, but I have a question about the > > > > security implications of this code. I'm not a security > > > > expert, so please excuse the somewhat basic question. The > > > > struct packet as defined in common/common.h has an argv > > > > member which is a character array of length 2048. I believe > > > > this means that if the incoming packet has an argv member > > > > whose length is greater than 2048 chars, then the > > > > rc=recvall(sock,(char > > > > *)&receive_packet,&bytes_to_recv,socket_timeout); > > > > should fail, should it not? > > > > > > > > However, I think your suggestions regarding stunnel, and > > > > encryption are good ones, regardless of the inclusion of > > this code. > > > > > > > > thanks > > > > > > > > dave > > > > > > > > > > > > -----Original Message----- > > > > From: Carroll, Jim P [Contractor] > > [mailto:jcarro10 at sprintspectrum.com] > > > > Sent: Friday, December 27, 2002 10:20 AM > > > > To: 'Dave Viner'; Nagios-users at lists.sourceforge.net > > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > > > > I think it's a good idea, but with the following provisions: > > > > > > > > - This should not be enabled by default. > > > > > > > > - The configure script, the Makefile and any/all NRPE docs > > > > should explicitly > > > > state the security risks in forcing the non-default > > (added feature) > > > > behaviour. > > > > > > > > - If the daemon is compiled with this option, anytime the > > > > daemon starts, it > > > > should briefly mention that it has been compiled for this > > > > behaviour, and a > > > > quick remark about the increased risks. (Sent to stderr if > > > > standalone, else > > > > sent to syslog if running under (x)inetd). It should scream > > > > loud and clear > > > > if it's started under root; preferably it would simply not > > > > run as root, full > > > > stop. > > > > > > > > - Perhaps a reference to implementing NRPE with stunnel (and > > > > only permitting > > > > connections from localhost, as defined in nrpe.cfg) would be > > > > desireable. > > > > > > > > I'm not a security guru, but it seems to me that facilitating > > > > this feature > > > > would open oneself up to a buffer overflow attack. If you're > > > > on a trusted > > > > network, it's a non-issue. > > > > > > > > On a related note, I'd be much more comfy with this feature > > > > if there were a > > > > facility to enforce some level of native encryption, such as > > > > what NSCA uses. > > > > If you don't have the keys to the house, you get dropped on > > > > the floor. (I > > > > have a similar wish for NSClient.) > > > > > > > > Food for thought. > > > > > > > > jc > > > > > > > > > -----Original Message----- > > > > > From: Dave Viner [mailto:dviner at yahoo-inc.com] > > > > > Sent: Friday, December 27, 2002 11:48 AM > > > > > To: Nagios-users at lists.sourceforge.net > > > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > > > > > > > In order to clarify the idea that I'm proposing, I've made a > > > > > patch to the nrpe source that implements what I'm describing. > > > > > This patch is made against the nrpe-1.5.tar.gz from > > sourceforge. > > > > > > > > > > Essentially, these changes allow us to specify in the > > > > > nrpe.cfg file lines like this: > > > > > command[check_disk_gen]=/usr/local/libexec/nagios/check_disk > > > > > > > > > > Then when invoking check_nrpe, you can invoke it like this: > > > > > ./check_nrpe 127.0.0.1 -V 2 -c check_disk_gen -a "-w 50000 > > > > > -c 10000 -p /dev/ad0s1e" > > > > > > > > > > And the effect is that /usr/local/libexec/nagios/check_disk > > > > > is invoked with the -w 50000 -c 10000 -p /dev/ad0s1e as the > > > > > argument string. For example: > > > > > > > > > > ~/nagios/nrpe-1.5.new/src>./check_nrpe 127.0.0.1 -V 2 -c > > > > > check_disk_gen -a "-w 50000 -c 10000 -p /dev/ad0s1e" > > > > > DISK OK - [1484108 kB (9%) free on /dev/ad0s1e] > > > > > ~/nagios/nrpe-1.5.new/src> > > > > > > > > > > I think this is really useful and would greatly reduce the > > > > > size of the nrpe.cfg and, more importantly, would reduce the > > > > > number of times you'd need to modify that configuration file. > > > > > Instead the modifications would occur on the centralized > > > > > Nagios server's configuration file. > > > > > > > > > > What does everyone think? Should we add this to the main > > > > > source for NRPE-1.6? > > > > > > > > > > dave > > > > > > > > > > > > > > > -----Original Message----- > > > > > From: nagios-users-admin at lists.sourceforge.net > > > > > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of > > > > > Dave Viner > > > > > Sent: Monday, December 23, 2002 8:51 AM > > > > > To: Naios Users > > > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > > > > > > > Hi Rue, > > > > > Security is a great reason for limiting the commands > > > > > that NRPE is able to execute. But my suggested enhancement > > > > > wouldn't allow NRPE to execute any command that isn't listed > > > > > in the cfg file. That is, the NRPE would still need to find > > > > > the path to the executable in the nrpe.cfg file, then use any > > > > > remaining information as arguments passed to the executable. > > > > > It is true that this is less secure that forcing the entire > > > > > command line (executable and arguments) in the config file. > > > > > But, so long as the executables are well authored and handle > > > > > unexpected arguments well, I think this enhancement would not > > > > > significantly decrease security. Do you think that > > > > > specifying arguments would make NRPE significantly > less secure? > > > > > > > > > > > > > > > Dave > > > > > > > > > > > > > > > -----Original Message----- > > > > > From: nagios-users-admin at lists.sourceforge.net > > > > > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of > > > > > Rue Turner > > > > > Sent: Friday, December 20, 2002 1:33 PM > > > > > To: Naios Users > > > > > Subject: Re: [Nagios-users] NRPE enhancement > > > > > > > > > > > > > > > dave, > > > > > > > > > > I think the reson for this choice of configuration is > > > > security. If the > > > > > nrpe was allowed to run whatever it was asked it would > > be easy to > > > > > compromise your machines. This way although your configs are > > > > > hefty (mine > > > > > have almost a hundred lines in) you can only ask it to run > > > > > commands from > > > > > this library. > > > > > > > > > > rue > > > > > > > > > > > > > > > On Fri, 2002-12-20 at 17:35, Dave Viner wrote: > > > > > > Hi, > > > > > > I'd like to suggest an enhancement to NRPE, and if > > > > > people think this is a > > > > > > good idea, I'll try to make a patch to support my > > > > > suggestion. Currently the > > > > > > nrpe.cfg file specifies all the commands in this fashion: > > > > > > > > > > > command[check_disk1]=/usr/local/nagios/libexec/check_disk 80 > > > > > 95 /dev/hda1 > > > > > > As result of this design is that if you want to check > > > > something like > > > > > > /dev/hda1 and /dev/hdb1, you need two seperate lines in the > > > > > nrpe.cfg file. > > > > > > So, I'd like to propose that we extend NRPE to allow > > > > > for the arguments to a > > > > > > command to be specified by the central Nagios server > > > > > instead of in the > > > > > > nrpe.cfg. The idea is that the nrpe.cfg would have one > > > > > command line which > > > > > > maps a key, 'check_disk', to a local executable, > > > > > > '/usr/local/nagios/libexec/check_disk'. The rest would be > > > > > specified from > > > > > > the central Nagios server in some manner. > > > > > > I think this would great simplify the nrpe.cfg files, > > > > > and reduce a lot of > > > > > > redundant command definitions that differ only in the > > > > arguments they > > > > > > require. Also, it would mean that you'd need to update > > > > > your nrpe.cfg very > > > > > > rarely. In fact, you'd only need to update it when you add > > > > > a new plugin. > > > > > > I don't have a concrete suggestion for implementing > > > > > this yet, because I > > > > > > want to see if the community is interested in this idea > > > > > first. Has this > > > > > > idea been suggested previously? Is anyone currently > > > > > interested in the idea > > > > > > or would I be the only consumer of such a service? > > > > > > > > > > > > thanks > > > > > > dave > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > > This SF.NET email is sponsored by: The Best Geek > > Holiday Gifts! > > > > > > Time is running out! Thinkgeek.com has the coolest > gifts for > > > > > > your favorite geek. Let your fingers do the > typing. Visit > > Now. > > > > > > T H I N K G E E K . C O M > http://www.thinkgeek.com/sf/ > > > > > > _______________________________________________ > > > > > > Nagios-users mailing list > > > > > > Nagios-users at lists.sourceforge.net > > > > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > > > > > > > r u e t u r n e r > > > > > ?? t ?? h ?? i ?? n ?? l ?? a ?? y ?? e ?? r ?? > > > > > > > > > > -- index, n.: Alphabetical list of words of no possible > > > > interest where > > > > > an alphabetical list of subjects with references ought to be. > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > This SF.NET email is sponsored by: The Best Geek > Holiday Gifts! > > > > > Time is running out! Thinkgeek.com has the coolest gifts for > > > > > your favorite geek. Let your fingers do the typing. > > Visit Now. > > > > > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > > > > > _______________________________________________ > > > > > Nagios-users mailing list > > > > > Nagios-users at lists.sourceforge.net > > > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > This sf.net email is sponsored by:ThinkGeek > > > > > Welcome to geek heaven. > > > > > http://thinkgeek.com/sf > > > > > _______________________________________________ > > > > > Nagios-users mailing list > > > > > Nagios-users at lists.sourceforge.net > > > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > This sf.net email is sponsored by:ThinkGeek > > > > Welcome to geek heaven. > > > > http://thinkgeek.com/sf > > > > _______________________________________________ > > > > Nagios-users mailing list > > > > Nagios-users at lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > > > > > ------------------------------------------------------- > > > This sf.net email is sponsored by:ThinkGeek > > > Welcome to geek heaven. > > > http://thinkgeek.com/sf > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > > > Ethan Galstad, > > Nagios Developer > > --- > > Email: nagios at nagios.org > > Website: http://www.nagios.org > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From rvelez at sunguruz.com Mon Dec 30 23:58:49 2002 From: rvelez at sunguruz.com (rvelez) Date: Mon, 30 Dec 2002 17:58:49 -0500 Subject: Nagios on Solaris 8 Message-ID: <000b01c2b057$040bca00$0300a8c0@sunguruz.com> Hey Guys, I was wondering if anyone was successful in compiling Nagios under Solaris 8 sparc. I seem to be getting a weird error message when running make all. Has anyone ever encountered this? : cc -g -O2 -DHAVE_CONFIG_H -DNSCGI statusmap.c getcgi.o cgiutils.o auth.o popen.o ../common/objects.c ../xdata/xodtemplate.c ../common/statusdata.c ../xdata/xsddefault.c -lgd -lz -lm -lpng edata.o ../xdata/xedtemplate.c -o statusmap.cgi Undefined first referenced symbol in file jpeg_simple_progression /usr/local/lib/libgd.a(gd_jpeg.o) jpeg_set_quality /usr/local/lib/libgd.a(gd_jpeg.o) jpeg_write_scanlines /usr/local/lib/libgd.a(gd_jpeg.o) jpeg_destroy_decompress /usr/local/lib/libgd.a(gd_jpeg.o) jpeg_destroy /usr/local/lib/libgd.a(gd_jpeg.o) jpeg_start_compress /usr/local/lib/libgd.a(gd_jpeg.o) jpeg_write_marker /usr/local/lib/libgd.a(gd_jpeg.o) jpeg_read_scanlines /usr/local/lib/libgd.a(gd_jpeg.o) jpeg_finish_decompress /usr/local/lib/libgd.a(gd_jpeg.o) jpeg_start_decompress /usr/local/lib/libgd.a(gd_jpeg.o) jpeg_destroy_compress /usr/local/lib/libgd.a(gd_jpeg.o) jpeg_resync_to_restart /usr/local/lib/libgd.a(gd_jpeg.o) jpeg_std_error /usr/local/lib/libgd.a(gd_jpeg.o) jpeg_CreateDecompress /usr/local/lib/libgd.a(gd_jpeg.o) jpeg_set_defaults /usr/local/lib/libgd.a(gd_jpeg.o) jpeg_CreateCompress /usr/local/lib/libgd.a(gd_jpeg.o) jpeg_read_header /usr/local/lib/libgd.a(gd_jpeg.o) jpeg_finish_compress /usr/local/lib/libgd.a(gd_jpeg.o) ld: fatal: Symbol referencing errors. No output written to statusmap.cgi collect2: ld returned 1 exit status make[1]: *** [statusmap.cgi] Error 1 make[1]: Leaving directory `/opt/local/src/nagios-1.0/cgi' make: *** [all] Error 2 Thanks for your help -Radames -------------- next part -------------- An HTML attachment was scrubbed... URL: From atonns at mail.ivillage.com Tue Dec 31 02:15:54 2002 From: atonns at mail.ivillage.com (atonns at mail.ivillage.com) Date: Mon, 30 Dec 2002 20:15:54 -0500 Subject: ePN and memory leaks Message-ID: I'm using two instances of embedded perl nagios (ie: --enable-embedded-perl --with-perlcache) v1.0b6 on Solaris 7 to monitor the production and development networks. They both use MySQL for all data (ie: --with-mysql-xdata) The production network has 34 hosts and 429 services. The development network has 28 hosts and 211 services. On both networks I've seen the nagios process creep from using 6MB of RAM to over 64MB of RAM over about a week's time. The custom perl scripts that perform service checks using Net::SNMP and SNMPv3 work well - they pass 'use strict' without problems and run sucessfully from mini_epn. One minor problem with mini_epn is that because my code properly calls alarm($TIMEOUT), mini_epn never hangs around very long. Are there any suggestions for finding memory leaks in ePN? (I'm going to be looking at Apache::Leak and Devel::Leak, but there might be other debug options in nagios I'm not aware of). Thanks in advance... -- "Computer science is as much about computers as astronomy is about telescopes" -- Edsger Dijkstra --------------------------------------------------------- Anthony Tonns, UNIX Administrator - atonns at mail.ivillage.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Stanley.Hopcroft at IPAustralia.Gov.AU Tue Dec 31 04:30:52 2002 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Tue, 31 Dec 2002 14:30:52 +1100 Subject: ePN and memory leaks In-Reply-To: ; from atonns@mail.ivillage.com on Mon, Dec 30, 2002 at 08:15:54PM -0500 References: Message-ID: <20021231143048.D217@IPAustralia.Gov.AU> Dear Sir, I am writing to thank you for your letter and say, On Mon, Dec 30, 2002 at 08:15:54PM -0500, atonns at mail.ivillage.com wrote: > I'm using two instances of embedded perl nagios (ie: --enable-embedded-perl > --with-perlcache) v1.0b6 on Solaris 7 to monitor the production and > development networks. They both use MySQL for all data (ie: > --with-mysql-xdata) > > The production network has 34 hosts and 429 services. > The development network has 28 hosts and 211 services. > > On both networks I've seen the nagios process creep from using 6MB of RAM to > over 64MB of RAM over about a week's time. that the mmemory leaks/increase goes with the territory I am afraid. "You should also be conscious that embedding Perl into an application will increase its size and memory usage, possibly introducing memory leaks or instabilities if you aren't careful .." Couzins and Jennings, 'Extending and Embedding Perl'. That said, I have been using ePN sans DB support for over a year monitoring ~ 190 hosts and ~ 350 services without too many hassles. My memory usage is about the same as yours, 1514 nagios 10 0 57056K 29928K nanslp 152:44 0.00% 0.00% nagios However, I do like to restart Nagios each month after log rotation. I am starting to take an unhealthy interest in XS so it's possible that books like those above will shed some new light on the Perl embedding in Nagios. > The custom perl scripts that > perform service checks using Net::SNMP and SNMPv3 work well Neat. Have you any SNMPv3 agents embedded in Network hardware ? > - they pass 'use > strict' without problems and run sucessfully from mini_epn. One minor > problem with mini_epn is that because my code properly calls > alarm($TIMEOUT), mini_epn never hangs around very long. > > Are there any suggestions for finding memory leaks in ePN? (I'm going to be > looking at Apache::Leak and Devel::Leak, but there might be other debug > options in nagios I'm not aware of). > Not that I am aware of. It sounds like you are on the right track though. Apart from Stas Beckmans stuff on Perl.COM (mod_perl tuning that is potentially helpful). You could also run any suggestions past the ePN author (noted in the source). > Thanks in advance... Yours sincerely. -- ------------------------------------------------------------------------ Stanley Hopcroft ------------------------------------------------------------------------ '...No man is an island, entire of itself; every man is a piece of the continent, a part of the main. If a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friend's or of thine own were. Any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee...' from Meditation 17, J Donne. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From hrishys at yahoo.co.uk Tue Dec 31 07:21:05 2002 From: hrishys at yahoo.co.uk (=?iso-8859-1?q?hrishy?=) Date: Tue, 31 Dec 2002 06:21:05 +0000 (GMT) Subject: Nagios In-Reply-To: <000b01c2b057$040bca00$0300a8c0@sunguruz.com> References: <000b01c2b057$040bca00$0300a8c0@sunguruz.com> Message-ID: <20021231062105.67247.qmail@web12602.mail.yahoo.com> Hi i have enclosed the webpage where the pictures are not displayed...for nagios..any idea why this is happening.. regards Hrishy __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -------------- next part -------------- A non-text attachment was scrubbed... Name: Nagios.zip Type: application/x-zip-compressed Size: 47365 bytes Desc: Nagios.zip URL: From hrishys at yahoo.co.uk Tue Dec 31 07:24:13 2002 From: hrishys at yahoo.co.uk (=?iso-8859-1?q?hrishy?=) Date: Tue, 31 Dec 2002 06:24:13 +0000 (GMT) Subject: Nagios In-Reply-To: <000b01c2b057$040bca00$0300a8c0@sunguruz.com> References: <000b01c2b057$040bca00$0300a8c0@sunguruz.com> Message-ID: <20021231062413.52947.qmail@web12603.mail.yahoo.com> Hi i have enclosed the webpage where the pictures are not displayed...for nagios..any idea why this is happening.. regards Hrishy __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -------------- next part -------------- A non-text attachment was scrubbed... Name: Nagios.zip Type: application/x-zip-compressed Size: 47365 bytes Desc: Nagios.zip URL: From hrishys at yahoo.co.uk Tue Dec 31 07:29:01 2002 From: hrishys at yahoo.co.uk (=?iso-8859-1?q?hrishy?=) Date: Tue, 31 Dec 2002 06:29:01 +0000 (GMT) Subject: uanble to see pictures and logos Message-ID: <20021231062901.17801.qmail@web12607.mail.yahoo.com> Hi i have enclosed the webpage where the pictures are not displayed...for nagios..any idea why this is happening.. regards Hrishy __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -------------- next part -------------- A non-text attachment was scrubbed... Name: Nagios.zip Type: application/x-zip-compressed Size: 47365 bytes Desc: Nagios.zip URL: From rvelez at sunguruz.com Tue Dec 31 07:40:26 2002 From: rvelez at sunguruz.com (rvelez) Date: Tue, 31 Dec 2002 01:40:26 -0500 Subject: Nagios on Solaris Message-ID: <000201c2b097$8116caa0$0300a8c0@sunguruz.com> So still no luck, I am running Solaris 8 on an Ultra 5 running gcc 2.95.3 and gnu make 3.79. Still getting: make all cd ./base && make make[1]: Entering directory `/opt/local/src/nagios-1.0/base' make[1]: `nagios' is up to date. make[1]: Leaving directory `/opt/local/src/nagios-1.0/base' cd ./cgi && make make[1]: Entering directory `/opt/local/src/nagios-1.0/cgi' gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI statusmap.c getcgi.o cgiutils.o auth.o popen.o ../common/objects.c ../xdata/xodtemplate.c ../common/statusdata.c ../xdata/xsddefault.c -lgd -lz -lm -lpng edata.o ../xdata/xedtemplate.c -o statusmap.cgi Undefined first referenced symbol in file jpeg_simple_progression /usr/local/lib/libgd.a(gd_jpeg.o) jpeg_set_quality /usr/local/lib/libgd.a(gd_jpeg.o) jpeg_write_scanlines /usr/local/lib/libgd.a(gd_jpeg.o) jpeg_destroy_decompress /usr/local/lib/libgd.a(gd_jpeg.o) jpeg_destroy /usr/local/lib/libgd.a(gd_jpeg.o) jpeg_start_compress /usr/local/lib/libgd.a(gd_jpeg.o) jpeg_write_marker /usr/local/lib/libgd.a(gd_jpeg.o) jpeg_read_scanlines /usr/local/lib/libgd.a(gd_jpeg.o) jpeg_finish_decompress /usr/local/lib/libgd.a(gd_jpeg.o) jpeg_start_decompress /usr/local/lib/libgd.a(gd_jpeg.o) jpeg_destroy_compress /usr/local/lib/libgd.a(gd_jpeg.o) jpeg_resync_to_restart /usr/local/lib/libgd.a(gd_jpeg.o) jpeg_std_error /usr/local/lib/libgd.a(gd_jpeg.o) jpeg_CreateDecompress /usr/local/lib/libgd.a(gd_jpeg.o) jpeg_set_defaults /usr/local/lib/libgd.a(gd_jpeg.o) jpeg_CreateCompress /usr/local/lib/libgd.a(gd_jpeg.o) jpeg_read_header /usr/local/lib/libgd.a(gd_jpeg.o) jpeg_finish_compress /usr/local/lib/libgd.a(gd_jpeg.o) ld: fatal: Symbol referencing errors. No output written to statusmap.cgi collect2: ld returned 1 exit status make[1]: *** [statusmap.cgi] Error 1 make[1]: Leaving directory `/opt/local/src/nagios-1.0/cgi' make: *** [all] Error 2 Your help is greatly appreciated. Thanks guys -------------- next part -------------- An HTML attachment was scrubbed... URL: From knitterb at blandsite.org Tue Dec 31 08:05:13 2002 From: knitterb at blandsite.org (Brandon Knitter) Date: Mon, 30 Dec 2002 23:05:13 -0800 Subject: xml status.cgi output In-Reply-To: <3DFF8D94.3040201@quadrix.com> References: <1040122036.15711.57.camel@fr3nd> <3DFF8D94.3040201@quadrix.com> Message-ID: <1041318313.3e1141a924248@webmail.blandsite.org> Please submit it to the project, and to the mailing list. If it takes a while to be intergrated, I'd be very interested in making use of this for a command line interface. Thanks, -- -bk Quoting Russell Scibetti : > If you can, don't parse the status.cgi, parse status.log on the box > running Nagios. In fact, I already have a fairly thorough perl plugin > called check_state which parses the status.log for Hard problems. You > can give it various arguments, such as number of > critical/warning/unknown found in the log to result in a problem state, > ignoring ack'd problems and things in downtime, regex matching based on > service and/or host name, etc. > > If people are interested in this, I can submit it to the nagiosplug > project. I had planned on submitting it soon, but I was going to do > some more cleanup of the perl code first. > > -Russell > > Carles Amig? wrote: > > >Hello, > > > >Could Nagios output all status info in a xml output? > > > >I would like to make a program that parses all the info remotely, and > >parsing html is very difficult. > > > >Regards > > > > -- > Russell Scibetti > Quadrix Solutions, Inc. > http://www.quadrix.com > (732) 235-2335, ext. 7038 > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From hrishys at yahoo.co.uk Tue Dec 31 09:15:08 2002 From: hrishys at yahoo.co.uk (=?iso-8859-1?q?hrishy?=) Date: Tue, 31 Dec 2002 08:15:08 +0000 (GMT) Subject: Nagios on Solaris In-Reply-To: <000201c2b097$8116caa0$0300a8c0@sunguruz.com> References: <000201c2b097$8116caa0$0300a8c0@sunguruz.com> Message-ID: <20021231081508.60479.qmail@web12603.mail.yahoo.com> Hi You need to have the libpng and libjpeg libraries..you can download them from... http://www.ibiblio.org/pub/packages/solaris/sparc/ regards Hrishy --- rvelez wrote: > So still no luck, I am running Solaris 8 on an Ultra > 5 running gcc > 2.95.3 and gnu make 3.79. Still getting: > > make all > cd ./base && make > make[1]: Entering directory > `/opt/local/src/nagios-1.0/base' > make[1]: `nagios' is up to date. > make[1]: Leaving directory > `/opt/local/src/nagios-1.0/base' > cd ./cgi && make > make[1]: Entering directory > `/opt/local/src/nagios-1.0/cgi' > gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI statusmap.c > getcgi.o cgiutils.o > auth.o popen.o ../common/objects.c > ../xdata/xodtemplate.c > ../common/statusdata.c ../xdata/xsddefault.c -lgd > -lz -lm -lpng edata.o > ../xdata/xedtemplate.c -o statusmap.cgi > Undefined first referenced > symbol in file > jpeg_simple_progression > /usr/local/lib/libgd.a(gd_jpeg.o) > jpeg_set_quality > /usr/local/lib/libgd.a(gd_jpeg.o) > jpeg_write_scanlines > /usr/local/lib/libgd.a(gd_jpeg.o) > jpeg_destroy_decompress > /usr/local/lib/libgd.a(gd_jpeg.o) > jpeg_destroy > /usr/local/lib/libgd.a(gd_jpeg.o) > jpeg_start_compress > /usr/local/lib/libgd.a(gd_jpeg.o) > jpeg_write_marker > /usr/local/lib/libgd.a(gd_jpeg.o) > jpeg_read_scanlines > /usr/local/lib/libgd.a(gd_jpeg.o) > jpeg_finish_decompress > /usr/local/lib/libgd.a(gd_jpeg.o) > jpeg_start_decompress > /usr/local/lib/libgd.a(gd_jpeg.o) > jpeg_destroy_compress > /usr/local/lib/libgd.a(gd_jpeg.o) > jpeg_resync_to_restart > /usr/local/lib/libgd.a(gd_jpeg.o) > jpeg_std_error > /usr/local/lib/libgd.a(gd_jpeg.o) > jpeg_CreateDecompress > /usr/local/lib/libgd.a(gd_jpeg.o) > jpeg_set_defaults > /usr/local/lib/libgd.a(gd_jpeg.o) > jpeg_CreateCompress > /usr/local/lib/libgd.a(gd_jpeg.o) > jpeg_read_header > /usr/local/lib/libgd.a(gd_jpeg.o) > jpeg_finish_compress > /usr/local/lib/libgd.a(gd_jpeg.o) > ld: fatal: Symbol referencing errors. No output > written to statusmap.cgi > collect2: ld returned 1 exit status > make[1]: *** [statusmap.cgi] Error 1 > make[1]: Leaving directory > `/opt/local/src/nagios-1.0/cgi' > make: *** [all] Error 2 > > > Your help is greatly appreciated. Thanks guys > > __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From rvelez at sunguruz.com Tue Dec 31 09:38:17 2002 From: rvelez at sunguruz.com (rvelez) Date: Tue, 31 Dec 2002 03:38:17 -0500 Subject: Nagios on Solaris In-Reply-To: <20021231081508.60479.qmail@web12603.mail.yahoo.com> References: <20021231081508.60479.qmail@web12603.mail.yahoo.com> Message-ID: <000001c2b0a7$f7c476b0$0300a8c0@sunguruz.com> I have libpng-1.2.4 and jpeg-6b installed already. Could it be anything else? Is it that it can not find jpeg? -----Original Message----- From: hrishy [mailto:hrishys at yahoo.co.uk] Sent: Tuesday, December 31, 2002 3:15 AM To: rvelez; nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Nagios on Solaris Hi You need to have the libpng and libjpeg libraries..you can download them from... http://www.ibiblio.org/pub/packages/solaris/sparc/ regards Hrishy --- rvelez wrote: > So still no luck, I am running Solaris 8 on an Ultra > 5 running gcc > 2.95.3 and gnu make 3.79. Still getting: > > make all > cd ./base && make > make[1]: Entering directory > `/opt/local/src/nagios-1.0/base' > make[1]: `nagios' is up to date. > make[1]: Leaving directory > `/opt/local/src/nagios-1.0/base' > cd ./cgi && make > make[1]: Entering directory > `/opt/local/src/nagios-1.0/cgi' > gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI statusmap.c > getcgi.o cgiutils.o > auth.o popen.o ../common/objects.c > ../xdata/xodtemplate.c > ../common/statusdata.c ../xdata/xsddefault.c -lgd > -lz -lm -lpng edata.o > ../xdata/xedtemplate.c -o statusmap.cgi > Undefined first referenced > symbol in file > jpeg_simple_progression > /usr/local/lib/libgd.a(gd_jpeg.o) > jpeg_set_quality > /usr/local/lib/libgd.a(gd_jpeg.o) > jpeg_write_scanlines > /usr/local/lib/libgd.a(gd_jpeg.o) > jpeg_destroy_decompress > /usr/local/lib/libgd.a(gd_jpeg.o) > jpeg_destroy > /usr/local/lib/libgd.a(gd_jpeg.o) > jpeg_start_compress > /usr/local/lib/libgd.a(gd_jpeg.o) > jpeg_write_marker > /usr/local/lib/libgd.a(gd_jpeg.o) > jpeg_read_scanlines > /usr/local/lib/libgd.a(gd_jpeg.o) > jpeg_finish_decompress > /usr/local/lib/libgd.a(gd_jpeg.o) > jpeg_start_decompress > /usr/local/lib/libgd.a(gd_jpeg.o) > jpeg_destroy_compress > /usr/local/lib/libgd.a(gd_jpeg.o) > jpeg_resync_to_restart > /usr/local/lib/libgd.a(gd_jpeg.o) > jpeg_std_error > /usr/local/lib/libgd.a(gd_jpeg.o) > jpeg_CreateDecompress > /usr/local/lib/libgd.a(gd_jpeg.o) > jpeg_set_defaults > /usr/local/lib/libgd.a(gd_jpeg.o) > jpeg_CreateCompress > /usr/local/lib/libgd.a(gd_jpeg.o) > jpeg_read_header > /usr/local/lib/libgd.a(gd_jpeg.o) > jpeg_finish_compress > /usr/local/lib/libgd.a(gd_jpeg.o) > ld: fatal: Symbol referencing errors. No output > written to statusmap.cgi > collect2: ld returned 1 exit status > make[1]: *** [statusmap.cgi] Error 1 > make[1]: Leaving directory > `/opt/local/src/nagios-1.0/cgi' > make: *** [all] Error 2 > > > Your help is greatly appreciated. Thanks guys > > __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From hrishys at yahoo.co.uk Tue Dec 31 09:50:10 2002 From: hrishys at yahoo.co.uk (=?iso-8859-1?q?hrishy?=) Date: Tue, 31 Dec 2002 08:50:10 +0000 (GMT) Subject: Nagios on Solaris In-Reply-To: <000001c2b0a7$f7c476b0$0300a8c0@sunguruz.com> References: <000001c2b0a7$f7c476b0$0300a8c0@sunguruz.com> Message-ID: <20021231085010.71116.qmail@web12604.mail.yahoo.com> Hi There is a problem with your LD_LIBRARY_PATH it does not know where you have installed JPEG libraries..you need to append the environment varibles LD_LIBRARY_PATH with the jpeg libarary path.. regards Hrishy --- rvelez wrote: > I have libpng-1.2.4 and jpeg-6b installed already. > Could it be anything > else? Is it that it can not find jpeg? > > -----Original Message----- > From: hrishy [mailto:hrishys at yahoo.co.uk] > Sent: Tuesday, December 31, 2002 3:15 AM > To: rvelez; nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Nagios on Solaris > > Hi > > You need to have the libpng and libjpeg > libraries..you > can download them from... > > http://www.ibiblio.org/pub/packages/solaris/sparc/ > > regards > Hrishy > > --- rvelez wrote: > So still > no > luck, I am running Solaris 8 on an Ultra > > 5 running gcc > > 2.95.3 and gnu make 3.79. Still getting: > > > > make all > > cd ./base && make > > make[1]: Entering directory > > `/opt/local/src/nagios-1.0/base' > > make[1]: `nagios' is up to date. > > make[1]: Leaving directory > > `/opt/local/src/nagios-1.0/base' > > cd ./cgi && make > > make[1]: Entering directory > > `/opt/local/src/nagios-1.0/cgi' > > gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI statusmap.c > > getcgi.o cgiutils.o > > auth.o popen.o ../common/objects.c > > ../xdata/xodtemplate.c > > ../common/statusdata.c ../xdata/xsddefault.c -lgd > > -lz -lm -lpng edata.o > > ../xdata/xedtemplate.c -o statusmap.cgi > > Undefined first referenced > > symbol in file > > jpeg_simple_progression > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_set_quality > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_write_scanlines > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_destroy_decompress > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_destroy > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_start_compress > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_write_marker > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_read_scanlines > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_finish_decompress > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_start_decompress > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_destroy_compress > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_resync_to_restart > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_std_error > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_CreateDecompress > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_set_defaults > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_CreateCompress > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_read_header > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_finish_compress > > /usr/local/lib/libgd.a(gd_jpeg.o) > > ld: fatal: Symbol referencing errors. No output > > written to statusmap.cgi > > collect2: ld returned 1 exit status > > make[1]: *** [statusmap.cgi] Error 1 > > make[1]: Leaving directory > > `/opt/local/src/nagios-1.0/cgi' > > make: *** [all] Error 2 > > > > > > Your help is greatly appreciated. Thanks guys > > > > > > __________________________________________________ > Do You Yahoo!? > Everything you'll ever need on one web page > from News and Sport to Email and Music Charts > http://uk.my.yahoo.com > __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From maartenh at phreaker.net Tue Dec 31 09:56:00 2002 From: maartenh at phreaker.net (Maarten) Date: Tue, 31 Dec 2002 09:56:00 +0100 Subject: Nagios on Solaris References: <000201c2b097$8116caa0$0300a8c0@sunguruz.com> Message-ID: <003201c2b0aa$714f5a70$195019ac@shadowplay> You need both the common and the development libraries of: gd libpng zlib jpeg-6b Of course, they need to be available in a directory where nagios can find them. You can use the following configure options to point nagios to the right directories: --libdir=DIR object code libraries in DIR [EPREFIX/lib] --includedir=DIR C header files in DIR [PREFIX/include] maarten -------------- next part -------------- An HTML attachment was scrubbed... URL: From ambrose at illuminatedtechnologies.com Tue Dec 31 10:16:37 2002 From: ambrose at illuminatedtechnologies.com (Ambrose) Date: Tue, 31 Dec 2002 01:16:37 -0800 (PST) Subject: Nagios on Solaris In-Reply-To: <000001c2b0a7$f7c476b0$0300a8c0@sunguruz.com> References: <000001c2b0a7$f7c476b0$0300a8c0@sunguruz.com> Message-ID: Did you check to make sure the libraries were installed correctly? - Ambrose On Tue, 31 Dec 2002, rvelez wrote: > I have libpng-1.2.4 and jpeg-6b installed already. Could it be anything > else? Is it that it can not find jpeg? > > -----Original Message----- > From: hrishy [mailto:hrishys at yahoo.co.uk] > Sent: Tuesday, December 31, 2002 3:15 AM > To: rvelez; nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Nagios on Solaris > > Hi > > You need to have the libpng and libjpeg libraries..you > can download them from... > > http://www.ibiblio.org/pub/packages/solaris/sparc/ > > regards > Hrishy > > --- rvelez wrote: > So still no > luck, I am running Solaris 8 on an Ultra > > 5 running gcc > > 2.95.3 and gnu make 3.79. Still getting: > > > > make all > > cd ./base && make > > make[1]: Entering directory > > `/opt/local/src/nagios-1.0/base' > > make[1]: `nagios' is up to date. > > make[1]: Leaving directory > > `/opt/local/src/nagios-1.0/base' > > cd ./cgi && make > > make[1]: Entering directory > > `/opt/local/src/nagios-1.0/cgi' > > gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI statusmap.c > > getcgi.o cgiutils.o > > auth.o popen.o ../common/objects.c > > ../xdata/xodtemplate.c > > ../common/statusdata.c ../xdata/xsddefault.c -lgd > > -lz -lm -lpng edata.o > > ../xdata/xedtemplate.c -o statusmap.cgi > > Undefined first referenced > > symbol in file > > jpeg_simple_progression > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_set_quality > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_write_scanlines > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_destroy_decompress > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_destroy > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_start_compress > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_write_marker > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_read_scanlines > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_finish_decompress > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_start_decompress > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_destroy_compress > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_resync_to_restart > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_std_error > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_CreateDecompress > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_set_defaults > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_CreateCompress > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_read_header > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_finish_compress > > /usr/local/lib/libgd.a(gd_jpeg.o) > > ld: fatal: Symbol referencing errors. No output > > written to statusmap.cgi > > collect2: ld returned 1 exit status > > make[1]: *** [statusmap.cgi] Error 1 > > make[1]: Leaving directory > > `/opt/local/src/nagios-1.0/cgi' > > make: *** [all] Error 2 > > > > > > Your help is greatly appreciated. Thanks guys > > > > > > __________________________________________________ > Do You Yahoo!? > Everything you'll ever need on one web page > from News and Sport to Email and Music Charts > http://uk.my.yahoo.com > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jchum at aismedia.com Tue Dec 31 14:38:25 2002 From: jchum at aismedia.com (Jonathan Chum) Date: Tue, 31 Dec 2002 08:38:25 -0500 Subject: PHP Front End For Nagios? Message-ID: <009a01c2b0d1$e5875420$cd1b9642@atlp.aismedia.com> I've just started using Nagios after one of the admins just before he left installed in our network to monitor all of our servers. My boss approached me yesterday evening wondering whether it's possible to extract some of the data for our clients to see if there are any outages or issues. I don't see it being a problem though the layout of and presentation of Nagios is constricted in the CGI coding and the stylesheets can only make so much of a difference. So I'm considering of recoding Nagios's front end with a template back end for flexibility, but I really don't want to be digging too much into a hole then realizing that certain things cannot be done in PHP which was why it was written in C from the start. Has anyone done anything using PHP and Nagios? There are a few things that would probably PHP was not really suited best for such as the status map feature, but if the data is stored somewhere parseable or better yet, in a database, there could be some really neat things we could do. . . What's the main role of the CGI code in Nagios? Regards, Jonathan Chum Systems Developer ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ A I S M e d i a , I n c . "We Build eBusinesses" 115 Perimeter Center Terrace Suite 540 Atlanta, GA 30346 Tel: 800.784.0919, Ext 502 / Fax: 678.382.2471 http://www.aismedia.com / jchum at aismedia.com ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.434 / Virus Database: 243 - Release Date: 12/25/02 ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From emann at questinc.org Tue Dec 31 15:35:48 2002 From: emann at questinc.org (Evan Mann) Date: Tue, 31 Dec 2002 09:35:48 -0500 Subject: qpage problem, can anyone help Message-ID: Dec 31 09:35:08 linux qpage[5080]: processing the page queue Dec 31 09:35:08 linux qpage[5292]: cannot open /dev/ttyS0: Permission denied for some reason qpage can';t access my modem. The modem works fine as I can dialout using wvdial -----Original Message----- From: Jon Lyons [mailto:jlyons30 at yahoo.com] Sent: Monday, December 30, 2002 4:17 PM To: Evan Mann; 'nagios-users at lists.sourceforge.net' Subject: RE: [Nagios-users] modem based alerts Ummm....the easy way? Spend the $100 bucks and buy a real modem....Something thats not windows specific.... Evan Mann wrote: Now that I know what I need to do, I'm in the proces sof trying to get a Lucent LT Modem to work. I've compiled my own LTModem drivers and insmod lt_modem and when I insmod lt_serial I get: Using /lib/modules/2.4.19/ltmodem/lt_serial.o /lib/modules/2.4.19/ltmodem/lt_serial.o: init_module: No such device Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters So it wants me to specify IO and IRQ in the options for the lt_serial or lt_modem module? Not sure where to do from here. Can anyone help? -----Original Message----- From: Jon Lyons [mailto:jlyons30 at yahoo.com] Sent: Monday, December 30, 2002 11:27 AM To: Evan Mann; 'nagios-users at lists.sourceforge.net' Subject: Re: [Nagios-users] modem based alerts Yes, I use qpage, nextel use the TAPS protocol.... Evan Mann wrote: I currently have 2 levels of alerts setup, the initials emails and an all host group escalation which is an email alert to a nextel phone. I'd like to add a 3rd level which is a modem based alert to a Nextel phone. Does anyone have a modem based alert to Nextel's that they are dealing with? I'd like some input how how they deal with this. I am unsure if Nextel has an # specifically for automated paging, so if I assume they don't, I can have it simply call and just leave dead silence on the phone and I just check the caller id and know that particular # it's calling from is only for my alerts. This seems very lacking however. Any advice would be appreciated. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users _____ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now _____ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From emann at questinc.org Tue Dec 31 15:40:52 2002 From: emann at questinc.org (Evan Mann) Date: Tue, 31 Dec 2002 09:40:52 -0500 Subject: qpage problem, can anyone help Message-ID: Woops, stupid me, I didnt specify the DAEMON user in config.input, all fixed. -----Original Message----- From: Evan Mann [mailto:emann at questinc.org] Sent: Tuesday, December 31, 2002 9:36 AM To: 'nagios-users at lists.sourceforge.net' Subject: [Nagios-users] qpage problem, can anyone help Dec 31 09:35:08 linux qpage[5080]: processing the page queue Dec 31 09:35:08 linux qpage[5292]: cannot open /dev/ttyS0: Permission denied for some reason qpage can';t access my modem. The modem works fine as I can dialout using wvdial -----Original Message----- From: Jon Lyons [mailto:jlyons30 at yahoo.com] Sent: Monday, December 30, 2002 4:17 PM To: Evan Mann; 'nagios-users at lists.sourceforge.net' Subject: RE: [Nagios-users] modem based alerts Ummm....the easy way? Spend the $100 bucks and buy a real modem....Something thats not windows specific.... Evan Mann wrote: Now that I know what I need to do, I'm in the proces sof trying to get a Lucent LT Modem to work. I've compiled my own LTModem drivers and insmod lt_modem and when I insmod lt_serial I get: Using /lib/modules/2.4.19/ltmodem/lt_serial.o /lib/modules/2.4.19/ltmodem/lt_serial.o: init_module: No such device Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters So it wants me to specify IO and IRQ in the options for the lt_serial or lt_modem module? Not sure where to do from here. Can anyone help? -----Original Message----- From: Jon Lyons [mailto:jlyons30 at yahoo.com] Sent: Monday, December 30, 2002 11:27 AM To: Evan Mann; 'nagios-users at lists.sourceforge.net' Subject: Re: [Nagios-users] modem based alerts Yes, I use qpage, nextel use the TAPS protocol.... Evan Mann wrote: I currently have 2 levels of alerts setup, the initials emails and an all host group escalation which is an email alert to a nextel phone. I'd like to add a 3rd level which is a modem based alert to a Nextel phone. Does anyone have a modem based alert to Nextel's that they are dealing with? I'd like some input how how they deal with this. I am unsure if Nextel has an # specifically for automated paging, so if I assume they don't, I can have it simply call and just leave dead silence on the phone and I just check the caller id and know that particular # it's calling from is only for my alerts. This seems very lacking however. Any advice would be appreciated. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users _____ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now _____ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From emann at questinc.org Tue Dec 31 16:21:18 2002 From: emann at questinc.org (Evan Mann) Date: Tue, 31 Dec 2002 10:21:18 -0500 Subject: hostgroups being done away with, can someone explain? Message-ID: The upcoming page indicates hostgroups being done away with because they can be impleted using the hostgroup_name indentifier. Current documentation indicated hostgroup_name can only be used with a hostgroup escalation ,not a regular host. Is this being changed or is the documentation wrong? I currently have a hostgroup escalation for a hostgroup of "all" which uses all of my hosts (wildcard * in hostgroup.cfg). If this is changing in the new release, I'd like to redo my escalations now. -------------- next part -------------- An HTML attachment was scrubbed... URL: From atonns at mail.ivillage.com Tue Dec 31 17:13:49 2002 From: atonns at mail.ivillage.com (atonns at mail.ivillage.com) Date: Tue, 31 Dec 2002 11:13:49 -0500 Subject: ePN and memory leaks Message-ID: > > The custom perl scripts that > > perform service checks using Net::SNMP and SNMPv3 work well > > Neat. > > > Have you any SNMPv3 agents embedded in Network hardware ? > I believe Cisco just started including SNMPv3 in thier CatalystOS, and maybe IOS. I'm using net-snmp on mostly Solaris 7, with a few 2.6 holdovers. However, I hope it gets adopted sooner, and by more vendors. It was blessed by the IETF in early 2002, and not much progress has been made as of yet. I believe that check_snmp will be supporting SNMPv3 shortly, but my scripts walk entire tables and collate the data (ie: check space by partition location - /usr/local - and not by OID). -------------- next part -------------- An HTML attachment was scrubbed... URL: From jlyons30 at yahoo.com Tue Dec 31 17:15:38 2002 From: jlyons30 at yahoo.com (Jon Lyons) Date: Tue, 31 Dec 2002 08:15:38 -0800 (PST) Subject: qpage problem, can anyone help In-Reply-To: References: Message-ID: <20021231161538.36082.qmail@web21502.mail.yahoo.com> I cheated, chmod 777 /dev/ttyS0 ...:) Evan Mann wrote:Dec 31 09:35:08 linux qpage[5080]: processing the page queue Dec 31 09:35:08 linux qpage[5292]: cannot open /dev/ttyS0: Permission denied for some reason qpage can';t access my modem. The modem works fine as I can dialout using wvdial -----Original Message----- From: Jon Lyons [mailto:jlyons30 at yahoo.com] Sent: Monday, December 30, 2002 4:17 PM To: Evan Mann; 'nagios-users at lists.sourceforge.net' Subject: RE: [Nagios-users] modem based alerts Ummm....the easy way? Spend the $100 bucks and buy a real modem....Something thats not windows specific.... Evan Mann wrote: Now that I know what I need to do, I'm in the proces sof trying to get a Lucent LT Modem to work. I've compiled my own LTModem drivers and insmod lt_modem and when I insmod lt_serial I get: Using /lib/modules/2.4.19/ltmodem/lt_serial.o /lib/modules/2.4.19/ltmodem/lt_serial.o: init_module: No such device Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters So it wants me to specify IO and IRQ in the options for the lt_serial or lt_modem module? Not sure where to do from here. Can anyone help?-----Original Message----- From: Jon Lyons [mailto:jlyons30 at yahoo.com] Sent: Monday, December 30, 2002 11:27 AM To: Evan Mann; 'nagios-users at lists.sourceforge.net' Subject: Re: [Nagios-users] modem based alerts Yes, I use qpage, nextel use the TAPS protocol.... Evan Mann wrote: I currently have 2 levels of alerts setup, the initials emails and an all host group escalation which is an email alert to a nextel phone. I'd like to add a 3rd level which is a modem based alert to a Nextel phone. Does anyone have a modem based alert to Nextel's that they are dealing with? I'd like some input how how they deal with this. I am unsure if Nextel has an # specifically for automated paging, so if I assume they don't, I can have it simply call and just leave dead silence on the phone and I just check the caller id and know that particular # it's calling from is only for my alerts. This seems very lacking however. Any advice would be appreciated. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From rvelez at sunguruz.com Tue Dec 31 18:17:29 2002 From: rvelez at sunguruz.com (rvelez) Date: Tue, 31 Dec 2002 12:17:29 -0500 Subject: Nagios on Solaris In-Reply-To: <20021231085010.71116.qmail@web12604.mail.yahoo.com> References: <20021231085010.71116.qmail@web12604.mail.yahoo.com> Message-ID: <001201c2b0f0$7fa8e550$0300a8c0@sunguruz.com> Thanks I will give this a shot and let you know how it turns out. Thanks again for all you guys helping me out :) -Radames -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of hrishy Sent: Tuesday, December 31, 2002 3:50 AM To: rvelez; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Nagios on Solaris Hi There is a problem with your LD_LIBRARY_PATH it does not know where you have installed JPEG libraries..you need to append the environment varibles LD_LIBRARY_PATH with the jpeg libarary path.. regards Hrishy --- rvelez wrote: > I have libpng-1.2.4 and jpeg-6b installed already. > Could it be anything > else? Is it that it can not find jpeg? > > -----Original Message----- > From: hrishy [mailto:hrishys at yahoo.co.uk] > Sent: Tuesday, December 31, 2002 3:15 AM > To: rvelez; nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Nagios on Solaris > > Hi > > You need to have the libpng and libjpeg > libraries..you > can download them from... > > http://www.ibiblio.org/pub/packages/solaris/sparc/ > > regards > Hrishy > > --- rvelez wrote: > So still > no > luck, I am running Solaris 8 on an Ultra > > 5 running gcc > > 2.95.3 and gnu make 3.79. Still getting: > > > > make all > > cd ./base && make > > make[1]: Entering directory > > `/opt/local/src/nagios-1.0/base' > > make[1]: `nagios' is up to date. > > make[1]: Leaving directory > > `/opt/local/src/nagios-1.0/base' > > cd ./cgi && make > > make[1]: Entering directory > > `/opt/local/src/nagios-1.0/cgi' > > gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI statusmap.c > > getcgi.o cgiutils.o > > auth.o popen.o ../common/objects.c > > ../xdata/xodtemplate.c > > ../common/statusdata.c ../xdata/xsddefault.c -lgd > > -lz -lm -lpng edata.o > > ../xdata/xedtemplate.c -o statusmap.cgi > > Undefined first referenced > > symbol in file > > jpeg_simple_progression > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_set_quality > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_write_scanlines > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_destroy_decompress > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_destroy > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_start_compress > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_write_marker > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_read_scanlines > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_finish_decompress > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_start_decompress > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_destroy_compress > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_resync_to_restart > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_std_error > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_CreateDecompress > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_set_defaults > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_CreateCompress > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_read_header > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_finish_compress > > /usr/local/lib/libgd.a(gd_jpeg.o) > > ld: fatal: Symbol referencing errors. No output > > written to statusmap.cgi > > collect2: ld returned 1 exit status > > make[1]: *** [statusmap.cgi] Error 1 > > make[1]: Leaving directory > > `/opt/local/src/nagios-1.0/cgi' > > make: *** [all] Error 2 > > > > > > Your help is greatly appreciated. Thanks guys > > > > > > __________________________________________________ > Do You Yahoo!? > Everything you'll ever need on one web page > from News and Sport to Email and Music Charts > http://uk.my.yahoo.com > __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From GPotter at MarathonOil.com Tue Dec 31 19:15:46 2002 From: GPotter at MarathonOil.com (Potter, G M (Greg)) Date: Tue, 31 Dec 2002 12:15:46 -0600 Subject: qpage notifications to ATT Wireless Message-ID: Is anyone using qpage to send notifications. In particular to AT&T Wireless. My setup for Cingular Wireless works very well, but my manager just changed service to AT&T. I searched the web and found 3 or 4 toll free numbers, but only 1 of them seems to work. It will accept the message and claim to deliver it, but none of the messages has made it to the phone yet. I called AT&T wireless twice, the first time I spoke with a very unhelpful and rude employee who wouldn't even acknowledge that the TAP protocol existed. The second was very helpful and friendly. She even went so far as to call her tech support person. But the result was pretty much the same, they don't claim to support the TAP/IXO protocol. They both wanted to know why I didn't just send an e-mail message. Of course I explained that if the network was down ... Anyway, if someone has successfully sent a notification with qpage to AT&T wireless will you share the secret of your success. Thanks! Greg M. Potter mailto:gpotter at marathonoil.com Non Scio, id est in Latina! ~~|\ / | \ ~^~^~^~ / | \ ~^~ Greg Potter~^~^~^~^ ~^~^~ / 9255 ) ~^ Oklahoma City, OK^~^ ~^~^_/____|____) ^~^~^~^~^~^~^~^~^~^~^~^ ~^~^ \_________/ ^~^~^~^~^~^~^~^~^~^~^ ~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~ ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From dack at msi.umn.edu Tue Dec 31 19:26:25 2002 From: dack at msi.umn.edu (Dack Anderson) Date: Tue, 31 Dec 2002 12:26:25 -0600 (CST) Subject: qpage notifications to ATT Wireless In-Reply-To: References: Message-ID: see: http://www.notepager.net/tap-phone-numbers-a.htm There are several ATT numbers I use ATT and the number i dial is: ATT PCS US 800-841-8837 whether or not this is the same ATT wireless service as you have, I don't know. On Tue, 31 Dec 2002, Potter, G M (Greg) wrote: > Is anyone using qpage to send notifications. In particular > to AT&T Wireless. My setup for Cingular Wireless works > very well, but my manager just changed service to AT&T. > I searched the web and found 3 or 4 toll free numbers, but > only 1 of them seems to work. It will accept the message > and claim to deliver it, but none of the messages has > made it to the phone yet. I called AT&T wireless twice, > the first time I spoke with a very unhelpful and rude > employee who wouldn't even acknowledge that the TAP protocol > existed. The second was very helpful and friendly. She > even went so far as to call her tech support person. But > the result was pretty much the same, they don't claim to > support the TAP/IXO protocol. They both wanted to know > why I didn't just send an e-mail message. Of course I > explained that if the network was down ... Anyway, if someone > has successfully sent a notification with qpage to AT&T wireless > will you share the secret of your success. > > Thanks! > > Greg M. Potter > mailto:gpotter at marathonoil.com > > Non Scio, id est in Latina! > > ~~|\ > / | \ > ~^~^~^~ / | \ ~^~ Greg Potter~^~^~^~^ > ~^~^~ / 9255 ) ~^ Oklahoma City, OK^~^ > ~^~^_/____|____) ^~^~^~^~^~^~^~^~^~^~^~^ > ~^~^ \_________/ ^~^~^~^~^~^~^~^~^~^~^ > ~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~ > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > -- Dack ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From rvelez at sunguruz.com Tue Dec 31 20:00:20 2002 From: rvelez at sunguruz.com (rvelez) Date: Tue, 31 Dec 2002 14:00:20 -0500 Subject: Nagios on Solaris In-Reply-To: <001201c2b0f0$7fa8e550$0300a8c0@sunguruz.com> References: <001201c2b0f0$7fa8e550$0300a8c0@sunguruz.com> Message-ID: <000001c2b0fe$dda7d220$0300a8c0@sunguruz.com> Here is my LD_LIBRARY_PATH :/usr/local/lib:/usr/lib:/usr/local/include:/usr/local/BerkeleyDB.3.2/in clude/:/usr/local/BerkeleyDB.4.0/include/:/usr/local/lib/perl5/5.00503/s un4-solaris/:/usr/local/lib/perl:/usr/ucb:/usr/local/include/gtk:/usr/lo cal/BerkeleyDB.3.2:/usr/java1.2/jre/lib/sparc/:/usr/java1.1/lib/:/opt/lo cal/src/gd-2.0.1/:/opt/local/src/jpeg-6b/:/opt/local/src/gd-1.8.4/ At the same time I also moved the gd_jpeg.o from the src dir of gd-1.8.3 to /usr/local/lib thinking this would fix things, but it didn't. My configure looks fine, here it is, maybe there is something here I do not see that you may. root at nsmx1:/opt/local/src/nagios-1.0 > ./configure loading cache ./config.cache checking for a BSD compatible install... (cached) /usr/local/bin/install -c checking for gcc... (cached) gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... (cached) yes checking whether gcc accepts -g... (cached) yes checking whether make sets ${MAKE}... (cached) yes checking for strip... (cached) /usr/ccs/bin/strip checking how to run the C preprocessor... (cached) gcc -E checking for ANSI C header files... (cached) yes checking whether time.h and sys/time.h may both be included... (cached) yes checking for sys/wait.h that is POSIX.1 compatible... (cached) yes checking for ctype.h... (cached) yes checking for dirent.h... (cached) yes checking for errno.h... (cached) yes checking for fcntl.h... (cached) yes checking for getopt.h... (cached) no checking for grp.h... (cached) yes checking for limits.h... (cached) yes checking for math.h... (cached) yes checking for pwd.h... (cached) yes checking for signal.h... (cached) yes checking for strings.h... (cached) yes checking for string.h... (cached) yes checking for syslog.h... (cached) yes checking for unistd.h... (cached) yes checking for uio.h... (cached) no checking for sys/types.h... (cached) yes checking for sys/time.h... (cached) yes checking for sys/resource.h... (cached) yes checking for sys/wait.h... (cached) yes checking for sys/stat.h... (cached) yes checking for sys/ipc.h... (cached) yes checking for sys/msg.h... (cached) yes checking for working const... (cached) yes checking whether struct tm is in sys/time.h or time.h... (cached) time.h checking for tm_zone in struct tm... (cached) no checking for tzname... (cached) yes checking for mode_t... (cached) yes checking for pid_t... (cached) yes checking for size_t... (cached) yes checking return type of signal handlers... (cached) void checking for uid_t in sys/types.h... (cached) yes checking type of array argument to getgroups... (cached) gid_t checking for strdup... (cached) yes checking for strstr... (cached) yes checking for strtoul... (cached) yes checking for initgroups... (cached) yes checking for type of socket size... size_t checking for mail... (cached) /usr/bin/mail Init script directory: /usr/local/etc/rc.d We'll use default routines (in xdata/xsddefault.*) for status data I/O... We'll use default routines (in xdata/xcddefault.*) for comment data I/O... We'll use template-based routines (in xdata/xedtemplate.*) for extended data I/O... We'll use default routines (in xdata/xrddefault.*) for retention data I/O... We'll use template-based routines (in xdata/xodtemplate.*) for object data I/O... We'll use default routines (in xdata/xpddefault.*) for performance data I/O... We'll use default routines (in xdata/xdddefault.*) for scheduled downtime data I/O... checking for gdImagePng in -lgd (order 1)... (cached) yes GD library was found! checking for traceroute... (cached) /usr/sbin/traceroute checking for snprintf... (cached) yes checking for type va_list... yes checking for perl... (cached) /usr/bin/perl creating ./config.status creating Makefile creating subst creating pkginfo creating base/Makefile creating common/Makefile creating contrib/Makefile creating cgi/Makefile creating html/Makefile creating xdata/Makefile creating daemon-init creating html/index.html creating html/side.html creating common/config.h common/config.h is unchanged creating common/snprintf.h common/snprintf.h is unchanged creating base/nagios.h creating cgi/cgiutils.h cgi/cgiutils.h is unchanged Creating sample config files in sample-config/ ... *** Configuration summary for nagios 1.0 11-24-2002 ***: General Options: ------------------------- Nagios executable: nagios Nagios user/group: nagios,nagios Command user/group: nagios,nagios Embedded Perl: no Install ${prefix}: /usr/local/nagios Lock file: ${prefix}/var/nagios.lock Init directory: /usr/local/etc/rc.d Web Interface Options: ------------------------ HTML URL: http://localhost/nagios/ CGI URL: http://localhost/nagios/cgi-bin/ Traceroute (used by WAP): /usr/sbin/traceroute External Data Routines: ------------------------ Status data: Default (text file) Object data: Template-based (text file) Comment data: Default (text file) Downtime data: Default (text file) Retention data: Default (text file) Peformance data: Default (external commands) Extended info data: Template-based (text file) Review the options above for accuracy. If they look okay, type 'make all' to compile the main program and CGIs. I proceed to make all and it keeps breaking at the statusmap.cgi gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI summary.c getcgi.o cgiutils.o auth.o popen.o ../common/objects.c ../xdata/xodtemplate.c ../common/statusdata.c ../xdata/xsddefault.c -o summary.cgi gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI tac.c getcgi.o cgiutils.o auth.o popen.o ../common/objects.c ../xdata/xodtemplate.c ../common/statusdata.c ../xdata/xsddefault.c ../common/comments.c ../xdata/xcddefault.c edata.o ../xdata/xedtemplate.c -o tac.cgi gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI statuswrl.c getcgi.o cgiutils.o auth.o popen.o ../common/objects.c ../xdata/xodtemplate.c ../common/statusdata.c ../xdata/xsddefault.c -lm edata.o ../xdata/xedtemplate.c -o statuswrl.cgi gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI statusmap.c getcgi.o cgiutils.o auth.o popen.o ../common/objects.c ../xdata/xodtemplate.c ../common/statusdata.c ../xdata/xsddefault.c -lgd -lz -lm -lpng -ljpeg edata.o ../xdata/xedtemplate.c -o statusmap.cgi Undefined first referenced symbol in file jpeg_simple_progression /usr/local/lib/libgd.a(gd_jpeg.o) jpeg_set_quality /usr/local/lib/libgd.a(gd_jpeg.o) jpeg_write_scanlines /usr/local/lib/libgd.a(gd_jpeg.o) jpeg_destroy_decompress /usr/local/lib/libgd.a(gd_jpeg.o) jpeg_destroy /usr/local/lib/libgd.a(gd_jpeg.o) jpeg_start_compress /usr/local/lib/libgd.a(gd_jpeg.o) jpeg_write_marker /usr/local/lib/libgd.a(gd_jpeg.o) jpeg_read_scanlines /usr/local/lib/libgd.a(gd_jpeg.o) jpeg_finish_decompress /usr/local/lib/libgd.a(gd_jpeg.o) jpeg_start_decompress /usr/local/lib/libgd.a(gd_jpeg.o) jpeg_destroy_compress /usr/local/lib/libgd.a(gd_jpeg.o) jpeg_resync_to_restart /usr/local/lib/libgd.a(gd_jpeg.o) jpeg_std_error /usr/local/lib/libgd.a(gd_jpeg.o) jpeg_CreateDecompress /usr/local/lib/libgd.a(gd_jpeg.o) jpeg_set_defaults /usr/local/lib/libgd.a(gd_jpeg.o) jpeg_CreateCompress /usr/local/lib/libgd.a(gd_jpeg.o) jpeg_read_header /usr/local/lib/libgd.a(gd_jpeg.o) jpeg_finish_compress /usr/local/lib/libgd.a(gd_jpeg.o) ld: fatal: Symbol referencing errors. No output written to statusmap.cgi collect2: ld returned 1 exit status make[1]: *** [statusmap.cgi] Error 1 make[1]: Leaving directory `/opt/local/src/nagios-1.0/cgi' make: *** [all] Error 2 It seemed to me that it was looking for gd_jpeg.o? Thanks for all your help Regards, Radames -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of rvelez Sent: Tuesday, December 31, 2002 12:17 PM To: 'hrishy'; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Nagios on Solaris Thanks I will give this a shot and let you know how it turns out. Thanks again for all you guys helping me out :) -Radames -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of hrishy Sent: Tuesday, December 31, 2002 3:50 AM To: rvelez; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Nagios on Solaris Hi There is a problem with your LD_LIBRARY_PATH it does not know where you have installed JPEG libraries..you need to append the environment varibles LD_LIBRARY_PATH with the jpeg libarary path.. regards Hrishy --- rvelez wrote: > I have libpng-1.2.4 and jpeg-6b installed already. > Could it be anything > else? Is it that it can not find jpeg? > > -----Original Message----- > From: hrishy [mailto:hrishys at yahoo.co.uk] > Sent: Tuesday, December 31, 2002 3:15 AM > To: rvelez; nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Nagios on Solaris > > Hi > > You need to have the libpng and libjpeg > libraries..you > can download them from... > > http://www.ibiblio.org/pub/packages/solaris/sparc/ > > regards > Hrishy > > --- rvelez wrote: > So still > no > luck, I am running Solaris 8 on an Ultra > > 5 running gcc > > 2.95.3 and gnu make 3.79. Still getting: > > > > make all > > cd ./base && make > > make[1]: Entering directory > > `/opt/local/src/nagios-1.0/base' > > make[1]: `nagios' is up to date. > > make[1]: Leaving directory > > `/opt/local/src/nagios-1.0/base' > > cd ./cgi && make > > make[1]: Entering directory > > `/opt/local/src/nagios-1.0/cgi' > > gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI statusmap.c > > getcgi.o cgiutils.o > > auth.o popen.o ../common/objects.c > > ../xdata/xodtemplate.c > > ../common/statusdata.c ../xdata/xsddefault.c -lgd > > -lz -lm -lpng edata.o > > ../xdata/xedtemplate.c -o statusmap.cgi > > Undefined first referenced > > symbol in file > > jpeg_simple_progression > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_set_quality > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_write_scanlines > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_destroy_decompress > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_destroy > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_start_compress > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_write_marker > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_read_scanlines > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_finish_decompress > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_start_decompress > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_destroy_compress > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_resync_to_restart > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_std_error > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_CreateDecompress > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_set_defaults > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_CreateCompress > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_read_header > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_finish_compress > > /usr/local/lib/libgd.a(gd_jpeg.o) > > ld: fatal: Symbol referencing errors. No output > > written to statusmap.cgi > > collect2: ld returned 1 exit status > > make[1]: *** [statusmap.cgi] Error 1 > > make[1]: Leaving directory > > `/opt/local/src/nagios-1.0/cgi' > > make: *** [all] Error 2 > > > > > > Your help is greatly appreciated. Thanks guys > > > > > > __________________________________________________ > Do You Yahoo!? > Everything you'll ever need on one web page > from News and Sport to Email and Music Charts > http://uk.my.yahoo.com > __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From GPotter at MarathonOil.com Tue Dec 31 20:26:23 2002 From: GPotter at MarathonOil.com (Potter, G M (Greg)) Date: Tue, 31 Dec 2002 13:26:23 -0600 Subject: qpage notifications to ATT Wireless Message-ID: I can get Cingular to work every time too. I don't know why AT&T is being so difficult. Please post back in if you get it to work also. Greg > -----Original Message----- > From: Jolet, John [mailto:John.Jolet at misyshealthcare.com] > Sent: Tuesday, December 31, 2002 12:42 PM > To: Potter, G M (Greg) > Subject: RE: [Nagios-users] qpage notifications to ATT Wireless > > > i just started testing this with at&t today...as you said, > only one of the > numbers will accept the message, and it doesn't seem to get delivered. > sprint works fine. dangit. keep us posted! > > -----Original Message----- > From: Potter, G M (Greg) [mailto:GPotter at MarathonOil.com] > Sent: Tuesday, December 31, 2002 12:16 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] qpage notifications to ATT Wireless > > > Is anyone using qpage to send notifications. In particular > to AT&T Wireless. My setup for Cingular Wireless works > very well, but my manager just changed service to AT&T. > I searched the web and found 3 or 4 toll free numbers, but > only 1 of them seems to work. It will accept the message > and claim to deliver it, but none of the messages has > made it to the phone yet. I called AT&T wireless twice, > the first time I spoke with a very unhelpful and rude > employee who wouldn't even acknowledge that the TAP protocol > existed. The second was very helpful and friendly. She > even went so far as to call her tech support person. But > the result was pretty much the same, they don't claim to > support the TAP/IXO protocol. They both wanted to know > why I didn't just send an e-mail message. Of course I > explained that if the network was down ... Anyway, if someone > has successfully sent a notification with qpage to AT&T wireless > will you share the secret of your success. > > Thanks! > > Greg M. Potter > mailto:gpotter at marathonoil.com > > Non Scio, id est in Latina! > > ~~|\ > / | \ > ~^~^~^~ / | \ ~^~ Greg Potter~^~^~^~^ > ~^~^~ / 9255 ) ~^ Oklahoma City, OK^~^ > ~^~^_/____|____) ^~^~^~^~^~^~^~^~^~^~^~^ > ~^~^ \_________/ ^~^~^~^~^~^~^~^~^~^~^ > ~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~ > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From GPotter at MarathonOil.com Tue Dec 31 20:25:02 2002 From: GPotter at MarathonOil.com (Potter, G M (Greg)) Date: Tue, 31 Dec 2002 13:25:02 -0600 Subject: qpage notifications to ATT Wireless Message-ID: How long does it take from the time the message is sent until it is received at your phone? That is the number that will accept the page, but I haven't actually seen one show up on the phone yet. Greg > -----Original Message----- > From: Dack Anderson [mailto:dack at msi.umn.edu] > Sent: Tuesday, December 31, 2002 12:26 PM > To: Potter, G M (Greg) > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] qpage notifications to ATT Wireless > > > see: > http://www.notepager.net/tap-phone-numbers-a.htm > There are several ATT numbers > > I use ATT and the number i dial is: > ATT PCS US 800-841-8837 > > whether or not this is the same ATT wireless service as you > have, I don't > know. > > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From dack at msi.umn.edu Tue Dec 31 20:29:17 2002 From: dack at msi.umn.edu (Dack Anderson) Date: Tue, 31 Dec 2002 13:29:17 -0600 (CST) Subject: qpage notifications to ATT Wireless In-Reply-To: References: Message-ID: it can vary, anywhere from almost instantly to sometimes over 5 minutes. most of the time within 90 seconds. On Tue, 31 Dec 2002, Potter, G M (Greg) wrote: > How long does it take from the time the message is sent until > it is received at your phone? That is the number that will > accept the page, but I haven't actually seen one show up on > the phone yet. > > Greg > > > -----Original Message----- > > From: Dack Anderson [mailto:dack at msi.umn.edu] > > Sent: Tuesday, December 31, 2002 12:26 PM > > To: Potter, G M (Greg) > > Cc: nagios-users at lists.sourceforge.net > > Subject: Re: [Nagios-users] qpage notifications to ATT Wireless > > > > > > see: > > http://www.notepager.net/tap-phone-numbers-a.htm > > There are several ATT numbers > > > > I use ATT and the number i dial is: > > ATT PCS US 800-841-8837 > > > > whether or not this is the same ATT wireless service as you > > have, I don't > > know. > > > > > -- Dack ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From bakkerl at lamp.xs4all.nl Tue Dec 31 23:25:49 2002 From: bakkerl at lamp.xs4all.nl (Lennard Bakker) Date: 31 Dec 2002 23:25:49 +0100 Subject: parameters for service checks from outside nagios Message-ID: <1041373546.30331.9.camel@peitha.home.mercurius96.nl> Is it possible to import variable date to use with a service check? My problem: I want to let nagios to check anti virus datfiles on remote systems. Now i do this dat each remote system fetch the latest version info (800k) and verifies the version info, to the installed version (no update is done). The plugin reports OK if datfile is uptodate, warning when 1 version behind and ERROR if more than 1 version behind (or installed version is newer then the official downloadable). The problem is that every client fetches the 800k just for verify the version number (4 bytes number). I have the lastest version info on the nagios host system (in a file, just 4 bytes in size). Is it possible to add this info from a file to the service check, so that the version number is given to te remote host (by nrpe or chack_by_ssh). The remote host doesn't have to access a remote host (internet) for the current information. Lennard ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf