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 s